:root {
  --paper: #f7ecd8;
  --paper-dim: rgba(247, 236, 216, .68);
  --paper-faint: rgba(247, 236, 216, .42);
  --ink: #06161d;
  --ink-2: #0a222b;
  --gold: #e8b977;
  --gold-soft: #f2d3a2;
  --coral: #e2604c;
  --teal: #6fb7ad;
  --glass: rgba(7, 24, 31, .38);
  --glass-strong: rgba(5, 18, 24, .62);
  --line: rgba(247, 236, 216, .14);
  --line-soft: rgba(247, 236, 216, .08);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Songti SC", "STSong", Georgia, serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22, .8, .22, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
}

body {
  overflow: hidden;
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

::selection { background: var(--gold); color: var(--ink); }

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

#scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: grab;
  touch-action: none;
}

body.is-dragging #scene { cursor: grabbing; }

/* ---------------- atmosphere overlays ---------------- */

.grade,
.grain,
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.grade {
  background:
    linear-gradient(180deg, rgba(4, 16, 22, .38) 0%, rgba(4, 16, 22, 0) 24%, rgba(4, 16, 22, 0) 66%, rgba(3, 11, 16, .52) 100%),
    linear-gradient(90deg, rgba(4, 15, 21, .34) 0%, rgba(4, 15, 21, 0) 34%, rgba(4, 15, 21, 0) 72%, rgba(4, 15, 21, .26) 100%);
}

.grain {
  z-index: 3;
  opacity: .055;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.vignette {
  z-index: 3;
  background: radial-gradient(115% 95% at 50% 45%, transparent 42%, rgba(2, 9, 13, .26) 76%, rgba(2, 8, 12, .62) 100%);
}

/* ---------------- common ---------------- */

.glass {
  background: linear-gradient(150deg, rgba(20, 46, 54, .52), rgba(5, 18, 24, .46));
  border: 1px solid var(--line);
  box-shadow:
    0 22px 60px -26px rgba(0, 0, 0, .85),
    inset 0 1px 0 rgba(255, 248, 232, .09);
  -webkit-backdrop-filter: blur(20px) saturate(1.28);
  backdrop-filter: blur(20px) saturate(1.28);
}

.eyebrow-sm {
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

.muted { color: var(--paper-dim); }

/* ---------------- top bar ---------------- */

.topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: max(20px, env(safe-area-inset-top)) clamp(18px, 3.4vw, 46px) 0;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--paper);
  pointer-events: auto;
}

.brand__mark {
  width: 41px;
  height: 41px;
  color: var(--gold-soft);
  flex: none;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .4));
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand__text strong {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .32em;
  line-height: 1;
}

.brand__text em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--paper-faint);
  line-height: 1;
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 19, 25, .34);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.meta-pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 185, 119, .14), 0 0 12px rgba(232, 185, 119, .6);
  transition: background .8s ease, box-shadow .8s ease;
}

.meta-pill__divider {
  width: 1px;
  height: 11px;
  background: var(--line);
}

.meta-weather {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  line-height: 1;
}

.meta-weather span:first-child { color: var(--paper); font-size: 11px; }

/* ---------------- hero ---------------- */

.hero {
  position: absolute;
  z-index: 8;
  left: clamp(20px, 4vw, 58px);
  bottom: clamp(24px, 5.6vh, 68px);
  max-width: 560px;
  pointer-events: none;
  text-shadow: 0 6px 34px rgba(0, 0, 0, .45);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(14px, 2.2vh, 24px);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .28em;
  color: var(--paper-dim);
}

.hero__eyebrow span {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(58px, 8.2vw, 126px);
  line-height: .78;
  letter-spacing: .045em;
  color: #fff5e2;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
  letter-spacing: .08em;
  text-shadow: 0 0 48px rgba(232, 185, 119, .22);
}

.hero__sub {
  margin: clamp(14px, 2.2vh, 22px) 0 0;
  max-width: 340px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(12px, 1.1vw, 15px);
  line-height: 1.5;
  letter-spacing: .03em;
  color: var(--paper-dim);
}

.hero__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: clamp(16px, 2.6vh, 28px) 0 0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  color: var(--paper-faint);
}

