/* ============================================================
   elftipp — App-Styles (Mitspieler + Host in EINER Oberfläche)
   ------------------------------------------------------------
   Liest ausschließlich tokens.css. KEINE Hex-Werte hier.
   Basis: screenkit/css/kit.css (vorgezogene UI) — hier zur
   echten App-Shell ausgebaut: zwei Modi, Seitennavigation,
   Sheet, Toasts, Lade- und Leerzustände.

   Layout-Modell
     data-mode="play"    Mitspieler — schmale Spalte, App-Gefühl,
                         auch am Desktop (dort 95 % Handy-Nutzung).
     data-mode="manage"  Host — ab 900px Seitennavigation + volle
                         Breite (Tabellen, Spielauswahl, QR).

   Signatur (DESIGN.md §2): die 2px-Goldkante gibt es GENAU an
   einer Stelle — Rang 1 der Tabelle. Nirgends sonst.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
input, select, textarea { font: inherit; color: inherit; }

html, body { height: 100%; }
body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* Sichtbarer Fokus — überall, nicht nur wo es gerade auffällt. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: fixed;
  top: -100px; left: var(--sp-4);
  z-index: 90;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  font-size: var(--fs-small);
  text-decoration: none;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* ---------- Z-Index-Skala (semantisch, keine 9999er) ---------- */
:root {
  --z-rail: 10;
  --z-chrome: 20;
  --z-sheet: 40;
  --z-toast: 60;
}

/* ============================================================
   SHELL
   ============================================================ */
.shell {
  --col: 520px;                 /* Inhaltsbreite im Spielen-Modus */
  height: 100dvh;
  display: grid;
  grid-template-areas: "top" "mode" "view" "tabs";
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: var(--bg-0);
}
.shell[data-mode="manage"] { --col: 1100px; }

/* Gemeinsame Randberechnung: zentriert den Chrome auf dieselbe
   Spaltenbreite wie den Inhalt, ohne zusätzliche Wrapper-Divs. */
.top, .modebar {
  padding-inline: calc(var(--sp-4) + (100% - min(100%, var(--col))) / 2);
}

/* ---------- Kopfzeile ---------- */
.top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  padding-bottom: 12px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
  z-index: var(--z-chrome);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo img { width: 26px; height: 26px; border-radius: 6px; }
.logo b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.02em;
}
@media (max-width: 380px) { .logo b { display: none; } }

