:root {
  color-scheme: light dark;
  --surface: #f3f6ff;
  --surface-secondary: #ffffff;
  --surface-tertiary: #e8eef8;
  --on-surface: #0f172a;
  --on-secondary: #1e293b;
  --on-tertiary: #475569;
  --border: #d5ddea;
  --border-strong: #aab6c8;
  --brand-primary: #8b5cf6;
  --brand-primary-deep: #6d28d9;
  --brand-secondary: #4f8ef7;
  --brand-secondary-deep: #2563eb;
  --success: #10b981;
  --success-deep: #047857;
  --warning: #f59e0b;
  --warning-deep: #b45309;
  --error: #ef4444;
  --error-deep: #b91c1c;
  --shadow: #0f172a;
  --bg-a: #efe9ff;
  --bg-b: #f3f6ff;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max: 1160px;
  --theme-duration: 120ms;
  --visual-viewport-height: 100svh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --surface: #0b1124;
  --surface-secondary: #141b33;
  --surface-tertiary: #1f2742;
  --on-surface: #f8fafc;
  --on-secondary: #e2e8f0;
  --on-tertiary: #94a3b8;
  --border: #1f2742;
  --border-strong: #475569;
  --brand-primary-deep: #4c1d95;
  --brand-secondary: #60a5fa;
  --brand-secondary-deep: #1e3a8a;
  --success-deep: #065f46;
  --warning-deep: #92400e;
  --error-deep: #7f1d1d;
  --shadow: #000000;
  --bg-a: #1b0f3a;
  --bg-b: #0b1124;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0b1124;
    --surface-secondary: #141b33;
    --surface-tertiary: #1f2742;
    --on-surface: #f8fafc;
    --on-secondary: #e2e8f0;
    --on-tertiary: #94a3b8;
    --border: #1f2742;
    --border-strong: #475569;
    --brand-primary-deep: #4c1d95;
    --brand-secondary: #60a5fa;
    --brand-secondary-deep: #1e3a8a;
    --success-deep: #065f46;
    --warning-deep: #92400e;
    --error-deep: #7f1d1d;
    --shadow: #000000;
    --bg-a: #1b0f3a;
    --bg-b: #0b1124;
  }

  :root:not([data-theme="light"]) .theme-toggle__dot {
    transform: translateX(16px);
  }
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  touch-action: manipulation;
  color: var(--on-surface);
  background:
    radial-gradient(circle at 16% 8%, color-mix(in srgb, var(--brand-primary) 24%, transparent), transparent 34rem),
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--brand-secondary) 18%, transparent), transparent 30rem),
    linear-gradient(180deg, var(--bg-a), var(--bg-b));
  transition: color var(--theme-duration) ease, background var(--theme-duration) ease;
}

body.menu-is-open {
  overscroll-behavior: contain;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--brand-secondary) 22%, transparent), transparent 18rem),
    color-mix(in srgb, var(--surface-secondary) 22%, transparent);
  transition: opacity 120ms ease;
}

html.theme-switching body::before {
  opacity: 0;
}

html.theme-instant,
html.theme-instant *,
html.theme-instant *::before,
html.theme-instant *::after {
  transition: none !important;
  animation-duration: 0.001ms !important;
  animation-delay: 0ms !important;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 48% 32%, rgba(139, 92, 246, 0.34), transparent 18rem),
    radial-gradient(circle at 68% 58%, rgba(79, 142, 247, 0.26), transparent 24rem),
    linear-gradient(145deg, #1b0f3a, #0b1124 64%, #07101f);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0ms linear 520ms;
}

[data-theme="light"] .page-loader {
  color: #0f172a;
  background:
    radial-gradient(circle at 28% 18%, rgba(139, 92, 246, 0.2), transparent 18rem),
    radial-gradient(circle at 72% 58%, rgba(79, 142, 247, 0.2), transparent 24rem),
    linear-gradient(145deg, #f6f3ff, #eef5ff 58%, #ffffff);
}

.page-loader::before,
.page-loader::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.page-loader::before {
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.36) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.24) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 74%);
  animation: loaderGrid 8s linear infinite;
}

[data-theme="light"] .page-loader::before {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.12) 1px, transparent 1px);
}

.page-loader::after {
  width: min(48rem, 92vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 120deg, transparent, rgba(139, 92, 246, 0.42), rgba(79, 142, 247, 0.34), transparent 72%);
  filter: blur(22px);
  opacity: 0.7;
  animation: loaderHalo 2.4s ease-in-out infinite;
}

[data-theme="light"] .page-loader::after {
  background:
    conic-gradient(from 120deg, transparent, rgba(139, 92, 246, 0.24), rgba(79, 142, 247, 0.22), rgba(16, 185, 129, 0.16), transparent 72%);
  filter: blur(20px);
  opacity: 0.78;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(430px, 100%);
  padding: clamp(24px, 5vw, 34px);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.44), rgba(139, 92, 246, 0.44), rgba(79, 142, 247, 0.26)) border-box;
  border: 1px solid transparent;
  border-right: 4px solid rgba(71, 85, 105, 0.74);
  border-bottom: 8px solid rgba(15, 23, 42, 0.76);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  text-align: center;
  transform: translateY(0) scale(1);
  animation: loaderCardIn 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  backdrop-filter: blur(22px);
}

[data-theme="light"] .loader-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.74)) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(139, 92, 246, 0.34), rgba(79, 142, 247, 0.26)) border-box;
  border-right-color: rgba(170, 182, 200, 0.9);
  border-bottom-color: rgba(170, 182, 200, 0.92);
  box-shadow:
    0 34px 90px rgba(79, 70, 229, 0.16),
    0 16px 44px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.loader-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 18px;
}

.loader-logo i {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 38%;
  height: 7%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transform: translateX(-50%);
}

.loader-card p {
  margin: 0 0 10px;
  color: rgba(226, 232, 240, 0.74);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 4px;
}

[data-theme="light"] .loader-card p {
  color: rgba(71, 85, 105, 0.72);
}

.loader-card strong {
  color: #ffffff;
  font-size: clamp(1.75rem, 7vw, 2.45rem);
  font-weight: 1000;
  line-height: 1.02;
  letter-spacing: -0.8px;
}

[data-theme="light"] .loader-card strong {
  color: #0f172a;
}

.loader-progress {
  width: min(290px, 82%);
  height: 10px;
  margin: 24px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 8px 22px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .loader-progress {
  background: rgba(226, 232, 240, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.24),
    0 8px 22px rgba(79, 70, 229, 0.12);
}

.loader-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #f59e0b, #8b5cf6, #60a5fa);
  transform-origin: left;
  animation: loaderProgress 1050ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loader-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.loader-keys span {
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-right: 2px solid rgba(76, 29, 149, 0.74);
  border-bottom: 5px solid rgba(76, 29, 149, 0.74);
  font-size: 13px;
  font-weight: 1000;
  animation: loaderKeyPop 1200ms ease-in-out infinite;
}

[data-theme="light"] .loader-keys span {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.86);
  border-right-color: rgba(170, 182, 200, 0.9);
  border-bottom-color: rgba(170, 182, 200, 0.96);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.loader-keys span:nth-child(2) {
  animation-delay: 120ms;
}

.loader-keys span:nth-child(3) {
  animation-delay: 240ms;
}

.loader-keys span:nth-child(4) {
  min-width: 74px;
  background: linear-gradient(145deg, #8b5cf6, #4f8ef7);
  color: #ffffff;
  animation-delay: 360ms;
}

.game-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.game-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 142, 247, 0.14) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 10%, black, transparent 76%);
  animation: gridDrift 18s linear infinite;
}

.orb {
  position: absolute;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.18;
  animation: orbPulse 7s ease-in-out infinite;
}

.orb-one {
  top: 8%;
  left: -12rem;
  background: var(--brand-primary);
}

.orb-two {
  right: -10rem;
  top: 32%;
  background: var(--brand-secondary);
  animation-delay: -2s;
}

.orb-three {
  left: 28%;
  bottom: -18rem;
  background: var(--success);
  animation-delay: -4s;
}

.float-key {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-secondary) 78%, transparent);
  color: var(--brand-primary);
  font-weight: 900;
  border-bottom: 5px solid color-mix(in srgb, var(--brand-primary-deep) 72%, transparent);
  border-right: 2px solid color-mix(in srgb, var(--brand-primary-deep) 72%, transparent);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--shadow) 20%, transparent);
  opacity: 0.34;
  animation: floatKey 8s ease-in-out infinite;
}

.key-one {
  top: 18%;
  left: 6%;
}

.key-two {
  top: 54%;
  right: 8%;
  animation-delay: -2s;
}

.key-three {
  bottom: 14%;
  left: 12%;
  animation-delay: -4s;
}

.key-four {
  top: 26%;
  right: 22%;
  animation-delay: -6s;
}

body,
button,
a {
  font: inherit;
}

a,
button,
[role="button"],
input,
textarea,
select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: max(0px, env(safe-area-inset-top));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin: 12px auto 0;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
  border-right: 2px solid color-mix(in srgb, var(--border-strong) 42%, transparent);
  border-bottom: 4px solid color-mix(in srgb, var(--border-strong) 42%, transparent);
  border-radius: 26px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-secondary) 88%, transparent), color-mix(in srgb, var(--surface-tertiary) 72%, transparent)),
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--brand-primary) 13%, transparent), transparent 15rem);
  box-shadow:
    0 14px 38px color-mix(in srgb, var(--shadow) 13%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  animation: headerDrop 520ms ease both;
  transition:
    background var(--theme-duration) ease,
    border-color var(--theme-duration) ease,
    box-shadow var(--theme-duration) ease,
    transform 180ms ease;
}

.site-header,
.nav-links,
.menu-toggle,
.theme-toggle,
.brand-mark,
.stat-tile,
.app-store-badge,
.game-button,
.app-screen,
.app-stat-row div,
.mode-list-preview article,
.mode-card,
.primitive-card,
.focus-card,
.shop-pack,
.footer-launch,
.footer-base,
.gallery-shot,
.image-shot,
.shot-caption {
  transition:
    background-color var(--theme-duration) ease,
    background var(--theme-duration) ease,
    color var(--theme-duration) ease,
    border-color var(--theme-duration) ease,
    box-shadow var(--theme-duration) ease,
    filter var(--theme-duration) ease,
    transform 180ms ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 1px 12px auto;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 18px -5px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 16%, transparent);
  filter: blur(14px);
  opacity: 0.7;
  pointer-events: none;
}

.brand,
.nav-links,
.hero-actions,
.mini-stat-row,
.app-header,
.app-hero-top,
.daily-card,
.app-stat-row,
.mode-card,
.ranked-top,
.rank-metrics,
.footer-links,
.footer-base,
.launch-pills,
.launch-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-height: 46px;
  padding: 4px 8px 4px 4px;
  border-radius: 18px;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: var(--on-surface);
}

.brand-mark,
.coin-badge,
.button-icon,
.capsule,
.primitive-icon,
.rank-icon,
.daily-icon,
.grade-badge {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
}

ion-icon {
  display: block;
  font-size: 1.25em;
  line-height: 1;
  pointer-events: none;
}

.brand ion-icon,
.button-icon ion-icon,
.coin-badge ion-icon,
.daily-icon ion-icon,
.capsule ion-icon,
.primitive-icon ion-icon,
.rank-icon ion-icon,
.grade-badge ion-icon,
.coin ion-icon {
  font-size: 54%;
}

.button-icon ion-icon {
  font-size: 17px;
}

.coin-badge ion-icon,
.daily-icon ion-icon,
.rank-icon ion-icon,
.coin ion-icon {
  font-size: 25px;
}

.capsule ion-icon {
  font-size: 28px;
}

.primitive-icon ion-icon {
  font-size: 25px;
}

.grade-badge ion-icon {
  font-size: 29px;
}

.brand-mark,
.loader-logo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.72), transparent 22%),
    radial-gradient(circle at 82% 78%, rgba(96, 165, 250, 0.86), transparent 34%),
    conic-gradient(from 210deg at 52% 48%, #4f8ef7, #8b5cf6 34%, #6d28d9 58%, #22c55e 78%, #4f8ef7);
  border-top: 1.5px solid rgba(255, 255, 255, 0.34);
  border-left: 1.5px solid rgba(255, 255, 255, 0.24);
  border-right: 2px solid #5b21b6;
  border-bottom: 5px solid #5b21b6;
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--brand-primary) 24%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -5px 0 rgba(76, 29, 149, 0.18);
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-mark::before,
.loader-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.32) 43%, transparent 48%),
    radial-gradient(circle at 54% 48%, rgba(255, 255, 255, 0.14), transparent 30%);
}

.brand-mark::after,
.loader-logo::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, #fbbf24, #f59e0b 54%, #fb7185);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.18),
    0 6px 12px rgba(0, 0, 0, 0.2);
  transform: rotate(12deg);
}

.logo-glyph {
  position: relative;
  z-index: 1;
  display: block;
  width: 76%;
  height: 70%;
  color: #ffffff;
  font-weight: 1000;
}

.logo-glyph::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  width: 18%;
  height: 88%;
  border-radius: 999px;
  background: linear-gradient(180deg, #fef3c7, #f59e0b 46%, #7c3aed 47%, #60a5fa);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.16),
    0 9px 16px rgba(15, 23, 42, 0.2);
  transform: translateX(-50%) skew(-18deg);
}

.logo-glyph b {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58%;
  height: 62%;
  border-radius: 10px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.44), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-right: 2px solid rgba(76, 29, 149, 0.42);
  border-bottom: 4px solid rgba(76, 29, 149, 0.48);
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.08em;
  text-shadow:
    0 2px 0 rgba(76, 29, 149, 0.3),
    0 8px 18px rgba(15, 23, 42, 0.22);
}

