/* LiveTTok marketing site — hand-written, no build step. */

:root {
  --bg: #000;
  --bg-1: #0a0a0a;
  --bg-2: #111;
  --bg-3: #181818;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --text-2: rgba(255, 255, 255, 0.64);
  --text-3: rgba(255, 255, 255, 0.4);
  --blue: #0099ff;
  --violet: #8b5cf6;
  --pink: #ff3cac;
  --green: #34d399;
  --red: #ff4d57;
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1200px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01", "ss03";
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

::selection {
  background: rgba(0, 153, 255, 0.5);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ───────────── Type ───────────── */

.display {
  margin: 0;
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.h2 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  color: var(--text-2);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.017em;
  text-wrap: pretty;
}

.muted {
  color: var(--text-2);
}

.dim {
  color: var(--text-3);
}

.label {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 500;
}

.tag b {
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.dot-live {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.dot-live::after {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--red);
  animation: ping 1.8s var(--ease) infinite;
  content: "";
}

@keyframes ping {
  from {
    opacity: 0.9;
    transform: scale(0.5);
  }
  to {
    opacity: 0;
    transform: scale(1.8);
  }
}

/* ───────────── Buttons ───────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background 0.25s, color 0.25s, box-shadow 0.4s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  color: #000;
  background: #fff;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-blue {
  color: #fff;
  background: var(--blue);
}

.btn-blue:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 40px rgba(0, 153, 255, 0.35);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: gap 0.35s var(--ease), color 0.2s;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

.link-arrow:hover {
  gap: 10px;
}

/* ───────────── Nav ───────────── */

.nav {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand img {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-actions .lang,
.nav-actions .login {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-actions .lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-actions .lang svg {
  width: 15px;
  height: 15px;
}

.nav-actions .login {
  display: inline-flex;
  align-items: center;
}

.nav-actions .lang:hover,
.nav-actions .login:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  place-items: center;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: #fff;
  transition: transform 0.4s var(--ease);
}

.nav.is-open .menu-btn span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav.is-open .menu-btn span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* ───────────── Hero ───────────── */

.hero {
  position: relative;
  overflow-x: clip;
  padding: 168px 0 0;
  text-align: center;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: -120px;
  left: 50%;
  width: min(1400px, 160vw);
  height: 1100px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 50% 20%, rgba(0, 153, 255, 0.32), transparent 70%),
    radial-gradient(25% 25% at 32% 30%, rgba(139, 92, 246, 0.25), transparent 70%),
    radial-gradient(25% 25% at 70% 32%, rgba(255, 60, 172, 0.16), transparent 70%);
  filter: blur(30px);
  opacity: 0.9;
}

.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 900px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent);
  pointer-events: none;
}

.hero .tag {
  margin: 0 auto 28px;
}

.hero .display {
  max-width: 1000px;
  margin-inline: auto;
}

.hero .display .soft {
  color: var(--text-3);
}

.hero .lead {
  max-width: 620px;
  margin: 28px auto 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.hero-note {
  display: flex;
  text-wrap: balance;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--text-3);
  font-size: 13px;
}

.hero-note i {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* Word-by-word blur reveal */
.split .w {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(0.35em);
  animation: word-in 1.1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.06s + 0.1s);
}

@keyframes word-in {
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

.intro {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px);
  animation: word-in 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0.4s);
}

/* Studio mockup */
.studio-stage {
  position: relative;
  margin-top: 80px;
  perspective: 1600px;
}

.studio {
  --p: 1;
  position: relative;
  width: min(1120px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: #0b0b0d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 50px 160px rgba(0, 0, 0, 0.9), 0 0 120px rgba(0, 153, 255, 0.12);
  text-align: left;
  transform: rotateX(calc(var(--p) * 22deg)) scale(calc(1 - var(--p) * 0.1)) translateY(calc(var(--p) * -20px));
  transform-origin: 50% 0;
  will-change: transform;
}

.studio-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #0e0e10;
}

.studio-dots {
  display: flex;
  gap: 7px;
}

.studio-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a2a2e;
}

.studio-url {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 460px;
  height: 28px;
  margin-inline: auto;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.05);
  font: 12px var(--mono);
  white-space: nowrap;
  overflow: hidden;
}

.studio-url svg {
  flex: none;
  width: 12px;
  height: 12px;
}

