:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-2: #0f1b33;
  --panel: rgba(10, 18, 34, 0.72);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #eef4ff;
  --muted: #a8b3cc;
  --accent: #7ce3c3;
  --accent-2: #8cc8ff;
  --danger: #ff7b7b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 227, 195, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(140, 200, 255, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

body {
  min-height: 100vh;
}

.app-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 32px;
}

.hero {
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: var(--accent);
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1;
}

.lede {
  margin: 10px 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.game-card {
  padding: 20px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.stat strong {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.game-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: min(48svh, 460px);
  border: 0;
  border-radius: 28px;
  color: #08111f;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.2s ease,
    color 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

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

.game-button:active {
  transform: scale(0.995);
}

.game-button span {
  position: relative;
  z-index: 1;
  text-align: center;
}

#buttonTitle {
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

#buttonHint {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.86;
}

.waiting {
  background: linear-gradient(145deg, #f7d46f, #f29c5b);
}

.ready {
  background: linear-gradient(145deg, #86efac, #22c55e);
}

.too-soon {
  background: linear-gradient(145deg, #ff8b8b, #ffb06f);
}

.status-text {
  margin: 14px 4px 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100%, calc(100% - 20px));
    padding: 14px 0 20px;
  }

  .hero {
    margin-bottom: 12px;
  }

  .lede {
    margin-top: 8px;
  }

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

  .game-card {
    padding: 14px;
    border-radius: 22px;
  }

  .game-button {
    min-height: 42svh;
    border-radius: 22px;
  }
}
