:root {
  --bg: #111318;
  --panel: #181c24;
  --ink: #f4f0e8;
  --muted: #aeb7c4;
  --line: #2d3440;
  --accent: #43b894;
  --warn: #eeb45a;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgb(67 184 148 / 18%), transparent 32rem), var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.panel {
  display: grid;
  width: min(720px, 100%);
  gap: 18px;
}

.topbar,
.stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.target {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 32px;
  text-align: center;
}

.target span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.target strong {
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  line-height: 1;
}

.target.waiting {
  background: color-mix(in srgb, var(--warn) 26%, var(--panel));
}

.target.ready {
  background: color-mix(in srgb, var(--accent) 44%, var(--panel));
}

.stats {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.stats div {
  display: grid;
  gap: 2px;
}

.stats span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.stats strong {
  font-size: 1.3rem;
}

.stats button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  padding: 10px 12px;
}