.hero__hint kbd {
  padding: 4px 7px;
  border: 1px solid rgba(247, 236, 216, .18);
  border-radius: 4px;
  background: rgba(6, 20, 26, .35);
  color: var(--paper-dim);
  font: inherit;
  letter-spacing: .06em;
}

.hero__hint i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--paper-faint);
  margin: 0 2px;
}

/* ---------------- telemetry ---------------- */

.telemetry {
  position: absolute;
  z-index: 9;
  right: clamp(16px, 3vw, 40px);
  top: 50%;
  transform: translateY(-46%);
  width: 272px;
  padding: 18px 18px 16px;
  border-radius: 22px;
}

.telemetry__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .2em;
  color: var(--gold-soft);
}

.live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 10px rgba(226, 96, 76, .8);
  animation: livePulse 2.4s ease-in-out infinite;
}

.gauge {
  position: relative;
  width: 158px;
  height: 158px;
  margin: 2px auto 6px;
}

.gauge svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(135deg);
}

.gauge circle {
  fill: none;
  stroke-linecap: round;
  transform-origin: 80px 80px;
}

.gauge__track {
  stroke: rgba(247, 236, 216, .1);
  stroke-width: 2;
  stroke-dasharray: 309.6 1000;
}

.gauge__progress {
  stroke: var(--gold);
  stroke-width: 2.6;
  stroke-dasharray: 309.6 1000;
  stroke-dashoffset: 309.6;
  filter: drop-shadow(0 0 6px rgba(232, 185, 119, .4));
  transition: stroke-dashoffset .18s linear;
}

.gauge__inner {
  stroke: rgba(247, 236, 216, .07);
  stroke-width: 1;
  stroke-dasharray: 2 9;
  transform: rotate(0deg);
}

.gauge__readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  pointer-events: none;
}

.gauge__readout strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 54px;
  line-height: .9;
  letter-spacing: -.02em;
  color: #fff6e5;
  font-variant-numeric: tabular-nums;
}

.gauge__readout span {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .3em;
  color: var(--paper-faint);
}

.gauge__tick {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 4px;
  background: var(--paper-faint);
  transform-origin: 0 0;
  opacity: .6;
}

.gauge__tick--a { transform: rotate(135deg) translateY(-79px); }
.gauge__tick--b { transform: rotate(180deg) translateY(-79px); }
.gauge__tick--c { transform: rotate(225deg) translateY(-79px); }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 11px 0;
  margin: 2px 0 13px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 12px;
}

.stat + .stat { border-left: 1px solid var(--line-soft); }

.stat span {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--paper-faint);
}

.stat strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.stat strong em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: .12em;
  color: var(--paper-faint);
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--paper-faint);
  text-transform: uppercase;
}

.control__label b {
  font-weight: 500;
  color: var(--gold-soft);
  letter-spacing: .1em;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(232, 185, 119, .7), rgba(247, 236, 216, .12));
}

input[type="range"]::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(232, 185, 119, .7), rgba(247, 236, 216, .12));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 2px solid rgba(7, 24, 31, .8);
  box-shadow: 0 0 0 3px rgba(232, 185, 119, .16);
  transition: box-shadow .2s ease, transform .2s ease;
}

input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 2px solid rgba(7, 24, 31, .8);
  box-shadow: 0 0 0 3px rgba(232, 185, 119, .16);
}

input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(232, 185, 119, .2); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(232, 185, 119, .28); }

/* ---------------- dock ---------------- */

.dock-wrap {
  position: absolute;
  z-index: 11;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.camera-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .24em;
  color: var(--paper-faint);
}

.camera-badge i {
  width: 14px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.dock {
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 6px;
  border-radius: 18px;
}

.dock__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 58px;
  height: 52px;
  padding: 6px 8px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, transform .22s ease;
  -webkit-tap-highlight-color: transparent;
}

.dock__btn:hover {
  background: rgba(247, 236, 216, .08);
  color: var(--paper);
}

.dock__btn:active { transform: scale(.96); }

.dock__btn:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.dock__btn[data-active="true"] {
  background: rgba(232, 185, 119, .12);
  color: var(--gold-soft);
}

.dock__btn[data-active="true"]::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 9px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 7px rgba(232, 185, 119, .9);
}

.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon--pause rect,
.icon--play path { fill: currentColor; stroke: none; }