.logo-glyph b:first-child {
  left: -3%;
  top: 4%;
  transform: rotate(-12deg);
}

.logo-glyph b:last-child {
  color: #e0f2fe;
  right: -3%;
  bottom: 2%;
  transform: rotate(10deg);
}

.loader-logo .logo-glyph b {
  border-radius: 18px;
  font-size: 40px;
}

.loader-logo .logo-glyph::before {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.14),
    0 16px 28px rgba(15, 23, 42, 0.2);
}

.loader-logo::after {
  right: 15px;
  bottom: 14px;
  width: 15px;
  height: 15px;
}

.nav-links {
  gap: 4px;
  padding: 4px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-tertiary) 46%, transparent);
  color: var(--on-tertiary);
  font-size: 13px;
  font-weight: 800;
}

.nav-links a,
.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 16px;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  background: var(--surface-tertiary);
  color: var(--on-surface);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-links a.active {
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--brand-primary) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.menu-toggle {
  display: none;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-secondary) 82%, transparent), color-mix(in srgb, var(--surface-tertiary) 92%, transparent));
  border: 1.5px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-right: 2px solid var(--border-strong);
  border-bottom: 4px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background var(--theme-duration) ease,
    border-color var(--theme-duration) ease,
    box-shadow 220ms ease;
}

.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px color-mix(in srgb, var(--shadow) 12%, transparent);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: var(--on-surface);
  transform-origin: center;
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 160ms ease,
    background-color var(--theme-duration) ease;
}

.menu-scrim {
  display: none;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-right: 2px solid color-mix(in srgb, var(--border-strong) 70%, transparent);
  border-bottom: 4px solid color-mix(in srgb, var(--border-strong) 70%, transparent);
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 50%, rgba(245, 158, 11, 0.2), transparent 14px),
    color-mix(in srgb, var(--surface-tertiary) 86%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.theme-toggle__dot {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--warning), var(--brand-primary));
  box-shadow:
    0 7px 16px color-mix(in srgb, var(--brand-primary) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .theme-toggle__dot {
  transform: translateX(18px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 54px;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: 64px 0 54px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
  padding: 78px 0 36px;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -2px;
}

.page-hero p {
  max-width: 680px;
  color: var(--on-tertiary);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.65;
}

.support-hero {
  min-height: auto;
  align-items: end;
  padding-bottom: 58px;
}

.support-hero h1 {
  max-width: 760px;
  font-size: clamp(3.25rem, 7vw, 6rem);
  line-height: 0.98;
}

.support-hero .section-copy > p:not(.kicker) {
  max-width: 720px;
  margin-top: 18px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--on-tertiary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.kicker span,
.app-tag span {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: var(--brand-primary);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(4rem, 10vw, 7.2rem);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -3px;
  text-shadow: 0 8px 18px color-mix(in srgb, var(--brand-primary) 24%, transparent);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.5vw, 4.15rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -1.6px;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 900;
}

.hero-lead {
  max-width: 660px;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.hero-text,
.section-copy p,
.primitive-card p,
.mode-card p,
.footer p {
  color: var(--on-tertiary);
  line-height: 1.65;
}

.hero-text {
  max-width: 640px;
  font-size: 1.04rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 20px;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.hero-proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-secondary) 78%, transparent);
  color: var(--on-secondary);
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--shadow) 8%, transparent);
  font-size: 12px;
  font-weight: 900;
}

.hero-proof-row ion-icon {
  color: var(--brand-primary);
}

.game-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-top: 1.5px solid rgba(255, 255, 255, 0.3);
  border-left: 1.5px solid rgba(255, 255, 255, 0.22);
  border-right-width: 3px;
  border-bottom-width: 6px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--shadow) 18%, transparent);
  transition: transform 160ms ease;
  line-height: 1.1;
  text-align: center;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 17px 10px 13px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-secondary) 96%, #ffffff), color-mix(in srgb, var(--surface-tertiary) 82%, #ffffff)) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(139, 92, 246, 0.34), rgba(79, 142, 247, 0.28)) border-box;
  color: var(--on-surface);
  border: 1px solid transparent;
  border-right: 3px solid color-mix(in srgb, var(--border-strong) 72%, transparent);
  border-bottom: 6px solid color-mix(in srgb, var(--border-strong) 82%, transparent);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--brand-primary) 14%, transparent);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

[data-theme="dark"] .app-store-badge {
  background:
    radial-gradient(circle at 18% 8%, rgba(139, 92, 246, 0.2), transparent 8rem) padding-box,
    linear-gradient(145deg, rgba(20, 27, 51, 0.96), rgba(11, 17, 36, 0.94)) padding-box,
    linear-gradient(145deg, rgba(148, 163, 184, 0.48), rgba(139, 92, 246, 0.46), rgba(96, 165, 250, 0.34)) border-box;
  color: #f8fafc;
  border-right-color: rgba(30, 41, 59, 0.92);
  border-bottom-color: rgba(2, 6, 23, 0.96);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

.app-store-badge__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #60a5fa, #8b5cf6);
  border-bottom: 4px solid #4c1d95;
  border-right: 2px solid #4c1d95;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.app-store-badge__icon ion-icon {
  font-size: 25px;
}

.app-store-badge small {
  display: block;
  margin-bottom: 1px;
  color: var(--on-tertiary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

[data-theme="dark"] .app-store-badge small {
  color: #94a3b8;
}

[data-theme="light"] .site-header,
[data-theme="light"] .nav-links,
[data-theme="light"] .quiz-arena,
[data-theme="light"] .quiz-question-card,
[data-theme="light"] .quiz-result,
[data-theme="light"] .footer,
[data-theme="light"] .footer-launch,
[data-theme="light"] .footer-base {
  color-scheme: light;
}

[data-theme="light"] .site-header,
[data-theme="light"] .nav-links,
[data-theme="light"] .quiz-arena,
[data-theme="light"] .quiz-question-card,
[data-theme="light"] .footer-launch {
  background:
    radial-gradient(circle at 86% 0%, color-mix(in srgb, var(--brand-primary) 12%, transparent), transparent 18rem),
    linear-gradient(145deg, color-mix(in srgb, #ffffff 92%, var(--surface-secondary)), color-mix(in srgb, #edf4ff 74%, var(--surface-tertiary)));
}

.app-store-badge span:last-child {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.05;
  white-space: nowrap;
}

.game-button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand-primary);
  color: #ffffff;
  border-right-color: var(--brand-primary-deep);
  border-bottom-color: var(--brand-primary-deep);
}

.button-neutral {
  background: var(--surface-secondary);
  color: var(--on-surface);
  border-right-color: var(--border-strong);
  border-bottom-color: var(--border-strong);
}

.button-icon {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11px;
}

.button-neutral .button-icon {
  background: var(--surface-tertiary);
  color: var(--brand-primary);
}

.mini-stat-row {
  flex-wrap: wrap;
  gap: 10px;
}

.stat-tile,
.app-stat-row div,
.mode-list-preview article,
.mode-card,
.primitive-card,
.focus-card,
.shop-pack {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-secondary);
  border-top: 1.5px solid color-mix(in srgb, #fff 78%, transparent);
  border-left: 1.5px solid color-mix(in srgb, #fff 58%, transparent);
  border-right: 3px solid var(--border-strong);
  border-bottom: 5px solid var(--border-strong);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--shadow) 14%, transparent);
}

[data-theme="dark"] .stat-tile,
[data-theme="dark"] .app-stat-row div,
[data-theme="dark"] .mode-list-preview article,
[data-theme="dark"] .mode-card,
[data-theme="dark"] .primitive-card,
[data-theme="dark"] .focus-card,
[data-theme="dark"] .shop-pack {
  border-top-color: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(255, 255, 255, 0.06);
}

.stat-tile {
  min-width: 118px;
  padding: 14px;
}

.stat-tile strong,
.app-stat-row strong,
.rank-metrics strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.7px;
}

.stat-tile span,
.app-stat-row span,
.rank-metrics span {
  color: var(--on-tertiary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: min(392px, 92vw);
  aspect-ratio: 9 / 19.75;
  padding: 9px;
  border-radius: 44px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 13%),
    linear-gradient(145deg, #8994aa, #202637 18%, #050711 64%, #56506a);
  box-shadow:
    0 24px 72px color-mix(in srgb, var(--shadow) 30%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 41px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.phone-17-pro {
  transform: perspective(1100px) rotateY(-5deg) rotateX(2deg);
  animation: phoneFloat 5.4s ease-in-out infinite;
}

.dynamic-island {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 104px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 25% 50%, #1b2333 0 6px, transparent 7px),
    linear-gradient(180deg, #05070f, #02030a);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.dynamic-island span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3b5e, #05070f 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.app-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.16) 46%, transparent 54% 100%);
  transform: translateX(-120%);
  animation: screenSheen 5.8s ease-in-out infinite;
  pointer-events: none;
}

.side-button {
  position: absolute;
  z-index: -1;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #858ca1, #252a3a);
}

.side-button-left {
  left: -3px;
  top: 132px;
  height: 72px;
}

.side-button-right {
  right: -3px;
  top: 172px;
  height: 92px;
}

.app-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 35px;
  padding: 58px 15px 18px;
  background:
    radial-gradient(circle at 24% 2%, rgba(139, 92, 246, 0.35), transparent 16rem),
    linear-gradient(180deg, var(--bg-a), var(--surface));
  color: var(--on-surface);
}

.app-header {
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 2px;
  color: var(--on-tertiary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.app-header h2 {
  margin: 0;
  max-width: 220px;
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1;
  letter-spacing: -1.5px;
}

.coin-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--warning);
  border-right: 2px solid var(--warning-deep);
  border-bottom: 5px solid var(--warning-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.app-hero-card,
.daily-card,
.ranked-card,
.performance-hero,
.wallet-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  border-top: 2px solid rgba(255, 255, 255, 0.38);
  border-left: 2px solid rgba(255, 255, 255, 0.24);
  border-right: 4px solid var(--brand-primary-deep);
  border-bottom: 7px solid var(--brand-primary-deep);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--shadow) 18%, transparent);
}

.app-hero-card {
  padding: 18px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  animation: cardGlow 4s ease-in-out infinite;
}

.card-highlight {
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
}

.record-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 900;
}

.record-pill ion-icon {
  color: #ffd66b;
  font-size: 14px;
}

.grade-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--warning);
  border-right: 2px solid var(--warning-deep);
  border-bottom: 5px solid var(--warning-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 28px;
}

.app-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  text-align: center;
}

.app-hero-stats strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
}

.app-hero-stats span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 900;
}

.app-hero-stats i {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.26);
}

.race-pulse-row {
  display: grid;
  grid-template-columns: repeat(3, 30px) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin: -3px 0 10px;
}

.race-pulse-row span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-bottom: 3px solid rgba(0, 0, 0, 0.2);
  font-size: 11px;
  font-weight: 900;
  animation: countdownStep 2.4s ease-in-out infinite;
}

.race-pulse-row span:nth-child(2) {
  animation-delay: 0.22s;
}

.race-pulse-row span:nth-child(3) {
  animation-delay: 0.44s;
}

.race-pulse-row strong {
  justify-self: end;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.22);
  color: #d1fae5;
  border: 1px solid rgba(209, 250, 229, 0.22);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.13);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.typing-flow-bar {
  position: relative;
  height: 8px;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.typing-flow-bar span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff, #fbbf24);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.34);
  animation: typingFlow 2.6s ease-in-out infinite;
}

.white-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
  background: #ffffff;
  color: #7c3aed;
  font-weight: 900;
  letter-spacing: 0.5px;
  border-bottom: 5px solid rgba(0, 0, 0, 0.14);
  border-right: 2px solid rgba(0, 0, 0, 0.12);
}

.white-cta ion-icon {
  font-size: 20px;
}

.combo-toast {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 34px;
  margin: 10px auto -4px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--warning);
  color: #ffffff;
  border-right: 2px solid var(--warning-deep);
  border-bottom: 5px solid var(--warning-deep);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.24);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  animation: comboFloat 2.8s ease-in-out infinite;
}

.daily-card {
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  background: linear-gradient(135deg, var(--warning), #f97316);
  border-right-color: var(--warning-deep);
  border-bottom-color: var(--warning-deep);
  animation: missionPulse 4.8s ease-in-out infinite;
}

.daily-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
}

.daily-card span,
.section-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.daily-card strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.daily-card p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
}

.daily-card b {
  display: grid;
  place-items: center;
  margin-left: auto;
  font-size: 20px;
}

.app-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.app-stat-row div {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 18px;
}

.app-stat-row strong {
  font-size: 18px;
}

.app-stat-row span {
  display: block;
  font-size: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.section-label {
  margin: 4px 0 10px;
  color: var(--on-surface);
}

.mode-list-preview {
  display: grid;
  gap: 10px;
}

.mode-list-preview article {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.mode-list-preview strong,
.mode-card h3 {
  display: block;
  margin: 0;
  font-weight: 900;
}

.mode-list-preview small {
  color: var(--on-tertiary);
  font-size: 11px;
  font-weight: 700;
}

.mode-list-preview em {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--brand-primary-deep);
  color: #ffe9a6;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.capsule {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border-right: 2px solid rgba(0, 0, 0, 0.24);
  border-bottom: 5px solid rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.primary {
  background: var(--brand-primary);
}

.secondary {
  background: var(--brand-secondary);
}

.success {
  background: var(--success);
}

.warning {
  background: var(--warning);
}

.ghost {
  background: #7c3aed;
}

.section-copy {
  max-width: 710px;
}

.centered {
  margin: 0 auto 28px;
  text-align: center;
}

.app-language,
.modes-section,
.quiz-section,
.online-section,
.stats-section,
.economy-section,
.gallery-section {
  padding: 86px 0;
}

.primitive-grid,
.mode-grid,
.economy-grid,
.home-route-grid,
.feature-grid,
.legal-grid,
.gallery-grid {
  display: grid;
  gap: 14px;
}

.home-route-grid {
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 0 92px;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -20px;
  padding-bottom: 18px;
}

.product-strip article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 16px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-secondary) 96%, transparent), color-mix(in srgb, var(--surface-tertiary) 90%, transparent)) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.44), color-mix(in srgb, var(--brand-primary) 28%, transparent), color-mix(in srgb, var(--brand-secondary) 18%, transparent)) border-box;
  border: 1px solid transparent;
  border-right: 3px solid var(--border-strong);
  border-bottom: 6px solid var(--border-strong);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--shadow) 12%, transparent);
}

