:root {
  --bg: #080b18;
  --panel: rgba(14, 19, 40, 0.78);
  --panel-strong: rgba(20, 27, 58, 0.94);
  --text: #f7f8ff;
  --muted: #aab3d6;
  --line: rgba(255,255,255,0.13);
  --accent: #7c5cff;
  --accent-2: #00e5ff;
  --accent-3: #ffcc66;
  --danger: #ff5c93;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(124, 92, 255, 0.36), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(0, 229, 255, 0.22), transparent 30%),
    radial-gradient(circle at 70% 90%, rgba(255, 204, 102, 0.14), transparent 32%),
    var(--bg);
  overflow-x: hidden;
}

button, kbd { font: inherit; }

.shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100%;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.hero-card {
  width: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  padding: 26px;
}

.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-a { right: -90px; top: -90px; background: var(--accent-2); }
.orb-b { left: -110px; bottom: -120px; background: var(--accent); }

.topline, .footer-note {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 34px rgba(0, 229, 255, 0.18);
}

.badge {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.content-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
  margin: 42px 0 24px;
}

.copy {
  min-width: 0;
  padding: 16px 4px 16px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

h1 span {
  background: linear-gradient(90deg, #fff, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 570px;
  margin: 24px 0 24px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

kbd {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.18);
  border-bottom-width: 3px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  padding: 1px 7px 2px;
  font-weight: 800;
}

.contact-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 204, 102, 0.32);
  border-radius: 999px;
  background: rgba(255, 204, 102, 0.10);
  color: #ffe3a3;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(255, 204, 102, 0.08);
}

.loading-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 10, 24, 0.56);
  padding: 18px;
}

.loading-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.loading-row strong { color: #fff; }

.progress {
  height: 13px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 24px rgba(0,229,255,0.5);
  transition: width 180ms ease;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

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

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px rgba(124, 92, 255, 0.28);
}

.ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
}

.game-wrap {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(9, 13, 30, 0.78), rgba(6, 9, 21, 0.94));
}

.game-head {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.game-head > div {
  min-width: 92px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(0,0,0,0.22);
  padding: 10px 12px;
}

.tiny-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.game-head strong { font-size: 24px; letter-spacing: -0.06em; }

canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
}

.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(124,92,255,0.18), rgba(3,5,14,0.65));
  transition: opacity 180ms ease, visibility 180ms ease;
}

.game-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.game-overlay h2 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.game-overlay p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-note {
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .copy { padding: 0; }
  .game-wrap, canvas { min-height: 430px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 18px, 1180px); padding: 9px 0; }
  .hero-card { border-radius: 24px; padding: 18px; }
  .topline, .footer-note { align-items: flex-start; flex-direction: column; }
  .badge { font-size: 12px; }
  .content-grid { margin-top: 30px; gap: 18px; }
  .lead { font-size: 15px; }
  .game-wrap, canvas { min-height: 390px; }
}

@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;
  }
}
