/* LuciferSynq.mp4

   Gestaltung nach dem Logo. Gemessen im Logo:
     Rot      #9d000f / #b30315 / #dd031b   (SYNQ, Pentagramm, Akzente in den Fluegeln)
     Silber   #b2b2b2 / #cfcfcf / #f9f9f9   (LUCIFER, .MP4)
     Fluegel  #060606 / #131313 / #2b2b2b   (Schwarz und Anthrazit ohne Farbstich)
   Daraus: neutrale Flaechen, Silber fuer Schrift, Blutrot als einzige Akzentfarbe.
   Flach statt Glas, Linien statt Schatten und Gluehen, Radius 2 px. Ueberschriften und Reiter
   in Cinzel (die Schrift des Logos), alles Bedienbare in der Systemschrift. */

/* Cinzel 600 und 700, lokal (OFL, fonts/cinzel/OFL.txt), lateinisch mit deutschem Zeichenvorrat */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cinzel/cinzel-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cinzel/cinzel-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/cinzel/cinzel-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/cinzel/cinzel-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Ersatz, bis Cinzel geladen ist: an Cinzels Masse angepasst, damit nichts springt.
   Gemessen im Browser an den Ueberschriften der Seite: Cinzel ist 131 bis 133 Prozent so breit
   wie Times New Roman, Ober- und Unterlaenge 98 und 37 Prozent der Schriftgroesse. */
@font-face {
  font-family: "Cinzel Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Georgia");
  size-adjust: 132%;
  ascent-override: 74%;
  descent-override: 28%;
  line-gap-override: 0%;
}

