/* ==========================================================================
   IBHAR GAMES — GLOBAL DESIGN SYSTEM v3 · "Attract Mode"

   Premise: in a good arcade, the room is dark and quiet and the *screens*
   are the only bright thing. v2 glowed everywhere, so 42 pieces of neon
   game art had nothing to sit against. v3 pulls all saturation out of the
   interface — graphite, chalk, one brass accent — and lets the artwork be
   the only colour on the page.

   Brass (#E8A33C) is lifted from the brand mark's own sunset band. It sits
   opposite the games' cyan/magenta on the wheel, so the UI frames the art
   instead of competing with it.
   ========================================================================== */

:root {
  /* ---- Surfaces: cool graphite, deliberately not purple ---- */
  --ink:        #0B0C10;
  --ink-sunken: #08090C;
  --ink-raise:  #131519;
  --ink-raise-2:#1A1D23;
  --ink-line:   #242833;
  --ink-line-2: #343948;

  /* ---- Text ---- */
  --chalk:      #ECEDF1;
  --chalk-dim:  #9296A3;
  --chalk-mute: #6A6E7B;
  --on-brass:   #1A1206;

  /* ---- The one accent: coin brass ---- */
  --brass:      #E8A33C;
  --brass-lit:  #F6BC63;
  --brass-deep: #8C6220;
  --brass-wash: rgba(232, 163, 60, 0.10);

  /* Live/online marker — the only other chromatic value, used for state */
  --signal:     #56D9A3;

  /* ---- Elevation: real shadow, no coloured glow ---- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.65);

  /* ---- Typography ---- */
  --font-display: "Archivo", system-ui, sans-serif;   /* set expanded + heavy */
  --font-body:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --font-arabic:  "Cairo", "Archivo", system-ui, sans-serif;

  /* Archivo width axis. Display runs expanded; body runs normal. */
  --wide: 116%;
  --wide-sm: 108%;

  /* Fluid type scale */
  --fs-display: clamp(2.4rem, 1.2rem + 4.4vw, 4.4rem);
  --fs-h1: clamp(1.9rem, 1.25rem + 2.4vw, 2.9rem);
  --fs-h2: clamp(1.45rem, 1.15rem + 1.3vw, 2rem);
  --fs-h3: clamp(1.08rem, 0.98rem + 0.5vw, 1.3rem);
  --fs-lg: clamp(1rem, 0.96rem + 0.28vw, 1.12rem);
  --fs-base: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;
  --fs-2xs: 0.72rem;
  --fs-3xs: 0.66rem;

  /* Script-aware metrics (RTL block overrides these) */
  --lh-display: 0.94;
  --lh-heading: 1.16;
  --lh-body: 1.62;
  --tracking-display: -0.015em;
  --tracking-label: 0.16em;

  /* ---- Spacing scale ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* ---- Radii & motion: hardware-tight, not pillowy ---- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.14s ease;
  --transition-normal: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Arabic / RTL typography
   Cairo has tall ascenders and deep descenders: negative tracking and tight
   line-heights clip the glyphs. Give it room, and drop the width axis
   (Cairo has none — asking for 116% would synthesise a stretch).
   ========================================================================== */
[dir="rtl"], .rtl-mode {
  font-family: var(--font-arabic);
  --wide: 100%;
  --wide-sm: 100%;
  --lh-display: 1.42;
  --lh-heading: 1.46;
  --lh-body: 1.9;
  --tracking-display: 0;
  --tracking-label: 0.06em;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] h5, [dir="rtl"] h6, [dir="rtl"] .brand-name,
[dir="rtl"] .btn,
.rtl-mode h1, .rtl-mode h2, .rtl-mode h3, .rtl-mode h4,
.rtl-mode .brand-name, .rtl-mode .btn {
  font-family: var(--font-arabic);
  font-stretch: normal;
  letter-spacing: 0;
  padding-block: 0.08em;
}

/* Uppercasing is a Latin device; Arabic has no case */
[dir="rtl"] .hero-title, [dir="rtl"] .section-title, [dir="rtl"] .brand-name,
[dir="rtl"] .chip, [dir="rtl"] .footer-heading, [dir="rtl"] .eyebrow,
.rtl-mode .hero-title, .rtl-mode .section-title, .rtl-mode .brand-name {
  text-transform: none;
}

/* Latin fragments inside Arabic runs (HTML5, WebGL, 60 FPS) keep LTR order */
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Numbers never mirror */
.num { font-variant-numeric: tabular-nums; }
[dir="rtl"] .num { direction: ltr; unicode-bidi: isolate; }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; color-scheme: dark; -webkit-text-size-adjust: 100%; }

/* Long unbreakable Latin tokens (YouTube Playables, WebGL) must wrap in AR */
p, .hero-lede, .section-subtitle, .card-desc, .prose { overflow-wrap: anywhere; }

