/* =====================================================================
   OPERATION LAN PARTY // CS2 EINSATZPRÜFUNG
   Eigenes taktisches Design – keine Valve-Assets, keine externen Bilder.
   Mobile-first. Farben unten in :root anpassen.
   ===================================================================== */

:root {
  /* Palette */
  --black: #0b0b0a;
  --anthracite: #151513;
  --panel: #1d1b18;
  --panel-2: #24211c;
  --grey: #3a352d;
  --grey-2: #554b39;
  --dust: #c9b68f;          /* Dust-Beige */
  --sand: #e4d6b4;          /* Sand */
  --text: #f1ebdd;
  --muted: #a99d85;
  --orange: #f08a24;        /* nur für Aktionen, Countdown, Status */
  --orange-hi: #ffa040;
  --orange-ink: #1a1006;
  --hit: #9cc46a;           /* TARGET ELIMINATED */
  --miss: #ef6a4c;          /* TARGET MISSED / Warnung */
  --focus: #ffd08a;

  /* Typo */
  --font-head: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Barlow Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Roboto Mono", "Liberation Mono", monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --gutter: 16px;
  --tap: 52px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  background-color: var(--black);
  /* Grid + leichte Vignette */
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(201, 182, 143, 0.10), transparent 60%),
    linear-gradient(rgba(201, 182, 143, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 182, 143, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  overflow-x: hidden;
}

button, input { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--orange); color: var(--orange-ink);
  font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 0.85em; }
.is-hidden { display: none !important; }

/* ---------------------------------------------------------------------
   Topbar
   --------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px var(--gutter);
  padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(11, 11, 10, 0.92);
  border-bottom: 1px solid var(--grey);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.topbar__brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar__mark { color: var(--orange); font-size: 14px; letter-spacing: -2px; }
.topbar__name {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--sand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar__dim { color: var(--muted); font-weight: 400; }
.topbar__tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

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

/* LED */
.led {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--grey-2); flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
}
.led--ok { background: var(--hit); box-shadow: 0 0 8px rgba(156, 196, 106, 0.6); }
.led-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted);
}
.led-badge[data-state=""] { display: none; }
.led-badge[data-state="live"] .led { background: var(--hit); box-shadow: 0 0 8px rgba(156, 196, 106, 0.6); }
.led-badge[data-state="fallback"] .led { background: var(--orange); }
.led-badge[data-state="offline"] .led { background: var(--miss); }
@media (max-width: 360px) { .led__label { display: none; } }

/* Verbindungsbanner */
.net-banner {
  position: sticky; top: 48px; z-index: 19;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px;
  padding: 10px var(--gutter);
  background: repeating-linear-gradient(-45deg, #3a1a10 0 12px, #2a120b 12px 24px);
  border-bottom: 2px solid var(--miss);
  color: var(--text);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-align: center;
}
.net-banner[hidden] { display: none; }
.net-banner span { color: var(--orange-hi); animation: blink 1.2s steps(2, start) infinite; }

/* ---------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------- */
.main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  outline: none;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(36, 33, 28, 0.96), rgba(29, 27, 24, 0.96));
  border: 1px solid var(--grey-2);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
/* HUD-Ecken */
.card::before, .card::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: var(--dust); border-style: solid; opacity: 0.55;
}
.card::before { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.card::after { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.card--center { text-align: center; align-items: center; }
.card--center > * { max-width: 100%; }
.card--narrow { max-width: 560px; margin: 0 auto; }
.card--alert { border-left-color: var(--miss); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card__foot { display: flex; justify-content: center; padding-top: 4px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------------------------------------------------------------------
   Typografie
   --------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange);
}
.eyebrow b { color: var(--sand); font-size: 1.15em; letter-spacing: 0.12em; }

.title {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; line-height: 0.98; color: var(--sand);
  overflow-wrap: anywhere;
}
.title--xl { font-size: clamp(40px, 13vw, 64px); }
.title--lg { font-size: clamp(30px, 9.5vw, 46px); }
.title--md { font-size: clamp(24px, 7vw, 32px); }
.title--warn { color: var(--miss); }

.subtitle {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--dust);
}
.lead { font-size: 18px; color: var(--text); }
.meta, .coords {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted);
}
.coords { opacity: 0.8; }
.section-title {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--dust); display: flex; align-items: center; gap: 8px;
  border-top: 1px dashed var(--grey-2); padding-top: 12px; width: 100%;
}
.card--center .section-title { justify-content: center; }
.count {
  display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px;
  background: var(--orange); color: var(--orange-ink); border-radius: 3px; font-size: 14px;
}

/* CLASSIFIED-Stempel */
.stamp {
  position: absolute; top: 18px; right: 14px; z-index: 1;
  padding: 3px 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 800; letter-spacing: 0.2em;
  color: var(--miss); border: 2px solid var(--miss); border-radius: 3px;
  transform: rotate(8deg); opacity: 0.85;
  background: rgba(239, 106, 76, 0.06);
}
.card__head .stamp { position: static; transform: rotate(4deg); }
.card > .stamp + * { margin-top: 30px; }

/* Warnstreifen */
.stripes {
  height: 8px; width: 100%; flex-shrink: 0; border-radius: 2px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 10px, var(--black) 10px 20px);
  opacity: 0.85;
}

/* ---------------------------------------------------------------------
   Formulare & Buttons
   --------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field__label {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; color: var(--dust);
}
.field__hint { font-size: 13px; color: var(--muted); }
.input {
  width: 100%; min-height: var(--tap);
  padding: 12px 14px;
  background: var(--black); color: var(--text);
  border: 1px solid var(--grey-2); border-radius: var(--radius);
  font-size: 19px; /* ≥16px: kein Auto-Zoom auf iOS */
}
.input::placeholder { color: #6e6555; }
.input:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(240, 138, 36, 0.35); }
.input--code {
  font-family: var(--font-mono); font-size: 30px; font-weight: 700; letter-spacing: 0.35em; text-align: center;
}
.form-error { min-height: 1.4em; color: var(--miss); font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; }
.form-error:empty { min-height: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--grey-2); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 15px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-align: center;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
  transition: background-color 120ms, border-color 120ms, transform 80ms, opacity 120ms;
}
.btn:hover:not(:disabled) { border-color: var(--dust); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }
.btn--primary { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.btn--primary:hover:not(:disabled) { background: var(--orange-hi); border-color: var(--orange-hi); }
.btn--ghost { background: transparent; }
.btn--ghost.btn--primary, .btn--danger-ghost.btn--primary { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.btn--danger { background: var(--miss); border-color: var(--miss); color: #1b0a05; }
.btn--danger-ghost { background: transparent; border-color: rgba(239, 106, 76, 0.6); color: #ff9c85; }
.btn--block { width: 100%; min-height: var(--tap); font-size: 17px; }
.btn--xl { min-height: 72px; font-size: 22px; }
.btn--small { min-height: 44px; font-size: 13px; padding: 8px 14px; }
.btn--tiny { min-height: 34px; padding: 4px 10px; font-size: 11px; letter-spacing: 0.08em; }
.btn--tiny[aria-pressed="false"] { color: var(--muted); }

/* ---------------------------------------------------------------------
   Radar (Deko)
   --------------------------------------------------------------------- */
.radar {
  position: relative; width: 132px; height: 132px; margin: 4px auto; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 30%, rgba(201, 182, 143, 0.25) 30.5% 31%, transparent 31.5% 60%, rgba(201, 182, 143, 0.25) 60.5% 61%, transparent 61.5%),
    linear-gradient(rgba(201, 182, 143, 0.25), rgba(201, 182, 143, 0.25)) center / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(201, 182, 143, 0.25), rgba(201, 182, 143, 0.25)) center / 100% 1px no-repeat,
    radial-gradient(circle, rgba(36, 33, 28, 0.9), rgba(11, 11, 10, 0.9));
  border: 1px solid var(--grey-2);
  overflow: hidden;
}
.radar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(240, 138, 36, 0.38), transparent 70deg);
  animation: sweep 4s linear infinite;
}
.radar--sm { width: 72px; height: 72px; }

/* ---------------------------------------------------------------------
   Lobby
   --------------------------------------------------------------------- */
.facts { display: grid; gap: 10px; width: 100%; }
.facts > div {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; background: rgba(11, 11, 10, 0.5); border: 1px solid var(--grey); border-radius: var(--radius);
}
.facts dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }
.facts dd { font-family: var(--font-mono); font-weight: 700; color: var(--sand); text-align: right; overflow-wrap: anywhere; }
.facts--row { grid-template-columns: 1fr 1fr; }
.facts--row > div { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.facts--row dd { font-size: 22px; text-align: center; }
.status-ok { display: inline-flex; align-items: center; gap: 8px; color: var(--hit) !important; }
.callsign { font-size: 18px; }

.roster-wrap { width: 100%; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.roster__item {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 9px 10px; background: rgba(11, 11, 10, 0.55); border: 1px solid var(--grey); border-radius: 4px;
  font-family: var(--font-mono); font-size: 14px;
  animation: drop-in 260ms ease-out both;
}
.roster__item.is-me { border-color: var(--orange); }
.roster__dot { width: 7px; height: 7px; background: var(--hit); border-radius: 50%; flex-shrink: 0; }
.roster__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; text-align: left; }
.roster__tag { font-size: 10px; color: var(--orange-ink); background: var(--orange); padding: 1px 5px; border-radius: 2px; letter-spacing: 0.1em; }

/* ---------------------------------------------------------------------
   HUD, Fortschritt, Countdown
   --------------------------------------------------------------------- */
.hud {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--muted);
}
.hud b { color: var(--sand); font-size: 15px; }
.hud__item--phase { color: var(--dust); }
.hud__item--score b { color: var(--orange-hi); }

