/* Rin Ya Jaras — public site. Tokens follow the app's design system (bad_app/DESIGN.md,
   app/lib/ui/theme/*): rose-mist pages, a showtime-red rail, black hairline framing instead
   of shadows, stroked display type, the fixed team spectrum, and a navy "countdown" stage. */

/* ---------- Fonts (subset woff2 built from app/assets/fonts) ---------- */
@font-face { font-family: "El Messiri"; src: url(/fonts/ElMessiri.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Belanosima"; src: url(/fonts/Belanosima-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Belanosima"; src: url(/fonts/Belanosima-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/Inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --red: #EE362A;
  --rose: #FFF1F1;
  --blush: #F9DFDF;
  --peach: #F2B8A0;
  --yellow: #FBBB42;
  --aqua: #57B9D0;
  --olive: #BDBF4F;

  --bg: var(--rose);
  --surface: #FFFFFF;
  --surface-2: var(--blush);
  --outline: #000000;
  --text: #000000;
  --text-2: #5E5E5E;
  --cta: #000000;
  --on-cta: #FFFFFF;
  --on-accent: #000000;
  --rail: var(--red);
  --rail-rule: #000000;

  --navy: #1A1A2E;
  --navy-deep: #0F0F23;
  --lamp-red: #F44336;
  --lamp-amber: #FFC107;
  --lamp-green: #4CAF50;
  --buzz-light: #EF5350;
  --buzz-deep: #D32F2F;
  --buzz-rim: #B71C1C;
  --success: #2E7D32;
  --danger: #D32F2F;
  --gold: #FFD700;
  --gold-deep: #FFA500;

  --r-sm: 7px;
  --r-md: 12px;
  --r-lg: 20px;
  --line: 2px;

  --font-display: "El Messiri", "Noto Naskh Arabic", "Geeza Pro", system-ui, sans-serif;
  --font-body: var(--font-display);
  color-scheme: light;
}
html[lang="en"] {
  --font-display: "Belanosima", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Dark: the app's "Midnight Navy" token sheet (app_colors.dart). Physical props (buzzer,
   lamps, medals) and the countdown stage keep their colours. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121829; --surface: #222C45; --surface-2: #1A2238; --outline: #354060;
    --text: #F0F2F8; --text-2: #9AA3BC; --cta: #FF5247; --on-cta: #FFFFFF; --on-accent: #121829;
    --red: #FF5247; --yellow: #FFD060; --aqua: #6DD0E7; --olive: #D0D26A;
    --rail: #FF5247; --rail-rule: #354060; --success: #7BD88A; --danger: #FF7A70;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121829; --surface: #222C45; --surface-2: #1A2238; --outline: #354060;
  --text: #F0F2F8; --text-2: #9AA3BC; --cta: #FF5247; --on-cta: #FFFFFF; --on-accent: #121829;
  --red: #FF5247; --yellow: #FFD060; --aqua: #6DD0E7; --olive: #D0D26A;
  --rail: #FF5247; --rail-rule: #354060; --success: #7BD88A; --danger: #FF7A70;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
html[lang="ar"] body { line-height: 1.85; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: 0; }
html[lang="ar"] :is(h1, h2, h3) { line-height: 1.35; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--surface); color: var(--text); padding: 10px 14px; border: var(--line) solid var(--outline); border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container.narrow { max-width: 760px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); }
.section-head p { margin-top: 10px; font-size: 1.15rem; color: var(--text-2); }

/* Stroked display type: a white fill with a black outline, like the app's stroked
   Belanosima. Drawn with shadows so it works for Arabic glyphs too. */
.stroked {
  color: #fff;
  text-shadow:
    2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000,
    1.5px 1.5px 0 #000, -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: var(--line) solid var(--outline); border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .08s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 22px; height: 22px; }
[dir="rtl"] .btn .icon { transform: scaleX(-1); }
.btn-primary { background: var(--cta); color: var(--on-cta); border-color: var(--cta); box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.btn-primary:hover { box-shadow: 0 8px 0 rgba(0,0,0,.18); }
.btn-secondary { background: var(--surface); color: var(--text); }
.btn-light { background: #fff; color: #000; border-color: #000; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.btn-rail { background: #fff; color: #000; border-color: #000; min-height: 42px; padding: 0 18px; font-size: 1rem; }

/* ---------- The red rail ---------- */
.rail {
  position: sticky; top: 0; z-index: 50;
  background: var(--rail); color: #fff;
  border-bottom: 3px solid var(--rail-rule);
}
.rail-row { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand .logo-svg { height: 46px; width: 117px; }
.rail .logo-svg { color: #fff; --face: var(--rail); }
.nav { display: none; gap: 22px; margin-inline-start: 8px; }
.nav a { color: #fff; font-weight: 700; text-decoration: none; font-size: 1rem; opacity: .95; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rail-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  border: 2px solid rgba(255,255,255,.85); border-radius: 999px;
  color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none;
}
.lang:hover { background: rgba(255,255,255,.15); }
@media (min-width: 960px) { .nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(44px, 7vw, 96px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 32px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--on-accent);
  border: var(--line) solid var(--outline); border-radius: 999px;
  padding: 6px 16px; font-weight: 700; font-size: .95rem;
}
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.25rem); margin: 20px 0 14px; max-width: 14ch; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--text-2); max-width: 36rem; }
.lead strong { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 26px; color: var(--text-2); font-weight: 600; font-size: .98rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 20px; height: 20px; color: var(--success); flex: none; }

/* The demo buzzer: a physical red dome (AppPalette.buzzer*), not a themed surface. */
.hero-visual { display: grid; place-items: center; }
.buzz-stage { position: relative; display: grid; place-items: center; width: min(100%, 420px); aspect-ratio: 1; }
.buzz-stage::before {
  content: ""; position: absolute; inset: 6%;
  border-radius: 50%; background: var(--surface-2);
  border: var(--line) solid var(--outline);
}
.buzzer {
  position: relative; z-index: 1;
  width: 64%; aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0;
  background: radial-gradient(circle at 36% 30%, var(--buzz-light), var(--buzz-deep) 72%);
  box-shadow: 0 16px 0 var(--buzz-rim), 0 30px 44px rgba(211,47,47,.35), inset 0 -10px 18px rgba(0,0,0,.15);
  cursor: pointer; display: grid; place-items: center;
  transition: transform .09s ease, box-shadow .09s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.buzzer::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 3px solid var(--red); opacity: 0; pointer-events: none;
}
.buzzer:active, .buzzer.is-ringing { transform: translateY(12px); box-shadow: 0 4px 0 var(--buzz-rim), 0 12px 24px rgba(211,47,47,.3), inset 0 -6px 14px rgba(0,0,0,.15); }
.buzzer .bell-svg { width: 56%; aspect-ratio: 140 / 124; color: #fff; --face: transparent; }
.buzzer.is-ringing .bell-svg { animation: ring .55s ease; }
.buzzer.is-ringing::after { animation: pulse .7s ease-out; }
@keyframes ring { 0%,100% { transform: rotate(0) } 20% { transform: rotate(-12deg) } 45% { transform: rotate(10deg) } 70% { transform: rotate(-6deg) } }
@keyframes pulse { 0% { opacity: .9; transform: scale(.9) } 100% { opacity: 0; transform: scale(1.35) } }
.buzz-status {
  position: absolute; bottom: 4%; z-index: 2;
  background: var(--surface); color: var(--text);
  border: var(--line) solid var(--outline); border-radius: 999px;
  padding: 8px 18px; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.buzz-status.is-on { background: var(--yellow); color: #000; transform: scale(1.06); }
.chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--text);
  border: var(--line) solid var(--outline); border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.chip .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--team); border: 2px solid var(--outline); }
.chip-seat { top: 7%; inset-inline-start: -2%; animation: float 5s ease-in-out infinite; }
.chip-delta { bottom: 20%; inset-inline-end: 0; background: var(--yellow); color: #000; font-family: var(--font-display); font-size: 1.15rem; animation: float 6s ease-in-out 1s infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* ---------- How to play ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; background: var(--surface);
  border: var(--line) solid var(--outline); border-radius: var(--r-lg);
  padding: 22px 20px 24px;
}
.step-num {
  position: absolute; top: -16px; inset-inline-start: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow); border: var(--line) solid var(--outline);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1;
}
.step h3 { font-size: 1.3rem; margin-top: 16px; }
.step p { margin-top: 8px; color: var(--text-2); }
.mock { height: 168px; margin-top: 8px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--surface-2); padding: 14px; overflow: hidden; }

.code-card {
  width: 100%; max-width: 230px; background: var(--yellow); color: #000;
  border: var(--line) solid var(--outline); border-radius: var(--r-md);
  padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px;
}
.code-label { font-size: .8rem; font-weight: 700; grid-column: 1 / -1; }
.code { font-family: "Belanosima", var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .03em; line-height: 1.1; overflow: hidden; }
.qr { width: 60px; height: 60px; max-width: none; fill: #000; background: #fff; padding: 4px; border-radius: 4px; border: 2px solid #000; }

.team-cards { width: 100%; max-width: 250px; display: grid; gap: 8px; }
.team-cards li {
  display: flex; align-items: center; gap: 10px;
  background: var(--team); color: #000;
  border: var(--line) solid var(--outline); border-radius: var(--r-sm);
  padding: 6px 10px; font-weight: 700; font-size: .95rem;
}
.team-cards li:nth-child(2) { color: #fff; }
.team-cards .team-name { flex: 1; }
.avatars { display: inline-flex; }
.avatars i { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #000; margin-inline-start: -6px; }
.avatars i:first-child { margin-inline-start: 0; }
.online { width: 10px; height: 10px; border-radius: 50%; background: var(--lamp-green); border: 2px solid #000; }

.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 240px; }
.cat { padding: 6px 12px; border: var(--line) solid var(--outline); border-radius: 999px; font-weight: 700; font-size: .92rem; color: #000; }
.cat-0 { background: var(--aqua); } .cat-1 { background: var(--olive); } .cat-2 { background: var(--peach); } .cat-3 { background: var(--yellow); }
.pill { padding: 6px 14px; border-radius: 999px; background: #000; color: #fff; font-weight: 700; font-size: .9rem; }
:root[data-theme="dark"] .pill { background: #0B101D; }

.seats { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 250px; }
.mini-buzzer {
  flex: none; width: 78px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, var(--buzz-light), var(--buzz-deep) 72%);
  box-shadow: 0 6px 0 var(--buzz-rim); display: grid; place-items: center;
}
.mini-buzzer .bell-svg { width: 56%; aspect-ratio: 140 / 124; color: #fff; --face: transparent; }
.seats ul { display: grid; gap: 8px; flex: 1; }
.seats li {
  display: flex; align-items: center; gap: 8px; background: var(--surface); color: var(--text);
  border: var(--line) solid var(--outline); border-radius: var(--r-sm); padding: 5px 8px; font-size: .9rem; font-weight: 700;
}
.seats b { width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: #000; border: 2px solid var(--outline); display: grid; place-items: center; font-family: var(--font-display); font-size: .9rem; }
.seats span { flex: 1; }
.seats em { font-style: normal; font-size: .72rem; color: var(--text-2); }
.seats li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--team); border: 2px solid var(--outline); }

/* ---------- The round (countdown stage: always dark) ---------- */
.round { background: var(--navy); color: #fff; }
.round .section-head p { color: rgba(255,255,255,.75); }
.round-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .round-grid { grid-template-columns: 340px 1fr; gap: 56px; } }
.stage {
  background: var(--navy-deep); border: 2px solid rgba(255,255,255,.14); border-radius: var(--r-lg);
  padding: 28px 24px; display: grid; justify-items: center; gap: 14px;
}
.streetlight {
  display: grid; gap: 14px; padding: 16px; border-radius: 40px;
  background: #0A0A18; border: 2px solid rgba(255,255,255,.14);
}
.lamp { width: 54px; height: 54px; border-radius: 50%; opacity: .18; background: var(--c); animation: lamp 4.8s linear infinite; }
.lamp-red { --c: var(--lamp-red); animation-delay: 0s; }
.lamp-amber { --c: var(--lamp-amber); animation-delay: -3.6s; }
.lamp-green { --c: var(--lamp-green); animation-delay: -2.4s; }
@keyframes lamp { 0%, 24.9% { opacity: 1; box-shadow: 0 0 28px 8px var(--c); } 25%, 100% { opacity: .18; box-shadow: none; } }
.numeral { position: relative; height: 84px; width: 100%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 4.25rem; line-height: 1; }
.numeral .n { position: absolute; opacity: 0; animation: numeral 4.8s linear infinite; }
.n-3 { animation-delay: 0s; } .n-2 { animation-delay: -3.6s; } .n-1 { animation-delay: -2.4s; } .n-go { animation-delay: -1.2s; font-size: .8em; }
@keyframes numeral { 0% { opacity: 1; transform: scale(1.15); } 20% { transform: scale(1); } 24.9% { opacity: 1; } 25%, 100% { opacity: 0; } }
.stage-caption { color: rgba(255,255,255,.7); font-weight: 600; }
.timer-card {
  margin-top: 8px; width: 100%; display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.14); border-radius: var(--r-md); padding: 10px 14px;
}
.timer-card img { width: 72px; height: auto; flex: none; }
.timer-card > div { display: grid; }
.timer-value { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1.1; width: fit-content; }
.timer-caption { color: rgba(255,255,255,.75); font-weight: 600; }

.timeline { display: grid; gap: 0; position: relative; }
.tl-item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 22px; }
.tl-item::before { content: ""; position: absolute; top: 40px; bottom: 0; inset-inline-start: 19px; width: 2px; background: rgba(255,255,255,.18); }
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #000; border: 2px solid #000; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.tl-item:nth-child(3) .tl-dot { background: var(--lamp-green); }
.tl-item:nth-child(4) .tl-dot, .tl-item:nth-child(5) .tl-dot { background: var(--yellow); }
.tl-item:nth-child(7) .tl-dot { background: var(--peach); }
.tl-item strong { font-family: var(--font-display); font-size: 1.2rem; display: block; line-height: 1.4; }
.tl-item p { color: rgba(255,255,255,.75); margin-top: 2px; }
.fair {
  margin-top: 28px; display: flex; gap: 18px; align-items: flex-start;
  background: rgba(87,185,208,.14); border: 2px solid var(--aqua); border-radius: var(--r-lg); padding: 22px 24px;
}
.fair .icon { width: 36px; height: 36px; flex: none; color: var(--aqua); }
.fair h3 { font-size: 1.3rem; }
.fair p { margin-top: 6px; color: rgba(255,255,255,.8); }

/* ---------- Scoring ---------- */
.scoring-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .scoring-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.start {
  display: inline-block; background: var(--surface); border: var(--line) solid var(--outline); border-radius: var(--r-sm);
  padding: 10px 18px; font-size: 1.15rem; font-weight: 700; margin-bottom: 18px;
}
.start strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--red); }
.rules { display: grid; gap: 12px; }
.rule {
  display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 16px;
  background: var(--surface); border: var(--line) solid var(--outline); border-radius: var(--r-md); padding: 12px 16px 12px 12px;
}
.rule strong { font-size: 1.1rem; display: block; line-height: 1.4; }
.rule-note { color: var(--text-2); font-size: .95rem; }
.delta {
  display: grid; place-items: center; height: 56px; border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: #fff; border: var(--line) solid var(--outline);
  direction: ltr;
}
.delta-up { background: var(--success); } .delta-down { background: var(--danger); } .delta-zero { background: #9E9E9E; color: #000; }
.board-col { display: grid; gap: 20px; }
.board { background: var(--surface); border: var(--line) solid var(--outline); border-radius: var(--r-lg); overflow: hidden; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--aqua); color: #000; border-bottom: var(--line) solid var(--outline); }
.board-head strong { font-family: var(--font-display); font-size: 1.25rem; }
.board-head span { font-size: .9rem; font-weight: 600; }
.board-rows { padding: 10px; display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 28px 16px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.row-lead { background: var(--yellow); color: #000; box-shadow: 0 0 0 2px var(--outline) inset, 0 4px 14px rgba(255,165,0,.35); }
.rank { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-align: center; }
.swatch { width: 16px; height: 16px; border-radius: 50%; background: var(--team); border: 2px solid var(--outline); }
.row .team-name { font-weight: 700; }
.pts { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.pts small { font-size: .75rem; font-weight: 600; font-family: var(--font-body); }
.tag { font-size: .85rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #fff; direction: ltr; }
.tag-up { background: var(--success); } .tag-down { background: var(--danger); }
.steal { background: var(--peach); color: #000; border: var(--line) solid var(--outline); border-radius: var(--r-lg); padding: 22px 24px; position: relative; }
.steal-tag { display: inline-block; background: #000; color: #fff; border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 700; margin-bottom: 10px; }
.steal h3 { font-size: 1.4rem; }
.steal p { margin-top: 6px; }

/* ---------- Host tools ---------- */
.tools { display: grid; gap: 16px; }
@media (min-width: 640px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tools { grid-template-columns: repeat(3, 1fr); } }
.tool { background: var(--surface); border: var(--line) solid var(--outline); border-radius: var(--r-lg); padding: 22px 22px 24px; }
.tool-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--surface-2); border: var(--line) solid var(--outline); color: var(--text); overflow: hidden; }
.tool-icon .icon { width: 28px; height: 28px; }
.tool-icon-img { background: #fff; }
.tool-icon img { width: 44px; height: auto; margin-top: 3px; }
.tool h3 { font-size: 1.25rem; margin-top: 14px; }
.tool p { margin-top: 6px; color: var(--text-2); }
.host-extra { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .host-extra { grid-template-columns: 1.3fr 1fr; } }
.recover, .ticket { display: flex; gap: 18px; align-items: flex-start; border: var(--line) solid var(--outline); border-radius: var(--r-lg); padding: 22px 24px; }
.recover { background: rgba(87,185,208,.16); }
.recover .tool-icon { flex: none; background: var(--aqua); color: #000; }
.recover h3, .ticket h3 { font-size: 1.35rem; }
.recover p, .ticket p { margin-top: 6px; }
.ticket { background: var(--yellow); color: #000; }
.ticket-icon { flex: none; width: 60px; height: 60px; border-radius: 50%; background: #fff; border: var(--line) solid #000; display: grid; place-items: center; color: #000; }
.ticket-icon .icon-svg { width: 30px; height: 30px; }
.ticket-note { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); border: var(--line) solid var(--outline); border-radius: var(--r-md); margin-bottom: 12px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; width: 26px; height: 26px; flex: none; border-radius: 50%; border: var(--line) solid var(--outline); }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--text); inset-inline-start: 50%; top: 50%; translate: -50% -50%; }
[dir="rtl"] .faq-mark::before, [dir="rtl"] .faq-mark::after { translate: 50% -50%; }
.faq-mark::before { width: 12px; height: 2px; }
.faq-mark::after { width: 2px; height: 12px; transition: transform .2s ease; }
.faq[open] .faq-mark::after { transform: scaleY(0); }
.faq p { padding: 0 20px 18px; color: var(--text-2); }

/* ---------- Final CTA ---------- */
.cta { background: var(--red); color: #fff; padding-block: clamp(48px, 7vw, 88px); border-top: 3px solid #000; }
.cta-grid { display: grid; gap: 28px; align-items: center; justify-items: center; text-align: center; }
@media (min-width: 800px) { .cta-grid { grid-template-columns: 240px 1fr; text-align: start; justify-items: start; } }
.cta-bell .bell-svg { width: 210px; aspect-ratio: 140 / 156; color: #fff; --face: transparent; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.cta p { margin-top: 8px; font-size: 1.2rem; opacity: .95; }
.cta .btn { margin-top: 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--surface-2); border-top: var(--line) solid var(--outline); padding-block: 32px; color: var(--text); }
.footer-row { display: grid; gap: 16px; justify-items: start; }
@media (min-width: 800px) { .footer-row { grid-template-columns: auto 1fr auto; align-items: center; } }
.brand-footer .logo-svg { height: 52px; width: 132px; }
.footer .logo-svg { color: var(--text); --face: var(--surface); }
.rights { color: var(--text-2); font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; }
.footer-links a { font-weight: 700; }
.footer-links span { color: var(--text-2); }

/* ---------- Privacy policy ---------- */
.doc-wrap { padding-block: clamp(40px, 7vw, 88px); }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.doc-updated { margin-top: 10px; display: inline-block; background: var(--yellow); color: var(--on-accent); border: var(--line) solid var(--outline); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: .95rem; }
.doc-intro { margin-top: 22px; font-size: 1.15rem; color: var(--text-2); }
.doc-card { margin-top: 16px; background: var(--surface); border: var(--line) solid var(--outline); border-radius: var(--r-lg); padding: 22px 24px; }
.doc-card h2 { font-size: 1.3rem; }
.doc-card p { margin-top: 8px; color: var(--text-2); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .chip, .lamp, .numeral .n, .buzzer::after, .buzzer .bell-svg { animation: none !important; }
  .lamp-green { opacity: 1; box-shadow: 0 0 28px 8px var(--c); }
  .n-go { opacity: 1; }
  .btn:hover { transform: none; }
}