.studio-url b {
  color: var(--text-2);
  font-weight: 400;
}

.studio-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

.studio-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  min-height: 560px;
}

.studio-side {
  padding: 16px 12px;
  border-right: 1px solid var(--line);
}

.studio-side h4,
.studio-feed h4 {
  margin: 0 0 12px;
  padding: 0 6px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.studio-games {
  display: grid;
  gap: 4px;
}

.studio-games button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background 0.3s, color 0.3s;
}

.studio-games button img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.studio-games button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-games button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.studio-main {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--accent, #0099ff) 22%, transparent), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 24px);
  transition: background 0.8s;
}

.screen {
  position: relative;
  width: min(290px, 100%);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #050505;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.9s var(--ease), transform 4s linear;
}

.screen img.is-on {
  opacity: 1;
  transform: scale(1);
}

.screen::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 25%, transparent 55%, rgba(0, 0, 0, 0.75));
  content: "";
}

.screen-top {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
}

.pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pill-red {
  background: var(--red);
}

.screen-toasts {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 12px;
  left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  height: 46%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 30%);
  mask-image: linear-gradient(transparent, #000 30%);
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11px;
  animation: toast-in 0.6s var(--ease) both;
}

.toast .av {
  display: grid;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}

.toast b {
  font-weight: 600;
}

.toast span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast.gift {
  background: linear-gradient(90deg, rgba(255, 60, 172, 0.8), rgba(139, 92, 246, 0.8));
}

@keyframes toast-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(14px) scale(0.96);
  }
}

.studio-float {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(20, 20, 22, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-size: 12px;
  animation: float 6s var(--ease-in-out) infinite;
}

.studio-float strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.studio-float.f1 {
  top: 40px;
  left: 28px;
}

.studio-float.f2 {
  right: 28px;
  bottom: 48px;
  animation-delay: -3s;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

.studio-feed {
  display: flex;
  flex-direction: column;
  padding: 16px 12px 0;
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.feed {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 25%);
  mask-image: linear-gradient(transparent, #000 25%);
}

.feed-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 12.5px;
  animation: toast-in 0.6s var(--ease) both;
}

.feed-item .av {
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.feed-item p {
  margin: 0;
  overflow: hidden;
  color: var(--text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-item p b {
  color: #fff;
  font-weight: 600;
}

.feed-item em {
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.06);
  font: 10px var(--mono);
  font-style: normal;
}

.feed-item.is-gift em {
  color: #fff;
  background: rgba(255, 60, 172, 0.35);
}

.feed-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px -12px 0;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.feed-stats div {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.feed-stats small {
  display: block;
  color: var(--text-3);
  font-size: 11px;
}

.feed-stats b {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* ───────────── Marquee ───────────── */

.marquee-sec {
  padding: 100px 0 40px;
  text-align: center;
}

.marquee {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 34px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition: color 0.3s;
}

.marquee-item:hover {
  color: #fff;
}

.marquee-item svg {
  width: 22px;
  height: 22px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ───────────── Sections ───────────── */

.section {
  padding: clamp(100px, 13vw, 180px) 0 0;
}

.sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}

.sec-head .lead {
  max-width: 620px;
}

.sec-head.left {
  align-items: flex-start;
  margin-inline: 0;
  text-align: left;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
}

/* Cursor spotlight on cards */
.card.spot::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  content: "";
}

.card.spot:hover::before {
  opacity: 1;
}

/* ───────────── Image wheel ───────────── */

.wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
}

.wheel-card {
  padding: 28px;
}

.wheel-label {
  color: #a78bfa;
  font-size: 13px;
  font-weight: 600;
}

.wheel-frame {
  position: relative;
  height: 460px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.6);
  border-radius: 4px;
  background: #000;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.wheel-frame.is-dragging {
  cursor: grabbing;
}

.wheel-frame::before,
.wheel-frame::after {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(139, 92, 246, 0.8);
  background: #000;
  content: "";
}

.wheel-frame::before {
  top: -4px;
  left: -4px;
}

.wheel-frame::after {
  right: -4px;
  bottom: -4px;
}

.wheel-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1100px;
}

.wheel-tilt {
  transform: rotateZ(-8deg);
  transform-style: preserve-3d;
}

.wheel-ring {
  position: relative;
  width: 140px;
  height: 168px;
  transform-style: preserve-3d;
  will-change: transform, filter;
}

.wheel-item {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #111;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backface-visibility: visible;
}

.wheel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.wheel-item span {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.wheel-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.7));
  content: "";
}