.progress { display: flex; gap: 3px; width: 100%; }
.progress__seg { flex: 1; height: 6px; background: var(--grey); border-radius: 1px; }
.progress__seg.is-done { background: var(--dust); }
.progress__seg.is-current { background: var(--orange); box-shadow: 0 0 6px rgba(240, 138, 36, 0.7); }
.progress__seg.is-phase-end { margin-right: 6px; }

.countdown { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.countdown__face { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.countdown__value {
  font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: 56px; line-height: 1; color: var(--sand);
  transition: color 200ms;
}
.countdown__label { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); }
.countdown__bar { width: 100%; height: 8px; background: var(--grey); border-radius: 2px; overflow: hidden; }
.countdown__fill {
  display: block; height: 100%; width: 100%; background: var(--dust);
  transform-origin: left center; transition: transform 220ms linear, background-color 200ms;
}
.countdown--sm .countdown__value { font-size: 34px; }
.countdown--lg .countdown__value { font-size: 96px; }
.countdown[data-level="lead"] .countdown__value { color: var(--dust); }
.countdown[data-level="lead"] .countdown__label { color: var(--orange); }
.countdown[data-level="urgent"] .countdown__value { color: var(--orange); }
.countdown[data-level="urgent"] .countdown__fill { background: var(--orange); }
.countdown[data-level="critical"] .countdown__value { color: var(--orange-hi); animation: pulse 1s ease-in-out infinite; }
.countdown[data-level="critical"] .countdown__fill { background: var(--miss); }
.countdown[data-level="critical"] .countdown__label { color: var(--orange-hi); }
.countdown[data-level="expired"] .countdown__value { color: var(--miss); }
.countdown[data-level="expired"] .countdown__label { color: var(--miss); }

/* ---------------------------------------------------------------------
   Frage & Antworten (Spieler)
   --------------------------------------------------------------------- */
.question-text {
  font-family: var(--font-body); font-weight: 700; font-size: clamp(21px, 6vw, 26px); line-height: 1.25;
  color: var(--text); overflow-wrap: anywhere;
}
.answers { display: grid; gap: 10px; width: 100%; }
.answer {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px;
  padding: 10px 12px; text-align: left;
  background: rgba(11, 11, 10, 0.6); color: var(--text);
  border: 2px solid var(--grey-2); border-radius: var(--radius);
  font-size: 18px; font-weight: 600; line-height: 1.25;
  cursor: pointer; touch-action: manipulation;
  transition: border-color 120ms, background-color 120ms, transform 80ms;
}
.answer:hover:not(:disabled) { border-color: var(--dust); }
.answer:active:not(:disabled) { transform: scale(0.99); }
.answer[aria-pressed="true"] { border-color: var(--orange); background: rgba(240, 138, 36, 0.14); }
.answer[aria-pressed="true"] .answer__key { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
.answer:disabled { opacity: 0.6; cursor: default; }
.answer__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* A/B-Markierung im Bombsite-Stil */
.answer__key {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px;
  font-family: var(--font-head); font-size: 24px; font-weight: 700;
  color: var(--sand); background: var(--black);
  border: 2px solid var(--dust); border-radius: 50%;
}
.answer__key--ok { background: var(--hit); border-color: var(--hit); color: #102006; }
.btn--confirm { margin-top: 2px; }

/* Lock / Ergebnis */
.lock-icon {
  width: 64px; height: 64px; margin: 4px auto 0; border: 3px solid var(--orange); border-radius: 50%;
  position: relative;
}
.lock-icon::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 12px;
  border-left: 5px solid var(--orange); border-bottom: 5px solid var(--orange);
  transform: translate(-50%, -65%) rotate(-45deg);
}
.locked-choice {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 10px 14px; border: 1px solid var(--grey-2); border-radius: var(--radius);
  background: rgba(11, 11, 10, 0.55); font-size: 18px; font-weight: 700; text-align: left;
}
.locked-choice > span:last-child { overflow-wrap: anywhere; }
.card--locked .title { color: var(--orange-hi); }
.result-title { animation: stamp-in 380ms cubic-bezier(.2, 1.4, .4, 1) both; }
.card--result.is-hit { border-left-color: var(--hit); }
.card--result.is-hit .result-title { color: var(--hit); }
.card--result.is-miss { border-left-color: var(--miss); }
.card--result.is-miss .result-title { color: var(--miss); }
.result-points { font-family: var(--font-head); font-size: 44px; font-weight: 700; color: var(--sand); line-height: 1; }
.card--result.is-hit .result-points { color: var(--hit); }
.solution { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }

/* Mini-Rangliste */
.mini-rank { width: 100%; display: grid; gap: 6px; }
.mini-rank__item {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--grey); border-radius: 4px; background: rgba(11, 11, 10, 0.5);
  font-family: var(--font-mono); text-align: left;
}
.mini-rank__item:first-child { border-color: var(--orange); }
.mini-rank__item.is-me { background: rgba(240, 138, 36, 0.12); }
.mini-rank__pos { color: var(--orange); font-weight: 800; }
.mini-rank__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-rank__pts { color: var(--sand); font-weight: 700; }

.top-operator {
  display: inline-block; padding: 6px 14px;
  font-family: var(--font-mono); font-size: 15px; font-weight: 800; letter-spacing: 0.22em;
  color: var(--orange-ink); background: var(--orange); border-radius: 3px;
}
.final-pos { font-family: var(--font-head); font-size: 88px; font-weight: 700; line-height: 0.9; color: var(--sand); }
.card--final.is-top .final-pos { color: var(--orange-hi); }
.rank-title { color: var(--orange-hi) !important; }
.next-phase { font-family: var(--font-mono); letter-spacing: 0.08em; color: var(--dust); }
.next-phase b { color: var(--orange-hi); }

/* ---------------------------------------------------------------------
   Dialog & Toast
   --------------------------------------------------------------------- */
.dialog {
  width: min(460px, calc(100vw - 32px)); padding: 0 18px 18px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--grey-2); border-top: none; border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.dialog__stripes {
  height: 8px; margin: 0 -18px 16px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 10px, var(--black) 10px 20px);
}
.dialog__title { font-family: var(--font-head); font-size: 26px; text-transform: uppercase; color: var(--sand); line-height: 1.05; margin-bottom: 10px; }
.dialog__text { color: var(--muted); margin-bottom: 18px; }
.dialog__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.dialog__actions .btn { flex: 1 1 140px; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 50;
  max-width: calc(100vw - 32px); padding: 12px 16px;
  background: var(--panel-2); border: 1px solid var(--grey-2); border-left: 4px solid var(--orange); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 0.05em;
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform 200ms ease, opacity 200ms ease;
}
.toast[data-kind="error"] { border-left-color: var(--miss); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* Hinweis, solange der Browser den Ton noch sperrt */
.sound-unlock {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translateX(-50%);
  min-height: 52px; padding: 12px 22px;
  background: var(--orange); color: var(--orange-ink);
  border: none; border-radius: 999px;
  font-family: var(--font-mono); font-size: 15px; font-weight: 800; letter-spacing: 0.12em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(240, 138, 36, 0.25);
  cursor: pointer;
  animation: pulse 1.6s ease-in-out infinite;
}
.sound-unlock[hidden] { display: none; }

/* =====================================================================
   HOST / MISSION CONTROL
   ===================================================================== */
.page--host .main { max-width: none; padding-top: 14px; }
.page--host .card--narrow { margin-top: 4vh; }

.dash {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  grid-template-areas: "stage" "side" "controls";
}
.stage { grid-area: stage; min-width: 0; }
.side { grid-area: side; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.controls { grid-area: controls; }

.stage__inner, .panel {
  position: relative;
  background: linear-gradient(180deg, rgba(36, 33, 28, 0.96), rgba(29, 27, 24, 0.96));
  border: 1px solid var(--grey-2); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.stage__inner {
  border-left: 6px solid var(--orange);
  padding: clamp(16px, min(2.4vw, 3.6vh), 40px);
  display: flex; flex-direction: column; gap: clamp(10px, min(1.6vw, 2.2vh), 26px);
  min-height: 100%;
  overflow: hidden;
}
.stage__center { align-items: center; justify-content: center; text-align: center; min-height: 40vh; }
.stage.is-entering .stage__inner { animation: slide-in 320ms ease-out both; }
.stage__head { display: flex; flex-direction: column; gap: 8px; }
.stage__head--center { align-items: center; text-align: center; }
.page--host .title--lg { font-size: clamp(32px, min(4.4vw, 8vh), 84px); }
.page--host .title--xl { font-size: clamp(38px, min(5.6vw, 10vh), 110px); }
.page--host .eyebrow { font-size: clamp(12px, 1.05vw, 20px); }
.page--host .lead { font-size: clamp(17px, 1.5vw, 28px); }
.page--host .muted { font-size: clamp(14px, 1.1vw, 20px); }

.big-count { font-family: var(--font-mono); font-size: clamp(18px, 1.6vw, 30px); letter-spacing: 0.1em; color: var(--dust); }
.big-count b { font-family: var(--font-head); font-size: 2em; color: var(--orange-hi); margin-right: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 8px 10px 8px 14px; background: rgba(11, 11, 10, 0.6);
  border: 1px solid var(--grey-2); border-radius: 4px;
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(14px, min(1.35vw, 2.4vh), 26px);
  animation: drop-in 260ms ease-out both;
}
.chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip__remove {
  display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0;
  background: transparent; border: 1px solid transparent; border-radius: 3px; color: var(--muted);
  font-size: 18px; cursor: pointer; opacity: 0.55;
}
.chip__remove:hover, .chip__remove:focus-visible { opacity: 1; color: var(--miss); border-color: var(--miss); }
.chips--status .chip { padding: 5px 12px; color: var(--muted); font-size: clamp(13px, min(1.1vw, 2vh), 22px); }
.chips--status .chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grey-2); }
.chips--status .chip.is-locked { color: var(--text); border-color: var(--orange); }
.chips--status .chip.is-locked::before { background: var(--orange); box-shadow: 0 0 8px rgba(240, 138, 36, 0.7); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 3vh 0; text-align: center; }
.empty .radar { width: clamp(120px, 14vw, 240px); height: clamp(120px, 14vw, 240px); }

/* Frage auf dem Host */
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.qnum { font-family: var(--font-mono); font-size: clamp(16px, 1.5vw, 28px); letter-spacing: 0.1em; color: var(--muted); }
.qnum b { color: var(--sand); font-size: 1.4em; }
.qhead .countdown { width: auto; min-width: min(300px, 100%); flex: 0 1 360px; }
.countdown--xl .countdown__value { font-size: clamp(52px, min(7.5vw, 11.5vh), 170px); }
.countdown--xl .countdown__bar { height: 12px; }
.host-question {
  font-family: var(--font-body); font-weight: 800; line-height: 1.15; color: var(--text);
  font-size: clamp(24px, min(3.3vw, 5.6vh), 68px); overflow-wrap: anywhere;
}
.host-question--sm { font-size: clamp(20px, min(2.4vw, 4.2vh), 48px); }
.host-options { display: grid; grid-template-columns: 1fr; gap: clamp(8px, 1vw, 18px); }
.host-option {
  position: relative; display: flex; align-items: center; gap: 14px; overflow: hidden;
  padding: clamp(8px, min(1vw, 1.6vh), 20px) clamp(12px, 1.2vw, 22px);
  background: rgba(11, 11, 10, 0.6); border: 2px solid var(--grey-2); border-radius: var(--radius);
  font-size: clamp(17px, min(1.9vw, 3.4vh), 38px); font-weight: 700;
}
.host-option .answer__key { width: clamp(38px, min(3.6vw, 6.4vh), 70px); height: clamp(38px, min(3.6vw, 6.4vh), 70px); font-size: clamp(21px, min(2vw, 3.6vh), 40px); }
.host-option__text { flex: 1; min-width: 0; overflow-wrap: anywhere; position: relative; z-index: 1; }
.host-option__count { position: relative; z-index: 1; font-family: var(--font-head); font-size: 1.25em; color: var(--sand); }
.host-option__bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--pct, 0%);
  background: rgba(201, 182, 143, 0.12); transition: width 600ms ease-out;
}
.host-option.is-correct { border-color: var(--hit); background: rgba(156, 196, 106, 0.12); }
.host-option.is-correct .answer__key { background: var(--hit); border-color: var(--hit); color: #102006; }
.host-option.is-correct .host-option__bar { background: rgba(156, 196, 106, 0.22); }
.host-option.is-wrong { opacity: 0.55; }
.answer-meter { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.answer-meter__count { font-family: var(--font-mono); font-size: clamp(16px, 1.5vw, 30px); letter-spacing: 0.1em; color: var(--muted); }
.answer-meter__count b { color: var(--orange-hi); font-size: 1.3em; }
.answer-meter__status {
  font-family: var(--font-mono); font-weight: 800; letter-spacing: 0.12em; font-size: clamp(14px, 1.3vw, 26px);
  padding: 6px 12px; border: 1px solid var(--grey-2); border-radius: 3px; color: var(--dust);
}
.answer-meter__status[data-state="done"] { color: var(--hit); border-color: var(--hit); }
.answer-meter__status[data-state="expired"] { color: var(--miss); border-color: var(--miss); }
.solution-badge {
  font-family: var(--font-mono); font-size: clamp(16px, 1.4vw, 28px); letter-spacing: 0.14em; color: var(--muted);
  padding: 8px 16px; border: 2px solid var(--hit); border-radius: var(--radius);
}
.solution-badge b { color: var(--hit); font-family: var(--font-head); font-size: 1.6em; margin-left: 6px; }

/* Rangliste */
.ranking { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-family: var(--font-mono); }
.ranking th {
  text-align: left; font-size: 12px; letter-spacing: 0.16em; color: var(--muted); font-weight: 700; padding: 0 12px;
}
.ranking td {
  padding: 10px 12px; background: rgba(11, 11, 10, 0.55);
  border-top: 1px solid var(--grey); border-bottom: 1px solid var(--grey);
  font-size: clamp(15px, min(1.4vw, 2.6vh), 28px);
}
.ranking td:first-child { border-left: 1px solid var(--grey); border-radius: 4px 0 0 4px; }
.ranking td:last-child { border-right: 1px solid var(--grey); border-radius: 0 4px 4px 0; }
.ranking .num { text-align: right; font-variant-numeric: tabular-nums; }
.ranking .pos { width: 1%; white-space: nowrap; color: var(--orange); font-weight: 800; }
.ranking .name { font-weight: 700; overflow-wrap: break-word; }
.ranking .rank-col { color: var(--dust); font-size: clamp(12px, 1vw, 20px); white-space: nowrap; }
.ranking .time-col { color: var(--muted); font-size: clamp(12px, 0.9vw, 18px); white-space: nowrap; }
.ranking--compact { border-spacing: 0 4px; }
.ranking--compact td { padding: 6px 8px; font-size: clamp(13px, min(1vw, 2.2vh), 22px); }
.ranking--compact th { padding: 0 8px; }
.center { text-align: center; }
.ranking tr.is-top td { background: rgba(240, 138, 36, 0.08); border-color: rgba(240, 138, 36, 0.45); }
.ranking tr.is-top-1 td { background: rgba(240, 138, 36, 0.18); border-color: var(--orange); }
.ranking tr.is-top-1 .name { color: var(--orange-hi); }

/* Podium */
.podium {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end;
  gap: clamp(8px, 1.4vw, 28px); width: 100%; max-width: 1100px; margin: 0 auto;
}
.podium__slot { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.stage.is-entering .podium__slot, .tn-finish.is-entering .podium__slot { animation: rise 600ms ease-out both; }
.podium__slot--1 { animation-delay: 500ms; }
.podium__slot--2 { animation-delay: 250ms; }
.podium__slot--3 { animation-delay: 0ms; }
.podium__name {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 2.4vw, 50px); color: var(--sand);
  max-width: 100%; overflow-wrap: anywhere; line-height: 1.05;
}
.podium__slot--1 .podium__name { color: var(--orange-hi); font-size: clamp(22px, 3.2vw, 66px); }
.podium__pts { font-family: var(--font-mono); font-size: clamp(13px, 1.3vw, 26px); color: var(--dust); letter-spacing: 0.06em; }
.podium__block {
  width: 100%; display: grid; place-items: start center; padding-top: 10px;
  border: 1px solid var(--grey-2); border-bottom: none; border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(-45deg, rgba(201, 182, 143, 0.08) 0 10px, transparent 10px 20px), var(--panel);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 3.4vw, 72px); color: var(--dust);
}
.podium__slot--1 .podium__block { height: clamp(110px, 24vh, 300px); border-color: var(--orange); color: var(--orange-hi); background: repeating-linear-gradient(-45deg, rgba(240, 138, 36, 0.16) 0 10px, transparent 10px 20px), var(--panel-2); }
.podium__slot--2 .podium__block { height: clamp(80px, 17vh, 220px); }
.podium__slot--3 .podium__block { height: clamp(56px, 11vh, 160px); }
.podium__slot.is-empty { opacity: 0.35; }
.podium .top-operator { font-size: clamp(11px, 1.1vw, 22px); }
.stage__inner--final .stamp { top: 22px; right: 22px; font-size: clamp(13px, 1vw, 20px); }

/* Seitenleiste */
.panel { padding: clamp(14px, 1.4vw, 24px); display: flex; flex-direction: column; gap: 10px; }
.panel__label { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); }
.panel--code { align-items: center; text-align: center; border-top: 4px solid var(--orange); }
.mission-code {
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.06em; line-height: 1; color: var(--orange-hi);
  font-size: clamp(44px, 4.4vw, 96px); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.panel--code.is-big .mission-code { font-size: clamp(52px, 5.6vw, 128px); }
.qr-wrap { width: 100%; max-width: 220px; padding: 0; }
.panel--code.is-big .qr-wrap { max-width: min(100%, 50vh); }
.qr { display: block; width: 100%; height: auto; border-radius: 4px; image-rendering: pixelated; }
.join-steps { display: grid; gap: 8px; width: 100%; text-align: left; }
.join-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(11, 11, 10, 0.6); border: 1px solid var(--grey); border-radius: 4px; font-family: var(--font-mono); font-weight: 700; font-size: clamp(14px, 1.2vw, 22px); color: var(--sand); }
.join-steps b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--orange-ink); font-family: var(--font-head); font-size: 20px; flex-shrink: 0; }
.join-url { font-family: var(--font-mono); font-size: clamp(12px, 0.95vw, 18px); color: var(--dust); overflow-wrap: anywhere; }
.warn {
  padding: 8px 10px; border: 1px solid var(--miss); border-radius: 4px; color: #ffb3a2;
  font-family: var(--font-mono); font-size: 12px; text-align: left;
}
.facts--grid { grid-template-columns: 1fr 1fr; }
.facts--grid > div { flex-direction: column; align-items: flex-start; gap: 4px; }
.facts--grid dd { text-align: left; font-size: clamp(16px, 1.4vw, 26px); }
.status-chip { color: var(--orange-hi) !important; }
.status-chip[data-status="finished"] { color: var(--hit) !important; }
.status-chip[data-status="aborted"] { color: var(--miss) !important; }
.panel--rank .ranking td { font-size: clamp(14px, 1.05vw, 20px); padding: 7px 10px; }

