:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: #f1fcfc;
  background: #05171e;
  --white: #f1fcfc;
  --pale: #c4e2e1;
  --mint: #8df8d4;
  --amber: #ffd58a;
  --glass: rgba(3, 24, 30, .83);
  --line: rgba(178, 231, 226, .24);
  --ease: 160ms ease;
  --edge: clamp(.875rem, 3.25vw, 3rem);
  --left: max(var(--edge), env(safe-area-inset-left));
  --right: max(var(--edge), env(safe-area-inset-right));
  --top: max(var(--edge), env(safe-area-inset-top));
  --bottom: max(var(--edge), env(safe-area-inset-bottom));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { overscroll-behavior: none; }
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .65; }
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#world {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.frame-edge {
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(1, 12, 19, .34);
}

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 2rem;
  overflow-y: auto;
  padding: max(2rem, var(--top)) max(3.75rem, var(--right)) max(2rem, var(--bottom)) max(clamp(2rem, 7.1vw, 8rem), var(--left));
  background: linear-gradient(90deg, rgba(1, 17, 23, .95) 0%, rgba(1, 19, 25, .73) 34%, rgba(1, 19, 25, .22) 64%, rgba(1, 19, 25, .22) 100%);
}

.start-content { width: min(100%, 45rem); }
.intro-tag {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--mint);
  font-size: .775rem;
  font-weight: 720;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.intro-tag .icon { width: 1.5rem; height: 1.5rem; }
