/* NOCTURNE — HUD language: club flyer meets lighting desk.
   One screaming accent (follows the lighting mood), warm white ink, everything else black. */

:root {
  --bg: #050307;
  --ink: #f4efe6;
  --ink-2: rgba(244, 239, 230, 0.62);
  --ink-3: rgba(244, 239, 230, 0.34);
  --line: rgba(244, 239, 230, 0.14);
  --glass: rgba(10, 7, 12, 0.72);
  --accent: #ff2238;
  --accent-2: #ffc14d;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(14px, 2.4vw, 30px);
  --bar: 48px;   /* every control along the bottom edge is exactly this tall */
  --r: 999px;
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
}

/* scrollbar law: nothing in this page scrolls, and nothing may ever paint a bar at rest */
* { box-sizing: border-box; scrollbar-width: none; scrollbar-color: transparent transparent; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

html, body {
  margin: 0; width: 100%; height: 100%;
  overflow: hidden; overscroll-behavior: none;
  background: var(--bg); color: var(--ink);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
body { position: fixed; inset: 0; height: 100dvh; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
kbd { font: inherit; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; cursor: grab; }
body.is-hot #stage { cursor: pointer; }
body.is-dragging, body.is-dragging #stage { cursor: grabbing; }
body.is-dragging .hud { pointer-events: none; }

/* ───────────────────────── HUD frame ───────────────────────── */
.hud {
  --kick: 0; /* 0..1, written from JS on the beat */
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(var(--pad) + env(safe-area-inset-top)) calc(var(--pad) + env(safe-area-inset-right)) calc(var(--pad) + env(safe-area-inset-bottom)) calc(var(--pad) + env(safe-area-inset-left));
  opacity: 0; transition: opacity 0.9s var(--ease) 0.5s;
}
.hud > * { pointer-events: none; }
.hud button, .hud a { pointer-events: auto; }
body.is-live .hud { opacity: 1; }
body.is-quiet .hud { opacity: 0; transition-delay: 0s; }
body.is-quiet .hud button { pointer-events: none; }

/* soft legibility gradients, not panels */
.hud::before, .hud::after {
  content: ""; position: absolute; left: 0; right: 0; height: 26vh; pointer-events: none; z-index: -1;
}
.hud::before { top: 0; background: linear-gradient(#050307c4, transparent); }
.hud::after { bottom: 0; height: 34vh; background: linear-gradient(transparent, #050307d9); }

/* ── top ── */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 calc(6px + 16px * var(--kick)) color-mix(in srgb, var(--accent) 70%, transparent), inset 0 0 8px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color 0.8s;
}
.brand__mark i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); transform: scale(calc(1 + var(--kick) * 0.9)); }
.brand__name { display: block; font-family: var(--f-display); font-weight: 800; font-size: 13px; letter-spacing: 0.22em; }
.brand__sub { display: block; margin-top: 3px; color: var(--ink-3); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; }

.status { display: flex; align-items: center; gap: 8px; }
.meter, .clock {
  height: 34px; display: inline-flex; align-items: center; gap: 10px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--glass);
  color: var(--ink-2); font-size: 11px; text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.meter b { color: var(--ink); font-weight: 500; }
.meter__dots { display: inline-flex; gap: 4px; }
.meter__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.meter__dots i.on { background: var(--accent); transform: scale(1.5); box-shadow: 0 0 10px var(--accent); transition-duration: 0s; }
.meter__dots i:first-child.on { background: var(--ink); box-shadow: 0 0 10px var(--ink); }

.ico {
  position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--glass);
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.ico svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico:hover { border-color: var(--ink-2); background: rgba(244, 239, 230, 0.08); }
.ico:active { transform: scale(0.92); }
.ico .eq { transform-origin: 50% 50%; transform-box: fill-box; animation: eq 0.9s var(--ease-io) infinite alternate; }
.ico .e2 { animation-delay: -0.3s; } .ico .e3 { animation-delay: -0.55s; } .ico .e4 { animation-delay: -0.15s; }
.ico[aria-pressed="false"] .eq { animation: none; transform: scaleY(0.18); stroke: var(--ink-3); }
@keyframes eq { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }

/* tooltips: tiny, late, out of the way */
[data-tip]::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; white-space: nowrap;
  padding: 5px 9px; border-radius: 6px; background: var(--ink); color: #0a0709; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0; transform: translateY(-4px); transition: opacity 0.2s, transform 0.3s var(--ease); pointer-events: none;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: none; transition-delay: 0.45s; }

/* ── caption ── */
.caption { align-self: end; max-width: min(560px, 86vw); padding-bottom: clamp(18px, 4vh, 44px); }
.caption__idx { display: inline-block; color: var(--accent); font-size: 11px; letter-spacing: 0.2em; transition: color 0.8s; }
.caption__title {
  margin: 10px 0 10px; font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 5.2vw, 68px); line-height: 0.94; letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}
.caption__title .ch { display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(4deg); }
.caption.in .caption__title .ch { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i) * 28ms + 120ms); }
.caption__line { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.6; max-width: 38ch; }
.caption__idx, .caption__line { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease), color 0.8s; }
.caption.in .caption__idx { opacity: 1; transform: none; transition-delay: 0.05s; }
.caption.in .caption__line { opacity: 1; transform: none; transition-delay: 0.42s; }
.caption.rest .caption__title { opacity: 0.0; transition: opacity 1.6s ease; }
.caption.rest .caption__line, .caption.rest .caption__idx { opacity: 0; transition: opacity 1.2s ease; }