/* Steuerleiste */
.controls {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  padding: 12px; margin: 0 calc(-1 * var(--gutter));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(11, 11, 10, 0.94); border-top: 1px solid var(--grey-2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.controls__flow, .controls__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.controls .btn { min-height: 48px; font-size: clamp(11px, 0.8vw, 17px); padding: 8px 11px; letter-spacing: 0.05em; white-space: nowrap; }
.controls .btn--primary { box-shadow: 0 0 0 3px rgba(240, 138, 36, 0.25), 0 0 24px rgba(240, 138, 36, 0.35); }

@media (min-width: 720px) {
  .host-options { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  body.is-dashboard { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  body.is-dashboard .main { flex: 1; min-height: 0; display: flex; padding-bottom: 0; }
  .dash {
    flex: 1; min-height: 0;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 560px);
    grid-template-areas: "stage side" "controls controls";
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .stage, .side { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  .stage__inner { min-height: 100%; }
  .controls { position: static; flex-wrap: nowrap; }
  .controls__flow { flex-wrap: nowrap; }
  .dash[data-status="finished"] { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* =====================================================================
   STARTSEITE, GAME COUNTER, BRACKET
   ===================================================================== */

/* gemeinsame Topbar-Ergänzungen */
.topbar__back {
  display: inline-flex; align-items: center; min-height: 34px; padding: 4px 10px; margin-right: 4px;
  border: 1px solid var(--grey-2); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--sand); text-decoration: none; white-space: nowrap;
}
.topbar__back[hidden] { display: none; }
.topbar__back:hover { border-color: var(--orange); color: var(--orange-hi); }
.topbar__cmd { display: inline-flex; gap: 6px; }
.topbar__date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
@media (max-width: 480px) {
  .page--wide .topbar__name { display: none; }
}

.main--wide { max-width: 1500px; }
.main--hub { max-width: 1120px; display: flex; flex-direction: column; gap: 18px; }

/* ---------------------------------------------------------------------
   Startseite
   --------------------------------------------------------------------- */
.hub-head { padding-bottom: 18px; }
.hub-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 860px) { .hub-grid { grid-template-columns: repeat(3, 1fr); } }
.hub-tile {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(36, 33, 28, 0.96), rgba(29, 27, 24, 0.96));
  border: 1px solid var(--grey-2); border-top: 4px solid var(--orange); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform 140ms ease, border-color 140ms ease;
}
.hub-tile:hover, .hub-tile:focus-within { transform: translateY(-2px); border-color: var(--dust); border-top-color: var(--orange-hi); }
.hub-tile__main {
  display: flex; flex-direction: column; gap: 8px; flex: 1;
  padding: 22px 20px 18px; color: inherit; text-decoration: none; min-height: 210px;
}
.hub-tile__num {
  position: absolute; top: 12px; right: 16px;
  font-family: var(--font-head); font-size: 56px; font-weight: 700; line-height: 1; color: rgba(201, 182, 143, 0.14);
}
.hub-tile__kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--orange); }
.hub-tile__title { font-family: var(--font-head); font-size: clamp(32px, 8vw, 44px); font-weight: 700; line-height: 1; color: var(--sand); }
.hub-tile__text { color: var(--muted); font-size: 16px; flex: 1; }
.hub-tile__cta { font-family: var(--font-mono); font-size: 14px; font-weight: 800; letter-spacing: 0.1em; color: var(--orange-hi); }
.hub-tile__sub {
  display: block; padding: 12px 20px; border-top: 1px dashed var(--grey-2);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--dust); text-decoration: none;
}
.hub-tile__sub:hover { color: var(--orange-hi); background: rgba(240, 138, 36, 0.06); }
.hub-coords { text-align: center; }

/* ---------------------------------------------------------------------
   Game Counter
   --------------------------------------------------------------------- */
.page--counter .main { display: flex; flex-direction: column; gap: 16px; }
.cnt-hero { gap: 16px; }
.cnt-team { font-size: clamp(36px, min(7vw, 9vh), 96px); }
.cnt-roster { display: flex; flex-wrap: wrap; gap: 8px; }
.cnt-roster__item { font-size: clamp(14px, 1.3vw, 22px); padding-right: 14px; }
.cnt-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cnt-score__box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: clamp(12px, 2vw, 28px) 8px;
  background: rgba(11, 11, 10, 0.6); border: 1px solid var(--grey-2); border-top: 4px solid var(--grey-2); border-radius: var(--radius);
}
.cnt-score__num {
  font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 0.95;
  font-size: clamp(56px, min(12vw, 16vh), 190px); color: var(--sand);
}
.cnt-score__label { font-family: var(--font-mono); font-size: clamp(12px, 1.2vw, 20px); font-weight: 800; letter-spacing: 0.2em; color: var(--muted); }
.cnt-score__box.is-win { border-top-color: var(--hit); }
.cnt-score__box.is-win .cnt-score__num { color: var(--hit); }
.cnt-score__box.is-loss { border-top-color: var(--miss); }
.cnt-score__box.is-loss .cnt-score__num { color: var(--miss); }
.cnt-score__box.is-tie { border-top-color: var(--dust); }
.facts--triple { grid-template-columns: repeat(3, 1fr); }
.facts--triple > div { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.facts--triple dd { font-size: clamp(16px, 1.8vw, 30px); text-align: center; overflow-wrap: normal; }
.cnt-form-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cnt-form { display: flex; gap: 6px; flex-wrap: wrap; }
.cnt-form__dot {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 4px;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; border: 1px solid var(--grey-2); color: var(--sand);
}
.cnt-form__dot.is-win { background: rgba(156, 196, 106, 0.18); border-color: var(--hit); color: var(--hit); }
.cnt-form__dot.is-loss { background: rgba(239, 106, 76, 0.16); border-color: var(--miss); color: var(--miss); }
.cnt-form__dot.is-tie { background: rgba(201, 182, 143, 0.12); border-color: var(--dust); }

.cnt-editor { border-left-color: var(--orange-hi); gap: 12px; }
.cnt-editor[hidden] { display: none; }
.cnt-editor__row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .cnt-editor__row { grid-template-columns: 1fr auto; align-items: end; } }
.cnt-scorepair { display: flex; align-items: center; gap: 8px; }
.input--score { width: 100px; text-align: center; font-family: var(--font-mono); font-weight: 700; font-size: 22px; -moz-appearance: textfield; }
.input--score::-webkit-outer-spin-button, .input--score::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cnt-colon { font-family: var(--font-head); font-size: 28px; color: var(--dust); }
.cnt-addrow { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 600px) { .cnt-addrow { grid-template-columns: repeat(3, 1fr); } }
.cnt-add { min-height: 60px; font-size: 16px; }
.cnt-add.is-win { border-color: var(--hit); color: var(--hit); }
.cnt-add.is-loss { border-color: var(--miss); color: #ff9c85; }
.cnt-add.is-tie { border-color: var(--dust); color: var(--sand); }
.cnt-add.is-suggested.is-win { background: var(--hit); color: #102006; }
.cnt-add.is-suggested.is-loss { background: var(--miss); color: #1b0a05; }
.cnt-add.is-suggested.is-tie { background: var(--dust); color: var(--orange-ink); }
.cnt-team-edit { border-top: 1px dashed var(--grey-2); padding-top: 10px; }
.cnt-team-edit summary {
  cursor: pointer; min-height: 44px; display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--dust);
}
.cnt-team-edit .form { margin-top: 8px; }
.cnt-roster-inputs { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 700px) { .cnt-roster-inputs { grid-template-columns: repeat(5, 1fr); } }
.cnt-editor__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

.cnt-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 960px) { .cnt-grid { grid-template-columns: 1fr 1fr; } }
.cnt-maptable .cnt-w { color: var(--hit); }
.cnt-maptable .cnt-l { color: var(--miss); }
.cnt-maptable .cnt-t { color: var(--dust); }
.cnt-log { display: grid; gap: 6px; width: 100%; }
.cnt-log__item {
  padding: 8px 10px; background: rgba(11, 11, 10, 0.55); border: 1px solid var(--grey); border-left: 3px solid var(--grey-2); border-radius: 4px;
  font-family: var(--font-mono); font-size: clamp(14px, 1.1vw, 20px);
}
.cnt-log__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 10px; }
.cnt-log__stats {
  min-height: 34px; padding: 4px 8px; border-radius: 3px; cursor: pointer;
  background: transparent; border: 1px solid var(--grey-2); color: var(--dust);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; white-space: nowrap;
}
.cnt-log__stats.is-open { border-color: var(--orange); color: var(--orange-hi); }
.cnt-log__board { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 10px; overflow-x: auto; }
.cnt-log__item.is-win { border-left-color: var(--hit); }
.cnt-log__item.is-loss { border-left-color: var(--miss); }
.cnt-log__item.is-tie { border-left-color: var(--dust); }
.cnt-log__badge { font-family: var(--font-head); font-weight: 700; font-size: 20px; text-align: center; }
.cnt-log__item.is-win .cnt-log__badge, .cnt-log__item.is-win b { color: var(--hit); }
.cnt-log__item.is-loss .cnt-log__badge, .cnt-log__item.is-loss b { color: var(--miss); }
.cnt-log__main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnt-log__map { color: var(--dust); }
.cnt-log__score { color: var(--sand); font-weight: 700; font-variant-numeric: tabular-nums; }
.cnt-log__time { color: var(--muted); font-size: 0.85em; }
@media (max-width: 420px) {
  .cnt-log__row { grid-template-columns: 30px minmax(0, 1fr) auto auto auto; }
  .cnt-log__time { display: none; }
}

