:root {
  color: #f9fafb;
  background: #07111f;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 52% 10%, rgba(20, 184, 166, 0.13), transparent 34rem),
    linear-gradient(145deg, #07111f 0%, #101c2a 58%, #07111f 100%);
}

.check-field {
  position: fixed;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(120deg, black, transparent 75%);
}

.check-field::after {
  content: "✓   ✓       ✓     ✓      ✓    ✓       ✓      ✓    ✓      ✓";
  position: absolute;
  inset: 0;
  width: 160%;
  color: rgba(94, 234, 212, 0.18);
  font: 700 17px/84px "DM Sans", sans-serif;
  word-spacing: 48px;
  transform: rotate(-8deg) translate(-4%, -8%);
  animation: drift 20s linear infinite alternate;
}

.glow { position: fixed; border-radius: 50%; filter: blur(95px); pointer-events: none; }
.glow-teal { width: 30rem; height: 30rem; top: -16rem; right: -8rem; background: rgba(20,184,166,.2); }
.glow-gold { width: 22rem; height: 22rem; bottom: -13rem; left: 18%; background: rgba(245,158,11,.13); }

.launch-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
}

.topbar, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar { padding: 28px 0; }

.wordmark {
  color: #f9fafb;
  font: 800 23px/1 "Manrope", sans-serif;
  text-decoration: none;
}
.wordmark span { color: #f59e0b; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(249,250,251,.66);
  font-size: 13px;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: #14b8a6; box-shadow: 0 0 0 6px rgba(20,184,166,.1); animation: pulse 2s ease-in-out infinite; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(285px, .58fr);
  align-items: center;
  gap: 22px;
  padding: 40px 0 64px;
}

.glass-panel, .progress-card {
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035));
  box-shadow: 0 30px 90px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(24px);
}