.icon--play, .icon--muted { display: none; }
.dock__btn[data-active="true"] .icon--pause { display: none; }
.dock__btn[data-active="true"] .icon--play { display: block; }
.dock__btn[data-active="true"] .icon--sound { display: none; }
.dock__btn[data-active="true"] .icon--muted { display: block; }

.dock__btn--photo { margin-left: 2px; }
.dock__btn--photo::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 13px;
  bottom: 13px;
  width: 1px;
  background: var(--line-soft);
}

/* ---------------- corner + toast ---------------- */

.corner-note {
  position: absolute;
  z-index: 8;
  right: clamp(14px, 3vw, 40px);
  bottom: clamp(16px, 3vh, 34px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .2em;
  color: rgba(247, 236, 216, .32);
  pointer-events: none;
  text-align: right;
}

.toast {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: 118px;
  transform: translate(-50%, 10px);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 18, 24, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease);
  white-space: nowrap;
  max-width: min(90vw, 520px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.shutter {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #fff8ea;
  opacity: 0;
  pointer-events: none;
}

.shutter.is-flashing {
  animation: shutterFlash .6s cubic-bezier(.2,.7,.2,1);
}

@keyframes shutterFlash {
  0% { opacity: 0; }
  7% { opacity: .88; }
  100% { opacity: 0; }
}

.photo-hint {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(5, 18, 24, .55);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .16em;
  color: var(--paper-dim);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

body.photo-mode .topbar,
body.photo-mode .hero,
body.photo-mode .telemetry,
body.photo-mode .dock-wrap,
body.photo-mode .corner-note,
body.photo-mode .toast { opacity: 0 !important; pointer-events: none !important; }

.shutter {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #fff8ea;
  opacity: 0;
  pointer-events: none;
}

.shutter.is-flashing {
  animation: shutterFlash .6s cubic-bezier(.2,.7,.2,1);
}

@keyframes shutterFlash {
  0% { opacity: 0; }
  7% { opacity: .88; }
  100% { opacity: 0; }
}

body.photo-mode .photo-hint { opacity: 1; }

body.photo-mode .vignette {
  background: radial-gradient(115% 95% at 50% 45%, transparent 52%, rgba(2, 9, 13, .2) 82%, rgba(2, 8, 12, .44) 100%);
}

/* ---------------- loading ---------------- */

.loading {
  position: absolute;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 60% at 50% 38%, rgba(37, 77, 86, .55) 0%, rgba(10, 30, 38, .2) 38%, transparent 70%),
    radial-gradient(120% 100% at 50% 0%, #2b4a52 0%, #122b34 36%, #071820 74%, #040f14 100%);
  transition: opacity .9s var(--ease), visibility .9s linear;
}

.loading.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading__inner {
  width: min(360px, 80vw);
  text-align: center;
  transform: translateY(-2vh);
}

.loading__mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  color: var(--gold-soft);
}

.loading__mark svg { width: 100%; height: 100%; }

.loading__ring {
  transform-origin: 32px 32px;
  animation: spin 12s linear infinite;
}

.loading__kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .4em;
  color: var(--paper-faint);
}

.loading h2 {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: .14em;
  color: var(--paper);
}

.loading__bar {
  position: relative;
  width: 100%;
  height: 1px;
  background: rgba(247, 236, 216, .12);
  overflow: hidden;
}

.loading__bar i {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  box-shadow: 0 0 14px rgba(232, 185, 119, .55);
  transition: transform .35s var(--ease);
}

.loading__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--paper-faint);
}

.loading__meta b { font-weight: 500; color: var(--gold-soft); }

/* ---------------- fallback ---------------- */

.fallback {
  position: absolute;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: radial-gradient(90% 70% at 50% 40%, #16323a 0%, #071820 70%);
}

.fallback[hidden] { display: none; }

.fallback h2 {
  margin: 12px 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
}

.fallback p {
  margin: 0 auto;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper-dim);
}

/* ---------------- motion ---------------- */

.topbar, .hero, .telemetry, .dock-wrap, .corner-note {
  transition: opacity .5s ease;
}

