/* =========================================================================
   BIRP Loading — Ladebildschirm im Auftritt der Webseite (BIRP Design System).
   Tokens: css/tokens.css (aus @birp/tokens). Schwarz, Crimson als einziger
   Akzent, Anton / Inter / JetBrains Mono, keine Radien, CCTV-Ecken, Scanlines.

   FiveM-CEF: kein backdrop-filter (er zeichnet dort ein schwarzes Rechteck),
   kein Blur auf großen Flächen — Tiefe kommt aus Verläufen und Transparenz.
   ========================================================================= */

@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--birp-bg); }
body {
  font-family: var(--birp-font-body);
  color: var(--birp-ink);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  cursor: default;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
.mono { font-family: var(--birp-font-mono); font-variant-numeric: tabular-nums; }
.red { color: var(--birp-red); }
.muted { color: var(--birp-ink-3); font-size: 13px; }

.eyebrow {
  font-family: var(--birp-font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--birp-red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--birp-red); box-shadow: 0 0 10px var(--birp-red-glow); }

/* ---------- Bühne: Hintergrund und Atmosphäre ---------- */
#stage { position: fixed; inset: 0; overflow: hidden; background: var(--birp-bg); }
#parallax { position: absolute; inset: -3%; transition: transform 0.35s ease-out; will-change: transform; }
.bg-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease;
  will-change: opacity, transform;
}
.bg-layer.on { opacity: 1; }
.bg-layer.ken { animation: kenburns 16s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-0.8%, -0.6%, 0); } }

.veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.55) 26%, rgba(5, 5, 5, 0.18) 55%, rgba(5, 5, 5, 0.5) 100%); }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 38%, rgba(0, 0, 0, 0.72) 100%); }
.grid {
  position: absolute; inset: -10%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift { to { transform: translate3d(80px, 80px, 0); } }
.scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 3px); }
.scan::after {
  content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 18%;
  background: linear-gradient(180deg, transparent, rgba(255, 45, 45, 0.045), transparent);
  animation: sweep 9s linear infinite;
}
@keyframes sweep { to { transform: translate3d(0, 650%, 0); } }
.grain {
  position: absolute; inset: -50%; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---------- CCTV-Rahmen ---------- */
.frame { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.corner { position: absolute; width: 34px; height: 34px; border: 1px solid var(--birp-red); opacity: 0.9; }
.corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.booting .corner { animation: corner-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes corner-in { from { transform: scale(2.6); opacity: 0; } to { transform: scale(1); opacity: 0.9; } }

/* ---------- Layout ---------- */
#ui {
  position: fixed; inset: 0; z-index: 10;
  display: grid;
  grid-template-columns: minmax(280px, 25vw) 1fr minmax(340px, 31vw);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px 28px;
  padding: clamp(28px, 3.4vw, 60px) clamp(34px, 3.8vw, 68px) clamp(26px, 3vw, 50px);
}
.top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-start; }
.col { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.col--left { grid-column: 1; grid-row: 2; }
.col--right { grid-column: 3; grid-row: 2; }
.bottom { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }

/* ---------- Marke ---------- */
.brand { display: flex; align-items: center; gap: 16px; position: relative; }
.booting .brand { animation: brand-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes brand-in { from { opacity: 0; transform: translate3d(-24px, 0, 0); } to { opacity: 1; transform: none; } }
.brand__logo { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(255, 45, 45, 0.35)); cursor: pointer; }
.brand__name { position: relative; font-family: var(--birp-font-display); font-size: clamp(30px, 3.1vw, 46px); line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; margin-bottom: 6px; }
.brand__name::before, .brand__name::after { content: attr(data-text); position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.brand__name::before { color: #fff; text-shadow: -3px 0 var(--birp-red); }
.brand__name::after { color: var(--birp-red); text-shadow: 3px 0 #fff; }
.brand.glitch .brand__name::before { animation: glitch-a 0.55s steps(2, end) both; }
.brand.glitch .brand__name::after { animation: glitch-b 0.55s steps(2, end) both; }
@keyframes glitch-a { 0% { opacity: 1; clip-path: inset(10% 0 60% 0); transform: translate3d(-4px, 0, 0); } 25% { clip-path: inset(55% 0 10% 0); transform: translate3d(3px, 0, 0); } 50% { clip-path: inset(30% 0 40% 0); transform: translate3d(-2px, 0, 0); } 75% { clip-path: inset(70% 0 5% 0); transform: translate3d(4px, 0, 0); } 100% { opacity: 0; clip-path: inset(0); transform: none; } }
@keyframes glitch-b { 0% { opacity: 1; clip-path: inset(50% 0 20% 0); transform: translate3d(4px, 0, 0); } 30% { clip-path: inset(5% 0 70% 0); transform: translate3d(-3px, 0, 0); } 60% { clip-path: inset(60% 0 15% 0); transform: translate3d(2px, 0, 0); } 100% { opacity: 0; clip-path: inset(0); transform: none; } }
.brand.storm .brand__logo { animation: storm 0.9s steps(3) both; }
@keyframes storm { 0%, 100% { transform: none; } 20% { transform: translate3d(-3px, 2px, 0) skewX(6deg); } 40% { transform: translate3d(4px, -2px, 0) skewX(-8deg); } 60% { transform: translate3d(-2px, 1px, 0) scale(1.08); } 80% { transform: translate3d(2px, -1px, 0) skewX(4deg); } }

/* ---------- HUD (Aufnahme-Anzeige) ---------- */
.hud { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.booting .hud { animation: hud-in 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes hud-in { from { opacity: 0; transform: translate3d(24px, 0, 0); } to { opacity: 1; transform: none; } }
.hud__rec { display: flex; align-items: center; gap: 10px; font-family: var(--birp-font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--birp-red); }
.hud__rec #timecode { color: var(--birp-ink); letter-spacing: 0.12em; }
.hud__cam { font-size: 10.5px; letter-spacing: 0.26em; color: var(--birp-ink-3); }
.hud__players { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 5px 10px; border: 1px solid var(--birp-line-2); background: rgba(10, 10, 10, 0.7); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--birp-ink-2); }
.hud__players[hidden] { display: none; }
.rec-dot, .live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--birp-red); box-shadow: 0 0 12px var(--birp-red-glow); animation: blink 1.4s infinite; }
.live-dot { width: 7px; height: 7px; background: var(--birp-ok); box-shadow: 0 0 10px rgba(0, 255, 136, 0.5); animation-duration: 2.4s; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.25; } }

/* ---------- Panels ---------- */
.panel {
  position: relative; display: flex; flex-direction: column; min-height: 0;
  background: rgba(10, 10, 10, 0.84);
  border: 1px solid var(--birp-line-2);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}
.panel::before { content: ""; position: absolute; top: -1px; left: -1px; width: 38px; height: 2px; background: var(--birp-red); box-shadow: 0 0 10px var(--birp-red-glow); }
.panel--red { border-color: rgba(255, 45, 45, 0.28); background: linear-gradient(180deg, rgba(255, 45, 45, 0.05), rgba(10, 10, 10, 0.86) 30%); }
.booting .panel { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.panel[data-delay="1"] { animation-delay: 0.3s; }
.panel[data-delay="2"] { animation-delay: 0.45s; }
.panel[data-delay="3"] { animation-delay: 0.6s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
.panel__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--birp-line); }
.panel__legend { margin-left: auto; font-size: 10.5px; color: var(--birp-ink-3); white-space: nowrap; }
.panel__toggle { width: 26px; height: 26px; margin-left: auto; display: grid; place-items: center; border: 1px solid var(--birp-line-2); transition: background 0.2s, border-color 0.2s; }
.panel__legend + .panel__toggle { margin-left: 4px; }
.panel__toggle:hover { background: var(--birp-bg-3); border-color: var(--birp-red); }
.panel__toggle svg { width: 14px; height: 14px; fill: none; stroke: var(--birp-ink-2); stroke-width: 2; stroke-linecap: square; }
.panel__body { overflow-y: auto; padding: 14px 16px 16px; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--birp-red) transparent; }
.panel__body::-webkit-scrollbar { width: 5px; }
.panel__body::-webkit-scrollbar-thumb { background: var(--birp-red); }

/* eingeklappt: links News und Tipps zusammen, rechts der Changelog */
.col--left, .col--right { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease; }
body.news-off .col--left { transform: translate3d(-115%, 0, 0); opacity: 0; pointer-events: none; }
body.changelog-off .col--right { transform: translate3d(115%, 0, 0); opacity: 0; pointer-events: none; }

/* News */
.news-list { display: grid; gap: 10px; }
.news-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--birp-ink-2); }
.news-list .ico { font-size: 15px; line-height: 1.2; }

