/* ViralVote website. Tokens mirror core/ui (OnboardingPalette stage, DarkColors accents, GameCtaButton). */

@font-face { font-family: "Passion One"; font-weight: 400; font-display: swap; src: url("/assets/fonts/passionone-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Passion One"; font-weight: 700; font-display: swap; src: url("/assets/fonts/passionone-latin-700.woff2") format("woff2"); }
@font-face {
  font-family: "Heebo"; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/heebo-latin-400-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Heebo"; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/heebo-hebrew-400-800.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik"; font-weight: 600 900; font-display: swap;
  src: url("/assets/fonts/rubik-hebrew-600-900.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

:root {
  color-scheme: dark;
  --stage-top: #0846B8;
  --stage-upper: #053592;
  --stage-mid: #032B79;
  --stage-bottom: #062F80;
  --vignette: #020E3A;
  --bloom: #2B6CF2;
  --night: #071645;
  --ink: #FFFFFF;
  --ink-soft: #C9D6F5;
  --ink-muted: #8EA3D6;
  --ink-faint: #6F84BD;
  --gold: #FFD34E;
  --gold-light: #FFE55A;
  --gold-mid: #FFD843;
  --gold-deep: #FFC12E;
  --gold-shade: #E59A00;
  --gold-ink: #0A1A44;
  --lavender: #B6B4FF;
  --lavender-deep: #8F8DE6;
  --mint: #16C691;
  --mint-bright: #01EEBC;
  --coral: #FF7A91;
  --orange: #FFB246;
  --teal: #42D6C4;
  --sky: #6CA6FF;
  --yellow: #FCD558;
  --red: #FF6B6B;
  --magenta: #E879F9;
  --violet: #C9A7FF;
  --panel-top: rgba(15, 38, 92, .92);
  --panel-bottom: rgba(9, 26, 69, .94);
  --edge-light: #6E9BFF;
  --edge-mid: #3259B8;
  --edge-deep: #10286A;
  --wordmark: linear-gradient(90deg, var(--lavender), var(--mint) 55%, var(--yellow));
  --font-display: "Passion One", "Rubik", "Heebo", system-ui, sans-serif;
  --font-body: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --gutter: 20px;
  --max: 1200px;
  --header-h: 68px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (min-width: 760px) { :root { --gutter: 32px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--vignette); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--vignette);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
:lang(he) { --font-display: "Rubik", "Passion One", "Heebo", system-ui, sans-serif; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(182, 180, 255, .45); color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 800; text-decoration: none; transform: translateY(-160%); transition: transform .2s var(--ease-out); }
.skip:focus { transform: none; }

/* The painted night every page sits on. */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(43, 108, 242, .55), transparent 70%),
    radial-gradient(50% 40% at 8% 30%, rgba(232, 121, 249, .16), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(1, 238, 188, .10), transparent 70%),
    linear-gradient(180deg, var(--stage-top) 0%, var(--stage-mid) 38%, var(--night) 72%, var(--vignette) 100%);
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 32% 68%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 14%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 74% 52%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 82%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 44% 92%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 6% 78%, rgba(255,255,255,.35), transparent 60%);
  opacity: .8;
}

.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
.display { font-family: var(--font-display); font-weight: 400; line-height: .95; letter-spacing: .005em; text-transform: uppercase; margin: 0; }
:lang(he) .display { font-weight: 900; line-height: 1.05; letter-spacing: 0; }
.h1 { font-size: clamp(48px, 9.5vw, 104px); }
.h2 { font-size: clamp(38px, 6vw, 68px); }
.h3 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1; }
.accent { background: var(--wordmark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 34em; margin: 0; }
.muted { color: var(--ink-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 6px; border-radius: 999px;
  background: rgba(255, 211, 78, .12); border: 1px solid rgba(255, 211, 78, .35);
  color: var(--gold); font-family: var(--font-display); font-size: 16px; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
}
:lang(he) .eyebrow { letter-spacing: 0; font-weight: 800; font-size: 15px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* Buttons */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 22px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; line-height: 1;
  transition: transform .18s var(--ease-spring), box-shadow .2s, filter .2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
:lang(he) .btn { font-weight: 800; letter-spacing: 0; font-size: 19px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-gold {
  color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-mid) 45%, var(--gold-deep) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.65), inset 0 -4px 0 var(--gold-shade), 0 14px 34px rgba(255, 193, 26, .35);
}
.btn-lav {
  color: #0B1228;
  background: linear-gradient(180deg, #D3D2FF 0%, var(--lavender) 55%, var(--lavender-deep) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -4px 0 #6F6CCB, 0 14px 34px rgba(182, 180, 255, .3);
}
.btn-ghost {
  color: var(--ink); background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1.5px rgba(201, 214, 245, .35);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { --h: 44px; padding: 0 20px; font-size: 18px; }
.btn .arrow { transition: transform .2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* Glass panels, the in-app card look */
.glass {
  position: relative;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 24px 60px rgba(2, 14, 58, .55);
  isolation: isolate;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: -1;
  background: linear-gradient(160deg, var(--edge-light), var(--edge-mid) 40%, var(--edge-deep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.scrolled { background: rgba(5, 22, 74, .9); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 1px 0 rgba(110, 155, 255, .18); }
.site-header .bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.wordmark { font-family: "Passion One", var(--font-display); font-size: 28px; line-height: 1; letter-spacing: .02em; background: var(--wordmark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: none; margin-inline-start: auto; gap: 4px; align-items: center; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-soft); text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(201, 214, 245, .28); }
.lang:hover { color: #fff; background: rgba(255,255,255,.08); }
.menu-btn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); cursor: pointer; }
.menu-btn span { position: relative; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; inset-inline-start: 0; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease-out); }
.menu-btn span::before { transform: translateY(-6px); }
.menu-btn span::after { transform: translateY(6px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: rotate(45deg); }
.menu-open .menu-btn span::after { transform: rotate(-45deg); }
.header-cta { display: none; }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; padding: 12px var(--gutter) 24px;
  background: rgba(5, 22, 74, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 24px 40px rgba(2, 14, 58, .6);
  display: grid; gap: 4px;
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s var(--ease-out), opacity .2s, visibility .25s;
}
.menu-open .mobile-nav { transform: none; opacity: 1; visibility: visible; }
.mobile-nav a { padding: 14px 8px; font-size: 20px; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(110,155,255,.15); }
.mobile-nav .btn { margin-top: 14px; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .header-actions { margin-inline-start: 8px; }
  .menu-btn, .mobile-nav { display: none; }
  .header-cta { display: inline-flex; }
}

/* Hero */
.hero { position: relative; padding: 24px 0 40px; overflow-x: clip; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-copy .h1 span { display: block; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: inline-flex; height: 54px; border-radius: 12px; transition: transform .18s var(--ease-spring); }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 100%; width: auto; }
.store-badge.play img { height: 80px; margin: -13px -10px; max-width: none; }
.soon {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px rgba(201, 214, 245, .28);
}
.soon .dots { display: inline-flex; gap: 4px; padding: 10px; border-radius: 50%; background: rgba(255, 211, 78, .14); }
.soon .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: blink 1.4s infinite; }
.soon .dots i:nth-child(2) { animation-delay: .2s; }
.soon .dots i:nth-child(3) { animation-delay: .4s; }
.soon b { display: block; font-family: var(--font-display); font-size: 21px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; font-weight: 400; }
:lang(he) .soon b { font-weight: 800; letter-spacing: 0; font-size: 18px; }
.soon small { display: block; color: var(--ink-muted); font-size: 13px; line-height: 1.3; margin-top: 3px; }
@keyframes blink { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-stage .halo { position: absolute; width: 520px; height: 520px; max-width: 120%; border-radius: 50%; background: radial-gradient(closest-side, rgba(43,108,242,.7), rgba(43,108,242,0)); filter: blur(8px); }
.float { position: absolute; z-index: 3; filter: drop-shadow(0 18px 28px rgba(2, 14, 58, .6)); animation: bob 6s ease-in-out infinite; will-change: transform; }
.float.rocket { width: 120px; top: 2%; inset-inline-start: 4%; --r: -16deg; animation-delay: -1s; }
.float.freeze { width: 104px; bottom: 10%; inset-inline-start: 0; --r: -8deg; animation-delay: -3s; }
.float.shield { width: 104px; top: 30%; inset-inline-end: 0; --r: 10deg; animation-delay: -2s; }
.float.coins { width: 112px; bottom: 2%; inset-inline-end: 6%; --r: 0deg; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(calc(var(--r) + 3deg)); } }
.chip {
  position: absolute; z-index: 4; padding: 8px 14px 7px; border-radius: 999px;
  font-family: var(--font-display); font-size: 17px; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  color: #0B1228; box-shadow: 0 10px 24px rgba(2, 14, 58, .45);
  animation: bob 7s ease-in-out infinite; --r: 0deg;
}
:lang(he) .chip { font-weight: 800; letter-spacing: 0; font-size: 15px; }
.chip.c1 { bottom: 30%; inset-inline-start: -2%; background: linear-gradient(90deg, #8AE7FF, var(--sky)); animation-delay: -2.5s; }
.chip.c2 { top: 27%; inset-inline-start: 0; background: linear-gradient(90deg, var(--coral), var(--orange)); animation-delay: -1.2s; }
.chip.c3 { top: 62%; inset-inline-end: -3%; background: linear-gradient(90deg, var(--gold-light), var(--gold-deep)); animation-delay: -4.2s; }
.chip.c4 { top: 22%; inset-inline-end: -2%; background: linear-gradient(90deg, var(--lavender), var(--violet)); animation-delay: -3.3s; }
@media (min-width: 960px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 24px; }
  .hero-stage { min-height: 660px; }
  .float.rocket { width: 150px; }
  .float.shield, .float.freeze { width: 124px; }
  .float.coins { width: 132px; }
}

/* Player faces as racers around the phone (the CC0 avatar set) */
.float.face { width: 104px; height: 104px; border-radius: 50%; border: 5px solid #fff; background: #1E2749; box-shadow: 0 0 0 6px rgba(43,108,242,.35), 0 18px 34px rgba(2,14,58,.6); filter: none; }
.float.face.rocket { top: 6%; inset-inline-start: 6%; }
.float.face.shield { top: 34%; inset-inline-end: 2%; width: 88px; height: 88px; }
.float.face.freeze { bottom: 12%; inset-inline-start: 2%; width: 92px; height: 92px; }
.float.face.coins { bottom: 4%; inset-inline-end: 8%; width: 80px; height: 80px; }
@media (min-width: 960px) { .float.face.rocket { width: 124px; height: 124px; } .float.face.shield, .float.face.freeze { width: 104px; height: 104px; } }

/* Phone frame around real screenshots */
.phone {
  --w: 280px;
  position: relative; z-index: 2; width: var(--w); aspect-ratio: 9 / 19.5; border-radius: calc(var(--w) * .16);
  padding: calc(var(--w) * .035); background: linear-gradient(160deg, #2A3770, #0B1230 55%, #1A2452);
  box-shadow: inset 0 0 0 1.5px rgba(160, 190, 255, .35), 0 40px 80px rgba(2, 14, 58, .7), 0 0 0 1px rgba(0,0,0,.6);
}
.phone::after { content: ""; position: absolute; top: calc(var(--w) * .06); left: 50%; width: 30%; height: calc(var(--w) * .085); transform: translateX(-50%); border-radius: 999px; background: #04070F; z-index: 2; }
.phone .screen { width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .13); background: var(--stage-mid); }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.placeholder .screen { display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, rgba(43,108,242,.6), transparent 60%), linear-gradient(180deg, var(--stage-top), var(--vignette)); }
@media (min-width: 960px) { .phone.hero-phone { --w: 320px; } }

/* Ticker band */
.ticker { position: relative; margin: 8px 0 0; padding: 18px 0; overflow: hidden; transform: rotate(-2deg); background: linear-gradient(90deg, var(--lavender), var(--mint) 50%, var(--yellow)); box-shadow: 0 20px 50px rgba(2, 14, 58, .5); }
[dir="rtl"] .ticker { transform: rotate(2deg); }
.ticker-track { display: flex; width: max-content; gap: 0; animation: marquee 48s linear infinite; }
[dir="rtl"] .ticker-track { animation-name: marquee-rtl; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding-inline-end: 22px; font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); color: #0B1228; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; line-height: 1; }
:lang(he) .ticker-track span { font-weight: 900; letter-spacing: 0; }
.ticker-track span::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: #0B1228; transform: rotate(45deg); opacity: .8; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* Sections */
.section { position: relative; padding: 88px 0; }
.section-head { display: grid; gap: 16px; justify-items: center; text-align: center; margin-bottom: 48px; }
.section-head .lede { margin-inline: auto; }
@media (min-width: 960px) { .section { padding: 120px 0; } .section-head { margin-bottom: 64px; } }

/* How it works */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step { padding: 30px 26px 28px; display: grid; gap: 12px; align-content: start; }
.step-num { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: "Passion One", var(--font-display); font-size: 30px; color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); box-shadow: inset 0 -3px 0 var(--gold-shade), 0 10px 24px rgba(255, 193, 26, .3); }
.step h3 { margin: 6px 0 0; }
.step p { margin: 0; color: var(--ink-soft); }
.step .mini { display: flex; gap: 6px; margin-top: 8px; }
.step .mini i { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; position: relative; }
.step .mini i::after { content: ""; position: absolute; inset: 0; width: var(--p, 40%); border-radius: inherit; background: linear-gradient(90deg, var(--mint-bright), var(--mint)); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Screens strip */
.screens { display: flex; gap: 28px; justify-content: center; align-items: flex-end; flex-wrap: nowrap; overflow-x: auto; padding: 20px var(--gutter) 40px; margin-inline: calc(var(--gutter) * -1); scroll-snap-type: x mandatory; scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screens figure { margin: 0; flex: 0 0 auto; display: grid; gap: 16px; justify-items: center; scroll-snap-align: center; }
.screens figure:nth-child(odd) { transform: translateY(-24px); }
.screens .phone { --w: 232px; }
.screens figcaption { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: 20px; color: var(--ink-soft); }
:lang(he) .screens figcaption { font-weight: 800; letter-spacing: 0; }
@media (max-width: 1080px) { .screens { justify-content: flex-start; } }

/* Feature bento */
.bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
.tile { overflow: hidden; padding: 28px; min-height: 260px; display: grid; align-content: end; gap: 10px; }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--ink-soft); max-width: 30em; }
.tile .art { position: absolute; pointer-events: none; z-index: -1; }
.tile .cover { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.tile .cover img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.tile .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,26,69,0) 10%, rgba(9,26,69,.75) 55%, rgba(9,26,69,.98)); }
.tile .tag { justify-self: start; padding: 6px 12px 5px; border-radius: 999px; background: rgba(255, 211, 78, .14); color: var(--gold); font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-size: 15px; line-height: 1; }
:lang(he) .tile .tag { font-weight: 800; letter-spacing: 0; }
.tile.mainEvent { min-height: 380px; }
.tile .art.trophy { width: 150px; top: 18px; inset-inline-end: 18px; }
.tile .art.globe { width: 230px; top: 6px; inset-inline-end: -10px; }
.tile .art.castle { width: 270px; top: -20px; inset-inline-end: -40px; opacity: .95; }
.tile .art.crown { width: 110px; top: 22px; inset-inline-end: 26px; }
.tile .art.points { width: 120px; top: 28px; inset-inline-end: 120px; }
.tile .weapons { position: absolute; top: 20px; inset-inline-end: 16px; display: flex; gap: 4px; z-index: -1; }
.tile .weapons img { width: 82px; filter: drop-shadow(0 10px 16px rgba(2,14,58,.55)); }
.tile .weapons img:nth-child(2) { transform: translateY(24px) rotate(-8deg); }
.tile .weapons img:nth-child(3) { transform: rotate(8deg); }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile.mainEvent { grid-column: span 4; grid-row: span 2; }
  .tile.leagues { grid-column: span 2; }
  .tile.friends { grid-column: span 2; }
  .tile.powerUps { grid-column: span 3; }
  .tile.streak { grid-column: span 3; }
  .tile.rank { grid-column: span 6; min-height: 220px; }
  .tile.mainEvent h3 { font-size: clamp(34px, 4vw, 52px); }
}

.tile.safe { display: flex; flex-direction: column; justify-content: flex-end; }
.tile.safe .crop { position: relative; height: 200px; margin-bottom: 20px; border-radius: 18px; overflow: hidden; background: rgba(2,14,58,.55); box-shadow: 0 16px 34px rgba(2,14,58,.5), inset 0 0 0 1.5px rgba(160,190,255,.22); }
.tile.safe .crop img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tile.safe.powerUps .crop img, .tile.safe.rank .crop img { object-fit: contain; object-position: center; padding: 14px; }
.tile.safe.rank .crop { max-width: 720px; height: 210px; }
.tile-faces { display: flex; margin: 0 0 22px 14px; }
.tile-faces img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #fff; margin-inline-start: -14px; background: #1E2749; box-shadow: 0 10px 20px rgba(2,14,58,.5); }
.streak-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 26px; max-width: 420px; }
.streak-dots i { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: "Passion One", var(--font-display); font-size: 22px; color: var(--ink-muted); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px rgba(160,190,255,.25); }
.streak-dots i.on { color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-light), var(--orange)); box-shadow: 0 0 18px rgba(255,178,70,.45); }
.final .art-row .face { width: 70px; height: 70px; border-radius: 50%; border: 4px solid #fff; background: #1E2749; }
.final .art-row .face:nth-child(2) { width: 88px; height: 88px; }

/* Topics rail, the intro deck's covers */
.topics { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.topics::-webkit-scrollbar { display: none; }
.topic { position: relative; aspect-ratio: 18 / 25; border-radius: var(--radius-lg); overflow: hidden; scroll-snap-align: start; display: grid; align-content: end; padding: 22px; isolation: isolate; box-shadow: 0 24px 50px rgba(2,14,58,.55), inset 0 0 0 1.5px rgba(160,190,255,.25); transition: transform .35s var(--ease-out); }
.topic:hover { transform: translateY(-6px) rotate(-.5deg); }
.topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease-out); }
.topic:hover img { transform: scale(1.05); }
.topic::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,14,58,0) 35%, rgba(2,14,58,.88) 85%); }
.topic h3 { margin: 0 0 6px; font-size: 38px; }
.topic p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
@media (min-width: 1100px) { .topics { grid-auto-columns: 1fr; overflow: visible; } }

