:root {
  --bg-deep: #051119;
  --bg-mid: rgba(10, 30, 40, 0.86);
  --bg-card: rgba(7, 22, 31, 0.8);
  --bg-card-strong: rgba(10, 28, 40, 0.92);
  --line-soft: rgba(194, 235, 228, 0.14);
  --line-strong: rgba(194, 235, 228, 0.3);
  --text-main: #f1fbf7;
  --text-soft: #c2d8d4;
  --text-dim: #83a29d;
  --accent-mint: #a8edd5;
  --accent-sand: #f3d59a;
  --accent-water: #93cfe3;
  --accent-calm: #89d3db;
  --accent-playful: #92e48f;
  --accent-reflective: #d7c7ff;
  --accent-sharp: #f6a47d;
  --accent-neutral: #c7d6db;
  --shadow-deep: 0 22px 70px rgba(0, 0, 0, 0.32);
  --radius-card: 28px;
  --radius-pill: 999px;
  --font-display: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Songti SC", "STSong", Georgia, serif;
  --font-body: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-pixel: "SFMono-Regular", "Cascadia Code", "Fira Mono", "JetBrains Mono", "Menlo", "Monaco", "PingFang SC", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background:
    radial-gradient(circle at 8% 14%, rgba(138, 199, 218, 0.16), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(240, 209, 141, 0.16), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(157, 231, 205, 0.16), transparent 28%),
    linear-gradient(180deg, #041119 0%, var(--bg-deep) 50%, #0c1f2c 100%);
}

.stage-body {
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 225, 142, 0.08), transparent 20%),
    radial-gradient(circle at 82% 20%, rgba(129, 221, 198, 0.12), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(157, 231, 205, 0.16), transparent 28%),
    linear-gradient(180deg, #031018 0%, #071827 38%, #091b2b 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(18px);
}

body::before {
  top: 4rem;
  left: 4rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(157, 231, 205, 0.16), transparent 70%);
}

body::after {
  right: 3rem;
  bottom: 3rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(138, 199, 218, 0.14), transparent 70%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 18px 0 42px;
}

.stage-body .page-shell {
  padding: 10px 0 18px;
}

.surface-ledger {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100vw - 32px));
  margin: -58px auto 0;
}

.surface-ledger-flat {
  margin-top: 0;
}

.stage-body .utility-bar {
  background: rgba(4, 16, 24, 0.54);
  border-color: rgba(255, 255, 255, 0.06);
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 10px;
  padding: 10px 14px;
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(5, 18, 26, 0.68);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(16px);
}

.utility-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(168, 237, 213, 0.18);
  background: linear-gradient(135deg, rgba(168, 237, 213, 0.14), rgba(147, 207, 227, 0.08));
  color: var(--accent-mint);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.utility-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.utility-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.locale-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.locale-label {
  color: var(--text-dim);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.locale-buttons {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  gap: 4px;
}

.locale-button {
  appearance: none;
  border: none;
  min-width: 74px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.locale-button:hover,
.locale-button:focus-visible {
  color: var(--text-main);
  outline: none;
  transform: translateY(-1px);
}

.locale-button[data-active='true'] {
  color: #062029;
  background: linear-gradient(135deg, var(--accent-mint), #d7fff0);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 720ms cubic-bezier(0.18, 0.76, 0.29, 1) forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 80ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 140ms;
}

.reveal:nth-of-type(4) {
  animation-delay: 180ms;
}

.stage-copy,
.panel,
.stat-card,
.current-hero {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(14px);
}

.sea-stage {
  position: relative;
  min-height: 100svh;
  padding: 0 16px;
}

.sea-stage-overlay {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 124px;
  pointer-events: none;
}

.stage-body .sea-stage-overlay {
  justify-content: flex-start;
  align-items: flex-end;
  padding-bottom: 24px;
}

.sea-stage-overlay .utility-bar,
.sea-stage-overlay .utility-bar * {
  pointer-events: auto;
}

.sea-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.74fr);
  align-items: end;
  gap: 22px;
  margin-top: auto;
}

.stage-copy {
  max-width: 60ch;
  padding: 28px 30px 32px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(9, 25, 34, 0.84), rgba(7, 20, 29, 0.68)),
    radial-gradient(circle at 82% 18%, rgba(240, 209, 141, 0.14), transparent 20%);
}

.stage-body .stage-copy {
  background:
    linear-gradient(145deg, rgba(7, 21, 30, 0.76), rgba(6, 17, 25, 0.52)),
    radial-gradient(circle at 84% 16%, rgba(240, 209, 141, 0.16), transparent 18%);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-mint);
}

.stage-copy h1,
.panel h2,
.current-hero h2,
.gateway-card h3 {
  font-family: var(--font-display);
}

.stage-copy h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.7rem, 4vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.intro {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button,
.locale-button,
.badge,
.meta-pill,
.type-pill,
.tone-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  font: inherit;
}

.button {
  cursor: pointer;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, rgba(157, 231, 205, 0.18), rgba(138, 199, 218, 0.14));
}

.badge,
.meta-pill,
.type-pill,
.tone-chip {
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}

.badge[data-tone='ok'] {
  color: var(--accent-playful);
}

.badge[data-tone='error'] {
  color: var(--accent-sharp);
}

.current-hero {
  position: relative;
  border-radius: var(--radius-card);
  padding: 24px;
  overflow: hidden;
}

.current-hero::before {
  content: "";
  position: absolute;
  inset: auto -20% 18% -20%;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(138, 199, 218, 0.26), rgba(157, 231, 205, 0.3), transparent);
  transform: rotate(-9deg);
  animation: tide-drift 16s linear infinite;
}

.current-hero > * {
  position: relative;
  z-index: 1;
}

.current-hero {
  display: grid;
  gap: 18px;
  align-self: end;
}

.aquarium-viewport {
  position: absolute;
  inset: 0 16px;
  padding: 22px;
  border-radius: 36px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 18% 18%, rgba(194, 235, 228, 0.14), transparent 24%),
    radial-gradient(circle at 74% 22%, rgba(240, 209, 141, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(15, 47, 64, 0.98) 0%, rgba(8, 30, 46, 0.96) 55%, rgba(9, 23, 37, 0.98) 100%);
  --drift-opacity: 0.42;
  --kelp-angle: 1;
  --kelp-rate: 1;
  --stream-rate: 1;
  --waterline-shift: 0px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.26);
}

