/* ============================================================
   THE KENOMA · Dying Into Form — interactive music-video player
   Design language: cinematic / minimal / "Gnostic Apple"
   Palette: Magenta Dream — B7094C → 0091AD over obsidian.
   The stage IS the viewport; all chrome floats over the signal.
   ============================================================ */

:root {
  /* Magenta Dream — B7094C · 892B64 · 723C70 · 5C4D7D · 455E89 · 2E6F95 · 0091AD */
  --bg:        #0a0713;
  --panel:     rgba(255, 240, 250, 0.05);
  --panel-2:   rgba(255, 240, 250, 0.09);
  --hair:      rgba(230, 180, 220, 0.14);
  --hair-2:    rgba(230, 180, 220, 0.26);

  --ink:       #f4ecf6;
  --muted:     #a98fb5;
  --faint:     #6a5878;

  --blue:      #0091ad;   /* cyan pole */
  --magenta:   #b7094c;   /* crimson pole */
  --pink:      #d83b7d;   /* hot accent */

  --bar-h: 88px;
  --radius: 20px;
  --radius-sm: 12px;
  --sab: env(safe-area-inset-bottom, 0px);
  --sat: env(safe-area-inset-top, 0px);

  --f-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --f-serif: "Cinzel", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gi: 0;                /* glitch heat 0..1, written by app.js */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: var(--f-ui);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

/* backdrop — one slow, barely-there bloom */
.veil { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(70% 60% at 15% -10%, rgba(183,9,76,.26) 0%, transparent 55%),
    radial-gradient(70% 60% at 85% 110%, rgba(0,145,173,.26) 0%, transparent 55%),
    radial-gradient(120% 90% at 50% 120%, #120a26 0%, var(--bg) 60%); }
.orb { position: absolute; width: 60vw; height: 60vw; left: 20vw; top: -15vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(216,59,125,.14) 0%, transparent 60%);
  filter: blur(40px); animation: breathe 18s ease-in-out infinite; }
@keyframes breathe { 0%,100%{opacity:.5; transform:scale(1)} 50%{opacity:.9; transform:scale(1.12)} }

/* ── STAGE — full viewport ─────────────────────────────────── */
.stage { position: fixed; inset: 0; z-index: 1; }
.visual { position: absolute; inset: 0; }
.viz { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual { transition: filter .8s var(--ease); }
/* PAUSED — the signal falls out of focus */
body:not(.is-playing) .visual { filter: grayscale(.9) brightness(0.45) contrast(0.9); }
.cinema { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* entrance — chrome stays hidden until "begin transmission" is pressed,
   then rises in (body.preboot is removed by the begin button) */
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
body.preboot .top, body.preboot .bar, body.preboot .np, body.preboot .hint {
  opacity: 0; pointer-events: none; }
body:not(.preboot) .top { animation: riseIn .7s var(--ease) both .1s; }
body:not(.preboot) .bar { animation: riseIn .7s var(--ease) both .25s; }
body:not(.preboot) .np  { animation: fadeIn .9s var(--ease) both .4s; }

/* ── TOP CHROME ────────────────────────────────────────────── */
.top { position: absolute; top: calc(10px + var(--sat)); left: 14px; right: 14px; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none; }
.top > * { pointer-events: auto; }

.brand { display: flex; align-items: center; gap: 11px; background: transparent; border: 0;
  color: inherit; font-family: inherit; cursor: pointer; padding: 8px;
  border-radius: 14px; transition: background .25s var(--ease); }
.brand:hover { background: var(--panel); }
.brand__mark { width: 32px; height: 32px; flex: none; display: block; overflow: visible;
  filter: drop-shadow(0 0 6px rgba(216, 59, 125, .35)); }
.brand__ring { transform-box: fill-box; transform-origin: center; animation: kring 20s linear infinite; }
.brand__pupil { transform-box: fill-box; transform-origin: center; animation: kpulse 3.6s ease-in-out infinite; }
@keyframes kring { to { transform: rotate(360deg); } }
@keyframes kpulse { 0%, 100% { transform: scale(.72); opacity: .8; } 50% { transform: scale(1.18); opacity: 1; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.brand__name { font-family: var(--f-serif); font-size: 13px; letter-spacing: 2.5px; font-weight: 600; }
.brand__sub { font-size: 10.5px; color: var(--pink); letter-spacing: 1px; }

/* segmented control — equal halves so the sliding pill always clears the text */
.segmented { position: relative; display: inline-grid; grid-auto-flow: column;
  grid-auto-columns: 1fr; padding: 3px;
  background: rgba(10,6,18,.5); border: 1px solid var(--hair); border-radius: 999px; }
.seg { position: relative; z-index: 1; font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; text-indent: 1.5px; /* balance the trailing tracking */
  color: var(--muted); background: transparent; border: 0; padding: 9px 24px; border-radius: 999px;
  cursor: pointer; transition: color .25s var(--ease); }
.seg.is-active { color: var(--ink); }
.seg__slider { position: absolute; z-index: 0; top: 3px; left: 3px; height: calc(100% - 6px);
  width: calc(50% - 3px); border-radius: 999px; background: var(--panel-2);
  border: 1px solid var(--hair-2); transition: transform .35s var(--spring); }
.segmented[data-view="lyrics"] .seg__slider { transform: translateX(100%); }

/* right-side spacer keeps the segmented control optically centred */
.top__spacer { width: 48px; }

/* hint */
.hint { position: absolute; left: 50%; bottom: calc(var(--bar-h) + var(--sab) + 66px);
  transform: translateX(-50%); white-space: nowrap;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--pink); text-shadow: 0 0 8px rgba(216,59,125,.5);
  z-index: 4; pointer-events: none; animation: hintpulse 2.4s ease-in-out infinite; transition: opacity .5s; }
@keyframes hintpulse { 0%,100% { opacity: .35; } 50% { opacity: .75; } }
body.touched .hint, body.view-lyrics .hint { animation: none !important; opacity: 0 !important; }

/* now playing */
.np { position: absolute; left: 24px; bottom: calc(var(--bar-h) + var(--sab) + 22px);
  z-index: 3; pointer-events: none; transition: opacity .3s var(--ease); }
.np__narrator { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--pink);
  font-family: var(--f-mono); }
.np__title { font-size: 24px; font-weight: 700; letter-spacing: -0.3px; margin-top: 4px; }
body.view-lyrics .np { opacity: 0; }

/* ── LYRICS (Transcript view) ──────────────────────────────── */
.lyrics { position: absolute; inset: 0; display: flex; justify-content: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 6%, #000 24%, #000 72%, transparent 94%);
          mask-image: linear-gradient(180deg, transparent 6%, #000 24%, #000 72%, transparent 94%); }
.lyrics__scroll { max-width: 640px; width: 100%; padding: 44vh 26px; text-align: left;
  transition: transform .55s var(--ease); will-change: transform; }
.lyric-line { font-size: 27px; line-height: 1.32; font-weight: 600; letter-spacing: -0.2px;
  color: var(--faint); padding: 9px 0; cursor: pointer;
  transition: color .45s var(--ease), opacity .45s; opacity: .5; }
.lyric-line.is-current { color: var(--ink); opacity: 1; }
.lyric-line.is-past { opacity: .3; }
.lyric-line--hit { font-weight: 900; text-transform: uppercase; letter-spacing: 2px; font-size: 32px; }
body.glitch .lyric-line.is-current { text-shadow: -2px 0 rgba(183,9,76,.7), 2px 0 rgba(0,145,173,.7); }
body.glitch .lyric-line--hit.is-current { text-shadow: -3px 0 rgba(183,9,76,.9), 3px 0 rgba(0,145,173,.9); color: #fff; }
.lyrics__empty { margin: auto; color: var(--faint); font-size: 15px; letter-spacing: .5px; }

/* ── BEGIN OVERLAY ─────────────────────────────────────────── */
.begin { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(90% 70% at 50% 45%, rgba(10,6,18,.55) 0%, rgba(6,3,12,.92) 100%);
  transition: opacity .9s var(--ease), visibility .9s; }
.begin.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.begin__mark { width: 74px; height: 74px; overflow: visible;
  filter: drop-shadow(0 0 18px rgba(216,59,125,.5)); animation: kpulse 3.6s ease-in-out infinite; }
.begin__band { font-family: var(--f-serif); font-size: 22px; letter-spacing: 8px; margin-top: 16px;
  text-indent: 8px; }
.begin__album { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--pink);
  font-family: var(--f-mono); }
.begin__btn { margin-top: 30px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--ink); background: var(--panel);
  border: 1px solid var(--hair-2); border-radius: 999px; padding: 15px 34px; cursor: pointer;
  transition: background .3s, box-shadow .3s, transform .2s var(--spring);
  animation: hintpulse 2.8s ease-in-out infinite; }
.begin__btn:hover, .begin__btn:focus-visible { background: var(--panel-2);
  box-shadow: 0 0 30px rgba(216,59,125,.35); animation: none; opacity: 1; }
.begin__btn:active { transform: scale(.96); }

/* toast (sync nudges etc.) */
.toast { position: absolute; left: 50%; top: calc(70px + var(--sat)); transform: translateX(-50%);
  z-index: 25; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 1.5px;
  color: var(--ink); background: rgba(10,6,18,.85); border: 1px solid var(--hair-2);
  border-radius: 999px; padding: 9px 18px; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease); }
.toast.is-show { opacity: 1; }

/* ── TRACKLIST DRAWER ──────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 18; background: rgba(4,2,9,.6);
  opacity: 0; transition: opacity .35s var(--ease); }
.scrim.is-show { opacity: 1; }

.drawer { position: fixed; z-index: 20; display: flex; flex-direction: column;
  top: 0; bottom: 0; left: 0; width: min(340px, 88vw);
  padding: calc(18px + var(--sat)) 14px calc(14px + var(--sab));
  background: rgba(10,6,18,.92);
  border-right: 1px solid var(--hair);
  transform: translateX(-102%); transition: transform .45s var(--ease);
  visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }

.drawer__head { display: flex; align-items: center; justify-content: space-between;
  padding: 2px 10px 16px; }
.drawer__title { font-family: var(--f-serif); font-size: 15px; letter-spacing: 3px;
  text-transform: uppercase; }
.drawer__close { color: var(--muted); }

.tracklist { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
  margin: 0 -6px; padding: 0 6px; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.10) transparent; }
.tracklist::-webkit-scrollbar { width: 6px; }
.tracklist::-webkit-scrollbar-thumb { background: rgba(255,255,255,.10); border-radius: 3px; }

.track { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 10px; border-radius: 12px; cursor: pointer; background: transparent;
  border: 0; text-align: left; color: inherit; font-family: inherit; min-height: 48px;
  transition: background .2s var(--ease); }
.track:hover { background: var(--panel); }
.track.is-active { background: var(--panel-2); }
.track__no { font-size: 12px; color: var(--faint); text-align: center;
  font-variant-numeric: tabular-nums; font-family: var(--f-mono); }
.track.is-active .track__no { color: var(--blue); }
.track__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.track__title { font-size: 13.5px; font-weight: 500; letter-spacing: .1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track.is-glitch.is-active .track__title {
  text-shadow: -1px 0 rgba(183,9,76,.7), 1px 0 rgba(0,145,173,.7); }
.track__narrator { font-size: 11px; color: var(--faint); }
.track.is-active .track__narrator { color: var(--muted); }

.eq { display: inline-flex; gap: 2px; height: 11px; align-items: flex-end; }
.eq span { width: 2px; background: var(--blue); border-radius: 2px; animation: eq 1s var(--ease) infinite; }
.eq span:nth-child(2){ animation-delay: .18s } .eq span:nth-child(3){ animation-delay: .36s }
@keyframes eq { 0%,100%{height:3px; opacity:.6} 50%{height:11px; opacity:1} }

.drawer__foot { margin-top: 12px; padding: 0 10px; font-size: 10.5px; color: var(--faint);
  letter-spacing: .5px; display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 8px rgba(0,145,173,.8); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.35} 50%{opacity:1} }

/* ── TRANSPORT ─────────────────────────────────────────────── */
.bar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--sab)); z-index: 10;
  height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 18px; border: 1px solid var(--hair); border-radius: var(--radius);
  background: rgba(10,7,19,.82);
  box-shadow: 0 18px 50px rgba(0,0,0,.5); }

.bar__now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bar__meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bar__title { font-size: 13px; font-weight: 600; letter-spacing: -.1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bar__center { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(44vw, 560px); }
.controls { display: flex; align-items: center; gap: 22px; }

.ico { display: grid; place-items: center; background: transparent; border: 0; cursor: pointer;
  color: var(--muted); width: 40px; height: 40px; border-radius: 50%; padding: 0;
  transition: color .2s var(--ease), transform .18s var(--spring), background .2s; }
.ico svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.ico:hover { color: var(--ink); }
.ico:active { transform: scale(.9); }
.ico--sm { color: var(--faint); }
.ico--sm svg { width: 18px; height: 18px; }
.ico--sm:hover { color: var(--muted); }
.ico--sm.is-on { color: var(--blue); }

.ico--play { width: 48px; height: 48px; color: var(--bg); background: var(--ink);
  box-shadow: 0 2px 14px rgba(0,0,0,.4); }
.ico--play svg { width: 21px; height: 21px; }
.ico--play:hover { color: var(--bg); background: #fff; transform: scale(1.05); }
.ico--play:active { transform: scale(.95); }

.scrub { display: flex; align-items: center; gap: 11px; width: 100%; }
.scrub__t { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; width: 36px;
  text-align: center; font-family: var(--f-mono); }
.scrub__bar { position: relative; flex: 1; height: 18px; cursor: pointer; display: flex; align-items: center; }
.scrub__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px;
  border-radius: 3px; background: var(--hair-2); }
.scrub__fill { position: absolute; left: 0; top: 7px; height: 4px; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--magenta)); }
.scrub__knob { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%) scale(0); transition: transform .16s var(--spring);
  box-shadow: 0 1px 6px rgba(0,0,0,.5); }