.product-strip strong,
.mode-command strong,
.race-timeline strong,
.gallery-lens strong {
  display: block;
  color: var(--on-surface);
  font-weight: 900;
}

.product-strip p,
.mode-command p,
.race-timeline p,
.gallery-lens p,
.why-copy p,
.why-card p {
  margin: 3px 0 0;
  color: var(--on-tertiary);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.strip-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #ffffff;
  border-right: 2px solid rgba(0, 0, 0, 0.22);
  border-bottom: 5px solid rgba(0, 0, 0, 0.28);
}

.why-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 28px;
  align-items: stretch;
  padding: 70px 0 18px;
}

.why-copy {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--brand-primary) 20%, transparent), transparent 17rem),
    linear-gradient(145deg, var(--surface-secondary), var(--surface-tertiary));
  border-top: 1.5px solid rgba(255, 255, 255, 0.3);
  border-left: 1.5px solid rgba(255, 255, 255, 0.18);
  border-right: 4px solid var(--border-strong);
  border-bottom: 8px solid var(--border-strong);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--shadow) 12%, transparent);
}

.why-copy::after {
  content: "KAPIŞ";
  position: absolute;
  right: -10px;
  bottom: -16px;
  color: color-mix(in srgb, var(--brand-primary) 12%, transparent);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  pointer-events: none;
}

.why-copy h2 {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.why-copy p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.65;
}

.why-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.why-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 210px;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-secondary) 98%, transparent), color-mix(in srgb, var(--surface-tertiary) 94%, transparent)) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), color-mix(in srgb, var(--brand-primary) 24%, transparent), color-mix(in srgb, var(--brand-secondary) 18%, transparent)) border-box;
  border: 1px solid transparent;
  border-right: 3px solid var(--border-strong);
  border-bottom: 7px solid var(--border-strong);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--shadow) 11%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.why-card:hover {
  transform: translateY(-5px);
  filter: saturate(1.06);
  box-shadow: 0 22px 52px color-mix(in srgb, var(--brand-primary) 16%, transparent);
}

.why-card.big {
  grid-row: span 2;
  min-height: 100%;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.18), transparent 12rem),
    linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #ffffff;
  border-right-color: var(--brand-primary-deep);
  border-bottom-color: var(--brand-primary-deep);
}

.why-card small {
  display: block;
  margin-bottom: 7px;
  color: var(--on-tertiary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.why-card strong {
  display: block;
  color: var(--on-surface);
  font-size: 1.34rem;
  font-weight: 900;
  line-height: 1.08;
}

.why-card.big small,
.why-card.big p {
  color: rgba(255, 255, 255, 0.78);
}

.why-card.big strong {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -1px;
}

.why-card.big .strip-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
}

.teaser-section {
  padding: 74px 0 18px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.teaser-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(240px, 0.9fr);
  gap: 18px;
  min-height: 430px;
  padding: 24px;
  border-radius: 34px;
  color: #ffffff;
  border-top: 2px solid rgba(255, 255, 255, 0.28);
  border-left: 2px solid rgba(255, 255, 255, 0.16);
  border-right: 5px solid color-mix(in srgb, var(--brand-primary-deep) 80%, #000);
  border-bottom: 10px solid color-mix(in srgb, var(--brand-primary-deep) 90%, #000);
  box-shadow: 0 26px 74px color-mix(in srgb, var(--shadow) 22%, transparent);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.teaser-panel:hover {
  transform: translateY(-7px);
  filter: saturate(1.08);
  box-shadow: 0 34px 86px color-mix(in srgb, var(--brand-primary) 24%, transparent);
}

.teaser-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.2), transparent 14rem),
    radial-gradient(circle at 12% 88%, rgba(0, 0, 0, 0.16), transparent 16rem);
  pointer-events: none;
}

.online-teaser {
  background: linear-gradient(135deg, #2e1065, #2563eb 58%, #10b981);
}

.quiz-teaser {
  background: linear-gradient(135deg, #7c3aed, #4f8ef7 58%, #f59e0b);
  border-right-color: color-mix(in srgb, var(--warning-deep) 62%, var(--brand-primary-deep));
  border-bottom-color: color-mix(in srgb, var(--warning-deep) 70%, var(--brand-primary-deep));
}

.teaser-copy,
.teaser-visual {
  position: relative;
  z-index: 1;
}

.teaser-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.teaser-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.teaser-copy strong {
  display: block;
  max-width: 460px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1.4px;
}

.teaser-copy p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  line-height: 1.55;
}

.teaser-visual {
  align-self: center;
  display: grid;
  gap: 14px;
}

.teaser-visual .match-toggle,
.teaser-visual .count-row,
.mini-race-card,
.quiz-mini-card,
.quiz-mini-score {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.mini-race-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border-bottom: 6px solid rgba(0, 0, 0, 0.24);
  border-right: 3px solid rgba(0, 0, 0, 0.2);
}

.mini-race-card small,
.quiz-mini-card small,
.quiz-mini-score span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.mini-race-card strong {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
}

.mini-race-card em {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--success);
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
}

.quiz-visual {
  grid-template-columns: 78px 1fr;
  align-items: center;
}

.quiz-mini-letter {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: #ffffff;
  color: var(--brand-primary);
  border-bottom: 7px solid rgba(0, 0, 0, 0.18);
  border-right: 3px solid rgba(0, 0, 0, 0.14);
  font-size: 42px;
  font-weight: 900;
}

.quiz-mini-card {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  border-bottom: 6px solid rgba(0, 0, 0, 0.22);
  border-right: 3px solid rgba(0, 0, 0, 0.18);
}

.quiz-mini-card strong {
  display: block;
  margin: 6px 0 14px;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.08;
}

.quiz-mini-card span {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  font-weight: 900;
}

.quiz-mini-score {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  border-bottom: 6px solid rgba(0, 0, 0, 0.2);
  border-right: 3px solid rgba(0, 0, 0, 0.16);
}

.quiz-mini-score b {
  font-size: 2rem;
  font-weight: 900;
}

.route-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--surface-secondary), var(--surface-tertiary));
  border-top: 1.5px solid rgba(255, 255, 255, 0.28);
  border-left: 1.5px solid rgba(255, 255, 255, 0.16);
  border-right: 4px solid var(--border-strong);
  border-bottom: 8px solid var(--border-strong);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--shadow) 14%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.route-card::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-secondary) 72%, transparent);
  color: var(--brand-primary);
  border-bottom: 3px solid color-mix(in srgb, var(--border-strong) 70%, transparent);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.route-card.featured::after {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.route-card:hover {
  transform: translateY(-6px);
  filter: saturate(1.08);
  box-shadow: 0 22px 54px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.route-card.featured {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-right-color: var(--brand-primary-deep);
  border-bottom-color: var(--brand-primary-deep);
}

.route-card .capsule {
  margin-bottom: 38px;
}

.route-card small {
  display: block;
  color: var(--on-tertiary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.route-card.featured small,
.route-card.featured p {
  color: rgba(255, 255, 255, 0.76);
}

.route-card strong {
  display: block;
  margin: 8px 0 10px;
  color: var(--on-surface);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.08;
}

.route-card.featured strong {
  color: #ffffff;
}

.route-card p {
  margin: 0;
  color: var(--on-tertiary);
  font-weight: 800;
  line-height: 1.55;
}

.mode-hero-stack {
  display: grid;
  gap: 14px;
}

.mode-command,
.race-timeline {
  display: grid;
  gap: 14px;
}

.mode-command {
  grid-template-columns: repeat(3, 1fr);
  padding: 6px 0 34px;
}

.mode-command div,
.race-timeline article {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface-secondary);
  border-top: 1.5px solid rgba(255, 255, 255, 0.26);
  border-left: 1.5px solid rgba(255, 255, 255, 0.16);
  border-right: 3px solid var(--border-strong);
  border-bottom: 6px solid var(--border-strong);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--shadow) 10%, transparent);
}

.mode-command span,
.race-timeline span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--brand-primary);
  color: #ffffff;
  border-right: 2px solid var(--brand-primary-deep);
  border-bottom: 4px solid var(--brand-primary-deep);
  font-size: 12px;
  font-weight: 900;
}

.feature-grid,
.legal-grid {
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 0 86px;
}

.race-timeline {
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 86px;
}

.page-focus,
.quiz-page {
  padding-top: 78px;
}

.quiz-page .quiz-layout {
  align-items: start;
}

.quiz-page .shell,
.quiz-arena,
.quiz-hud,
.quiz-question-card,
.quiz-form,
.quiz-actions,
.quiz-benefits {
  max-width: 100%;
}

.quiz-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quiz-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--surface-secondary);
  color: var(--on-secondary);
  border-bottom: 4px solid var(--border-strong);
  border-right: 2px solid var(--border-strong);
  font-size: 13px;
  font-weight: 900;
}

.gallery-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  padding-bottom: 8px;
}

.gallery-hero h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(4.25rem, 6.7vw, 6.15rem);
  line-height: 1.04;
}

.gallery-hero .section-copy > p:not(.kicker) {
  max-width: 860px;
}

.gallery-lens {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: end;
  padding: 18px;
  border-radius: 26px;
  background: var(--surface-secondary);
  border-top: 1.5px solid rgba(255, 255, 255, 0.28);
  border-left: 1.5px solid rgba(255, 255, 255, 0.16);
  border-right: 3px solid var(--border-strong);
  border-bottom: 6px solid var(--border-strong);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--shadow) 12%, transparent);
}

.gallery-lens > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #ffffff;
  border-right: 2px solid var(--brand-primary-deep);
  border-bottom: 5px solid var(--brand-primary-deep);
}

.legal-grid a {
  color: var(--brand-primary);
  font-weight: 900;
}

.legal-card {
  min-height: 0;
}

.legal-card p {
  margin: 10px 0 0;
  color: var(--on-tertiary);
  font-weight: 780;
  line-height: 1.58;
}

.legal-card p:first-of-type {
  color: var(--on-secondary);
}

.primitive-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.primitive-card {
  min-height: 220px;
  padding: 20px;
}

.primitive-card.ghost {
  color: #ffffff;
  background: linear-gradient(135deg, #2e1065, #1d4ed8);
  border-right-color: #1e1b4b;
  border-bottom-color: #1e1b4b;
}

.primitive-card.ghost p {
  color: rgba(255, 255, 255, 0.78);
}

.primitive-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 17px;
  border-bottom: 5px solid rgba(0, 0, 0, 0.28);
  border-right: 2px solid rgba(0, 0, 0, 0.2);
}

.modes-section,
.quiz-section,
.stats-section {
  background: color-mix(in srgb, var(--surface-secondary) 50%, transparent);
}

.mode-grid {
  grid-template-columns: repeat(2, 1fr);
}

.mode-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 138px;
  padding: 14px;
  overflow: visible;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.mode-card.detail-card {
  grid-template-columns: 62px minmax(0, 1fr);
  padding-left: 18px;
}

.mode-card .capsule {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 0;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--shadow) 16%, transparent);
}

.mode-card > div {
  min-width: 0;
}

.mode-card:hover,
.primitive-card:hover,
.shop-pack:hover {
  transform: translateY(-4px);
  filter: saturate(1.08);
}

.mode-card p {
  margin: 0;
}

.mode-card b {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--brand-primary);
  color: #ffffff;
  border-bottom: 4px solid var(--brand-primary-deep);
  border-right: 2px solid var(--brand-primary-deep);
  font-size: 20px;
}

.mode-card.featured {
  background: color-mix(in srgb, var(--success) 12%, var(--surface-secondary));
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(560px, 1.28fr);
  gap: clamp(42px, 4.6vw, 72px);
  align-items: center;
}

.quiz-page .section-copy {
  max-width: 560px;
}

.quiz-page .section-copy h1 {
  max-width: 8.8ch;
  font-size: clamp(3.65rem, 4.8vw, 5.55rem);
  line-height: 1.04;
}

.quiz-arena {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.6vw, 26px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 82% 4%, rgba(139, 92, 246, 0.34), transparent 18rem),
    linear-gradient(145deg, var(--surface-secondary), var(--surface-tertiary));
  border-top: 2px solid rgba(255, 255, 255, 0.26);
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  border-right: 4px solid var(--border-strong);
  border-bottom: 8px solid var(--border-strong);
  box-shadow: 0 22px 70px color-mix(in srgb, var(--shadow) 24%, transparent);
}

.quiz-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  animation: orbPulse 6s ease-in-out infinite;
}

.quiz-top,
.quiz-question-head,
.quiz-form,
.quiz-actions {
  display: flex;
  align-items: center;
}