/* ---------------------------------------------------------------------
   Bracket (Vorlage: TACTICAL DUEL BRACKET)
   --------------------------------------------------------------------- */
.page--bracket .main--wide { max-width: 1800px; padding-top: 10px; padding-bottom: 12px; }
.br-page {
  display: flex; flex-direction: column; gap: clamp(10px, 1.6vh, 24px);
  background: #121210;
  border: 1px solid var(--grey); border-radius: var(--radius);
  padding: 0 clamp(14px, 3vw, 56px);
  background-image:
    linear-gradient(rgba(201, 182, 143, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 182, 143, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow: hidden;
}
.br-stripes { height: 12px; margin: 0 calc(-1 * clamp(14px, 3vw, 56px)); width: auto; border-radius: 0; }
.br-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 4px; }
.br-title {
  font-family: var(--font-head); font-weight: 700; color: var(--text); line-height: 1;
  font-size: clamp(26px, min(3.6vw, 6.4vh), 64px);
}
.br-sub { font-family: var(--font-head); font-weight: 700; font-size: clamp(16px, min(1.8vw, 3.2vh), 32px); color: var(--orange); margin-top: 6px; }
.br-meta { text-align: right; font-family: var(--font-mono); font-size: clamp(11px, 0.85vw, 15px); font-weight: 700; letter-spacing: 0.12em; color: var(--dust); display: grid; gap: 8px; align-content: start; }
.br-meta--hot { color: var(--orange); }
@media (max-width: 700px) { .br-meta { text-align: left; } }

.br-tools {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 16px;
  background: rgba(36, 33, 28, 0.9); border: 1px solid var(--grey-2); border-left: 5px solid var(--orange-hi); border-radius: var(--radius);
}
.br-tools[hidden] { display: none; }
.br-tools__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.br-save { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); margin-left: auto; }
.br-save[data-kind="ok"] { color: var(--hit); }
.br-save[data-kind="error"] { color: var(--miss); }