/* Friends band */
.friends-panel { display: grid; gap: 32px; padding: 36px 26px; overflow: hidden; align-items: center; }
.friends-panel .copy { display: grid; gap: 18px; justify-items: start; }
.invite-card { position: relative; justify-self: center; width: min(100%, 360px); padding: 24px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1.5px rgba(160,190,255,.3); display: grid; gap: 14px; transform: rotate(2deg); }
[dir="rtl"] .invite-card { transform: rotate(-2deg); }
.invite-card .faces { display: flex; }
.invite-card .faces img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid #0F265C; margin-inline-end: -14px; background: #1E2749; }
.invite-card .code { direction: ltr; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 800; font-size: 30px; letter-spacing: .12em; text-align: center; padding: 12px; border-radius: 14px; background: rgba(2,14,58,.55); box-shadow: inset 0 0 0 1.5px rgba(255,211,78,.35); color: var(--gold); }
.invite-card .link { direction: ltr; font-size: 14px; color: var(--ink-muted); text-align: center; word-break: break-all; }
@media (min-width: 860px) { .friends-panel { grid-template-columns: 1.2fr .8fr; padding: 56px; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: var(--radius-md); background: rgba(15, 38, 92, .6); box-shadow: inset 0 0 0 1.5px rgba(110,155,255,.22); transition: background .2s; }
.faq details[open] { background: rgba(15, 38, 92, .9); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD34E' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 22px; color: var(--ink-soft); }
.faq .answer p { margin: 0; }

/* Final CTA */
.final { text-align: center; padding: 56px 24px; display: grid; gap: 22px; justify-items: center; overflow: hidden; }
.final .art-row { display: flex; gap: 10px; align-items: flex-end; margin-bottom: -4px; }
.final .art-row img { width: 74px; filter: drop-shadow(0 12px 20px rgba(2,14,58,.6)); }
.final .art-row img:nth-child(2) { width: 96px; }
.final .store-row { justify-content: center; }

/* Beta */
.beta { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 28px; }

/* Footer */
.site-footer { position: relative; margin-top: 40px; padding: 56px 0 40px; background: linear-gradient(180deg, rgba(2,14,58,0), rgba(2,14,58,.85) 30%); border-top: 1px solid rgba(110,155,255,.14); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; }
.footer-brand p { margin: 0; color: var(--ink-muted); max-width: 26em; }
.footer-col h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
:lang(he) .footer-col h2 { font-weight: 800; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(110,155,255,.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--ink-faint); font-size: 14px; }
.footer-base a { color: var(--ink-muted); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } .footer-brand { grid-column: auto; } }

/* Page hero for inner pages */
.page-hero { padding: 40px 0 28px; display: grid; gap: 18px; justify-items: start; }
.page-hero .h1 { font-size: clamp(44px, 7vw, 84px); }
.page-hero.center { justify-items: center; text-align: center; }
@media (min-width: 960px) { .page-hero { padding: 72px 0 40px; } }

/* About */
.about-grid { display: grid; gap: 18px; }
.about-grid .glass { padding: 28px; }
.about-grid h3 { margin: 0 0 10px; }
.about-grid p { margin: 0; color: var(--ink-soft); }
.values { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.value { padding: 24px; border-radius: var(--radius-md); background: rgba(15, 38, 92, .55); box-shadow: inset 0 0 0 1.5px rgba(110,155,255,.2); }
.value h3 { margin: 0 0 8px; font-size: 26px; }
.value p { margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (min-width: 860px) { .about-grid { grid-template-columns: repeat(3, 1fr); } }

.credits h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: .1em; color: var(--ink-muted); }
:lang(he) .credits h2 { letter-spacing: 0; }
.credits ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--ink-faint); font-size: 14px; }

