:root {
  --ink: #f4f7ff;
  --muted: #939db8;
  --navy: #060815;
  --panel: #0d1021;
  --cyan: #21d4fd;
  --coral: #ff4d6d;
  --yellow: #ffd84d;
  --violet: #8b5cf6;
  --line: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 6%, rgba(124, 58, 237, 0.2), transparent 30rem),
    radial-gradient(circle at 5% 30%, rgba(33, 212, 253, 0.08), transparent 28rem),
    var(--navy);
  font-family: Inter, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 12px 18px; color: #061019; background: var(--cyan); font-weight: 900; }
.skip-link:focus { top: 12px; }

.site-header {
  width: min(1440px, calc(100% - 80px));
  height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #06111a;
  background: linear-gradient(135deg, var(--cyan), #b9fff8);
  clip-path: polygon(12% 0, 100% 0, 86% 100%, 0 100%);
  box-shadow: 0 0 28px rgba(33, 212, 253, 0.25);
  font-size: 23px;
  font-style: italic;
  font-weight: 950;
}
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-size: 14px; letter-spacing: 0.12em; }
.brand-copy small { color: var(--muted); font: 700 8px/1 monospace; letter-spacing: 0.3em; }

nav { display: flex; gap: 42px; }
nav a { position: relative; color: #aeb8d0; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px; background: var(--cyan); transition: right 0.2s ease; }
nav a:hover, nav a:focus-visible { color: white; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }

.header-play {
  justify-self: end;
  min-width: 142px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #071019;
  border-radius: 5px;
  background: linear-gradient(100deg, var(--cyan), #78fff2);
  box-shadow: 0 10px 28px rgba(33, 212, 253, 0.2);
  font-size: 12px;
  font-weight: 950;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.header-play:hover, .header-play:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(33, 212, 253, 0.34); }

.hero {
  position: relative;
  width: min(1440px, calc(100% - 80px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 70px 0 78px;
  display: grid;
  grid-template-columns: minmax(400px, 0.78fr) minmax(580px, 1.25fr);
  align-items: center;
  gap: 70px;
}
.hero::before { content: ""; position: absolute; left: -100vw; right: -100vw; bottom: 0; height: 1px; background: var(--line); }
.hero-glow { position: absolute; width: 440px; height: 440px; left: -250px; top: 15%; border-radius: 50%; background: rgba(33, 212, 253, 0.08); filter: blur(90px); pointer-events: none; }
.hero-content { position: relative; z-index: 2; }

.eyebrow { margin: 0 0 22px; color: var(--cyan); font: 800 10px/1 monospace; letter-spacing: 0.24em; }
.eyebrow span { display: inline-block; width: 34px; height: 2px; margin: 0 11px 3px 0; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 25px; font-size: clamp(54px, 5.7vw, 88px); line-height: 1.02; letter-spacing: -0.075em; font-weight: 950; }
h1 em, .final-cta h2 em { color: transparent; background: linear-gradient(96deg, var(--coral), #ff9a69 75%); background-clip: text; -webkit-background-clip: text; font-style: normal; }
.hero-lede { max-width: 620px; margin-bottom: 31px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.play-button {
  width: min(100%, 356px);
  min-height: 78px;
  padding: 13px 18px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  color: #061019;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 7px;
  background: linear-gradient(105deg, var(--cyan), #7affed 58%, #a9fff6);
  box-shadow: 0 18px 45px rgba(33, 212, 253, 0.25), inset 0 1px rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.play-button:hover, .play-button:focus-visible { transform: translateY(-3px) scale(1.01); box-shadow: 0 23px 52px rgba(33, 212, 253, 0.4), inset 0 1px rgba(255, 255, 255, 0.5); }
.play-icon { width: 42px; height: 42px; display: grid; place-items: center; padding-left: 3px; border-radius: 50%; color: white; background: #071019; box-shadow: 0 0 0 5px rgba(7, 16, 25, 0.1); }
.play-button > span:nth-child(2) { display: flex; flex-direction: column; gap: 5px; }
.play-button strong { font-size: 17px; font-weight: 950; }
.play-button small { font: 700 9px/1 monospace; letter-spacing: 0.07em; opacity: 0.68; }
.button-arrow { font-size: 22px; font-weight: 900; }
.learn-link { padding: 12px 0; color: #aeb8d0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); font-size: 11px; font-weight: 800; }
.learn-link span { margin-left: 8px; color: var(--coral); }
.hero-stats { margin: 42px 0 0; display: flex; gap: 40px; }
.hero-stats div { min-width: 80px; padding-left: 13px; border-left: 2px solid rgba(255, 255, 255, 0.12); }
.hero-stats dt { color: white; font: 900 25px/1 monospace; }
.hero-stats dd { margin: 7px 0 0; color: #6f7b99; font-size: 9px; font-weight: 800; letter-spacing: 0.1em; }

.hero-art { position: relative; z-index: 1; }
.art-window { position: relative; overflow: hidden; border: 1px solid rgba(124, 153, 220, 0.34); border-radius: 14px; box-shadow: 0 40px 95px rgba(0, 0, 0, 0.5), 0 0 55px rgba(78, 48, 210, 0.12); transform: perspective(1200px) rotateY(-2deg); }
.art-window::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); }
.art-window img { width: 100%; height: auto; display: block; }
.scanline { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.13; background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(255,255,255,.1) 4px); }
.art-status, .art-score { position: absolute; z-index: 3; top: 17px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 5px; background: rgba(4, 7, 18, 0.72); backdrop-filter: blur(8px); }
.art-status { left: 17px; color: #aab5ce; font: 700 8px/1 monospace; letter-spacing: .12em; }
.art-status i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #45ef9a; box-shadow: 0 0 9px #45ef9a; }
.art-score { right: 17px; display: flex; flex-direction: column; gap: 4px; text-align: right; }
.art-score span { color: #77829e; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.art-score strong { color: var(--yellow); font: 800 14px/1 monospace; }
.floating-chip { position: absolute; z-index: 4; padding: 10px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; background: rgba(7, 10, 25, 0.88); box-shadow: 0 16px 40px rgba(0,0,0,.4); color: #c6cee0; font: 800 9px/1 monospace; letter-spacing: .08em; backdrop-filter: blur(9px); }
.floating-chip span { margin-right: 8px; color: var(--cyan); }
.chip-one { left: -24px; bottom: 18%; }
.chip-two { right: -18px; bottom: 9%; }
.chip-two span { color: var(--yellow); }
.scroll-note { position: absolute; left: 0; bottom: 24px; color: #4d5872; font: 700 8px/1 monospace; letter-spacing: .2em; }
.scroll-note span { display: inline-block; width: 28px; height: 1px; margin: 0 10px 3px 0; background: #4d5872; }

.section-shell { width: min(1240px, calc(100% - 80px)); margin: 0 auto; padding: 130px 0; }
.section-heading h2, .final-cta h2 { margin-bottom: 0; font-size: clamp(41px, 5vw, 67px); line-height: 1.08; letter-spacing: -0.06em; }
.story { display: grid; grid-template-columns: .85fr 1fr; gap: 120px; align-items: center; }
.story-copy { padding: 0 0 0 40px; border-left: 1px solid var(--line); }
.story-copy p { color: var(--muted); font-size: 14px; line-height: 1.95; }
.story-copy .lead-quote { position: relative; margin-bottom: 28px; color: #e9efff; font-size: 21px; font-weight: 800; line-height: 1.65; }
.story-copy .lead-quote::before { content: "“"; position: absolute; left: -33px; top: -16px; color: var(--coral); font-size: 50px; }
.section-heading.compact { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 54px; }
.section-heading.compact .eyebrow { align-self: flex-start; margin-top: 10px; }

.modes { border-top: 1px solid var(--line); }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mode-card { position: relative; min-height: 420px; padding: 44px; overflow: hidden; border: 1px solid rgba(33, 212, 253, 0.3); border-radius: 12px; background: linear-gradient(145deg, rgba(33,212,253,.11), rgba(12,15,31,.94) 60%); }
.mode-card::after { content: ""; position: absolute; width: 280px; height: 280px; right: -140px; bottom: -160px; border: 1px solid rgba(33,212,253,.2); border-radius: 50%; box-shadow: 0 0 0 34px rgba(33,212,253,.025), 0 0 0 68px rgba(33,212,253,.02); }
.mode-card.endless { border-color: rgba(139,92,246,.45); background: linear-gradient(145deg, rgba(139,92,246,.15), rgba(255,77,109,.055), rgba(12,15,31,.94) 65%); }
.mode-card.endless::after { border-color: rgba(255,77,109,.23); box-shadow: 0 0 0 34px rgba(255,77,109,.03), 0 0 0 68px rgba(139,92,246,.025); }
.card-index { position: absolute; right: 25px; top: 20px; color: rgba(255,255,255,.055); font: 950 84px/1 monospace; }
.mode-symbol { width: 54px; height: 54px; margin-bottom: 38px; display: grid; place-items: center; color: #061019; border-radius: 10px; background: var(--cyan); box-shadow: 0 0 24px rgba(33,212,253,.25); font-size: 20px; font-weight: 950; }
.endless .mode-symbol { color: white; background: var(--violet); box-shadow: 0 0 24px rgba(139,92,246,.3); font-size: 28px; }
.card-kicker { margin-bottom: 8px; color: var(--cyan); font: 800 9px/1 monospace; letter-spacing: .18em; }
.endless .card-kicker { color: #bca6ff; }
.mode-card h3 { margin-bottom: 17px; font-size: 30px; letter-spacing: -.04em; }
.mode-card > p:not(.card-kicker) { max-width: 470px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.mode-card ul { position: relative; z-index: 2; margin: 28px 0 0; padding: 0; list-style: none; }
.mode-card li { margin-top: 12px; color: #c2cadc; font-size: 11px; font-weight: 700; }
.mode-card li::before { content: "+"; margin-right: 10px; color: var(--cyan); font: 900 13px/1 monospace; }
.endless li::before { color: var(--coral); }

.levels { border-top: 1px solid var(--line); }
.level-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; }
.level { min-height: 152px; padding: 26px 27px; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 20px; border: 1px solid rgba(255,255,255,.11); border-left: 3px solid var(--accent); border-radius: 8px; background: linear-gradient(110deg, color-mix(in srgb, var(--accent), transparent 91%), rgba(12,15,31,.78)); transition: transform .2s ease, border-color .2s ease; }
.level:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent), transparent 45%); }
.level.cyan { --accent: #21d4fd; }
.level.orange { --accent: #ff8a3d; }
.level.mint { --accent: #7df9ff; }
.level.violet { --accent: #a78bfa; }
.level-number { color: var(--accent); font: 900 21px/1 monospace; }
.level p { margin-bottom: 6px; color: #6f7996; font: 800 8px/1 monospace; letter-spacing: .13em; text-transform: uppercase; }
.level h3 { margin-bottom: 8px; font-size: 20px; }
.level div > span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.level b { color: var(--accent); font-size: 20px; }

.controls { display: grid; grid-template-columns: .72fr 1.2fr; gap: 100px; align-items: center; border-top: 1px solid var(--line); }
.key-guide { display: grid; gap: 12px; }
.key-guide > div { min-height: 86px; padding: 15px 20px; display: grid; grid-template-columns: 145px 1fr; grid-template-rows: 1fr 1fr; align-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.022); }
.keys { grid-row: 1 / 3; display: flex; gap: 7px; }
kbd { min-width: 44px; height: 40px; padding: 0 11px; display: grid; place-items: center; color: #e8efff; border: 1px solid #39425c; border-bottom-width: 4px; border-radius: 6px; background: #14192c; box-shadow: 0 8px 15px rgba(0,0,0,.2); font: 800 11px/1 monospace; }
.key-guide strong { align-self: end; font-size: 13px; }
.key-guide small { align-self: start; margin-top: 6px; color: #6e7894; font-size: 9px; }

.final-cta { position: relative; min-height: 570px; padding: 115px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.final-cta::before, .final-cta::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.final-cta::before { width: 440px; height: 440px; background: rgba(33,212,253,.1); filter: blur(100px); }
.final-cta::after { width: 780px; height: 380px; border: 1px solid rgba(255,77,109,.13); box-shadow: 0 0 0 45px rgba(139,92,246,.025), 0 0 0 90px rgba(33,212,253,.018); transform: rotate(-8deg); }
.final-cta > * { position: relative; z-index: 2; }
.final-cta > p:not(.eyebrow) { margin: 25px 0 32px; color: var(--muted); font-size: 13px; }
.final-button { text-align: left; }

.site-footer { width: min(1440px, calc(100% - 80px)); min-height: 110px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #5e6882; font: 700 9px/1 monospace; letter-spacing: .13em; }
.footer-brand { transform: scale(.85); transform-origin: left center; }
.cloudflare-note { justify-self: end; }
.cloudflare-note i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #f48120; box-shadow: 0 0 10px #f48120; }

@media (max-width: 1080px) {
  .site-header, .hero, .section-shell, .site-footer { width: min(100% - 48px, 1000px); }
  .site-header nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 50px; padding-top: 75px; }
  .hero-content { max-width: 690px; }
  .hero-art { width: min(820px, 100%); justify-self: center; }
  .scroll-note { display: none; }
  .story { gap: 60px; }
  .section-heading.compact { display: block; }
  .section-heading.compact .eyebrow { margin-top: 0; }
}

@media (max-width: 720px) {
  .site-header, .hero, .section-shell, .site-footer { width: calc(100% - 28px); }
  .site-header { height: 74px; }
  .brand-mark { width: 35px; height: 35px; font-size: 18px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { font-size: 7px; }
  .header-play { min-width: 110px; min-height: 38px; font-size: 10px; }
  .hero { min-height: calc(100svh - 74px); padding: 48px 0 62px; gap: 40px; }
  h1 { font-size: clamp(47px, 15vw, 68px); }
  .hero-lede { font-size: 13px; line-height: 1.75; }
  .hero-actions { display: block; }
  .play-button { width: 100%; }
  .learn-link { display: inline-block; margin-top: 19px; }
  .hero-stats { gap: 10px; justify-content: space-between; }
  .hero-stats div { min-width: 0; }
  .art-window { transform: none; }
  .art-score { display: none; }
  .floating-chip { display: none; }
  .section-shell { padding: 88px 0; }
  .story, .controls { grid-template-columns: 1fr; gap: 45px; }
  .story-copy { padding-left: 25px; }
  .mode-grid, .level-list { grid-template-columns: 1fr; }
  .mode-card { min-height: 390px; padding: 34px 27px; }
  .level { grid-template-columns: 44px 1fr auto; padding: 22px 17px; gap: 12px; }
  .key-guide > div { grid-template-columns: 112px 1fr; }
  .final-cta { min-height: 530px; padding-left: 16px; padding-right: 16px; }
  .site-footer { min-height: 145px; padding: 25px 0; grid-template-columns: 1fr auto; }
  .site-footer > p:not(.cloudflare-note) { display: none; }
  .cloudflare-note { font-size: 7px; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
