/* =========================================================
   MANZURA ALMAMATOVA — DESIGN SYSTEM
   ========================================================= */
:root {
  --ink: #07080d;
  --ink-2: #0c0e15;
  --ink-3: #12151f;
  --ink-4: #1a1e2b;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --cream: #f4efe6;
  --text: #e9e6df;
  --muted: #8f92a3;
  --muted-2: #6a6d7e;
  --gold: #e9c46a;
  --gold-2: #f6dd9b;
  --gold-3: #b8892f;
  --violet: #8b7bff;
  --coral: #ff7a6b;
  --mint: #5fe3b4;
  --sky: #62b6ff;
  --pink: #ff6fb5;
  --ok: #5fe3b4;
  --bad: #ff6b6b;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --f-display: "Fraunces", "Times New Roman", serif;
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
body::after { /* grain */
  content: ""; position: fixed; inset: -50%; z-index: 9990; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-3%) } 60% { transform: translate(-2%,-2%) } 80% { transform: translate(3%,3%) } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
::selection { background: var(--gold); color: var(--ink); }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.gold-text { background: linear-gradient(100deg, var(--gold-2) 0%, var(--gold) 45%, #d49b3a 70%, var(--gold-2) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.italic { font-style: italic; }
.c-violet { color: var(--violet); } .c-coral { color: var(--coral); } .c-mint { color: var(--mint); }

/* ---------- Custom cursor ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; border-radius: 50%; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cur-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(233, 196, 106, .5); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s; display: grid; place-items: center; }
.cur-ring.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(233, 196, 106, .1); border-color: rgba(233, 196, 106, .8); }
.cur-ring::after { content: attr(data-label); font: 600 10px var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: -.005em; position: relative; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s, background .3s, border-color .3s, color .3s; white-space: nowrap; will-change: transform; }
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 58px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 50%, #d8a644); color: #1a1405; box-shadow: 0 10px 30px -10px rgba(233, 196, 106, .6), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-gold:hover::before { transform: translateX(120%); }
.btn-gold:hover { box-shadow: 0 16px 40px -10px rgba(233, 196, 106, .8), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(233, 196, 106, .5); background: rgba(233, 196, 106, .06); }
.btn-dark { background: var(--ink-4); border: 1px solid var(--line-2); }
.btn-dark:hover { background: #222738; }
.btn-danger { background: rgba(255, 107, 107, .12); color: #ff9b9b; border: 1px solid rgba(255,107,107,.3); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.icon-btn:hover { background: rgba(255,255,255,.08); border-color: var(--line-2); }
.icon-btn svg { width: 19px; height: 19px; }
.link-btn { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; margin-top: 12px; }
.link-btn:hover { color: var(--gold-2); }

/* ---------- Preloader ---------- */
#preloader { position: fixed; inset: 0; z-index: 9999; background: var(--ink); display: grid; place-items: center; }
.pl-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pl-mono { font: 400 72px/1 var(--f-display); display: flex; align-items: center; gap: 14px; color: var(--cream); }
.pl-mono span { display: inline-block; opacity: 0; transform: translateY(30px); animation: plIn .9s var(--ease-out) forwards; }
.pl-mono span:last-child { font-style: italic; color: var(--gold); animation-delay: .15s; }
.pl-mono i { width: 1px; height: 56px; background: var(--line-2); transform: scaleY(0); animation: plLine .8s .3s var(--ease-out) forwards; }
@keyframes plIn { to { opacity: 1; transform: none; } }
@keyframes plLine { to { transform: scaleY(1); } }
.pl-name { font: 500 12px var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: plIn .8s .4s forwards; }
.pl-bar { width: 220px; height: 1px; background: var(--line); overflow: hidden; }
.pl-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }
.pl-count { font: 500 13px var(--f-mono); color: var(--gold-2); }

/* ---------- Curtain ---------- */
#curtain { position: fixed; inset: 0; z-index: 9500; pointer-events: none; display: flex; }
#curtain div { flex: 1; background: var(--ink-3); transform: scaleY(0); transform-origin: bottom; border-right: 1px solid var(--line); }
#curtain div:nth-child(2) { background: #151926; } #curtain div:nth-child(3) { background: var(--ink-4); }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--gutter); transition: padding .5s var(--ease), background .5s, backdrop-filter .5s, border-color .5s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(7, 8, 13, .7); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mono { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font: 500 18px/1 var(--f-display); color: var(--cream); border: 1px solid rgba(233,196,106,.35); background: radial-gradient(circle at 30% 20%, rgba(233,196,106,.25), transparent 60%), var(--ink-3); letter-spacing: -.04em; }
.brand-mono em { color: var(--gold); font-style: italic; }
.brand-text { display: flex; flex-direction: column; font: 600 17px/1.05 var(--f-display); letter-spacing: -.01em; color: var(--cream); }
.brand-text small { font: 500 10px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02); backdrop-filter: blur(10px); }
.nav-links a { position: relative; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s, background .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--cream); background: rgba(255,255,255,.06); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger.open span:first-child { top: 21px; transform: rotate(45deg); } .burger.open span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: rgba(7,8,13,.96); backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: center; padding: 0 28px; gap: 6px; clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease-out); }
.mobile-menu.open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.mobile-menu a { font: 400 44px/1.15 var(--f-display); color: var(--cream); padding: 6px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:nth-child(even) { font-style: italic; color: var(--gold-2); }
.mobile-menu .btn { margin-top: 28px; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px; }
.aurora { position: absolute; inset: 0; pointer-events: none; filter: blur(80px) saturate(140%); opacity: .75; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora .a1 { width: 52vw; height: 52vw; left: 40%; top: -20%; background: radial-gradient(circle, rgba(233,196,106,.35), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.aurora .a2 { width: 45vw; height: 45vw; left: -10%; top: 30%; background: radial-gradient(circle, rgba(139,123,255,.28), transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.aurora .a3 { width: 35vw; height: 35vw; right: -8%; bottom: -15%; background: radial-gradient(circle, rgba(255,122,107,.18), transparent 65%); animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-12%, 14%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(18%, -10%) scale(.9); } }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
.grid-lines { position: absolute; inset: 0; display: flex; justify-content: space-between; padding: 0 var(--gutter); pointer-events: none; }
.grid-lines i { width: 1px; background: linear-gradient(to bottom, transparent, var(--line) 30%, var(--line) 70%, transparent); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.25fr .85fr; align-items: center; gap: clamp(30px, 5vw, 80px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(95,227,180,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(95,227,180,0); } 100% { box-shadow: 0 0 0 0 rgba(95,227,180,0); } }
.hero-title { font: 300 clamp(56px, 10.5vw, 168px)/.9 var(--f-display); letter-spacing: -.045em; margin: 28px 0 26px; color: var(--cream); font-variation-settings: "opsz" 144; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .italic { font-weight: 300; }
.split .ch { display: inline-block; will-change: transform; }
.gold-split .ch { color: var(--gold-2); }
.portrait-frame.noimg::before { content: "MA"; position: absolute; inset: 0; display: grid; place-items: center; font: 300 italic 120px var(--f-display); color: rgba(233,196,106,.35); letter-spacing: -.05em; }
.hero-lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 520px; margin: 0 0 34px; line-height: 1.55; }
.hero-lead em { font-family: var(--f-display); color: var(--gold-2); font-size: 1.15em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font: 400 34px/1 var(--f-display); color: var(--cream); }
.hero-meta span { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.portrait { position: relative; width: min(100%, 420px); aspect-ratio: 4/5; transform: perspective(1000px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .6s var(--ease); transform-style: preserve-3d; }
.portrait-glow { position: absolute; inset: 10% -5% -5%; border-radius: 50%; background: radial-gradient(circle, rgba(233,196,106,.35), transparent 65%); filter: blur(40px); }
.portrait-frame { position: absolute; inset: 0; border-radius: 999px 999px 28px 28px; overflow: hidden; border: 1px solid rgba(233,196,106,.35); background: linear-gradient(180deg, #1c1f2c, #0d0f16); box-shadow: var(--shadow); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transform: scale(1.15); filter: saturate(1.03) contrast(1.03); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,8,13,.55), transparent 40%); }
.portrait-shine { position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.18), transparent 45%); mix-blend-mode: overlay; }
.ring-text { position: absolute; width: 150px; height: 150px; right: -40px; top: -30px; animation: spin 22s linear infinite; z-index: 3; }
.ring-text text { font: 600 12.5px var(--f-mono); letter-spacing: .2em; fill: var(--gold-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(18, 21, 31, .75); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13.5px; font-weight: 700; color: var(--cream); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); transform: translateZ(40px); }
.chip svg { width: 24px; height: 24px; }
.chip-1 { left: -14%; top: 22%; animation: bob 5s ease-in-out infinite; }
.chip-2 { right: -12%; top: 54%; animation: bob 6s ease-in-out infinite -2s; }
.chip-3 { left: -4%; bottom: 8%; animation: bob 5.5s ease-in-out infinite -1s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 500 10px var(--f-mono); letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { width: 1px; height: 44px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--gold); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { to { top: 100%; } }

/* ---------- MARQUEE ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--ink-2); }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marq 40s linear infinite; }
.marquee span { font: 300 clamp(36px, 5vw, 72px)/1 var(--f-display); color: var(--cream); letter-spacing: -.03em; white-space: nowrap; }
.marquee span.it { font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(233,196,106,.7); }
.marquee b { color: var(--gold); font-size: 24px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { position: relative; padding: clamp(90px, 13vw, 180px) 0; }
.sec-label { display: flex; align-items: center; gap: 14px; font: 500 12px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }
.sec-label span { color: var(--gold); padding: 4px 10px; border: 1px solid rgba(233,196,106,.3); border-radius: 999px; }
.sec-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); max-width: 200px; }
.display { font: 300 clamp(38px, 5.6vw, 84px)/1.02 var(--f-display); letter-spacing: -.035em; color: var(--cream); margin: 0; }
.display em { font-style: italic; color: var(--gold-2); }
.h3 { font: 400 clamp(26px, 3vw, 38px)/1.1 var(--f-display); color: var(--cream); letter-spacing: -.02em; margin: 100px 0 36px; }
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.reveal-words .w > span { display: inline-block; }

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: end; }
.about-text p { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; color: var(--gold-2); padding-bottom: 4px; border-bottom: 1px solid rgba(233,196,106,.35); transition: gap .4s var(--ease), border-color .3s; }
.link-arrow:hover { gap: 16px; border-color: var(--gold); }
.link-arrow svg { width: 18px; height: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(60px, 8vw, 110px); }
.stat { position: relative; padding: 28px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); overflow: hidden; transform: perspective(800px) rotateX(var(--rx,0)) rotateY(var(--ry,0)); transition: transform .5s var(--ease), border-color .4s; }
.stat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx,50%) var(--my,0%), rgba(233,196,106,.12), transparent 60%); opacity: 0; transition: opacity .4s; }
.stat:hover { border-color: rgba(233,196,106,.3); } .stat:hover::before { opacity: 1; }
.stat b { display: block; font: 300 58px/1 var(--f-display); color: var(--cream); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 14px; font-weight: 700; color: var(--cream); }
.stat p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* research */
.research { background: radial-gradient(1200px 600px at 80% 0%, rgba(139,123,255,.07), transparent 60%), var(--ink); }
.topic { font: 300 clamp(30px, 4.6vw, 70px)/1.12 var(--f-display); letter-spacing: -.03em; color: var(--cream); margin: 0; max-width: 1150px; }
.scrub-words .scw { opacity: .13; transition: none; }
.topic-sub { font: italic 400 clamp(18px, 2vw, 26px) var(--f-display); color: var(--gold-2); margin: 26px 0 0; }
.loop { display: flex; align-items: center; gap: 14px; margin-top: 70px; flex-wrap: wrap; }
.loop-step { flex: 1; min-width: 170px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.loop-step i { font: 500 11px var(--f-mono); color: var(--muted); font-style: normal; }
.loop-step b { font: 400 26px var(--f-display); color: var(--cream); }
.loop-step span { font-size: 14px; color: var(--muted); }
.loop-step.gold { border-color: rgba(233,196,106,.45); background: linear-gradient(160deg, rgba(233,196,106,.14), var(--ink-2)); }
.loop-step.gold b { color: var(--gold-2); }
.loop-arrow { width: 22px; height: 22px; color: var(--muted-2); }
.mech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mech { position: relative; padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; transform: perspective(900px) rotateX(var(--rx,0)) rotateY(var(--ry,0)); transition: transform .5s var(--ease), border-color .4s; }
.mech::after { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,.06), transparent 60%); pointer-events: none; }
.mech:hover { border-color: var(--line-2); }
.mech h4 { font: 400 26px/1.1 var(--f-display); color: var(--cream); margin: 22px 0 10px; }
.mech p { margin: 0; color: var(--muted); font-size: 15px; }
.mech-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(233,196,106,.12); border: 1px solid rgba(233,196,106,.25); color: var(--gold); }
.mech-ic svg { width: 26px; height: 26px; }
.mech-ic.violet { background: rgba(139,123,255,.12); border-color: rgba(139,123,255,.3); color: var(--violet); }
.mech-ic.mint { background: rgba(95,227,180,.1); border-color: rgba(95,227,180,.3); color: var(--mint); }
.mech-ic.sky { background: rgba(98,182,255,.1); border-color: rgba(98,182,255,.3); color: var(--sky); }
.mech-ic.coral { background: rgba(255,122,107,.1); border-color: rgba(255,122,107,.3); color: var(--coral); }

/* articles horizontal */
.articles { position: relative; background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.articles-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 100px 0; }
.articles-head { margin-bottom: 50px; }
.h-track { display: flex; gap: 22px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.art-card { position: relative; width: min(78vw, 440px); min-height: 440px; padding: 32px; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(165deg, var(--ink-4), var(--ink-3) 60%); display: flex; flex-direction: column; overflow: hidden; transition: border-color .4s, transform .6s var(--ease); }
.art-card::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(233,196,106,.2), transparent 70%); transition: transform .8s var(--ease); }
.art-card:nth-child(2)::before { background: radial-gradient(circle, rgba(139,123,255,.25), transparent 70%); }
.art-card:nth-child(3)::before { background: radial-gradient(circle, rgba(95,227,180,.2), transparent 70%); }
.art-card:nth-child(4)::before { background: radial-gradient(circle, rgba(255,122,107,.22), transparent 70%); }
.art-card:hover { border-color: rgba(233,196,106,.4); transform: translateY(-6px); }
.art-card:hover::before { transform: scale(1.6); }
.art-no { font: 300 110px/.8 var(--f-display); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.2); }
.art-tag { align-self: flex-start; margin-top: 26px; font: 500 11px var(--f-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--gold-2); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(233,196,106,.3); }
.art-card h3 { font: 400 27px/1.18 var(--f-display); color: var(--cream); margin: 18px 0 auto; letter-spacing: -.015em; }
.art-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; font-weight: 700; font-size: 15px; }
.art-link svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.art-card:hover .art-link svg { transform: translateX(6px); }
.art-end { width: min(78vw, 420px); display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 32px; }
.art-end p { font: 300 40px/1.1 var(--f-display); color: var(--cream); margin: 0; }
.art-end em { color: var(--gold-2); }
.art-end .btn { align-self: flex-start; }

/* games teaser */
.gt-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.gt-head p { color: var(--muted); font-size: 17px; margin: 0; }
.gt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gt-card { position: relative; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .5s var(--ease), border-color .4s; cursor: pointer; }
.gt-card::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: var(--c); opacity: .18; filter: blur(30px); transition: opacity .4s, transform .6s var(--ease); }
.gt-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.gt-card:hover::before { opacity: .35; transform: scale(1.3); }
.gt-card .gi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.gt-card .gi svg { width: 22px; height: 22px; }
.gt-card h4 { margin: 18px 0 2px; font: 400 22px/1.1 var(--f-display); color: var(--cream); }
.gt-card p { margin: 0; font-size: 13px; color: var(--muted); }
.gt-card .lk { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--muted); }
.gt-card .lk svg { width: 14px; height: 14px; }
.gt-cta { display: flex; align-items: center; gap: 20px; margin-top: 50px; flex-wrap: wrap; }
.gt-note { color: var(--muted); font-size: 14px; }

.quote-sec { padding: clamp(80px, 14vw, 200px) var(--gutter); text-align: center; }
.big-quote { font: 300 italic clamp(40px, 8vw, 128px)/1 var(--f-display); letter-spacing: -.04em; color: var(--cream); margin: 0 auto; max-width: 1200px; }

/* contact */
.contact { padding: clamp(90px, 12vw, 160px) 0 30px; border-top: 1px solid var(--line); background: radial-gradient(900px 500px at 20% 100%, rgba(233,196,106,.08), transparent 60%), var(--ink); }
.contact-title { font: 300 clamp(48px, 9vw, 140px)/.95 var(--f-display); letter-spacing: -.045em; color: var(--cream); margin: 0 0 30px; }
.contact-title em { color: var(--gold-2); }
.mail-big { display: inline-block; font: 400 clamp(20px, 3.4vw, 46px)/1.2 var(--f-display); color: var(--cream); border-bottom: 1px solid var(--line-2); padding-bottom: 6px; transition: color .3s, border-color .3s; word-break: break-all; }
.mail-big:hover { color: var(--gold-2); border-color: var(--gold); }
.socials { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.soc { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; transition: background .3s, border-color .3s, color .3s; }
.soc:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.soc svg { width: 18px; height: 18px; }
.foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 110px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-big { font: 300 italic clamp(40px, 10vw, 150px)/.8 var(--f-display); color: rgba(255,255,255,.05); letter-spacing: -.05em; }
.foot-admin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted-2); border: 1px solid var(--line); }
.foot-admin:hover { color: var(--gold); }
.foot-admin svg { width: 15px; height: 15px; }

/* ---------- MODALS ---------- */
.modal { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(4,5,8,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadeIn .35s ease; }
.modal-card { position: relative; width: 100%; max-width: 460px; max-height: calc(100svh - 32px); overflow: auto; background: linear-gradient(180deg, #141824, #0e1119); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 32px; box-shadow: 0 50px 120px -30px rgba(0,0,0,.9); animation: popIn .55s var(--ease-out); }
.modal-x { position: absolute; top: 16px; right: 16px; z-index: 3; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.modal.closing .modal-bg { animation: fadeIn .3s reverse forwards; }
.modal.closing .modal-card { animation: popIn .3s reverse forwards; }

.auth-card { max-width: 920px; padding: 0; display: grid; grid-template-columns: 1fr 1.05fr; overflow: hidden; }
.auth-side { position: relative; padding: 40px; background: radial-gradient(500px 400px at 30% 20%, rgba(233,196,106,.18), transparent 60%), radial-gradient(400px 300px at 80% 90%, rgba(139,123,255,.2), transparent 60%), #0b0d14; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; overflow: hidden; }
.auth-side h3 { font: 300 40px/1.05 var(--f-display); color: var(--cream); margin: 0 0 12px; letter-spacing: -.03em; }
.auth-side h3 em { color: var(--gold-2); }
.auth-side p { color: var(--muted); margin: 0; font-size: 15px; }
.auth-art { position: absolute; inset: 0 0 45% 0; }
.aa-coin { position: absolute; left: 50%; top: 46%; width: 110px; height: 110px; transform: translate(-50%,-50%); animation: coinSpin 4s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(233,196,106,.4)); }
.aa-coin svg { width: 100%; height: 100%; }
@keyframes coinSpin { 0%,100% { transform: translate(-50%,-50%) rotateY(0); } 50% { transform: translate(-50%,-58%) rotateY(180deg); } }
.aa-card { position: absolute; padding: 12px 16px; border-radius: 14px; background: rgba(20,24,36,.8); border: 1px solid var(--line-2); backdrop-filter: blur(10px); display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.aa-card b { color: var(--cream); font-size: 14px; }
.aa-card svg { width: 18px; height: 18px; color: var(--gold); }
.aa-c1 { left: 10%; top: 18%; animation: bob 5s ease-in-out infinite; }
.aa-c2 { right: 8%; top: 30%; animation: bob 6s ease-in-out infinite -2s; }
.aa-c2 span { color: var(--mint); }
.aa-c3 { left: 20%; top: 66%; flex-direction: row; align-items: center; gap: 8px; animation: bob 5.5s ease-in-out infinite -1s; }
.auth-main { padding: 44px 40px; }
.auth-main h2 { font: 400 34px/1.1 var(--f-display); color: var(--cream); margin: 0 0 6px; letter-spacing: -.02em; }
.auth-main > .muted { margin: 0 0 26px; font-size: 15px; }
.btn-google { width: 100%; height: 52px; border-radius: 14px; background: #fff; color: #1f1f1f; font-weight: 700; gap: 12px; }
.btn-google svg { width: 20px; height: 20px; }
.btn-google:hover { background: #f1f1f1; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-bottom: 18px; }
.seg button { position: relative; z-index: 1; height: 38px; font-size: 14px; font-weight: 700; color: var(--muted); transition: color .3s; }
.seg button.on { color: var(--ink); }
.seg i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--cream); transition: transform .45s var(--ease); }
.seg.up i { transform: translateX(100%); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea, .input { width: 100%; height: 50px; padding: 0 16px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); outline: none; transition: border-color .3s, background .3s, box-shadow .3s; }
.field textarea { height: 100px; padding: 12px 16px; resize: vertical; }
.field input:focus, .input:focus, .field textarea:focus { border-color: rgba(233,196,106,.6); background: rgba(233,196,106,.04); box-shadow: 0 0 0 4px rgba(233,196,106,.1); }
.auth-err { min-height: 20px; color: #ff9b9b; font-size: 14px; margin-bottom: 10px; }
.demo-note { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: rgba(98,182,255,.07); border: 1px solid rgba(98,182,255,.2); }
.demo-note b { color: var(--sky); }
#authForm .link-btn { display: block; margin: 14px auto 0; }

/* toasts */
#toasts { position: fixed; z-index: 9800; top: 88px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: rgba(22,26,38,.92); border: 1px solid var(--line-2); backdrop-filter: blur(14px); font-size: 14px; font-weight: 600; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); opacity: 0; transform: translateY(-14px) scale(.96); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); flex: none; }
.toast-ok .toast-dot { background: var(--mint); } .toast-bad .toast-dot { background: var(--bad); } .toast-gold .toast-dot { background: var(--gold); }

.fly-coin { position: fixed; left: -12px; top: -12px; width: 24px; height: 24px; z-index: 9900; pointer-events: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6cf, var(--gold) 45%, var(--gold-3)); box-shadow: 0 0 14px rgba(233,196,106,.7); }
.float-txt { position: fixed; z-index: 9900; pointer-events: none; transform: translate(-50%,-50%); font: 800 20px var(--f-sans); color: var(--mint); text-shadow: 0 4px 20px rgba(0,0,0,.6); animation: floatUp 1.1s var(--ease-out) forwards; }
.float-txt.bad { color: var(--bad); } .float-txt.gold { color: var(--gold-2); }
@keyframes floatUp { from { opacity: 0; transform: translate(-50%,-30%) scale(.7); } 20% { opacity: 1; transform: translate(-50%,-60%) scale(1.1); } to { opacity: 0; transform: translate(-50%,-180%) scale(1); } }
.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }

/* =========================================================
   APP
   ========================================================= */
#app { min-height: 100svh; background: radial-gradient(1000px 600px at 90% -10%, rgba(139,123,255,.09), transparent 60%), radial-gradient(800px 500px at -10% 10%, rgba(233,196,106,.07), transparent 60%), var(--ink); }
.app-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); background: rgba(7,8,13,.75); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
.brand.small .brand-mono { width: 38px; height: 38px; font-size: 16px; }
.app-tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.app-tabs a { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); transition: color .3s, background .3s; }
.app-tabs a svg { width: 17px; height: 17px; }
.app-tabs a:hover { color: var(--cream); }
.app-tabs a.on { color: var(--ink); background: var(--cream); }
.app-stats { display: flex; align-items: center; gap: 8px; }
.pill { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.pill svg { width: 22px; height: 22px; }
.streak-pill svg { color: var(--coral); }
.coin-pill { border-color: rgba(233,196,106,.3); background: rgba(233,196,106,.07); color: var(--gold-2); }
.avatar-btn { display: block; }
.lvl-ring { position: relative; display: block; width: 46px; height: 46px; }
.lvl-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lvl-ring circle { fill: none; stroke-width: 3; }
.lvl-ring .trk { stroke: rgba(255,255,255,.08); }
.lvl-ring .val { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; transition: stroke-dashoffset 1s var(--ease); }
.lvl-ring .av { position: absolute; inset: 5px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; }
.lvl-ring em { position: absolute; right: -4px; bottom: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 800 11px/20px var(--f-sans); text-align: center; font-style: normal; border: 2px solid var(--ink); }
.announce { margin: 16px var(--gutter) 0; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(233,196,106,.3); background: linear-gradient(90deg, rgba(233,196,106,.12), rgba(233,196,106,.03)); color: var(--gold-2); font-weight: 600; font-size: 14.5px; display: flex; gap: 10px; align-items: center; }
.app-main { max-width: 1280px; margin: 0 auto; padding: 32px var(--gutter) 120px; }
.bottom-tabs { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font: 300 clamp(34px, 4.5vw, 56px)/1 var(--f-display); letter-spacing: -.03em; color: var(--cream); margin: 0; }
.page-head h1 em { color: var(--gold-2); }
.page-head p { margin: 8px 0 0; color: var(--muted); }

/* dashboard */
.dash { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.card { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); padding: 26px; overflow: hidden; }
.card h3 { margin: 0 0 16px; font: 400 24px/1.1 var(--f-display); color: var(--cream); }
.card-label { font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.hello { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 34px; background: radial-gradient(600px 300px at 0% 0%, rgba(233,196,106,.16), transparent 60%), radial-gradient(500px 300px at 100% 100%, rgba(139,123,255,.16), transparent 60%), var(--ink-3); }
.hello h2 { font: 300 clamp(32px, 4vw, 52px)/1.02 var(--f-display); margin: 0; color: var(--cream); letter-spacing: -.03em; }
.hello h2 em { color: var(--gold-2); }
.hello p { color: var(--muted); margin: 10px 0 0; }
.xp-block { margin-top: 24px; max-width: 520px; }
.xp-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.xp-row b { color: var(--cream); }
.bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; position: relative; }
.bar > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-2)); transition: width 1.2s var(--ease); box-shadow: 0 0 20px rgba(233,196,106,.5); }
.bar > span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: barShine 2.4s infinite; }
@keyframes barShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.rank-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.rank-emblem { width: 120px; height: 120px; position: relative; display: grid; place-items: center; }
.rank-emblem svg.hex { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; }
.rank-emblem b { font: 300 52px/1 var(--f-display); color: var(--cream); position: relative; }
.rank-badge span { font-weight: 800; color: var(--gold-2); }
.rank-badge small { color: var(--muted); font-size: 12px; }
.daily { background: radial-gradient(400px 260px at 100% 0%, color-mix(in srgb, var(--c, #e9c46a) 22%, transparent), transparent 60%), var(--ink-3); }
.daily .x2 { position: absolute; top: 22px; right: 22px; font: 800 13px var(--f-sans); padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.daily h4 { font: 400 34px/1.05 var(--f-display); color: var(--cream); margin: 8px 0 6px; }
.daily p { color: var(--muted); margin: 0 0 22px; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.mini b { display: block; font: 300 32px/1 var(--f-display); color: var(--cream); }
.mini span { font-size: 13px; color: var(--muted); }
.recent { display: flex; flex-direction: column; gap: 8px; }
.recent-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.025); }
.recent-row .gi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.recent-row .gi svg { width: 17px; height: 17px; }
.recent-row div { flex: 1; min-width: 0; }
.recent-row b { display: block; font-size: 14px; }
.recent-row small { color: var(--muted); font-size: 12px; }
.recent-row .r { font-weight: 800; color: var(--gold-2); font-size: 14px; display: flex; align-items: center; gap: 4px; }
.recent-row .r svg { width: 16px; height: 16px; }
.empty { color: var(--muted); font-size: 14px; padding: 20px 0; text-align: center; }

/* games grid */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-f { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 14px; font-weight: 700; color: var(--muted); transition: all .3s; }
.chip-f:hover { color: var(--cream); border-color: var(--line-2); }
.chip-f.on { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.game-card { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; display: flex; flex-direction: column; transform: perspective(900px) rotateX(var(--rx,0)) rotateY(var(--ry,0)); transition: transform .5s var(--ease), border-color .4s, box-shadow .4s; cursor: pointer; }
.game-card:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 50%, transparent); }
.gc-art { position: relative; height: 150px; overflow: hidden; background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--c) 45%, transparent), transparent 60%), radial-gradient(circle at 20% 90%, color-mix(in srgb, var(--c2, var(--c)) 30%, transparent), transparent 55%), #0f121b; border-bottom: 1px solid var(--line); }
.gc-art .gi-big { position: absolute; left: 22px; bottom: 18px; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(7,8,13,.5); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(8px); color: #fff; transition: transform .6s var(--ease); }
.gc-art .gi-big svg { width: 28px; height: 28px; }
.game-card:hover .gi-big { transform: translateY(-4px) rotate(-6deg) scale(1.05); }
.gc-art .deco { position: absolute; right: -10px; top: 10px; font: 300 italic 92px/1 var(--f-display); color: rgba(255,255,255,.08); letter-spacing: -.05em; white-space: nowrap; transition: transform .8s var(--ease); }
.game-card:hover .deco { transform: translateX(-14px); }
.gc-tags { position: absolute; top: 14px; left: 16px; display: flex; gap: 6px; }
.tag { font: 700 11px var(--f-sans); padding: 5px 10px; border-radius: 999px; background: rgba(7,8,13,.55); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); color: var(--cream); letter-spacing: .02em; }
.tag.daily-tag { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.gc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.gc-body h3 { margin: 0; font: 400 26px/1.05 var(--f-display); color: var(--cream); letter-spacing: -.015em; }
.gc-body .uz { font-size: 13px; color: var(--muted); margin-top: 3px; }
.gc-body p { font-size: 14px; color: var(--muted); margin: 12px 0 18px; flex: 1; }
.gc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gc-best { font-size: 12.5px; color: var(--muted); }
.gc-best b { color: var(--cream); font-size: 14px; }
.gc-stars { display: flex; gap: 2px; color: rgba(255,255,255,.12); }
.gc-stars svg { width: 16px; height: 16px; }
.gc-stars .on { color: var(--gold); }
.play-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #0b0b0b; transition: transform .4s var(--ease); box-shadow: 0 10px 24px -8px var(--c); }
.play-btn svg { width: 18px; height: 18px; margin-left: 2px; }
.game-card:hover .play-btn { transform: scale(1.1); }

/* leaderboard */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 26px; }
.pod { text-align: center; padding: 26px 14px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-2); position: relative; overflow: hidden; }
.pod.p1 { padding-top: 40px; border-color: rgba(233,196,106,.45); background: radial-gradient(300px 200px at 50% 0%, rgba(233,196,106,.22), transparent 70%), var(--ink-2); }
.pod .crown { width: 30px; height: 30px; color: var(--gold); margin: 0 auto 8px; display: block; animation: bob 3s ease-in-out infinite; }
.pod .av { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--line-2); }
.pod.p1 .av { width: 80px; height: 80px; box-shadow: 0 0 0 2px var(--gold), 0 0 30px rgba(233,196,106,.4); }
.pod b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod span { font-size: 13px; color: var(--gold-2); font-weight: 800; }
.pod .place { position: absolute; top: 12px; left: 14px; font: 300 30px/1 var(--f-display); color: rgba(255,255,255,.15); }
.lb { display: flex; flex-direction: column; gap: 8px; }
.lb-row { display: grid; grid-template-columns: 40px 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.lb-row.me { border-color: rgba(233,196,106,.5); background: rgba(233,196,106,.07); }
.lb-row .n { font: 400 20px var(--f-display); color: var(--muted); text-align: center; }
.lb-row .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.lb-row b { display: block; font-size: 15px; }
.lb-row small { color: var(--muted); font-size: 12.5px; }
.lb-row .xp { font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* shop */
.shop-sec h3 { font: 400 24px var(--f-display); color: var(--cream); margin: 34px 0 16px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.item { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-2); display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, transform .4s var(--ease); }
.item:hover { border-color: var(--line-2); transform: translateY(-3px); }
.item .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--gold)) 15%, transparent); color: var(--c, var(--gold)); }
.item .ic svg { width: 26px; height: 26px; }
.item .av-prev { width: 64px; height: 64px; border-radius: 50%; }
.item h4 { margin: 4px 0 0; font-size: 16px; }
.item p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; }
.item .own { font-size: 12px; color: var(--mint); font-weight: 700; }
.price { display: inline-flex; align-items: center; gap: 6px; }
.price svg { width: 18px; height: 18px; }

