:root {
  --ink: #e6eef3;
  --muted: #b8c7e2;
  --muted-dim: #8a9bb4;
  --line: rgba(230,238,243,.12);
  --deep: #0b2135;
  --panel: rgba(11,41,61,.68);
  --teal: #3bb0b0;
  --mint: #9ce0c4;
  --sand: #e3c99c;
  --violet: #bcaaff;
}
* { 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(1100px 520px at 70% 35%, rgba(59,176,176,.09), transparent 40%), linear-gradient(160deg, rgba(236,155,96,.06) 0%, transparent 45%); }
.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(--mint); }
.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 { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.layout { display: grid; grid-template-columns: minmax(270px, .55fr) minmax(0, 1fr); gap: 6vw; align-items: start; padding: 56px 0 60px; }
.eyebrow { color: var(--teal); 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: 330px; margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.tide-bar { height: 10px; border-radius: 6px; background: rgba(230,238,243,.08); border: 1px solid var(--line); margin: 10px 0 30px; overflow: hidden; }
.tide-fill { height: 100%; width: 40%; background: var(--teal); transition: width .6s ease, background-color .5s; }
.tide-fill.low { width: 18%; background: #3b8ea0; }
.tide-fill.high { width: 92%; background: #2aa3a3; }
.hud { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.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 { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
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); background: rgba(230,238,243,.06); }
#lowtide { color: var(--mint); }
#lowtide:hover { background: rgba(156,224,196,.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: 22px; color: var(--muted); }
.note-line { width: 34px; height: 1px; background: var(--mint); }
.stage { position: relative; width: 100%; height: min(520px, 52vw); max-width: 780px; margin: 0 auto; }
#coast { width: 100%; height: 100%; display: block; border-radius: 14px; background: #07182b; box-shadow: 0 40px 90px rgba(0,0,0,.45); image-rendering: auto; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .stage { max-width: 100%; }
  .hud { grid-template-columns: 1fr 1fr; }
  .actions { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .nav { height: 64px; }
  .maker strong, .status-light { display: none; }
  .copy h1 { font-size: 66px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
}
@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); }