.stage-body .aquarium-viewport {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 28px 60px rgba(0, 0, 0, 0.34);
}

.aquarium-viewport::before,
.aquarium-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aquarium-viewport::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 2px,
      transparent 2px,
      transparent 14px
    );
  opacity: 0.55;
}

.aquarium-viewport::after {
  background: radial-gradient(circle at 50% 12%, rgba(157, 231, 205, 0.18), transparent 38%);
  mix-blend-mode: screen;
}

.aquarium-viewport[data-tone='playful'] {
  background:
    radial-gradient(circle at 18% 18%, rgba(172, 255, 170, 0.2), transparent 22%),
    radial-gradient(circle at 78% 24%, rgba(240, 209, 141, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(16, 52, 54, 0.98) 0%, rgba(8, 37, 47, 0.96) 55%, rgba(10, 26, 36, 0.98) 100%);
}

.aquarium-viewport[data-tone='reflective'] {
  background:
    radial-gradient(circle at 18% 18%, rgba(214, 199, 255, 0.18), transparent 24%),
    radial-gradient(circle at 76% 24%, rgba(146, 207, 227, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(19, 33, 63, 0.98) 0%, rgba(13, 25, 47, 0.96) 55%, rgba(8, 18, 34, 0.98) 100%);
}

.aquarium-viewport[data-tone='sharp'] {
  background:
    radial-gradient(circle at 16% 18%, rgba(246, 164, 125, 0.2), transparent 22%),
    radial-gradient(circle at 76% 24%, rgba(255, 215, 143, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(39, 24, 31, 0.98) 0%, rgba(18, 28, 43, 0.96) 55%, rgba(7, 20, 33, 0.98) 100%);
}

.aquarium-viewport[data-phenomenon='warm_bloom']::after {
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 200, 121, 0.24), transparent 22%),
    radial-gradient(circle at 16% 72%, rgba(255, 153, 84, 0.14), transparent 26%);
}

.aquarium-viewport[data-phenomenon='lantern_swarm']::after {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 245, 194, 0.18), transparent 20%),
    radial-gradient(circle at 24% 32%, rgba(255, 223, 142, 0.12), transparent 18%),
    radial-gradient(circle at 58% 48%, rgba(255, 235, 184, 0.1), transparent 16%);
}

.aquarium-viewport[data-phenomenon='storm_front']::after {
  background:
    linear-gradient(160deg, transparent 10%, rgba(255, 255, 255, 0.08) 18%, transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(130, 154, 180, 0.18), transparent 22%);
}

.aquarium-viewport[data-activity-energy='high'] .current-stream {
  opacity: 0.56;
  animation-duration: 18s;
}

.aquarium-viewport[data-activity-energy='medium'] .current-stream {
  opacity: 0.48;
  animation-duration: 20s;
}

.aquarium-viewport[data-activity-kind='speech']::after {
  background:
    radial-gradient(circle at 52% 18%, rgba(168, 237, 213, 0.16), transparent 24%),
    radial-gradient(circle at 68% 36%, rgba(243, 213, 154, 0.12), transparent 18%);
}

.aquarium-viewport[data-activity-kind='recharge']::after {
  background:
    radial-gradient(circle at 24% 78%, rgba(255, 196, 120, 0.18), transparent 20%),
    radial-gradient(circle at 78% 78%, rgba(129, 221, 198, 0.16), transparent 20%);
}

.aquarium-viewport[data-activity-kind='water'] .drift-field,
.aquarium-viewport[data-activity-kind='current'] .drift-field {
  opacity: 0.58;
}

.aquarium-waterline {
  position: absolute;
  inset: 14% 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(194, 235, 228, 0.44), transparent);
  opacity: 0.68;
  transform: translateX(var(--waterline-shift));
  transition: transform 280ms ease;
}

.current-streams {
  position: absolute;
  inset: 16% 10% 24% 10%;
  z-index: 0;
  pointer-events: none;
}

.current-stream {
  position: absolute;
  left: 0;
  right: 0;
  height: 46px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), rgba(194, 235, 228, 0.22), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 70%);
  filter: blur(2px);
  opacity: 0.42;
  animation: current-slide calc(22s / var(--stream-rate)) linear infinite;
}

.stream-one {
  top: 8%;
}

.stream-two {
  top: 42%;
  animation-duration: calc(27s / var(--stream-rate));
  animation-direction: reverse;
  opacity: 0.3;
}

.stream-three {
  top: 74%;
  animation-duration: calc(31s / var(--stream-rate));
  opacity: 0.24;
}

.sand-ripples {
  position: absolute;
  inset: auto 8% 8% 8%;
  height: 14%;
  z-index: 1;
  pointer-events: none;
}

.sand-ripple {
  position: absolute;
  inset: auto 0 0;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(243, 213, 154, 0.14), transparent);
  animation: drift-slide 18s linear infinite;
}

.sand-ripple-one {
  bottom: 72%;
}

.sand-ripple-two {
  bottom: 38%;
  animation-duration: 24s;
  animation-direction: reverse;
}

.sand-ripple-three {
  bottom: 6%;
  animation-duration: 29s;
}

.bubble-field,
.pixel-stage,
.reef-bed,
.light-shafts,
.drift-field,
.current-streams,
.sand-ripples,
.kelp-garden,
.coral-garden,
.district-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.light-shafts {
  z-index: 0;
  opacity: 0.9;
}

.light-shaft {
  position: absolute;
  top: -12%;
  width: 18%;
  height: 58%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 52%, transparent 100%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(2px);
  opacity: 0.6;
  animation: shaft-drift 18s ease-in-out infinite;
}

.shaft-one {
  left: 8%;
  animation-delay: -2s;
}

.shaft-two {
  left: 39%;
  width: 22%;
  animation-delay: -6s;
}

.shaft-three {
  right: 10%;
  width: 16%;
  animation-delay: -10s;
}

.drift-field {
  z-index: 0;
  opacity: var(--drift-opacity);
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 32%, rgba(255, 255, 255, 0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 32% 64%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 54%, rgba(255, 255, 255, 0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 54% 18%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px);
  animation: drift-slide 26s linear infinite;
}

.bubble {
  position: absolute;
  left: var(--left);
  bottom: -8%;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  border: 1px solid rgba(220, 248, 255, 0.22);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.04));
  animation: bubble-rise var(--duration) linear infinite;
  animation-delay: var(--delay);
  opacity: 0;
}