.wheel-hint {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 12px;
  color: var(--text-3);
  font-size: 12px;
}

.wheel-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

.wheel-foot h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.wheel-foot p {
  max-width: 420px;
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* Console panel next to the wheel */
.console {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.bubble {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-3);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.thinking {
  padding: 0 4px;
  color: var(--text-3);
  font-size: 13px;
}

.thinking + p {
  margin: 6px 4px 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.45;
}

.code {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d0d0d;
  font: 12.5px/1.75 var(--mono);
}

.code-head {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-3);
  font-family: var(--sans);
  font-size: 13px;
}

.code pre {
  min-height: 150px;
  margin: 0;
  overflow: hidden;
  white-space: pre;
}

.code .k {
  color: #5eb4ff;
}

.code .s {
  color: #7ee0b5;
}

.code .n {
  color: #ffb36b;
}

.code .c {
  color: var(--text-3);
}

.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--blue);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.console-input {
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text-3);
  background: var(--bg-3);
  font-size: 13px;
}

.console-input div {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-size: 12px;
}

/* ───────────── Steps ───────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.step-visual {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-2);
}

.step-text {
  padding: 22px 14px 14px;
}

.step-text .num {
  color: var(--text-3);
  font: 12px var(--mono);
}

.step-text h3 {
  margin: 10px 0 6px;
}

.step-text p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

/* Step 1: game picker grid */
.pick-grid {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pick-grid div {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #1a1a1a;
  transition: border-color 0.4s, transform 0.4s var(--ease), opacity 0.4s;
}

.pick-grid div.is-picked {
  border-color: var(--blue);
  transform: scale(1.04);
}

.pick-grid div.is-dim {
  opacity: 0.35;
}

.pick-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cursor {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.9s var(--ease);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

/* Step 2: connect */
.connect {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px;
}

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0b0b0b;
  font: 14px var(--mono);
}

.field .at {
  color: var(--text-3);
}

.connect-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 13px;
  transition: background 0.5s, color 0.5s;
}

.connect-status.is-ok {
  color: #fff;
  background: rgba(52, 211, 153, 0.14);
}

.connect-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  transition: background 0.5s, box-shadow 0.5s;
}

.connect-status.is-ok i {
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.mini-events {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-events span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.mini-events span.is-on {
  opacity: 1;
  transform: none;
}

/* Step 3: OBS */
.obs {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0c0c0e;
}

.obs-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11px;
}

.obs-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a2a2e;
}

.obs-preview {
  position: relative;
  overflow: hidden;
  background: #050505;
}

.obs-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease);
}

.obs-preview.is-on img {
  clip-path: inset(0 0 0 0);
}

.obs-src {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font: 11px var(--mono);
  white-space: nowrap;
  overflow: hidden;
}

.obs-src b {
  flex: none;
  padding: 2px 6px;
  border-radius: 4px;
  color: #000;
  background: #fff;
  font-family: var(--sans);
  font-size: 10px;
}

/* ───────────── Bento ───────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.bento .card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 28px;
}

.bento .span-2 {
  grid-column: span 2;
}

.bento .span-3 {
  grid-column: span 3;
}

.bento .span-4 {
  grid-column: span 4;
}

.bento-viz {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 160px;
  margin-bottom: 24px;
}

.bento h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.bento p {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

/* metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  height: 100%;
}

.metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.metric small {
  color: var(--text-3);
  font-size: 12px;
}

.metric b {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.metric i {
  display: block;
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.metric i::after {
  display: block;
  width: var(--v, 80%);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease) 0.3s;
  content: "";
}

.in .metric i::after {
  transform: scaleX(1);
}

/* leaderboard */
.board {
  display: grid;
  gap: 8px;
}