.quiz-top {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.quiz-kicker,
.quiz-progress,
.quiz-stat span {
  color: var(--on-tertiary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
}

.quiz-top h3 {
  margin: 2px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: -1px;
}

.quiz-icon-button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: var(--brand-primary);
  color: #ffffff;
  border-bottom: 5px solid var(--brand-primary-deep);
  border-right: 2px solid var(--brand-primary-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.quiz-icon-button ion-icon {
  font-size: 24px;
}

.quiz-hud {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.quiz-stat {
  min-width: 0;
  min-height: 82px;
  padding: 12px 12px 13px;
  border-radius: 22px;
  background: var(--surface-secondary);
  border-bottom: 5px solid var(--border-strong);
  border-right: 3px solid var(--border-strong);
  border-top: 1.5px solid rgba(255, 255, 255, 0.22);
}

.quiz-stat.warning {
  background: var(--warning);
  color: #ffffff;
  border-color: var(--warning-deep);
}

.quiz-stat.success {
  background: var(--success);
  color: #ffffff;
  border-color: var(--success-deep);
}

.quiz-stat.primary {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary-deep);
}

.quiz-stat.warning span,
.quiz-stat.success span,
.quiz-stat.primary span {
  color: rgba(255, 255, 255, 0.78);
}

.quiz-stat strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.quiz-time-track {
  position: relative;
  z-index: 1;
  height: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-tertiary) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--border-strong) 55%, transparent);
}

.quiz-time-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--success), var(--warning), var(--error));
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 240ms linear;
}

.quiz-rail {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}

.quiz-rail::-webkit-scrollbar {
  display: none;
}

.quiz-chip {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--surface-secondary);
  color: var(--on-tertiary);
  font-weight: 900;
  border-bottom: 4px solid var(--border-strong);
  border-right: 2px solid var(--border-strong);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.quiz-chip:hover {
  transform: translateY(-2px);
}

.quiz-chip:focus-visible,
.quiz-icon-button:focus-visible,
.quiz-form input:focus-visible,
.quiz-actions button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-primary) 38%, transparent);
  outline-offset: 3px;
}

.quiz-chip.active,
.quiz-chip.correct,
.quiz-chip.wrong,
.quiz-chip.pass {
  color: #ffffff;
}

.quiz-chip.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary-deep);
}

.quiz-chip.correct {
  background: var(--success);
  border-color: var(--success-deep);
  cursor: default;
}

.quiz-chip.wrong {
  background: var(--error);
  border-color: var(--error-deep);
  cursor: default;
}

.quiz-chip.pass {
  background: var(--warning);
  border-color: var(--warning-deep);
}

.quiz-question-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(16px, 2.6vw, 22px);
  border-radius: 28px;
  background: var(--surface-secondary);
  border-top: 1.5px solid rgba(255, 255, 255, 0.22);
  border-left: 1.5px solid rgba(255, 255, 255, 0.14);
  border-right: 4px solid var(--border-strong);
  border-bottom: 7px solid var(--border-strong);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  contain: layout paint;
  will-change: transform;
}

.quiz-question-card.is-changing {
  animation: questionSwap 260ms ease;
}

.quiz-question-card.is-correct {
  border-right-color: var(--success-deep);
  border-bottom-color: var(--success-deep);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--success) 22%, transparent);
}

.quiz-question-card.is-wrong {
  border-right-color: var(--error-deep);
  border-bottom-color: var(--error-deep);
  animation: quizShake 260ms ease;
}

.quiz-question-card.is-pass {
  border-right-color: var(--warning-deep);
  border-bottom-color: var(--warning-deep);
}

.quiz-floating-gain {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--success);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.quiz-floating-gain.show {
  animation: gainPop 720ms ease;
}

.quiz-floating-gain.bad {
  background: var(--error);
}

.quiz-floating-gain.pass {
  background: var(--warning);
}

.quiz-question-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.quiz-letter {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 38px;
  font-weight: 900;
  border-bottom: 7px solid var(--brand-primary-deep);
  border-right: 3px solid var(--brand-primary-deep);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--brand-primary) 22%, transparent);
}

.quiz-question-head p {
  margin: 4px 0 0;
  color: var(--on-surface);
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.quiz-form {
  gap: 10px;
  align-items: stretch;
}

.quiz-form input {
  min-width: 0;
  flex: 1;
  min-height: 58px;
  padding: 0 18px;
  border: 2px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface-tertiary);
  color: var(--on-surface);
  font-size: 18px;
  font-weight: 900;
  outline: none;
  line-height: 1.2;
  scroll-margin-block: 120px 24px;
}

.quiz-form input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.quiz-submit {
  min-width: min(142px, 100%);
}

.quiz-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.quiz-feedback {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--on-tertiary);
  font-weight: 800;
  line-height: 1.35;
  transition: color 160ms ease, transform 160ms ease;
}

.quiz-feedback.good {
  color: var(--success);
}

.quiz-feedback.bad {
  color: var(--error);
}

.quiz-feedback.pass {
  color: var(--warning);
}

.quiz-result {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #ffffff;
  border-bottom: 7px solid var(--brand-primary-deep);
  border-right: 4px solid var(--brand-primary-deep);
  animation: resultEnter 320ms ease both;
}

.quiz-result[hidden] {
  display: none;
}

.quiz-result-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: var(--warning);
  border-bottom: 6px solid var(--warning-deep);
  border-right: 3px solid var(--warning-deep);
}

.quiz-result-icon ion-icon {
  font-size: 34px;
}

.quiz-result strong {
  font-size: 28px;
  font-weight: 900;
}

.quiz-result p {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.quiz-burst {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 38%, rgba(16, 185, 129, 0.28), transparent 10rem),
    radial-gradient(circle at 72% 52%, rgba(245, 158, 11, 0.22), transparent 12rem);
}

.quiz-burst.show {
  animation: burstFlash 520ms ease;
}

.online-section,
.stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.ranked-mock {
  display: grid;
  gap: 16px;
}

.match-toggle {
  display: inline-flex;
  width: fit-content;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: var(--surface-tertiary);
}

.match-toggle span,
.match-toggle strong {
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
}

.match-toggle span {
  color: var(--on-tertiary);
}

.match-toggle strong {
  background: var(--brand-primary);
  color: #ffffff;
  border-bottom: 4px solid var(--brand-primary-deep);
}

.count-row {
  display: grid;
  grid-template-columns: repeat(3, 74px) 1fr;
  gap: 10px;
}

.count-row span,
.count-row strong {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: 22px;
  font-size: 24px;
  font-weight: 900;
  background: var(--surface-secondary);
  color: var(--on-surface);
  border-bottom: 5px solid var(--border-strong);
  border-right: 3px solid var(--border-strong);
}

[data-theme="light"] .count-row span {
  background: #ffffff;
  color: #0f172a;
  border-right-color: rgba(170, 182, 200, 0.7);
  border-bottom-color: rgba(170, 182, 200, 0.92);
}

.count-row span {
  animation: countdownPop 2.4s ease-in-out infinite;
}

.count-row span:nth-child(2) {
  animation-delay: 0.2s;
}

.count-row span:nth-child(3) {
  animation-delay: 0.4s;
}

.count-row strong {
  background: var(--success);
  color: #ffffff;
  border-color: var(--success-deep);
}

.ranked-card {
  padding: 20px;
  background: linear-gradient(135deg, #2e1065, #1d4ed8);
  border-right-color: #1e1b4b;
  border-bottom-color: #1e1b4b;
}

.ranked-card::after,
.performance-hero::after,
.wallet-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 28%;
  height: 80%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  animation: orbitWash 6s ease-in-out infinite;
  pointer-events: none;
}

.ranked-top {
  gap: 14px;
}

.rank-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--warning);
  border-bottom: 5px solid var(--warning-deep);
  border-right: 2px solid var(--warning-deep);
}

.ranked-top small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.ranked-top strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
}

.ranked-top p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.ranked-top em {
  margin-left: auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-style: normal;
  font-weight: 900;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin: 16px 0;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #34d399;
  animation: progressShine 2.6s ease-in-out infinite;
}

.rank-metrics {
  gap: 8px;
}

.rank-metrics div {
  flex: 1;
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
}

.rank-metrics strong,
.rank-metrics span {
  color: #ffffff;
}

.rank-metrics span {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0;
  text-transform: none;
}

.mini-screen {
  padding: 18px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--shadow) 18%, transparent);
}

.screen-title {
  margin-bottom: 12px;
  color: var(--on-surface);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
}

.performance-hero,
.wallet-card {
  padding: 18px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-right-color: var(--brand-secondary-deep);
  border-bottom-color: var(--brand-secondary-deep);
}

.performance-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.performance-hero small,
.wallet-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.performance-hero strong,
.wallet-card strong {
  display: block;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1.4px;
}

.performance-hero .progress-track,
.hero-metrics {
  grid-column: 1 / -1;
}

.hero-metrics {
  display: flex;
  gap: 8px;
}

.hero-metrics span {
  flex: 1;
  padding: 9px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.run-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.run-rail div {
  min-height: 112px;
  padding: 12px;
  border-radius: 22px;
  background: var(--brand-primary);
  color: #ffffff;
  border-bottom: 6px solid var(--brand-primary-deep);
  border-right: 3px solid var(--brand-primary-deep);
  animation: tileBob 4.4s ease-in-out infinite;
}

.run-rail div:nth-child(2) {
  animation-delay: -1.2s;
}

.run-rail div:nth-child(3) {
  animation-delay: -2.4s;
}

.run-rail strong {
  display: block;
  margin-top: 36px;
  font-size: 24px;
  font-weight: 900;
}

.run-rail span {
  font-size: 11px;
  font-weight: 900;
}

.focus-card {
  padding: 14px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.focus-grid span {
  color: var(--on-tertiary);
  font-size: 10px;
  font-weight: 900;
}

.focus-grid b {
  display: block;
  color: var(--on-surface);
  font-size: 16px;
}

.economy-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.wallet-card {
  min-height: 250px;
}

.life-row {
  display: flex;
  gap: 8px;
  margin: 20px 0 12px;
}

.life-row i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--error);
  border-bottom: 4px solid var(--error-deep);
  color: #ffffff;
}

.life-row i.empty {
  background: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.55);
}

.wallet-card p {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.shop-pack {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.shop-pack.champion {
  background: var(--warning);
  color: #ffffff;
  border-right-color: var(--warning-deep);
  border-bottom-color: var(--warning-deep);
}

.shop-pack p {
  margin: 0;
  color: var(--on-tertiary);
}

.shop-pack.champion p {
  color: rgba(255, 255, 255, 0.78);
}

.coin {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--warning);
  color: #ffffff;
  font-weight: 900;
  border-bottom: 5px solid var(--warning-deep);
  border-right: 2px solid var(--warning-deep);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 19px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-secondary) 94%, transparent), color-mix(in srgb, var(--surface-tertiary) 90%, transparent));
  color: var(--on-surface);
  border: 1.5px solid var(--border);
  border-right: 3px solid var(--border-strong);
  border-bottom: 6px solid var(--border-strong);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--shadow) 18%, transparent);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
  backdrop-filter: blur(14px);
}

.gallery-nav:hover:not(:disabled) {
  transform: translateY(calc(-50% - 2px));
  background: color-mix(in srgb, var(--brand-primary) 14%, var(--surface-tertiary));
}

.gallery-nav:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.gallery-nav ion-icon {
  font-size: 24px;
}

.gallery-nav-prev {
  left: -28px;
}

.gallery-nav-next {
  right: -28px;
}

.gallery-carousel {
  position: relative;
}

.gallery-grid {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  padding: 8px 4px 28px;
  margin-inline: -4px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y pinch-zoom;
  scrollbar-color: color-mix(in srgb, var(--brand-primary) 72%, transparent) transparent;
}

.gallery-grid.is-dragging {
  scroll-snap-type: none;
}

.gallery-grid::-webkit-scrollbar {
  height: 10px;
}

.gallery-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-tertiary) 68%, transparent);
}

.gallery-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border: 2px solid color-mix(in srgb, var(--surface-secondary) 88%, transparent);
}

.gallery-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-tertiary) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--border-strong) 50%, transparent);
}

.gallery-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--warning));
  transform: scaleX(0.16);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.gallery-shot {
  flex: 0 0 clamp(280px, 31vw, 356px);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 9 / 16;
  min-height: 360px;
  padding: 18px;
  border-radius: 30px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--brand-primary), #111827);
  border-top: 2px solid rgba(255, 255, 255, 0.24);
  border-left: 2px solid rgba(255, 255, 255, 0.16);
  border-right: 4px solid rgba(0, 0, 0, 0.28);
  border-bottom: 8px solid rgba(0, 0, 0, 0.34);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--shadow) 20%, transparent);
}

.image-shot {
  --shot-visible: 82%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: auto;
  padding: 10px 10px 14px;
  aspect-ratio: auto;
  background:
    linear-gradient(var(--surface-secondary), var(--surface-secondary)) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(139, 92, 246, 0.22), rgba(0, 0, 0, 0.32)) border-box;
  border: 1px solid transparent;
  border-right: 4px solid color-mix(in srgb, var(--shadow) 42%, transparent);
  border-bottom: 7px solid color-mix(in srgb, var(--shadow) 48%, transparent);
  border-radius: 30px;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

[data-theme="light"] .image-shot {
  background:
    linear-gradient(#ffffff, #f8fbff) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(139, 92, 246, 0.28), rgba(79, 142, 247, 0.24)) border-box;
  border-right-color: rgba(170, 182, 200, 0.7);
  border-bottom-color: rgba(170, 182, 200, 0.9);
  box-shadow: 0 18px 42px rgba(79, 70, 229, 0.12);
}

.image-shot > img,
.image-shot > .shot-caption {
  flex: 0 0 auto;
}

.image-shot:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.image-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 17.2;
  height: auto;
  object-fit: cover;
  object-position: center 58%;
  border-radius: 22px;
  background: #0b1124;
}

[data-theme="light"] .image-shot img {
  background: #ffffff;
  filter: none;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.image-shot::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 46px;
  z-index: 1;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(8, 10, 22, 0.86), transparent);
  pointer-events: none;
}