.ctx {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 4px 6px 4px 10px;
  border-radius: var(--r-ctl);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.ctx:hover { background: var(--bg-1); }
.ctx b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctx small {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctx > span { min-width: 0; text-align: right; }
.ctx-caret {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.iconbtn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: var(--r-ctl);
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.iconbtn:hover { background: var(--bg-1); color: var(--text-1); }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn--sm { width: 38px; height: 38px; border: 1px solid var(--line); }
.iconbtn--sm svg { width: 16px; height: 16px; }
.iconbtn--sm:hover { background: var(--bg-2); border-color: var(--line-strong); }

.avatar {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-2);
}

/* ---------- Modus-Umschalter (nur für Hosts) ---------- */
.modebar {
  grid-area: mode;
  padding-block: 10px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
  z-index: var(--z-chrome);
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.seg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.seg-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seg-btn:hover { color: var(--text-2); }
.seg-btn[aria-selected="true"] {
  background: var(--bg-2);
  color: var(--text-1);
  box-shadow: 0 1px 2px rgba(0,0,0,.45);
}

/* ---------- Untere Navigation ---------- */
.tabs {
  grid-area: tabs;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: var(--z-chrome);
}
.tab {
  min-height: var(--touch-min);
  padding: 8px 4px 9px;
  display: grid;
  place-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.tab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--text-2); }
.tab[aria-current="page"] { color: var(--text-1); }

/* ---------- Seitennavigation (Verwalten, ab Tablet) ---------- */
.rail { grid-area: rail; display: none; }

/* ---------- Inhalt ---------- */
.body {
  grid-area: view;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding: var(--sp-4) var(--sp-4) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
/* Kinder nie stauchen: .body ist eine Flex-Spalte, und ein Element mit
   overflow:hidden (z. B. das Spielfeld) verliert sonst seine Höhe. */
.body > * { flex: 0 0 auto; }
/* Der Router hängt jede Ansicht in einen frischen .view-in-Container
   (Listener-Lebensdauer = Routenbesuch). Er spiegelt das Spalten-Layout
   von .body und wächst mit, damit .start/.pitch--tall die Höhe füllen. */
.body > .view-in {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.view-in > * { flex: 0 0 auto; }
.body:focus { outline: none; }
.body--center { justify-content: center; }
/* Platz, damit der letzte Inhalt nicht unter der Speicherleiste endet. */
.body:has(.savebar:not([hidden])) { padding-bottom: 92px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 720px) {
  body {
    background:
      radial-gradient(90% 55% at 50% -8%, rgba(245,184,65,.05), transparent 62%),
      var(--bg-0);
  }
  /* Spielen bleibt eine Handy-App — auf dem Desktop als ruhige Spalte. */
  .shell[data-mode="play"] {
    --col: 560px;
    max-width: 560px;
    margin-inline: auto;
    border-inline: 1px solid var(--line);
  }
}

@media (min-width: 900px) {
  .shell[data-mode="manage"] {
    grid-template-areas: "top top" "mode mode" "rail view";
    grid-template-columns: 236px minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .shell[data-mode="manage"] .top,
  .shell[data-mode="manage"] .modebar { padding-inline: var(--sp-5); }
  .shell[data-mode="manage"] .modebar .seg { max-width: 320px; }
  .shell[data-mode="manage"] .tabs { display: none; }
  .shell[data-mode="manage"] .rail {
    display: block;
    overflow-y: auto;
    padding: var(--sp-4) var(--sp-3);
    border-right: 1px solid var(--line);
    background: var(--bg-1);
    z-index: var(--z-rail);
  }
  .shell[data-mode="manage"] .body { padding: var(--sp-5); }
}

.rail-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--r-ctl);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.rail-item + .rail-item { margin-top: 2px; }
.rail-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.rail-item:hover { background: var(--bg-2); color: var(--text-1); }
.rail-item[aria-current="page"] { background: var(--bg-2); color: var(--text-1); }
.rail-head {
  padding: var(--sp-4) 12px var(--sp-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ============================================================
   BAUSTEINE
   ============================================================ */

h1.screen-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.01em;
  line-height: 1.15;
  text-wrap: balance;
}
h2.sec-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
}
.screen-sub { font-size: var(--fs-small); color: var(--text-2); }
.screen-head { display: grid; gap: 4px; }
.screen-head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--sp-4);
}
.card-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.card-h b { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.card-h small { font-size: var(--fs-caption); color: var(--text-3); white-space: nowrap; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.chip--live { color: var(--live); border-color: color-mix(in srgb, var(--live) 45%, transparent); }
.chip--live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: livepuls 1.6s ease-in-out infinite;
}
@keyframes livepuls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.chip--gold { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.chip--ok { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); }
.chip--muted { color: var(--text-3); border-color: var(--line); }

.badge-team {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--text-1);
  flex: 0 0 auto;
}

/* ---------- Formular ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: var(--fs-caption); color: var(--text-3); }
.field .err { font-size: var(--fs-caption); color: var(--live); }

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;              /* < 16px lässt iOS beim Fokus zoomen */
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input::placeholder { color: var(--text-3); }
.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-tint);
}
.input[aria-invalid="true"] { border-color: var(--live); }
.input:disabled { opacity: .5; cursor: not-allowed; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--r-ctl);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-btn);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-strong); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text-1); }
.btn--ghost:hover { border-color: var(--text-3); background: var(--bg-1); }
.btn--quiet { color: var(--text-2); }
.btn--quiet:hover { background: var(--bg-1); color: var(--text-1); }
.btn--danger { background: transparent; border-color: color-mix(in srgb, var(--live) 45%, transparent); color: var(--live); }
.btn--danger:hover { background: color-mix(in srgb, var(--live) 10%, transparent); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }
.btn.is-busy { pointer-events: none; }

/* Speicherleiste, die am unteren Rand klebt */
.savebar {
  position: sticky;
  bottom: 0;
  margin: auto calc(-1 * var(--sp-4)) calc(-1 * var(--sp-6));
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg-0) 88%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.savebar .count { font-size: var(--fs-caption); color: var(--text-3); flex: 1 1 auto; }