.start-screen h1 {
  margin: 1rem 0 1.45rem -.052em;
  font-size: clamp(4.65rem, min(11.6vw, 16.8vh), 10.3rem);
  line-height: .79;
  letter-spacing: -.087em;
  font-weight: 850;
}
.start-screen h1 span { display: block; }
.title-blue { color: #a7f6e2; }
.intro-copy {
  max-width: 25rem;
  color: var(--pale);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.53;
  margin: 0 0 1.6rem;
}
.start-actions { display: flex; gap: .625rem; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 3.15rem;
  padding: .6rem 1.05rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-size: .9375rem;
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
  transition: background-color var(--ease), box-shadow var(--ease), border-color var(--ease), transform var(--ease);
}
.button:active, .icon-button:active, .steer-button:active { transform: translateY(2px); }
.button-primary {
  color: #06251f;
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 4px 22px rgba(116, 255, 217, .19);
}
.button-secondary { color: var(--white); background: rgba(2, 25, 29, .67); border-color: rgba(180, 243, 230, .4); }
.button-warm {
  color: #281d08;
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 4px 22px rgba(255, 189, 64, .22);
}
@media (hover: hover) {
  .button-primary:hover { background: #b5ffe8; }
  .button-secondary:hover { background: rgba(18, 67, 70, .9); border-color: var(--mint); }
  .button-warm:hover { background: #ffe5a9; }
  .icon-button:hover, .steer-button:hover { border-color: var(--mint); background: #163d42; }
  .subtle-button:hover { color: var(--white); }
}

.start-message, .camera-note { font-size: .8125rem; line-height: 1.4; margin: .75rem 0 0; }
.start-message { max-width: 29rem; color: #ffe0a7; }
.start-message:empty { display: none; }
.camera-note { color: #b0cdce; }

.intro-depth {
  position: relative;
  justify-self: end;
  width: 8.15rem;
  height: min(48vh, 23.25rem);
  min-height: 12rem;
  margin-block: .5rem;
  padding-left: 1.0625rem;
  color: var(--white);
}
.intro-depth-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(#a5f6e4, #74bbcc 40%, rgba(116, 187, 204, .3));
}
.intro-depth-track::after {
  position: absolute;
  content: '';
  inset: 0 auto 0 -6px;
  width: 5px;
  background: repeating-linear-gradient(to bottom, rgba(182, 239, 233, .36) 0 1px, transparent 1px 12px);
}
.intro-point {
  position: absolute;
  display: grid;
  gap: .19rem;
  transform: translateY(-50%);
  text-shadow: 0 1px 8px #001a23;
}
.intro-point::before {
  position: absolute;
  top: 50%;
  left: -1.3rem;
  content: '';
  width: .5rem;
  height: .5rem;
  border: 1px solid #bffced;
  border-radius: 50%;
  background: #1c4c50;
}
.intro-point > span:first-child {
  font-size: 1.16rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.intro-point small, .intro-point > span:nth-child(2) { color: #c2dfdf; font-size: .75rem; font-weight: 650; }
.intro-point-surface { top: 0; }
.intro-point-dock { top: var(--dock-stop, 24%); }
.intro-point-dock::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 10px #ffc17490; }
.intro-point-end { top: 100%; }

.game-ui {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}
.game-ui button { pointer-events: auto; }
.top-bar {
  position: absolute;
  top: var(--top);
  left: var(--left);
  right: var(--right);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .625rem;
}
.readout {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: .875rem;
  min-height: 3.6rem;
  padding: .55rem .85rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: .55rem;
  box-shadow: 0 8px 22px rgba(0, 10, 18, .22);
}
.readout-depth {
  display: flex;
  align-items: baseline;
  justify-content: end;
  min-width: 3.8rem;
  gap: .22rem;
  font-size: 1.95rem;
  line-height: 1;
  font-weight: 790;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.depth-unit { color: var(--pale); font-size: .875rem; letter-spacing: initial; }
.readout-meta { display: grid; gap: .45rem; min-width: 6.5rem; }
.zone {
  color: #daf4f2;
  font-weight: 710;
  font-size: .8125rem;
  line-height: 1.2;
}
progress {
  display: block;
  width: 100%;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  border-radius: 2rem;
  color: var(--mint);
  background: rgba(191, 241, 235, .18);
}
progress::-webkit-progress-bar { background: rgba(191, 241, 235, .1); }
progress::-webkit-progress-value { background: var(--mint); border-radius: 2rem; transition: width 100ms linear; }
progress::-moz-progress-bar { background: var(--mint); border-radius: 2rem; }
.depth-progress { min-width: 4rem; height: .24rem; }

.top-actions { display: flex; align-items: center; gap: .45rem; }
.icon-button, .steer-button {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--glass);
  transition: background-color var(--ease), border-color var(--ease), transform var(--ease);
}
.sound-off, .icon-button[aria-pressed="true"] .sound-on { display: none; }
.icon-button[aria-pressed="true"] .sound-off { display: block; }
.signal-score {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  gap: .36rem;
  padding: .25rem .64rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--glass);
  font-weight: 740;
  font-variant-numeric: tabular-nums;
}
.signal-score .icon { color: var(--mint); width: 1.1rem; height: 1.1rem; }
.mode-chip {
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: .42rem;
  min-height: 1.85rem;
  padding: .2rem .65rem;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--mint);
  font-size: .75rem;
  font-weight: 700;
}
.mode-chip .icon { width: 1rem; height: 1rem; }
.sub-mode-icon, [data-phase="sub"] .swim-mode-icon { display: none; }
[data-phase="sub"] .sub-mode-icon { display: inline; }
[data-phase="sub"] .mode-chip { color: var(--amber); }

.toast {
  position: absolute;
  top: calc(var(--top) + 4.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - var(--left) - var(--right));
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1rem .7rem .68rem;
  border: 1px solid rgba(153, 251, 217, .42);
  border-radius: .55rem;
  box-shadow: 0 8px 32px #071d246b;
  background: rgba(6, 32, 37, .92);
}
.toast-icon, .dialog-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--mint);
  border-radius: .38rem;
  background: #7cf6d224;
}
.toast strong { color: var(--white); font-size: .9rem; }
.toast p {
  margin: .15rem 0 0;
  color: var(--pale);
  font-size: .8125rem;
  line-height: 1.35;
}
.toast p:empty { display: none; }

.game-prompt {
  position: absolute;
  left: var(--left);
  bottom: var(--bottom);
  width: min(21.5rem, 34vw);
  padding: .95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--glass);
}
.game-prompt h2 {
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .3rem;
}
.game-prompt p {
  font-size: .875rem;
  line-height: 1.45;
  color: var(--pale);
  margin: 0;
}
.stroke-meter { max-width: 12rem; height: .32rem; margin-top: .65rem; }
[data-phase="sub"] .stroke-meter { display: none; }
[data-phase="sub"] .game-prompt { border-color: rgba(255, 213, 138, .29); }

.camera-tile {
  position: absolute;
  bottom: var(--bottom);
  right: var(--right);
  width: clamp(8.3rem, 16vw, 13.5rem);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: .6rem;
  overflow: hidden;
  background: var(--glass);
}
.camera-frame {
  position: relative;
  overflow: hidden;
  background: #071d23;
  aspect-ratio: 4 / 3;
}
.camera-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleX(-1);
}
.camera-corners {
  position: absolute;
  inset: .35rem;
  opacity: .65;
  background: linear-gradient(var(--mint), var(--mint)) left top, linear-gradient(var(--mint), var(--mint)) left top, linear-gradient(var(--mint), var(--mint)) right top, linear-gradient(var(--mint), var(--mint)) right top, linear-gradient(var(--mint), var(--mint)) left bottom, linear-gradient(var(--mint), var(--mint)) left bottom, linear-gradient(var(--mint), var(--mint)) right bottom, linear-gradient(var(--mint), var(--mint)) right bottom;
  background-repeat: no-repeat;
  background-size: .65rem 1px, 1px .65rem, .65rem 1px, 1px .65rem, .65rem 1px, 1px .65rem, .65rem 1px, 1px .65rem;
}
.camera-badge {
  position: absolute;
  top: .55rem;
  left: .55rem;
  max-width: calc(100% - 1.1rem);
  padding: .25rem .36rem;
  border-radius: .25rem;
  color: #eefffa;
  background: rgba(2, 17, 22, .85);
  font-size: .66rem;
  font-weight: 760;
  line-height: 1.2;
}
.camera-tile[data-tracked="true"] .camera-badge { color: var(--mint); }
.camera-help {
  border-top: 1px solid var(--line);
  padding: .46rem .55rem;
  color: var(--pale);
  font-size: .75rem;
  line-height: 1.3;
}
.camera-help:empty { display: none; }

.camera-layer { position: fixed; z-index: 2; inset: 0; pointer-events: none; }
.camera-layer[data-setup="true"] {
  z-index: 4;
  display: grid;
  place-items: center;
  place-items: safe center;
  overflow-y: auto;
  padding: var(--top) var(--right) var(--bottom) var(--left);
  pointer-events: auto;
  background: rgba(0, 13, 22, .76);
}
.camera-layer[data-setup="true"] .camera-panel {
  width: min(100%, 25rem);
  padding: clamp(1rem, 3.2vw, 1.5rem);
  background: #08242d;
  border: 1px solid var(--line);
  border-radius: .85rem;
  box-shadow: 0 15px 60px rgba(0, 10, 15, .62);
}
.camera-layer[data-setup="true"] h2 { margin: 0 0 .8rem; font-size: 1.4rem; }
.camera-layer[data-setup="true"] .camera-tile { position: relative; inset: auto; width: 100%; }
.camera-layer[data-setup="true"] .camera-frame { aspect-ratio: 4 / 3; max-height: 42vh; }
#cameraSetupStatus { min-height: 2.8em; margin: .85rem 0 .65rem; color: var(--pale); line-height: 1.4; }
.camera-setup-buttons { display: flex; flex-wrap: wrap; gap: .55rem; }

.cockpit {
  position: absolute;
  bottom: max(.35rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  width: min(29rem, 38vw);
  min-width: 12rem;
}
.cockpit-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  max-width: 100%;
  min-height: 1.8rem;
  padding: .3rem .67rem;
  border: 1px solid #c3a46566;
  border-radius: 2rem;
  color: var(--amber);
  background: rgba(15, 25, 27, .91);
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
.cockpit-status .icon { width: .92rem; height: .92rem; }
.cockpit[data-ready="true"] .cockpit-status { border-color: #ebca7880; box-shadow: 0 0 12px #ffd58a21; }
.wheel-console {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0 .65rem;
  margin-top: .3rem;
}
.wheel-console::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 75%;
  bottom: -8%;
  border-radius: 50% 50% 14% 14%;
  border: 2px solid #6989846a;
  background: radial-gradient(ellipse at 50% 12%, #405655 0%, #132327 45%, #081217 78%);
  box-shadow: inset 0 7px 0 -4px #9f9b774a, inset 0 0 24px #00000096, 0 15px 29px #0008;
}
.console-bolt {
  position: absolute;
  width: .43rem;
  height: .43rem;
  bottom: 11%;
  border-radius: 50%;
  background: #71898a;
  border: 1px solid #b7c4b7;
  box-shadow: 0 2px 2px #000;
}
.bolt-left { left: 14%; }
.bolt-right { right: 14%; }
.wheel {
  position: relative;
  z-index: 1;
  width: min(10.75rem, 100%);
  height: auto;
  overflow: visible;
  transform: rotate(var(--wheel-angle, 0rad));
  filter: drop-shadow(0 5px 4px #000a);
}
.wheel-rim-shadow { fill: none; stroke: #071115; stroke-width: 19; }
.wheel-rim { fill: none; stroke: #839c98; stroke-width: 16; }
.wheel-rim-inner { fill: none; stroke: #2c4549; stroke-width: 2; }
.wheel-grips {
  fill: none;
  stroke: #344745;
  stroke-width: 12;
  stroke-linecap: round;
}
.wheel-spokes { fill: #6e8987; stroke: #263e43; stroke-width: 1.5; }
.wheel-hub-shadow { fill: #1c3336; stroke: #a1b2a9; stroke-width: 2; }
.wheel-hub { fill: #30494a; stroke: #0a2228; stroke-width: 1.5; }
.wheel-mark {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3;
  stroke-linecap: round;
}
.subtle-button {
  position: relative;
  z-index: 1;
  min-height: 2.75rem;
  border: 0;
  border-radius: .4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .35rem .65rem;
  color: var(--pale);
  background: transparent;
  font-size: .8125rem;
  font-weight: 690;
  line-height: 1.2;
  transition: color var(--ease);
}
.cockpit .subtle-button {
  min-height: 2.75rem;
  padding: .28rem .7rem;
  background: #0b1c21;
  border: 1px solid var(--line);
}
.subtle-button .icon { width: .86rem; height: .86rem; }

.manual-controls {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: var(--bottom);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .55rem;
  white-space: nowrap;
}
.manual-controls button { touch-action: none; user-select: none; -webkit-user-select: none; }
.steer-button { min-height: 3.15rem; width: 3.15rem; }
.steer-button .icon { width: 1.4rem; height: 1.4rem; }
.steer-button:active { background: #254b4d; border-color: var(--mint); }
.steer-button.pressed { background: #254b4d; border-color: var(--mint); transform: translateY(2px); }
.stroke-button { min-width: 6.3rem; }
.stroke-button.pressed { transform: translateY(2px); box-shadow: 0 2px 10px #74ffd936; }
.auto-forward { display: none; }
[data-phase="sub"] .manual-controls { bottom: max(.8rem, env(safe-area-inset-bottom)); }
[data-phase="sub"] .auto-forward {
  display: block;
  padding: .42rem .55rem;
  background: #0b1c21;
  color: var(--amber);
  border-radius: .3rem;
  font-size: .73rem;
  font-weight: 690;
}
[data-phase="sub"] .stroke-button { display: none; }
[data-phase="sub"][data-input="manual"] .cockpit { bottom: calc(var(--bottom) + 3rem); }

.overlay {
  position: fixed;
  z-index: 3;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow-y: auto;
  padding: var(--top) var(--right) var(--bottom) var(--left);
  background: rgba(0, 15, 23, .52);
}
.dialog-panel {
  width: min(100%, 24rem);
  padding: clamp(1.25rem, 3.2vw, 2rem);
  background: rgba(5, 26, 33, .94);
  border: 1px solid rgba(163, 240, 222, .34);
  border-radius: .85rem;
  box-shadow: 0 15px 75px rgba(0, 10, 15, .6);
}
.dialog-icon { width: 2.65rem; height: 2.65rem; margin-bottom: .85rem; }
.dialog-panel h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.8rem, 4.4vw, 2.55rem);
  line-height: 1;
  font-weight: 810;
  letter-spacing: -.057em;
}
.dialog-panel p {
  margin: .6rem 0 1.1rem;
  color: var(--pale);
  font-size: 1rem;
  line-height: 1.5;
}
.dialog-panel p:empty { display: none; }
.dialog-panel .finish-score { color: var(--mint); font-weight: 730; }
.dialog-panel .start-message { color: var(--amber); font-size: .8125rem; margin: .55rem 0 0; }
.dialog-actions { display: grid; gap: .45rem; margin-top: 1rem; }
.dialog-actions .subtle-button { justify-self: center; }
.overlay-dock { justify-items: start; padding-left: max(clamp(1rem, 7.1vw, 8rem), var(--left)); background: linear-gradient(90deg, #03161db8, #03161d0f 75%); }
.overlay-dock .dialog-panel { border-color: #f2b96452; }
.overlay-dock .dialog-icon { color: var(--amber); background: #ffd58a22; }

@media (max-width: 760px) {
  .start-screen { grid-template-columns: minmax(0, 1fr); background: linear-gradient(90deg, rgba(1, 17, 23, .89), rgba(1, 19, 25, .65) 51%, rgba(1, 19, 25, .18) 100%); }
  .intro-depth { display: none; }
  .start-screen h1 { font-size: clamp(4.7rem, min(16vw, 20vh), 8.5rem); }
  .game-prompt { width: min(21.5rem, 54vw); }
  [data-input="manual"] .game-prompt { bottom: calc(var(--bottom) + 3.8rem); }
  [data-phase="sub"] .cockpit { width: min(20rem, 54vw); }
  [data-phase="sub"] .game-prompt, [data-phase="sub"] .camera-tile { bottom: calc(var(--bottom) + 12rem); }
  [data-phase="sub"][data-input="manual"] .game-prompt { bottom: calc(var(--bottom) + 13.5rem); }
}

@media (max-width: 440px) {
  .start-screen { padding-inline: max(1.25rem, var(--left)) max(1.25rem, var(--right)); }
  .start-screen h1 { font-size: clamp(3.68rem, 18vw, 5.45rem); line-height: .86; margin-bottom: 1rem; }
  .intro-tag { gap: .55rem; font-size: .6875rem; letter-spacing: .1em; }
  .intro-copy { margin-bottom: 1.2rem; }
  .start-actions { display: grid; justify-items: stretch; width: min(100%, 19rem); }
  .readout {
    gap: .46rem;
    min-height: 2.8rem;
    max-width: 100%;
    padding: .47rem .52rem;
  }
  .readout-depth { font-size: 1.45rem; min-width: 2.4rem; }
  .readout-meta { min-width: 3.5rem; gap: .3rem; }
  .depth-progress { min-width: 2.7rem; }
  .zone { font-size: .75rem; }
  .top-actions { gap: .28rem; }
  .signal-score { gap: .25rem; padding-inline: .35rem; }
  .signal-score .icon { width: .92rem; height: .92rem; }
  .toast { top: calc(var(--top) + 5.2rem); }
  .game-prompt { padding: .65rem .67rem; }
  .game-prompt p { font-size: .8125rem; }
  .camera-tile { width: 7.4rem; }
  .camera-help { font-size: .69rem; }
  .wheel { width: 7.9rem; }
  [data-phase="sub"] .game-prompt, [data-phase="sub"] .camera-tile { bottom: calc(var(--bottom) + 10.9rem); }
  [data-phase="sub"][data-input="manual"] .game-prompt { bottom: calc(var(--bottom) + 11.8rem); }
  .overlay-dock { align-items: end; padding: var(--top) var(--right) calc(var(--bottom) + 1rem) var(--left); background: linear-gradient(0deg, #021822b8, #02182200 70%); }
}

@media (max-height: 570px) and (orientation: landscape) {
  .start-screen { grid-template-columns: minmax(0, 1fr) auto; padding-block: max(.8rem, var(--top)) max(.8rem, var(--bottom)); align-content: safe center; }
  .start-screen h1 { font-size: clamp(3.4rem, 16vh, 5.85rem); line-height: .82; margin-block: .55rem .65rem; }
  .intro-copy { margin-bottom: .65rem; }
  .intro-depth { display: block; min-height: 9.5rem; }
  .camera-note { margin-top: .45rem; }
  .toast { top: calc(var(--top) + 3.3rem); padding: .42rem .65rem; }
  .camera-frame { aspect-ratio: 16 / 9; }
  .camera-help { display: none; }
  .game-prompt { width: min(17rem, 31vw); }
  [data-input="manual"] .game-prompt, [data-phase="sub"] .game-prompt, [data-phase="sub"][data-input="manual"] .game-prompt, [data-phase="sub"] .camera-tile { bottom: var(--bottom); }
  .wheel { width: 6rem; }
  .cockpit { min-width: 10rem; }
  .cockpit .subtle-button { min-height: 2.75rem; }
  .overlay-dock { background: linear-gradient(90deg, #03161dc9 12%, #03161d0f 82%); }
}

@media (max-height: 570px) and (orientation: portrait) {
  .start-screen { align-content: safe center; }
  .start-screen h1 { font-size: clamp(3.2rem, 14vw, 4.3rem); }
  .camera-note { margin-top: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
