/* ==========================================================================
   Storm — interface
   Layout: the sky canvas is the page background; chrome floats on glass.
   ========================================================================== */

:root {
  --bg:          #05070d;
  --ink:         #eef2ff;
  --muted:       rgba(238, 242, 255, 0.62);
  --faint:       rgba(238, 242, 255, 0.36);
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --glass:       rgba(11, 16, 28, 0.62);
  --glass-hi:    rgba(24, 32, 50, 0.72);
  --raise:       rgba(255, 255, 255, 0.05);

  --accent:      #7cc4ff;
  --accent-ink:  #06121f;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --blur: saturate(150%) blur(22px);

  --topbar-h: 60px;
  --dock-h: 84px;
  --rail-w: 372px;

  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* Several components set an explicit `display`, which otherwise beats [hidden]. */
[hidden] { display: none !important; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
}

svg { display: block; }
svg:not([fill="currentColor"]) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- backdrop */

#viz {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 35%, rgba(3, 5, 10, 0.72) 100%),
    linear-gradient(180deg, rgba(3, 5, 10, 0.55) 0%, transparent 22%, transparent 60%, rgba(3, 5, 10, 0.8) 100%);
}

#flash {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(80% 55% at 50% 12%, rgba(226, 240, 255, 0.95), rgba(160, 200, 255, 0.32) 45%, transparent 72%);
  mix-blend-mode: screen;
  will-change: opacity;
}

/* loading hairline pinned to the very top of the viewport */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  background: rgba(255, 255, 255, 0.06);
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #cfe6ff);
  box-shadow: 0 0 14px rgba(124, 196, 255, 0.7);
  transition: width 0.25s var(--ease);
}

/* ---------------------------------------------------------------- gate */

#gate {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(90% 70% at 50% 30%, rgba(24, 36, 60, 0.6), transparent 70%),
    rgba(4, 6, 12, 0.86);
  backdrop-filter: blur(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
#gate.gone {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.gate-inner {
  max-width: 460px;
  animation: rise 0.8s var(--ease) both;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

.wordmark-xl {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 13vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff, #9fbfe8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 18px auto 30px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 16px;
}

.gate-note {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- app grid */

#app {
  position: relative;
  z-index: 10;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  /* Rows are explicit: the mixer spans all three, and auto rows would grow to
     its full content height instead of letting it scroll internally. */
  grid-template-rows:
    calc(var(--topbar-h) + env(safe-area-inset-top))
    minmax(0, 1fr)
    calc(var(--dock-h) + env(safe-area-inset-bottom));
  grid-template-areas:
    "top   mix"
    "stage mix"
    "dock  mix";
}
#app[hidden] { display: none; }

/* ---------------------------------------------------------------- topbar */

.topbar {
  grid-area: top;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  padding-top: env(safe-area-inset-top);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.wordmark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.01em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
  transition: background 0.3s, box-shadow 0.3s;
}
.status.is-playing .dot {
  background: #6ee7a8;
  box-shadow: 0 0 0 4px rgba(110, 231, 168, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
.status.is-loading .dot {
  background: var(--accent);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  50% { opacity: 0.4; }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.02em;
  margin-right: 4px;
}
.meta b {
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: var(--blur);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.18s var(--ease);
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover {
  color: var(--ink);
  background: var(--glass-hi);
  border-color: var(--line-strong);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.icon-btn.ghost:hover { background: var(--raise); }

.mix-toggle { display: none; }

/* ---------------------------------------------------------------- stage */

.stage {
  grid-area: stage;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  padding: 20px 22px 8px;
}

.stage-copy {
  max-width: 30ch;
  animation: rise 0.7s var(--ease) both;
}

/* Hint carries full sentences from the director, so it is not upper-cased. */
.stage-hint {
  margin: 0 0 10px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--accent);
  opacity: 0.9;
}

.stage-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.stage-sub {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 40ch;
}

/* ---- scene rail ---- */

.scenes { min-width: 0; }

.scenes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  padding: 4px 2px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s;
}
.text-btn .ico { width: 14px; height: 14px; }
.text-btn:hover { color: var(--ink); }
.text-btn:active .ico { transform: rotate(-180deg); transition: transform 0.4s var(--ease); }

.rail-wrap { position: relative; }

.scene-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 4px 2px 10px;
  margin: -4px -2px 0;
  scroll-padding-inline: 2px;
}
.scene-rail::-webkit-scrollbar { display: none; }

.scene-chip {
  flex: 0 0 auto;
  width: 152px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px 14px;
  text-align: left;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: var(--blur);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.22s, background 0.22s, color 0.22s;
}
.scene-chip:hover {
  transform: translateY(-3px);
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--glass-hi);
}
.scene-chip .chip-ico {
  width: 22px;
  height: 22px;
  color: var(--accent);
  opacity: 0.75;
  transition: opacity 0.22s;
}
.scene-chip .chip-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.scene-chip .chip-desc {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--faint);
}
.scene-chip[aria-selected="true"] {
  color: var(--ink);
  border-color: rgba(124, 196, 255, 0.55);
  background: linear-gradient(180deg, rgba(124, 196, 255, 0.16), rgba(124, 196, 255, 0.05));
  box-shadow: 0 0 0 1px rgba(124, 196, 255, 0.18), 0 14px 34px rgba(20, 80, 140, 0.28);
}
.scene-chip[aria-selected="true"] .chip-ico { opacity: 1; }
.scene-chip[aria-selected="true"] .chip-desc { color: var(--muted); }