/* badges */
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.badge { padding: 24px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-2); text-align: center; position: relative; overflow: hidden; }
.badge .em { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff 30%), var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); color: #0b0b0b; box-shadow: 0 14px 30px -10px var(--c), inset 0 -4px 10px rgba(0,0,0,.25); }
.badge .em svg { width: 34px; height: 34px; }
.badge h4 { margin: 0; font-size: 15px; }
.badge p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.badge.locked .em { background: rgba(255,255,255,.05); box-shadow: none; color: var(--muted-2); }
.badge.locked h4 { color: var(--muted); }
.badge.got::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%); background-size: 250% 100%; animation: shine 4s linear infinite; pointer-events: none; }

/* profile */
.profile-hero { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profile-hero .av { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #fff; box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--gold); }
.profile-hero h2 { margin: 0; font: 300 40px/1 var(--f-display); color: var(--cream); }
.profile-hero .muted { margin: 6px 0 0; }
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0; }
.av-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.av-opt { width: 52px; height: 52px; border-radius: 50%; border: 2px solid transparent; position: relative; transition: transform .3s var(--ease); }
.av-opt:hover { transform: scale(1.08); }
.av-opt.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,196,106,.25); }
.av-opt.lock { opacity: .35; }
.av-opt.lock::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><rect x='6' y='11' width='12' height='9' rx='2'/><path d='M9 11V8a3 3 0 016 0v3'/></svg>") center/20px no-repeat; }
.per-game { display: flex; flex-direction: column; gap: 10px; }
.pg-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 14px; align-items: center; font-size: 14px; }
.pg-row .bar { height: 8px; }