.br-board {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 16px;
  padding: 8px 0 18px;
}
.br-lines { display: none; position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 0; }
.br-line { fill: none; stroke: var(--orange); stroke-width: 3; opacity: 0.55; }
.br-line.is-active { opacity: 1; filter: drop-shadow(0 0 4px rgba(240, 138, 36, 0.6)); }
.br-dot { fill: var(--orange); opacity: 0.55; }
.br-dot.is-active { opacity: 1; }
.br-col { display: none; font-family: var(--font-mono); font-size: clamp(11px, 0.9vw, 16px); font-weight: 700; letter-spacing: 0.14em; color: var(--dust); }
.br-radar { display: none; }
.br-sites { display: none; }

.duel-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.duel {
  background: linear-gradient(180deg, #23221d, #1a1916);
  border: 1px solid var(--grey-2); border-bottom: 2px solid var(--dust); border-radius: 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.duel__head {
  position: relative; padding: clamp(8px, 1.2vh, 12px) 14px clamp(8px, 1.2vh, 12px) 20px;
  background: #2b2a24; border-bottom: 1px solid var(--grey);
  font-family: var(--font-mono); font-size: clamp(11px, min(0.85vw, 1.6vh), 16px); font-weight: 800; letter-spacing: 0.08em; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.duel__head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--orange); }
.duel.is-ready { border-color: var(--orange); }
.duel__note { font-family: var(--font-mono); font-size: clamp(10px, 0.8vw, 14px); letter-spacing: 0.1em; color: var(--muted); }
.slot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: clamp(5px, 0.9vh, 10px) 14px clamp(6px, 1vh, 12px); }
.slot + .slot { border-top: 1px solid var(--grey); }
.slot__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.slot__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.slot__name {
  min-height: 1.5em; padding-bottom: 3px; border-bottom: 1px solid var(--dust);
  font-family: var(--font-head); font-size: clamp(16px, min(1.5vw, 2.8vh), 30px); font-weight: 700; color: var(--sand);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.slot__name.is-empty { color: #6e6555; font-family: var(--font-mono); font-size: clamp(11px, 0.85vw, 15px); font-weight: 400; letter-spacing: 0.08em; }
.slot__input, .slot__score-input {
  background: var(--black); color: var(--text); border: 1px solid var(--grey-2); border-radius: 3px;
}
.slot__input { width: 100%; min-height: 40px; padding: 6px 8px; font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.slot__input:focus, .slot__score-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 138, 36, 0.3); }
.slot__score { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.slot__box {
  display: grid; place-items: center; width: clamp(40px, min(3.2vw, 5.6vh), 64px); height: clamp(36px, min(3vw, 5.2vh), 58px);
  border: 1px solid var(--dust); border-radius: 3px; background: rgba(11, 11, 10, 0.7);
}
.slot__score-text { font-family: var(--font-head); font-size: clamp(20px, min(1.9vw, 3.4vh), 36px); font-weight: 700; color: var(--sand); font-variant-numeric: tabular-nums; }
.slot__score-input {
  width: 100%; height: 100%; text-align: center; border: none; background: transparent;
  font-family: var(--font-head); font-size: 24px; font-weight: 700; -moz-appearance: textfield;
}
.slot__score-input::-webkit-outer-spin-button, .slot__score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.slot__score-input:disabled { opacity: 0.3; cursor: not-allowed; }
.slot.is-winner { background: rgba(240, 138, 36, 0.12); box-shadow: inset 4px 0 0 var(--orange); }
.slot.is-winner .slot__name { color: var(--orange-hi); border-bottom-color: var(--orange); }
.slot.is-winner .slot__box { border-color: var(--orange); }
.slot.is-winner .slot__score-text { color: var(--orange-hi); }
.slot.is-loser .slot__name, .slot.is-loser .slot__score-text { opacity: 0.45; text-decoration: line-through; text-decoration-thickness: 2px; }

/* Ansicht vs. Bearbeiten */
.slot__input, .slot__score-input { display: none; }
body.is-editing .slot.is-seed .slot__name { display: none; }
body.is-editing .slot.is-seed .slot__input { display: block; }
body.is-editing .slot__score-text { display: none; }
body.is-editing .slot__score-input { display: block; }

.champ-wrap { position: relative; z-index: 1; }
.champ {
  border: 3px solid var(--orange); border-radius: 6px; overflow: hidden;
  background: #1c1b18; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center; padding-bottom: 18px;
}
.champ__head {
  background: var(--orange); color: var(--orange-ink); padding: 12px;
  font-family: var(--font-mono); font-size: clamp(13px, 1.1vw, 20px); font-weight: 800; letter-spacing: 0.18em;
}
.champ__title { font-family: var(--font-head); font-size: clamp(24px, min(2.4vw, 4.4vh), 46px); font-weight: 700; color: var(--text); margin: clamp(8px, 1.6vh, 16px) 0 clamp(6px, 1vh, 10px); }
.champ__name {
  margin: 0 24px; min-height: 1.4em; padding-bottom: 6px; border-bottom: 2px solid var(--dust);
  font-family: var(--font-head); font-size: clamp(24px, 2.4vw, 46px); font-weight: 700; color: var(--muted);
  overflow-wrap: anywhere;
}
.champ__label { margin-top: 6px; }
.champ.is-crowned { box-shadow: 0 0 0 4px rgba(240, 138, 36, 0.25), 0 0 60px rgba(240, 138, 36, 0.35); }
.champ.is-crowned .champ__name { color: var(--orange-hi); border-bottom-color: var(--orange); animation: stamp-in 420ms cubic-bezier(.2, 1.4, .4, 1) both; }

.br-params {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; background: rgba(36, 34, 30, 0.95); border: 1px solid var(--grey); border-radius: 4px;
}
.br-params__title { font-family: var(--font-mono); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; color: var(--orange); margin-bottom: 4px; }
.br-status { font-family: var(--font-mono); font-size: clamp(11px, 0.9vw, 15px); letter-spacing: 0.1em; color: var(--muted); }
.br-foot {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: -8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted);
}

/* Breite Bildschirme: 4 Spalten wie auf der Vorlage, mit Verbindungslinien */
@media (min-width: 1000px) {
  .br-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    column-gap: clamp(36px, 5vw, 110px);
    row-gap: clamp(16px, 4vh, 70px);
    padding-bottom: 20px;
  }
  .br-lines { display: block; }
  .br-col { display: block; align-self: end; margin-bottom: calc(-1 * clamp(8px, 3vh, 56px)); }
  .br-col--1 { grid-column: 1; grid-row: 1; }
  .br-col--2 { grid-column: 2; grid-row: 1; }
  .br-col--3 { grid-column: 3; grid-row: 1; }
  .br-col--4 { grid-column: 4; grid-row: 1; }
  .duel-wrap--d2 { grid-column: 2; grid-row: 2; align-self: start; }
  .duel-wrap--d3 { grid-column: 2; grid-row: 3; align-self: end; }
  .duel-wrap--d1 { grid-column: 1; grid-row: 2 / span 2; align-self: center; }
  .duel-wrap--d4 { grid-column: 3; grid-row: 2 / span 2; align-self: center; }
  .champ-wrap { grid-column: 4; grid-row: 2 / span 2; align-self: center; }
  .br-radar {
    display: block; position: absolute; top: -10px; right: 0; width: clamp(110px, 10vw, 180px); height: clamp(110px, 10vw, 180px);
    opacity: 0.55; z-index: 0;
  }
  .br-sites { display: flex; gap: 12px; position: absolute; left: 0; bottom: 0; z-index: 0; }
  .br-sites span {
    display: grid; place-items: center; width: 48px; height: 48px; border: 3px solid var(--orange); border-radius: 50%;
    font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--orange);
  }
}