body.ready .topbar { animation: rise .9s var(--ease) .1s both; }
body.ready .hero { animation: rise 1s var(--ease) .22s both; }
body.ready .telemetry { animation: riseRight 1s var(--ease) .3s both; }
body.ready .dock-wrap { animation: riseDock 1s var(--ease) .4s both; }
body.ready .corner-note { animation: fade 1.2s ease .8s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes riseRight {
  from { opacity: 0; transform: translate(14px, -46%); }
  to { opacity: 1; transform: translate(0, -46%); }
}

@keyframes riseDock {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.78); }
}

/* ---------------- responsive ---------------- */

@media (max-width: 1060px) {
  .telemetry { width: 242px; padding: 15px 15px 14px; }
  .gauge { width: 136px; height: 136px; }
  .gauge__readout strong { font-size: 46px; }
  .hero h1 { font-size: clamp(54px, 8.8vw, 96px); }
}

@media (max-width: 860px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .brand__text em { display: none; }
  .meta-weather { display: none; }

  .hero {
    left: 18px;
    bottom: 104px;
    max-width: 70vw;
  }

  .hero__eyebrow { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(46px, 10vw, 72px); }
  .hero__sub { display: none; }
  .hero__hint { display: none; }

  .telemetry {
    top: 78px;
    right: 14px;
    transform: none;
    width: 202px;
    padding: 13px 13px 12px;
    border-radius: 18px;
  }

  body.ready .telemetry { animation: fade .8s ease .3s both; }

  .telemetry__head { margin-bottom: 0; }
  .gauge { width: 108px; height: 108px; margin: 0 auto 2px; }
  .gauge__readout strong { font-size: 36px; }
  .gauge__readout span { font-size: 6px; }
  .gauge__tick { display: none; }
  .stats { padding: 8px 0; margin-bottom: 10px; }
  .stat { padding: 0 8px; }
  .stat strong { font-size: 17px; }
  .controls { gap: 9px; }

  .corner-note { display: none; }
  .dock__btn { min-width: 48px; height: 48px; padding: 5px 6px; }
  .dock__btn span { display: none; }
  .dock { gap: 0; padding: 5px; border-radius: 16px; }
  .icon { width: 20px; height: 20px; }
  .toast { bottom: 92px; }
}

@media (max-width: 620px) {
  .brand__text strong { font-size: 9px; letter-spacing: .24em; }
  .brand__mark { width: 34px; height: 34px; }
  .meta-pill { height: 30px; padding: 0 11px; font-size: 9px; }
  .meta-pill__divider, .meta-pill .muted { display: none; }

  .telemetry {
    display: block;
    top: 66px;
    left: 14px;
    right: 14px;
    width: auto;
    padding: 9px 12px;
    border-radius: 14px;
  }

  .telemetry__head,
  .gauge,
  .stats { display: none; }

  .controls { flex-direction: row; gap: 14px; }
  .control { flex: 1; gap: 5px; }
  .control__label { font-size: 7px; }

  .hero { bottom: 92px; max-width: 82vw; }
  .hero__eyebrow { font-size: 7.5px; letter-spacing: .2em; }
  .hero h1 { font-size: clamp(42px, 13vw, 62px); line-height: .82; }

  .dock-wrap { bottom: max(14px, env(safe-area-inset-bottom)); gap: 8px; }
  .camera-badge { display: none; }
  .dock__btn { min-width: 43px; height: 44px; }
  .dock__btn--photo::before { display: none; }
  .toast { bottom: 78px; font-size: 8.5px; }
  .shutter {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #fff8ea;
  opacity: 0;
  pointer-events: none;
}

.shutter.is-flashing {
  animation: shutterFlash .6s cubic-bezier(.2,.7,.2,1);
}

@keyframes shutterFlash {
  0% { opacity: 0; }
  7% { opacity: .88; }
  100% { opacity: 0; }
}

.photo-hint { bottom: 22px; }
}

@media (max-height: 700px) and (min-width: 861px) {
  .hero { bottom: 26px; }
  .hero h1 { font-size: clamp(52px, 7.4vw, 88px); }
  .hero__hint { display: none; }
  .telemetry { top: 52%; transform: translateY(-50%); }
  .gauge { width: 120px; height: 120px; }
  .gauge__readout strong { font-size: 40px; }
  .stats { padding: 8px 0; margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .dock__btn, .toast, .loading { transition-duration: .001ms; }
}
