:root {
  color-scheme: dark;
  --bg: #070806;
  --ink: #f7f1df;
  --muted: #aab2a2;
  --edge: rgba(247, 241, 223, 0.16);
  --hot: #ff4f6d;
  --gold: #ffd166;
  --blue: #66ddff;
  --green: #7dffad;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 4%, rgba(102, 221, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 100% 0%, rgba(255, 79, 109, 0.14), transparent 24rem),
    linear-gradient(140deg, #070806, #11140f 52%, #170c12);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  width: min(1200px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 16px 0 22px;
}

header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(1.55rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.score {
  min-width: 120px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  text-align: right;
}

.score span {
  display: block;
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.score small, .notes span {
  color: var(--muted);
}

nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 14px 0 10px;
}

button {
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 10px 8px;
  background: rgba(255,255,255,0.055);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

button.active {
  background: var(--gold);
  color: #171108;
}

.stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 8px;
  aspect-ratio: 1280 / 760;
  background: #030402;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.brief {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(3, 4, 2, 0.72);
  color: #e8eddd;
  font-size: 0.92rem;
  line-height: 1.35;
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.notes div {
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.055);
}

.notes strong, .notes span {
  display: block;
}

@media (max-width: 780px) {
  header { display: block; }
  .score { text-align: left; margin-top: 10px; }
  nav, .notes { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 9 / 14; }
}