.board-row {
  display: grid;
  grid-template-columns: 22px 28px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.board-row .rk {
  color: var(--text-3);
  font: 12px var(--mono);
}

.board-row .av {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.board-row .bar {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.board-row .bar i {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease);
  transition-delay: var(--d, 0s);
}

.in .board-row .bar i {
  transform: scaleX(1);
}

.board-row b {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* url copy */
.url-box {
  display: grid;
  gap: 10px;
  align-content: center;
  height: 100%;
}

.url-line {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0b0b0b;
  font: 13px var(--mono);
}

.url-line span {
  flex: 1;
  overflow: hidden;
  color: var(--text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url-line button {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: #000;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.3s;
}

.url-line button.is-done {
  color: #fff;
  background: var(--green);
}

.game-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.game-chips span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-3);
  font-size: 12px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.game-chips span.is-on {
  border-color: transparent;
  color: #000;
  background: #fff;
}

/* voice */
.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
}

.wave i {
  width: 4px;
  height: 20%;
  border-radius: 4px;
  background: linear-gradient(var(--blue), var(--violet));
  animation: wave 1.2s var(--ease-in-out) infinite;
  animation-delay: calc(var(--i) * -0.09s);
}

@keyframes wave {
  50% {
    height: var(--h, 70%);
  }
}

.voice-quote {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: max-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.6);
  font-size: 12.5px;
  transform: translateX(-50%);
}

/* moderation */
.mod-list {
  display: grid;
  gap: 8px;
}

.mod-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.mod-row em {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.mod-row .ok {
  color: var(--green);
  background: rgba(52, 211, 153, 0.12);
}

.mod-row .ban {
  color: var(--red);
  background: rgba(255, 77, 87, 0.12);
}

.mod-row .mute {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

/* qr */
.qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 100%;
}

.qr {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 2px;
  width: 132px;
  height: 132px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}

.qr i {
  border-radius: 1.5px;
  background: #000;
  opacity: 0;
  transition: opacity 0.3s;
  transition-delay: var(--d);
}

.in .qr i.on {
  opacity: 1;
}

.qr-meta small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
}

.qr-meta b {
  display: block;
  margin: 2px 0 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

/* isolation */
.rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  height: 100%;
}

.room {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  font-size: 12px;
}

.room code {
  color: var(--text-3);
  font: 11px var(--mono);
}

.room .dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.room .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0.85;
}

/* ───────────── Live now ───────────── */

.live-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.live-count {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 14px;
  white-space: nowrap;
}

.live-count b {
  color: #fff;
  font-size: 15px;
}

.live-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.live-card {
  flex: 0 0 min(340px, 82%);
  padding: 10px;
  scroll-snap-align: start;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}

.live-card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}

.live-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
}

.live-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.live-card:hover .live-thumb img {
  transform: scale(1.06);
}

.live-thumb .pill-dark,
.live-thumb .pill-red {
  position: absolute;
  top: 12px;
  font-size: 12px;
  font-weight: 600;
}

.live-thumb .pill-red {
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
}

.live-thumb .pill-red i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.live-thumb .pill-dark {
  right: 12px;
}

.live-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 8px 8px;
}

.live-meta .av {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 700;
}

.live-meta .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-meta div {
  min-width: 0;
  flex: 1;
}

.live-meta b {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-meta small {
  color: var(--text-3);
  font-size: 13px;
}

.live-foot {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px 6px;
  color: var(--text-3);
  font-size: 12px;
}

.live-empty {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 64px 24px;
  text-align: center;
}

.live-empty p {
  max-width: 460px;
  margin: 0;
  color: var(--text-2);
}

/* ───────────── Games ───────────── */

.games-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: -32px auto 40px;
}

.games-tabs button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.games-tabs button:hover {
  color: #fff;
}

.games-tabs button.is-active {
  border-color: transparent;
  color: #000;
  background: #fff;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.game {
  display: flex;
  flex-direction: column;
  padding: 10px;
  text-align: left;
  transition: border-color 0.3s, transform 0.5s var(--ease), opacity 0.4s;
}

.game:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}

.game.is-hidden {
  display: none;
}

.game-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s;
}

.game:hover .game-thumb img {
  transform: scale(1.06);
}

.game-thumb::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 120%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s;
  content: "";
}

.game:hover .game-thumb::after {
  opacity: 1;
}

.game-genre {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
}

.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 10px 10px;
}

.game-body small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.game-body h3 {
  margin: 6px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.game-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.game-body .link-arrow {
  margin-top: 16px;
  font-size: 14px;
}

/* Game modal */
.modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}

.modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background: #0b0b0c;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  filter: blur(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease);
}

.modal.is-open .modal-panel {
  opacity: 1;
  transform: none;
  filter: none;
}

