:root {
  --bg: #07111f;
  --bg-soft: #0d1c31;
  --panel: rgba(12, 25, 45, 0.92);
  --panel-strong: rgba(8, 18, 34, 0.96);
  --border: rgba(129, 181, 255, 0.18);
  --text: #e8f2ff;
  --muted: #9bb2cf;
  --accent: #71c4ff;
  --accent-strong: #66ffd7;
  --danger: #ff748b;
  --warning: #ffd36e;
  --success: #8ff5b2;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(71, 137, 255, 0.28), transparent 28%),
    linear-gradient(180deg, #081320 0%, #050b16 100%);
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }

main { display: block; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 32px)); }
.section { padding: 48px 0; }
.hero { padding: 72px 0 40px; }
.hero-mini { padding-top: 56px; }
.hero-grid, .play-layout { display: grid; gap: 24px; }
.hero-grid { grid-template-columns: 1.3fr 0.9fr; align-items: start; }
.play-layout { grid-template-columns: 0.9fr 1.5fr 0.9fr; align-items: start; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: blur(12px);
}
.inner-card { padding: 20px; }
.hero-card { background: linear-gradient(180deg, rgba(14, 31, 58, 0.95), rgba(8, 20, 38, 0.95)); }
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
}
.eyebrow.small { font-size: 0.68rem; margin-bottom: 6px; }
.mini-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}
.lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
}
.small-note {
  color: var(--muted);
  line-height: 1.65;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.02; margin-bottom: 18px; }
h2 { font-size: 1.55rem; margin-bottom: 12px; }
h3 { font-size: 1.1rem; margin-bottom: 10px; }
.cta-row, .inline-actions, .action-bar { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row { margin: 24px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, #7dc9ff, #61f1d0);
  color: #04101c;
  font-weight: 800;
}
.btn-secondary {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
  color: var(--text);
}
.bullet-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.bullet-list.compact li + li { margin-top: 6px; }
.section-heading.tight h2,
.section-heading.tight h3 { margin-bottom: 6px; }
.transmission-deck, .tuner-grid, .feedback-grid { display: grid; gap: 14px; }
.transmission-card {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.transmission-card.is-active {
  border-color: rgba(102, 255, 215, 0.55);
  background: rgba(102, 255, 215, 0.08);
}
.transmission-head,
.route-meta,
.summary-top,
.tuner-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.route-meta {
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
}
.tiny-badge, .medal-badge, .hint-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.tiny-badge {
  padding: 5px 10px;
  font-size: 0.72rem;
  background: rgba(102, 255, 215, 0.12);
  color: var(--accent-strong);
  border: 1px solid rgba(102, 255, 215, 0.25);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.stat-card strong { font-size: 1.35rem; }
.tuner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.tuner-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}
.tuner-value { font-size: 2rem; }
.kbd-note {
  color: var(--muted);
  font-size: 0.8rem;
  border: 1px solid var(--border);
  padding: 5px 8px;
  border-radius: 999px;
}
.tuner-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 12px; }
.move-btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}
.move-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.hint-chip {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  background: rgba(113, 196, 255, 0.08);
  border: 1px solid rgba(113, 196, 255, 0.2);
  color: var(--accent);
  text-align: center;
}
.hint-chip.locked {
  background: rgba(143, 245, 178, 0.12);
  border-color: rgba(143, 245, 178, 0.24);
  color: var(--success);
}
.feedback-grid { grid-template-columns: 1.2fr 0.8fr; margin-bottom: 18px; }
.hint-list { display: grid; gap: 10px; }
.hint-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.hint-item span { color: var(--muted); }
.hint-item.is-good {
  border-color: rgba(143, 245, 178, 0.24);
  background: rgba(143, 245, 178, 0.08);
}
.summary-card {
  border: 1px solid rgba(113, 196, 255, 0.28);
  background: linear-gradient(180deg, rgba(18, 34, 57, 0.95), rgba(8, 20, 38, 0.95));
}
.medal-badge {
  min-width: 92px;
  padding: 9px 14px;
  font-weight: 800;
  border: 1px solid transparent;
}
.medal-gold { color: #241700; background: linear-gradient(135deg, #ffe58f, #ffbf47); }
.medal-silver { color: #152235; background: linear-gradient(135deg, #e8f0ff, #b7d2ff); }
.medal-bronze { color: #2a1405; background: linear-gradient(135deg, #ffc694, #f28a4b); }
.medal-fail { color: #fff0f3; background: rgba(255, 116, 139, 0.16); border-color: rgba(255, 116, 139, 0.25); }
.log-list { display: grid; gap: 10px; }
.summary-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
}
.summary-item strong { display: block; }
.summary-item span { display: block; margin-top: 6px; color: var(--muted); }
.prose { line-height: 1.75; }
.prose h2 { margin-top: 20px; }
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 22px 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  color: var(--muted);
}
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.company-line { text-align: right; }

@media (max-width: 980px) {
  .hero-grid,
  .play-layout,
  .feedback-grid,
  .tuner-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { padding-top: 56px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 2.35rem; }
  .card { padding: 20px; border-radius: 20px; }
  .site-footer,
  .company-line { text-align: left; }
}