/* ---------- Spielzeile ---------- */
.match {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: 11.5px;
  color: var(--text-3);
}
.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-3);
}
.side { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.side span.nm {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.score { display: flex; align-items: center; gap: 8px; }
.stepper { display: grid; gap: 4px; justify-items: center; }
.stepper button {
  width: 36px; height: 26px;
  display: grid; place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.stepper button:hover { border-color: var(--line-strong); color: var(--text-1); }
.stepper button:disabled { opacity: .3; cursor: default; }

.sbox {
  width: 52px; height: 52px;
  padding: 0;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
  caret-color: var(--gold);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.sbox::placeholder { color: var(--text-3); }
.sbox:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.sbox.set { border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.sbox:disabled { background: var(--bg-1); border-color: var(--line); color: var(--text-3); -webkit-text-fill-color: var(--text-3); opacity: 1; }
.ssep { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text-3); }

.match--locked { opacity: .8; }
.lock-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.lock-note svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: 0 0 auto; }
.lock-score { margin-left: auto; white-space: nowrap; }
.lock-score b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
}

/* ---------- Bonustipps ---------- */
.bonus { display: grid; gap: var(--sp-2); }
.bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  min-height: var(--touch-min);
  padding: 10px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}
.bonus-row:hover { border-color: var(--line-strong); }
.bonus-row .q { font-size: 13px; color: var(--text-2); }
.bonus-row .a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.bonus-row .a.empty { color: var(--text-3); font-weight: 500; }
.jersey {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  background: var(--bg-0);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-1);
}

/* ---------- Countdown ---------- */
.deadline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 10px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  font-size: 12.5px;
  color: var(--text-2);
}
.deadline small { color: var(--text-3); }
.deadline b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
  letter-spacing: .02em;
}
.deadline--over b { color: var(--text-3); }