/* CS-Stats */
.cnt-mine:empty { display: none; }
.cnt-mine__hint { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); padding: 0 4px; }
.cnt-mine__hint.is-ok { color: var(--hit); }
.cnt-mine__hint a { color: var(--orange-hi); }
.cnt-mine__todo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border: 1px solid var(--orange); border-left: 5px solid var(--orange); border-radius: var(--radius);
  background: rgba(240, 138, 36, 0.1);
}
.stats-wrap { width: 100%; overflow-x: auto; }
.stats-table, .stats-board { min-width: 560px; }
.stats-table th, .stats-board th { padding: 0 6px; }
.stats-table td, .stats-board td { padding: 7px 8px; }
.stats-sort {
  background: none; border: none; padding: 4px 2px; cursor: pointer; color: var(--muted);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
}
.stats-sort.is-active { color: var(--orange-hi); text-decoration: underline; text-underline-offset: 4px; }
.stats-table td.is-sorted { color: var(--orange-hi); font-weight: 800; }
.ranking tr.is-me td { box-shadow: inset 0 0 0 1px var(--hit); }
.ranking tr.is-me .name::after { content: " (DU)"; color: var(--hit); font-size: 0.7em; letter-spacing: 0.1em; }
.stats-board tr.is-open td { opacity: 0.55; }
.stats-open { text-align: center !important; font-size: 0.8em; letter-spacing: 0.1em; color: var(--muted); }
.stats-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats-form .input--score { width: 100%; }
.dialog--wide { width: min(560px, calc(100vw - 32px)); }

/* ---------------------------------------------------------------------
   Turnier: Setup, Qualifikation, Playoffs mit Lower Bracket
   --------------------------------------------------------------------- */
.tn-setup__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .tn-setup__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tn-wait {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  padding: clamp(24px, 6vh, 70px) 16px;
}
.tn-wait[hidden], .tn-board[hidden] { display: none; }
.tn-wait__list { justify-content: center; }
.tn-wait__list .chip { font-size: clamp(16px, 1.6vw, 28px); padding-right: 16px; }
.tn-wait__text { font-family: var(--font-mono); font-weight: 800; letter-spacing: 0.16em; color: var(--orange-hi); font-size: clamp(14px, 1.3vw, 22px); }

.tn-board { display: grid; grid-template-columns: 1fr; gap: 26px; padding-bottom: 8px; }
.tn-page .br-col { display: block; }
.tn-label { display: flex !important; align-items: center; gap: 10px; }
.tn-progress {
  padding: 2px 8px; border-radius: 3px; background: var(--orange); color: var(--orange-ink);
  font-size: 0.9em; letter-spacing: 0.06em;
}

/* Quali-Duelle */
.tn-quali { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; min-width: 0; }
.tn-qlist { display: grid; gap: 6px; }
.qrow {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  align-items: center; gap: 8px; padding: clamp(5px, 0.8vh, 9px) 10px;
  background: linear-gradient(180deg, #23221d, #1a1916);
  border: 1px solid var(--grey-2); border-left: 4px solid var(--grey-2); border-radius: 4px;
}
.qrow.is-done { border-left-color: var(--orange); }
.qrow__no { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.qrow__name {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(15px, min(1.2vw, 2.4vh), 24px); color: var(--sand);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qrow__name--b { text-align: right; }
.qrow__name.is-winner { color: var(--orange-hi); }
.qrow__name.is-loser { opacity: 0.45; text-decoration: line-through; text-decoration-thickness: 2px; }
.qrow__vs { font-family: var(--font-head); color: var(--dust); font-size: 20px; }
.qrow__box {
  display: grid; place-items: center;
  width: clamp(38px, min(2.6vw, 4.6vh), 54px); height: clamp(32px, min(2.2vw, 4vh), 46px);
  border: 1px solid var(--dust); border-radius: 3px; background: rgba(11, 11, 10, 0.7);
}
.qrow__score-text { font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, min(1.5vw, 2.8vh), 30px); color: var(--sand); font-variant-numeric: tabular-nums; }
.score-input {
  width: 100%; height: 100%; padding: 0; text-align: center; border: none; background: transparent; color: var(--text);
  font-family: var(--font-head); font-size: 22px; font-weight: 700; -moz-appearance: textfield;
}
.score-input::-webkit-outer-spin-button, .score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--orange); }
.score-input:disabled { opacity: 0.3; cursor: not-allowed; }
.qrow .score-input { display: none; }
body.is-editing .qrow .score-input { display: block; }
body.is-editing .qrow__score-text { display: none; }
@media (max-width: 420px) {
  .qrow { grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); gap: 6px; }
  .qrow__no { display: none; }
}

/* Quali-Rangliste */
.tn-ranking th, .tn-ranking td { white-space: nowrap; }
.tn-ranking .name { white-space: normal; }
.tn-ranking tr.tn-out td { opacity: 0.55; }
.tn-ranking .tn-pts { color: var(--orange-hi); font-weight: 800; }
.tn-tag { color: var(--miss); font-size: 0.75em; letter-spacing: 0.1em; }