/* living presets get a slow breathing marker */
.scene-chip.living .chip-name::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--accent);
  animation: pulse 2.6s ease-in-out infinite;
}

.rail-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 14, 24, 0.86);
  backdrop-filter: var(--blur);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s, opacity 0.18s;
}
.rail-arrow svg { width: 16px; height: 16px; }
.rail-arrow:hover { color: var(--ink); }
.rail-arrow.left { left: -6px; }
.rail-arrow.right { right: -6px; }

/* ---------------------------------------------------------------- dock */

.dock {
  grid-area: dock;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px calc(14px + env(safe-area-inset-bottom));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 20px;
  height: 46px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn .ico { width: 17px; height: 17px; }
.btn:active { transform: scale(0.97); }

.btn-ghost {
  background: var(--glass);
  backdrop-filter: var(--blur);
  color: var(--muted);
}
.btn-ghost:hover {
  color: var(--ink);
  background: var(--glass-hi);
  border-color: var(--line-strong);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(180deg, #ffffff, #cfe2f7);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px rgba(150, 200, 255, 0.22);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ffffff, #e2eeff);
  box-shadow: 0 12px 38px rgba(150, 200, 255, 0.34);
}

.btn-lg { height: 54px; padding: 0 28px; font-size: 15.5px; }

.btn-play { min-width: 132px; }
.btn-play .ico-pause { display: none; }
.btn-play.on .ico-play { display: none; }
.btn-play.on .ico-pause { display: block; }

.dock-master {
  flex: 1;
  min-width: 0;
  max-width: 320px;
  margin-left: auto;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: var(--blur);
}

/* ---------------------------------------------------------------- mixer */

.mixer {
  grid-area: mix;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 12px 12px 12px 0;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mixer-grip { display: none; }

.mixer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.mixer-head .icon-btn { display: none; }

.mixer-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.mixer-scroll::-webkit-scrollbar { width: 8px; }
.mixer-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.groups { display: flex; flex-direction: column; gap: 10px; }

.card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  padding: 14px 15px 15px;
}

.card-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* group cards carry a per-layer accent used by icon + slider fill */
.group { --tint: var(--accent); }
.group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.group-ico {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 16%, transparent);
}
.group-ico svg { width: 15px; height: 15px; }
.group-name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.group-summary {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.group-body { display: flex; flex-direction: column; gap: 13px; }

/* ---- slider row ---- */

.row { position: relative; }

.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.row-head label {
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.row-head .val {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  opacity: 0.85;
}

.slider {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  margin: 0;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

/* track (webkit) */
.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background:
    linear-gradient(90deg, var(--tint, var(--accent)) 0 var(--f, 0%), rgba(255, 255, 255, 0.09) var(--f, 0%) 100%);
}
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s var(--ease), box-shadow 0.15s;
}
.slider input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.16); }
.slider input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.28);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--tint, var(--accent)) 22%, transparent);
}