body {
  background-color: var(--ink);
  /* One ambient light, brass-tinted: the marquee above the cabinet. */
  background-image:
    radial-gradient(ellipse 90% 44% at 50% -8%, rgba(232, 163, 60, 0.07), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 104%, rgba(255, 255, 255, 0.022), transparent 70%);
  background-attachment: fixed;
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: var(--lh-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fine film grain. The only texture on the page — it keeps a near-black
   ground from reading as flat empty canvas, and costs one data URI. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

/* Content sits above the grain */
.site-header, main, .site-footer, .cookie-banner,
.modal-backdrop, .mobile-nav-drawer { position: relative; z-index: 1; }
.site-header { z-index: 100; }
.cookie-banner { z-index: 900; }
.mobile-nav-drawer { z-index: 500; }
.modal-backdrop { z-index: 1000; }

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection { background: rgba(232, 163, 60, 0.28); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink-sunken); }
::-webkit-scrollbar-thumb { background: var(--ink-line-2); border-radius: var(--radius-full); border: 3px solid var(--ink-sunken); }
::-webkit-scrollbar-thumb:hover { background: var(--brass-deep); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

@media (max-width: 640px) { .container { padding: 0 var(--sp-4); } }

main { flex: 1; }

/* ==========================================================================
   Mono utility label — the page's structural device.
   Anything machine-read (counts, ratings, specs, keys, positions) is set in
   mono. Anything a person wrote is set in Archivo. The split is the rule.
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--chalk-mute);
  line-height: 1;
}

[dir="rtl"] .eyebrow { font-family: var(--font-arabic); letter-spacing: 0.04em; }

.eyebrow-brass { color: var(--brass); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--ink-line);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 74px;
  min-width: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
  flex: 0 1 auto;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--ink-line-2);
  transition: transform var(--transition-normal);
}

.brand-logo:hover .brand-icon { transform: translateY(-1px); }

.brand-name {
  font-family: var(--font-display);
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--chalk);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  line-height: 1;
}

[dir="rtl"] .brand-name { font-family: var(--font-arabic); }

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--sp-6);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--chalk-dim);
  position: relative;
  padding: var(--sp-2) 0;
  white-space: nowrap;
}

.nav-link:hover { color: var(--chalk); }
.nav-link.active { color: var(--chalk); }

/* the active tab gets a brass underscore — one accent, one job */
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--brass);
}

.nav-actions { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }

/* ==========================================================================
   Buttons — three ranks, no gradients, no glow
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 22px;
  font-family: var(--font-display);
  font-stretch: var(--wide-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
              color var(--transition-fast), transform var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

[dir="rtl"] .btn { font-family: var(--font-arabic); font-stretch: normal; letter-spacing: 0; }

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brass);
  color: var(--on-brass);
  border-color: var(--brass);
}
.btn-primary:hover { background: var(--brass-lit); border-color: var(--brass-lit); }

.btn-outline {
  background: transparent;
  border-color: var(--ink-line-2);
  color: var(--chalk);
}
.btn-outline:hover { border-color: var(--brass); color: var(--brass); }

.btn-quiet {
  background: var(--ink-raise-2);
  border-color: var(--ink-line);
  color: var(--chalk-dim);
}
.btn-quiet:hover { color: var(--chalk); border-color: var(--ink-line-2); }

.btn-sm { padding: 8px 15px; font-size: var(--fs-xs); }

.btn .icon { width: 15px; height: 15px; flex-shrink: 0; }

.lang-switcher-btn {
  background: transparent;
  border: 1px solid var(--ink-line-2);
  color: var(--chalk-dim);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.4;
}
.lang-switcher-btn:hover { border-color: var(--brass); color: var(--brass); }

/* ==========================================================================
   Chips — small mono facts, not decorative badges
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--ink-line);
  background: var(--ink-raise);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chalk-dim);
  line-height: 1.4;
  white-space: nowrap;
}

[dir="rtl"] .chip { font-family: var(--font-arabic); letter-spacing: 0; }

.chip-brass { color: var(--brass); border-color: var(--brass-deep); background: var(--brass-wash); }
.chip-solid { color: var(--on-brass); background: var(--brass); border-color: var(--brass); font-weight: 600; }

/* ==========================================================================
   Section headers — left-aligned, ruled. A centred title with a decorative
   gradient dash under it is the stock move; a rule that spans the measure
   and carries the count is information.
   ========================================================================== */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: var(--sp-6);
}

.section-title {
  font-family: var(--font-display);
  font-stretch: var(--wide);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--chalk);
}

[dir="rtl"] .section-title { font-family: var(--font-arabic); }

.section-subtitle { color: var(--chalk-dim); font-size: var(--fs-sm); line-height: var(--lh-body); }

