:root {
  color-scheme: dark;
  --bg: #000;
  --panel: rgba(11, 17, 18, 0.9);
  --panel-soft: rgba(18, 28, 27, 0.82);
  --text: #f8fbff;
  --muted: #9cb4b5;
  --cyan: #00d4ff;
  --green: #6cff8f;
  --yellow: #ffe86b;
  --white: #ffffff;
  --red: #ff6b7a;
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
  color: inherit;
}

.app-shell {
  position: relative;
  width: 600px;
  height: 600px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 36%, rgba(108, 255, 143, 0.08), transparent 39%),
    #000;
}

body.play-active .app-shell {
  visibility: hidden;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 62px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
}

.status-pill {
  min-width: 98px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--yellow);
  font-size: 16px;
  font-weight: 950;
  text-align: center;
  background: rgba(255, 232, 107, 0.08);
}

.tempo-stage {
  height: 242px;
  display: grid;
  grid-template-rows: 92px 54px 76px;
  align-items: center;
  text-align: center;
}

.stage-dot {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.38);
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.stage-dot.takeaway {
  background: var(--yellow);
  box-shadow: 0 0 30px rgba(255, 232, 107, 0.42);
  transform: scale(1.12);
}

.stage-dot.top {
  background: var(--green);
  box-shadow: 0 0 34px rgba(108, 255, 143, 0.45);
  transform: scale(1.28);
}

.stage-dot.impact {
  background: var(--white);
  box-shadow: 0 0 44px rgba(255, 255, 255, 0.76);
  transform: scale(1.5);
}

.phase-copy {
  color: var(--text);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.2;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-row div {
  min-height: 60px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.metric-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-row strong {
  display: block;
  margin-top: 3px;
  font-size: 23px;
  line-height: 1;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.command {
  min-height: 56px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  font-size: 19px;
  font-weight: 950;
}

.command.primary {
  border-color: rgba(0, 212, 255, 0.48);
  color: var(--cyan);
}

.command.danger {
  color: var(--red);
}

.focusable {
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.focusable:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.52);
  transform: translateY(-1px);
}

.play-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 600px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  user-select: none;
}

.play-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.55);
  transition: background 90ms ease, transform 90ms ease, box-shadow 90ms ease;
}

.play-dot.takeaway {
  background: var(--yellow);
  box-shadow: 0 0 26px rgba(255, 232, 107, 0.5);
  transform: scale(1.15);
}

.play-dot.top {
  background: var(--green);
  box-shadow: 0 0 30px rgba(108, 255, 143, 0.55);
  transform: scale(1.3);
}

.play-dot.impact {
  background: var(--white);
  box-shadow: 0 0 38px rgba(255, 255, 255, 0.8);
  transform: scale(1.7);
}

.play-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 850;
  text-align: center;
}

.hidden {
  display: none;
}