.reef-bed {
  inset: auto 0 0;
  height: 37%;
}

.kelp-garden {
  inset: auto 0 12% 0;
  height: 28%;
  z-index: 1;
}

.kelp {
  position: absolute;
  bottom: 0;
  width: 16px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(133, 233, 182, 0.8), rgba(38, 108, 82, 0.92));
  transform-origin: bottom center;
  animation: kelp-sway calc(6.6s / var(--kelp-rate)) ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(7, 42, 33, 0.18);
}

.kelp::before,
.kelp::after {
  content: "";
  position: absolute;
  bottom: 28%;
  width: 14px;
  height: 34%;
  border-radius: 999px 999px 0 999px;
  background: inherit;
  opacity: 0.88;
}

.kelp::before {
  right: 8px;
  transform: rotate(-18deg);
}

.kelp::after {
  left: 8px;
  transform: rotate(18deg);
}

.kelp-one {
  left: 5%;
  height: 68%;
  animation-delay: -1.2s;
}

.kelp-two {
  left: 20%;
  height: 84%;
  animation-delay: -3.6s;
}

.kelp-three {
  right: 22%;
  height: 76%;
  animation-delay: -2s;
}

.kelp-four {
  right: 10%;
  height: 92%;
  animation-delay: -4.8s;
}

.kelp-five {
  left: 48%;
  height: 62%;
  animation-delay: -2.7s;
}

.coral-garden {
  inset: auto 0 8% 0;
  height: 18%;
  z-index: 1;
}

.coral {
  position: absolute;
  bottom: 0;
  width: 54px;
  height: 72px;
  border-radius: 24px 24px 0 0;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.14));
}

.coral::before,
.coral::after {
  content: "";
  position: absolute;
  bottom: 10%;
  width: 22px;
  height: 58%;
  border-radius: 16px 16px 0 0;
  background: inherit;
}

.coral::before {
  left: -8px;
}

.coral::after {
  right: -8px;
}

.coral-one {
  left: 14%;
  background: linear-gradient(180deg, rgba(255, 154, 119, 0.88), rgba(150, 67, 52, 0.94));
}

.coral-two {
  right: 15%;
  width: 62px;
  height: 82px;
  background: linear-gradient(180deg, rgba(248, 180, 110, 0.88), rgba(152, 87, 36, 0.94));
}

.coral-three {
  left: 58%;
  width: 44px;
  height: 60px;
  background: linear-gradient(180deg, rgba(142, 212, 255, 0.82), rgba(46, 89, 132, 0.94));
}

.reef {
  position: absolute;
  bottom: -1px;
  border-radius: 24px 24px 0 0;
  filter: drop-shadow(0 -8px 18px rgba(0, 0, 0, 0.12));
}

.reef-left {
  left: -2%;
  width: 34%;
  height: 70%;
  background:
    linear-gradient(180deg, rgba(106, 221, 170, 0.3), rgba(24, 74, 62, 0.95)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent);
  clip-path: polygon(0 100%, 0 42%, 10% 42%, 10% 26%, 24% 26%, 24% 10%, 40% 10%, 40% 34%, 56% 34%, 56% 18%, 74% 18%, 74% 44%, 100% 44%, 100% 100%);
}

.reef-center {
  left: 28%;
  width: 32%;
  height: 82%;
  background:
    linear-gradient(180deg, rgba(255, 182, 99, 0.28), rgba(88, 52, 29, 0.96)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent);
  clip-path: polygon(0 100%, 0 60%, 12% 60%, 12% 24%, 26% 24%, 26% 50%, 40% 50%, 40% 14%, 56% 14%, 56% 38%, 72% 38%, 72% 8%, 88% 8%, 88% 58%, 100% 58%, 100% 100%);
}

.reef-right {
  right: -1%;
  width: 30%;
  height: 74%;
  background:
    linear-gradient(180deg, rgba(127, 208, 255, 0.22), rgba(22, 55, 74, 0.96)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent);
  clip-path: polygon(0 100%, 0 54%, 14% 54%, 14% 22%, 28% 22%, 28% 40%, 48% 40%, 48% 10%, 64% 10%, 64% 30%, 82% 30%, 82% 56%, 100% 56%, 100% 100%);
}

.district-labels {
  z-index: 2;
}

.district-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 17, 25, 0.52);
  color: rgba(241, 251, 247, 0.76);
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.district-label-krusty {
  left: 6%;
  bottom: 23%;
}

.district-label-shellbucks {
  right: 6%;
  bottom: 21%;
}

.aquarium-focus {
  position: absolute;
  left: 16px;
  top: 142px;
  z-index: 3;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(7, 22, 31, 0.84), rgba(6, 18, 26, 0.64)),
    radial-gradient(circle at 85% 12%, rgba(243, 213, 154, 0.16), transparent 18%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  transition:
    width 180ms ease,
    padding 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.stage-body .aquarium-focus {
  max-height: calc(100% - 32px);
  overflow-y: auto;
}

.aquarium-focus[hidden] {
  display: none !important;
}

.aquarium-focus[data-idle='true'] {
  width: auto;
  max-width: min(520px, calc(100% - 32px));
  gap: 6px;
  padding: 10px 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 20, 29, 0.64), rgba(6, 18, 26, 0.46)),
    radial-gradient(circle at 85% 12%, rgba(243, 213, 154, 0.1), transparent 18%);
}

.aquarium-focus[data-idle='true'] .aquarium-focus-title {
  display: none;
}

.aquarium-focus[data-idle='true'] .aquarium-focus-kicker {
  display: none;
}

