:root {
  --pink: #ff4dc4;
  --hot: #ff2d95;
  --violet: #b44dff;
  --cyan: #7ec8ff;
  --deep: #020810;
  --text: #f5f5f5;
  --muted: rgba(235, 235, 235, 0.72);
  --outline: #000;
  --station: rgba(0, 8, 18, 0.88);
  --depth: 0;
  --light: 0;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--deep);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

.ocean {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, #1a6bb5 0%, #0a2a4a 45%, #000408 100%);
  contain: paint;
}

.ocean-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(120, 190, 255, 0.22), transparent 55%);
  opacity: calc((1 - var(--depth) * 1.2) * (1 - var(--light) * 0.35) + var(--light) * 0.55);
}

.ocean-dark {
  position: absolute;
  inset: 0;
  background: #000204;
  opacity: calc(var(--depth) * (1 - var(--light)));
}

.ocean-light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(255, 244, 210, 0.95), transparent 58%),
    linear-gradient(
      to top,
      #ffe8b0 0%,
      #9fd4ff 28%,
      #4a9fd8 55%,
      transparent 78%
    );
  opacity: var(--light);
  pointer-events: none;
}

.caustics {
  position: absolute;
  inset: 0;
  opacity: calc(0.16 * (1 - var(--depth)) + 0.22 * var(--light));
  background:
    radial-gradient(ellipse 40% 20% at 20% 30%, rgba(255,255,255,0.28), transparent),
    radial-gradient(ellipse 30% 15% at 70% 20%, rgba(180,220,255,0.22), transparent),
    radial-gradient(ellipse 50% 30% at 50% 90%, rgba(255, 240, 200, 0.45), transparent);
  transform: translateZ(0);
}

.bubbles {
  position: absolute;
  inset: 0;
  opacity: calc(0.35 * (1 - var(--depth) * 0.7) * (1 - var(--light) * 0.5));
  background-image:
    radial-gradient(circle 2px at 12% 22%, rgba(255,255,255,0.45), transparent),
    radial-gradient(circle 2px at 48% 62%, rgba(255,255,255,0.3), transparent),
    radial-gradient(circle 3px at 78% 36%, rgba(255,255,255,0.35), transparent),
    radial-gradient(circle 2px at 88% 78%, rgba(255,255,255,0.28), transparent);
  background-size: 420px 520px;
  animation: bubbleUp 48s linear infinite;
  transform: translateZ(0);
}

@keyframes bubbleUp {
  from { background-position: 0 0; }
  to { background-position: 0 -120px; }
}

.ocean.is-deep:not(.is-surface) .bubbles,
.ocean.is-deep:not(.is-surface) .caustics {
  animation: none;
  visibility: hidden;
}

.ocean.is-surface .bubbles {
  visibility: visible;
  animation: bubbleUp 48s linear infinite;
}

/* Depth meter — like neal.fun */
.depth-meter {
  position: fixed;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--display);
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 0 12px rgba(0,0,0,0.8), 0 1px 0 #000;
  pointer-events: none;
}

.depth-meter span {
  color: var(--cyan);
}

.zone-label {
  position: fixed;
  right: 0.85rem;
  bottom: 1.2rem;
  z-index: 55;
  max-width: min(42vw, 220px);
  text-align: right;
  font-family: var(--display);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-shadow: 0 1px 0 #000;
  pointer-events: none;
  line-height: 1.2;
}

.zone-label .zone-sub {
  opacity: 0.7;
  font-size: 0.7em;
  letter-spacing: 0.08em;
}

/* Local fauna */
.critter-rail {
  position: relative;
  z-index: 12;
  max-width: 1100px;
  margin: -1.25rem auto 1.5rem;
  padding: 0 1rem;
  display: flex;
  justify-content: var(--justify, flex-start);
  pointer-events: none;
}

.critter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(340px, 88vw);
  padding: 0.7rem 0.85rem;
  background: rgba(0, 12, 28, 0.85);
  border: 1px solid rgba(126, 200, 255, 0.28);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  contain: layout style;
}