.scrub__bar:hover .scrub__knob, .scrub__bar:focus-visible .scrub__knob,
.bar.is-scrubbing .scrub__knob { transform: translate(-50%,-50%) scale(1); }

.bar__right { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.vol { position: relative; width: 88px; height: 18px; cursor: pointer; display: flex; align-items: center; }
.vol::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px;
  border-radius: 3px; background: var(--hair-2); }
.vol__fill { position: absolute; left: 0; top: 7px; height: 4px; width: 80%; border-radius: 3px; background: var(--muted); }
.vol__knob { position: absolute; top: 50%; left: 80%; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; transform: translate(-50%,-50%) scale(0); transition: transform .16s var(--spring); }
.vol:hover .vol__fill { background: var(--blue); }
.vol:hover .vol__knob { transform: translate(-50%,-50%) scale(1); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
button:focus:not(:focus-visible) { outline: none; }

/* ============================================================
   GLITCH-CORE LAYER — driven by --gi (glitch heat)
   ============================================================ */

/* CRT overlay — scanlines · vignette · tracking band */
.crt { position: fixed; inset: 0; z-index: 15; pointer-events: none; opacity: .4;
  background:
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
      rgba(0,0,0,.16) 3px, rgba(0,0,0,.16) 4px); }
.crt::before { content:''; position:absolute; inset:0;
  background: radial-gradient(130% 130% at 50% 50%, transparent 52%, rgba(6,3,12,.6) 100%); }
