:root {
  --ink: #e6eef3;
  --muted: #b8c7e2;
  --muted-dim: #8a9bb4;
  --line: rgba(230,238,243,.12);
  --deep: #092133;
  --panel: rgba(13,33,51,.72);
  --violet: #bcaaff;
  --coral: #f78b75;
  --mint: #9ce0c4;
  --gold: #f5d58c;
}
* { 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(--mint); outline-offset: 2px; }
.ambient { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(1200px 600px at 60% 40%, rgba(47,183,177,.08), transparent 45%), radial-gradient(800px 500px at 20% 70%, rgba(188,170,255,.06), 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(--violet); }
.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(--mint); box-shadow: 0 0 12px var(--mint); }
.layout { display: grid; grid-template-columns: minmax(280px, .6fr) minmax(0, 1fr); gap: 6vw; align-items: start; padding: 56px 0 60px; }
.eyebrow { color: var(--violet); 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(--mint); }
.lede { max-width: 340px; margin: 0 0 34px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.hud { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.hud div { display: flex; flex-direction: column; gap: 4px; font: 11px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hud strong { color: var(--ink); font-weight: 600; }
.actions { grid-column: 1 / -1; margin-top: 6px; }
#reset { border: 1px solid var(--line); background: transparent; color: var(--coral); padding: 9px 15px; font: 10px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .07em; }
#reset:hover { background: rgba(247,139,117,.08); }
.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: 24px; color: var(--muted); }
.note-line { width: 34px; height: 1px; background: var(--mint); }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 10; max-width: 760px; margin: 0 auto; }
#water { width: 100%; height: 100%; display: block; border-radius: 14px; background: #0b1f2f; image-rendering: auto; box-shadow: 0 40px 90px rgba(0,0,0,.45); }
.lotus { position: absolute; top: 42%; left: 34%; width: 11%; aspect-ratio: 1 / 1; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #1c4a4a, #143831 70%); box-shadow: 0 0 0 8px rgba(13,33,51,.6); transform: translateX(20px) translateY(-10px); }
.lotus::before, .lotus::after { content: ''; position: absolute; background: rgba(11,58,52,.85); border-radius: 50%; }
.lotus::before { width: 40%; height: 22%; top: -8%; left: 30%; }
.lotus::after { width: 34%; height: 18%; bottom: 6%; left: 28%; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 44px; padding-top: 24px; }
  .stage { max-width: 100%; }
  .hud { grid-template-columns: 1fr 1fr; }
}
@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; }
button:active { filter: brightness(.92); }