/* ==========================================================================
   Modals & forms
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 7, 10, 0.84);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-backdrop.active { opacity: 1; visibility: visible; }

.modal-content {
  position: relative;
  background: var(--ink-raise);
  border: 1px solid var(--ink-line-2);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  overflow-y: auto;
  padding: var(--sp-6);
  transform: translateY(8px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-content { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-2);
}

.modal-title {
  font-family: var(--font-display);
  font-stretch: var(--wide-sm);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--chalk);
  line-height: var(--lh-heading);
}

[dir="rtl"] .modal-title { font-family: var(--font-arabic); }

.modal-close {
  background: transparent;
  border: 1px solid var(--ink-line);
  color: var(--chalk-dim);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.modal-close:hover { color: var(--chalk); border-color: var(--ink-line-2); }

.form-group { margin-bottom: var(--sp-4); }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-mute);
  margin-bottom: var(--sp-2);
}

[dir="rtl"] .form-label { font-family: var(--font-arabic); letter-spacing: 0; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--ink-sunken);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  transition: border-color var(--transition-fast);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--chalk-mute); }

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.form-textarea { resize: vertical; min-height: 84px; }

/* Admin-only controls */
.admin-only { display: none !important; }
body.admin-mode .admin-only { display: inline-flex !important; }

/* Skip link — clipped rather than offset, so it never widens the document */
.skip-to-content {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  top: 0;
  inset-inline-start: 0;
  z-index: 9999;
  background: var(--brass);
  color: var(--on-brass);
  padding: 12px 22px;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-to-content:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  inset-inline-start: var(--sp-4);
}

/* ==========================================================================
   Mobile navigation
   ========================================================================== */
.hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--ink-line-2);
  color: var(--chalk);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.hamburger-btn:hover { border-color: var(--brass); color: var(--brass); }
.hamburger-btn .icon { width: 18px; height: 18px; }

.mobile-nav-drawer { display: none; position: fixed; inset: 0; z-index: 500; }

.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(6, 7, 10, 0.8); }

.mobile-nav-panel {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 300px;
  max-width: 88vw;
  height: 100%;
  background: var(--ink-raise);
  border-inline-start: 1px solid var(--ink-line-2);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

[dir="rtl"] .mobile-nav-panel { transform: translateX(-100%); }

.mobile-nav-drawer.open { display: block; }
.mobile-nav-drawer.open .mobile-nav-panel { transform: translateX(0); }

.mobile-nav-close {
  align-self: flex-end;
  background: transparent;
  border: 1px solid var(--ink-line);
  color: var(--chalk-dim);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  margin-bottom: var(--sp-4);
}

.mobile-nav-link {
  display: block;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  color: var(--chalk-dim);
  font-size: var(--fs-base);
  font-weight: 500;
  transition: all var(--transition-fast);
}
.mobile-nav-link:hover { color: var(--chalk); background: var(--ink-raise-2); }
.mobile-nav-link.active { color: var(--brass); background: var(--brass-wash); }

.mobile-nav-divider { height: 1px; background: var(--ink-line); margin: var(--sp-4) 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: var(--sp-9);
  border-top: 1px solid var(--ink-line);
  background: var(--ink-sunken);
  padding: var(--sp-7) 0 var(--sp-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}

.footer-brand { display: flex; flex-direction: column; gap: var(--sp-4); align-items: flex-start; }

.footer-desc {
  color: var(--chalk-dim);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  max-width: 36ch;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--chalk-mute);
  margin-bottom: var(--sp-4);
}

[dir="rtl"] .footer-heading { font-family: var(--font-arabic); letter-spacing: 0.04em; }

.footer-nav { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }

.footer-link { color: var(--chalk-dim); font-size: var(--fs-sm); }
.footer-link:hover { color: var(--brass); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-line);
  color: var(--chalk-mute);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  letter-spacing: 0.04em;
}

[dir="rtl"] .footer-bottom { font-family: var(--font-arabic); letter-spacing: 0; font-size: var(--fs-xs); }

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 900;
  background: var(--ink-raise);
  border-top: 1px solid var(--ink-line-2);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
  font-size: var(--fs-sm);
  color: var(--chalk-dim);
}

.cookie-banner a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner.hidden { display: none; }

/* ==========================================================================
   Toast — replaces alert(), which blocks the page and looks like a bug
   ========================================================================== */
.toast {
  position: fixed;
  inset-inline: 0;
  bottom: var(--sp-6);
  z-index: 2100;
  margin-inline: auto;
  width: fit-content;
  max-width: min(92vw, 460px);
  background: var(--ink-raise-2);
  border: 1px solid var(--ink-line-2);
  border-inline-start: 3px solid var(--brass);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 13px 18px;
  color: var(--chalk);
  font-size: var(--fs-sm);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .hamburger-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .nav-wrapper { height: 62px; }
  .brand-icon { width: 30px; height: 30px; }
  .brand-name { font-size: 0.9rem; }
  .lang-switcher-btn { padding: 7px 11px; }
  .modal-content { padding: var(--sp-5); }
  .cookie-banner { padding: var(--sp-4); gap: var(--sp-3); text-align: center; font-size: var(--fs-xs); }
}

@media (max-width: 380px) {
  .brand-name { display: none; }  /* icon-only lockup on very narrow phones */
}