/* ---------- Tabelle ---------- */
.matchbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  overflow-x: auto;
  scrollbar-width: none;
}
.matchbar::-webkit-scrollbar { display: none; }
.mb-game {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mb-game .min { font-size: 10.5px; color: var(--live); font-weight: 700; }
.mb-game .fin { font-size: 10.5px; color: var(--text-3); }
.mb-sep { flex: 0 0 1px; align-self: stretch; background: var(--line); }

.board { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.thead, .trow {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 48px 44px 56px;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
}
.thead {
  padding-top: 10px;
  padding-bottom: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.thead i { font-style: normal; }
.thead i:nth-child(n+3) { text-align: right; }
.trow {
  width: 100%;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-rank) var(--ease);
}
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--bg-2); }
.trow .rk { font-variant-numeric: tabular-nums; color: var(--text-3); font-weight: 600; }
.trow .nm { display: flex; align-items: center; gap: 7px; min-width: 0; }
.trow .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .you {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 1px 6px;
}
.trow .num { font-variant-numeric: tabular-nums; color: var(--text-2); text-align: right; }
.trow .pts {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-table-pts);
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
  text-align: right;
}
/* Signaturelement (DESIGN.md §2) — ausschließlich hier. */
.trow--1 { background: var(--gold-tint); border-left: var(--edge-gold); padding-left: 12px; }
.trow--1 .rk { color: var(--gold); }
.trow--you { background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.trow--1.trow--you { background: var(--gold-tint); }
.delta { flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.delta--up { color: var(--up); }
.delta--down { color: var(--down); }
.board-foot {
  padding: 9px 14px;
  font-size: var(--fs-caption);
  color: var(--text-3);
  border-top: 1px solid var(--line);
}

/* ---------- Managerspiel ---------- */
.pitch {
  position: relative;
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-4);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.pitch::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--line);
}
.pitch::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 96px; height: 96px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.frow { display: flex; justify-content: center; gap: var(--sp-6); }
.mslot {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
  min-width: 84px;
  cursor: pointer;
}
.mslot .shirt {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease);
}
.mslot:hover .shirt { border-color: var(--text-3); }
.mslot--empty .shirt { border-style: dashed; color: var(--text-3); }
.mslot b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mslot small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-3);
  text-transform: uppercase;
}
.mslot .mp {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--up);
}
.mslot .mp--neg { color: var(--down); }
.mrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--touch-min);
  padding: 10px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  font-size: 13px;
}
.mrow .pos {
  flex: 0 0 auto;
  width: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text-3);
  text-transform: uppercase;
}
.mrow .pl { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .ev { margin-left: auto; font-size: 11.5px; color: var(--text-3); text-align: right; }
.mrow .sum {
  flex: 0 0 auto;
  width: 34px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.mtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 12px 14px;
  background: var(--gold-tint);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: var(--r-ctl);
  font-size: 13px;
  font-weight: 600;
}
.mtotal b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

/* ---------- Listenzeile (Leute, Einstellungen, Runden) ---------- */
.list { display: grid; gap: var(--sp-2); }
.lrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  font-size: var(--fs-small);
  text-align: left;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
button.lrow, a.lrow { cursor: pointer; }
button.lrow:hover, a.lrow:hover { border-color: var(--line-strong); background: var(--bg-2); }
.lrow .lmain { min-width: 0; flex: 1 1 auto; display: grid; gap: 1px; }
.lrow .lmain b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .lmain small {
  font-size: var(--fs-caption);
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lrow .lend { flex: 0 0 auto; display: flex; align-items: center; gap: var(--sp-2); color: var(--text-3); }
.lrow .lend svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lrow--danger .lmain b { color: var(--live); }

/* Auswahlzeile mit Häkchen (Spielauswahl, Wettbewerbe) */
.pick {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  font-size: var(--fs-small);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.pick:hover { border-color: var(--line-strong); }
/* Ausgewählt trägt der goldene Haken, NICHT die Karte: ein Spieltag hat
   schnell zehn Treffer, und zehn goldgerahmte Karten machen aus der
   Markenfarbe eine Fläche (tokens.css: „Funke, keine Fläche"). */
.pick[aria-pressed="true"] { border-color: var(--line-strong); background: var(--bg-2); }
.pick .tick {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--gold-ink);
}
.pick .tick svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pick[aria-pressed="true"] .tick { background: var(--gold); border-color: var(--gold); }
.pick[aria-pressed="true"] .tick svg { opacity: 1; }
.pick .pmain { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.pick .pmain b,
.pick .pmain small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .pmain b { font-weight: 600; font-size: 14px; }
.pick .pmain small { font-size: var(--fs-caption); color: var(--text-3); }
.pick--locked { opacity: .62; cursor: default; }
.pick--locked .tick { border-style: dashed; }
.pick--locked .tick svg { opacity: 1; stroke: var(--text-3); }

/* ---------- Kennzahlen (Host-Übersicht) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-3);
}
.stat {
  padding: var(--sp-4);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: grid;
  gap: 2px;
}
.stat .k { font-size: var(--fs-caption); color: var(--text-3); }
.stat .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .sub { font-size: var(--fs-caption); color: var(--text-2); }

/* ---------- QR / Einladen ---------- */
.qr-card { display: grid; justify-items: center; gap: var(--sp-3); text-align: center; padding: var(--sp-5) var(--sp-4); }
.qr-card .qr { width: 200px; height: 200px; border-radius: var(--r-card); background: #fff; padding: 10px; }
.qr-card .link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .01em;
  word-break: break-all;
}
.qr-card .link em { font-style: normal; color: var(--gold); }

/* ---------- Zustände ---------- */
.empty {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  text-align: center;
  padding: var(--sp-7) var(--sp-4);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.empty svg { width: 26px; height: 26px; fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.empty b { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.empty p { font-size: var(--fs-small); color: var(--text-2); max-width: 34ch; }

.skel {
  background: linear-gradient(90deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-1) 100%);
  background-size: 200% 100%;
  animation: skel 1.3s ease-in-out infinite;
  border-radius: var(--r-ctl);
}
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel--card { height: 108px; border-radius: var(--r-card); }
.skel--row { height: 46px; }
.skel--bar { height: 42px; }

.banner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: 12px 14px;
  border-radius: var(--r-ctl);
  font-size: 13px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}
.banner b { color: var(--text-1); font-weight: 600; }
.banner--warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.banner--warn svg { stroke: var(--warn); }
.banner--info svg { stroke: var(--text-3); }
.banner svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bottom-Sheet ---------- */
.sheet {
  width: 100%;
  max-width: 560px;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-1);
  overflow: visible;
}
.sheet::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.sheet-in {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: var(--r-modal) var(--r-modal) 0 0;
  padding: var(--sp-4) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: var(--sp-3);
  max-height: 84dvh;
  overflow-y: auto;
}
.sheet-grip {
  width: 38px; height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
  margin: 0 auto var(--sp-1);
}
.sheet-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.sheet-h b { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.sheet[open] { animation: sheet-in var(--dur-med) var(--ease); }
@keyframes sheet-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) {
  .sheet { margin: auto; max-width: 480px; }
  .sheet-in { border-radius: var(--r-modal); border-bottom: 1px solid var(--line-strong); }
  .sheet-grip { display: none; }
}

/* ---------- Toasts ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: grid;
  gap: var(--sp-2);
  width: max-content;
  max-width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: toast-in var(--dur-med) var(--ease);
}
.toast svg { width: 16px; height: 16px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast--ok svg { stroke: var(--up); }
.toast--err { border-color: color-mix(in srgb, var(--live) 50%, transparent); }
.toast--err svg { stroke: var(--live); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Kleinkram ---------- */
.note { font-size: var(--fs-caption); color: var(--text-3); }
.note--c { text-align: center; }
.spacer { flex: 1 1 auto; }
.stack { display: grid; gap: var(--sp-4); }
.stack--tight { display: grid; gap: var(--sp-2); }
.row { display: flex; align-items: center; gap: var(--sp-2); }
.row--wrap { flex-wrap: wrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   LADEBILD — Elfi mit Gold-Ring (Anlauf, kein Warteraum)
   ============================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sp-4);
  background: var(--bg-0);
  transition: opacity .4s var(--ease);
}
.splash--done { opacity: 0; pointer-events: none; }
.splash b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
}
.splash-in {
  position: relative;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
}
.splash-in img { width: 84px; height: 84px; object-fit: contain; }
.splash-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash-track { fill: none; stroke: var(--line); stroke-width: 3; }
.splash-arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 90 256;
  transform-origin: center;
  animation: splashspin 1.1s linear infinite;
}
@keyframes splashspin { to { transform: rotate(360deg); } }

