/* assembl lab · Sea state. The lab's plum world: the sea on deep plum, instruments and controls in plum glass. */
:root {
  --plum: #21121F; --lift: #2E1A2C; --paper: #F9F6F2; --rose: #D9BACB; --muted: #8E6585;
  --on: rgba(249, 246, 242, .78); --glass: rgba(249, 246, 242, .07); --glass-line: rgba(249, 246, 242, .16); --pink: #F4BEDA;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--plum); color: var(--paper); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
.mono { font-family: var(--mono); font-size: 11.5px; font-weight: 500; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--paper); color: var(--plum); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }
button { font: inherit; cursor: pointer; color: inherit; }
#sea { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.loading { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--on); margin: 0; } .loading[hidden] { display: none; }
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 14px clamp(14px, 3vw, 28px); }
.brand { display: flex; align-items: center; gap: 7px; color: var(--paper); text-decoration: none; font-size: 18px; }
.brand svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; } .brand span { color: var(--on); }
.here { font-weight: 500; margin-left: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: rgba(33, 18, 31, .55); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(10px); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.icon { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); display: grid; place-items: center; }
.icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon[aria-pressed="true"] svg path { d: path("M8 5l11 7-11 7z"); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; border: 0; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn.glass, .btn.line { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(10px); }
.btn[aria-pressed="true"] { background: var(--paper); color: var(--plum); box-shadow: none; }
.hud { position: fixed; z-index: 3; left: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); display: flex; gap: 18px; align-items: flex-end; padding: 16px 20px; border-radius: 22px; background: rgba(33, 18, 31, .58); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(14px); }
.speed { display: grid; line-height: 1; } .speed b { font-size: 56px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; } .speed span { font-size: 13px; color: var(--on); margin-top: 4px; }
.lines p { margin: 0; font-size: 14px; color: var(--on); font-variant-numeric: tabular-nums; } .lines p:first-child { color: var(--paper); font-weight: 500; font-size: 16px; }
.drive { position: fixed; z-index: 3; left: 50%; transform: translateX(-50%); bottom: clamp(14px, 2.5vw, 28px); display: grid; gap: 10px; justify-items: center; }
.helm { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; background: rgba(33, 18, 31, .58); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(14px); }
.steer { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); font-size: 24px; line-height: 1; touch-action: none; user-select: none; }
.thr { display: grid; gap: 2px; font-size: 12px; color: var(--on); width: 160px; } input[type="range"] { width: 100%; accent-color: var(--pink); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(33, 18, 31, .58); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(14px); }
.seg button { flex: 1 1 auto; min-height: 36px; border: 0; border-radius: 999px; padding: 0 12px; background: transparent; color: var(--on); font-size: 14px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--plum); }
.panel { position: fixed; z-index: 3; right: clamp(14px, 2.5vw, 28px); top: 74px; width: min(360px, calc(100vw - 28px)); max-height: calc(100vh - 100px); overflow: auto; padding: 20px; border-radius: 22px;
  background: rgba(33, 18, 31, .72); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--glass-line), 0 30px 80px -30px rgba(0, 0, 0, .7); }
.panel h1 { font-size: 24px; letter-spacing: -.02em; margin: 0; font-weight: 600; } .lede { margin: 8px 0 0; color: var(--on); font-size: 14px; }
.group { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--glass-line); display: grid; gap: 10px; }
.label { font-size: 14px; color: var(--on); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chips button { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); font-size: 13.5px; font-weight: 500; }
.chips button:hover { background: rgba(249, 246, 242, .14); }
.slider { display: grid; gap: 4px; font-size: 14px; color: var(--on); } .slider span { display: flex; justify-content: space-between; } .slider b { color: var(--paper); font-weight: 500; font-variant-numeric: tabular-nums; }
.hint { margin: 0; font-size: 12.5px; color: var(--on); }
#btnPanel { display: none; }
@media (max-width: 900px) {
  .chip { display: none; }
  #btnPanel { display: inline-flex; }
  .panel { display: none; left: 10px; right: 10px; width: auto; top: 64px; max-height: calc(100vh - 256px); }
  .panel[data-open="true"] { display: block; }
  .here { display: none; }
  .hud { left: 10px; right: 10px; bottom: 208px; padding: 12px 14px; gap: 12px; } .speed b { font-size: 40px; } .lines p { font-size: 12.5px; } .lines p:first-child { font-size: 14px; }
  .drive { left: 10px; right: 10px; transform: none; bottom: 10px; } .thr { width: 120px; } .seg button { padding: 0 9px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