/* modal content: reward / level */
.reward { text-align: center; }
.reward h2 { font: 300 38px/1.05 var(--f-display); color: var(--cream); margin: 10px 0 8px; letter-spacing: -.02em; }
.reward h2 em { color: var(--gold-2); }
.reward p { color: var(--muted); margin: 0 0 22px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 20px 0 24px; }
.day { padding: 10px 2px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 11px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.day svg { width: 20px; height: 20px; opacity: .4; }
.day b { color: var(--cream); font-size: 12px; }
.day.done { border-color: rgba(95,227,180,.4); background: rgba(95,227,180,.06); }
.day.done svg { opacity: 1; }
.day.today { border-color: var(--gold); background: rgba(233,196,106,.12); transform: scale(1.06); box-shadow: 0 10px 30px -10px rgba(233,196,106,.5); }
.day.today svg { opacity: 1; animation: bump 1s infinite; }
.big-ic { width: 110px; height: 110px; margin: 0 auto; position: relative; display: grid; place-items: center; }
.big-ic::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(233,196,106,.35), transparent 30%, rgba(233,196,106,.25), transparent 60%, rgba(233,196,106,.35), transparent); animation: spin 6s linear infinite; filter: blur(4px); mask: radial-gradient(circle, transparent 38%, #000 40%, transparent 70%); -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%, transparent 70%); }
.big-ic svg { width: 100%; height: 100%; position: relative; filter: drop-shadow(0 16px 30px rgba(233,196,106,.45)); }
.big-ic.lvl b { position: relative; font: 300 64px/1 var(--f-display); color: var(--ink); z-index: 1; }
.big-ic.lvl .hexbg { position: absolute; inset: 0; }

/* =========================================================
   GAME PLAYER
   ========================================================= */
.play { position: fixed; inset: 0; z-index: 8000; background: var(--ink); display: flex; flex-direction: column; overflow: hidden; }
.play-bg { position: absolute; inset: 0; pointer-events: none; }
.play-bg i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .22; }
.play-bg i:first-child { background: var(--gc, var(--gold)); left: -20vmax; top: -25vmax; animation: drift1 16s ease-in-out infinite alternate; }
.play-bg i:last-child { background: var(--gc2, var(--violet)); right: -25vmax; bottom: -30vmax; animation: drift2 20s ease-in-out infinite alternate; }
.play-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gutter); }
.play-title { font: 400 22px var(--f-display); color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: center; }
.hud { display: flex; gap: 8px; }
.hud-item { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-weight: 800; font-variant-numeric: tabular-nums; }
.hud-item svg { width: 17px; height: 17px; color: var(--muted); }
.hud-score svg { color: var(--gold); }
.hud-item.warn { color: var(--bad); border-color: rgba(255,107,107,.4); animation: bump .5s infinite; }
#hudLives { gap: 3px; } #hudLives svg { color: var(--coral); width: 18px; height: 18px; } #hudLives svg.lost { color: rgba(255,255,255,.12); }
.timebar { position: relative; z-index: 3; height: 3px; background: rgba(255,255,255,.05); margin: 0 var(--gutter); border-radius: 3px; overflow: hidden; }
.timebar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gc, var(--gold)), var(--gold-2)); transform-origin: left; border-radius: inherit; }
.powerups { position: relative; z-index: 3; display: flex; justify-content: center; gap: 8px; padding: 10px var(--gutter) 0; min-height: 10px; }
.pu { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-size: 13px; font-weight: 700; transition: all .3s; }
.pu svg { width: 16px; height: 16px; color: var(--gold); }
.pu:hover { border-color: var(--gold); background: rgba(233,196,106,.08); }
.pu b { color: var(--gold-2); }
.pu[disabled] { opacity: .35; pointer-events: none; }
.combo { position: absolute; z-index: 4; top: 120px; left: 50%; transform: translateX(-50%); font: 800 15px var(--f-sans); color: var(--gold-2); pointer-events: none; opacity: 0; letter-spacing: .04em; }
.combo.show { animation: comboPop .9s var(--ease-out); }
@keyframes comboPop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 25% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -16px) scale(1); } }
.stage { position: relative; z-index: 2; flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center; padding: 20px var(--gutter) 40px; }
.stage > * { width: 100%; max-width: 760px; }
.stage-center { margin: auto 0; }