/* ============================================================
   START — erster Eindruck, ohne App-Chrome
   ============================================================ */
.shell[data-bare="true"] .top,
.shell[data-bare="true"] .modebar,
.shell[data-bare="true"] .tabs { display: none; }

.start {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-block: var(--sp-5) var(--sp-2);
}
.view-in > .start { flex: 1 1 auto; }
.start-stage {
  flex: 1 1 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--sp-4);
  text-align: center;
}
.start-elfi {
  width: clamp(120px, 38vw, 180px);
  height: auto;
  filter: drop-shadow(0 20px 44px var(--gold-tint));
}
.start-h {
  display: grid;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 8.4vw, 40px);
  line-height: 1.07;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.start-sub { font-size: var(--fs-small); color: var(--text-2); max-width: 32ch; }
.start-actions { display: grid; gap: var(--sp-3); padding-top: var(--sp-5); }
.start-actions .note { max-width: 40ch; margin-inline: auto; }

/* ============================================================
   BEITRETEN — QR scannen oder Code eintippen
   ============================================================ */
.scanbox {
  display: grid;
  place-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-4);
  background: var(--bg-1);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.scanbox:hover { border-color: var(--gold); color: var(--text-1); }
.scanbox svg { stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scanbox b { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.joinform { display: flex; align-items: flex-start; gap: var(--sp-2); }
.joinform .btn { flex: 0 0 auto; }
.input--code {
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .09em;
}
.input--code::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 400; }

/* Zweiter Weg auf dem Beitreten-Screen: selbst hosten. Deutlich abgesetzt,
   damit der Beitritt der primaere Weg bleibt — die meisten Nutzer sind
   Mitspieler, nicht Hosts. Nur eine Haarlinie als Trenner, keine Ueberschrift. */
.joinalt { margin-top: var(--sp-6); display: grid; gap: var(--sp-4); }
.joinalt-line { height: 1px; background: var(--line); }

/* ============================================================
   TIPPEN — Dichte: Karten kompakt, Stepper liegend
   ============================================================ */
.match { padding: var(--sp-3) var(--sp-3); gap: var(--sp-2); }
.match .badge-team { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; }
.match .side { gap: 3px; }
.match .side span.nm { font-size: 11.5px; }
.stepper { display: flex; align-items: center; gap: 4px; }
/* Auf Touch: KEINE −/+-Knöpfe — Zifferntastatur + Auto-Sprung sind
   schneller, und die Teamnamen bekommen die Breite zurück. Ab 720px
   (Maus, Platz) kommen die Knöpfe wieder dazu. */
.stepper button { display: none; width: 30px; height: 46px; border-radius: 8px; }
@media (min-width: 720px) {
  .stepper button { display: grid; }
}
.sbox { width: 50px; height: 48px; font-size: 21px; }
.score { gap: 6px; }
.ssep { font-size: 16px; }

/* Liga-Filter (nur bei Runden, die quer über Wettbewerbe tippen) */
.filter {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.filter::-webkit-scrollbar { display: none; }
.fchip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.fchip:hover { color: var(--text-1); border-color: var(--text-3); }
.fchip[aria-pressed="true"] {
  background: var(--text-1);
  border-color: var(--text-1);
  color: var(--bg-0);
}

/* ============================================================
   TABELLE — Wertungs-Umschalter + Saison-Spalten
   ============================================================ */
.seg--sub { max-width: 100%; }
.seg--sub .seg-btn { min-height: 38px; cursor: pointer; border: 0; }
.thead--season, .trow--season { grid-template-columns: 30px minmax(0, 1fr) 48px 56px; }
.trow--season { cursor: default; }
.banner--tap { cursor: pointer; width: 100%; text-align: left; transition: border-color var(--dur-fast) var(--ease); }
.banner--tap:hover { border-color: var(--text-3); }
.banner--tap b { color: var(--gold); }

/* ============================================================
   AUFSTELLUNG — ein Blick, ein Screen
   ============================================================ */
.pitch--tall {
  min-height: 404px;
  align-content: space-between;
  padding: var(--sp-5) var(--sp-4) var(--sp-6);
}
.view-in > .pitch--tall { flex: 1 1 auto; }
.pitch-box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  height: 30px;
  border: 1px solid var(--line);
}
.pitch-box--top { top: 0; border-top: 0; border-radius: 0 0 10px 10px; }
.pitch-box--bot { bottom: 0; border-bottom: 0; border-radius: 10px 10px 0 0; }

/* Vereinsfarben auf dem Nummern-Chip: Fläche = Primär-, Ziffer =
   Sekundärfarbe. Einfache Geometrie, KEINE Wappenform, KEIN Muster —
   rechtliche Leitplanken in DESIGN.md §5, Daten in mock.js TEAM_COLORS. */
.mslot .shirt.shirt--team, .jersey.jersey--team {
  background: var(--tc1);
  color: var(--tc2);
  border-color: color-mix(in srgb, var(--tc2) 28%, transparent);
}
.mtotal { justify-content: flex-start; }
.mtotal b { margin-left: var(--sp-2); margin-right: auto; }
.mtotal-right { font-size: var(--fs-caption); color: var(--text-2); font-weight: 500; }

/* ============================================================
   HOST — Schalter, Spieltagscode, Pro-Schloss
   ============================================================ */
.switch {
  flex: 0 0 auto;
  position: relative;
  width: 46px;
  height: 28px;
  padding: 0;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.switch[aria-checked="true"] { background: var(--gold); border-color: var(--gold); }
.switch[aria-checked="true"] i { transform: translateX(18px); background: var(--gold-ink); }

.daycode { display: grid; gap: var(--sp-1); margin-top: var(--sp-3); }
.daycode-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}

.chip--pro { gap: 5px; color: var(--text-2); border-color: var(--line-strong); }
.chip svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lrow--locked .lmain b { color: var(--text-2); }

/* Rundenwechsler in der Kopfzeile: sichtbar tippbar, nicht nur Text. */
.ctx { border: 1px solid var(--line); background: var(--bg-1); padding: 5px 8px 5px 12px; }
.ctx:hover { background: var(--bg-2); border-color: var(--line-strong); }

/* Trefferflächen auf --touch-min ziehen (Logo 26px, Rundenwechsler 28px,
   Modus-Umschalter 36px lagen darunter). Die Fläche wächst über ein
   Pseudo-Element statt über Padding — sonst wüchse die Kopfzeile um
   ~26px, und genau die fehlt auf dem Tippen-Screen. Grund für die
   Regel: Bar-Kontext, stehend, halbes Bier in der Hand (tokens.css). */
.logo, .ctx, .seg-btn { position: relative; }
.logo::after, .ctx::after, .seg-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: var(--touch-min);
  transform: translateY(-50%);
}
.logo::after { left: -9px; right: -9px; }   /* 26px + 18px = 44px */

/* Umbenennen/Entfernen (38px) nur in der HÖHE aufziehen. Seitlich wäre
   riskant: die beiden Knöpfe stehen dicht nebeneinander, und überlappende
   Trefferflächen ließen „Entfernen" Tipps auf „Umbenennen" abfangen. */
.iconbtn--sm { position: relative; }
.iconbtn--sm::after {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: var(--touch-min);
  transform: translateY(-50%);
}

/* Demo-Hinweis (nur Mock-Modus): schmale Zeile, wegklickbar. */
.demopill {
  justify-self: center;
  margin-inline: auto;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-1);
  font-size: var(--fs-caption);
  color: var(--text-3);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.demopill:hover { color: var(--text-2); border-color: var(--line-strong); }

@media (prefers-reduced-motion: reduce) {
  .chip--live::before, .skel { animation: none; }
  .sheet[open], .toast { animation: none; }
  .splash-arc { animation: none; }
  * { transition-duration: .01ms !important; }
}
