:root {
  --bg: #050816;
  --bg-alt: #0c1330;
  --panel: rgba(12, 18, 40, 0.82);
  --line: rgba(126, 161, 255, 0.2);
  --text: #f2f6ff;
  --muted: #9caed9;
  --cyan: #57f0ff;
  --blue: #7090ff;
  --pink: #ff5da8;
  --gold: #ffd36b;
  --danger: #ff6b6b;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(87, 240, 255, 0.15), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(255, 93, 168, 0.18), transparent 35%),
    linear-gradient(160deg, var(--bg), var(--bg-alt));
}
button { font: inherit; }
.app-shell {
  width: min(480px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px 18px 36px;
  display: grid;
}
.screen { display: none; align-items: center; }
.screen.active { display: grid; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.hero-card, .result-card { gap: 18px; display: grid; }
.eyebrow {
  margin: 0;
  font-size: 0.82rem;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.05; }
.lead { color: var(--text); font-size: 1.03rem; line-height: 1.7; }
.lead.small { color: var(--muted); }
.subnote, .muted { color: var(--muted); line-height: 1.6; font-size: 0.92rem; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #dfe8ff;
  font-size: 0.86rem;
}
.tip-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.tip-box h2 { font-size: 1rem; margin-bottom: 10px; }
.tip-box ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }
.primary-btn, .ghost-btn {
  border: none;
  border-radius: 18px;
  min-height: 56px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.primary-btn { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #07131d; box-shadow: 0 16px 30px rgba(87,240,255,.22); }
.primary-btn.danger { background: linear-gradient(135deg, var(--gold), var(--pink)); color: #2a1020; }
.ghost-btn { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,.12); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:not(:disabled):active { transform: scale(.98); }
.hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.hud-chip, .stat-box {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 4px;
}
.hud-chip span, .stat-box span { color: var(--muted); font-size: .78rem; }
.hud-chip strong, .stat-box strong { font-size: 1rem; }
.arena-card { display: grid; gap: 18px; }
.target-wrap { text-align: center; display: grid; gap: 8px; }
.target-caption { color: var(--muted); font-size: 0.9rem; }
.target-time {
  font-size: clamp(2.4rem, 12vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(255, 211, 107, 0.3);
}
.timer-panel {
  padding: 20px 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 16px;
}
.timer-panel.glitch {
  animation: shake .22s linear 1;
}
.timer-readout {
  text-align: center;
  font-size: clamp(3rem, 18vw, 5.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}
.accuracy-bar { position: relative; height: 22px; }
.accuracy-track {
  position: absolute; inset: 8px 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.accuracy-zone {
  position: absolute;
  top: 2px; bottom: 2px;
  width: 18%;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,211,107,0.72), rgba(255,93,168,0.78));
  left: 41%;
  box-shadow: 0 0 22px rgba(255, 93, 168, 0.22);
}
.accuracy-marker {
  position: absolute;
  top: 0;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(87,240,255,.55);
  left: 0;
}
.feedback-line {
  min-height: 42px;
  color: #d7e4ff;
  text-align: center;
  line-height: 1.6;
}
.action-row, .action-stack {
  display: grid;
  gap: 12px;
}
.score-main {
  text-align: center;
  font-size: clamp(3rem, 14vw, 4.5rem);
  font-weight: 900;
  color: var(--gold);
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.share-card {
  white-space: pre-wrap;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.16);
  color: #ebf1ff;
  line-height: 1.7;
}
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}
@media (max-width: 420px) {
  .app-shell { padding-inline: 14px; }
  .card { padding: 20px 16px; border-radius: 22px; }
  .hud { grid-template-columns: 1fr; }
}
