:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-2: #0e1830;
  --panel: rgba(11, 20, 38, 0.8);
  --panel-strong: rgba(16, 27, 50, 0.92);
  --border: rgba(160, 188, 255, 0.16);
  --text: #f3f7ff;
  --muted: #9ab0d5;
  --accent: #53d6c7;
  --accent-2: #7aa2ff;
  --danger: #ff7a90;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(83, 214, 199, 0.18), transparent 34%),
    radial-gradient(circle at 80% 18%, rgba(122, 162, 255, 0.16), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  font-family: Inter, "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

button {
  font: inherit;
}

.app-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 18px 16px 28px;
  display: grid;
  gap: 14px;
}

.hero,
.arena,
.controls {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), rgba(11, 20, 38, 0.65));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero {
  border-radius: 24px;
  padding: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  width: fit-content;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(83, 214, 199, 0.55);
}

h1 {
  margin: 14px 0 8px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.meta-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.meta-card,
.hud-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.meta-card {
  padding: 14px 15px;
  display: grid;
  gap: 6px;
}

.meta-label,
.hud-item span {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-card strong,
.hud-item strong {
  font-size: 1.05rem;
}

.arena {
  border-radius: 24px;
  padding: 14px;
}

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

.hud-item {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.playfield {
  position: relative;
  min-height: min(74vh, 640px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 17, 32, 0.58), rgba(10, 17, 32, 0.9)),
    radial-gradient(circle at top, rgba(122, 162, 255, 0.16), transparent 36%);
}

.playfield::before,
.playfield::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.playfield::before {
  left: -10%;
  top: -12%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 214, 199, 0.18), transparent 70%);
  filter: blur(22px);
}

.playfield::after {
  right: -8%;
  bottom: -14%;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 162, 255, 0.2), transparent 72%);
  filter: blur(18px);
}

.target {
  position: absolute;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate3d(0, 0, 0) scale(var(--scale, 1));
  transform-origin: center;
  transition: transform 120ms ease-out, filter 120ms ease-out;
  touch-action: manipulation;
  cursor: pointer;
}

.target.hidden,
.start-card.hidden,
.result-card.hidden {
  display: none;
}

.target-ring,
.target-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.target-ring {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.12) 32%, transparent 33%),
    radial-gradient(circle, rgba(83, 214, 199, 0.94), rgba(83, 214, 199, 0.2) 62%, transparent 67%);
  box-shadow:
    0 0 18px rgba(83, 214, 199, 0.34),
    0 0 44px rgba(122, 162, 255, 0.2);
}

.target-core {
  inset: 26%;
  background: linear-gradient(180deg, #fff, #b6fffb 72%, #73f3e3 100%);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.5);
}

.start-card,
.result-card {
  position: absolute;
  inset: auto 16px 16px 16px;
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(12, 20, 38, 0.94), rgba(16, 27, 50, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  max-width: 420px;
}

.start-card h2,
.result-card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.start-card p,
.result-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.controls {
  border-radius: 22px;
  padding: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary,
.secondary {
  border: 0;
  border-radius: 14px;
  min-height: 48px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  background: linear-gradient(180deg, var(--accent), #3fbea9);
  color: #041118;
  box-shadow: 0 12px 26px rgba(63, 190, 169, 0.25);
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.primary:active,
.secondary:active,
.target:active {
  transform: translateY(1px) scale(0.98);
}

@media (max-width: 720px) {
  .app-shell {
    padding-inline: 12px;
  }

  .meta-row,
  .hud {
    grid-template-columns: 1fr;
  }

  .playfield {
    min-height: min(68vh, 560px);
  }

  .target {
    width: 84px;
    height: 84px;
  }
}
