@font-face {
  font-family: 'Unbounded';
  src: url('assets/fonts/unbounded-cyrillic.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  src: url('assets/fonts/unbounded-latin.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21BB, U+2212;
}
@font-face {
  font-family: 'Golos Text';
  src: url('assets/fonts/golos-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  src: url('assets/fonts/golos-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2212;
}
:root {
  --bg-deep: oklch(0.12 0.04 290);
  --bg-stage: oklch(0.23 0.07 300);
  --surface: oklch(0.26 0.05 292 / 0.72);
  --surface-solid: oklch(0.24 0.05 293 / 0.7);
  --surface-border: oklch(0.42 0.06 292 / 0.45);
  --text: oklch(0.97 0.01 300);
  --text-muted: oklch(0.7 0.04 296);
  --text-dim: oklch(0.62 0.04 296);
  --violet: oklch(0.62 0.25 300);
  --violet-deep: oklch(0.55 0.26 310);
  --lime: oklch(0.85 0.22 135);
  --coral: oklch(0.64 0.22 25);
  --amber: oklch(0.8 0.17 80);
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --r-chip: 999px;
  --r-badge: 12px;
  --r-hint: 16px;
  --r-answer: 18px;
  --r-card: 22px;
  --cta-shadow: 0 12px 34px oklch(0.55 0.25 305 / 0.45), inset 0 1px 0 oklch(1 0 0 / 0.25);
}
@keyframes drift1 { 0%,100% { transform: translate(-10%,-6%) scale(1) } 50% { transform: translate(8%,6%) scale(1.18) } }
@keyframes drift2 { 0%,100% { transform: translate(8%,8%) scale(1.08) } 50% { transform: translate(-8%,-6%) scale(0.94) } }
@keyframes rise   { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: none } }
@keyframes rise2  { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: none } }
@keyframes pop    { 0% { transform: scale(0.72) } 65% { transform: scale(1.05) } 100% { transform: scale(1) } }
@keyframes shake  { 15% { transform: translateX(-4px) } 30% { transform: translateX(5px) } 45% { transform: translateX(-5px) } 60% { transform: translateX(4px) } 75% { transform: translateX(-2px) } }
@keyframes shimmer{ 0% { transform: translateX(-160%) skewX(-20deg) } 100% { transform: translateX(260%) skewX(-20deg) } }
@keyframes pulse  { 0%,100% { transform: scale(1) } 50% { transform: scale(1.08) } }  
@keyframes fall   { 0% { transform: translateY(-5vh) rotate(0deg) } 100% { transform: translateY(108vh) rotate(680deg) } }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-7deg) } 50% { transform: translateY(-12px) rotate(5deg) } }
@keyframes floaty2{ 0%,100% { transform: translateY(-6px) rotate(6deg) } 50% { transform: translateY(8px) rotate(-4deg) } }
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
button { -webkit-tap-highlight-color: transparent; font-family: inherit }
a { color: var(--amber) }
a:hover { color: oklch(0.88 0.17 85) }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.stage {
  min-height: 100dvh;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg-stage) 0%, oklch(0.15 0.05 293) 55%, var(--bg-deep) 100%);
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.stage__orb { position: absolute; border-radius: 50%; pointer-events: none }
.stage__orb--violet {
  width: 440px; height: 440px; top: -130px; left: -130px; filter: blur(42px);
  background: radial-gradient(circle, oklch(0.55 0.22 300 / 0.38), transparent 65%);
  animation: drift1 14s ease-in-out infinite;
}
.stage__orb--amber {
  width: 400px; height: 400px; bottom: -110px; right: -120px; filter: blur(48px);
  background: radial-gradient(circle, oklch(0.72 0.18 80 / 0.2), transparent 65%);
  animation: drift2 17s ease-in-out infinite;
}
.screen {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 34px;
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
  padding-top: calc(30px + env(safe-area-inset-top));
}
.screen--tight { padding-left: 22px; padding-right: 22px }
.screen__spacer { flex: 1 }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: var(--r-chip);
  border: 1px solid var(--surface-border);
  background: var(--surface-solid);
  color: oklch(0.88 0.02 298);
  font-size: 13px; font-weight: 600;
}
.chip--label { letter-spacing: 0.14em; font-size: 11.5px; color: oklch(0.82 0.06 297) }
.chip--streak { animation: pop 0.35s var(--ease) both }
.chip--amber, .chip--streak {
  border-color: oklch(0.8 0.17 80 / 0.5);
  background: linear-gradient(120deg, oklch(0.8 0.17 80 / 0.22), oklch(0.8 0.17 80 / 0.1));
  color: oklch(0.86 0.16 82);
  font-family: var(--display); font-weight: 700; font-size: 12px;
}
.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  color: oklch(0.66 0.04 296); text-transform: uppercase;
}
.hero { animation: rise 0.6s var(--ease) both }
.hero__title {
  margin: 20px 0 0;
  font-family: var(--display); font-weight: 900;
  font-size: 64px; line-height: 0.94; letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--text) 30%, oklch(0.72 0.2 300) 75%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title mark { color: var(--amber); -webkit-text-fill-color: var(--amber); background: none }