/* Playoffs */
.tn-ko { position: relative; display: grid; grid-template-columns: 1fr; gap: 16px; min-width: 0; }
.tn-ko .br-lines { display: none; }
.tn-ko__l1, .tn-ko__l2, .tn-ko__l3 { display: none !important; }
.br-line--lower { stroke: var(--dust); stroke-dasharray: 6 6; opacity: 0.4; }
.br-line--lower.is-active { stroke: var(--dust); opacity: 0.9; filter: none; }
.tn-final-standings { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.tn-standings { display: grid; gap: 6px; }
.tn-standings__item {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 7px 12px; background: rgba(11, 11, 10, 0.6); border: 1px solid var(--grey); border-radius: 4px;
  font-family: var(--font-mono);
}
.tn-standings__pos { color: var(--orange); font-weight: 800; }
.tn-standings__name { font-family: var(--font-head); font-weight: 700; font-size: clamp(15px, min(1.2vw, 2.4vh), 24px); color: var(--sand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-standings__tag { font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.tn-standings__item.is-champ { border-color: var(--orange); background: rgba(240, 138, 36, 0.14); }
.tn-standings__item.is-champ .tn-standings__name { color: var(--orange-hi); }
.tn-standings__item.is-open .tn-standings__name { color: #6e6555; }

@media (min-width: 1100px) {
  .tn-board {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
    column-gap: clamp(28px, 3vw, 64px); align-items: start;
  }
  .tn-ko {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    column-gap: clamp(36px, 4vw, 96px); row-gap: clamp(12px, 2.4vh, 36px);
  }
  .tn-ko .br-lines { display: block; }
  .tn-ko__l1, .tn-ko__l2, .tn-ko__l3 { display: block !important; }
  .tn-ko__l4 { display: none !important; }
  .tn-ko__l1 { grid-column: 1; grid-row: 1; }
  .tn-ko__l2 { grid-column: 2; grid-row: 1; }
  .tn-ko__l3 { grid-column: 3; grid-row: 1; }
  .tn-ko--sf1 { grid-column: 1; grid-row: 2; }
  .tn-ko--sf2 { grid-column: 1; grid-row: 3; }
  .tn-ko--final { grid-column: 2; grid-row: 2; }
  .tn-ko--third { grid-column: 2; grid-row: 3; }
  .tn-champ { grid-column: 3; grid-row: 2; align-self: start; }
  .tn-final-standings { grid-column: 3; grid-row: 3; align-self: start; }
}
.tn-page .br-col { margin-bottom: 0 !important; }
.tn-quali .br-col, .tn-final-standings .br-col { align-self: flex-start; }

/* Turnier: Account-Auswahl + eigene Markierung */
.tn-acc { display: flex; flex-wrap: wrap; gap: 6px; }
.tn-acc__chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; cursor: pointer;
  background: rgba(11, 11, 10, 0.6); border: 1px solid var(--grey-2); border-radius: 4px; color: var(--sand);
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
}
.tn-acc__chip.is-in .led { background: var(--hit); }
.tn-acc__chip:disabled { opacity: 0.4; cursor: default; }
.qrow__name.is-me { color: var(--hit); }
.slot.is-me { box-shadow: inset 0 0 0 2px var(--hit); }
.tn-standings__item.is-me { border-color: var(--hit); }

/* Turnier beendet: Podium + Leaderboard */
.tn-finish { display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 22px); padding-bottom: 4px; }
.tn-finish[hidden], .tn-view-toggle[hidden] { display: none; }
.tn-finish__head { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.tn-finish__title { font-family: var(--font-head); font-weight: 700; color: var(--orange-hi); line-height: 1; font-size: clamp(30px, min(4.4vw, 6.6vh), 88px); }
.tn-finish .podium { max-width: 960px; }
.tn-finish .podium__name { font-size: clamp(18px, min(2vw, 3.6vh), 44px); }
.tn-finish .podium__slot--1 .podium__name { font-size: clamp(22px, min(2.6vw, 4.6vh), 56px); }
.tn-finish .podium__pts { font-size: clamp(12px, min(1.1vw, 2vh), 22px); }
.tn-finish .podium__block { font-size: clamp(24px, min(2.6vw, 4.6vh), 56px); padding-top: 6px; }
.tn-finish .podium__slot--1 .podium__block { height: clamp(70px, 11vh, 170px); }
.tn-finish .podium__slot--2 .podium__block { height: clamp(52px, 7.5vh, 120px); }
.tn-finish .podium__slot--3 .podium__block { height: clamp(38px, 5vh, 84px); }
.tn-finish .br-col { align-self: flex-start; }
.tn-leaderboard td { font-size: clamp(14px, min(1.1vw, 2.2vh), 22px); padding-top: 5px; padding-bottom: 5px; }
.tn-params-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) {
  .tn-opt { display: none; }
  .tn-leaderboard .tn-result { white-space: normal; letter-spacing: 0.04em; }
  .tn-page .ranking--compact td, .tn-page .ranking--compact th { padding-left: 6px; padding-right: 6px; }
  .tn-params-right { justify-content: flex-start; }
}
.tn-leaderboard .tn-result { font-family: var(--font-mono); font-size: clamp(11px, 0.9vw, 16px); letter-spacing: 0.1em; color: var(--dust); white-space: nowrap; }
.tn-leaderboard tr.is-top-1 .tn-result { color: var(--orange-hi); }

/* =====================================================================
   LOGIN, PROFIL, MISSION OPS, HOLD-SCREEN
   ===================================================================== */
.topbar__account {
  display: inline-flex; align-items: center; min-height: 34px; padding: 4px 10px; max-width: 46vw;
  border: 1px solid var(--grey-2); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--sand); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar__account.is-logged-in { border-color: var(--hit); color: var(--hit); }
.topbar__account:hover { border-color: var(--orange); }

/* Startseite: Zusatz-Links */
.hub-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 860px) { .hub-row { grid-template-columns: 1fr 1fr; } }
.hub-link {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 20px;
  background: rgba(29, 27, 24, 0.9); border: 1px solid var(--grey-2); border-left: 4px solid var(--hit); border-radius: var(--radius);
  color: inherit; text-decoration: none;
}
.hub-link--cmd { border-left-color: var(--miss); }
.hub-link:hover { border-color: var(--dust); }
.hub-link__kicker { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); }
.hub-link__title { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--sand); }
.hub-link__text { color: var(--muted); font-size: 15px; }

/* Quiz: Beitritt mit Login */
.acc-join { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--hit); border-radius: var(--radius); background: rgba(156, 196, 106, 0.07); }
.acc-join .eyebrow { color: var(--hit); }
.acc-or { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); text-align: center; margin-top: 6px; }
.acc-hint { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.acc-hint a { color: var(--orange-hi); }

/* Profil */
.page--login .main { display: flex; flex-direction: column; gap: 14px; }
.page--login .main { padding-top: max(16px, 5vh); }
.start-card .title--xl { font-size: clamp(42px, 13vw, 76px); }
.profile__name { color: var(--orange-hi); overflow-wrap: anywhere; }
.profile__status {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid var(--grey-2); font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted);
}
.profile__status .led { background: var(--orange); }
.profile__status.is-in { border-color: var(--hit); color: var(--hit); }
.profile__status.is-in .led { background: var(--hit); box-shadow: 0 0 8px rgba(156, 196, 106, 0.6); }
.profile__section { gap: 10px; }
.facts--stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts--stats > div { flex-direction: column; align-items: center; text-align: center; }
.facts--stats dd { font-size: 20px; text-align: center; }