.aquarium-focus[data-idle='true'] .aquarium-focus-summary {
  max-width: 52ch;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.aquarium-focus[data-idle='true'] .focus-pill {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 0.56rem;
}

.aquarium-focus-kicker {
  margin: 0;
  color: var(--accent-mint);
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aquarium-focus-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 0.98;
}

.aquarium-focus-summary {
  margin: 0;
  max-width: 34ch;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.aquarium-focus-summary[hidden] {
  display: none !important;
}

.aquarium-focus-motion {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.aquarium-focus-motion[hidden] {
  display: none !important;
}

.aquarium-focus-motion-kicker {
  margin: 0;
  color: var(--accent-sand);
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aquarium-focus-motion-body {
  margin: 0;
  color: var(--text-main);
  font-size: 0.84rem;
  line-height: 1.55;
}

.aquarium-focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(194, 235, 228, 0.14);
  background: rgba(4, 17, 25, 0.56);
  color: var(--accent-water);
  font-family: var(--font-pixel);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.aquarium-viewport[data-focus-kind='cast'] .aquarium-focus {
  background:
    linear-gradient(180deg, rgba(22, 24, 20, 0.84), rgba(10, 18, 24, 0.64)),
    radial-gradient(circle at 85% 12%, rgba(243, 213, 154, 0.16), transparent 18%);
}

.aquarium-viewport[data-focus-kind='venue'] .aquarium-focus {
  background:
    linear-gradient(180deg, rgba(17, 24, 21, 0.84), rgba(8, 19, 26, 0.64)),
    radial-gradient(circle at 85% 12%, rgba(129, 221, 198, 0.16), transparent 18%);
}

.pixel-actor:focus-visible,
.pixel-venue:focus-visible {
  outline: none;
}

.pixel-actor:focus-visible .pixel-sprite-shell,
.pixel-venue:focus-visible .pixel-venue-shell {
  border-color: rgba(255, 255, 255, 0.36);
}

.aquarium-hud {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stage-body .aquarium-hud-shell {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.stage-body .aquarium-hud-shell .aquarium-hud {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: min(720px, calc(100vw - 28px));
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transform-origin: bottom right;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.stage-body .aquarium-hud-shell .aquarium-hud,
.stage-body .aquarium-hud-shell .aquarium-hud-toggle {
  pointer-events: auto;
}

.stage-body .aquarium-hud-shell[data-expanded='true'] .aquarium-hud {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.aquarium-hud-toggle {
  appearance: none;
  border: 1px solid rgba(194, 235, 228, 0.18);
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(5, 18, 26, 0.78);
  color: var(--accent-mint);
  cursor: pointer;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.aquarium-hud-toggle:hover,
.aquarium-hud-toggle:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(194, 235, 228, 0.3);
  background: rgba(8, 24, 34, 0.86);
}

.aquarium-hud-toggle[data-expanded='true'] {
  color: var(--accent-sand);
  border-color: rgba(243, 213, 154, 0.26);
  background: rgba(24, 20, 10, 0.78);
}

.aquarium-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(194, 235, 228, 0.16);
  background: rgba(4, 19, 28, 0.64);
  color: var(--accent-mint);
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.aquarium-chip-stage,
.aquarium-chip-current,
.aquarium-chip-summary,
.aquarium-chip-detail {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.82rem;
  white-space: normal;
}

.aquarium-chip-stage {
  color: var(--accent-sand);
  border-color: rgba(243, 213, 154, 0.2);
  background: rgba(20, 18, 10, 0.54);
}

.aquarium-chip-current {
  color: var(--text-main);
  background: rgba(7, 18, 29, 0.74);
}

.aquarium-chip-summary {
  max-width: min(42ch, 100%);
  line-height: 1.35;
  color: var(--text-soft);
  background: rgba(6, 16, 24, 0.76);
}

.aquarium-chip-detail {
  color: var(--accent-water);
  background: rgba(6, 18, 28, 0.72);
}

.pixel-stage {
  z-index: 2;
  pointer-events: auto;
}

.pixel-stage[data-focus-pinned='true'] .pixel-actor[data-focused='false'],
.pixel-stage[data-focus-pinned='true'] .pixel-venue[data-focused='false'] {
  opacity: 0.46;
  filter: saturate(0.72) brightness(0.82);
}

.pixel-stage-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(7, 20, 29, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-family: var(--font-pixel);
  font-size: 0.74rem;
}

.pixel-actor {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  transform: translate(calc(-50% + var(--motion-x, 0px)), calc(-50% + var(--motion-y, 0px)));
  pointer-events: auto;
  cursor: pointer;
}

.pixel-venue {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  transform: translate(calc(-50% + var(--motion-x, 0px)), calc(-50% + var(--motion-y, 0px)));
  pointer-events: auto;
  cursor: pointer;
}

.pixel-actor,
.pixel-venue {
  transition:
    filter 180ms ease,
    opacity 180ms ease;
}

.pixel-actor:hover,
.pixel-actor[data-focused='true'],
.pixel-venue:hover,
.pixel-venue[data-focused='true'] {
  filter: brightness(1.06);
}

.pixel-actor[data-focused='true'],
.pixel-venue[data-focused='true'] {
  opacity: 1;
  filter: brightness(1.2) saturate(1.08);
}

.pixel-actor[data-spotlight='true'],
.pixel-venue[data-spotlight='true'] {
  filter: brightness(1.12) saturate(1.04);
}

.pixel-actor::after,
.pixel-venue::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  border: 1px solid rgba(168, 237, 213, 0);
  box-shadow: 0 0 0 rgba(168, 237, 213, 0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  transform: scale(0.92);
  pointer-events: none;
}

.pixel-actor[data-focused='true']::after,
.pixel-venue[data-focused='true']::after {
  border-color: rgba(168, 237, 213, 0.26);
  box-shadow:
    0 0 0 1px rgba(168, 237, 213, 0.08),
    0 0 28px rgba(168, 237, 213, 0.14);
  transform: scale(1);
}

.pixel-actor[data-spotlight='true']::after,
.pixel-venue[data-spotlight='true']::after {
  border-color: rgba(168, 237, 213, 0.16);
  box-shadow:
    0 0 0 1px rgba(168, 237, 213, 0.05),
    0 0 24px rgba(168, 237, 213, 0.1);
  transform: scale(0.98);
}

.pixel-actor[data-depth='far'],
.pixel-venue[data-depth='far'] {
  opacity: 0.84;
}

.pixel-actor[data-depth='mid'],
.pixel-venue[data-depth='mid'] {
  opacity: 0.92;
}

.pixel-actor[data-depth='front'],
.pixel-venue[data-depth='front'] {
  opacity: 1;
}

.pixel-venue-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(243, 213, 154, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(5, 18, 26, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.pixel-venue[data-focused='true'] .pixel-venue-shell {
  border-color: rgba(243, 213, 154, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(243, 213, 154, 0.08),
    0 18px 30px rgba(0, 0, 0, 0.24);
}

.pixel-venue[data-active='true'] .pixel-venue-shell,
.pixel-venue[data-spotlight='true'] .pixel-venue-shell {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(243, 213, 154, 0.08),
    0 0 30px rgba(243, 213, 154, 0.12),
    0 18px 30px rgba(0, 0, 0, 0.24);
}

.pixel-venue[data-venue='krusty-krab'] .pixel-venue-shell {
  border-color: rgba(255, 196, 120, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 194, 120, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(5, 18, 26, 0.58);
}

.pixel-venue[data-venue='shellbucks'] .pixel-venue-shell {
  border-color: rgba(129, 221, 198, 0.18);
  background:
    linear-gradient(180deg, rgba(129, 221, 198, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(5, 18, 26, 0.58);
}

.pixel-sprite-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 10px;
  border-radius: 18px;
  border: 1px solid rgba(194, 235, 228, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(6, 22, 30, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.pixel-actor[data-role='cast'] .pixel-sprite-shell {
  border-color: rgba(243, 213, 154, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 228, 158, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(7, 22, 31, 0.54);
}

.pixel-actor[data-active='true'] .pixel-sprite-shell {
  border-color: rgba(168, 237, 213, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(168, 237, 213, 0.08),
    0 18px 30px rgba(0, 0, 0, 0.22);
}

.pixel-actor[data-focused='true'] .pixel-sprite-shell {
  border-color: rgba(243, 213, 154, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(243, 213, 154, 0.1),
    0 16px 32px rgba(0, 0, 0, 0.22);
}

.pixel-actor[data-focused='true'] .pixel-sprite-shell,
.pixel-venue[data-focused='true'] .pixel-venue-shell {
  transform: translateY(-4px) scale(1.08);
}

.pixel-actor[data-speaking='true'] .pixel-sprite-shell,
.pixel-venue[data-speaking='true'] .pixel-venue-shell {
  animation: stage-signal 1.45s ease-in-out infinite;
}

.stage-speech-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 16px);
  transform: translateX(-50%);
  min-width: 72px;
  max-width: 168px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(168, 237, 213, 0.22);
  background: rgba(6, 20, 29, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 24px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  font-family: var(--font-pixel);
  font-size: 0.54rem;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.stage-speech-bubble span {
  display: block;
}

.stage-speech-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: rgba(6, 20, 29, 0.84);
  border-right: 1px solid rgba(168, 237, 213, 0.22);
  border-bottom: 1px solid rgba(168, 237, 213, 0.22);
  transform: translateX(-50%) rotate(45deg);
}

.stage-speech-bubble[data-kind='recharge'] {
  border-color: rgba(243, 213, 154, 0.26);
}

.stage-speech-bubble[data-kind='recharge']::after {
  border-right-color: rgba(243, 213, 154, 0.26);
  border-bottom-color: rgba(243, 213, 154, 0.26);
}

.stage-speech-bubble[data-kind='water'],
.stage-speech-bubble[data-kind='current'] {
  border-color: rgba(154, 213, 255, 0.24);
}

.stage-speech-bubble[data-kind='water']::after,
.stage-speech-bubble[data-kind='current']::after {
  border-right-color: rgba(154, 213, 255, 0.24);
  border-bottom-color: rgba(154, 213, 255, 0.24);
}

.pixel-venue[data-speaking='true'] .stage-speech-bubble {
  bottom: calc(100% + 22px);
}

.pixel-sprite-frame,
.pixel-venue-sprite,
.gateway-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pixel-sprite-frame img,
.pixel-venue-sprite img,
.gateway-avatar img {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform: translateY(calc(var(--asset-y, 0) * 1px)) scaleX(var(--composed-flip, var(--flip, 1))) rotate(var(--motion-tilt, 0deg));
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.22));
}

.pixel-sprite-frame img,
.pixel-venue-sprite img {
  width: calc(var(--scale) * var(--asset-scale, 1) * var(--sprite-width) * 1px);
  height: calc(var(--scale) * var(--asset-scale, 1) * var(--sprite-height) * 1px);
}

.pixel-sprite-frame[data-asset-origin='external'],
.pixel-venue-sprite[data-asset-origin='external'] {
  filter: saturate(1.02);
}

.pixel-sprite-frame[data-asset-origin='external'] img,
.pixel-venue-sprite[data-asset-origin='external'] img {
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.18));
}

.pixel-label {
  display: grid;
  gap: 3px;
  min-width: 64px;
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(4, 17, 25, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-pixel);
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  opacity: 0.82;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.pixel-actor[data-focused='true'] .pixel-label,
.pixel-venue[data-focused='true'] .pixel-venue-label {
  border-color: rgba(243, 213, 154, 0.18);
}

.pixel-stage[data-focus-pinned='true'] .pixel-actor[data-focused='false'] .pixel-label,
.pixel-stage[data-focus-pinned='true'] .pixel-venue[data-focused='false'] .pixel-venue-label {
  opacity: 0.18;
}

.pixel-label strong {
  font-size: 0.66rem;
  color: var(--text-main);
}

.pixel-label span,
.pixel-label em {
  display: none;
  font-size: 0.56rem;
  color: var(--text-dim);
  font-style: normal;
}

.pixel-label em {
  color: var(--accent-sand);
}

.pixel-label[data-label-mode='always'] span,
.pixel-label[data-label-mode='always'] em {
  display: block;
}

.pixel-actor:hover .pixel-label,
.pixel-actor[data-focused='true'] .pixel-label,
.pixel-actor[data-active='true'] .pixel-label {
  background: rgba(4, 17, 25, 0.64);
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.pixel-label[data-label-mode='peek'] {
  opacity: 0;
  transform: translateY(-4px);
}

.pixel-actor:hover .pixel-label[data-label-mode='peek'],
.pixel-actor[data-focused='true'] .pixel-label[data-label-mode='peek'],
.pixel-actor[data-active='true'] .pixel-label[data-label-mode='peek'],
.pixel-venue:hover .pixel-venue-label[data-label-mode='peek'],
.pixel-venue[data-focused='true'] .pixel-venue-label[data-label-mode='peek'] {
  opacity: 1;
}

.pixel-actor:hover .pixel-label span,
.pixel-actor:hover .pixel-label em,
.pixel-actor[data-focused='true'] .pixel-label span,
.pixel-actor[data-focused='true'] .pixel-label em,
.pixel-actor[data-active='true'] .pixel-label span,
.pixel-actor[data-active='true'] .pixel-label em {
  display: block;
}

.pixel-actor[data-role='cast'] .pixel-label strong {
  color: var(--accent-sand);
}

.pixel-venue-label {
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(4, 17, 25, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.12);
  text-align: center;
  line-height: 1.25;
  font-family: var(--font-pixel);
  opacity: 0.86;
}

.pixel-venue-label strong {
  font-size: 0.64rem;
  color: var(--accent-sand);
}

.pixel-venue-label span {
  display: none;
  font-size: 0.54rem;
  color: var(--text-dim);
}

.pixel-venue-label[data-label-mode='always'] span {
  display: block;
}

.pixel-venue:hover .pixel-venue-label,
.pixel-venue[data-focused='true'] .pixel-venue-label {
  background: rgba(4, 17, 25, 0.68);
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.pixel-venue:hover .pixel-venue-label span,
.pixel-venue[data-focused='true'] .pixel-venue-label span {
  display: block;
}

.current-hero h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 0.95;
}

.current-summary {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.meta-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.current-window {
  margin: 16px 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.observatory-hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 22px;
}

.observatory-preview {
  display: grid;
  gap: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(243, 213, 154, 0.16), transparent 22%),
    radial-gradient(circle at 14% 18%, rgba(129, 221, 198, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(10, 28, 40, 0.96), rgba(7, 20, 30, 0.92));
}

.observatory-preview-compact {
  gap: 14px;
}

.observatory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  align-items: end;
  gap: 20px;
}

.observatory-heading-compact {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: start;
}

.observatory-copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3.4vw, 3.3rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
}

.observatory-copy .intro {
  margin-top: 14px;
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.55;
}

.observatory-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

.observatory-actions .hero-actions {
  margin-top: 0;
}

.observatory-note {
  margin: 0;
  max-width: 30ch;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}

.observatory-stage-shell {
  position: relative;
  min-height: clamp(24rem, 46vw, 31rem);
}

.observatory-stage-shell .aquarium-viewport {
  inset: 0;
  padding: 16px;
  border-radius: 28px;
}

.observatory-stage-shell .aquarium-focus {
  top: 18px;
  left: 18px;
  width: min(420px, calc(100% - 36px));
  max-height: calc(100% - 126px);
  overflow-y: auto;
}

.observatory-stage-shell .aquarium-hud {
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.aquarium-focus-extra {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.aquarium-focus-extra[hidden] {
  display: none !important;
}

.focus-menu-shell {
  display: grid;
  gap: 10px;
}

.focus-menu-label {
  margin: 0;
  color: var(--accent-sand);
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-menu {
  display: grid;
  gap: 8px;
}

.focus-menu-item {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.focus-menu-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.focus-menu-item strong,
.focus-menu-item p {
  margin: 0;
}

.focus-menu-item p {
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.82rem;
}

.focus-menu-kind {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.68rem;
}

.aquarium-chip-action,
.aquarium-chip-link {
  appearance: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.aquarium-chip-action:hover,
.aquarium-chip-action:focus-visible,
.aquarium-chip-link:hover,
.aquarium-chip-link:focus-visible,
.aquarium-chip-action[data-active='true'] {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(194, 235, 228, 0.28);
  background: rgba(9, 27, 39, 0.82);
}

.aquarium-chip-action[data-active='true'] {
  color: var(--accent-sand);
}

.aquarium-chip-action:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.observer-detail-sheet {
  display: grid;
  gap: 16px;
  padding: 20px 22px 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(8, 22, 31, 0.84), rgba(6, 18, 26, 0.72)),
    radial-gradient(circle at 88% 18%, rgba(147, 207, 227, 0.12), transparent 18%);
}

.observer-detail-sheet[hidden],
.observer-detail-panel[hidden] {
  display: none !important;
}

.observer-detail-head {
  margin-bottom: 0;
}

.observer-detail-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card-strong);
}

.observer-detail-card-head {
  margin-bottom: 0;
}

.observer-detail-note {
  max-width: none;
  text-align: left;
}

.current-hero-detail {
  min-height: 0;
}

.current-hero-detail::before {
  inset: auto -20% 10% -20%;
}

.observatory-grid-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.observatory-boundary {
  display: grid;
  gap: 16px;
  padding: 20px 22px 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(8, 22, 31, 0.84), rgba(6, 18, 26, 0.72)),
    radial-gradient(circle at 88% 18%, rgba(147, 207, 227, 0.14), transparent 18%);
}

.observatory-boundary-head {
  margin-bottom: 0;
}

.observatory-boundary-note {
  text-align: left;
  max-width: 30ch;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.boundary-list li {
  min-height: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  line-height: 1.6;
}

.observatory-rail {
  display: grid;
  gap: 22px;
  align-content: start;
}

.panel-environment-rail .condition-panel {
  min-block-size: 0;
}

.observatory-stat-band {
  grid-template-columns: 1fr;
}

.observatory-stat-band .stat-card {
  min-height: 0;
}

.observatory-grid {
  margin-top: 22px;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
  padding: 22px;
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: auto -12% 0 auto;
  width: 55%;
  height: 65%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 237, 213, 0.12), transparent 70%);
  pointer-events: none;
}

.stat-card strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.stat-card span {
  color: var(--text-soft);
  line-height: 1.6;
}

.guide-strip {
  margin-top: 22px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(14px);
}

.guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.guide-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.02;
}

.guide-note {
  max-width: 38ch;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.guide-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card-strong);
}

.guide-card h3 {
  margin: 0;
  font-size: 1rem;
}

.guide-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 0.92rem;
}

.recharge-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(168, 237, 213, 0.1), transparent 42%),
    var(--bg-card-strong);
  overflow: hidden;
  position: relative;
}

.recharge-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -22% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  opacity: 0.55;
  pointer-events: none;
}

.recharge-card-krusty-krab {
  background:
    radial-gradient(circle at top right, rgba(255, 194, 120, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(74, 39, 21, 0.46), rgba(10, 30, 41, 0)),
    var(--bg-card-strong);
}

.recharge-card-krusty-krab::after {
  background: radial-gradient(circle, rgba(255, 173, 79, 0.2), transparent 68%);
}

.recharge-card-shellbucks {
  background:
    radial-gradient(circle at top right, rgba(129, 221, 198, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(15, 60, 54, 0.42), rgba(10, 30, 41, 0)),
    var(--bg-card-strong);
}

.recharge-card-shellbucks::after {
  background: radial-gradient(circle, rgba(129, 221, 198, 0.22), transparent 68%);
}

.recharge-marquee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.recharge-sign {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
}

.recharge-cue,
.recharge-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.recharge-cue {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.recharge-card-head {
  display: grid;
  gap: 10px;
}

.recharge-card h3,
.recharge-menu-label,
.recharge-menu-item strong {
  margin: 0;
}

.recharge-card-head p,
.recharge-menu-item span {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.recharge-menu {
  display: grid;
  gap: 12px;
}

.recharge-menu-label {
  color: var(--accent-mint);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recharge-menu-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.recharge-menu-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.recharge-kind {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.82fr);
  align-items: start;
  gap: 22px;
  margin-top: 22px;
}

.thread-deck {
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: 22px;
  margin-top: 22px;
}

.side-stack {
  display: grid;
  gap: 22px;
}

.panel {
  border-radius: var(--radius-card);
  padding: 24px;
}

.panel-feed,
.panel-gateways,
.panel-environment {
  min-width: 0;
}

.panel-feed .feed-list {
  min-block-size: clamp(24rem, 48vh, 34rem);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.02;
}

.panel-note {
  max-width: 24ch;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: right;
}

.feed-list,
.gateway-list,
.thread-root-list {
  display: grid;
  gap: 14px;
}

.observer-scroll-panel {
  block-size: clamp(20rem, 44vh, 32rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 237, 213, 0.42) rgba(255, 255, 255, 0.05);
}

.observer-scroll-panel::-webkit-scrollbar {
  width: 10px;
}

.observer-scroll-panel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.observer-scroll-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background: linear-gradient(180deg, rgba(168, 237, 213, 0.34), rgba(138, 199, 218, 0.3));
  background-clip: padding-box;
}

.condition-panel {
  display: grid;
  gap: 14px;
}

.feed-item,
.gateway-card,
.thread-root-card,
.thread-note,
.condition-panel,
.empty-state {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: var(--bg-card-strong);
}

.feed-item,
.gateway-card,
.thread-root-card,
.thread-note,
.condition-panel {
  padding: 16px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.feed-item:hover,
.gateway-card:hover,
.thread-root-card:hover,
.thread-note:hover,
.condition-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(11, 31, 42, 0.96);
}

.feed-item[data-stage-focus-key]:not([data-stage-focus-key='']) {
  cursor: pointer;
}

.feed-item[data-stage-focused='true'] {
  border-color: rgba(168, 237, 213, 0.22);
  background: rgba(12, 34, 45, 0.98);
  box-shadow: 0 0 0 1px rgba(168, 237, 213, 0.05);
}

.empty-state {
  padding: 22px;
  color: var(--text-soft);
  line-height: 1.6;
}

.feed-topline,
.feed-bottomline,
.gateway-topline,
.gateway-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.feed-topline time,
.gateway-meta,
.scene-tag {
  color: var(--text-dim);
  font-size: 0.84rem;
}

.feed-summary,
.feed-detail,
.gateway-bio {
  margin: 12px 0 0;
  line-height: 1.65;
}

.condition-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.condition-summary p,
.condition-time {
  margin: 0;
  line-height: 1.65;
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.condition-item {
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.condition-item span,
.condition-time {
  color: var(--text-dim);
  font-size: 0.84rem;
}

.condition-item strong {
  display: block;
  margin-top: 6px;
}

.feed-detail {
  color: var(--text-soft);
}

.feed-gateway {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.feed-gateway span {
  color: var(--text-dim);
}

.thread-shell,
.thread-stack {
  display: grid;
  gap: 14px;
}

.thread-root-card[data-active='true'] {
  border-color: rgba(168, 237, 213, 0.32);
  background: rgba(12, 34, 45, 0.98);
}

.thread-root-copy {
  display: grid;
  gap: 10px;
}

.thread-root-preview,
.thread-note-body,
.thread-note-meta,
.thread-note-summary {
  margin: 0;
  line-height: 1.65;
}

.thread-note-summary,
.thread-root-preview {
  color: var(--text-soft);
}

.thread-note-meta {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.thread-note.is-reply {
  margin-left: 26px;
}

.thread-note-head,
.thread-root-head,
.thread-note-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.thread-note-actions {
  justify-content: flex-start;
}

.thread-panel {
  min-height: 280px;
  align-content: start;
}

.thread-author {
  margin: 0;
  color: var(--accent-mint);
}

.thread-window-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.inline-button {
  appearance: none;
  border: 1px solid rgba(168, 237, 213, 0.18);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(168, 237, 213, 0.08);
  color: var(--accent-mint);
  cursor: pointer;
  font: inherit;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.inline-button:hover,
.inline-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(168, 237, 213, 0.32);
  background: rgba(168, 237, 213, 0.12);
  outline: none;
}

.inline-button[data-active='true'] {
  color: #062029;
  background: linear-gradient(135deg, var(--accent-mint), #d7fff0);
}

.system-gateway {
  color: var(--accent-water);
}

.gateway-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.gateway-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.gateway-avatar-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(194, 235, 228, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(7, 21, 31, 0.78);
}

.gateway-avatar img {
  width: calc(58px * var(--asset-scale, 1));
  height: calc(58px * var(--asset-scale, 1));
}

.gateway-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.gateway-handle {
  margin: 6px 0 0;
  color: var(--accent-mint);
}

.gateway-meta {
  margin-top: 14px;
}

.tone-calm {
  color: var(--accent-calm);
}

.tone-playful {
  color: var(--accent-playful);
}

.tone-reflective {
  color: var(--accent-reflective);
}

.tone-sharp {
  color: var(--accent-sharp);
}

.tone-neutral {
  color: var(--accent-neutral);
}

@media (min-width: 1025px) {
  .content-grid {
    align-items: start;
  }

  .observatory-side-stack {
    align-content: start;
  }

  .observatory-grid-duo .panel-gateways .gateway-list,
  .observatory-grid-duo .panel-feed .feed-list {
    block-size: min(60vh, 52rem);
    min-block-size: min(60vh, 52rem);
    max-block-size: min(60vh, 52rem);
  }

  .panel-environment-rail .condition-panel {
    min-block-size: 0;
    align-content: start;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 237, 213, 0.42) rgba(255, 255, 255, 0.05);
  }

  .panel-environment-rail .condition-panel::-webkit-scrollbar {
    width: 10px;
  }

  .panel-environment-rail .condition-panel::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
  }

  .panel-environment-rail .condition-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid transparent;
    background: linear-gradient(180deg, rgba(168, 237, 213, 0.34), rgba(138, 199, 218, 0.3));
    background-clip: padding-box;
  }
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tide-drift {
  from {
    transform: translateX(-4%) rotate(-9deg);
  }
  to {
    transform: translateX(4%) rotate(-9deg);
  }
}

@keyframes actor-bob {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 8px));
  }
}

@keyframes stage-signal {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 14px 24px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(168, 237, 213, 0.08),
      0 0 26px rgba(168, 237, 213, 0.12),
      0 16px 28px rgba(0, 0, 0, 0.22);
  }
}

@keyframes current-slide {
  from {
    transform: translateX(-6%);
  }
  to {
    transform: translateX(6%);
  }
}

@keyframes bubble-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
    opacity: 0;
  }
  12% {
    opacity: 0.66;
  }
  100% {
    transform: translate3d(var(--drift), -320px, 0) scale(1.08);
    opacity: 0;
  }
}

@keyframes drift-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-36px);
  }
}

@keyframes shaft-drift {
  0%,
  100% {
    transform: translateX(0) scaleY(1);
    opacity: 0.52;
  }
  50% {
    transform: translateX(10px) scaleY(1.04);
    opacity: 0.7;
  }
}

@keyframes kelp-sway {
  0%,
  100% {
    transform: rotate(calc(-4deg * var(--kelp-angle)));
  }
  50% {
    transform: rotate(calc(5deg * var(--kelp-angle)));
  }
}

@media (max-width: 1024px) {
  .utility-bar {
    border-radius: 30px;
  }

  .observatory-hero,
  .observatory-heading,
  .boundary-list,
  .sea-stage-grid,
  .content-grid,
  .thread-deck,
  .stat-band,
  .guide-grid,
  .recharge-grid {
    grid-template-columns: 1fr;
  }

  .sea-stage {
    min-height: 960px;
  }

  .observatory-stage-shell {
    min-height: clamp(22rem, 68vw, 30rem);
  }

  .observatory-heading-compact {
    grid-template-columns: 1fr;
  }

  .sea-stage-overlay {
    padding-bottom: 96px;
  }

  .stage-body .sea-stage-overlay {
    padding-bottom: 18px;
  }

  .surface-ledger {
    margin-top: -36px;
  }

  .panel-note {
    text-align: left;
  }

  .condition-grid {
    grid-template-columns: 1fr;
  }

  .aquarium-viewport {
    border-radius: 30px;
  }

  .pixel-label {
    min-width: 84px;
  }

  .utility-actions {
    justify-content: flex-start;
  }

  .aquarium-focus {
    top: 138px;
    width: min(320px, calc(100% - 32px));
  }

  .district-label {
    font-size: 0.58rem;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-top: 12px;
  }

  .surface-ledger {
    width: min(100vw - 20px, 1320px);
    margin-top: -24px;
  }

  .utility-bar,
  .utility-copy,
  .locale-switch {
    align-items: flex-start;
  }

  .utility-bar {
    flex-direction: column;
    padding: 16px;
  }

  .sea-stage {
    min-height: 920px;
    padding: 0 10px;
  }

  .observatory-preview {
    gap: 14px;
  }

  .observatory-stage-shell {
    min-height: 22rem;
  }

  .observatory-stage-shell .aquarium-viewport {
    padding: 14px;
    border-radius: 26px;
  }

  .observatory-stage-shell .aquarium-focus {
    left: 10px;
    width: min(100% - 20px, 420px);
    max-height: calc(100% - 96px);
  }

  .observatory-stage-shell .aquarium-hud {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .observatory-boundary {
    padding: 18px;
    border-radius: 22px;
  }

  .observer-detail-sheet {
    padding: 18px;
    border-radius: 22px;
  }

  .sea-stage-overlay {
    width: min(100vw - 20px, 1320px);
    padding-bottom: 78px;
  }

  .stage-body .sea-stage-overlay {
    padding-bottom: 12px;
  }

  .stage-copy,
  .panel,
  .guide-strip,
  .current-hero,
  .stat-card {
    padding: 20px;
    border-radius: 24px;
  }

  .stage-copy h1 {
    max-width: none;
    font-size: 2.6rem;
  }

  .hero-actions,
  .meta-row,
  .guide-head,
  .feed-topline,
  .feed-bottomline,
  .thread-note-head,
  .thread-root-head,
  .gateway-topline,
  .gateway-meta {
    align-items: flex-start;
  }

  .aquarium-viewport {
    inset: 0 10px;
    padding: 14px;
    border-radius: 26px;
  }

  .aquarium-hud {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .stage-body .aquarium-hud-shell {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .stage-body .aquarium-hud-shell .aquarium-hud {
    width: min(100%, 420px);
  }

  .aquarium-focus {
    top: auto;
    bottom: 118px;
    left: 10px;
    width: min(100% - 20px, 420px);
    padding: 12px 14px;
    border-radius: 20px;
  }

  .aquarium-focus-title {
    font-size: 1.32rem;
  }

  .aquarium-focus-summary {
    font-size: 0.86rem;
  }

  .aquarium-focus-motion-body {
    font-size: 0.78rem;
  }

  .focus-pill {
    font-size: 0.58rem;
  }

  .district-label {
    display: none;
  }

  .aquarium-chip {
    font-size: 0.64rem;
    letter-spacing: 0.05em;
  }

  .aquarium-chip-stage,
  .aquarium-chip-current,
  .aquarium-chip-summary,
  .aquarium-chip-detail {
    font-size: 0.72rem;
  }

  .aquarium-hud-toggle {
    min-height: 36px;
    padding: 9px 12px;
    font-size: 0.66rem;
  }

  .pixel-actor {
    gap: 8px;
  }

  .pixel-label {
    min-width: 74px;
    padding: 7px 8px;
  }

  .pixel-label strong {
    font-size: 0.7rem;
  }

  .pixel-label span,
  .pixel-label em {
    font-size: 0.58rem;
  }

  .pixel-venue-label strong {
    font-size: 0.64rem;
  }

  .pixel-venue-label span {
    font-size: 0.54rem;
  }

  .gateway-card-head {
    flex-direction: column;
  }

  .button,
  .locale-button,
  .badge,
  .meta-pill,
  .type-pill,
  .tone-chip {
    width: 100%;
    justify-content: flex-start;
  }
}