/* Tipps */
.panel--tips .tips__count { margin-left: auto; font-size: 10.5px; letter-spacing: 0.2em; color: var(--birp-ink-3); }
.tips__text { padding: 14px 16px 12px; min-height: 76px; font-size: 14px; line-height: 1.5; color: var(--birp-ink); }
.tips__text .caret { display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--birp-red); animation: blink 0.9s steps(1) infinite; }
.tips__timer { height: 2px; background: var(--birp-line); }
.tips__timer i { display: block; height: 100%; width: 0; background: var(--birp-red); }

/* Changelog */
.changelog { display: grid; gap: 14px; align-content: start; }
.cl-entry { position: relative; padding: 12px 12px 12px 14px; border: 1px solid var(--birp-line); border-left: 2px solid var(--birp-line-2); background: rgba(255, 255, 255, 0.02); animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.cl-entry--new { border-left-color: var(--birp-red); background: rgba(255, 45, 45, 0.05); }
.cl-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--birp-line); }
.cl-date { font-family: var(--birp-font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--birp-ink); }
.cl-version { font-family: var(--birp-font-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--birp-ink-3); }
.pill { display: inline-block; padding: 1px 7px; font-family: var(--birp-font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; color: #000; background: var(--birp-red); }
.cl-sec { margin-top: 9px; }
.cl-sec:first-of-type { margin-top: 0; }
.cl-sec h3 { font-family: var(--birp-font-display); font-weight: 400; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.cl-sec li { font-size: 12.5px; line-height: 1.55; color: var(--birp-ink-2); padding-left: 1.7em; text-indent: -1.7em; }
.cl-sec li.plain { padding-left: 0; text-indent: 0; }

/* Seitenreiter */
.tab { position: fixed; z-index: 20; top: 20vh; padding: 16px 8px; background: var(--birp-bg-1); border: 1px solid var(--birp-line-2); writing-mode: vertical-rl; font-family: var(--birp-font-mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--birp-ink-2); opacity: 0; pointer-events: none; transition: opacity 0.35s, border-color 0.2s, color 0.2s; }
.tab:hover { border-color: var(--birp-red); color: var(--birp-ink); }
.tab--left { left: 0; border-left: 0; }
.tab--right { right: 0; border-right: 0; top: 24vh; }
body.news-off #tab-news, body.changelog-off #tab-changelog { opacity: 1; pointer-events: auto; }
/* Der Reiter hüpft alle paar Sekunden, wird dabei rot und wächst — das lenkt den Blick auf sich, solange das Panel zu ist. */
.tab--left { transform-origin: left center; animation: tab-bounce-r 4.2s ease-in-out 0.6s infinite; }
.tab--right { transform-origin: right center; animation: tab-bounce-l 4.2s ease-in-out 1.7s infinite; }
.tab:hover { animation-play-state: paused; }
@keyframes tab-bounce-r {
  0%, 34%, 100% { transform: translate3d(0, 0, 0) scale(1); background-color: var(--birp-bg-1); border-color: var(--birp-line-2); color: var(--birp-ink-2); box-shadow: none; }
  7% { transform: translate3d(16px, 0, 0) scale(1.16); background-color: var(--birp-red); border-color: var(--birp-red); color: #000; box-shadow: 0 0 24px var(--birp-red-glow); }
  14% { transform: translate3d(0, 0, 0) scale(1.05); background-color: var(--birp-red); border-color: var(--birp-red); color: #000; box-shadow: 0 0 14px var(--birp-red-glow); }
  21% { transform: translate3d(10px, 0, 0) scale(1.12); background-color: var(--birp-red); border-color: var(--birp-red); color: #000; box-shadow: 0 0 20px var(--birp-red-glow); }
  28% { transform: translate3d(0, 0, 0) scale(1.02); background-color: var(--birp-bg-1); border-color: var(--birp-line-2); color: var(--birp-ink-2); box-shadow: none; }
}
@keyframes tab-bounce-l {
  0%, 34%, 100% { transform: translate3d(0, 0, 0) scale(1); background-color: var(--birp-bg-1); border-color: var(--birp-line-2); color: var(--birp-ink-2); box-shadow: none; }
  7% { transform: translate3d(-16px, 0, 0) scale(1.16); background-color: var(--birp-red); border-color: var(--birp-red); color: #000; box-shadow: 0 0 24px var(--birp-red-glow); }
  14% { transform: translate3d(0, 0, 0) scale(1.05); background-color: var(--birp-red); border-color: var(--birp-red); color: #000; box-shadow: 0 0 14px var(--birp-red-glow); }
  21% { transform: translate3d(-10px, 0, 0) scale(1.12); background-color: var(--birp-red); border-color: var(--birp-red); color: #000; box-shadow: 0 0 20px var(--birp-red-glow); }
  28% { transform: translate3d(0, 0, 0) scale(1.02); background-color: var(--birp-bg-1); border-color: var(--birp-line-2); color: var(--birp-ink-2); box-shadow: none; }
}
.tab-badge { position: absolute; top: -9px; left: -9px; padding: 2px 6px; font-size: 9px; font-weight: 700; letter-spacing: 0.1em; writing-mode: horizontal-tb; color: #000; background: var(--birp-red); box-shadow: 0 0 12px var(--birp-red-glow); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }

/* Hinweis auf neue Changelogs */
#toast { position: fixed; z-index: 30; top: 24px; left: 50%; transform: translate3d(-50%, 0, 0); max-width: 380px; padding: 12px 18px; cursor: pointer; background: var(--birp-bg-1); border: 1px solid var(--birp-line-2); border-left: 3px solid var(--birp-red); box-shadow: 0 0 32px rgba(0, 0, 0, 0.55); animation: toast-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); transition: opacity 0.5s, transform 0.5s; }
#toast[hidden] { display: none; }
#toast.hide { opacity: 0; transform: translate3d(-50%, -14px, 0); }
#toast b { display: block; font-size: 13px; font-weight: 600; }
#toast span { display: block; margin-top: 3px; font-size: 12px; color: var(--birp-ink-2); }
@keyframes toast-in { from { opacity: 0; transform: translate3d(-50%, -18px, 0); } to { opacity: 1; transform: translate3d(-50%, 0, 0); } }

/* ---------- Fortschritt ---------- */
.progress { flex: 1; max-width: 760px; }
.booting .progress { animation: rise 0.8s 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.progress__row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.progress__phase { font-size: 13px; letter-spacing: 0.06em; color: var(--birp-ink-2); transition: opacity 0.25s; }
.progress__phase.swap { opacity: 0; }
.progress__pct { font-size: 30px; letter-spacing: 0.04em; color: var(--birp-ink); line-height: 1; }
.bar { position: relative; height: 6px; overflow: hidden; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.06); }
.bar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--birp-red-deep), var(--birp-red)); box-shadow: 0 0 16px var(--birp-red-glow); transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar__fill::after { content: ""; position: absolute; right: 0; top: -3px; bottom: -3px; width: 3px; background: #fff; box-shadow: 0 0 10px #fff, 0 0 18px var(--birp-red); }
.bar__scan { position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 10px, rgba(255, 255, 255, 0.07) 10px 12px); background-size: 24px 24px; animation: stripes 1.2s linear infinite; }
@keyframes stripes { to { background-position: 24px 0; } }
.bar.indeterminate .bar__fill { width: 32% !important; animation: indet 1.5s ease-in-out infinite; transition: none; }
@keyframes indet { 0% { transform: translate3d(-100%, 0, 0); } 100% { transform: translate3d(320%, 0, 0); } }
.progress__flavor { margin-top: 12px; min-height: 18px; font-size: 13px; letter-spacing: 0.02em; color: var(--birp-ink-2); transition: opacity 0.26s, transform 0.26s; }
.progress__flavor.swap { opacity: 0; transform: translate3d(0, 4px, 0); }
.progress__greet { margin-top: 8px; font-family: var(--birp-font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--birp-ink-3); }

/* ---------- Steuerung ---------- */
.controls { display: flex; align-items: center; gap: 10px; }
.booting .controls { animation: rise 0.8s 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.music { display: flex; align-items: center; gap: 4px; padding: 5px 12px 5px 5px; background: rgba(10, 10, 10, 0.84); border: 1px solid var(--birp-line-2); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; transition: background 0.2s; }
.icon-btn:hover { background: var(--birp-bg-3); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: var(--birp-ink); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.icon-btn svg[hidden] { display: none; }
/* Musik wartet auf einen Klick (Browser blockieren Autoplay): Knopf pulsiert */
.icon-btn.attn { background: var(--birp-red); animation: pulse 1.2s ease-in-out infinite; }
.icon-btn.attn svg { stroke: #000; }
.music__vol { width: 38px; text-align: right; font-size: 11px; color: var(--birp-ink-3); }
.eq { display: flex; align-items: flex-end; gap: 2px; width: 46px; height: 22px; margin: 0 8px 0 4px; }
.eq i { flex: 1; height: 100%; background: linear-gradient(0deg, var(--birp-red-deep), var(--birp-red)); transform-origin: bottom; transform: scaleY(0.12); will-change: transform; }
.range { -webkit-appearance: none; appearance: none; width: 110px; height: 4px; background: rgba(255, 255, 255, 0.14); outline: none; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 15px; background: var(--birp-red); box-shadow: 0 0 10px var(--birp-red-glow); border: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(10, 10, 10, 0.84); border: 1px solid var(--birp-line-2); font-family: var(--birp-font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--birp-ink-2); transition: border-color 0.2s, color 0.2s; }
button.chip:hover { border-color: var(--birp-red); color: var(--birp-ink); }
.chip b { color: var(--birp-ok); font-weight: 600; }
.chip--ghost { color: var(--birp-ink-3); }
body.fx-low #fx-state { color: var(--birp-red); }

/* ---------- Effekte aus (schwächere Rechner / reduzierte Bewegung) ---------- */
body.fx-low .grain, body.fx-low .grid, body.fx-low .scan::after, body.fx-low .bar__scan { display: none; }
body.fx-low .bg-layer.ken, body.fx-low .rec-dot, body.fx-low .live-dot, body.fx-low .corner, body.fx-low .tab-badge { animation: none; }
body.fx-low #parallax { transition: none; }
body.fx-low .booting .panel, body.fx-low .booting .brand, body.fx-low .booting .hud { animation: none; }
body.fx-low .brand.glitch .brand__name::before, body.fx-low .brand.glitch .brand__name::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .grain, .grid, .scan::after, .bar__scan { display: none; }
  .bg-layer.ken, .rec-dot, .live-dot, .tab-badge, .tab { animation: none; }
}

/* ---------- Kleinere Fenster ---------- */
@media (max-width: 1180px) {
  #ui { grid-template-columns: minmax(240px, 30vw) 1fr minmax(300px, 36vw); }
  .panel__legend { display: none; }
  .chip--ghost { display: none; }
}
@media (max-width: 860px), (max-height: 600px) {
  .col--left { display: none; }
  #ui { grid-template-columns: 1fr minmax(260px, 46vw); }
  .col--right { grid-column: 2; }
  .controls .chip { display: none; }
}