/* Mission Ops */
.page--ops .main { display: flex; flex-direction: column; gap: 16px; }
.ops-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .ops-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ops-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; min-width: 0;
  background: rgba(11, 11, 10, 0.6); border: 1px solid var(--grey-2); border-top: 4px solid var(--grey-2); border-radius: var(--radius);
}
.ops-tile.is-ok { border-top-color: var(--hit); }
.ops-tile.is-hot { border-top-color: var(--orange); }
.ops-tile__label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); }
.ops-tile__value { font-family: var(--font-head); font-size: clamp(26px, 3vw, 48px); font-weight: 700; color: var(--sand); line-height: 1; overflow-wrap: anywhere; }
.ops-tile.is-ok .ops-tile__value { color: var(--hit); }
.ops-tile.is-hot .ops-tile__value { color: var(--orange-hi); }
.ops-tile__sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--dust); }
.ops-hold { display: flex; flex-direction: column; gap: 10px; }
.ops-bulk { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-list { display: grid; gap: 8px; width: 100%; }
.ops-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px;
  padding: 8px 10px; background: rgba(11, 11, 10, 0.55); border: 1px solid var(--grey); border-left: 4px solid var(--grey-2); border-radius: 4px;
}
.ops-row.is-in { border-left-color: var(--hit); }
.ops-check {
  min-height: 48px; padding: 6px 10px; cursor: pointer; border-radius: 4px;
  background: var(--orange); border: 1px solid var(--orange); color: var(--orange-ink);
  font-family: var(--font-mono); font-size: 13px; font-weight: 800; letter-spacing: 0.08em;
}
.ops-check.is-in { background: rgba(156, 196, 106, 0.16); border-color: var(--hit); color: var(--hit); }
.ops-row__who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ops-row__name { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--sand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.ops-badge { padding: 1px 6px; border: 1px solid var(--grey-2); border-radius: 3px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--dust); }
.ops-badge.is-warn { border-color: var(--orange); color: var(--orange-hi); }
.ops-row__seen { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.ops-row__seen.is-online { color: var(--hit); }
.ops-row__seen.is-online .led { background: var(--hit); box-shadow: 0 0 8px rgba(156, 196, 106, 0.6); }
.ops-row__time { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.ops-row__actions { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 760px) {
  .ops-row { grid-template-columns: 1fr auto; }
  .ops-check { grid-column: 1 / -1; }
  .ops-row__time { display: none; }
}
.ops-create { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: end; }
@media (min-width: 760px) { .ops-create { grid-template-columns: 1fr 1fr auto; } }
.ops-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Hold-Screen – taktischer Operations-Bildschirm */
.hold {
  position: fixed; inset: 0; z-index: 200; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  background-color: #070706;
  background-image:
    radial-gradient(ellipse at 50% 45%, rgba(240, 138, 36, 0.10), transparent 55%),
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.75) 100%),
    linear-gradient(rgba(201, 182, 143, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 182, 143, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  color: var(--text);
}
.hold[hidden] { display: none; }
.hold__scan {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
}
.hold > * { position: relative; z-index: 1; }
.hold__stripes { height: 10px; border-radius: 0; flex-shrink: 0; opacity: 0.9; }
.hold__hud {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px clamp(14px, 3vw, 40px);
  font-family: var(--font-mono); font-size: clamp(11px, 0.9vw, 14px); font-weight: 700; letter-spacing: 0.14em; color: var(--dust);
  background: rgba(0, 0, 0, 0.55);
}
.hold__hud-brand { color: var(--sand); }
.hold__hud-mid { color: var(--miss); }
.hold__hud-clock { color: var(--orange-hi); font-variant-numeric: tabular-nums; }
.hold__hud--bottom b { color: var(--orange-hi); font-variant-numeric: tabular-nums; }
.hold__comms { display: inline-flex; align-items: center; gap: 8px; color: var(--hit); }
.hold__cmd { opacity: 0.55; }
.hold__cmd:hover, .hold__cmd:focus-visible { opacity: 1; }

.hold__grid {
  flex: 1; width: 100%; max-width: 1640px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: clamp(14px, 2.4vw, 36px); align-items: center;
  padding: clamp(16px, 3vh, 40px) clamp(14px, 3vw, 40px);
}
@media (min-width: 1100px) { .hold__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); } }

.hold__panel {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px;
  background: rgba(20, 19, 17, 0.82); border: 1px solid var(--grey-2); border-radius: 4px;
}
.hold__panel::before, .hold__panel::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--orange);
}
.hold__panel::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hold__panel::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.hold__panel-title { font-family: var(--font-mono); font-size: 12px; font-weight: 800; letter-spacing: 0.2em; color: var(--orange); border-bottom: 1px dashed var(--grey-2); padding-bottom: 8px; }
.hold__panel-note { font-size: 14px; color: var(--muted); }
.hold__obj { display: grid; gap: 8px; }
.hold__obj li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; background: rgba(0, 0, 0, 0.35); border-left: 3px solid var(--grey-2); }
.hold__obj-no { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: rgba(201, 182, 143, 0.4); }
.hold__obj-text { display: flex; flex-direction: column; min-width: 0; }
.hold__obj-text b { font-family: var(--font-head); font-size: clamp(18px, 1.5vw, 26px); color: var(--sand); }
.hold__obj-text small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.hold__obj-lock { font-family: var(--font-mono); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--miss); border: 1px solid var(--miss); padding: 2px 6px; border-radius: 2px; }

.hold__core { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.6vh, 18px); text-align: center; }
.hold__status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: clamp(12px, 1vw, 16px); font-weight: 800; letter-spacing: 0.2em; color: var(--orange-hi); }
.hold__blink { width: 10px; height: 10px; background: var(--miss); border-radius: 50%; box-shadow: 0 0 10px rgba(239, 106, 76, 0.8); animation: blink 1s steps(2, start) infinite; }
.hold__title {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; line-height: 0.92; color: var(--sand);
  font-size: clamp(44px, min(6.4vw, 10vh), 132px); letter-spacing: 0.02em;
}
.hold__title span { color: var(--orange-hi); text-shadow: 0 0 30px rgba(240, 138, 36, 0.35); }
.hold__sub { font-family: var(--font-mono); font-size: clamp(11px, 1vw, 15px); letter-spacing: 0.18em; color: var(--dust); }
.hold__radar {
  position: relative; width: clamp(150px, min(22vw, 28vh), 320px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(240, 138, 36, 0.5);
  background:
    radial-gradient(circle, transparent 0 24%, rgba(201, 182, 143, 0.22) 24.5% 25%, transparent 25.5% 49%, rgba(201, 182, 143, 0.22) 49.5% 50%, transparent 50.5% 74%, rgba(201, 182, 143, 0.22) 74.5% 75%, transparent 75.5%),
    linear-gradient(rgba(201, 182, 143, 0.2), rgba(201, 182, 143, 0.2)) center / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(201, 182, 143, 0.2), rgba(201, 182, 143, 0.2)) center / 100% 1px no-repeat,
    radial-gradient(circle, rgba(30, 28, 24, 0.95), rgba(8, 8, 7, 0.95));
  box-shadow: 0 0 40px rgba(240, 138, 36, 0.15), inset 0 0 30px rgba(0, 0, 0, 0.8);
}
.hold__radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(240, 138, 36, 0.45), transparent 60deg); animation: sweep 3.5s linear infinite; }
.hold__blip {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: rgba(201, 182, 143, 0.45); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6);
}
.hold__blip.is-in { background: var(--hit); box-shadow: 0 0 12px rgba(156, 196, 106, 0.9); animation: pulse 1.8s ease-in-out infinite; }
.hold__count { font-family: var(--font-mono); font-size: clamp(14px, 1.4vw, 24px); letter-spacing: 0.16em; color: var(--dust); }
.hold__count b { font-family: var(--font-head); font-size: 2.2em; color: var(--orange-hi); margin-right: 4px; }
.hold__segs { display: flex; gap: 4px; width: min(520px, 100%); }
.hold__segs span { flex: 1; height: 10px; background: var(--grey); transform: skewX(-20deg); }
.hold__segs span.is-in { background: var(--hit); box-shadow: 0 0 8px rgba(156, 196, 106, 0.6); }

.hold__ops { display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; }
.hold__op {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35); border-left: 3px solid var(--grey-2);
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(14px, 1.1vw, 18px);
}
.hold__op.is-in { border-left-color: var(--hit); }
.hold__led { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); animation: blink 1.4s steps(2, start) infinite; }
.hold__op.is-in .hold__led { background: var(--hit); box-shadow: 0 0 8px rgba(156, 196, 106, 0.7); animation: none; }
.hold__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sand); }
.hold__state { font-size: 10px; letter-spacing: 0.14em; color: var(--orange-hi); }
.hold__op.is-in .hold__state { color: var(--hit); }

.hold__inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 28px var(--gutter); }
.hold.is-unlocking { animation: hold-out 1800ms ease forwards; }
.hold__unlocked .hold__title span { color: var(--hit); text-shadow: 0 0 30px rgba(156, 196, 106, 0.4); }
@keyframes hold-out { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 1099px) { .hold__core { order: -1; } }
@media (max-width: 700px) {
  .hold__hud-mid { display: none; }
  .hold__ops { max-height: none; }
}
body.is-held { overflow: hidden; }
.ops-check.is-cmd { display: inline-grid; place-items: center; background: rgba(239, 106, 76, 0.12); border-color: var(--miss); color: #ff9c85; cursor: default; }
.profile__name { font-size: clamp(30px, 9vw, 72px); }
@media (max-width: 520px) {
  .topbar { gap: 6px; }
  .topbar__mark { display: none; }
  .topbar__brand { flex-shrink: 1; }
  .topbar__tools { flex-shrink: 1; min-width: 0; gap: 4px; }
  .topbar__account { max-width: 34vw; padding: 4px 8px; }
  .led__label { display: none; }
  .topbar__cmd .btn--tiny { padding: 4px 7px; font-size: 10px; letter-spacing: 0.04em; }
  .page--wide .topbar__name, .page--login .topbar__name { display: none; }
  .topbar__date { display: none; }
}
@keyframes hold-out { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------------
   Kleine Displays (Spieler)
   --------------------------------------------------------------------- */
@media (max-width: 359px) {
  :root { --gutter: 12px; }
  body { font-size: 16px; }
  .card { padding: 18px 14px; }
  .answer { font-size: 17px; gap: 10px; padding: 9px 10px; }
  .answer__key { width: 36px; height: 36px; font-size: 21px; }
  .stamp { font-size: 11px; top: 14px; right: 10px; }
  .countdown--lg .countdown__value { font-size: 80px; }
  .facts--row dd { font-size: 19px; }
}

@media (min-width: 700px) {
  .page--player .main { padding-top: 6vh; }
}

/* ---------------------------------------------------------------------
   Animationen (dezent) + reduzierte Bewegung
   --------------------------------------------------------------------- */
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.08); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.4); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .radar::after { display: none; }
}