.hero__lead { margin: 16px 0 0; max-width: 280px; color: oklch(0.75 0.04 296); font-size: 15.5px; line-height: 1.5 }
.decor { position: absolute; user-select: none; pointer-events: none; font-family: var(--display); font-weight: 900 }
.decor--q { top: 74px; right: 22px; font-size: 44px; color: oklch(0.66 0.24 300 / 0.35); animation: floaty 6s ease-in-out infinite }
.decor--x { top: 190px; left: 14px; font-size: 26px; color: oklch(0.8 0.17 80 / 0.3); animation: floaty2 7s ease-in-out infinite }
.stats { display: flex; gap: 10px; margin-top: 30px; animation: rise 0.6s 0.12s var(--ease) both }
.stat {
  flex: 1; padding: 14px 16px; border-radius: var(--r-answer);
  background: var(--surface-solid); border: 1px solid var(--surface-border);
  backdrop-filter: blur(8px);
}
.stat__label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  color: oklch(0.68 0.04 296);
}
.stat__value {
  display: block; margin-top: 4px; font-family: var(--display); font-weight: 700;
  font-size: 22px; color: var(--text);
  overflow-wrap: anywhere;
}
.stat__value--amber { color: var(--amber) }
.stat:has(input:checked) {
  border: 2px solid var(--amber);
  background: color-mix(in oklch, var(--amber) 18%, var(--surface-solid));
  box-shadow: 0 0 22px color-mix(in oklch, var(--amber) 35%, transparent);
}
.stat:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px }
.login-player__prompt { margin: 0 0 10px; color: var(--text-muted) }
.btn-primary {
  position: relative; overflow: hidden;
  width: 100%; padding: 19px; border: none; border-radius: var(--r-card);
  background: linear-gradient(120deg, var(--violet), var(--violet-deep));
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px;
  letter-spacing: 0.04em; cursor: pointer;
  box-shadow: var(--cta-shadow);
  transition: transform 0.18s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px) }
