:root {
  --ink: #e6eef3;
  --muted: #b8c7e2;
  --muted-dim: #8a9bb4;
  --line: rgba(230,238,243,.12);
  --deep: #020814;
  --panel: rgba(11,41,61,.7);
  --gold: #ffd470;
  --amber: #f5d58c;
  --aqua: #7ce0d0;
  --violet: #bcaaff;
  --mint: #9ce0c4;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--deep); font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select { font: inherit; } button { cursor: pointer; }
:where(button, input, select, textarea, a, canvas):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ambient { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(1200px 580px at 50% 45%, rgba(255,212,112,.06), transparent 45%), radial-gradient(900px 540px at 70% 55%, rgba(204,170,255,.05), transparent 40%); }
.app-shell { position: relative; max-width: 1440px; min-height: 100vh; margin: auto; padding: 0 5vw; display: grid; grid-template-rows: auto 1fr auto; }
.nav { height: 80px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font: 10px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.back { color: var(--muted); }.back:hover { color: var(--ink); }
.maker span { color: var(--muted); } .maker strong { color: var(--gold); }
.status-light { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 10px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.status-light i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.layout { display: grid; grid-template-columns: minmax(260px, .52fr) minmax(0, 1fr); gap: 6vw; align-items: start; padding: 56px 0 60px; }
.eyebrow { color: var(--gold); margin: 0 0 22px; font: 10px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.copy h1 { margin: 0 0 20px; font-size: clamp(56px, 8vw, 100px); line-height: .85; font-weight: 600; }
.copy h1 em { font-family: 'Fraunces', Georgia, serif; font-weight: 500; color: var(--gold); }
.lede { max-width: 330px; margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.palette, .modebar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.palette .label, .modebar span { font: 10px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.swatch { width: 26px; height: 26px; border: 2px solid transparent; border-radius: 50%; padding: 0; background-size: cover; transition: border-color .2s, transform .2s; }
.swatch:hover, .swatch.active { border-color: var(--ink); transform: scale(1.14); }
.swatch.active { box-shadow: 0 0 0 4px rgba(0,0,0,.25); }
button { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 9px 15px; font: 10px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .07em; }
button:hover { background: rgba(230,238,243,.06); }
button.ghost { color: var(--muted); }
button.ghost:hover { color: var(--ink); }
button:active { filter: brightness(.92); }
.row { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.hint { color: var(--muted); font: 11px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }
.hint-accent { color: var(--gold); }
.keys, .note { font: 11px 'DM Mono', monospace; color: var(--muted); line-height: 1.55; }
.keys kbd { background: var(--panel); border: 1px solid var(--line); padding: 2px 6px; border-radius: 3px; }
.note { display: flex; gap: 12px; align-items: center; margin-top: 20px; color: var(--muted); }
.note-line { width: 34px; height: 1px; background: var(--gold); }
.stage { position: relative; width: 100%; height: min(460px, 52vw); max-width: 820px; margin: 0 auto; }
#lagoon { width: 100%; height: 100%; display: block; border-radius: 14px; background: #020814; box-shadow: 0 40px 90px rgba(0,0,0,.5); image-rendering: auto; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 40px; padding-top: 12px; }
  .stage { max-width: 100%; }
}
@media (max-width: 540px) {
  .nav { height: 64px; }
  .maker strong, .status-light { display: none; }
  .copy h1 { font-size: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
canvas { touch-action: none; }
button { touch-action: manipulation; }