/* track (firefox) */
.slider input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}
.slider input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--tint, var(--accent));
}
.slider input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* director's live value marker — where evolve is actually pushing the knob */
.live {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 2px;
  height: 14px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--tint, var(--accent));
  box-shadow: 0 0 10px color-mix(in srgb, var(--tint, var(--accent)) 70%, transparent);
  transform: translateY(-50%);
  opacity: 0;
  transition: left 0.25s linear, opacity 0.25s;
  pointer-events: none;
}

/* master slider sits in the dock — flatter, no card */
.dock-master .row-head { margin-bottom: 3px; }
.dock-master .row-head label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.dock-master .slider { height: 16px; }

/* ---- switches ---- */

.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  cursor: pointer;
}
.switch-row + .switch-row { border-top: 1px solid var(--line); }

.switch-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch-label { font-size: 13px; }
.switch-desc { font-size: 11.5px; color: var(--faint); }

.switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-ui {
  margin-left: auto;
  flex: none;
  width: 40px;
  height: 23px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.22s var(--ease);
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #cfd8ea;
  transition: transform 0.22s var(--ease), background 0.22s;
}
.switch-input:checked ~ .switch-ui {
  background: var(--accent);
  border-color: transparent;
}
.switch-input:checked ~ .switch-ui::after {
  transform: translateX(17px);
  background: #fff;
}
.switch-input:focus-visible ~ .switch-ui {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.evolve-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 12px 13px;
  margin: 2px 0 6px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}
.evolve-block[hidden] { display: none; }

.fineprint {
  margin: 2px 4px 6px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--faint);
}
kbd {
  display: inline-block;
  padding: 1px 5px;
  margin: 0 1px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 10px;
  color: var(--muted);
}

.scrim { display: none; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  :root { --rail-w: 330px; }
  .scene-chip { width: 142px; }
}

/* Mixer becomes a bottom sheet; stage takes the full width. */
@media (max-width: 900px) {
  #app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "stage" "dock";
  }

  .mix-toggle { display: grid; }

  .stage { padding: 12px 18px 4px; gap: 22px; }
  .stage-copy { max-width: none; }
  .stage-title { font-size: clamp(30px, 8vw, 44px); }

  .dock { padding: 0 18px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .dock-master { max-width: none; padding: 6px 16px; }
  .btn-play { min-width: 0; padding: 0 22px; }

  .mixer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    margin: 0;
    max-height: 82dvh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-bottom: 0;
    background: rgba(9, 13, 23, 0.9);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mixer.open { transform: none; }

  .mixer-grip {
    display: block;
    width: 40px;
    height: 4px;
    margin: 9px auto 0;
    border-radius: 99px;
    background: var(--line-strong);
  }
  .mixer-head { padding: 10px 16px 12px; }
  .mixer-head .icon-btn { display: grid; }

  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(3, 5, 10, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
  }
  .scrim.show { opacity: 1; }
  .scrim[hidden] { display: none; }

  .rail-arrow { display: none; }
}

@media (max-width: 560px) {
  .meta { display: none; }
  .topbar { padding: 0 14px; }
  .stage { padding: 10px 14px 2px; }
  .dock { padding: 0 14px calc(10px + env(safe-area-inset-bottom)); }
  .btn-text { display: none; }
  .btn-ghost { width: 46px; padding: 0; }
  .scene-chip { width: 138px; }
  .dock-master { padding: 5px 14px; }
}

/* Short viewports: drop the big display type rather than the controls. */
@media (max-height: 620px) {
  .stage-title { font-size: 30px; }
  .stage-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