.glass-panel { min-height: 590px; padding: clamp(32px, 6vw, 72px); border-radius: 8px; }
.eyebrow { margin: 0 0 28px; color: #5eead4; font-size: 12px; font-weight: 700; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font: 800 clamp(50px, 7vw, 96px)/.98 "Manrope", sans-serif; letter-spacing: 0; }
.headline-word {
  display: inline-block;
  min-width: 8.1ch;
  color: #f59e0b;
  transition: color .45s ease, opacity .25s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.headline-word.is-kounting {
  color: #5eead4;
  text-shadow: 0 0 32px rgba(20,184,166,.18);
}
.headline-word.word-swap { opacity: 0; transform: translateY(-10px); }
.intro { max-width: 650px; margin: 30px 0 0; color: rgba(249,250,251,.68); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }

.countdown { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 42px; color: rgba(249,250,251,.5); }
.count-label, .count-copy { font-size: 13px; text-transform: uppercase; }
.count-copy { color: #f59e0b; }

.actions { display: flex; align-items: center; gap: 22px; margin-top: 24px; }
.primary-action { display: inline-flex; align-items: center; gap: 18px; padding: 15px 20px; border: 1px solid rgba(94,234,212,.35); border-radius: 6px; color: #07111f; background: #5eead4; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.primary-action:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(20,184,166,.2); }
.actions p { margin: 0; color: rgba(249,250,251,.55); font-size: 13px; }

.progress-card { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 32px; border-radius: 8px; }
.progress-head { display: flex; justify-content: space-between; color: rgba(249,250,251,.58); font-size: 12px; text-transform: uppercase; }
.progress-head strong { color: #f9fafb; }
.progress-track { height: 3px; margin: 15px 0 31px; overflow: hidden; background: rgba(255,255,255,.1); }
.progress-track span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #14b8a6, #f59e0b); }
ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
li {
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: rgba(249,250,251,.42);
  transition: color .5s ease;
}
li p {
  margin: 0;
  font-size: 14px;
  transform: translateX(0);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
li i {
  position: relative;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 3px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  transition: border-color .5s ease, background .5s ease, box-shadow .5s ease;
}
li i::after {
  content: "✓";
  position: absolute;
  inset: -3px 0 0 2px;
  color: #07111f;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
li.is-lit { color: #5eead4; }
li.is-lit p { transform: translateX(4px); }
li.is-lit i { border-color: #14b8a6; background: #14b8a6; box-shadow: 0 0 20px rgba(20,184,166,.3); }
li.is-lit i::after { opacity: 1; transform: scale(1); }
li:last-child.is-lit { color: #facc15; }
li:last-child.is-lit i { border-color: #f59e0b; background: #f59e0b; box-shadow: 0 0 20px rgba(245,158,11,.28); }

footer { padding: 24px 0 30px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(249,250,251,.4); font-size: 12px; }

.game-zone {
  display: grid; grid-template-columns: minmax(0,.82fr) minmax(330px,.68fr); gap: 22px; align-items: stretch;
  margin-bottom: 64px; padding-top: 2px;
}
.game-copy, .game-board-wrap {
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.095), rgba(255,255,255,.025));
  box-shadow: 0 24px 70px rgba(0,0,0,.24); backdrop-filter: blur(20px);
}
.game-copy { padding: clamp(30px,5vw,58px); }
.game-copy h2 { margin: 12px 0 16px; font: 800 clamp(38px,5vw,66px)/1 "Manrope",sans-serif; }
.game-copy > p:not(.eyebrow) { max-width: 32rem; margin: 0; color: rgba(249,250,251,.62); font-size: 16px; line-height: 1.65; }
.game-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 32px; }
.game-stats div { padding: 12px; border-left: 1px solid rgba(255,255,255,.12); }
.game-stats span { display: block; color: rgba(249,250,251,.38); font-size: 10px; text-transform: uppercase; }
.game-stats strong { display: block; margin-top: 5px; font: 700 23px/1 "Manrope",sans-serif; font-variant-numeric: tabular-nums; }
.game-start, .game-result button { margin-top: 24px; border: 0; border-radius: 6px; padding: 14px 18px; color: #07111f; background: #5eead4; font: 700 14px "DM Sans",sans-serif; cursor: pointer; }
.game-start { display: inline-flex; align-items: center; gap: 25px; }
.game-start:disabled { opacity: .45; cursor: default; }
.game-board-wrap { position: relative; display: grid; place-items: center; min-height: 460px; padding: clamp(20px,4vw,42px); overflow: hidden; }
.flow-canvas { width: min(100%,460px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: rgba(3,10,18,.4); touch-action: none; cursor: pointer; }
.game-hint { position: absolute; bottom: 24px; left: 50%; width: calc(100% - 40px); margin: 0; color: rgba(249,250,251,.42); font-size: 11px; text-align: center; transform: translateX(-50%); pointer-events: none; }
.game-result { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; padding: 28px; text-align: center; background: rgba(7,17,31,.94); backdrop-filter: blur(18px); }
.game-result[hidden] { display: none; }
.game-result > span { color: #5eead4; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.game-result > strong { margin-top: 8px; color: #f59e0b; font: 800 72px/1 "Manrope",sans-serif; }
.game-result > p { margin: 2px 0 18px; color: rgba(249,250,251,.56); }
.game-result form { display: grid; gap: 10px; width: min(100%,320px); text-align: left; }
.game-result label { color: rgba(249,250,251,.7); font-size: 12px; }
.game-result input[type="text"], .game-result input:not([type]) { width: 100%; padding: 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; outline: none; color: #f9fafb; background: rgba(255,255,255,.07); }
.consent-row { display: grid; grid-template-columns: 17px 1fr; align-items: start; gap: 8px; line-height: 1.4; }
.consent-row input { margin: 2px 0 0; accent-color: #14b8a6; }
.game-result button { width: 100%; margin-top: 2px; }
.game-result small { color: rgba(249,250,251,.38); text-align: center; }
.game-result small.is-success { color: #5eead4; }
.game-result small.is-error { color: #fca5a5; }

@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(20,184,166,0); } }
@keyframes drift { to { transform: rotate(-8deg) translate(-1%, 2%); } }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; align-items: stretch; padding-top: 24px; }
  .glass-panel { min-height: auto; }
  .progress-card { min-height: 370px; }
  .game-zone { grid-template-columns: 1fr; }
  .game-board-wrap { min-height: min(92vw,460px); }
}

@media (max-width: 560px) {
  .launch-shell { width: min(100% - 24px, 1180px); }
  .topbar { padding: 20px 0; }
  .status { font-size: 11px; }
  .hero { padding: 12px 0 32px; }
  .glass-panel { padding: 29px 24px 34px; }
  h1 { font-size: clamp(44px, 14vw, 61px); }
  .intro { margin-top: 23px; font-size: 16px; }
  .countdown { margin-top: 32px; }
  .actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .progress-card { padding: 26px 24px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