[data-theme="light"] .image-shot::before {
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent);
}

.image-shot .shot-caption {
  position: static;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 11px;
  align-items: center;
  margin-top: 12px;
  padding: 0 4px;
  min-height: 46px;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

[data-theme="light"] .image-shot .shot-caption {
  padding: 8px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
}

.shot-caption-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--brand-primary);
  color: #ffffff;
  border-bottom: 4px solid var(--brand-primary-deep);
  border-right: 2px solid var(--brand-primary-deep);
}

.shot-caption-icon ion-icon {
  font-size: 22px;
}

.image-shot .shot-caption span {
  color: var(--on-tertiary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.image-shot .shot-caption strong {
  margin: 2px 0 0;
  color: var(--on-surface);
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-shot > ion-icon {
  width: 46px;
  height: 46px;
  margin-bottom: auto;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  border-bottom: 4px solid rgba(0, 0, 0, 0.24);
  font-size: 22px;
}

.gallery-shot.game > ion-icon {
  background: var(--brand-primary);
  color: #ffffff;
}

.gallery-shot.game {
  background: linear-gradient(145deg, var(--surface-secondary), var(--surface-tertiary));
  color: var(--on-surface);
}

.gallery-shot.ranked {
  background: linear-gradient(145deg, #2e1065, #1d4ed8);
}

.gallery-shot.store {
  background: linear-gradient(145deg, var(--warning), #92400e);
}

.gallery-shot span {
  color: currentColor;
  opacity: 0.72;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.gallery-shot strong {
  margin: 8px 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.gallery-shot p {
  margin: 0;
  opacity: 0.78;
  font-weight: 800;
}

.footer {
  padding: 62px 0 34px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--brand-primary) 14%, transparent), transparent 26rem),
    radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--accent-orange) 12%, transparent), transparent 22rem),
    color-mix(in srgb, var(--surface-secondary) 70%, transparent);
}

.footer-launch {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 34px;
  border: 1.5px solid var(--border);
  border-right: 5px solid var(--border-strong);
  border-bottom: 9px solid var(--border-strong);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--surface-secondary) 96%, transparent)),
    radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--brand-secondary) 24%, transparent), transparent 22rem);
  box-shadow: 0 26px 70px color-mix(in srgb, var(--shadow) 18%, transparent);
}

[data-theme="dark"] .footer-launch {
  background:
    radial-gradient(circle at 84% 8%, rgba(96, 165, 250, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(24, 33, 56, 0.98));
  border-color: rgba(148, 163, 184, 0.24);
  border-right-color: rgba(71, 85, 105, 0.86);
  border-bottom-color: rgba(51, 65, 85, 0.92);
}

.footer-launch::before {
  content: "";
  position: absolute;
  inset: 1px 18px auto;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.64), transparent);
  pointer-events: none;
}

.footer-launch::after {
  content: "TT";
  position: absolute;
  right: clamp(18px, 5vw, 56px);
  bottom: -28px;
  color: color-mix(in srgb, var(--brand-primary) 12%, transparent);
  font-size: clamp(6rem, 16vw, 12rem);
  font-weight: 1000;
  letter-spacing: -8px;
  line-height: 0.78;
  pointer-events: none;
}

.launch-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.launch-copy h2 {
  max-width: 760px;
  margin: 10px 0 12px;
  font-size: clamp(2.25rem, 5.8vw, 4.6rem);
  line-height: 1;
  letter-spacing: -2px;
}

.launch-copy > p:not(.kicker) {
  max-width: 590px;
  margin: 0;
  color: var(--on-secondary);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.55;
}

.launch-pills {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.launch-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--surface-tertiary);
  border: 1px solid var(--border);
  color: var(--on-secondary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--border-strong) 70%, transparent);
}

.launch-pills ion-icon {
  color: var(--brand-primary);
  font-size: 18px;
}

.launch-actions {
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  min-width: 214px;
}

.launch-actions .game-button {
  width: 100%;
  justify-content: center;
  min-height: 58px;
}

.footer-base {
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
}

.footer p {
  margin: 0;
}

.footer-base > p {
  color: var(--on-tertiary);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.footer-links {
  flex-wrap: wrap;
  gap: 4px;
  color: var(--on-tertiary);
  font-weight: 800;
}

.footer-button {
  justify-content: center;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 72px 72px, -72px 72px;
  }
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.12;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.22;
  }
}

@keyframes floatKey {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  50% {
    transform: translate3d(18px, -28px, 0) rotate(7deg);
  }
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: perspective(1100px) rotateY(-5deg) rotateX(2deg) translateY(0);
  }
  50% {
    transform: perspective(1100px) rotateY(-3deg) rotateX(3deg) translateY(-12px);
  }
}

@keyframes screenSheen {
  0%,
  44% {
    transform: translateX(-125%);
  }
  66%,
  100% {
    transform: translateX(125%);
  }
}

@keyframes cardGlow {
  0%,
  100% {
    box-shadow: 0 8px 20px color-mix(in srgb, var(--shadow) 18%, transparent);
  }
  50% {
    box-shadow: 0 14px 34px color-mix(in srgb, var(--brand-primary) 34%, transparent);
  }
}

@keyframes missionPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes countdownPop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes orbitWash {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-12%, -8%, 0) scale(1.08);
  }
}

@keyframes progressShine {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}

@keyframes themeFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.998);
  }
}

@keyframes themeFadeIn {
  from {
    opacity: 0;
    transform: scale(1.002);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tileBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.46);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(16, 185, 129, 0);
  }
}

@keyframes countdownStep {
  0%,
  100% {
    transform: translateY(0) scale(1);
    background: rgba(255, 255, 255, 0.18);
  }
  36% {
    transform: translateY(-3px) scale(1.06);
    background: rgba(255, 255, 255, 0.3);
  }
}

@keyframes typingFlow {
  0%,
  100% {
    transform: translateX(-8%) scaleX(0.82);
  }
  45% {
    transform: translateX(142%) scaleX(1);
  }
  70% {
    transform: translateX(80%) scaleX(0.72);
  }
}

@keyframes comboFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.03);
  }
}

@keyframes questionSwap {
  0% {
    opacity: 0.64;
    filter: brightness(1.08);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

@keyframes quizShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  55% {
    transform: translateX(5px);
  }
  78% {
    transform: translateX(-2px);
  }
}

@keyframes gainPop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
  }
  18%,
  62% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
  }
}