.modal-media {
  position: relative;
  min-height: 420px;
  background: #111;
}

.modal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
}

.modal-body small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.modal-body h3 {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.modal-body p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.6;
}

.modal-rules {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-rules li {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font: 12.5px/1.5 var(--mono);
}

.modal-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-facts span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12px;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

/* ───────────── Demo (tug of war) ───────────── */

.demo {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12px;
}

.demo-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
}

.demo-copy .lead {
  margin-top: 18px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.demo-actions button {
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.3s var(--ease);
}

.demo-actions button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.demo-actions button:active {
  transform: scale(0.96);
}

.demo-actions .rose {
  border-color: transparent;
  background: linear-gradient(90deg, rgba(255, 60, 172, 0.35), rgba(139, 92, 246, 0.35));
}

.arena {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: radial-gradient(70% 60% at 50% 100%, rgba(0, 153, 255, 0.14), transparent 70%), var(--bg-1);
}

.arena-head {
  display: flex;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 13px;
}

.arena-head b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.power {
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: 14px;
  background: #ff5a6a;
}

.power i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 50%);
  border-radius: 14px 0 0 14px;
  background: linear-gradient(90deg, #5eb4ff, #8be9ff);
  transition: width 0.8s var(--ease);
}

.power::after {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: var(--p, 50%);
  width: 3px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 12px #fff;
  transform: translateX(-50%);
  transition: left 0.8s var(--ease);
  content: "";
}

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.team {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.team .face {
  font-size: 72px;
  line-height: 1;
  transition: transform 0.5s var(--ease);
}

.team.bump .face {
  animation: bump 0.5s var(--ease);
}

@keyframes bump {
  40% {
    transform: scale(1.18) rotate(-6deg);
  }
}

.team b {
  font-size: 15px;
}

.team small {
  color: var(--text-3);
  font-size: 13px;
}

.vs {
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
}

.arena-log {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.arena-log.flash {
  animation: toast-in 0.5s var(--ease);
}

/* ───────────── Statement (scroll highlight) ───────────── */

.statement {
  max-width: 1040px;
  margin-inline: auto;
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.statement .w {
  color: rgba(255, 255, 255, 0.16);
  transition: color 0.3s;
}

.statement .w.on {
  color: #fff;
}

.statement-foot {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ───────────── Pricing ───────────── */

.trial {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  margin-bottom: 12px;
  padding: 36px 40px;
  border-color: rgba(0, 153, 255, 0.35);
  background: radial-gradient(60% 140% at 0% 50%, rgba(0, 153, 255, 0.18), transparent 60%), var(--bg-1);
}

.trial-num {
  font-size: 120px;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.08em;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.35));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trial h3 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.trial p {
  margin: 0;
  color: var(--text-2);
}

.trial-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.trial-facts > span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
}

.trial-facts b {
  color: #fff;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}

.plan:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}

.plan.featured {
  border-color: rgba(0, 153, 255, 0.5);
  background: radial-gradient(100% 50% at 50% 0%, rgba(0, 153, 255, 0.18), transparent 70%), var(--bg-1);
  box-shadow: 0 30px 90px rgba(0, 153, 255, 0.12);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-top span {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}

.plan-top em {
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.plan-price {
  margin: 24px 0 2px;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.plan-price small {
  margin-left: 2px;
  color: var(--text-3);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.plan-dur {
  color: var(--text-3);
  font-size: 14px;
}

.plan ul {
  display: grid;
  gap: 12px;
  flex: 1;
  margin: 28px 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan li {
  display: flex;
  gap: 10px;
  color: var(--text-2);
  font-size: 14.5px;
}

.plan li svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.plan .btn {
  width: 100%;
}

.price-note {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

/* ───────────── FAQ ───────────── */

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.faq-title {
  position: sticky;
  top: 120px;
  align-self: start;
}

.faq-title .lead {
  margin-top: 20px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: left;
}

.faq-item button i {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq-item button i::before,
.faq-item button i::after {
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
  content: "";
}

.faq-item button i::after {
  transform: rotate(90deg);
}

.faq-item.is-open button i::after {
  transform: rotate(0deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer > div {
  overflow: hidden;
}

.faq-answer p {
  max-width: 620px;
  margin: 0;
  padding-bottom: 26px;
  color: var(--text-2);
  line-height: 1.65;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}

.faq-item.is-open .faq-answer p {
  opacity: 1;
  transform: none;
}

/* ───────────── Final CTA ───────────── */

.final {
  position: relative;
  margin-top: clamp(100px, 13vw, 180px);
  padding: clamp(90px, 12vw, 160px) 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--bg-1);
  text-align: center;
}

.final::before {
  position: absolute;
  inset: auto -20% -25% -20%;
  height: 85%;
  background:
    radial-gradient(45% 55% at 50% 75%, rgba(0, 153, 255, 0.5), transparent 70%),
    radial-gradient(30% 45% at 25% 80%, rgba(139, 92, 246, 0.42), transparent 70%),
    radial-gradient(30% 45% at 78% 80%, rgba(255, 60, 172, 0.32), transparent 70%);
  filter: blur(40px);
  animation: aurora 12s var(--ease-in-out) infinite alternate;
  content: "";
}

@keyframes aurora {
  to {
    transform: translateX(6%) scale(1.1);
  }
}

.final > * {
  position: relative;
}

.final img {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
}

.final .lead {
  max-width: 560px;
  margin: 22px auto 36px;
}

.final .chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.final .chips span {
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.3);
  font-size: 13px;
}

/* ───────────── Footer ───────────── */

.footer {
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.footer-grid p {
  max-width: 300px;
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 14px;
}

.footer-grid h4 {
  margin: 0 0 14px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
}

.footer-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}

.footer-word {
  margin-top: 40px;
  overflow: hidden;
  font-size: clamp(80px, 18vw, 260px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.07em;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

/* ───────────── Scroll reveal ───────────── */

.js [data-reveal] {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(36px);
  transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--rd, 0s);
}

.js [data-reveal].in {
  opacity: 1;
  filter: none;
  transform: none;
}

/* Hover transforms win once revealed */
.js [data-reveal].in.game,
.js [data-reveal].in.plan,
.js [data-reveal].in.live-card {
  transition: opacity 1s var(--ease), filter 1s var(--ease), transform 0.5s var(--ease), border-color 0.3s;
  transition-delay: var(--rd, 0s), var(--rd, 0s), 0s, 0s;
}

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

  .split .w,
  .intro,
  .js [data-reveal] {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .studio {
    transform: none;
  }
}

/* ───────────── Responsive ───────────── */

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .studio-body {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .studio-side {
    display: none;
  }

  .wheel-layout {
    grid-template-columns: 1fr;
  }

  .console {
    display: none;
  }

  .bento .span-2,
  .bento .span-3,
  .bento .span-4 {
    grid-column: span 3;
  }

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

@media (max-width: 860px) {
  .menu-btn {
    display: grid;
  }

  .nav-actions .login,
  .nav-actions .btn {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    z-index: 99;
    inset: 64px 0 auto;
    display: grid;
    gap: 4px;
    padding: 16px 16px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }

  .nav.is-open + .mobile-menu {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .mobile-menu a {
    padding: 12px 8px;
    font-size: 18px;
    font-weight: 500;
  }

  .mobile-menu .btn {
    margin-top: 12px;
  }

  .studio-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .studio-feed {
    display: none;
  }

  .studio-float.f1 {
    left: 12px;
  }

  .studio-float.f2 {
    right: 12px;
  }

  .steps,
  .plans,
  .demo,
  .faq {
    grid-template-columns: 1fr;
  }

  .faq-title {
    position: static;
  }

  .trial {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
  }

  .trial-num {
    font-size: 90px;
  }

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

  .modal-panel {
    grid-template-columns: 1fr;
  }

  .modal-media {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 120px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .studio-stage {
    margin-top: 56px;
  }

  .studio-url {
    display: none;
  }

  .studio-main {
    padding: 20px;
  }

  .studio-float {
    display: none;
  }

  .wheel-card {
    padding: 16px;
  }

  .wheel-frame {
    height: 360px;
  }

  .wheel-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .bento .span-2,
  .bento .span-3,
  .bento .span-4 {
    grid-column: 1 / -1;
  }

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

  .metrics,
  .rooms {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .metric {
    padding: 10px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .live-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo-copy,
  .arena {
    padding: 24px;
  }

  .team .face {
    font-size: 52px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .modal {
    padding: 12px;
  }

  .modal-body {
    padding: 24px;
  }
}