/* ── bottom ── */
.bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; min-height: var(--bar); }

.now { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr 1fr; column-gap: 12px; align-items: center; justify-items: start; height: var(--bar); min-width: 0; }
.now__wave { grid-row: 1 / 3; display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; }
.now__wave i { width: 2px; height: 100%; background: var(--accent); transform-origin: bottom; transform: scaleY(0.12); border-radius: 1px; transition: background 0.8s; will-change: transform; }
.now__track { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; color: var(--ink-2); white-space: nowrap; align-self: end; }
.now__track b { color: var(--ink); font-weight: 500; letter-spacing: 0.06em; font-size: 12.5px; line-height: 1.3; }
.now__sep { width: 18px; height: 1px; background: var(--line); }
.now__meta { align-self: start; }

.rail {
  position: relative; display: flex; align-items: center; gap: 2px; height: var(--bar); padding: 0 5px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--glass);
  pointer-events: auto;
}
.rail__ink {
  position: absolute; top: 5px; bottom: 5px; height: 36px; margin: auto 0; left: 0; width: 10px; border-radius: var(--r);
  background: var(--ink); transition: transform 0.7s var(--ease), width 0.7s var(--ease), opacity 0.4s;
  box-shadow: 0 0 calc(18px * var(--kick)) color-mix(in srgb, var(--ink) 50%, transparent);
}
.rail button {
  position: relative; z-index: 1; height: 36px; padding: 0 16px; border-radius: var(--r);
  display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; font-size: 11px; color: var(--ink-2);
  transition: color 0.35s;
}
.rail button i { font-style: normal; color: var(--ink-3); font-size: 10px; transition: color 0.35s; }
.rail button:hover { color: var(--ink); }
.rail button[aria-current="true"] { color: #0a0709; }
.rail button[aria-current="true"] i { color: rgba(10, 7, 9, 0.5); }

.desk { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.moods { display: flex; align-items: center; gap: 2px; height: var(--bar); padding: 0 6px; border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); pointer-events: auto; }
.moods button { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.moods button::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--m-a), var(--m-b), var(--m-c), var(--m-a));
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.moods button::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid transparent; transition: border-color 0.3s, inset 0.5s var(--ease); }
.moods button:hover::before { transform: scale(1.3); }
.moods button[aria-checked="true"]::before { transform: scale(1.15); box-shadow: 0 0 14px var(--m-a); }
.moods button[aria-checked="true"]::after { border-color: var(--ink-2); inset: 1px; }
.moods button.auto { width: auto; height: 36px; padding: 0 13px; font-size: 10px; text-transform: uppercase; color: var(--ink-3); border-radius: var(--r); transition: color 0.3s, background 0.3s; }
.moods button.auto::before, .moods button.auto::after { content: none; }
.moods button.auto[aria-checked="true"] { color: #0a0709; background: var(--ink); }

.drop {
  position: relative; height: var(--bar); padding: 0 16px 0 22px; border-radius: var(--r);
  display: inline-flex; align-items: center; gap: 12px; isolation: isolate;
  background: var(--accent); color: #0a0507;
  font-family: var(--f-display); font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 0 calc(14px + 26px * var(--kick)) color-mix(in srgb, var(--accent) 60%, transparent);
  transition: transform 0.45s var(--ease), background 0.8s, filter 0.3s;
}
.drop kbd { font-family: var(--f-mono); font-weight: 500; font-size: 10px; letter-spacing: 0; padding: 3px 6px; border-radius: 5px; background: rgba(10, 5, 7, 0.16); }
.drop:hover { transform: scale(1.05); filter: brightness(1.1); }
.drop:active { transform: scale(0.95); transition-duration: 0.08s; }
.drop__ring { position: absolute; inset: -5px; border-radius: var(--r); border: 1px solid var(--accent); opacity: 0; z-index: -1; }
.drop.armed { background: var(--ink); animation: armed calc(60s / 124) steps(1) infinite; }
.drop.armed .drop__ring { animation: ring calc(60s / 124) var(--ease) infinite; border-color: var(--ink); }
.drop.hit { animation: hit 0.9s var(--ease); }
@keyframes ring { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.22, 1.5); } }
@keyframes armed { 0% { filter: brightness(1.25); } 12% { filter: none; } }
@keyframes hit { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ── toast ── */
.toast {
  position: absolute; left: 50%; bottom: calc(var(--pad) + 74px + env(safe-area-inset-bottom)); transform: translate(-50%, 10px);
  padding: 9px 14px; border-radius: var(--r); background: rgba(12, 9, 14, 0.86); color: var(--ink); border: 1px solid var(--line);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
  opacity: 0; transition: opacity 0.35s, transform 0.6s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ───────────────────────── the lobby: seven doors ───────────────────────── */
.gate {
  --tint: var(--accent);
  position: fixed; inset: 0; z-index: 10; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: clamp(10px, 2.2vh, 22px);
  padding: calc(var(--pad) + env(safe-area-inset-top)) calc(var(--pad) + env(safe-area-inset-right)) calc(var(--pad) + env(safe-area-inset-bottom)) calc(var(--pad) + env(safe-area-inset-left));
  background: var(--bg);
  transition: opacity 0.9s var(--ease-io), visibility 0s 0.9s; will-change: opacity;
}
.gate::before { /* the whole lobby takes the colour of the door you're looking at */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 60% at 50% 112%, color-mix(in srgb, var(--tint) 34%, transparent) 0%, transparent 70%);
  transition: background 0.6s;
}
body.is-live .gate { opacity: 0; visibility: hidden; pointer-events: none; }

.lobby { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lobby__brand { display: flex; align-items: center; gap: 12px; }
.lobby__brand .brand__mark { border-color: var(--tint); box-shadow: 0 0 14px color-mix(in srgb, var(--tint) 60%, transparent); transition: border-color 0.5s, box-shadow 0.5s; }
.lobby__status { margin: 0; color: var(--ink-3); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.18em; font-variant-numeric: tabular-nums; }
.lobby__status b { color: var(--ink); font-weight: 500; }
.lobby__title {
  margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: 0.95;
  font-size: clamp(26px, 5.6vw, 76px); letter-spacing: -0.02em;
}
.lobby__title span { display: inline-block; animation: rise 0.9s var(--ease) both; }
.lobby__title span:nth-child(2) { animation-delay: 0.07s; } .lobby__title span:nth-child(3) { animation-delay: 0.14s; color: var(--tint); transition: color 0.5s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.doors { display: flex; gap: clamp(6px, 0.8vw, 12px); min-height: 0; }
.door {
  --a: #fff; --b: #fff; --c: #fff; --bpm: 110;
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(10px, 1.2vw, 18px);
  border: 1px solid var(--line); border-radius: 14px 14px 3px 3px; background: linear-gradient(#100b12, #070508);
  color: var(--ink); cursor: pointer;
  transition: flex-grow 0.6s var(--ease), border-color 0.4s, opacity 0.4s, transform 0.6s var(--ease);
  animation: door-in 0.9s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 0.15s);
}
@keyframes door-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.door__glow { /* light behind the door */
  position: absolute; inset: 0; z-index: -1; opacity: 0.2; transition: opacity 0.5s;
  background:
    radial-gradient(130% 62% at 50% 108%, color-mix(in srgb, var(--a) 80%, transparent) 0%, transparent 62%),
    linear-gradient(to top, color-mix(in srgb, var(--b) 38%, transparent), transparent 55%);
}
.door__sill { /* the strip of light under it, breathing at the room's real tempo */
  position: absolute; left: 10%; right: 10%; bottom: 0; height: 2px; background: var(--a);
  box-shadow: 0 0 22px 4px color-mix(in srgb, var(--a) 75%, transparent);
  animation: sill calc(60s / var(--bpm)) ease-out infinite;
}
@keyframes sill { 0% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0.35; transform: scaleX(0.86); } }
.door__knob { position: absolute; right: 12px; top: 52%; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); transition: background 0.4s, box-shadow 0.4s; }
.door__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--ink-3); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.door__live { display: inline-flex; align-items: center; gap: 6px; }
.door__live i { width: 5px; height: 5px; border-radius: 50%; background: var(--a); box-shadow: 0 0 8px var(--a); }
.door__name {
  flex: 1 1 auto; min-height: 0; align-self: flex-start; margin: 10px 0 12px -2px; overflow: hidden;
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; text-align: left;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2.9vw, 46px); line-height: 1; letter-spacing: 0.01em;
  transition: color 0.4s, text-shadow 0.4s;
}
.door__info { display: grid; gap: 5px; min-width: 0; }
.door__genre { color: var(--a); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.door__now { color: var(--ink-2); font-size: 11px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.door__tag, .door__go { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.4s, margin 0.5s var(--ease); }
.door__tag { color: var(--ink-3); font-size: 11px; line-height: 1.5; letter-spacing: 0.02em; }
.door__go {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: var(--r);
  background: var(--a); color: #0a0507; font-family: var(--f-display); font-weight: 800; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.door.was .door__top span:first-child::after { content: " · you were here"; color: var(--a); }

@media (hover: hover) {
  .doors:hover .door:not(:hover) { opacity: 0.55; }
  .door:hover, .door:focus-visible { flex-grow: 2.7; border-color: color-mix(in srgb, var(--a) 70%, transparent); }
  .door:hover .door__glow, .door:focus-visible .door__glow { opacity: 0.95; }
  .door:hover .door__knob, .door:focus-visible .door__knob { background: var(--c); box-shadow: 0 0 12px var(--c); }
  .door:hover .door__name, .door:focus-visible .door__name { text-shadow: 0 0 26px color-mix(in srgb, var(--a) 80%, transparent); }
  .door:hover .door__tag, .door:focus-visible .door__tag { max-height: 5em; opacity: 1; }
  .door:hover .door__go, .door:focus-visible .door__go { max-height: 34px; height: 34px; opacity: 1; margin-top: 6px; }
}
.door:active { transform: scale(0.985); transition-duration: 0.08s; }
.door.going { flex-grow: 8; border-color: var(--a); }
.door.going .door__glow { opacity: 1; }
.doors.is-going .door:not(.going) { flex-grow: 0.0001; opacity: 0; padding-left: 0; padding-right: 0; border-width: 0; }
.doors.is-loading .door { pointer-events: none; }
.doors.is-loading .door__glow { opacity: 0.08; }
.doors.is-loading .door__sill { animation: none; opacity: 0.25; }

.lobby__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.gate__hints { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-3); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; }
.gate__hints kbd { color: var(--ink-2); padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; margin-right: 6px; }
.credit { color: var(--ink-3); font-size: 10px; letter-spacing: 0.1em; text-decoration: none; transition: color 0.3s; }
.credit:hover { color: var(--ink); }

/* ── exit + now playing (HUD) ── */
.exit {
  height: var(--bar); padding: 0 18px 0 15px; border-radius: var(--r); display: inline-flex; align-items: center; gap: 9px; pointer-events: auto;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-size: 11px; text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.exit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.exit:hover { color: #0a0709; background: var(--ink); border-color: var(--ink); }
.exit:hover svg { transform: translateX(3px); }
.exit:active { transform: scale(0.95); }
.now__track b { display: inline-block; max-width: min(30vw, 420px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now__meta { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 10.5px; text-transform: uppercase; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.live.on { background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.35; } }
body.is-leaving .hud { opacity: 0; transition: opacity 0.6s; transition-delay: 0s; }

:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.rail button:focus-visible, .moods button:focus-visible { outline-offset: -2px; }

/* ───────────────────────── small screens ───────────────────────── */
@media (max-width: 900px) {
  .bottom { grid-template-columns: 1fr auto; grid-template-areas: "now desk" "rail rail"; row-gap: 12px; }
  .now { grid-area: now; } .desk { grid-area: desk; }
  .rail { grid-area: rail; justify-self: center; }
  .toast { bottom: calc(var(--pad) + 124px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .brand__sub, .meter__txt, .clock, .now__wave, .moods button.auto { display: none; }
  .now { grid-template-columns: minmax(0, 1fr); }
  .meter { padding: 0 11px; }
  .rail { width: 100%; justify-content: space-between; }
  .rail button { padding: 0 9px; flex: 1; justify-content: center; }
  .rail button span { display: none; }
  .rail button i { font-size: 11px; color: inherit; }
  .drop { padding: 0 16px; } .drop kbd { display: none; }
  .caption__line { font-size: 11.5px; }
}
@media (max-width: 820px) {
  .doors { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 8px; }
  .door { border-radius: 10px 10px 3px 3px; padding: 10px 12px; }
  .door:last-child { grid-column: 1 / -1; }
  .door__name { flex: 0 0 auto; align-self: stretch; writing-mode: horizontal-tb; transform: none; font-size: clamp(15px, 4.6vw, 24px); margin: auto 0 4px; text-overflow: ellipsis; }
  .door__knob, .door__tag, .door__go { display: none; }
  .door { justify-content: flex-start; }
  .lobby__status { display: none; }
  .gate__hints { display: none; }
  .lobby__foot { justify-content: center; }
  .exit span { display: none; } .exit { padding: 0 10px; }
  .now__track b { max-width: 46vw; }
}
@media (max-height: 560px) {
  .caption { padding-bottom: 8px; } .caption__title { font-size: clamp(26px, 9vh, 48px); margin: 4px 0; }
  .lobby__title { font-size: clamp(20px, 8vh, 40px); } .gate__hints { display: none; }
  .door__name { font-size: clamp(16px, 6vh, 30px); }
}

@media (prefers-reduced-motion: reduce) {
  .ico .eq, .door__sill, .drop.armed, .drop.armed .drop__ring, .live.on { animation: none; }
  .door, .lobby__title span { animation-duration: 0.01s; animation-delay: 0s; }
  .caption__title .ch { transform: none; }
}