.crt::after { content:''; position:absolute; left:0; right:0; height:14%;
  background: linear-gradient(180deg, transparent, rgba(216,59,125,.05) 40%, rgba(0,145,173,.06) 60%, transparent);
  mix-blend-mode: screen; animation: track 7s linear infinite; opacity:.6; }
@keyframes track { 0%{ transform: translateY(-20%); } 100%{ transform: translateY(760%); } }
body.glitch .crt { opacity: calc(.34 + var(--gi) * .45); }

/* brand wordmark — chromatic split while a glitch track plays */
body.glitch .brand__name {
  text-shadow: -1px 0 rgba(183,9,76,.85), 1px 0 rgba(0,145,173,.85);
  animation: chroma 3.4s steps(1) infinite; }
@keyframes chroma {
  0%,88%,100% { text-shadow: -1px 0 rgba(183,9,76,.7), 1px 0 rgba(0,145,173,.7); }
  90% { text-shadow: -3px 0 rgba(183,9,76,.95), 3px 0 rgba(0,145,173,.95); transform: translateX(-2px); }
  92% { transform: translateX(3px) skewX(-6deg); }
  94% { transform: none; }
}

/* now-playing title bleeds with the heat */
body.glitch .np__title {
  text-shadow: calc(var(--gi) * -3px) 0 rgba(183,9,76,.8), calc(var(--gi) * 3px) 0 rgba(0,145,173,.8); }