:root {
  --topbar: 60px;
  --bg: #080808;
  --surface: #0f0f0f;    /* Karten, Buehne, Seitenleiste */
  --surface-2: #161616;  /* Zeilen beim Darueberfahren, Sprechblasen */
  --surface-3: #1e1e1e;  /* gedrueckt, Zaehler */
  --field: #0a0a0a;      /* Eingabefelder */
  --line: #242424;       /* Trennlinien */
  --line-2: #363636;     /* Rahmen von Knoepfen und Leisten */
  --line-ctl: #646464;   /* Rahmen von Eingabefeldern, 3:1 auf --surface */
  --text: #ededed;
  --text-2: #b4b4b4;
  --text-3: #8c8c8c;     /* 5,7:1 auf --surface */
  --red: #b30315;        /* SYNQ im Logo: Knoepfe, Flaechen */
  --red-hi: #dd031b;     /* helle Kante im Logo: Linien, Marker, Zustaende */
  --red-lo: #8a0011;     /* gedrueckt */
  --red-text: #ff3030;   /* rote Schrift auf Schwarz, 5,2:1 */
  --red-tint: rgba(179, 3, 21, 0.14);
  --error: #ff5c5c;
  --focus: #e6e6e6;      /* Fokus: eigene Farbe, nicht das Rot */
  --radius: 2px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cinzel", "Cinzel Fallback", "Times New Roman", serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", ui-monospace, monospace;
  --bass: 0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
#app { position: relative; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: var(--radius); }
::-webkit-scrollbar-thumb:hover { background: #3c3c3c; }
* { scrollbar-width: thin; scrollbar-color: #2c2c2c transparent; }

a { color: inherit; }
button { font: inherit; }
code, kbd { font-family: var(--mono); }
[hidden] { display: none !important; }

.icon { display: inline-flex; width: 20px; height: 20px; flex: none; }
.icon svg { width: 100%; height: 100%; }

/* ---------- Bausteine ---------- */

.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { border-color: var(--red); background: var(--red); color: #fff; }
.btn--primary:hover:not(:disabled) { border-color: var(--red-hi); background: var(--red-hi); }
.btn--primary:active:not(:disabled) { border-color: var(--red-lo); background: var(--red-lo); }
.btn--ghost:hover:not(:disabled) { border-color: #4a4a4a; background: var(--surface-2); }
.btn--danger { border-color: var(--red-hi); color: var(--red-text); }
.btn--danger:hover:not(:disabled) { border-color: var(--red); background: var(--red); color: #fff; }
.btn--lg { width: 100%; min-height: 50px; font-size: 1rem; }
.btn--sm { min-height: 36px; padding: 0 0.75rem; font-size: 0.875rem; }
.btn--square { width: 44px; padding: 0; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn[aria-pressed="true"] { color: var(--red-text); }
.icon-btn--sm { width: 34px; height: 34px; }
.icon-btn--sm .icon { width: 17px; height: 17px; }

.input {
  width: 100%;
  min-height: 46px;
  padding: 0 0.9rem;
  border: 1px solid var(--line-ctl);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s;
}
.input::placeholder { color: #7a7a7a; }
.input:hover:not(:disabled) { border-color: #7c7c7c; }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.input:disabled { opacity: 0.6; }

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.badge--hot { background: var(--red); color: #fff; }

.host-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 28px;
  padding: 0 0.55rem;
  border: 1px solid var(--red-hi);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}
.host-badge .icon { width: 15px; height: 15px; color: var(--red-hi); }
.host-badge--sm { height: 22px; padding: 0 0.4rem; font-size: 0.75rem; }

.empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--text-3); }
.empty .icon { width: 34px; height: 34px; margin-bottom: 0.75rem; color: #3a3a3a; }
.empty strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.empty p { margin: 0 auto; max-width: 28ch; font-size: 0.9rem; }

.linkish {
  margin-top: 0.8rem;
  padding: 0.3rem 0;
  border: 0;
  background: none;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkish:hover { color: var(--text); }

/* ---------- Startseite und Anmeldung ----------
   Ziel: Anmelden, Registrieren und die Startseite passen ohne Scrollen auf den Bildschirm.
   Logo oben, Formular darunter, alles mittig. Bei wenig Hoehe verschwinden schrittweise
   Status, Wellenform, Vorzeile und Spruch (fitToViewport); zuletzt wird das Logo kleiner. */

.landing {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(0.8rem, 2.4vh, 1.6rem);
  padding: clamp(0.75rem, 2.4vh, 1.75rem) 1rem;
  text-align: center;
}
.hero { display: flex; flex-direction: column; align-items: center; }
.kicker {
  margin: clamp(0.4rem, 1.6vh, 1.1rem) 0 0.2rem;
  color: var(--text-3);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Logo (Fluegel, Pentagramm, Schriftzug). Die Groesse folgt Breite und Hoehe des Fensters;
   reicht der Platz trotzdem nicht, setzt fitToViewport ein kleineres max-height. */
.logo {
  position: relative;
  margin: clamp(0.15rem, 0.8vh, 0.5rem) 0 0;
  line-height: 0;
  /* In denselben Momenten wie die Glitch-Kopien leuchtet das ganze Logo kurz rot auf */
  animation: logo-flash 3.2s infinite steps(1);
}
.logo__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 720px);
  max-height: clamp(110px, 34vh, 380px);
}
/* Glitch: zwei Kopien des Logos, kurz versetzt und in Streifen geschnitten (glitch-a/glitch-b) */
.logo__ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
.logo__ghost--a { filter: sepia(1) saturate(14) hue-rotate(-48deg) brightness(0.95); animation: glitch-a 3.2s infinite steps(1); }
.logo__ghost--b { filter: grayscale(1) brightness(2.6); mix-blend-mode: screen; animation: glitch-b 3.2s infinite steps(1); }

.tagline {
  margin: clamp(0.35rem, 1.2vh, 0.9rem) 0 clamp(0.5rem, 1.6vh, 1.1rem);
  color: var(--text-2);
  font-family: var(--serif);
  font-size: clamp(1rem, 2.1vh, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.hero__wave { display: block; width: min(480px, 86vw); height: clamp(32px, 6vh, 60px); }
.hero__status {
  margin: clamp(0.4rem, 1.3vh, 0.9rem) 0 0;
  color: var(--text-3);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.gate { width: min(420px, 100%); padding: clamp(1rem, 2.6vh, 1.6rem) clamp(1rem, 3vw, 1.6rem); text-align: left; }
.gate__title {
  margin: 0 0 clamp(0.6rem, 1.6vh, 1rem);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.gate__title code { color: var(--red-text); font-size: 0.85em; letter-spacing: 0.1em; }
.gate__form { display: flex; flex-direction: column; }
.field { display: block; margin-bottom: clamp(0.5rem, 1.35vh, 0.85rem); }
.field__label { display: block; margin-bottom: 0.35rem; color: var(--text-2); font-size: 0.875rem; font-weight: 500; }
.gate .input { min-height: clamp(40px, 5.6vh, 46px); }
.gate .btn--lg { min-height: clamp(44px, 6vh, 50px); }
.or {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: clamp(0.6rem, 1.7vh, 1.1rem) 0 clamp(0.5rem, 1.5vh, 0.9rem);
  color: var(--text-3);
  font-size: 0.82rem;
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.join { display: flex; gap: 0.5rem; }
.input--code { text-align: center; font-family: var(--mono); letter-spacing: 0.24em; text-transform: uppercase; }
.gate__error { min-height: 1.3rem; margin: 0.1rem 0 0.55rem; color: var(--error); font-size: 0.9rem; line-height: 1.3; }
.gate__error:empty { min-height: 0.4rem; }

/* Anmelden oder Registrieren: Reiter mit roter Unterkante statt Schaltflaechen */
.seg {
  display: flex;
  gap: 1.5rem;
  margin: 0 0 clamp(0.7rem, 1.8vh, 1.1rem);
  border-bottom: 1px solid var(--line);
}
.seg__btn {
  position: relative;
  min-height: clamp(36px, 4.6vh, 42px);
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-3);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.seg__btn:hover { color: var(--text-2); }
.seg__btn[aria-selected="true"] { color: var(--text); }
.seg__btn[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red-hi); }
.field__row { position: relative; }
.field__row .input { padding-right: 3rem; }
.field__eye { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); }
.trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.captcha__row { display: grid; grid-template-columns: minmax(120px, 168px) minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; }
.captcha__frame {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border: 1px solid var(--line-ctl);
  border-radius: var(--radius);
  background: var(--field);
}
.captcha__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.captcha .input--code { min-width: 0; padding: 0 0.4rem; letter-spacing: 0.2em; }
.waiting { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 0.6rem 0 0.2rem; text-align: center; }
.waiting__icon { width: 40px; height: 40px; color: var(--red-hi); }
.waiting strong { color: var(--text); font-family: var(--serif); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; }
.waiting p { margin: 0 0 0.5rem; color: var(--text-2); }
.whoami { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem; margin: -0.3rem 0 clamp(0.7rem, 1.8vh, 1.1rem); color: var(--text-2); font-size: 0.92rem; }
.whoami strong { color: var(--text); }
.linkish--inline { margin: 0; padding: 0; }

/* So funktioniert es: eine ruhige Zeile unter der Karte */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 0.85rem;
}
.steps li + li::before { content: "\00b7"; margin: 0 0.6rem; color: var(--red-hi); }

.is-squeezed { display: none !important; }
@media (max-width: 379.98px) {
  .captcha__row { grid-template-columns: minmax(96px, 1fr) minmax(0, 0.9fr) auto; }
  .join { flex-direction: column; }
}

/* ---------- Raum ---------- */

.room { min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  height: var(--topbar);
  padding: 0 clamp(0.75rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
/* Logo-Band (Schriftzug mit Fluegeln), auf dem Handy nur das Pentagramm */
.brand { display: flex; align-items: center; flex: none; }
.brand__band { display: block; width: auto; height: 40px; }
.brand__sigil { display: none; width: 26px; height: 26px; color: var(--red-hi); }

.portal-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: clamp(0.75rem, 1.6vw, 1.25rem);
  border-left: 1px solid var(--line-2);
}
.portal-chip__label { color: var(--text-3); font-size: 0.82rem; }
.portal-chip__code { color: var(--text); font-size: 0.95rem; letter-spacing: 0.14em; }

.status { display: flex; align-items: center; gap: 0.45rem; color: var(--text-3); font-size: 0.82rem; }
.status__dot { width: 7px; height: 7px; flex: none; border: 1px solid var(--text-3); border-radius: 50%; }
.status[data-state="open"] { color: var(--text-2); }
.status[data-state="open"] .status__dot { border-color: var(--red-hi); background: var(--red-hi); }
.status[data-state="failed"] .status__dot { border-color: #555; background: #555; }

.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }

.room__main {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  grid-template-rows: minmax(0, 1fr); /* genau Fensterhoehe, eine lange Warteschlange dehnt nichts */
  min-height: 0;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  width: 100%;
  max-width: 1500px;
  height: max(540px, calc(100dvh - var(--topbar)));
  margin: 0 auto;
  padding: clamp(0.5rem, 1.6vh, 1.25rem) clamp(0.75rem, 2vw, 1.5rem);
  align-items: stretch;
}

/* Altar */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-auto-rows: auto;
  justify-items: center;
  gap: clamp(0.35rem, 1.1vh, 0.9rem);
  min-height: 0;
  height: 100%;
  padding: clamp(0.6rem, 1.8vh, 1.5rem) clamp(0.9rem, 2.4vw, 2rem);
  overflow: hidden;
}
.altar-slot { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; container-type: size; }
.altar { position: relative; width: min(100%, 440px, 46vh); width: min(100cqw, 100cqh, 480px); aspect-ratio: 1; }
.altar__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Cover im Kreis: rote Linie, Abstand, graue Linie, wie der Kreis um das Pentagramm im Logo */
.altar__artwrap {
  position: absolute;
  inset: 26.5%;
  overflow: hidden;
  border-radius: 50%;
  background: #101010;
  box-shadow: 0 0 0 1px var(--red-hi), 0 0 0 6px var(--surface), 0 0 0 7px var(--line-2);
  will-change: transform;
}
.altar__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.altar__empty { position: absolute; inset: 0; display: grid; place-items: center; color: #2e2e2e; }
.altar__empty .icon { width: 46%; height: 46%; }
/* Leerer Altar: keine toten Regler, das Eingabefeld rueckt nach oben */
.is-empty .scrubwrap, .is-empty .transport { display: none; }

.unlock {
  position: absolute;
  inset: 26.5%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.84);
  color: var(--text);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.unlock .icon { width: 40px; height: 40px; color: var(--red-hi); }

.track-meta { width: 100%; max-width: 760px; text-align: center; }
.eyebrow { margin: 0 0 0.4rem; color: var(--text-3); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.track-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, min(3vw, 3.4vh), 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.is-empty .track-title { color: var(--text-2); font-family: var(--serif); font-weight: 700; letter-spacing: 0.02em; }
.track-line { display: flex; align-items: center; justify-content: center; gap: 0.2rem; min-height: 34px; margin-top: 0.3rem; }
.track-artist { margin-right: 0.35rem; color: var(--text-2); font-size: 1rem; text-decoration: none; }
.track-artist:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.scrubwrap { width: 100%; max-width: 760px; }
.scrub { position: relative; height: clamp(40px, 7vh, 64px); cursor: pointer; touch-action: none; border-radius: var(--radius); }
.scrub[aria-disabled="true"] { cursor: default; }
.scrub__canvas { display: block; width: 100%; height: 100%; }
.scrub__tip {
  position: absolute;
  top: -30px;
  padding: 0.1rem 0.4rem;
  transform: translateX(-50%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--text);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
.times { display: flex; justify-content: space-between; margin-top: 0.35rem; color: var(--text-3); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

.transport { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem; width: 100%; max-width: 760px; }
.transport__center { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.1rem); }
.transport__side { display: flex; align-items: center; gap: 0.3rem; }
.transport__side--end { justify-self: end; }
.tbtn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.tbtn:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
.tbtn[aria-pressed="true"] { border-color: var(--red-hi); color: var(--red-text); }
.tbtn:disabled { opacity: 0.3; cursor: not-allowed; }
.tbtn .icon { width: 22px; height: 22px; }
.tbtn--sm { width: 40px; height: 40px; }
.tbtn--sm .icon { width: 20px; height: 20px; }

.play {
  display: grid;
  place-items: center;
  width: clamp(56px, 8.2vh, 72px);
  height: clamp(56px, 8.2vh, 72px);
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s;
}
.play:hover:not(:disabled) { background: var(--red-hi); }
.play:active:not(:disabled) { background: var(--red-lo); }
.play:disabled { background: var(--surface-3); color: #555; cursor: not-allowed; }
.play .icon { width: 30px; height: 30px; }

.volume { display: flex; align-items: center; }
.vol {
  --v: 85%;
  width: 96px;
  height: 20px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.vol::-webkit-slider-runnable-track { height: 3px; border-radius: 1px; background: linear-gradient(to right, var(--red-hi) var(--v), #333 var(--v)); }
.vol::-moz-range-track { height: 3px; border-radius: 1px; background: #333; }
.vol::-moz-range-progress { height: 3px; border-radius: 1px; background: var(--red-hi); }
.vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 1px; background: #d9d9d9; }
.vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 1px; background: #d9d9d9; }

.alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 760px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--red-hi);
  border-radius: var(--radius);
  background: var(--red-tint);
  color: var(--text);
}
.alert .icon { color: var(--red-text); }
.alert__text { flex: 1; min-width: 12rem; }

/* Eingabefeld fuer Links */
.summon { width: 100%; max-width: 760px; }
.summon__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem;
  border: 1px solid var(--line-ctl);
  border-radius: var(--radius);
  background: var(--field);
}
.summon__row:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.summon__icon { width: 20px; height: 20px; margin-left: 0.55rem; color: var(--red-hi); }
.summon__input { flex: 1; min-width: 0; height: 44px; padding: 0 0.25rem; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; }
.summon__input:focus, .summon__input:focus-visible { outline: none; }
.summon__input::placeholder { color: #7a7a7a; }
.summon__hint { margin: 0.5rem 0.2rem 0; color: var(--text-3); font-size: 0.85rem; }
.summon__hint.is-error { color: var(--error); }
.import { margin-top: 0.7rem; }
.import__bar { height: 3px; overflow: hidden; border-radius: 1px; background: #222; }
.import__bar span { display: block; width: 4%; height: 100%; background: var(--red-hi); transition: width 0.25s; }
.import__text { display: block; margin-top: 0.35rem; color: var(--text-2); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

/* Seitenleiste */
.side {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.tabs { display: flex; flex: none; border-bottom: 1px solid var(--line); container: tabs / inline-size; }
.tab {
  position: relative;
  flex: 1 1 auto; /* nach Inhalt: Cinzel laeuft breit, gleich breite Reiter schnitten "Queue" ab */
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 50px;
  padding: 0 0.3rem;
  border: 0;
  background: none;
  color: var(--text-3);
  font-family: var(--serif);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.tab .icon { width: 17px; height: 17px; }
.tab__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Schmale Seitenleiste: nur der offene Reiter zeigt seinen Namen, die anderen ihr Zeichen
   (der Name bleibt fuer Screenreader lesbar und steht im Tooltip) */
@container tabs (max-width: 399px) {
  .tab:not([aria-selected="true"]) .tab__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
.tab:hover { color: var(--text-2); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -1px;
  height: 2px;
  background: var(--red-hi);
}
.tabpanel { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.45rem 0.75rem 0.45rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

/* Warteschlange */
.q-list { margin: 0; padding: 0.3rem; list-style: none; }
.q-item { position: relative; display: flex; align-items: center; border-radius: var(--radius); }
.q-item:hover { background: var(--surface-2); }
.q-item.is-current { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--red-hi); }
.q-item__main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.q-item__idx { width: 22px; flex: none; color: var(--text-3); font-size: 0.78rem; text-align: center; font-variant-numeric: tabular-nums; }
.q-item__thumb { width: 42px; height: 42px; flex: none; object-fit: cover; border-radius: var(--radius); background: var(--surface-3); }
.q-item__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.q-item__title { overflow: hidden; color: var(--text); font-size: 0.92rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.q-item__sub { overflow: hidden; color: var(--text-3); font-size: 0.8rem; white-space: nowrap; text-overflow: ellipsis; }
.q-item__dur { flex: none; color: var(--text-3); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.q-item__remove { flex: none; margin-right: 0.2rem; opacity: 0; }
.q-item:hover .q-item__remove, .q-item:focus-within .q-item__remove { opacity: 1; }
@media (hover: none) { .q-item__remove { opacity: 1; } }

/* Verlauf: gleiche Zeilen wie die Warteschlange, rechts ein Knopf zum Wiederholen */
.h-item .q-item__main { gap: 0.65rem; }
.h-item__ph { display: grid; place-items: center; color: #3a3a3a; }
.h-item__ph .icon { width: 20px; height: 20px; }
.h-item--pl .q-item__thumb { box-shadow: 3px -3px 0 -1px #2c2c2c, 6px -6px 0 -2px #1c1c1c; } /* gestapelt: Playlist */
.h-item__when { flex: none; color: var(--text-3); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.h-item__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text-2);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.h-item__go .icon { width: 16px; height: 16px; }
.h-item .q-item__main:hover .h-item__go,
.h-item .q-item__main:focus-visible .h-item__go { border-color: var(--red); background: var(--red); color: #fff; }
.h-item .q-item__main[aria-disabled="true"] { cursor: progress; }
.h-item.is-wait { opacity: 0.55; }
.h-item.is-busy .h-item__go .icon { animation: spin 0.9s linear infinite; }
.h-item.is-done .h-item__go { border-color: var(--red-hi); color: var(--red-text); }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 100%; background: var(--red-hi); transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
.eq.is-paused i { animation-play-state: paused; transform: scaleY(0.35); }

/* Chat */
.tabpanel--chat .scroll { padding-bottom: 0.25rem; }
.chat-log { display: flex; flex-direction: column; margin: 0; padding: 0.5rem 0.85rem 0.75rem; list-style: none; }
.msg { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.7rem; }
.msg--cont { margin-top: 0.2rem; }
.msg--cont .avatar { visibility: hidden; height: 0; }
.msg--cont .msg__meta { display: none; }
.msg__body { min-width: 0; max-width: 85%; }
.msg__meta { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.15rem; }
.msg__name { color: var(--text-2); font-size: 0.82rem; font-weight: 600; }
.msg__time { color: var(--text-3); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.msg__text {
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.msg--mine { flex-direction: row-reverse; }
.msg--mine .msg__body { display: flex; flex-direction: column; align-items: flex-end; }
.msg--mine .msg__meta { flex-direction: row-reverse; }
.msg--mine .msg__name { color: var(--red-text); }
.msg--mine .msg__text { background: #2a080c; }
.msg--system { justify-content: center; margin: 0.8rem 0 0.2rem; color: var(--text-3); font-size: 0.78rem; text-align: center; }
.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 700;
}
.jump {
  position: absolute;
  left: 50%;
  bottom: 76px;
  padding: 0.3rem 0.8rem;
  transform: translateX(-50%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
}
.composer { display: flex; flex: none; gap: 0.5rem; padding: 0.65rem; border-top: 1px solid var(--line); }
.composer .input { min-height: 44px; }
.composer__count { align-self: center; flex: none; min-width: 2.6ch; color: var(--text-3); font-size: 0.78rem; text-align: right; font-variant-numeric: tabular-nums; }
.composer__count.is-max { color: var(--error); }

/* 7TV-Emotes: im Text, Auswahlfeld ueber dem Eingabefeld, Vorschlaege nach ":" */
.emote { display: inline-block; margin: -4px 1px; vertical-align: middle; }
.emote-toggle { flex: none; align-self: center; }
.emote-picker, .emote-suggest {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 66px; /* Hoehe der Eingabezeile */
  z-index: 5;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.emote-picker { display: flex; flex-direction: column; max-height: min(340px, calc(100% - 78px)); }
.emote-picker__search { width: auto; min-height: 40px; margin: 0.5rem; }
.emote-picker__scroll { flex: 1; min-height: 0; padding: 0 0.4rem 0.5rem; overflow-y: auto; overscroll-behavior: contain; }
.emote-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 2px; }
.emote-picker__more { height: 1px; }
.emote-picker__empty { margin: 1rem 0.5rem; color: var(--text-3); font-size: 0.85rem; text-align: center; }
.emote-pick {
  display: grid;
  place-items: center;
  height: 46px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
}
.emote-pick:hover { border-color: var(--line-2); background: var(--surface-3); }
.emote-pick img { width: auto; max-width: 42px; height: auto; max-height: 32px; }
.emote-suggest { display: flex; flex-direction: column; padding: 0.3rem; }
.emote-suggest__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 36px;
  padding: 0.2rem 0.5rem;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--text);
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}
.emote-suggest__item:hover, .emote-suggest__item.is-active { background: var(--surface-3); }
.emote-suggest__item.is-active { box-shadow: inset 2px 0 0 var(--red-hi); }
.emote-suggest__item img { flex: none; width: auto; max-width: 48px; height: 24px; }

/* Seelen */
.souls { margin: 0; padding: 0.4rem; list-style: none; }
.soul { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.6rem; border-radius: var(--radius); }
.soul:hover { background: var(--surface-2); }
.soul__name { flex: 1; min-width: 0; overflow: hidden; color: var(--text); white-space: nowrap; text-overflow: ellipsis; }
.soul__you { color: var(--text-3); font-size: 0.88rem; }
.invite { flex: none; padding: 0.9rem 1rem 1rem; border-top: 1px solid var(--line); }
.invite p { margin: 0 0 0.6rem; color: var(--text-2); font-size: 0.88rem; }
.invite__row { display: flex; align-items: center; gap: 0.5rem; }
.invite__link {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font-size: 0.8rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Mini-Player */
.mini {
  position: fixed;
  left: 0.6rem;
  right: 0.6rem;
  bottom: calc(0.6rem + env(safe-area-inset-bottom));
  z-index: 30;
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.5rem;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  transform: translateY(150%);
  transition: transform 0.25s ease;
}
.mini.is-on { transform: none; }
.mini__progress { position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--red-hi); }
.mini__art { width: 42px; height: 42px; flex: none; object-fit: cover; border-radius: var(--radius); background: var(--surface-3); }
.mini__text { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.mini__title { overflow: hidden; color: var(--text); font-size: 0.9rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.mini__artist { overflow: hidden; color: var(--text-3); font-size: 0.78rem; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- Meldungen und Dialoge ---------- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(1.2rem + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(440px, calc(100vw - 1.5rem));
  transform: translateX(-50%);
  pointer-events: none;
}
.has-mini .toasts { bottom: calc(5.6rem + env(safe-area-inset-bottom)); }
.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: auto;
}
.toast.is-in { opacity: 1; transform: none; }
.toast--error { border-color: var(--red-hi); }
.toast .icon { color: var(--red-hi); }
.toast--error .icon { color: var(--error); }
.toast__text { flex: 1; min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.toast__action { flex: none; padding: 0.25rem 0.4rem; border: 0; background: none; color: var(--red-text); font-weight: 600; cursor: pointer; }

.dialog {
  width: min(470px, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.74); }
.dialog__head { display: flex; align-items: center; gap: 0.6rem; padding: 1.05rem 0.85rem 0.3rem 1.2rem; }
.dialog__icon { color: var(--red-hi); }
.dialog__title { flex: 1; margin: 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.25; }
.dialog__body { padding: 0.4rem 1.2rem 1.1rem; color: var(--text-2); line-height: 1.55; }
.dialog__body p { margin: 0; }
.dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; padding: 0 1.2rem 1.2rem; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1rem; align-items: center; margin: 0; }
.keys dt { text-align: right; }
.keys dd { margin: 0; color: var(--text); }
kbd {
  display: inline-block;
  min-width: 2.2em;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8rem;
  text-align: center;
}

.noscript { padding: 2rem; text-align: center; }

/* ---------- Bewegung ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes glitch-a {
  0%, 100% { opacity: 0; transform: none; clip-path: none; }
  18% { opacity: 0.85; transform: translate(-4px, 1px); clip-path: inset(8% 0 62% 0); }
  20% { opacity: 0.85; transform: translate(5px, -1px); clip-path: inset(58% 0 18% 0); }
  22% { opacity: 0; }
  52% { opacity: 0.8; transform: translate(3px, 0); clip-path: inset(35% 0 40% 0); }
  54% { opacity: 0; }
  84% { opacity: 0.85; transform: translate(-5px, 1px); clip-path: inset(12% 0 55% 0); }
  86% { opacity: 0.85; transform: translate(4px, 0); clip-path: inset(62% 0 10% 0); }
  88% { opacity: 0.85; transform: translate(-2px, 0); clip-path: inset(30% 0 45% 0); }
  90% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 100% { opacity: 0; transform: none; clip-path: none; }
  19% { opacity: 0.6; transform: translate(4px, 0); clip-path: inset(40% 0 35% 0); }
  21% { opacity: 0; }
  53% { opacity: 0.55; transform: translate(-3px, 1px); clip-path: inset(10% 0 70% 0); }
  54% { opacity: 0; }
  85% { opacity: 0.6; transform: translate(-5px, 1px); clip-path: inset(70% 0 5% 0); }
  87% { opacity: 0.6; transform: translate(3px, 0); clip-path: inset(20% 0 60% 0); }
  89% { opacity: 0; }
}
/* Aufblitzen des Logos: roter Schein um die Fluegel, nur leicht heller (sonst wird das Schwarz grau) */
@keyframes logo-flash {
  0%, 100% { filter: none; }
  18% { filter: brightness(1.18) drop-shadow(0 0 18px rgba(221, 3, 27, 0.75)); }
  22% { filter: none; }
  52% { filter: brightness(1.1) drop-shadow(0 0 10px rgba(221, 3, 27, 0.5)); }
  54% { filter: none; }
  84% { filter: brightness(1.24) drop-shadow(0 0 26px rgba(221, 3, 27, 0.85)); }
  90% { filter: none; }
}

/* Effekte aus (Schalter oder "weniger Bewegung" als Startwert) */
.fx-off .logo__ghost { display: none; }
.fx-off .logo { animation: none; }
.fx-off .eq i, .fx-off .h-item.is-busy .h-item__go .icon { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .mini, .toast { transition: none; }
}

/* ---------- Breiten ---------- */

@media (max-width: 1099.98px) {
  .room__main { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
  .status__text { display: none; }
  .brand__band { height: 32px; }
}

@media (max-width: 1023.98px) {
  /* Einspaltig: die Buehne fuellt den Bildschirm, Warteschlange und Chat folgen darunter */
  .room__main { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; }
  .stage { height: max(500px, calc(100dvh - var(--topbar) - 1.2rem)); }
  .side { height: min(72dvh, 640px); min-height: 420px; }
  .mini { display: flex; }
  .room { padding-bottom: 4.6rem; }
}

/* Wenig Hoehe: Hinweis unter dem Eingabefeld nur bei Fehlern */
@media (max-height: 820px) {
  .summon__hint:not(.is-error) { display: none; }
  .track-line { min-height: 28px; }
}

@media (max-width: 719.98px) {
  .portal-chip__label, .hide-sm { display: none; }
  .brand__band { display: none; }
  .brand__sigil { display: inline-flex; }
  .topbar { gap: 0.5rem; }
  .portal-chip { padding-left: 0.6rem; }
  .transport { grid-template-columns: 1fr 1fr; grid-template-areas: "c c" "l r"; gap: 0.3rem; }
  .transport__center { grid-area: c; justify-self: center; }
  .transport__side { grid-area: l; justify-self: start; }
  .transport__side--end { grid-area: r; justify-self: end; }
  .vol { width: 88px; }
  .stage { padding: 1rem 0.85rem 1.2rem; }
  .gate { padding: 1.25rem; }
}

/* Handy: Kopfleiste muss in 360px passen */
@media (max-width: 479.98px) {
  .topbar { gap: 0.35rem; padding: 0 0.5rem; }
  .topbar .kbd-btn, .host-badge__text, .status__text { display: none; }
  .host-badge { padding: 0 0.4rem; }
  .portal-chip { gap: 0.25rem; padding-left: 0.5rem; }
  .portal-chip__code { font-size: 0.85rem; letter-spacing: 0.1em; }
  .topbar__right { gap: 0.15rem; }
  .topbar .btn--sm { padding: 0 0.6rem; }
}

@media (max-width: 379.98px) {
  .play { width: 64px; height: 64px; }
}
