/* Gistpot landing page. Colours mirror app/lib/app/theme.dart (dark red). */

@font-face { font-family: Unbounded; src: url(fonts/Unbounded-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Unbounded; src: url(fonts/Unbounded-900.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: Bricolage; src: url(fonts/BricolageGrotesque-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Bricolage; src: url(fonts/BricolageGrotesque-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Bricolage; src: url(fonts/BricolageGrotesque-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --deep: #F7F2F2;
  --card: #FBF8F8;
  --line: rgba(31, 11, 11, .09);
  --line-hi: rgba(31, 11, 11, .18);
  --hi: #1F0B0B;
  --lo: #6B4B4B;
  --dim: #A38686;
  --accent: #DC2626;
  --accent-deep: #B91C1C;
  --accent2: #F97316;
  --ok: #22C55E;
  --cream: #FFF7EC;
  --radius: 22px;
  --wrap: 1180px;
  --head: Unbounded, 'Arial Black', system-ui, sans-serif;
  --body: Bricolage, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--hi);
  font: 400 17px/1.55 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 900; line-height: 1.02; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; border-radius: 8px; }

.wordmark { font-family: var(--head); font-weight: 900; letter-spacing: -.03em; text-decoration: none; }
.wordmark b { color: var(--accent); font-weight: 900; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 800 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-red { background: var(--accent); color: #fff; }
.btn-red:hover { background: #B91C1C; }
.btn-ghost { border-color: var(--line-hi); color: var(--hi); }
.btn-ghost:hover { border-color: var(--hi); }
.btn-outline { border-color: var(--accent); color: var(--hi); min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-big { min-height: 64px; padding: 0 32px; font-size: 18px; }
.btn .ver { font: 600 13px/1 var(--body); opacity: .8; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.35); }
.btn .ver:empty { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav .wordmark { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.nav .wordmark img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--lo); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--hi); }
.nav-cta { display: flex; gap: 10px; }
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-red { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 128px 0 72px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto 40%; height: 900px; z-index: -1;
  display: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 1;
  background-image: radial-gradient(rgba(31,11,11,.09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
@keyframes drift { to { transform: translate(-12%, 8%) scale(1.15); } }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--deep); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--lo); margin-bottom: 24px;
}
.eyebrow .flag { display: inline-flex; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; }
.eyebrow .flag i { flex: 1; background: #008751; }
.eyebrow .flag i:nth-child(2) { background: #fff; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 .scribble { position: relative; display: inline-block; }
.hero h1 .scribble svg { position: absolute; left: -2%; right: -2%; bottom: -.1em; width: 104%; height: .32em; overflow: visible; }
.hero h1 .scribble path { stroke: var(--accent2); stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1s .9s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--lo); max-width: 34ch; margin: 26px 0 34px; animation: fade .8s .35s both; }
.hero .lead strong { color: var(--hi); font-weight: 600; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; animation: fade .8s .45s both; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--dim); font-size: 14px; font-weight: 600; animation: fade .8s .55s both; }
.hero .meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero .meta svg { width: 16px; height: 16px; color: var(--accent); }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
.hero-stage { position: relative; display: grid; place-items: center; animation: fade 1s .3s both; }
.hero-stage .float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px; background: var(--deep); border: 1px solid var(--line-hi);
  font-size: 13px; font-weight: 600; box-shadow: 0 18px 40px rgba(31,11,11,.25);
  animation: bob 5s ease-in-out infinite;
}
.hero-stage .float b { display: block; font-size: 15px; }
.hero-stage .float small { color: var(--lo); font-weight: 400; }
.hero-stage .float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(239,68,68,.18); color: var(--accent); font-size: 18px; }
.float.f1 { left: -4%; top: 16%; }
.float.f2 { right: -6%; bottom: 20%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 960px) {
  .hero { padding-top: 112px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero .lead { max-width: 40ch; }
  .float.f1 { left: 0; } .float.f2 { right: 0; }
}
@media (max-width: 520px) {
  .hero .ctas .btn { flex: 1 1 100%; padding: 0 18px; font-size: 16px; }
  .float.f1 { top: 4%; } .float.f2 { bottom: 8%; }
}

/* ---------- phone ---------- */
.phone, .float {
  --bg: #120A0A; --deep: #1E1212; --card: #1A1010;
  --line: rgba(255, 255, 255, .09); --line-hi: rgba(255, 255, 255, .16);
  --hi: #FEF2F2; --lo: #C9A9A9; --dim: #8C6B6B; --accent: #EF4444;
  color: var(--hi);
}
.phone {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 9 / 19.2; flex: none;
  border-radius: calc(var(--w) * .15); padding: calc(var(--w) * .035);
  background: #050303; border: 1px solid #3a2626;
  box-shadow: 0 40px 80px -24px rgba(31,11,11,.45), 0 12px 24px -12px rgba(31,11,11,.3);
}
.phone::before { /* camera */
  content: ''; position: absolute; z-index: 5; top: calc(var(--w) * .06); left: 50%; width: calc(var(--w) * .085); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: #050303;
}
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * .118); background: var(--bg);
  font-size: calc(var(--w) * .043); line-height: 1.35; color: var(--hi);
}
.hero .phone { --w: min(320px, 78vw); transform: rotate(-3deg); }
.statusbar { display: flex; justify-content: space-between; padding: 1.1em 1.6em .3em; font-size: .8em; font-weight: 600; }
.statusbar i { font-style: normal; letter-spacing: .1em; }

/* app bar inside screens */
.ab { display: flex; align-items: center; gap: .6em; padding: .55em 1em .7em; border-bottom: 1px solid var(--line); }
.ab .back { color: var(--lo); font-size: 1.2em; }
.ab .who { flex: 1; min-width: 0; }
.ab .who b { display: block; font-size: 1em; }
.ab .who small { color: var(--ok); font-size: .74em; }
.ab .acts { display: flex; gap: .7em; color: var(--lo); }
.ab .acts svg { width: 1.15em; height: 1.15em; }
.ab h4 { margin: 0; flex: 1; font: 900 1.25em/1 var(--head); }

.av {
  --c: var(--accent);
  position: relative; width: 2.3em; height: 2.3em; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .9em; color: #fff;
  background: var(--c); box-shadow: 0 0 0 .14em var(--bg), 0 0 0 .26em var(--accent2);
}
.av .lv {
  position: absolute; bottom: -.45em; left: 50%; transform: translateX(-50%);
  font: 900 .5em/1 var(--head); padding: .25em .4em; border-radius: .5em; background: var(--accent2); color: #1a0a00;
}
.av.on::after { content: ''; position: absolute; right: -.05em; top: -.05em; width: .62em; height: .62em; border-radius: 50%; background: var(--ok); border: .15em solid var(--bg); }

.msgs { display: flex; flex-direction: column; gap: .45em; padding: .9em .9em; }
.e2ee { align-self: center; text-align: center; font-size: .68em; color: #FDE68A; background: rgba(253, 230, 138, .08); border-radius: .8em; padding: .45em .8em; max-width: 86%; }
.bub { max-width: 78%; padding: .5em .8em .55em; border-radius: 1.1em; font-size: .9em; }
.bub.in { align-self: flex-start; background: var(--deep); border-bottom-left-radius: .3em; }
.bub.out { align-self: flex-end; background: var(--accent-deep); border-bottom-right-radius: .3em; }
.bub .t { display: block; text-align: right; font-size: .7em; opacity: .7; margin-top: .1em; }
.bub .t .tick { color: #7DD3FC; letter-spacing: -.25em; margin-left: .2em; }
.typing { align-self: flex-start; display: flex; gap: .25em; padding: .7em .9em; border-radius: 1.1em; background: var(--deep); }
.typing i { width: .4em; height: .4em; border-radius: 50%; background: var(--lo); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-.25em); opacity: .4; } }

.compose { position: absolute; left: .8em; right: .8em; bottom: 1.1em; display: flex; gap: .5em; align-items: center; }
.compose .field { flex: 1; height: 2.6em; border-radius: 1.3em; background: var(--deep); color: var(--dim); font-size: .85em; display: flex; align-items: center; padding: 0 1em; gap: .6em; }
.compose .field svg { width: 1.2em; height: 1.2em; margin-left: auto; color: var(--accent2); }
.compose .send { width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.compose .send svg { width: 1.1em; height: 1.1em; }

/* challenge card in chat */
.challenge {
  align-self: flex-start; width: 82%; border-radius: 1.2em; overflow: hidden; background: var(--deep); border: 1px solid var(--line-hi);
}
.challenge .top { position: relative; height: 4.6em; background: #6E1212; display: grid; place-items: center; overflow: hidden; }
.challenge .top .mini { position: absolute; width: 2.3em; height: 3.2em; border-radius: .35em; background: var(--cream); border: .12em solid #fff; display: grid; place-items: center; color: #8B1A1A; font-weight: 900; box-shadow: 0 .3em .8em rgba(0,0,0,.35); }
.challenge .top .mini:nth-child(1) { transform: translateX(-1.5em) rotate(-14deg); }
.challenge .top .mini:nth-child(2) { transform: translateY(-.2em); z-index: 1; }
.challenge .top .mini:nth-child(3) { transform: translateX(1.5em) rotate(14deg); }
.challenge .top .mini svg { width: 1.2em; height: 1.2em; }
.challenge .body { padding: .6em .8em .8em; }
.challenge .body b { display: block; font-size: .95em; }
.challenge .body small { color: var(--lo); font-size: .75em; }
.challenge .go { display: flex; gap: .4em; margin-top: .55em; }
.challenge .go span { flex: 1; text-align: center; font-weight: 800; font-size: .8em; padding: .55em; border-radius: .8em; background: var(--accent); }
.challenge .go span + span { background: transparent; border: 1px solid var(--line-hi); color: var(--lo); }
.challenge .go span.press { animation: press .5s; }
@keyframes press { 40% { transform: scale(.9); filter: brightness(1.3); } }

/* WHOT board */
.board { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, #5E1414, #2A0B0B 75%); display: flex; flex-direction: column; }
.board .opp { display: flex; justify-content: center; align-items: center; gap: .5em; padding: 3.4em 0 .4em; }
.board .opp .av { width: 2em; height: 2em; }
.board .opp .backs { display: flex; }
.board .opp .backs i { width: 1.6em; height: 2.3em; border-radius: .25em; background: #7A1616; border: .1em solid #e8c9a0; margin-left: -.8em; }
.board .opp .backs i:first-child { margin-left: 0; }
.board .opp small { font-size: .7em; color: var(--lo); }
.board .mid { flex: 1; display: grid; place-items: center; position: relative; }
.board .pile { position: relative; width: 4.4em; height: 6.2em; }
.board .pile .card { position: absolute; inset: 0; }
.board .deck { position: absolute; left: 18%; top: 50%; transform: translateY(-50%); width: 3.3em; height: 4.7em; border-radius: .45em; background: #7A1616; border: .14em solid #e8c9a0; display: grid; place-items: center; font: 900 .55em/1 var(--head); color: #e8c9a0; writing-mode: vertical-rl; }
.board .toast {
  position: absolute; top: 14%; left: 50%; transform: translateX(-50%) scale(.6); opacity: 0;
  font: 900 1.1em/1 var(--head); color: #1a0a00; background: var(--accent2); padding: .5em .9em; border-radius: .7em; white-space: nowrap;
  box-shadow: 0 .5em 1.5em rgba(0,0,0,.4);
}
.board .toast.show { animation: pop 1.8s cubic-bezier(.2,.9,.3,1.3) forwards; }
@keyframes pop { 15% { opacity: 1; transform: translateX(-50%) scale(1.08) rotate(-4deg); } 25%, 80% { opacity: 1; transform: translateX(-50%) scale(1) rotate(-4deg); } 100% { opacity: 0; transform: translateX(-50%) scale(1) rotate(-4deg); } }
.board .hand { display: flex; justify-content: center; padding: 0 0 2.2em; height: 7.6em; }
.board .hand .card { width: 3.6em; height: 5.1em; margin: 0 -.55em; transform-origin: 50% 160%; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.board .hand .card:nth-child(1) { transform: rotate(-16deg); }
.board .hand .card:nth-child(2) { transform: rotate(-8deg); }
.board .hand .card:nth-child(3) { transform: rotate(0); }
.board .hand .card:nth-child(4) { transform: rotate(8deg); }
.board .hand .card:nth-child(5) { transform: rotate(16deg); }
.board .hand .card.lift { transform: translateY(-1.2em) rotate(0) !important; }
.board .hand .card.played { transform: translate(var(--px), var(--py)) rotate(-6deg) scale(1.2) !important; z-index: 3; }
.board .you { text-align: center; font-size: .7em; color: var(--lo); position: absolute; bottom: .9em; width: 100%; }
.board .you b { color: var(--accent2); }

.card {
  border-radius: .45em; background: var(--cream); border: .12em solid #fff; color: #8B1A1A;
  display: grid; place-items: center; position: relative; box-shadow: 0 .3em .9em rgba(0,0,0,.35);
}
.card svg { width: 45%; height: 45%; }
.card .n { position: absolute; top: .2em; left: .3em; font: 900 .75em/1 var(--head); }
.card .n.b { top: auto; left: auto; bottom: .2em; right: .3em; transform: rotate(180deg); }

/* hero screen states */
.hero .screen .stage-chat, .hero .screen .board { transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
.hero .screen .board { opacity: 0; transform: scale(1.06); pointer-events: none; }
.hero .screen.playing .board { opacity: 1; transform: none; }
.hero .screen.playing .stage-chat { opacity: 0; transform: scale(.94); }
.hero .msgs > * { transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1); }
.hero .msgs > .hid { opacity: 0; transform: translateY(.8em) scale(.96); }
.hero .msgs > .gone { display: none; }

/* ---------- marquee ---------- */
.mq-wrap { overflow: hidden; padding: 28px 0; }
.marquee { border-block: 1px solid var(--line); background: var(--accent); color: #fff; overflow: hidden; transform: rotate(-1.2deg); margin: 0 -10px; }
.marquee .track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee span { font: 900 clamp(18px, 2.4vw, 26px)/1 var(--head); padding: 18px 0; white-space: nowrap; display: inline-flex; align-items: center; }
.marquee span::after { content: '✦'; margin: 0 28px; color: #FFD7C2; font-size: .7em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
section { position: relative; }
.sec { padding: 120px 0; }
.kicker { display: inline-block; font: 700 13px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(34px, 5vw, 60px); }
.sec-head p { color: var(--lo); font-size: 19px; margin-top: 18px; max-width: 52ch; }
@media (max-width: 640px) { .sec { padding: 84px 0; } }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- feature scrollytelling ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.story-phone { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.story-phone .phone { --w: min(320px, 30vw, 44vh); }
.story-phone .scr { position: absolute; inset: 0; opacity: 0; transform: translateY(4%) scale(.97); transition: opacity .6s, transform .7s cubic-bezier(.2,.8,.2,1); }
.story-phone .scr.on { opacity: 1; transform: none; }
.steps { padding: 18vh 0; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 480px; }
.step .num { font: 900 15px/1 var(--head); color: var(--dim); display: flex; align-items: center; gap: 12px; margin-bottom: 20px; transition: color .4s; }
.step .num::after { content: ''; height: 2px; width: 40px; background: currentColor; }
.step.on .num { color: var(--accent); }
.step h3 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 18px; }
.step p { color: var(--lo); font-size: 18px; }
.step ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.step li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.step li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.step .mob-phone { display: none; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .steps { padding: 0; }
  .step { min-height: 0; padding: 40px 0; max-width: none; }
  .step .mob-phone { display: flex; justify-content: center; margin-top: 36px; }
  .step .mob-phone .phone { --w: min(280px, 74vw); }
  .step .mob-phone .scr { position: absolute; inset: 0; }
}

/* screens: chat list */
.list { padding: .3em 0; }
.row { display: flex; align-items: center; gap: .75em; padding: .62em 1em; }
.row .txt { flex: 1; min-width: 0; }
.row .txt b { display: block; font-size: .92em; }
.row .txt span { display: block; font-size: .78em; color: var(--lo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .side { text-align: right; font-size: .68em; color: var(--dim); }
.row .badge { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .4em; border-radius: 1em; background: var(--accent); color: #fff; font-weight: 800; margin-top: .25em; }
.row.hidden-row { margin: .4em .8em; border-radius: 1em; background: var(--deep); border: 1px dashed var(--line-hi); }
.row.hidden-row .av { background: #2b1a1a; box-shadow: none; color: #FDE68A; }
.pills { display: flex; gap: .4em; padding: .7em 1em .2em; }
.pills span { font-size: .72em; font-weight: 800; padding: .45em .9em; border-radius: 1em; background: var(--deep); color: var(--lo); }
.pills span.on { background: var(--hi); color: var(--bg); }
.callbar { margin: .6em .8em; padding: .7em .9em; border-radius: 1em; background: rgba(34,197,94,.12); display: flex; align-items: center; gap: .7em; font-size: .8em; font-weight: 600; }
.callbar .dot { width: .6em; height: .6em; border-radius: 50%; background: var(--ok); animation: blink 1.4s infinite; }
.callbar span { margin-left: auto; color: var(--ok); }
@keyframes blink { 50% { opacity: .3; } }

/* screens: games lobby */
.gl { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; padding: .8em; }
.gl .g { border-radius: 1em; padding: .75em; background: var(--deep); border: 1px solid var(--line); min-height: 6.9em; display: flex; flex-direction: column; justify-content: space-between; }
.gl .g svg { width: 1.6em; height: 1.6em; }
.gl .g b { font-size: .82em; }
.gl .g small { font-size: .62em; color: var(--lo); }
.gl .g.hot { background: var(--accent-deep); border-color: transparent; }
.gl .g.hot small { color: #FFD7C2; }
.ai { margin: 0 .8em; padding: .7em .9em; border-radius: 1em; border: 1px solid var(--line-hi); display: flex; align-items: center; gap: .7em; font-size: .8em; }
.ai .lvls { margin-left: auto; display: flex; gap: .25em; }
.ai .lvls i { font-style: normal; font-size: .8em; font-weight: 800; padding: .3em .55em; border-radius: .6em; background: var(--deep); color: var(--lo); }
.ai .lvls i.on { background: var(--accent2); color: #1a0a00; }

/* screens: scores + news */
.match { margin: .8em; border-radius: 1.2em; padding: 1em; background: var(--deep); border: 1px solid var(--line); }
.match .lg { display: flex; justify-content: space-between; font-size: .66em; color: var(--lo); font-weight: 600; }
.match .lg .live { color: var(--accent); display: inline-flex; align-items: center; gap: .35em; }
.match .lg .live::before { content: ''; width: .6em; height: .6em; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.match .sc { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: .8em; text-align: center; }
.match .sc .tm { font-size: .78em; font-weight: 800; }
.match .sc .tm i { display: block; width: 2.2em; height: 2.2em; border-radius: 50%; margin: 0 auto .4em; }
.match .sc .num { font: 900 1.9em/1 var(--head); letter-spacing: .02em; }
.match .ev { margin-top: .8em; font-size: .68em; color: var(--lo); display: flex; justify-content: space-between; }
.notif {
  position: absolute; z-index: 4; left: .6em; right: .6em; top: 2.6em; display: flex; gap: .6em; align-items: center;
  padding: .7em .8em; border-radius: 1.1em; background: #2A1A1A; border: 1px solid var(--line-hi); box-shadow: 0 .6em 1.6em rgba(0,0,0,.5);
  animation: drop 4s cubic-bezier(.2,.9,.3,1.2) infinite;
}
.notif .ic { width: 2em; height: 2em; flex: none; border-radius: .6em; background: var(--accent); display: grid; place-items: center; font: 900 .9em/1 var(--head); }
.notif b { display: block; font-size: .78em; }
.notif small { display: block; font-size: .68em; color: var(--lo); }
@keyframes drop { 0% { transform: translateY(-150%); opacity: 0; } 12%, 70% { transform: none; opacity: 1; } 85%, 100% { transform: translateY(-150%); opacity: 0; } }
.news { padding: 0 .8em; display: grid; gap: .55em; }
.news .n { display: flex; gap: .7em; padding: .6em; border-radius: 1em; background: var(--deep); }
.news .n i { width: 3.6em; height: 3.6em; flex: none; border-radius: .7em; }
.news .n b { display: block; font-size: .78em; line-height: 1.3; }
.news .n small { font-size: .64em; color: var(--dim); }
.chips { display: flex; gap: .4em; padding: .2em .8em .7em; overflow: hidden; }
.chips span { font-size: .68em; font-weight: 800; padding: .4em .8em; border-radius: 1em; border: 1px solid var(--line-hi); color: var(--lo); white-space: nowrap; }
.chips span.on { border-color: var(--accent); color: var(--hi); background: rgba(239,68,68,.15); }

/* screens: vibes */
.vibe { position: absolute; inset: 0; overflow: hidden; background: #0b0606; }
.vibe .vid { position: absolute; inset: 0; background:
  radial-gradient(60% 40% at 30% 30%, rgba(249,115,22,.7), transparent 70%),
  radial-gradient(60% 50% at 75% 70%, rgba(185,28,28,.85), transparent 70%),
  linear-gradient(160deg, #3a120a, #120806);
  animation: vid 8s ease-in-out infinite alternate; }
@keyframes vid { to { transform: scale(1.18) rotate(4deg); } }
.vibe .ball { position: absolute; width: 3.4em; height: 3.4em; border-radius: 50%; left: 40%; bottom: 34%; background: radial-gradient(circle at 35% 35%, #fff, #ddd 50%, #999); animation: kick 2.4s cubic-bezier(.3,0,.4,1) infinite; }
.vibe .ball::after { content: ''; position: absolute; inset: 30%; background: #222; clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); }
@keyframes kick { 0%, 100% { transform: translate(0, 0) rotate(0); } 45% { transform: translate(2.5em, -6em) rotate(220deg) scale(.7); } 60% { transform: translate(3em, -5em) rotate(260deg) scale(.65); } }
.vibe .top { position: absolute; top: 2.8em; left: 0; right: 0; display: flex; justify-content: center; gap: 1.2em; font-weight: 800; font-size: .85em; color: rgba(255,255,255,.6); }
.vibe .top b { color: #fff; border-bottom: .15em solid #fff; padding-bottom: .2em; }
.vibe .side { position: absolute; right: .7em; bottom: 6.5em; display: grid; gap: 1.1em; text-align: center; font-size: .66em; font-weight: 800; }
.vibe .side svg { width: 2.3em; height: 2.3em; margin: 0 auto .2em; filter: drop-shadow(0 .2em .4em rgba(0,0,0,.4)); }
.vibe .side .heart { color: var(--accent); animation: beat 1.4s infinite; }
@keyframes beat { 15% { transform: scale(1.25); } 30% { transform: scale(1); } }
.vibe .cap { position: absolute; left: .9em; right: 4.5em; bottom: 2.2em; font-size: .8em; text-shadow: 0 .1em .4em rgba(0,0,0,.6); }
.vibe .cap b { display: block; margin-bottom: .3em; }
.vibe .bar { position: absolute; left: 0; bottom: 1.1em; height: .2em; background: #fff; animation: prog 6s linear infinite; }
@keyframes prog { from { width: 0; } to { width: 100%; } }

/* screens: progress */
.me { text-align: center; padding: 1em .8em .4em; }
.ring { --p: 72; width: 6.4em; height: 6.4em; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent2) calc(var(--p) * 1%), var(--deep) 0); }
.ring .av { width: 5.2em; height: 5.2em; font-size: 1em; box-shadow: 0 0 0 .3em var(--bg); }
.me b { display: block; margin-top: .6em; }
.me small { color: var(--lo); font-size: .74em; }
.statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45em; margin: .7em .8em; }
.statrow div { background: var(--deep); border-radius: .9em; padding: .6em .3em; text-align: center; }
.statrow b { display: block; font: 900 1.05em/1.1 var(--head); }
.statrow small { font-size: .62em; color: var(--lo); }
.lb { margin: 0 .8em; background: var(--deep); border-radius: 1em; padding: .4em 0; }
.lb .row { padding: .45em .8em; }
.lb .rk { width: 1.4em; font: 900 .85em/1 var(--head); color: var(--dim); }
.lb .row:first-child .rk { color: #FBBF24; }
.lb .row .av { width: 1.9em; height: 1.9em; font-size: .75em; }
.lb .row .xp { font-weight: 800; font-size: .78em; color: var(--accent2); }
.lb .row.you { background: rgba(239,68,68,.12); }

.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: .6em .4em 1.3em; background: var(--bg); border-top: 1px solid var(--line); }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: .2em; font-size: .6em; font-weight: 800; color: var(--dim); }
.tabbar svg { width: 2.2em; height: 2.2em; padding: .3em; border-radius: .7em; }
.tabbar .on { color: var(--hi); }
.tabbar .on svg { background: rgba(239,68,68,.18); color: var(--accent); width: 3em; }

/* ---------- games ---------- */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game {
  --c: var(--accent);
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 24px; min-height: 250px;
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s;
}
.game:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.game .art { position: absolute; right: -14px; top: -14px; width: 140px; height: 140px; color: var(--c); opacity: .95; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.game:hover .art { transform: rotate(-8deg) scale(1.08); }
.game::before { content: none; }
.game h3 { font-size: 22px; margin-top: auto; position: relative; }
.game p { color: var(--lo); font-size: 15px; margin-top: 6px; position: relative; }
.game .pl { position: relative; display: inline-flex; gap: 6px; margin-top: 14px; }
.game .pl span { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: rgba(31,11,11,.06); color: var(--lo); }
@media (max-width: 1020px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .games-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .game { min-height: 200px; padding: 16px; } .game .art { width: 96px; height: 96px; } .game h3 { font-size: 17px; } .game p { font-size: 13px; } .game .pl span:nth-child(2) { display: none; } }

.fair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.fair div { border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.fair svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 16px; }
.fair b { display: block; font-size: 18px; margin-bottom: 6px; }
.fair p { color: var(--lo); font-size: 15px; }
@media (max-width: 860px) { .fair { grid-template-columns: 1fr; } }

/* ---------- numbers ---------- */
.numbers { border-block: 1px solid var(--line); }
.numbers .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.numbers .n { padding: 48px 20px; text-align: center; }
.numbers .n + .n { border-left: 1px solid var(--line); }
.numbers b { display: block; font: 900 clamp(36px, 5.4vw, 68px)/1 var(--head); color: var(--hi); white-space: nowrap; }
.numbers b em { font-style: normal; color: var(--accent); }
.numbers .n > span { display: block; margin-top: 12px; color: var(--lo); font-weight: 600; }
@media (max-width: 760px) {
  .numbers .wrap { grid-template-columns: 1fr 1fr; padding: 0; }
  .numbers .n:nth-child(3) { border-left: 0; }
  .numbers .n:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- download ---------- */
.dl { padding: 120px 0; }
.dl-card {
  position: relative; overflow: hidden; border-radius: 36px; background: var(--accent); color: #fff;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; padding: 64px;
}
.dl-card::before { content: 'GIST'; position: absolute; right: -2%; bottom: -16%; font: 900 clamp(160px, 24vw, 340px)/1 var(--head); color: rgba(0,0,0,.07); letter-spacing: -.05em; pointer-events: none; }
.dl-card h2 { font-size: clamp(36px, 5vw, 64px); position: relative; }
.dl-card .sub { font-size: 19px; margin: 18px 0 30px; color: #FFE4E4; max-width: 40ch; position: relative; }
.dl-card .btn-white { background: #fff; color: var(--accent-deep); position: relative; }
.dl-card .btn-white:hover { background: #FFF1EC; }
.dl-card .btn-white .ver { border-color: rgba(185,28,28,.3); }
.dl-card .btn-line { border-color: rgba(255,255,255,.5); color: #fff; position: relative; }
.dl-card .btn-line:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.dl-card .row-btns { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.dl-card .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; font-weight: 600; color: #FFE4E4; position: relative; }
.dl-card .facts span:empty { display: none; }
.whatsnew { position: relative; margin-top: 30px; padding: 18px 20px; border-radius: 18px; background: rgba(0,0,0,.14); max-width: 520px; }
.whatsnew b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.whatsnew ul { margin: 8px 0 0; padding-left: 18px; font-size: 15px; color: #FFF1F1; }
.whatsnew[hidden] { display: none; }
.dl-side { position: relative; display: flex; flex-direction: column; gap: 14px; }
.qr { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: 22px; background: #fff; color: #1F0B0B; }
.qr img { width: 124px; height: 124px; flex: none; }
.qr b { display: block; font-size: 17px; }
.qr small { color: #6B4B4B; font-size: 14px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.how li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: rgba(0,0,0,.14); font-size: 15px; }
.how li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--accent-deep); font: 900 14px/1 var(--head); }
.how li b { display: block; font-size: 16px; }
.how li span { color: #FFE4E4; }
@media (max-width: 960px) {
  .dl-card { grid-template-columns: 1fr; padding: 40px 24px; border-radius: 28px; }
}
@media (hover: none) and (pointer: coarse) { .qr { display: none; } }
@media (max-width: 520px) { .dl-card .row-btns .btn { flex: 1 1 100%; } .btn-big { padding: 0 20px; font-size: 17px; } }

/* ---------- web app band ---------- */
.webband { padding: 0 0 120px; }
.webband .wrap > div { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border-radius: 28px; border: 1px solid var(--line-hi); background: var(--card); }
.webband h3 { font-size: clamp(22px, 3vw, 32px); }
.webband p { color: var(--lo); margin-top: 8px; }
@media (max-width: 520px) { .webband .wrap > div { padding: 28px 22px; } .webband .btn { flex: 1 1 100%; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
footer .wordmark { font-size: 22px; color: var(--hi); }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer nav a { text-decoration: none; color: var(--lo); font-weight: 600; }
footer nav a:hover { color: var(--hi); }

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