@keyframes resultEnter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes burstFlash {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes loaderCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loaderProgress {
  from {
    transform: scaleX(0.08);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes loaderKeyPop {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }

  45% {
    transform: translateY(-4px);
    filter: brightness(1.18);
  }
}

@keyframes loaderGrid {
  to {
    background-position: 64px 64px;
  }
}

@keyframes loaderHalo {
  0%,
  100% {
    transform: rotate(0deg) scale(0.96);
  }

  50% {
    transform: rotate(10deg) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .page-loader {
    transition-duration: 160ms;
  }
}

@media (max-width: 980px) {
  .hero,
  .online-section,
  .quiz-layout,
  .stats-layout,
  .why-section,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    order: -1;
  }

  .quiz-page {
    padding-top: 58px;
  }

  .quiz-page .section-copy {
    max-width: 760px;
  }

  .quiz-arena {
    width: 100%;
    max-width: 760px;
    justify-self: center;
  }

  .primitive-grid,
  .economy-grid,
  .product-strip,
  .teaser-grid,
  .mode-command,
  .race-timeline,
  .feature-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .home-route-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-section {
    padding-top: 46px;
  }

  .why-board {
    grid-template-columns: 1fr 1fr;
  }

  .product-strip,
  .teaser-section,
  .mode-command,
  .race-timeline {
    padding-bottom: 40px;
  }

  .gallery-grid {
    gap: 18px;
  }

  .footer-launch {
    grid-template-columns: 1fr;
  }

  .launch-actions {
    align-items: flex-start;
    width: min(100%, 360px);
  }

  .footer-base {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-base > p {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .page-loader {
    padding: 18px;
  }

  .loader-card {
    width: min(360px, 100%);
    border-radius: 28px;
  }

  .loader-logo {
    width: 74px;
    height: 74px;
    border-radius: 24px;
  }

  .loader-card strong {
    max-width: 10ch;
  }

  .loader-keys span {
    min-width: 42px;
    min-height: 40px;
    border-radius: 14px;
  }

  body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .game-atmosphere::before {
    opacity: 0.14;
    animation-duration: 28s;
  }

  .orb {
    width: 22rem;
    height: 22rem;
    filter: blur(10px);
    opacity: 0.12;
    animation-duration: 12s;
  }

  .float-key {
    display: none;
  }

  .shell {
    width: min(var(--max), calc(100% - 24px));
  }

  .site-header {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: min(var(--max), calc(100% - 20px));
    max-width: var(--max);
    margin: max(8px, env(safe-area-inset-top)) auto 0;
    padding: 7px;
    border-radius: 24px;
    box-shadow:
      0 16px 36px color-mix(in srgb, var(--shadow) 16%, transparent),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .site-header .brand {
    max-width: calc(100% - 104px);
    margin-right: auto;
  }

  .site-header .menu-toggle,
  .site-header .theme-toggle {
    flex: 0 0 auto;
  }

  .menu-scrim {
    position: fixed;
    inset: 0;
    z-index: 19;
    display: block;
    opacity: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand-primary) 18%, transparent), transparent 22rem),
      rgba(8, 12, 28, 0.28);
    backdrop-filter: blur(0);
    transition:
      opacity 260ms ease,
      backdrop-filter 260ms ease;
    will-change: opacity, backdrop-filter;
  }

  [data-theme="light"] .menu-scrim {
    background:
      radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand-primary) 12%, transparent), transparent 22rem),
      rgba(241, 245, 249, 0.42);
  }

  .menu-scrim.is-visible {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(8px);
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding-right: 6px;
  }

  .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    display: grid;
  }

  .site-header.menu-open .menu-toggle {
    background: var(--brand-primary);
    border-right-color: var(--brand-primary-deep);
    border-bottom-color: var(--brand-primary-deep);
  }

  .site-header.menu-open .menu-toggle span {
    background: #ffffff;
  }

  .theme-toggle {
    width: 48px;
    height: 34px;
  }

  .theme-toggle__dot {
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
  }

  [data-theme="dark"] .theme-toggle__dot {
    transform: translateX(14px);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 21;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: min(72svh, calc(100svh - 96px));
    overflow: hidden;
    overflow-y: auto;
    gap: 10px;
    padding: 10px;
    border-radius: 26px;
    background:
      radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--brand-primary) 18%, transparent), transparent 14rem),
      linear-gradient(145deg, color-mix(in srgb, var(--surface-secondary) 96%, transparent), color-mix(in srgb, var(--surface-tertiary) 88%, transparent));
    border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
    border-right: 3px solid color-mix(in srgb, var(--border-strong) 74%, transparent);
    border-bottom: 7px solid color-mix(in srgb, var(--border-strong) 82%, transparent);
    box-shadow:
      0 30px 80px color-mix(in srgb, var(--shadow) 24%, transparent),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -14px, 0) scale(0.96);
    transform-origin: top center;
    will-change: opacity, transform;
    transition:
      opacity 240ms ease,
      visibility 0ms linear 240ms,
      transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
      background var(--theme-duration) ease,
      border-color var(--theme-duration) ease,
      box-shadow var(--theme-duration) ease;
  }

  .site-header.menu-open .nav-links,
  body.menu-is-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0ms;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 52px;
    padding: 0 13px;
    border-radius: 18px;
    background:
      linear-gradient(145deg, color-mix(in srgb, var(--surface-secondary) 70%, transparent), color-mix(in srgb, var(--surface-tertiary) 88%, transparent));
    border: 1px solid color-mix(in srgb, var(--border) 58%, transparent);
    border-bottom: 4px solid color-mix(in srgb, var(--border-strong) 76%, transparent);
    border-right: 2px solid color-mix(in srgb, var(--border-strong) 66%, transparent);
    color: var(--on-secondary);
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .nav-links a::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--on-tertiary);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  }

  .nav-links a.active {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #ffffff;
    border-right-color: var(--brand-primary-deep);
    border-bottom-color: var(--brand-primary-deep);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--brand-primary) 22%, transparent);
  }

  .nav-links a.active::before {
    background: #ffffff;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
    gap: 26px;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4.55rem);
    line-height: 1;
    letter-spacing: -2px;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .hero-copy,
  .section-copy {
    max-width: 100%;
  }

  .phone-stage {
    width: min(100%, 370px);
    margin-inline: auto;
  }

  .phone {
    width: min(100%, 342px);
    min-height: 636px;
    padding: 8px;
    border-radius: 40px;
  }

  .phone::before {
    inset: 3px;
    border-radius: 37px;
  }

  .app-screen {
    border-radius: 32px;
    padding: 54px 14px 16px;
  }

  .dynamic-island {
    top: 17px;
    width: 96px;
    height: 30px;
  }

  .app-language,
  .modes-section,
  .quiz-section,
  .online-section,
  .stats-section,
  .economy-section,
  .gallery-section {
    padding: 58px 0;
  }

  .mode-grid,
  .home-route-grid,
  .product-strip,
  .teaser-grid,
  .why-board,
  .mode-command,
  .race-timeline {
    grid-template-columns: 1fr;
  }

  .teaser-section {
    padding-top: 50px;
  }

  .teaser-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px;
    border-radius: 28px;
  }

  .teaser-copy strong {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .teaser-visual {
    align-self: stretch;
  }

  .page-hero {
    padding: 48px 0 20px;
  }

  .page-hero h1 {
    font-size: clamp(2.75rem, 14vw, 5.2rem);
    letter-spacing: -1.4px;
  }

  .support-hero {
    padding: 42px 0 34px;
  }

  .support-hero h1 {
    max-width: 10ch;
    font-size: clamp(2.85rem, 12.8vw, 4.75rem);
    line-height: 1;
  }

  .support-hero .section-copy > p:not(.kicker) {
    max-width: min(100%, 34rem);
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .home-route-grid,
  .product-strip,
  .teaser-section,
  .feature-grid,
  .legal-grid,
  .race-timeline {
    padding-bottom: 58px;
  }

  .product-strip {
    margin-top: 0;
  }

  .product-strip article,
  .gallery-lens {
    align-items: flex-start;
  }

  .gallery-hero {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 0;
  }

  .why-section {
    padding: 36px 0 12px;
  }

  .why-copy,
  .why-card {
    border-radius: 24px;
  }

  .why-card.big {
    min-height: 260px;
  }

  .count-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .count-row strong {
    grid-column: 1 / -1;
  }

  .rank-metrics,
  .quiz-hud {
    flex-wrap: wrap;
  }

  .quiz-hud {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .quiz-layout {
    display: block;
    gap: 0;
  }

  .quiz-page {
    min-height: calc(var(--visual-viewport-height, 100svh) - 76px);
    padding: 10px 0 max(14px, env(safe-area-inset-bottom));
  }

  .quiz-page .section-copy {
    display: none;
  }

  .quiz-page h1 {
    font-size: clamp(2.7rem, 11vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: -1.3px;
  }

  .quiz-page .section-copy p {
    font-size: 0.98rem;
  }

  .quiz-benefits {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quiz-arena {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 10px;
    border-radius: 24px;
    overflow: hidden;
    overscroll-behavior: contain;
    scroll-padding: 12px;
    border-right-width: 3px;
    border-bottom-width: 6px;
  }

  .quiz-glow {
    width: 150px;
    height: 150px;
    right: -54px;
    top: -52px;
  }

  .quiz-top {
    margin-bottom: 8px;
  }

  .quiz-top h3 {
    font-size: 22px;
  }

  .quiz-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    border-bottom-width: 4px;
  }

  .quiz-stat {
    min-height: 48px;
    padding: 7px 5px;
    border-radius: 15px;
    border-bottom-width: 3px;
    border-right-width: 2px;
  }

  .quiz-stat strong {
    margin-top: 2px;
    font-size: 16px;
  }

  .quiz-kicker,
  .quiz-progress,
  .quiz-stat span {
    font-size: 8.5px;
    letter-spacing: 0.6px;
  }

  .quiz-time-track {
    height: 7px;
    margin-bottom: 7px;
  }

  .quiz-rail {
    flex: 0 0 auto;
    gap: 6px;
    padding: 1px 0 7px;
    overscroll-behavior-x: contain;
  }

  .quiz-chip {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    border-bottom-width: 3px;
    font-size: 12px;
  }

  .quiz-letter {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    border-bottom-width: 5px;
    border-right-width: 2px;
    font-size: 27px;
  }

  .quiz-question-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 20px;
    border-right-width: 3px;
    border-bottom-width: 5px;
  }

  .quiz-form {
    flex-direction: row;
    gap: 8px;
  }

  .quiz-actions .game-button {
    width: 100%;
  }

  .quiz-submit {
    flex: 0 0 auto;
    width: auto;
    min-width: 108px;
    padding-inline: 12px;
  }

  .quiz-form input {
    width: auto;
    font-size: 16px;
    min-height: 46px;
    border-radius: 15px;
    padding-inline: 14px;
  }

  .quiz-question-head {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 10px;
  }

  .quiz-question-head p {
    margin-top: 2px;
    font-size: 1rem;
    line-height: 1.22;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .quiz-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  .quiz-actions .game-button {
    min-height: 40px;
  }

  .quiz-feedback {
    min-height: 20px;
    margin-top: 8px;
    font-size: 13px;
  }

  .quiz-result {
    margin-top: 10px;
    padding: 14px;
    border-radius: 22px;
  }

  .quiz-arena.is-input-active {
    height: min(560px, calc(var(--visual-viewport-height, 100svh) - 88px));
    max-height: calc(var(--visual-viewport-height, 100svh) - 88px);
    scroll-behavior: auto;
  }

  .quiz-arena.is-input-active .quiz-top {
    margin-bottom: 6px;
  }

  .quiz-arena.is-input-active .quiz-top h3 {
    font-size: 21px;
  }

  .quiz-arena.is-input-active .quiz-icon-button {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .quiz-arena.is-input-active .quiz-hud {
    gap: 5px;
    margin-bottom: 6px;
  }

  .quiz-arena.is-input-active .quiz-stat {
    min-height: 46px;
    padding: 6px 5px;
    border-radius: 14px;
    border-bottom-width: 3px;
  }

  .quiz-arena.is-input-active .quiz-stat strong {
    margin-top: 2px;
    font-size: 16px;
  }

  .quiz-arena.is-input-active .quiz-kicker,
  .quiz-arena.is-input-active .quiz-progress,
  .quiz-arena.is-input-active .quiz-stat span {
    font-size: 7.5px;
    letter-spacing: 0.55px;
  }

  .quiz-arena.is-input-active .quiz-time-track {
    height: 6px;
    margin-bottom: 6px;
  }

  .quiz-arena.is-input-active .quiz-rail {
    gap: 5px;
    padding-bottom: 6px;
  }

  .quiz-arena.is-input-active .quiz-chip {
    width: 31px;
    height: 31px;
    border-radius: 11px;
    font-size: 12px;
  }

  .quiz-arena.is-input-active .quiz-question-card {
    flex: 0 0 auto;
    padding: 10px;
    border-radius: 19px;
    border-right-width: 2px;
    border-bottom-width: 4px;
  }

  .quiz-arena.is-input-active .quiz-question-head {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
  }

  .quiz-arena.is-input-active .quiz-letter {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    border-bottom-width: 4px;
    font-size: 24px;
  }

  .quiz-arena.is-input-active .quiz-question-head p {
    margin-top: 1px;
    font-size: 0.98rem;
    line-height: 1.2;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .quiz-arena.is-input-active .quiz-form {
    flex-direction: row;
    gap: 8px;
  }

  .quiz-arena.is-input-active .quiz-form input {
    min-height: 46px;
    font-size: 16px;
    border-radius: 15px;
  }

  .quiz-arena.is-input-active .quiz-submit {
    width: auto;
    min-width: 104px;
    min-height: 46px;
    padding-inline: 12px;
  }

  .quiz-arena.is-input-active .quiz-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 7px;
  }

  .quiz-arena.is-input-active .quiz-actions .game-button {
    min-height: 40px;
  }

  .quiz-arena.is-input-active .quiz-feedback {
    min-height: 18px;
    margin-top: 6px;
    font-size: 12px;
  }

  .quiz-submit,
  .quiz-actions .game-button,
  .gallery-shot,
  .image-shot {
    -webkit-tap-highlight-color: transparent;
  }

  .quiz-question-head {
    align-items: center;
  }

  .quiz-benefits span {
    width: 100%;
    justify-content: center;
  }

  .rank-metrics div {
    min-width: calc(50% - 6px);
  }

  .hero-actions .game-button,
  .hero-actions .app-store-badge,
  .footer-button {
    width: 100%;
  }

  .footer {
    padding: 46px 0 28px;
  }

  .footer-launch {
    padding: 20px;
    border-radius: 28px;
    border-right-width: 3px;
    border-bottom-width: 7px;
  }

  .footer-launch::after {
    right: 10px;
    bottom: -14px;
    font-size: 6.8rem;
  }

  .launch-copy h2 {
    font-size: clamp(2rem, 11vw, 3rem);
    letter-spacing: -1.2px;
  }

  .launch-copy > p:not(.kicker) {
    font-size: 15px;
  }

  .launch-actions {
    width: 100%;
  }

  .launch-actions .app-store-badge,
  .launch-actions .game-button {
    min-height: 52px;
  }

  .launch-pills span {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .footer-base {
    gap: 14px;
  }

  .footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .footer-links a {
    text-align: center;
    background: color-mix(in srgb, var(--surface-tertiary) 76%, transparent);
  }

  .gallery-nav {
    display: none;
  }

  .gallery-shot {
    flex-basis: min(82vw, 326px);
    min-height: 0;
  }

  .image-shot {
    min-height: auto;
    padding: 8px 8px 12px;
    border-radius: 24px;
  }

  .image-shot img {
    border-radius: 18px;
  }

  .image-shot .shot-caption {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 9px;
    min-height: 42px;
  }

  .shot-caption-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
}

@media (max-width: 430px) {
  .site-header {
    width: calc(100% - 14px);
    gap: 6px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border-bottom-width: 4px;
  }

  .brand > span:last-child {
    font-size: 15px;
  }

  .site-header {
    gap: 6px;
    width: calc(100% - 14px);
    max-width: var(--max);
    margin-right: auto;
    margin-left: auto;
    padding: 7px;
  }

  .site-header .brand {
    max-width: calc(100% - 94px);
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .theme-toggle {
    width: 44px;
    height: 31px;
  }

  .theme-toggle__dot {
    top: 4px;
    left: 4px;
    width: 19px;
    height: 19px;
  }

  [data-theme="dark"] .theme-toggle__dot {
    transform: translateX(13px);
  }

  .quiz-page {
    padding: 8px 0 max(12px, env(safe-area-inset-bottom));
  }

  .quiz-page .shell {
    width: calc(100% - 18px);
  }

  .quiz-arena {
    padding: 9px;
    border-radius: 23px;
    border-right-width: 3px;
    border-bottom-width: 6px;
  }

  .quiz-top {
    margin-bottom: 7px;
  }

  .quiz-top h3 {
    font-size: 20px;
    letter-spacing: -0.4px;
  }

  .quiz-icon-button {
    width: 39px;
    height: 39px;
    border-radius: 14px;
  }

  .quiz-hud {
    gap: 5px;
    margin-bottom: 7px;
  }

  .quiz-stat {
    min-height: 47px;
    padding: 6px 5px;
    border-radius: 14px;
  }

  .quiz-time-track {
    margin-bottom: 7px;
  }

  .quiz-rail {
    padding-bottom: 7px;
  }

  .quiz-question-card {
    padding: 10px;
    border-radius: 19px;
  }

  .quiz-question-head p {
    font-size: 0.9rem;
    line-height: 1.16;
    -webkit-line-clamp: 3;
  }

  .quiz-form {
    gap: 7px;
  }

  .quiz-form input {
    min-height: 43px;
    border-radius: 14px;
    font-size: 15px;
  }

  .quiz-submit {
    min-width: 92px;
    min-height: 43px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .quiz-actions {
    gap: 7px;
    margin-top: 7px;
  }

  .quiz-actions .game-button {
    min-height: 38px;
  }

  body.quiz-input-active .site-header {
    opacity: 0;
    transform: translateY(-110%);
    pointer-events: none;
  }

  body.quiz-input-active .quiz-page {
    padding-top: max(8px, env(safe-area-inset-top));
  }

  body.quiz-input-active .quiz-arena {
    height: calc(var(--visual-viewport-height, 100svh) - max(18px, env(safe-area-inset-top)));
    max-height: calc(var(--visual-viewport-height, 100svh) - max(18px, env(safe-area-inset-top)));
    padding: 8px;
  }

  body.quiz-input-active .quiz-top {
    display: none;
  }

  body.quiz-input-active .quiz-hud {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 5px;
  }

  body.quiz-input-active .quiz-stat {
    min-height: 40px;
    padding: 5px 4px;
    border-radius: 12px;
  }

  body.quiz-input-active .quiz-stat strong {
    font-size: 14px;
  }

  body.quiz-input-active .quiz-time-track {
    height: 5px;
    margin-bottom: 5px;
  }

  body.quiz-input-active .quiz-rail {
    gap: 5px;
    padding-bottom: 5px;
  }

  body.quiz-input-active .quiz-chip {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 11px;
  }

  body.quiz-input-active .quiz-question-card {
    padding: 8px;
    border-radius: 17px;
  }

  body.quiz-input-active .quiz-question-head {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
    margin-bottom: 7px;
  }

  body.quiz-input-active .quiz-letter {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 21px;
  }

  body.quiz-input-active .quiz-question-head p {
    font-size: 0.82rem;
    line-height: 1.14;
    -webkit-line-clamp: 3;
  }

  body.quiz-input-active .quiz-form input {
    min-height: 42px;
    font-size: 15px;
  }

  body.quiz-input-active .quiz-submit {
    min-width: 88px;
    min-height: 42px;
  }

  body.quiz-input-active .quiz-actions {
    display: none;
  }

  body.quiz-input-active .quiz-feedback {
    min-height: 16px;
    margin-top: 5px;
    font-size: 11px;
  }

  .hero-actions,
  .mini-stat-row,
  .hero-proof-row {
    flex-direction: column;
  }

  .mini-stat-row .stat-tile,
  .hero-proof-row span {
    width: 100%;
    min-width: 0;
  }

  .product-strip article {
    min-height: 0;
  }

  .teaser-panel {
    padding: 16px;
  }

  .quiz-visual {
    grid-template-columns: 64px 1fr;
  }

  .quiz-mini-letter {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 34px;
  }

  .quiz-mini-card strong {
    font-size: 1.05rem;
  }

  .phone {
    width: min(100%, 334px);
    min-height: 598px;
    padding: 7px;
    border-radius: 38px;
    box-shadow:
      0 18px 50px color-mix(in srgb, var(--shadow) 26%, transparent),
      0 0 0 1px rgba(255, 255, 255, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      inset 0 -1px 0 rgba(0, 0, 0, 0.62);
  }

  .phone::before {
    inset: 2px;
    border-radius: 36px;
  }

  .phone-17-pro {
    transform: none;
    animation: none;
  }

  .app-screen {
    border-radius: 31px;
    padding-top: 50px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .dynamic-island {
    top: 15px;
    width: 88px;
    height: 28px;
  }

  .dynamic-island span {
    width: 7px;
    height: 7px;
  }

  .race-pulse-row {
    grid-template-columns: repeat(3, 26px) minmax(0, 1fr);
    gap: 5px;
    margin-bottom: 9px;
  }

  .race-pulse-row span {
    width: 26px;
    height: 24px;
    border-radius: 9px;
    font-size: 10px;
  }

  .race-pulse-row strong {
    padding: 6px 8px;
    font-size: 8.5px;
    letter-spacing: 0.55px;
  }

  .typing-flow-bar {
    height: 7px;
    margin-bottom: 10px;
  }

  .combo-toast {
    min-height: 30px;
    margin-top: 8px;
    padding-inline: 11px;
    font-size: 10px;
  }

  .app-header h2 {
    font-size: 26px;
  }

  .app-hero-stats {
    gap: 6px;
    margin: 13px 0 11px;
  }

  .app-hero-stats strong {
    font-size: 23px;
  }

  .app-hero-card {
    padding: 14px;
    border-radius: 23px;
  }

  .white-cta {
    min-height: 44px;
    border-radius: 16px;
    font-size: 12px;
  }

  .daily-card {
    align-items: flex-start;
    margin: 9px 0;
    padding: 10px;
    border-radius: 20px;
  }

  .daily-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .daily-card strong {
    font-size: 12px;
  }

  .daily-card p {
    font-size: 10px;
  }

  .app-stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
  }

  .app-stat-row div {
    width: auto;
    min-width: 0;
    padding: 8px 5px;
    border-radius: 15px;
  }

  .app-stat-row strong {
    font-size: 15px;
  }

  .app-stat-row span {
    font-size: 7px;
    line-height: 1.15;
  }

  .section-label {
    margin: 2px 0 6px;
    font-size: 9px;
  }

  .mode-list-preview article {
    grid-template-columns: 40px 1fr auto;
    gap: 8px;
    padding: 8px;
  }

  .mode-list-preview em {
    grid-column: auto;
    justify-self: end;
    padding: 4px 6px;
    font-size: 8px;
  }

  .mode-list-preview strong {
    font-size: 13px;
  }

  .mode-list-preview small {
    font-size: 9px;
  }

  .capsule {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .quiz-hud {
    gap: 5px;
  }

  .quiz-stat strong {
    font-size: 15px;
  }

  .quiz-question-head {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 8px;
  }

  .quiz-question-head p {
    font-size: 0.94rem;
    line-height: 1.18;
    -webkit-line-clamp: 3;
  }

  .quiz-letter {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    border-bottom-width: 4px;
    font-size: 23px;
  }

  .quiz-kicker,
  .quiz-progress,
  .quiz-stat span {
    letter-spacing: 1.1px;
  }

  .quiz-chip {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    font-size: 12px;
  }

  .quiz-feedback {
    font-size: 12px;
  }

  .quiz-form input {
    min-height: 44px;
    padding-inline: 14px;
  }

  .quiz-submit,
  .quiz-actions .game-button {
    min-height: 40px;
  }

  .quiz-submit {
    min-width: 98px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .quiz-benefits {
    gap: 8px;
  }

  .quiz-benefits span {
    flex-basis: 100%;
    border-radius: 16px;
  }

  body.quiz-input-active {
    overflow-anchor: none;
  }

  body.quiz-input-active .footer {
    display: none;
  }

  body.quiz-input-active .quiz-page {
    min-height: var(--visual-viewport-height, 100svh);
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  body.quiz-input-active .quiz-layout {
    min-height: 0;
  }

  body.quiz-input-active .quiz-arena {
    height: calc(var(--visual-viewport-height, 100svh) - 18px);
    max-height: calc(var(--visual-viewport-height, 100svh) - 18px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .online-section,
  .stats-layout {
    gap: 24px;
  }

  .gallery-grid {
    gap: 14px;
    padding-bottom: 24px;
    scroll-padding-inline: 2px;
  }

  .image-shot .shot-caption strong {
    font-size: 15px;
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 18px;
  }

  .phone-stage {
    width: 100%;
    max-height: calc(var(--visual-viewport-height, 100svh) - 108px);
    overflow: visible;
  }

  .phone-stage .phone {
    width: min(100%, 334px, calc((var(--visual-viewport-height, 100svh) - 122px) * 0.455));
    min-width: 286px;
    min-height: 0;
    aspect-ratio: 9 / 19.75;
  }

  .phone-stage .app-screen {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1.8vw, 9px);
    padding-top: clamp(42px, 12vw, 50px);
    padding-bottom: 12px;
  }

  .phone-stage .app-header {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .phone-stage .app-header h2 {
    font-size: clamp(22px, 6vw, 27px);
  }

  .phone-stage .coin-badge {
    width: clamp(42px, 12vw, 50px);
    height: clamp(42px, 12vw, 50px);
    border-radius: 16px;
  }

  .phone-stage .app-hero-card {
    flex: 0 0 auto;
    padding: clamp(12px, 3.4vw, 15px);
    border-radius: clamp(21px, 6vw, 25px);
  }

  .phone-stage .app-hero-top {
    gap: 8px;
  }

  .phone-stage .record-pill {
    padding: 5px 9px;
    font-size: clamp(8px, 2.4vw, 10px);
    letter-spacing: 0.6px;
  }

  .phone-stage .grade-badge {
    width: clamp(48px, 13vw, 56px);
    height: clamp(48px, 13vw, 56px);
    border-radius: 17px;
    font-size: clamp(24px, 7vw, 28px);
  }

  .phone-stage .app-hero-stats {
    gap: clamp(5px, 1.6vw, 8px);
    margin: clamp(10px, 2.8vw, 13px) 0;
  }

  .phone-stage .app-hero-stats strong {
    font-size: clamp(21px, 6.2vw, 25px);
  }

  .phone-stage .app-hero-stats span {
    font-size: clamp(7px, 2.15vw, 9px);
    letter-spacing: 0.6px;
  }

  .phone-stage .race-pulse-row {
    grid-template-columns: repeat(3, clamp(24px, 7vw, 28px)) minmax(0, 1fr);
    gap: 5px;
    margin-bottom: 7px;
  }

  .phone-stage .race-pulse-row span {
    width: clamp(24px, 7vw, 28px);
    height: clamp(22px, 6.2vw, 25px);
    color: #ffffff;
  }

  .phone-stage .race-pulse-row strong {
    min-width: 0;
    padding: 6px 7px;
    font-size: clamp(7px, 2.25vw, 9px);
  }

  .phone-stage .typing-flow-bar {
    height: 6px;
    margin-bottom: 8px;
  }

  .phone-stage .white-cta {
    min-height: clamp(39px, 11vw, 44px);
    font-size: clamp(10px, 3vw, 12px);
  }

  .phone-stage .seri-toast {
    min-height: 24px;
    margin-top: 5px;
    font-size: clamp(9px, 2.8vw, 11px);
  }

  .phone-stage .daily-card {
    flex: 0 0 auto;
    margin: 0;
    padding: clamp(8px, 2.5vw, 10px);
    border-radius: 19px;
  }

  .phone-stage .daily-icon {
    width: clamp(36px, 10vw, 41px);
    height: clamp(36px, 10vw, 41px);
    border-radius: 13px;
  }

  .phone-stage .daily-card span {
    font-size: clamp(7px, 2.1vw, 9px);
  }

  .phone-stage .daily-card strong {
    font-size: clamp(10px, 3vw, 12px);
  }

  .phone-stage .daily-card p {
    font-size: clamp(8px, 2.4vw, 10px);
  }

  .phone-stage .app-stat-row {
    flex: 0 0 auto;
    gap: 6px;
    margin-bottom: 0;
  }

  .phone-stage .app-stat-row div {
    padding: 7px 5px;
    border-radius: 14px;
  }

  .phone-stage .app-stat-row strong {
    font-size: clamp(14px, 4.4vw, 17px);
  }

  .phone-stage .app-stat-row span {
    font-size: clamp(6px, 1.9vw, 7px);
  }

  .phone-stage .section-label {
    flex: 0 0 auto;
    margin: 0;
  }

  .phone-stage .mode-list-preview {
    flex: 1 1 auto;
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 0;
    overflow: hidden;
  }

  .phone-stage .mode-list-preview article {
    grid-template-columns: clamp(34px, 10vw, 40px) minmax(0, 1fr) auto;
    gap: 7px;
    padding: 7px;
    border-radius: 17px;
  }

  .phone-stage .mode-list-preview article:nth-child(n + 3) {
    display: none;
  }

  .phone-stage .capsule {
    width: clamp(34px, 10vw, 40px);
    height: clamp(34px, 10vw, 40px);
    border-radius: 13px;
  }

  .phone-stage .mode-list-preview strong {
    font-size: clamp(11px, 3.4vw, 13px);
  }

  .phone-stage .mode-list-preview small {
    font-size: clamp(8px, 2.45vw, 10px);
  }

  .phone-stage .mode-list-preview em {
    padding: 4px 6px;
    font-size: clamp(7px, 2.1vw, 8px);
  }

  .quiz-page {
    --quiz-page-x: clamp(8px, 3.4vw, 18px);
    --quiz-arena-pad: clamp(8px, 2.9vw, 14px);
    --quiz-arena-radius: clamp(20px, 6.2vw, 28px);
    --quiz-gap: clamp(5px, 1.8vw, 9px);
    --quiz-stat-h: clamp(42px, 12vw, 58px);
    --quiz-stat-pad-y: clamp(5px, 1.7vw, 8px);
    --quiz-stat-pad-x: clamp(4px, 1.7vw, 8px);
    --quiz-stat-radius: clamp(13px, 4vw, 18px);
    --quiz-stat-value: clamp(14px, 4.7vw, 20px);
    --quiz-label: clamp(7px, 2.25vw, 9.5px);
    --quiz-chip: clamp(28px, 8.8vw, 38px);
    --quiz-chip-radius: clamp(10px, 3.5vw, 14px);
    --quiz-letter: clamp(40px, 13vw, 56px);
    --quiz-letter-size: clamp(22px, 7vw, 30px);
    --quiz-question: clamp(0.86rem, 4.2vw, 1.06rem);
    --quiz-input-h: clamp(42px, 12.6vw, 50px);
    --quiz-button-w: clamp(88px, 27vw, 118px);
    --quiz-button-text: clamp(11px, 3.3vw, 13px);
    min-height: calc(var(--visual-viewport-height, 100svh) - 74px);
    padding: 10px 0 max(14px, env(safe-area-inset-bottom));
  }

  .quiz-page .shell {
    width: calc(100% - (var(--quiz-page-x) * 2));
  }

  .quiz-arena {
    width: 100%;
    max-width: min(100%, 620px);
    padding: var(--quiz-arena-pad);
    border-radius: var(--quiz-arena-radius);
  }

  .quiz-top {
    gap: var(--quiz-gap);
    margin-bottom: var(--quiz-gap);
  }

  .quiz-top h3 {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .quiz-icon-button {
    width: clamp(38px, 11vw, 46px);
    height: clamp(38px, 11vw, 46px);
    border-radius: clamp(14px, 4vw, 17px);
  }

  .quiz-hud {
    gap: var(--quiz-gap);
    margin-bottom: var(--quiz-gap);
  }

  .quiz-stat {
    min-height: var(--quiz-stat-h);
    padding: var(--quiz-stat-pad-y) var(--quiz-stat-pad-x);
    border-radius: var(--quiz-stat-radius);
  }

  .quiz-stat strong {
    font-size: var(--quiz-stat-value);
  }

  .quiz-kicker,
  .quiz-progress,
  .quiz-stat span {
    font-size: var(--quiz-label);
    letter-spacing: clamp(0.45px, 0.22vw, 1.1px);
  }

  .quiz-time-track {
    height: clamp(5px, 1.8vw, 8px);
    margin-bottom: var(--quiz-gap);
  }

  .quiz-rail {
    gap: clamp(5px, 1.7vw, 8px);
    padding-bottom: var(--quiz-gap);
  }

  .quiz-chip {
    width: var(--quiz-chip);
    height: var(--quiz-chip);
    border-radius: var(--quiz-chip-radius);
    font-size: clamp(11px, 3.4vw, 13px);
  }

  .quiz-question-card {
    padding: clamp(8px, 2.7vw, 13px);
    border-radius: clamp(17px, 5vw, 22px);
  }

  .quiz-question-head {
    grid-template-columns: var(--quiz-letter) minmax(0, 1fr);
    gap: clamp(7px, 2.5vw, 11px);
    margin-bottom: clamp(7px, 2.5vw, 11px);
  }

  .quiz-letter {
    width: var(--quiz-letter);
    height: var(--quiz-letter);
    border-radius: clamp(14px, 4.5vw, 18px);
    font-size: var(--quiz-letter-size);
  }

  .quiz-question-head p {
    font-size: var(--quiz-question);
    line-height: 1.17;
    -webkit-line-clamp: 3;
  }

  .quiz-form {
    gap: clamp(6px, 2vw, 9px);
  }

  .quiz-form input {
    min-height: var(--quiz-input-h);
    padding-inline: clamp(12px, 3.8vw, 16px);
    border-radius: clamp(14px, 4vw, 17px);
    font-size: 16px;
  }

  .quiz-submit {
    min-width: var(--quiz-button-w);
    min-height: var(--quiz-input-h);
    padding-inline: clamp(8px, 2.6vw, 12px);
    font-size: var(--quiz-button-text);
  }

  .quiz-actions {
    gap: clamp(7px, 2vw, 9px);
    margin-top: clamp(7px, 2vw, 10px);
  }

  .quiz-actions .game-button {
    min-height: clamp(38px, 11vw, 44px);
  }

  .quiz-feedback {
    min-height: clamp(16px, 4.5vw, 22px);
    margin-top: clamp(5px, 1.8vw, 8px);
    font-size: clamp(11px, 3.4vw, 13px);
  }

  body.quiz-input-active {
    overflow-anchor: none;
  }

  body.quiz-input-active .footer {
    display: none;
  }

  body.quiz-input-active .site-header {
    opacity: 0;
    transform: translateY(-110%);
    pointer-events: none;
  }

  body.quiz-input-active .quiz-page {
    min-height: var(--visual-viewport-height, 100svh);
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  body.quiz-input-active .quiz-layout {
    min-height: 0;
  }

  body.quiz-input-active .quiz-arena {
    height: calc(var(--visual-viewport-height, 100svh) - max(16px, env(safe-area-inset-top)));
    max-height: calc(var(--visual-viewport-height, 100svh) - max(16px, env(safe-area-inset-top)));
    padding: clamp(7px, 2.1vw, 10px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.quiz-input-active .quiz-top {
    display: none;
  }

  body.quiz-input-active .quiz-hud {
    gap: clamp(4px, 1.4vw, 6px);
    margin-bottom: clamp(4px, 1.4vw, 6px);
  }

  body.quiz-input-active .quiz-stat {
    min-height: clamp(36px, 10.5vw, 46px);
    padding: clamp(4px, 1.4vw, 6px);
    border-radius: clamp(11px, 3.2vw, 14px);
  }

  body.quiz-input-active .quiz-stat strong {
    font-size: clamp(12px, 4vw, 16px);
  }

  body.quiz-input-active .quiz-kicker,
  body.quiz-input-active .quiz-progress,
  body.quiz-input-active .quiz-stat span {
    font-size: clamp(6.7px, 2vw, 8px);
    letter-spacing: 0.45px;
  }

  body.quiz-input-active .quiz-time-track {
    height: 5px;
    margin-bottom: clamp(4px, 1.4vw, 6px);
  }

  body.quiz-input-active .quiz-rail {
    gap: clamp(4px, 1.5vw, 6px);
    padding-bottom: clamp(4px, 1.4vw, 6px);
  }

  body.quiz-input-active .quiz-chip {
    width: clamp(26px, 8vw, 32px);
    height: clamp(26px, 8vw, 32px);
    border-radius: clamp(9px, 3vw, 12px);
    font-size: clamp(10px, 3vw, 12px);
  }

  body.quiz-input-active .quiz-question-card {
    padding: clamp(7px, 2vw, 10px);
    border-radius: clamp(16px, 4.4vw, 19px);
  }

  body.quiz-input-active .quiz-question-head {
    grid-template-columns: clamp(36px, 10.5vw, 44px) minmax(0, 1fr);
    gap: clamp(6px, 1.9vw, 8px);
    margin-bottom: clamp(6px, 1.9vw, 8px);
  }

  body.quiz-input-active .quiz-letter {
    width: clamp(36px, 10.5vw, 44px);
    height: clamp(36px, 10.5vw, 44px);
    border-radius: clamp(12px, 3.5vw, 15px);
    font-size: clamp(20px, 5.8vw, 24px);
  }

  body.quiz-input-active .quiz-question-head p {
    font-size: clamp(0.78rem, 3.7vw, 0.96rem);
    line-height: 1.13;
    -webkit-line-clamp: 3;
  }

  body.quiz-input-active .quiz-form input {
    min-height: clamp(39px, 11.5vw, 46px);
    font-size: 16px;
  }

  body.quiz-input-active .quiz-submit {
    min-width: clamp(82px, 24vw, 106px);
    min-height: clamp(39px, 11.5vw, 46px);
    font-size: clamp(10px, 3vw, 12px);
  }

  body.quiz-input-active .quiz-actions {
    display: none;
  }
}

@media (max-width: 374px) {
  .quiz-page {
    --quiz-page-x: 7px;
    --quiz-arena-pad: 7px;
    --quiz-gap: 5px;
    --quiz-stat-h: 38px;
    --quiz-chip: 26px;
    --quiz-letter: 36px;
    --quiz-question: 0.78rem;
    --quiz-input-h: 39px;
    --quiz-button-w: 80px;
    --quiz-button-text: 10px;
  }

  .quiz-top h3 {
    font-size: 1.12rem;
  }

  .quiz-actions {
    display: none;
  }
}

@media (max-width: 720px) and (max-height: 720px) {
  .quiz-page .section-copy,
  .quiz-top {
    display: none;
  }

  .quiz-page {
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .quiz-arena {
    max-height: calc(var(--visual-viewport-height, 100svh) - max(18px, env(safe-area-inset-top)));
    overflow-y: auto;
  }

  .quiz-actions {
    display: none;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .quiz-page .section-copy {
    display: block;
    max-width: 720px;
  }

  .quiz-page .section-copy h1 {
    max-width: 11ch;
    font-size: clamp(3.2rem, 8vw, 4.75rem);
  }

  .quiz-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quiz-arena {
    max-width: 760px;
    margin-inline: auto;
  }
}

/* Final mobile fixes: keep the home phone preview contained and keep quiz controls visible. */
@media (max-width: 720px) {
  .hero .phone-stage {
    height: auto;
    max-height: none;
    overflow: visible;
    align-items: center;
    padding-top: 0;
  }

  .hero .phone-stage .phone {
    width: min(72vw, 292px);
    min-width: 0;
    padding: 8px 8px 18px;
  }

  .hero .phone-stage .app-screen {
    height: calc(100% - 18px);
    gap: 5px;
    padding: 36px 12px 13px;
    overflow: hidden;
  }

  [data-theme="light"] .hero .phone-stage .app-screen.home-screen {
    background:
      radial-gradient(circle at 24% 2%, rgba(139, 92, 246, 0.28), transparent 15rem),
      radial-gradient(circle at 78% 92%, rgba(79, 142, 247, 0.2), transparent 12rem),
      linear-gradient(180deg, #efe9ff 0%, #f4f7ff 54%, #e4edff 100%);
  }

  .hero .phone-stage .app-header h2 {
    font-size: clamp(18px, 5.2vw, 22px);
  }

  .hero .phone-stage .app-tag {
    gap: 5px;
    margin-bottom: 0;
    font-size: clamp(7px, 2vw, 8px);
    letter-spacing: 1.1px;
  }

  .hero .phone-stage .coin-badge {
    width: clamp(34px, 9.8vw, 40px);
    height: clamp(34px, 9.8vw, 40px);
    border-radius: 13px;
  }

  .hero .phone-stage .app-hero-card {
    padding: clamp(9px, 2.6vw, 11px);
    border-radius: 20px;
  }

  .hero .phone-stage .record-pill {
    padding: 4px 8px;
    font-size: clamp(6.8px, 1.95vw, 8px);
    letter-spacing: 0.5px;
  }

  .hero .phone-stage .grade-badge {
    width: clamp(38px, 10.8vw, 46px);
    height: clamp(38px, 10.8vw, 46px);
    border-radius: 14px;
    font-size: clamp(20px, 5.8vw, 24px);
  }

  .hero .phone-stage .app-hero-stats {
    gap: 5px;
    margin: 8px 0;
  }

  .hero .phone-stage .app-hero-stats strong {
    font-size: clamp(18px, 5.2vw, 22px);
  }

  .hero .phone-stage .app-hero-stats span {
    font-size: clamp(6px, 1.75vw, 7.5px);
  }

  .hero .phone-stage .race-pulse-row {
    grid-template-columns: repeat(3, clamp(21px, 6vw, 24px)) minmax(0, 1fr);
    gap: 4px;
    margin-bottom: 5px;
  }

  .hero .phone-stage .race-pulse-row span {
    width: clamp(21px, 6vw, 24px);
    height: clamp(19px, 5.4vw, 22px);
    border-radius: 8px;
    font-size: clamp(7px, 2.1vw, 9px);
  }

  .hero .phone-stage .race-pulse-row strong {
    padding: 5px 6px;
    font-size: clamp(6px, 1.75vw, 7px);
  }

  .hero .phone-stage .typing-flow-bar {
    height: 5px;
    margin-bottom: 6px;
  }

  .hero .phone-stage .white-cta {
    min-height: clamp(32px, 9.2vw, 37px);
    border-radius: 14px;
    font-size: clamp(8.5px, 2.55vw, 10px);
  }

  .hero .phone-stage .seri-toast {
    min-height: 18px;
    margin-top: 3px;
    font-size: clamp(7px, 2vw, 8px);
  }

  .hero .phone-stage .daily-card {
    gap: 7px;
    padding: 8px;
    border-radius: 16px;
  }

  .hero .phone-stage .daily-icon {
    width: clamp(30px, 8.8vw, 36px);
    height: clamp(30px, 8.8vw, 36px);
    border-radius: 11px;
  }

  .hero .phone-stage .daily-card span {
    font-size: clamp(6px, 1.75vw, 7px);
    letter-spacing: 1px;
  }

  .hero .phone-stage .daily-card strong {
    font-size: clamp(8.5px, 2.55vw, 10px);
  }

  .hero .phone-stage .daily-card p {
    font-size: clamp(7px, 2.05vw, 8px);
  }

  .hero .phone-stage .app-stat-row {
    gap: 5px;
    margin-bottom: 2px;
  }

  .hero .phone-stage .app-stat-row div {
    padding: 6px 5px;
    border-radius: 12px;
  }

  .hero .phone-stage .app-stat-row strong {
    font-size: clamp(12px, 3.6vw, 15px);
  }

  .hero .phone-stage .app-stat-row span {
    font-size: clamp(5.8px, 1.7vw, 7px);
  }

  .hero .phone-stage .section-label {
    display: block;
    margin: 1px 0 4px;
    font-size: clamp(7px, 2vw, 8px);
    letter-spacing: 1.1px;
  }

  .hero .phone-stage .mode-list-preview {
    display: grid;
    gap: 5px;
    overflow: hidden;
  }

  .hero .phone-stage .mode-list-preview article {
    grid-template-columns: clamp(28px, 8vw, 34px) minmax(0, 1fr) auto;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
  }

  .hero .phone-stage .mode-list-preview article:nth-child(n + 3) {
    display: none;
  }

  .hero .phone-stage .capsule {
    width: clamp(28px, 8vw, 34px);
    height: clamp(28px, 8vw, 34px);
    border-radius: 11px;
  }

  .hero .phone-stage .capsule ion-icon {
    font-size: clamp(15px, 4.4vw, 18px);
  }

  .hero .phone-stage .mode-list-preview strong {
    font-size: clamp(8.5px, 2.55vw, 10px);
  }

  .hero .phone-stage .mode-list-preview small {
    font-size: clamp(6.5px, 1.9vw, 7.5px);
  }

  .hero .phone-stage .mode-list-preview em {
    padding: 3px 5px;
    font-size: clamp(5.5px, 1.65vw, 6.5px);
  }

  body.quiz-input-active .quiz-actions,
  .quiz-arena.is-input-active .quiz-actions,
  .quiz-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.quiz-input-active .quiz-actions,
  .quiz-arena.is-input-active .quiz-actions {
    gap: clamp(5px, 1.7vw, 8px);
    margin-top: clamp(5px, 1.6vw, 7px);
  }

  body.quiz-input-active .quiz-actions .game-button,
  .quiz-arena.is-input-active .quiz-actions .game-button {
    min-height: clamp(34px, 9.8vw, 40px);
    padding-inline: 8px;
    border-radius: clamp(14px, 4vw, 18px);
    font-size: clamp(10px, 3vw, 12px);
  }

  body.quiz-input-active .quiz-feedback,
  .quiz-arena.is-input-active .quiz-feedback {
    min-height: clamp(14px, 4vw, 18px);
    margin-top: clamp(4px, 1.4vw, 6px);
    font-size: clamp(10px, 3vw, 12px);
  }
}

@media (max-width: 390px) {
  .hero .phone-stage {
    height: auto;
    max-height: none;
  }

  .hero .phone-stage .phone {
    width: min(70vw, 272px);
  }
}

@media (max-width: 374px), (max-width: 720px) and (max-height: 720px) {
  body.quiz-input-active .quiz-actions,
  .quiz-arena.is-input-active .quiz-actions,
  .quiz-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Stable quiz play surface: question length must not resize the game card. */
.quiz-question-card {
  display: flex;
  flex-direction: column;
  min-height: clamp(286px, 28vw, 332px);
}

.quiz-question-head {
  flex: 0 0 auto;
  min-height: clamp(96px, 10vw, 124px);
}

.quiz-question-head p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.quiz-form,
.quiz-actions,
.quiz-feedback {
  flex: 0 0 auto;
}

.quiz-form {
  margin-top: auto;
}

@media (max-width: 720px) {
  .quiz-question-card {
    min-height: clamp(228px, 56vw, 260px);
  }

  .quiz-question-head {
    min-height: clamp(82px, 22vw, 104px);
  }

  .quiz-question-head p {
    -webkit-line-clamp: 3;
  }

  body.quiz-input-active .quiz-question-card,
  .quiz-arena.is-input-active .quiz-question-card {
    min-height: clamp(196px, 49vw, 226px);
  }

  body.quiz-input-active .quiz-question-head,
  .quiz-arena.is-input-active .quiz-question-head {
    min-height: clamp(66px, 17vw, 82px);
  }
}

@media (max-width: 390px) {
  .quiz-question-card {
    min-height: clamp(218px, 58vw, 246px);
  }

  body.quiz-input-active .quiz-question-card,
  .quiz-arena.is-input-active .quiz-question-card {
    min-height: clamp(188px, 50vw, 212px);
  }
}