/* transport heat */
body.glitch .scrub__fill { background: linear-gradient(90deg, var(--blue), var(--magenta), #ff5fa2); }
body.glitch .ico--play { box-shadow: 0 0 calc(8px + var(--gi) * 18px) rgba(216,59,125,.45); }

/* ============================================================
   DESKTOP EXTRAS — expensive effects gated to fine pointers
   ============================================================ */
@media (pointer: fine) and (min-width: 881px) {
  .bar { backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4);
    background: rgba(10,7,19,.66); }
  .drawer { backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
    background: rgba(10,6,18,.82); }
  .segmented { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .crt { mix-blend-mode: overlay; opacity: .5;
    background:
      repeating-linear-gradient(0deg,
        rgba(0,0,0,0) 0px, rgba(0,0,0,0) 1px,
        rgba(0,0,0,.22) 2px, rgba(0,0,0,.22) 3px); }
  /* whole-screen flicker — desktop only (repaints are too costly on phones) */
  body.glitch .app-flick { }
  body.glitch .stage { animation: flick 5.5s steps(2) infinite; }
  @keyframes flick { 0%,96%,100%{ filter:none; } 97%{ filter: brightness(1.25) contrast(1.1); } 98%{ filter: brightness(.85); } }
}

/* ── MOBILE LAYOUT ─────────────────────────────────────────── */
@media (max-width: 880px) {
  :root { --bar-h: 118px; --radius: 18px; }

  .top { left: 8px; right: 8px; }
  .brand { padding: 6px; }
  .brand__text { display: none; }           /* sigil only — tap to open tracklist */
  .seg { padding: 9px 18px; font-size: 10px; }
  .top__spacer { width: 44px; }

  .np { left: 18px; right: 18px; text-align: left;
    bottom: calc(var(--bar-h) + var(--sab) + 18px); }
  .np__title { font-size: 20px; }
  .hint { bottom: calc(var(--bar-h) + var(--sab) + 64px); }

  .lyric-line { font-size: 21px; }
  .lyric-line--hit { font-size: 24px; }
  .lyrics__scroll { padding: 42vh 20px; }

  /* transport: scrub on top row, controls truly centred below */
  .bar { left: 8px; right: 8px; bottom: calc(8px + var(--sab));
    grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto;
    gap: 2px 12px; padding: 10px 14px 12px; height: auto; }
  .bar__center { display: contents; }
  .scrub { grid-column: 1 / -1; grid-row: 1; }
  .bar__now { grid-column: 1; grid-row: 2; }
  .bar__title { font-size: 12.5px; }
  .bar__sub { font-size: 10.5px; }
  /* dead-centre the play cluster: minmax(0,1fr) keeps both flanks EXACTLY
     equal (content may overflow inward, never shifting the centre) */
  .bar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .controls { grid-column: 2; grid-row: 2; gap: 12px; }
  .bar__now { grid-column: 1; grid-row: 2; min-height: 44px; }
  .bar__right { grid-column: 3; grid-row: 2; gap: 0; justify-self: end; }
  .bar__right .ico { width: 38px; height: 38px; }
  .vol, #loopBtn { display: none; }         /* hardware volume on phones */
  .ico { width: 42px; height: 42px; }
  .ico--play { width: 46px; height: 46px; }

  .drawer { width: min(360px, 92vw); }
}

@media (max-width: 380px) {
  .bar__meta { display: none; }
}

/* honour reduced-motion */
@media (prefers-reduced-motion: reduce) {
  body.glitch .stage, body.glitch .brand__name,
  .brand__ring, .brand__pupil, .crt::after, .begin__btn { animation: none !important; }
  .crt { opacity: .25; }
}