/* Support */
.contact-card { display: grid; gap: 14px; padding: 30px; justify-items: start; }
.contact-card .mail { font-family: "Passion One", var(--font-display); font-size: clamp(24px, 4vw, 38px); text-decoration: none; background: var(--wordmark); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; unicode-bidi: isolate; line-height: 1.1; overflow-wrap: anywhere; }
.support-side .contact-card .mail { font-size: clamp(22px, 1.9vw, 27px); }
.support-grid { display: grid; gap: 28px; }
.quick-links { display: grid; gap: 10px; }
.quick-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(15,38,92,.55); box-shadow: inset 0 0 0 1.5px rgba(110,155,255,.2); text-decoration: none; font-weight: 700; transition: background .2s, transform .2s var(--ease-out); }
.quick-links a:hover { background: rgba(15,38,92,.9); transform: translateX(3px); }
[dir="rtl"] .quick-links a:hover { transform: translateX(-3px); }
.quick-links a::after { content: "→"; color: var(--gold); }
[dir="rtl"] .quick-links a::after { content: "←"; }
@media (min-width: 960px) { .support-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } .support-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; } }

/* Legal documents */
.doc-layout { display: grid; gap: 28px; padding-bottom: 40px; }
.doc { padding: 28px 22px; min-width: 0; }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 3vw, 32px); line-height: 1.05; letter-spacing: .01em; margin: 44px 0 14px; color: #fff; scroll-margin-top: calc(var(--header-h) + 20px); }
:lang(he) .doc h2 { font-weight: 800; letter-spacing: 0; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; color: #fff; }
.doc p, .doc li { color: var(--ink-soft); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--gold); }
.doc a { color: var(--lavender); text-underline-offset: 3px; }
.doc strong { color: #fff; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: start; padding: 10px 12px; border-bottom: 1px solid rgba(110,155,255,.18); vertical-align: top; color: var(--ink-soft); }
.doc th { color: #fff; font-weight: 700; background: rgba(255,255,255,.04); }
.doc .summary, .doc > ul:first-of-type.summary { padding: 18px 22px 18px 40px; border-radius: var(--radius-md); background: rgba(255, 211, 78, .07); box-shadow: inset 0 0 0 1.5px rgba(255,211,78,.25); }
.doc-meta { color: var(--ink-muted); font-size: 15px; }
.doc-note { padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255,211,78,.08); box-shadow: inset 0 0 0 1.5px rgba(255,211,78,.25); color: var(--ink-soft); font-size: 15px; }
.toc { display: none; }
.toc h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
:lang(he) .toc h2 { font-weight: 800; letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--ink-muted); text-decoration: none; font-size: 14px; line-height: 1.35; border-inline-start: 2px solid transparent; }
.toc a:hover { color: #fff; background: rgba(255,255,255,.05); }
.toc a.active { color: #fff; border-color: var(--gold); background: rgba(255,211,78,.06); }
@media (min-width: 1000px) {
  .doc-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
  .doc { padding: 48px 56px; }
}
.doc-legal-en { direction: ltr; text-align: left; }

/* Join + Get: one centred card */
.focus { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; padding: 24px 0 64px; }
.focus-card { width: min(100%, 520px); padding: 34px 26px 30px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.focus-card .h1 { font-size: clamp(44px, 9vw, 72px); }
.code-box { width: 100%; padding: 18px 16px 16px; border-radius: var(--radius-md); background: rgba(2,14,58,.5); box-shadow: inset 0 0 0 1.5px rgba(255,211,78,.3); display: grid; gap: 8px; }
.code-box .label { font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.code-box .code { direction: ltr; unicode-bidi: isolate; display: flex; justify-content: center; gap: 4px 16px; flex-wrap: wrap; font-family: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace; font-weight: 800; font-size: clamp(30px, 10vw, 42px); letter-spacing: .1em; color: var(--gold); user-select: all; }
.copy-btn { justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 0; background: rgba(255,255,255,.08); color: var(--ink-soft); font-weight: 700; font-size: 14px; cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.focus-card .actions { width: 100%; display: grid; gap: 12px; }
.focus-card .actions .btn { width: 100%; }
.focus-card ol { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; width: 100%; text-align: start; }
.focus-card ol li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 16px; }
.focus-card ol li::before { content: counter(s); flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,211,78,.15); color: var(--gold); font-weight: 800; font-size: 14px; }
.focus-card .faces { display: flex; justify-content: center; }
.focus-card .faces img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #0F265C; margin-inline: -8px; background: #1E2749; }
[hidden] { display: none !important; }

/* Not found */
.lost { text-align: center; display: grid; gap: 18px; justify-items: center; padding: 64px 0 96px; }
.lost .num { font-family: "Passion One", var(--font-display); font-size: clamp(120px, 26vw, 240px); line-height: .8; background: var(--wordmark); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