.critter.in-view {
  opacity: 1;
  transform: translateY(0);
}

.critter-rail.right { --justify: flex-end; }
.critter-rail.left { --justify: flex-start; }

.critter-emoji {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.critter .role {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.critter .quote {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #fff;
  font-style: italic;
}

.critter .quote::before { content: "«"; opacity: 0.5; }
.critter .quote::after { content: "»"; opacity: 0.5; }

.meme {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: #fff;
  text-align: center;
  text-shadow:
    -3px -3px 0 var(--outline),
     3px -3px 0 var(--outline),
    -3px  3px 0 var(--outline),
     3px  3px 0 var(--outline),
     0 0 24px rgba(255, 77, 196, 0.55);
}

.meme.xl { font-size: clamp(2rem, 7vw, 4.6rem); }
.meme.lg { font-size: clamp(1.5rem, 4.5vw, 2.8rem); }
.meme.md { font-size: clamp(1.2rem, 3.2vw, 2rem); }
.meme.sm { font-size: clamp(0.95rem, 2.2vw, 1.35rem); letter-spacing: 0.04em; }

.glitch {
  text-shadow:
    -3px -3px 0 var(--outline),
     3px -3px 0 var(--outline),
    -3px  3px 0 var(--outline),
     3px  3px 0 var(--outline),
     2px 0 0 rgba(94, 240, 255, 0.4),
    -2px 0 0 rgba(255, 45, 149, 0.3),
     0 0 24px rgba(255, 77, 196, 0.5);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  z-index: 60;
  background: linear-gradient(90deg, var(--hot), var(--violet), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.hud {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 55;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  pointer-events: none;
}

.brand-pill {
  font-family: var(--display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    -2px -2px 0 var(--outline),
     2px -2px 0 var(--outline),
    -2px  2px 0 var(--outline),
     2px  2px 0 var(--outline),
     0 0 18px rgba(255, 77, 196, 0.6);
}

.clock {
  font-family: var(--display);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(94, 240, 255, 0.6), -1px -1px 0 #000, 1px 1px 0 #000;
  text-align: right;
}

.clock small {
  display: block;
  font-family: var(--sans);
  font-size: 0.7em;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 0.2rem;
}

main { position: relative; z-index: 10; }

.station {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 6rem 1.25rem 5rem;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.card {
  width: min(720px, 100%);
  padding: 1.75rem 1.5rem 1.6rem;
  background: var(--station);
  border: 2px solid rgba(255, 77, 196, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(36px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.45s ease, border-color 0.3s ease;
  contain: layout paint style;
}

.station.in-view .card {
  transform: translateY(0);
  opacity: 1;
  border-color: rgba(94, 240, 255, 0.45);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 10px rgba(94, 240, 255, 0.5);
}

.body {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.punch {
  margin-top: 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.8vw, 1.55rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  text-align: center;
  text-shadow:
    -2px -2px 0 var(--outline),
     2px -2px 0 var(--outline),
    -2px  2px 0 var(--outline),
     2px  2px 0 var(--outline),
     0 0 16px rgba(255, 45, 149, 0.45);
}

.day-gate {
  min-height: 75vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
  position: relative;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  font-family: var(--display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
  text-shadow:
    -2px -2px 0 var(--outline),
     2px -2px 0 var(--outline),
    -2px  2px 0 var(--outline),
     2px  2px 0 var(--outline),
     0 0 18px rgba(255, 77, 196, 0.55);
}

.sub {
  margin: 1.25rem auto 0;
  max-width: 32ch;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--muted);
  line-height: 1.5;
}

.scroll-hint {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: hintPulse 1.6s ease-in-out infinite;
}

.scroll-hint .meme.sm {
  color: var(--cyan);
  text-shadow:
    -2px -2px 0 var(--outline),
     2px -2px 0 var(--outline),
    -2px  2px 0 var(--outline),
     2px  2px 0 var(--outline),
     0 0 14px rgba(94, 240, 255, 0.5);
}

.arrow {
  width: 22px;
  height: 22px;
  border-right: 3px solid var(--cyan);
  border-bottom: 3px solid var(--cyan);
  transform: rotate(45deg);
  box-shadow: 2px 2px 0 #000;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
}

.warp {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 2px;
  height: 80px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--pink), var(--cyan), transparent);
  opacity: 0.5;
  box-shadow: 0 0 12px var(--pink);
}

.finale {
  --grade: 72%;
}

.finale .card {
  border-color: rgba(94, 240, 255, 0.5);
}

.surface-pad {
  height: 55vh;
  pointer-events: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stats.dense {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.stat {
  text-align: center;
  padding: 0.75rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--pink);
  text-shadow: 0 0 12px rgba(255, 77, 196, 0.5);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.release-notes {
  margin-top: 1.1rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(94, 240, 255, 0.28);
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(235, 245, 255, 0.88);
  max-height: min(420px, 50vh);
  overflow-y: auto;
}

.release-notes h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.85rem;
}

.release-notes h4 {
  margin: 0.9rem 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.release-notes h4.fix { color: #ffb86b; }

.release-notes ul {
  margin: 0;
  padding-left: 1.15rem;
}

.release-notes li {
  margin-bottom: 0.45rem;
}

.release-notes li::marker {
  color: var(--pink);
}

.grade-block {
  margin-top: 1.35rem;
  text-align: left;
}

.grade-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.55rem;
  gap: 0.75rem;
}

.grade-head .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.grade-head .mark {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--cyan);
  line-height: 1;
  text-shadow: 0 0 18px rgba(94, 240, 255, 0.45);
}

.grade-scale {
  position: relative;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.grade-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff4d6d, #ffb020, #3dff8a);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.station.in-view .grade-fill {
  width: var(--grade, 72%);
}

.grade-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.finale-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-tg,
.replay {
  pointer-events: auto;
  appearance: none;
  border: 2px solid var(--pink);
  background: rgba(255, 45, 149, 0.15);
  color: #fff;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  text-shadow: -1px -1px 0 #000, 1px 1px 0 #000;
  box-shadow: 0 0 20px rgba(255, 77, 196, 0.35);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.contact-tg {
  border-color: #2aabee;
  background: rgba(42, 171, 238, 0.2);
  box-shadow: 0 0 22px rgba(42, 171, 238, 0.35);
}

.contact-tg:hover,
.replay:hover {
  background: rgba(255, 45, 149, 0.35);
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(94, 240, 255, 0.4);
}

.contact-tg:hover {
  background: rgba(42, 171, 238, 0.4);
  box-shadow: 0 0 30px rgba(42, 171, 238, 0.45);
}

.contact-tg:active,
.replay:active { transform: scale(0.98); }

.replay { margin-top: 0; }

.card.wide { width: min(860px, 100%); }

.alert-box {
  margin-top: 1.1rem;
  text-align: left;
  background: rgba(40, 0, 0, 0.55);
  border: 1px solid rgba(255, 80, 80, 0.55);
  border-left: 4px solid #ff3b3b;
  padding: 0.9rem 1rem;
  box-shadow: 0 0 24px rgba(255, 60, 60, 0.25);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  line-height: 1.45;
  color: #ffd6d6;
}

.alert-box .lvl {
  color: #ffb020;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.alert-box code {
  color: #fff;
  background: rgba(255,255,255,0.08);
  padding: 0.1em 0.35em;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin-top: 1.1rem;
  border: 1px solid rgba(255, 140, 60, 0.45);
  border-radius: 2px;
}

.chat {
  margin-top: 1.2rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(94, 240, 255, 0.28);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  background: rgba(94, 240, 255, 0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
}

.chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3dff8a;
  box-shadow: 0 0 10px #3dff8a;
}

.chat-log {
  height: min(280px, 40vh);
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bubble {
  max-width: 88%;
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
  line-height: 1.4;
  border-radius: 12px;
  word-wrap: break-word;
}

.bubble.you {
  align-self: flex-end;
  background: rgba(255, 77, 196, 0.22);
  border: 1px solid rgba(255, 77, 196, 0.45);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble.pm {
  align-self: flex-start;
  background: rgba(94, 240, 255, 0.1);
  border: 1px solid rgba(94, 240, 255, 0.3);
  color: #eaffff;
  border-bottom-left-radius: 4px;
}

.bubble .who {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.25rem;
}

.chat-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
}

.chat-form input {
  flex: 1;
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.chat-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(94, 240, 255, 0.35);
}

.chat-form button {
  appearance: none;
  border: 1px solid var(--pink);
  background: rgba(255, 45, 149, 0.25);
  color: #fff;
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  cursor: pointer;
  white-space: nowrap;
}

.chat-form button:hover {
  background: rgba(255, 45, 149, 0.45);
}

.typing {
  align-self: flex-start;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.2rem 0.4rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.typing.on { opacity: 1; }

/* Fire — scale/opacity only, no animated filters */
.fire-stage {
  --fire: 0;
  margin-top: 1.2rem;
  position: relative;
  height: 150px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border: 1px solid rgba(255, 120, 40, 0.25);
  background: rgba(0, 0, 0, 0.35);
  contain: layout paint;
}

.fire-stage::before {
  content: "";
  position: absolute;
  inset: auto 10% 0;
  height: 70%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 80, 0, 0.55), transparent 65%);
  opacity: var(--fire, 0);
  pointer-events: none;
}

.fire-emoji {
  font-size: 5.5rem;
  line-height: 1;
  transform-origin: center bottom;
  transform: scale(calc(0.35 + 0.65 * var(--fire, 0)));
  opacity: calc(0.1 + 0.9 * var(--fire, 0));
  user-select: none;
  margin-bottom: 0.35rem;
  will-change: transform, opacity;
}

.fire-caption {
  position: absolute;
  top: 0.65rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffc878;
  opacity: calc(0.25 + 0.75 * var(--fire, 0));
}

.alert-link {
  display: inline-block;
  margin-top: 0.45rem;
  color: #9ecbff;
  font-size: 0.78rem;
  word-break: break-all;
  opacity: 0.85;
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 200, 80, 0.55);
  background: rgba(255, 180, 40, 0.15);
  color: #ffe6a8;
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
  box-shadow: 0 0 20px rgba(255, 180, 40, 0.25);
}

.sp-badge strong {
  color: #fff;
  font-size: 1.35rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  justify-content: center;
}

.action-btn {
  appearance: none;
  border: 1px solid var(--cyan);
  background: rgba(94, 240, 255, 0.12);
  color: #fff;
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.action-btn:hover { background: rgba(94, 240, 255, 0.28); }
.action-btn:disabled {
  opacity: 0.45;
  cursor: default;
  border-color: rgba(255,255,255,0.25);
}

.action-btn.hot {
  border-color: var(--hot);
  background: rgba(255, 45, 80, 0.2);
}

.action-btn.hot:hover:not(:disabled) {
  background: rgba(255, 45, 80, 0.4);
}

.slip-track {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,77,196,0.35);
  text-align: left;
}

.slip-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.slip-dates {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slip-dates .from { color: rgba(255,255,255,0.45); text-decoration: line-through; }
.slip-dates .arrow { color: var(--pink); }
.slip-dates .to {
  color: var(--cyan);
  transform: translateX(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
}

.slip-track.slipped .to {
  color: #ff8cff;
  transform: translateX(12px);
}

.prio-board {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  text-align: left;
}

.prio-col {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  min-height: 210px;
  padding: 0.55rem;
}

.prio-col h3 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.prio-col.sprint h3 { color: var(--cyan); }
.prio-col.plan h3 { color: #ffb86b; }

.yt-card {
  background: rgba(30, 34, 48, 0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid #8b5cf6;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #e8eaf0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}

.yt-card .meta {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.yt-card .sp {
  color: #ffd36a;
  font-weight: 700;
}

.yt-card.urgent {
  border-left-color: #ff3b5c;
  box-shadow: 0 0 0 1px rgba(255, 59, 92, 0.25);
}

.yt-card.urgent.boosted {
  border-left-color: #ff2d95;
  box-shadow: 0 0 24px rgba(255, 45, 149, 0.45);
  order: -1;
  transform: scale(1.03);
}

.yt-card.ghost {
  opacity: 0.35;
  border-style: dashed;
}

.prio-stack {
  display: flex;
  flex-direction: column;
  min-height: 140px;
}

.prio-note {
  margin-top: 0.75rem;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--cyan);
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.prio-note.on { opacity: 1; }

.action-btn, .chat-form button, .replay {
  touch-action: manipulation;
  min-height: 44px;
}

.chat-form input {
  font-size: 16px; /* prevent iOS zoom */
  min-height: 44px;
}

@media (max-width: 640px) {
  .station {
    min-height: auto;
    padding: 4.5rem 0.85rem 3rem;
    contain-intrinsic-size: 1px 720px;
  }

  .day-gate {
    min-height: 70vh;
    min-height: 70dvh;
    padding: 4.5rem 0.85rem 2rem;
  }

  .card, .card.wide {
    width: 100%;
    padding: 1.15rem 0.95rem;
  }

  .meme.xl { font-size: clamp(1.7rem, 9vw, 2.6rem); }
  .meme.lg { font-size: clamp(1.25rem, 6.5vw, 1.8rem); }

  .body {
    max-width: none;
    font-size: 0.98rem;
  }

  .stats, .stats.dense { grid-template-columns: 1fr 1fr; }

  .hud {
    top: max(0.55rem, env(safe-area-inset-top));
    left: max(0.55rem, env(safe-area-inset-left));
    right: max(0.55rem, env(safe-area-inset-right));
    gap: 0.4rem;
  }

  .brand-pill { font-size: 0.78rem; max-width: 55%; line-height: 1.15; }
  .clock { font-size: 0.8rem; }

  .depth-meter {
    top: auto;
    bottom: max(3.4rem, calc(env(safe-area-inset-bottom) + 2.8rem));
    left: max(0.55rem, env(safe-area-inset-left));
    transform: none;
    writing-mode: horizontal-tb;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .zone-label {
    font-size: 0.65rem;
    bottom: max(0.55rem, env(safe-area-inset-bottom));
    right: max(0.55rem, env(safe-area-inset-right));
    max-width: 48vw;
  }

  .critter-rail {
    margin: -0.5rem auto 1rem;
    padding: 0 0.75rem;
  }

  .critter {
    max-width: 100%;
    padding: 0.65rem 0.7rem;
  }

  .critter-emoji { font-size: 1.6rem; }

  .prio-board { grid-template-columns: 1fr; }

  .release-notes {
    max-height: min(340px, 45vh);
    font-size: 0.82rem;
    padding: 0.85rem;
  }

  .chat-log { height: min(240px, 36vh); }

  .fire-stage { height: 120px; }
  .fire-emoji { font-size: 4rem; }

  .surface-pad { height: 40vh; }

  /* lighter paint on phones */
  .caustics, .bubbles { display: none; }
  .progress { height: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles, .scroll-hint { animation: none !important; }
  .card, .critter { opacity: 1; transform: none; transition: none; }
  .grade-fill { transition: none; }
}

@media (prefers-reduced-data: reduce) {
  .caustics, .bubbles, .ocean-light { display: none; }
}

.lede { margin-top: 0.75rem; color: var(--cyan); }
.mt-xs { margin-top: 0.35rem; }
.mt-sm { margin-top: 0.55rem; }
.mt { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.shot-gap { margin-top: 0.85rem; }
.thanks { margin-top: 0.75rem; opacity: 0.85; }
.center { text-align: center; }
.alert-warn {
  border-left-color: #ffb020;
  border-color: rgba(255,176,32,0.45);
  color: #ffe6b0;
  background: rgba(40,28,0,0.5);
}
.alert-box .lvl.warn { color: #ffb020; }