/* intro / countdown / results */
.intro { text-align: center; padding: 20px 0; }
.intro .gi-hero { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 28px; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--gc) 80%, #fff), var(--gc) 60%, color-mix(in srgb, var(--gc) 50%, #000)); color: #0b0b0b; box-shadow: 0 30px 60px -20px var(--gc); animation: bob 4s ease-in-out infinite; }
.intro .gi-hero svg { width: 46px; height: 46px; }
.intro h2 { font: 300 clamp(40px, 7vw, 68px)/1 var(--f-display); color: var(--cream); margin: 0; letter-spacing: -.035em; }
.intro .uz { color: var(--gold-2); font: italic 400 20px var(--f-display); margin: 8px 0 18px; }
.intro p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; margin: 0 auto 30px; }
.rule { padding: 14px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 13px; color: var(--muted); }
.rule b { display: block; font-size: 18px; color: var(--cream); margin-bottom: 2px; }
.countdown { position: fixed; inset: 0; z-index: 8500; display: grid; place-items: center; pointer-events: none; }
.countdown b { font: 300 min(40vw, 260px)/1 var(--f-display); color: var(--cream); text-shadow: 0 0 80px var(--gc, var(--gold)); }
.results { text-align: center; padding: 10px 0 30px; }
.res-title { font: 300 clamp(44px, 8vw, 80px)/1 var(--f-display); color: var(--cream); margin: 8px 0 6px; letter-spacing: -.04em; }
.res-title em { color: var(--gold-2); }
.res-stars { display: flex; justify-content: center; gap: 10px; margin: 18px 0 8px; }
.res-stars svg { width: 54px; height: 54px; color: rgba(255,255,255,.08); transform: scale(0); }
.res-stars svg.on { color: var(--gold); filter: drop-shadow(0 8px 20px rgba(233,196,106,.6)); }
.res-stars svg:nth-child(2) { width: 68px; height: 68px; margin-top: -12px; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.res-box { padding: 18px 10px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.res-box b { display: flex; align-items: center; justify-content: center; gap: 6px; font: 300 36px/1 var(--f-display); color: var(--cream); }
.res-box b svg { width: 26px; height: 26px; }
.res-box > span { font-size: 13px; color: var(--muted); margin-top: 6px; display: block; }
.res-box.gold { border-color: rgba(233,196,106,.4); background: rgba(233,196,106,.07); }
.res-box.gold b { color: var(--gold-2); }
.res-new { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(95,227,180,.1); border: 1px solid rgba(95,227,180,.35); color: var(--mint); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.res-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 20px; }
.res-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.review { text-align: left; margin: 26px auto 0; max-width: 560px; }
.review summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: 14px; text-align: center; list-style: none; }
.review summary::-webkit-details-marker { display: none; }
.review ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.review li { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.03); font-size: 14px; display: flex; gap: 10px; }
.review li .ok { color: var(--mint); } .review li .no { color: var(--bad); }