.btn-primary:active { transform: scale(0.97) }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: 0; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.28), transparent);
  animation: shimmer 2.8s ease-in-out infinite; pointer-events: none;
}
.btn-primary:disabled { opacity: 0.45; cursor: default; transform: none }
.btn-primary:disabled::after { animation: none }
.btn-ghost {
  width: 100%; padding: 16px; border-radius: var(--r-card);
  border: 1px solid var(--surface-border);
  background: oklch(0.25 0.05 293 / 0.6);
  color: oklch(0.88 0.02 298);
  font-family: var(--body); font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform 0.18s var(--ease);
}
.btn-ghost:active { transform: scale(0.97) }
.btn-ghost:disabled { opacity: 0.45; cursor: default; transform: none }
.btn-icon {
  flex: none; width: 44px; height: 44px; border-radius: 15px;
  border: 1px solid oklch(0.4 0.06 293 / 0.5);
  background: oklch(0.25 0.05 293 / 0.7);
  color: oklch(0.85 0.04 296); font-size: 17px; cursor: pointer;
  transition: transform 0.18s var(--ease);
}
.btn-icon:active { transform: scale(0.94) }
.qcard {
  margin-top: 18px; padding: 22px 20px; border-radius: 24px;
  background: linear-gradient(160deg, oklch(0.28 0.06 296 / 0.85), oklch(0.22 0.05 291 / 0.85));
  border: 1px solid oklch(0.44 0.08 296 / 0.5);
  box-shadow: 0 18px 44px oklch(0.1 0.04 290 / 0.5), inset 0 1px 0 oklch(1 0 0 / 0.07);
  backdrop-filter: blur(10px);
  animation: rise 0.45s var(--ease) both;
}
.qcard--alt { animation-name: rise2 }
.qcard__kicker { font-family: var(--display); font-weight: 700; font-size: 12px; color: oklch(0.68 0.16 300); letter-spacing: 0.1em }
.qcard__text { margin-top: 12px; font-size: 21px; font-weight: 800; line-height: 1.32; color: var(--text); text-wrap: pretty }
.answers { display: flex; flex-direction: column; gap: 11px; margin-top: 18px }
.answer {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 16px; min-height: 58px;
  border-radius: var(--r-answer); border: 1px solid oklch(0.42 0.06 292 / 0.45);
  background: oklch(0.26 0.05 292 / 0.72); color: oklch(0.96 0.01 300);
  font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.35;
  text-align: left; cursor: pointer; backdrop-filter: blur(8px);
  transition: all 0.22s var(--ease);
  animation: rise 0.45s var(--ease) both;
}
.answer:active { transform: scale(0.975) }
.answer__badge {
  flex: none; width: 34px; height: 34px; border-radius: var(--r-badge);
  display: grid; place-items: center;
  background: oklch(0.35 0.07 294); color: oklch(0.82 0.05 296);
  font-family: var(--display); font-weight: 700; font-size: 13px;
  transition: all 0.22s;
}
.answer__text { flex: 1 }
.answer--correct {
  background: linear-gradient(135deg, var(--lime), oklch(0.79 0.2 150));
  color: oklch(0.24 0.07 145); border-color: var(--lime);
  box-shadow: 0 0 34px oklch(0.85 0.22 135 / 0.45);
  animation: pop 0.4s var(--ease) both;
}
.answer--correct .answer__badge { background: oklch(0.3 0.08 145 / 0.22); color: oklch(0.24 0.07 145) }
.answer--wrong {
  background: linear-gradient(135deg, oklch(0.62 0.22 25), oklch(0.54 0.2 15));
  border-color: oklch(0.66 0.22 25);
  box-shadow: 0 0 26px oklch(0.62 0.22 25 / 0.4);
  animation: shake 0.5s both;
}
.answer--wrong .answer__badge { background: oklch(1 0 0 / 0.18); color: #fff }
.answer--dimmed { opacity: 0.35 }
.answer:disabled { cursor: default }
.dots { display: flex; gap: 5px; margin-top: 7px }
.dot { height: 7px; width: 7px; border-radius: 99px; background: oklch(0.4 0.05 293); transition: all 0.3s var(--ease) }
.dot--current { width: 22px; background: oklch(0.95 0.01 300) }
.dot--ok { background: var(--lime) }
.dot--no { background: var(--coral) }
.num-field { display: flex; align-items: center; gap: 12px; margin-top: 18px }
.num-input, .open-input {
  flex: none; width: 100%; padding: 16px; height: 58px;
  border-radius: var(--r-answer); border: 1px solid var(--surface-border);
  background: oklch(0.26 0.05 292 / 0.72); color: var(--text);
  font-family: var(--display); font-weight: 700; font-size: 22px;
  backdrop-filter: blur(8px);
}
.num-field .num-input { flex: 1 1 auto; width: auto }
.open-input { font-family: var(--body); font-weight: 600; font-size: 18px }
.num-input::placeholder, .open-input::placeholder {
  color: oklch(0.5 0.03 295); font-weight: 500; letter-spacing: normal;
}
.num-unit { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--text-muted) }
.ord-list { display: flex; flex-direction: column; gap: 9px; margin-top: 18px }
.ord-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 13px 16px; min-height: 54px;
  border-radius: var(--r-answer); border: 1px solid oklch(0.42 0.06 292 / 0.45);
  background: oklch(0.26 0.05 292 / 0.72); color: oklch(0.96 0.01 300);
  font-family: var(--body); font-weight: 600; font-size: 15.5px; text-align: left;
  cursor: pointer; transition: all 0.22s var(--ease);
}
.ord-row--picked {
  transform: translateX(6px);
  border-width: 2px; border-color: var(--amber);
  background: oklch(0.34 0.09 80 / 0.72);
  box-shadow: 0 0 20px oklch(0.8 0.17 80 / 0.35);
}
.ord-index {
  flex: none; width: 30px; height: 30px; border-radius: var(--r-badge);
  display: grid; place-items: center; background: oklch(0.35 0.07 294);
  color: oklch(0.82 0.05 296); font-family: var(--display); font-weight: 700; font-size: 13px;
}
.stake { margin-top: 16px }
.stake__opts { display: flex; gap: 9px; margin-top: 9px }
.stake__opt {
  flex: 1; padding: 13px 8px; min-height: 52px;
  border-radius: var(--r-hint); border: 1px solid oklch(0.55 0.14 300 / 0.4);
  background: oklch(0.28 0.06 296 / 0.5); color: oklch(0.82 0.05 297);
  font-family: var(--body); font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all 0.2s var(--ease);
}
.stake__opt:active { transform: scale(0.96) }
.stake__opt--on {
  border-color: oklch(0.8 0.17 80 / 0.7);
  background: linear-gradient(120deg, oklch(0.8 0.17 80 / 0.25), oklch(0.8 0.17 80 / 0.1));
  color: oklch(0.9 0.14 84);
  box-shadow: 0 0 22px oklch(0.8 0.17 80 / 0.3);
}
.explain {
  margin-top: 16px; padding: 16px 18px; border-radius: var(--r-answer);
  background: oklch(0.22 0.04 293 / 0.7); border: 1px solid var(--surface-border);
  color: oklch(0.84 0.03 297); font-size: 14.5px; line-height: 1.5;
  animation: rise 0.35s var(--ease) both;
}
.explain--error {
  background: color-mix(in oklch, var(--coral) 14%, var(--surface-solid));
  border-color: var(--coral);
  color: var(--text);
}
.explain__source { margin-top: 10px; font-size: 12px; color: var(--text-dim) }
.ring { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center }
.ring__inner {
  width: 96px; height: 96px; border-radius: 50%;
  background: oklch(0.18 0.05 293); display: grid; place-items: center; text-align: center;
}
.ring__value { font-family: var(--display); font-weight: 700; font-size: 24px; color: oklch(0.95 0.01 300) }
.ring__label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; color: oklch(0.64 0.04 296) }
.result__score {
  margin-top: 14px; font-family: var(--display); font-weight: 900; font-size: 66px; line-height: 1;
  background: linear-gradient(120deg, var(--text), oklch(0.75 0.2 300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.verdict { margin-top: 22px; font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--text); animation: rise 0.5s 0.25s both }
.versus { display: flex; gap: 12px; margin-top: 20px; width: 100% }
.versus__col {
  flex: 1; padding: 16px 14px; border-radius: var(--r-answer);
  background: var(--surface-solid); border: 1px solid var(--surface-border);
  text-align: center;
}
.versus__col--win { border-color: oklch(0.85 0.22 135 / 0.5); box-shadow: 0 0 24px oklch(0.85 0.22 135 / 0.18) }
.versus__name { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase }
.versus__raw { margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--text) }
.versus__adj { margin-top: 4px; font-size: 12.5px; color: var(--text-dim) }
.versus__pending { margin-top: 8px; font-size: 13px; color: var(--text-dim); line-height: 1.4 }
.confetti-piece { position: absolute; top: -5vh; border-radius: 2px; pointer-events: none }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .stage__orb { animation: none }
  .btn-primary::after { display: none }
}