/* ---- shared game UI ---- */
.q-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); text-align: center; backdrop-filter: blur(10px); position: relative; }
.q-label { font: 500 11px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.q-text { font: 400 clamp(24px, 3.6vw, 36px)/1.25 var(--f-display); color: var(--cream); letter-spacing: -.01em; }
.q-text .blank { display: inline-block; min-width: 90px; border-bottom: 2px solid var(--gc, var(--gold)); color: var(--gc, var(--gold)); margin: 0 4px; }
.q-sub { color: var(--muted); margin-top: 10px; font-size: 15px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.opt { min-height: 62px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(255,255,255,.035); font-weight: 700; font-size: 17px; text-align: left; display: flex; align-items: center; gap: 12px; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.opt kbd { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.06); font: 600 12px var(--f-mono); color: var(--muted); flex: none; }
.opt:hover { border-color: var(--gc, var(--gold)); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.opt.right { border-color: var(--ok); background: rgba(95,227,180,.14); color: #c9fbe8; }
.opt.wrong { border-color: var(--bad); background: rgba(255,107,107,.12); color: #ffc4c4; }
.opt.right kbd { background: var(--ok); color: var(--ink); } .opt.wrong kbd { background: var(--bad); color: var(--ink); }
.opts.lock .opt { pointer-events: none; }
.feedback { min-height: 26px; margin-top: 16px; text-align: center; font-size: 14.5px; color: var(--muted); }
.feedback.ok { color: var(--mint); } .feedback.no { color: #ffadad; }
.progress-dots { display: flex; justify-content: center; gap: 5px; margin-bottom: 18px; flex-wrap: wrap; }
.progress-dots i { width: 22px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.1); }
.progress-dots i.ok { background: var(--ok); } .progress-dots i.no { background: var(--bad); } .progress-dots i.cur { background: var(--gc, var(--gold)); }
.big-input { width: 100%; height: 64px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); padding: 0 22px; font-size: 22px; font-weight: 600; text-align: center; outline: none; transition: border-color .3s, box-shadow .3s; }
.big-input:focus { border-color: var(--gc, var(--gold)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gc, var(--gold)) 15%, transparent); }
.row-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.sound-btn { width: 110px; height: 110px; border-radius: 50%; margin: 6px auto 10px; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--gc) 75%, #fff), var(--gc) 60%); color: #0b0b0b; box-shadow: 0 20px 50px -15px var(--gc); position: relative; transition: transform .3s var(--ease); }
.sound-btn svg { width: 44px; height: 44px; }
.sound-btn:hover { transform: scale(1.05); }
.sound-btn.playing::before, .sound-btn.playing::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gc); animation: ripple 1.4s infinite; }
.sound-btn.playing::after { animation-delay: .7s; }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* word hunt */
.wh-wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; max-width: 980px !important; }
.wh-grid { --n: 10; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; width: min(86vw, 560px); aspect-ratio: 1; padding: 10px; border-radius: 22px; background: rgba(255,255,255,.035); border: 1px solid var(--line-2); touch-action: none; user-select: none; -webkit-user-select: none; position: relative; }
.wh-grid .cell { display: grid; place-items: center; border-radius: 10px; font: 700 clamp(14px, 2.6vw, 22px)/1 var(--f-sans); color: var(--cream); transition: background .15s, transform .2s var(--ease), color .2s; position: relative; z-index: 1; }
.wh-grid .cell.sel { background: var(--gc); color: #0b0b0b; transform: scale(1.08); }
.wh-grid .cell.found { color: #0b0b0b; }
.wh-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.wh-side h3 { font: 400 26px var(--f-display); color: var(--cream); margin: 0; }
.wh-side .uz { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.wh-words { display: flex; flex-wrap: wrap; gap: 8px; }
.wh-word { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; letter-spacing: .05em; transition: all .4s var(--ease); }
.wh-word.done { background: var(--wc, var(--ok)); color: #0b0b0b; border-color: transparent; text-decoration: line-through; text-decoration-thickness: 2px; }
.wh-hint { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* speech */
.mic-btn { width: 130px; height: 130px; border-radius: 50%; margin: 10px auto; display: grid; place-items: center; background: linear-gradient(145deg, #ff8a7a, #ff5e7e); color: #fff; box-shadow: 0 24px 60px -18px rgba(255,94,126,.7); position: relative; transition: transform .3s var(--ease); }
.mic-btn svg { width: 50px; height: 50px; }
.mic-btn:hover { transform: scale(1.05); }
.mic-btn.rec { animation: recPulse 1.2s infinite; }
.mic-btn.rec::before, .mic-btn.rec::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ff6b8a; animation: ripple 1.4s infinite; }
.mic-btn.rec::after { animation-delay: .7s; }
@keyframes recPulse { 50% { transform: scale(1.06); } }
.heard { min-height: 30px; font-size: 18px; color: var(--muted); margin-top: 8px; font-style: italic; }
.acc-ring { width: 120px; height: 120px; margin: 16px auto 0; position: relative; }
.acc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.acc-ring circle { fill: none; stroke-width: 8; }
.acc-ring .trk { stroke: rgba(255,255,255,.08); }
.acc-ring .val { stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 1s var(--ease), stroke .4s; }
.acc-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 300 34px var(--f-display); color: var(--cream); }
.word-diff { margin-top: 10px; font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.word-diff .g { color: var(--mint); } .word-diff .r { color: var(--bad); text-decoration: underline wavy; }
.tip { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.04); font-size: 13.5px; color: var(--muted); }
.tip svg { width: 15px; height: 15px; color: var(--gold); }
.pair-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.pair-opts .opt { justify-content: center; font: 400 34px var(--f-display); min-height: 110px; text-align: center; }

/* scramble / builder tiles */
.slots, .tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.slots { min-height: 70px; padding: 14px; border-radius: 20px; border: 1px dashed var(--line-2); margin: 22px 0 16px; background: rgba(255,255,255,.02); }
.tile { min-width: 52px; height: 56px; padding: 0 16px; border-radius: 14px; display: grid; place-items: center; font: 800 22px var(--f-sans); background: linear-gradient(180deg, #232839, #1a1e2c); border: 1px solid var(--line-2); box-shadow: 0 5px 0 #0c0e15, 0 10px 20px -8px rgba(0,0,0,.6); transition: transform .2s var(--ease), box-shadow .2s, opacity .3s; text-transform: uppercase; animation: tileIn .4s var(--ease-out) backwards; }
.tile:hover { transform: translateY(-3px); }
.tile:active { transform: translateY(3px); box-shadow: 0 2px 0 #0c0e15; }
.tile.used { opacity: .18; pointer-events: none; }
.tile.word { text-transform: none; font-size: 17px; font-weight: 700; height: 48px; }
.slots .tile { background: linear-gradient(180deg, color-mix(in srgb, var(--gc) 85%, #fff), var(--gc)); color: #0b0b0b; box-shadow: 0 5px 0 color-mix(in srgb, var(--gc) 50%, #000); border-color: transparent; }
.slots.ok .tile { background: var(--ok); box-shadow: 0 5px 0 #2a9a73; }
@keyframes tileIn { from { opacity: 0; transform: translateY(16px) scale(.8); } }

/* memory */
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; perspective: 1000px; }
.mem { aspect-ratio: 3/3.6; position: relative; transform-style: preserve-3d; transition: transform .6s var(--ease); cursor: pointer; }
.mem.flip, .mem.done { transform: rotateY(180deg); }
.mem .f, .mem .b { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; padding: 8px; text-align: center; }
.mem .f { background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--gc) 40%, transparent), transparent 60%), #171b27; border: 1px solid var(--line-2); }
.mem .f::after { content: "?"; font: 300 italic 40px var(--f-display); color: rgba(255,255,255,.25); }
.mem .b { transform: rotateY(180deg); background: #f4efe6; color: #12131a; font-weight: 800; font-size: clamp(12px, 2vw, 16px); border: 1px solid #fff; line-height: 1.2; }
.mem .b.uz { background: linear-gradient(160deg, #fff4d6, #f3dd9d); font-weight: 700; }
.mem.done .b { background: var(--ok); border-color: var(--ok); animation: bump .5s; }

/* word rain */
.rain { position: relative; width: 100%; max-width: 900px !important; flex: 1; min-height: 420px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(98,182,255,.05)); overflow: hidden; }
.rain::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--bad), transparent); opacity: .7; }
.drop { position: absolute; top: 0; padding: 8px 14px; border-radius: 12px; font-weight: 800; font-size: 17px; background: rgba(20,24,36,.9); border: 1px solid var(--line-2); white-space: nowrap; box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); will-change: transform; }
.drop .t { color: var(--gc); }
.drop.gold { border-color: var(--gold); box-shadow: 0 0 20px rgba(233,196,106,.4); }
.drop.pop { animation: dropPop .35s forwards; }
@keyframes dropPop { to { opacity: 0; transform: var(--tf) scale(1.6); filter: blur(4px); } }
.rain-input { margin-top: 14px; max-width: 900px !important; }

/* swipe */
.swipe-area { position: relative; height: 360px; display: grid; place-items: center; }
.sw-card { position: absolute; width: min(88vw, 360px); height: 300px; border-radius: 28px; background: linear-gradient(170deg, #1c2130, #121621); border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); touch-action: none; user-select: none; cursor: grab; }
.sw-card .w1, .sw-card .w2 { font: 400 40px var(--f-display); color: var(--cream); }
.sw-card .amp { font: italic 300 22px var(--f-display); color: var(--muted); }
.sw-card .ask { position: absolute; bottom: 22px; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sw-card .stamp { position: absolute; top: 26px; padding: 6px 14px; border: 3px solid; border-radius: 10px; font: 900 22px var(--f-sans); letter-spacing: .08em; opacity: 0; }
.sw-card .yes { left: 22px; color: var(--ok); transform: rotate(-12deg); }
.sw-card .no { right: 22px; color: var(--bad); transform: rotate(12deg); }
.sw-card.back { transform: scale(.94) translateY(16px); opacity: .5; }
.swipe-btns { display: flex; justify-content: center; gap: 24px; margin-top: 10px; }
.sw-btn { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; border: 2px solid; transition: transform .25s var(--ease), background .25s; }
.sw-btn svg { width: 30px; height: 30px; }
.sw-btn.n { border-color: var(--bad); color: var(--bad); } .sw-btn.y { border-color: var(--ok); color: var(--ok); }
.sw-btn:hover { transform: scale(1.1); } .sw-btn.n:hover { background: rgba(255,107,107,.12); } .sw-btn.y:hover { background: rgba(95,227,180,.12); }
.sw-mode { text-align: center; font: 500 12px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gc); margin-bottom: 4px; }

/* collocation */
.col-word { text-align: center; margin: 10px 0 26px; }
.col-word b { display: inline-block; font: 400 clamp(34px, 6vw, 52px) var(--f-display); color: var(--cream); padding: 14px 30px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); animation: tileIn .4s var(--ease-out); }
.buckets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bucket { padding: 22px 10px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); text-align: center; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.bucket b { display: block; font: 400 30px var(--f-display); color: var(--cream); }
.bucket small { color: var(--muted); font-size: 12px; }
.bucket:hover { transform: translateY(-4px); border-color: var(--gc); }
.bucket.right { border-color: var(--ok); background: rgba(95,227,180,.12); }
.bucket.wrong { border-color: var(--bad); background: rgba(255,107,107,.1); }
.bucket kbd { display: inline-block; margin-top: 6px; font: 600 11px var(--f-mono); color: var(--muted-2); }

/* hangman / rescue */
.rescue-scene { width: 220px; height: 200px; margin: 0 auto; }
.rescue-scene .part { transition: opacity .4s, transform .5s var(--ease); }
.letters-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.lt { width: 44px; height: 54px; border-bottom: 3px solid var(--line-2); display: grid; place-items: center; font: 800 26px var(--f-sans); text-transform: uppercase; }
.lt.show { color: var(--cream); border-color: var(--gc); animation: tileIn .3s var(--ease-out); }
.lt.miss { color: var(--bad); }
.kbd { display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px; max-width: 640px; margin: 0 auto; }
.key { height: 46px; border-radius: 10px; font-weight: 800; background: rgba(255,255,255,.05); border: 1px solid var(--line); text-transform: uppercase; transition: all .2s; }
.key:hover { background: rgba(255,255,255,.1); }
.key.ok { background: var(--ok); color: var(--ink); border-color: var(--ok); }
.key.no { background: rgba(255,107,107,.15); color: rgba(255,150,150,.5); border-color: transparent; }
.key[disabled] { pointer-events: none; }

/* =========================================================
   ADMIN
   ========================================================= */
#admin { min-height: 100svh; background: radial-gradient(900px 500px at 100% 0%, rgba(98,182,255,.08), transparent 60%), var(--ink); }
.adm-login { min-height: 100svh; display: grid; place-items: center; padding: 20px; }
.adm-login .modal-card { animation: popIn .6s var(--ease-out); }
.adm-login .lock-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(233,196,106,.12); border: 1px solid rgba(233,196,106,.3); color: var(--gold); margin-bottom: 20px; }
.adm-login .lock-ic svg { width: 30px; height: 30px; }
.adm-login h2 { font: 400 32px var(--f-display); color: var(--cream); margin: 0 0 6px; }
.adm { display: grid; grid-template-columns: 250px 1fr; min-height: 100svh; }
.adm-side { position: sticky; top: 0; height: 100svh; padding: 24px 16px; border-right: 1px solid var(--line); background: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.adm-side .brand { margin: 0 8px 28px; }
.adm-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: 14.5px; transition: all .25s; }
.adm-nav a svg { width: 18px; height: 18px; }
.adm-nav a:hover { color: var(--cream); background: rgba(255,255,255,.04); }
.adm-nav a.on { color: var(--ink); background: var(--cream); }
.adm-side .sp { flex: 1; }
.adm-mode { font-size: 12px; color: var(--muted); padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; }
.adm-mode b { color: var(--mint); }
.adm-main { padding: 32px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--ink-2); }
.kpi span { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi span svg { width: 16px; height: 16px; }
.kpi b { display: block; font: 300 40px/1.1 var(--f-display); color: var(--cream); margin-top: 8px; }
.kpi small { color: var(--mint); font-size: 12.5px; font-weight: 700; }
.adm-grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: 140px 1fr 46px; gap: 12px; align-items: center; font-size: 13.5px; }
.hbar .bar { height: 10px; } .hbar .bar > span { background: var(--c, var(--gold)); box-shadow: none; }
.hbar .bar > span::after { display: none; }
.hbar em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 160px; }
.tbl-wrap { overflow: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--ink-2); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.tbl th { text-align: left; font: 600 11.5px var(--f-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); position: sticky; top: 0; cursor: pointer; white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255,255,255,.02); }
.tbl .u { display: flex; align-items: center; gap: 12px; }
.tbl .u .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; }
.tbl .u small { display: block; color: var(--muted); font-size: 12px; }
.tbl .num { font-variant-numeric: tabular-nums; font-weight: 700; }
.st { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.st.on { color: var(--mint); background: rgba(95,227,180,.1); } .st.off { color: var(--bad); background: rgba(255,107,107,.1); }
.tbl-tools { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.tbl-tools .input { height: 44px; max-width: 320px; }
.act { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; border: 1px solid var(--line); margin-left: 4px; color: var(--muted); }
.act:hover { color: var(--cream); border-color: var(--line-2); }
.act svg { width: 16px; height: 16px; }
.act.del:hover { color: var(--bad); border-color: rgba(255,107,107,.4); }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.toggle-row:last-child { border: 0; }
.sw { width: 44px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.1); position: relative; transition: background .3s; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.sw.on { background: var(--mint); } .sw.on::after { transform: translateX(18px); }
.code { font: 500 12.5px var(--f-mono); padding: 12px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); word-break: break-all; color: var(--gold-2); margin-top: 10px; }
.adm-mobile-nav { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .app-tabs a span { display: none; }
  .app-tabs a { padding: 10px 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .portrait { width: min(70vw, 320px); }
  .chip { font-size: 12px; padding: 8px 12px 8px 9px; } .chip svg { width: 20px; height: 20px; }
  .chip-1 { left: -18%; } .chip-2 { right: -20%; }
  .ring-text { width: 110px; height: 110px; right: -24px; top: -18px; }
  .about-grid, .gt-head { grid-template-columns: 1fr; }
  .mech-grid { grid-template-columns: 1fr 1fr; }
  .loop-arrow { display: none; }
  .dash { grid-template-columns: 1fr; }
  .hello { grid-template-columns: 1fr; }
  .rank-badge { flex-direction: row; text-align: left; }
  .rank-emblem { width: 84px; height: 84px; } .rank-emblem b { font-size: 36px; }
  .auth-card { grid-template-columns: 1fr; max-width: 460px; }
  .auth-side { display: none; }
  .auth-main { padding: 36px 26px; }
  .wh-wrap { grid-template-columns: 1fr; justify-items: center; }
  .wh-side { width: 100%; text-align: center; } .wh-words { justify-content: center; }
  .adm { grid-template-columns: 1fr; }
  .adm-side { display: none; }
  .adm-mobile-nav { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--ink-2); position: sticky; top: 0; z-index: 5; }
  .adm-mobile-nav a { white-space: nowrap; padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); }
  .adm-mobile-nav a.on { background: var(--cream); color: var(--ink); }
  .adm-grid2, .set-grid { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .nav .btn span { display: none; } .nav .btn { width: 44px; padding: 0; }
  .nav .btn svg { margin: 0; }
  .brand-text small { display: none; }
  .hero-meta b { font-size: 26px; }
  .hero-actions .btn { flex: 1; }
  .stats { gap: 10px; } .stat { padding: 20px 16px; } .stat b { font-size: 42px; }
  .mech-grid { grid-template-columns: 1fr; }
  .articles-pin { min-height: auto; padding: 80px 0; }
  .h-track { width: auto; flex-direction: column; padding: 0 var(--gutter); transform: none !important; }
  .art-card, .art-end { width: 100%; min-height: 320px; }
  .art-end { min-height: auto; padding: 20px 0; }
  .foot { flex-direction: column; align-items: flex-start; }
  .app-tabs { display: none; }
  .app-top { padding: 10px 16px; }
  .app-top .brand-text { display: none; }
  .pill { height: 36px; padding: 0 11px 0 8px; font-size: 14px; }
  .icon-btn#muteBtn { display: none; }
  .bottom-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; padding: 6px; border-radius: 22px; background: rgba(16,19,28,.88); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -10px rgba(0,0,0,.8); }
  .bottom-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; border-radius: 16px; font-size: 10.5px; font-weight: 700; color: var(--muted); transition: all .3s; }
  .bottom-tabs a svg { width: 21px; height: 21px; }
  .bottom-tabs a.on { color: var(--ink); background: var(--cream); }
  .app-main { padding: 22px 16px 120px; }
  .hello { padding: 24px; }
  .podium { gap: 8px; } .pod { padding: 18px 6px 14px; } .pod .av { width: 48px; height: 48px; font-size: 17px; } .pod.p1 .av { width: 60px; height: 60px; }
  .pod b { font-size: 13px; }
  .lb-row { grid-template-columns: 28px 38px 1fr auto; gap: 10px; padding: 10px 12px; }
  .lb-row .av { width: 38px; height: 38px; }
  .play-title { font-size: 17px; }
  .hud-item { height: 36px; padding: 0 10px; font-size: 14px; }
  .opts { grid-template-columns: 1fr; }
  .opt { min-height: 54px; font-size: 16px; }
  .rules { grid-template-columns: repeat(3, 1fr); } .rule { font-size: 11.5px; padding: 10px 6px; } .rule b { font-size: 15px; }
  .res-grid { gap: 8px; } .res-box b { font-size: 28px; }
  .mem-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile { min-width: 44px; height: 50px; font-size: 19px; padding: 0 12px; }
  .tile.word { font-size: 15px; height: 44px; padding: 0 12px; }
  .buckets { grid-template-columns: repeat(2, 1fr); }
  .kbd { grid-template-columns: repeat(9, 1fr); gap: 5px; }
  .key { height: 42px; }
  .lt { width: 34px; height: 46px; font-size: 22px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi b { font-size: 30px; }
  .hbar { grid-template-columns: 100px 1fr 36px; }
  .sound-btn { width: 92px; height: 92px; }
  .mic-btn { width: 110px; height: 110px; }
  .pair-opts .opt { font-size: 28px; min-height: 90px; }
  .swipe-area { height: 320px; } .sw-card { height: 270px; }
}
@media (max-width: 400px) {
  .hero-title { font-size: 52px; }
  .rules { grid-template-columns: 1fr 1fr 1fr; }
  .streak-pill { display: none; }
}


/* mobile fixes */
.adm > div { min-width: 0; }
@media (max-width: 720px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .chip-1 { left: -6%; } .chip-2 { right: -6%; }
  .adm-main .page-head h1 { font-size: 34px; }
  .hbar { grid-template-columns: 92px 1fr 30px; font-size: 12.5px; }
}

.opts.opts-1col { grid-template-columns: 1fr; }

/* =========================================================
   LIVE QUIZ
   ========================================================= */
.live-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; padding: 30px 32px; margin-bottom: 22px; border-radius: var(--r-xl); border: 1px solid rgba(255,77,109,.35); background: radial-gradient(500px 260px at 0% 0%, rgba(255,77,109,.22), transparent 60%), radial-gradient(500px 300px at 100% 100%, rgba(61,139,255,.2), transparent 60%), var(--ink-3); }
.live-banner h2 { font: 300 clamp(30px, 4vw, 46px)/1.02 var(--f-display); color: var(--cream); margin: 12px 0 8px; letter-spacing: -.03em; }
.live-banner h2 em { color: var(--gold-2); }
.live-banner p { color: var(--muted); margin: 0; max-width: 560px; }
.lb-actions { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.lb-shapes { position: absolute; right: -30px; top: -30px; width: 260px; height: 260px; opacity: .2; pointer-events: none; }
.lb-shapes i { position: absolute; width: 90px; height: 90px; background: var(--oc); border-radius: 22px; animation: spin 18s linear infinite; }
.lb-shapes i:nth-child(1) { left: 0; top: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.lb-shapes i:nth-child(2) { left: 120px; top: 10px; transform: rotate(45deg); animation-direction: reverse; }
.lb-shapes i:nth-child(3) { left: 30px; top: 120px; border-radius: 50%; }
.lb-shapes i:nth-child(4) { left: 140px; top: 130px; border-radius: 10px; animation-duration: 24s; }

.live { position: fixed; inset: 0; z-index: 8200; background: #0b0a1a; display: flex; flex-direction: column; overflow: hidden; }
.lv-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lv-bg i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.lv-bg i:nth-child(1) { width: 55vmax; height: 55vmax; left: -15vmax; top: -20vmax; background: #6c3bff; animation: drift1 18s ease-in-out infinite alternate; }
.lv-bg i:nth-child(2) { width: 45vmax; height: 45vmax; right: -15vmax; bottom: -20vmax; background: #ff3d7f; animation: drift2 22s ease-in-out infinite alternate; }
.lv-bg i:nth-child(3) { width: 30vmax; height: 30vmax; left: 40%; top: 50%; background: #e9c46a; opacity: .12; animation: drift1 26s ease-in-out infinite alternate-reverse; }
.lv-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gutter); }
.lv-brand { display: flex; align-items: center; gap: 10px; font: 800 14px var(--f-sans); letter-spacing: .18em; color: var(--cream); }
.lv-brand small { font: 500 11px var(--f-mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-left: 4px; }
.lv-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 0 rgba(255,77,109,.7); animation: pulse 1.6s infinite; }
.lv-pin-mini { min-width: 42px; text-align: right; font-size: 14px; color: var(--muted); }
.lv-pin-mini b { color: var(--cream); font-size: 18px; letter-spacing: .08em; }
.lv-stage { position: relative; z-index: 2; flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center; padding: 10px var(--gutter) 40px; }
.lv-stage > * { width: 100%; }
.lv-card { margin: auto; padding: 36px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: rgba(18,16,40,.75); backdrop-filter: blur(16px); text-align: center; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); }
.lv-card .lock-ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: rgba(233,196,106,.12); border: 1px solid rgba(233,196,106,.3); color: var(--gold); }
.lv-card .lock-ic svg { width: 30px; height: 30px; }
.lv-card form { text-align: left; margin-top: 18px; }
.lv-narrow { max-width: 440px; }
.lv-h { font: 400 34px/1.1 var(--f-display); color: var(--cream); margin: 0 0 8px; letter-spacing: -.02em; }
.lv-h1 { font: 300 clamp(32px, 4.5vw, 54px)/1.02 var(--f-display); color: var(--cream); margin: 0; letter-spacing: -.03em; }
.lv-h1 em { color: var(--gold-2); }
.lv-wide { max-width: 1180px; margin: 0 auto; }
.lv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 10px 0 22px; }
.lv-head p { margin: 8px 0 0; }
.lv-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.lv-set { position: relative; overflow: hidden; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: rgba(20,18,44,.7); cursor: pointer; display: flex; flex-direction: column; min-height: 200px; transition: transform .4s var(--ease), border-color .3s; }
.lv-set::before { content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: var(--c); opacity: .22; filter: blur(20px); transition: transform .6s var(--ease); }
.lv-set:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.lv-set:hover::before { transform: scale(1.5); }
.lv-set-top { display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 13px; }
.lv-set-n { font: 300 40px/1 var(--f-display); color: var(--c); }
.lv-set h3 { font: 400 22px/1.15 var(--f-display); color: var(--cream); margin: 14px 0 4px; }
.lv-set p { margin: 0; color: var(--muted); font-size: 13.5px; flex: 1; }
.lv-set-foot { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
/* lobby */
.lv-lobby { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.lv-join { text-align: center; padding: 28px 20px 30px; border-radius: 28px; background: rgba(255,255,255,.96); color: #12102a; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.lv-join-steps { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-size: 15px; color: #555; margin-bottom: 14px; }
.lv-join-steps b { color: #12102a; }
.lv-pin-label { font: 700 13px var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: #777; }
.lv-pin { font: 800 clamp(64px, 12vw, 140px)/1 var(--f-sans); letter-spacing: .06em; color: #12102a; display: flex; justify-content: center; align-items: center; gap: .15em; font-variant-numeric: tabular-nums; }
.lv-pin i { width: .12em; height: .12em; border-radius: 50%; background: #ff4d6d; }
.lv-lobby-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lv-count { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 16px; }
.lv-count svg { width: 20px; height: 20px; }
.lv-count b { font: 800 26px var(--f-sans); }
.lv-title { color: var(--muted); font-weight: 600; }
.lv-players { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 10px 0 30px; }
.lv-chip { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); font-weight: 800; font-size: 17px; animation: chipIn .6s var(--ease-out); }
.lv-chip .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
@keyframes chipIn { 0% { opacity: 0; transform: scale(.3) translateY(30px); } 60% { transform: scale(1.12); } 100% { opacity: 1; transform: none; } }
.lv-waiting { color: var(--muted); font-size: 18px; padding: 30px; }
.dots { display: inline-flex; gap: 4px; margin-left: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dotb 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dotb { 0%,80%,100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-6px); opacity: 1; } }
/* host question */
.lv-q { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.lv-q-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lv-qn, .lv-ans { padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 800; }
.lv-ans b { font-size: 20px; }
.lv-timer { width: 88px; height: 88px; position: relative; }
.lv-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lv-timer circle { fill: rgba(255,255,255,.06); stroke-width: 6; }
.lv-timer .trk { stroke: rgba(255,255,255,.1); }
.lv-timer .val { fill: none; stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 219.9; stroke-dashoffset: 0; transition: stroke-dashoffset .1s linear; }
.lv-timer b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 32px var(--f-sans); }
.lv-q-text { text-align: center; font: 400 clamp(28px, 4.2vw, 52px)/1.2 var(--f-display); color: #fff; margin: 0 auto; max-width: 1000px; padding: 26px 30px; border-radius: 24px; background: rgba(255,255,255,.95); color: #12102a; box-shadow: 0 30px 60px -25px rgba(0,0,0,.7); }
.lv-q-text.small { font-size: clamp(20px, 2.6vw, 30px); padding: 16px 24px; }
.lv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: auto; }
.lv-opt { display: flex; align-items: center; gap: 18px; min-height: 100px; padding: 18px 26px; border-radius: 18px; background: var(--oc); color: #fff; font: 800 clamp(18px, 2.2vw, 28px)/1.2 var(--f-sans); box-shadow: 0 8px 0 color-mix(in srgb, var(--oc) 60%, #000), 0 20px 40px -15px rgba(0,0,0,.6); position: relative; transition: opacity .4s, transform .4s; }
.lv-opt > svg:first-child { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.2)); }
.lv-opt .tick { width: 34px; height: 34px; margin-left: auto; }
.lv-opt.dim { opacity: .3; transform: scale(.97); }
.lv-opts.small .lv-opt { min-height: 64px; font-size: clamp(15px, 1.7vw, 20px); }
.lv-opts.small .lv-opt > svg:first-child { width: 28px; height: 28px; }
.lv-bars { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 3vw, 40px); height: 240px; }
.lv-barcol { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 110px; height: 100%; justify-content: flex-end; }
.lv-barcol b { font: 800 26px var(--f-sans); }
.lv-bar { width: 100%; flex: 1; display: flex; align-items: flex-end; }
.lv-bar span { display: block; width: 100%; height: 4px; background: var(--oc); border-radius: 10px 10px 0 0; transition: height 1s var(--ease-out); min-height: 6px; }
.lv-barlab { width: 100%; height: 46px; border-radius: 0 0 12px 12px; background: var(--oc); display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; }
.lv-barlab svg { width: 24px; height: 24px; }
.lv-barcol.dim { opacity: .4; }
/* scores */
.lv-scores { max-width: 860px; margin: 0 auto; }
.lv-board { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.lv-row { display: grid; grid-template-columns: 48px 52px 1fr auto; gap: 16px; align-items: center; padding: 14px 22px; border-radius: 18px; background: rgba(255,255,255,.95); color: #12102a; box-shadow: 0 16px 30px -18px rgba(0,0,0,.7); }
.lv-row:first-child { background: linear-gradient(90deg, #fff4d2, #fff); box-shadow: 0 0 0 3px var(--gold), 0 20px 40px -15px rgba(233,196,106,.5); }
.lv-rk { font: 800 26px var(--f-sans); color: #8a87a6; text-align: center; }
.lv-row .av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.lv-row-main b { font-size: 19px; display: block; margin-bottom: 6px; }
.lv-row-main .up { color: #18b97a; font-style: normal; font-size: 13px; }
.lv-row-bar { height: 8px; border-radius: 99px; background: #ece9f5; overflow: hidden; }
.lv-row-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #6c3bff, #ff3d7f); transition: width 1.2s var(--ease-out); }
.lv-sc { font: 800 24px var(--f-sans); text-align: right; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.lv-sc small { font-size: 13px; color: #18b97a; font-weight: 800; }
.lv-sc small.fire { color: #ff6a3d; }
/* podium */
.lv-podium-wrap { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; flex: 1; }
.lv-pod-title { text-align: center; margin: 4px 0 10px; }
.lv-podium { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(6px, 1.4vw, 18px); align-items: end; min-height: 440px; padding: 0 10px; }
.lv-step-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.lv-step-who { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 14px; text-align: center; opacity: 0; }
.lv-step-who .av { width: clamp(52px, 7vw, 86px); height: clamp(52px, 7vw, 86px); border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: clamp(16px, 2vw, 26px); color: #fff; box-shadow: 0 0 0 4px var(--sc), 0 20px 40px -10px rgba(0,0,0,.7); }
.lv-step-col[data-place="1"] .av { width: clamp(70px, 9vw, 110px); height: clamp(70px, 9vw, 110px); box-shadow: 0 0 0 5px var(--sc), 0 0 50px rgba(246,221,155,.6); }
.lv-step-who b { font-size: clamp(14px, 1.6vw, 20px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-step-who span { color: var(--muted); font-size: clamp(12px, 1.2vw, 14px); font-weight: 700; }
.lv-step-who .crown { width: 44px; height: 44px; color: var(--gold); filter: drop-shadow(0 6px 16px rgba(233,196,106,.7)); animation: bob 2.4s ease-in-out infinite; }
.lv-coin { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 800; color: var(--gold-2); font-size: 14px; padding: 4px 10px; border-radius: 99px; background: rgba(233,196,106,.12); }
.lv-coin svg { width: 16px; height: 16px; }
.lv-step { width: 100%; height: calc(var(--hn) * 3px); min-height: 70px; border-radius: 16px 16px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 85%, #fff), color-mix(in srgb, var(--sc) 70%, #000)); transform-origin: bottom; display: flex; justify-content: center; padding-top: 16px; box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 30px 60px -20px rgba(0,0,0,.7); }
.lv-step span { font: 800 clamp(30px, 5vw, 64px)/1 var(--f-sans); color: rgba(0,0,0,.35); }
.lv-step-col.empty .lv-step { opacity: .25; }
/* editor */
.lv-ed-q { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(20,18,44,.7); margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.lv-ed-head { display: flex; justify-content: space-between; align-items: center; }
.lv-ed-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-ed-opt { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--oc) 50%, transparent); }
.lv-ed-opt > svg { width: 20px; height: 20px; color: var(--oc); flex: none; }
.lv-ed-opt input[type=radio] { accent-color: #18b97a; width: 18px; height: 18px; flex: none; }
.lv-ed-opt .input { height: 42px; border: 0; background: transparent; }
.lv-ed-opt:has(input[type=radio]:checked) { background: rgba(24,185,122,.12); border-color: #18b97a; }
/* student */
.lv-joincard { margin-top: 6vh; }
.lv-logo { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.lv-logo svg { width: 34px; height: 34px; }
.lv-logo svg:nth-child(1) { color: #ff4d6d; } .lv-logo svg:nth-child(2) { color: #3d8bff; } .lv-logo svg:nth-child(3) { color: #f5b301; } .lv-logo svg:nth-child(4) { color: #18b97a; }
.lv-pin-input { width: 100%; height: 76px; border-radius: 18px; border: 2px solid var(--line-2); background: #fff; color: #12102a; text-align: center; font: 800 40px var(--f-sans); letter-spacing: .3em; outline: none; margin-bottom: 8px; }
.lv-pin-input:focus { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(233,196,106,.25); }
.lv-st-wait { margin: auto; text-align: center; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lv-me .av { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; font-weight: 800; color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.15), 0 0 0 10px rgba(255,255,255,.05); animation: bob 3s ease-in-out infinite; margin-bottom: 10px; }
.lv-shapes-bounce { display: flex; gap: 12px; margin: 18px 0; }
.lv-shapes-bounce span { width: 44px; height: 44px; color: var(--oc); animation: dotb 1.4s infinite; animation-delay: var(--d); }
.lv-shapes-bounce svg { width: 100%; height: 100%; }
.lv-gametitle { font-size: 13px; color: var(--muted); padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.06); }
.lv-st-q { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; flex: 1; width: 100%; position: relative; }
.lv-st-meta { display: flex; justify-content: space-between; font-weight: 800; color: var(--muted); }
.lv-st-score { display: flex; align-items: center; gap: 6px; color: var(--gold-2); }
.lv-st-score svg { width: 16px; height: 16px; }
.lv-st-text { font: 400 clamp(22px, 3.4vw, 34px)/1.25 var(--f-display); color: var(--cream); text-align: center; margin: 6px 0; }
.lv-st-opts { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 300px; }
.lv-st-opt { border-radius: 20px; background: var(--oc); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; font: 800 clamp(15px, 2vw, 20px)/1.25 var(--f-sans); box-shadow: 0 8px 0 color-mix(in srgb, var(--oc) 60%, #000); transition: transform .2s var(--ease), opacity .3s; text-align: center; }
.lv-st-opt svg { width: clamp(40px, 7vw, 60px); height: clamp(40px, 7vw, 60px); }
.lv-st-opt:active { transform: translateY(6px); box-shadow: 0 2px 0 color-mix(in srgb, var(--oc) 60%, #000); }
.lv-st-opt.faded { opacity: .2; transform: scale(.95); }
.lv-st-opt.chosen { transform: scale(1.03); box-shadow: 0 0 0 4px #fff, 0 8px 0 color-mix(in srgb, var(--oc) 60%, #000); }
.lv-st-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.lv-st-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff3d7f, #e9c46a); transform-origin: left; animation: shrink linear forwards; }
@keyframes shrink { to { transform: scaleX(0); } }
.lv-sent { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(11,10,26,.82); backdrop-filter: blur(6px); border-radius: 24px; animation: fadeIn .4s; font-size: 22px; }
.lv-sent span { color: var(--muted); font-size: 15px; }
.lv-spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(255,255,255,.15); border-top-color: var(--gold); animation: spin 1s linear infinite; margin-bottom: 8px; }
.lv-st-res { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 30px; border-radius: 32px; width: min(100%, 460px); }
.lv-st-res.ok { background: linear-gradient(160deg, #1fcf8b, #0e8f5d); box-shadow: 0 40px 80px -30px rgba(24,185,122,.7); }
.lv-st-res.no { background: linear-gradient(160deg, #ff5a76, #c22a4b); box-shadow: 0 40px 80px -30px rgba(255,77,109,.6); }
.lv-res-ic { width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; }
.lv-res-ic svg { width: 54px; height: 54px; }
.lv-st-res.ok .lv-res-ic { color: #0e8f5d; } .lv-st-res.no .lv-res-ic { color: #c22a4b; }
.lv-st-res h2 { font: 800 38px var(--f-sans); margin: 8px 0 0; color: #fff; }
.lv-st-res p { margin: 0; color: rgba(255,255,255,.9); }
.lv-res-pts { font: 800 30px var(--f-sans); padding: 6px 22px; border-radius: 99px; background: rgba(0,0,0,.2); color: #fff; }
.lv-streak { font-weight: 800; color: #fff; }
.lv-res-total { margin-top: 8px; color: rgba(255,255,255,.85); }
.lv-rank-big { width: 150px; height: 150px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 25%, #a58bff, #5b2fe0); box-shadow: 0 30px 60px -20px rgba(108,59,255,.8); margin-bottom: 10px; }
.lv-rank-big span { font: 800 64px/1 var(--f-sans); color: #fff; }
.lv-rank-big small { color: rgba(255,255,255,.8); font-weight: 700; }
.lv-rank-big.top { background: radial-gradient(circle at 30% 25%, #fff2c4, #c8962f); box-shadow: 0 30px 70px -20px rgba(233,196,106,.9); }
.lv-rank-big.top span, .lv-rank-big.top small { color: #3a2a06; }
.lv-coinbox { width: 100%; margin: 14px 0 18px; }
@media (max-width: 720px) {
  .live-banner { grid-template-columns: 1fr; padding: 24px; }
  .lb-actions .btn { width: 100%; }
  .lv-opts { grid-template-columns: 1fr; gap: 10px; }
  .lv-opt { min-height: 64px; padding: 12px 18px; }
  .lv-opt > svg:first-child { width: 30px; height: 30px; }
  .lv-q-text { padding: 18px; }
  .lv-timer { width: 66px; height: 66px; } .lv-timer b { font-size: 24px; }
  .lv-bars { height: 180px; gap: 10px; } .lv-barcol { width: 64px; }
  .lv-row { grid-template-columns: 30px 40px 1fr auto; gap: 10px; padding: 10px 14px; }
  .lv-row .av { width: 40px; height: 40px; }
  .lv-row-main b { font-size: 15px; } .lv-sc { font-size: 18px; }
  .lv-podium { min-height: 360px; padding: 0; gap: 5px; }
  .lv-step { height: calc(var(--hn) * 1.9px); }
  .lv-step-who b { font-size: 11px; } .lv-coin { font-size: 11px; padding: 3px 6px; }
  .lv-st-opts { min-height: 54vh; gap: 10px; }
  .lv-ed-opts { grid-template-columns: 1fr; }
  .lv-join-steps { flex-direction: column; gap: 6px; font-size: 13px; }
  .lv-card { padding: 26px 20px; }
}
@media (max-width: 480px) { .days { gap: 4px; } .day { font-size: 9px; padding: 8px 1px; } .day b { font-size: 11px; } .day svg { width: 16px; height: 16px; } }


/* scroll tuzatishlari: flex ichidagi scroll konteynerlar */
.stage, .lv-stage { min-height: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
.modal-card { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.wh-grid { touch-action: none; }
.sw-card { touch-action: none; }

/* ripple */
.rpl { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,.35), rgba(255,255,255,.12) 40%, transparent 70%); transform: scale(0); animation: rpl .7s cubic-bezier(.2,.8,.2,1) forwards; z-index: 0; }
.btn-gold .rpl { background: radial-gradient(circle, rgba(255,255,255,.7), rgba(255,255,255,.2) 40%, transparent 70%); }
@keyframes rpl { to { transform: scale(1); opacity: 0; } }
/* telefon: giroskop parallaks */
@media (hover: none) {
  .aurora .a1 { translate: calc(var(--gx, 0) * -40px) calc(var(--gy, 0) * -30px); }
  .aurora .a2 { translate: calc(var(--gx, 0) * 50px) calc(var(--gy, 0) * 40px); }
  .chip-1 { margin-left: calc(var(--gx, 0) * 14px); }
  .chip-2 { margin-right: calc(var(--gx, 0) * -14px); }
  .chip-3 { margin-bottom: calc(var(--gy, 0) * 10px); }
  .ring-text { margin-top: calc(var(--gy, 0) * 12px); }
  .portrait { transition: transform .25s linear; }
  .auto-tilt .portrait-frame { animation: autoTilt 9s ease-in-out infinite; }
  .auto-tilt .gc-art .gi-big, .auto-tilt .intro .gi-hero { animation: bob 4s ease-in-out infinite; }
  [data-tilt].touching { transition: transform .12s linear; }
  .game-card:active, .gt-card:active, .lv-set:active, .item:active { transform: perspective(900px) rotateX(var(--rx,0)) rotateY(var(--ry,0)) scale(.98); }
}
@keyframes autoTilt { 0%,100% { transform: perspective(900px) rotateY(-6deg) rotateX(3deg); } 50% { transform: perspective(900px) rotateY(6deg) rotateX(-3deg); } }

/* harflar kesilib qolmasligi uchun (kursiv va gradient matnlar) */
.gold-text { display: inline-block; padding: 0 .14em .06em .04em; margin: 0 -.14em -.06em -.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-title .line { padding-right: .12em; }
.reveal-words .w { padding-right: .1em; margin-right: -.1em; padding-bottom: .16em; margin-bottom: -.16em; }
.display em, .contact-title em, .hero-lead em, .big-quote, .topic-sub { padding-right: .06em; }
.cur-dot, .cur-ring { display: none !important; }
@media (max-width: 720px) { #toasts { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); } }
