/* ==========================================================================
   arena.css · Arena-Lobby (Design 03 «Duel Arena», screens/arena.js) · Claude (Kuerzel c1), 04.10.2026
   Vorlage: public/lobby-entwuerfe/lobby-preview.css (.arena, Tokens --bg #111827, --panel #1b2639, --accent #c5ed62 …),
   Masse aus claude/arbeit/v12/arena/vorlage/MESSUNG.json. Eigener, fester dunkler Token-Bereich (--ar-*): der Look bleibt auf
   den Arena-Bildschirm begrenzt (Raum, Spiel, Konto-Formulare und Blaetter behalten ihre Tokens). Innerhalb von .arena werden
   die gemeinsamen --c-*-Tokens auf die Arena-Werte gelegt, damit Felder, Hinweise, Sprachwahl, Geldhinweis und FAQ passen.
   Breiten: >= 1100 px Kopf mit Navigation; >= 900 px zwei Spalten (Hero links, Profil/Spielen/Tische rechts); darunter eine
   Spalte, bis 599 px mit kleinem Hero (Profil und «Spielen» im ersten Bild, CLIENT_SPEZ §5.4). Kleinste Schrift 12 px,
   Tippziele >= 44 px (Filter, «Aktualisieren» und mobil «Figur gestalten» ueber eine unsichtbare Trefferflaeche; die Rechtslinks
   im Fuss kommen aus lib/recht.js und sind 26 px hoch). CSP: nur diese Datei, kein Inline-Stil.
   f1 (05.10.2026, Pruefbefunde p3): scroll-padding-top fuer die feste Leiste (Fokus nie darunter), Sprunglink unter der Leiste
   mit Limetten-Umriss, Reset mit :where() (Komponenten-Abstaende wirken), Kopf bei 320 px, langer Name bricht um, Feldrand 3:1.
   ========================================================================== */

:root:has(.app__haupt > .arena) {
  --ar-bg: #111827;
  --ar-panel: #1b2639;
  --ar-ink: #eef3fc;
  --ar-muted: #a9b6ce;
  --ar-accent: #c5ed62;
  --ar-onaccent: #182030;
  --ar-line: #ffffff1c;
  --ar-line-stark: #ffffff38;
  --ar-feldrand: #7f8ca5;            /* Feldrand: 4,5:1 auf --ar-panel, 5,2:1 auf --ar-bg (WCAG 1.4.11) */
  --ar-soft: #29384d;
  --ar-aura: #b8d65818;
  --ar-aura-rand: #c5ed6244;
  --ar-held-a: #222e41;
  --ar-held-b: #151f30;
  --ar-knopf: #172031;
  --ar-knopf-text: #eff9ce;
  --ar-fehler: #ffa79b;
  --ar-fehler-limette: #7d1708;
  --ar-warn: #f2c46a;
  --ar-warn-bg: #3a3019;
  --ar-schrift-kopf: Arial, Helvetica, sans-serif;
  /* feste Leiste (48 px, z-index 100): Fokus- und Sprungziele landen darunter statt dahinter (WCAG 2.4.11) */
  scroll-padding-top: calc(var(--play-controls-height, 48px) + 12px);
}
:root:has(.app__haupt > .arena) body { background: var(--ar-bg); }
/* Sprunglink (app.css, z-index 10, top 8 px) lag unter der festen Leiste und dem Arena-Kopf: hier darunter und mit hellem Umriss */
:root:has(.app__haupt > .arena) .sprunglink { z-index: 101; }
:root:has(.app__haupt > .arena) .sprunglink:focus { top: calc(var(--play-controls-height, 48px) + 8px); }
:root:has(.app__haupt > .arena) .sprunglink:focus-visible { outline: 3px solid var(--ar-accent); outline-offset: 3px; }
.app:has(> .app__haupt > .arena) { max-width: none; background: var(--ar-bg); }
/* feste Leiste «⌂ Lobby · Töne · Musik» (lib/play_controls.js) im selben Look, nur solange die Arena zu sehen ist */
:root:has(.app__haupt > .arena) .play-controls:not(.play-controls--modal) { background: var(--ar-bg); color: var(--ar-ink); border-bottom-color: var(--ar-line); }
:root:has(.app__haupt > .arena) .play-controls:not(.play-controls--modal) button[aria-pressed="true"] { background: color-mix(in srgb, var(--ar-accent) 16%, transparent); }
:root:has(.app__haupt > .arena) .play-controls:not(.play-controls--modal) button[aria-pressed="false"] { color: var(--ar-muted); }
:root:has(.app__haupt > .arena) .play-controls:not(.play-controls--modal) button:focus-visible { outline-color: var(--ar-accent); }

.arena {
  --c-bg: var(--ar-bg);
  --c-surface: var(--ar-panel);
  --c-text: var(--ar-ink);
  --c-muted: var(--ar-muted);
  --c-line: var(--ar-line);
  --c-edge: var(--ar-line-stark);
  --c-focus: var(--ar-accent);
  --c-primary: var(--ar-accent);
  --c-accent-line: var(--ar-accent);
  --c-bad: var(--ar-fehler);
  --c-warn: var(--ar-warn);
  --c-warn-bg: var(--ar-warn-bg);
  --c-shadow: #000000;
  color-scheme: dark;
  min-height: calc(100vh - var(--play-controls-height, 48px));
  min-height: calc(100dvh - var(--play-controls-height, 48px));
  background: var(--ar-bg);
  color: var(--ar-ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.4;
  overflow-x: clip;
}
/* Reset mit :where() (Spezifitaet 0,1,0 wie ein Klassenselektor): die spaeteren Komponenten-Abstaende (.ar-tische__titel,
   .ar-go__titel, .ar-gruppe__titel …) wirken; vorher gewann .arena p (0,1,1) ueber sie */
.arena :where(h1, h2, h3, p, dl, dd) { margin: 0; }
.arena button { font-family: inherit; }
.arena :focus-visible { outline: 3px solid var(--ar-accent); outline-offset: 3px; }
.arena .feldfehler { color: var(--ar-fehler); }
.arena .feldfehler:empty, .arena .feldfehler:empty::before { display: none; }
.ar-pfeil { font-weight: 800; }

/* ---------------------------------------------------------------- Kopf (A1, A2) */
.ar-kopf { position: relative; z-index: 30; background: var(--ar-bg); border-bottom: 1px solid var(--ar-line); }
.ar-kopf__zeile { display: flex; align-items: center; gap: 8px 20px; min-height: 66px; max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.ar-marke { flex: none; display: block; line-height: 0; }
.ar-marke__bild { display: block; width: auto; height: 34px; }
.ar-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ar-nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ar-ink); font: 600 14px/1.2 var(--font-ui); white-space: nowrap; cursor: pointer; }
.ar-nav__link--aktiv { color: var(--ar-accent); font-weight: 800; cursor: default; }
.ar-nav__link--rand { margin-left: 8px; border: 1px solid var(--ar-line-stark); }
@media (hover: hover) { .ar-nav > button:hover { background: var(--ar-soft); } }
.ar-kopf__ende { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.arena .sprachwahl { margin-left: 0; }
.ar-mini { display: grid; justify-items: end; margin-right: 8px; line-height: 1.1; }
.ar-mini span { font-size: 12px; color: var(--ar-muted); }
.ar-mini strong { font-size: 21px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.ar-profilknopf { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ar-line-stark); border-radius: 22px; background: var(--ar-soft); color: var(--ar-ink); font: 700 14px/1 var(--font-ui); white-space: nowrap; cursor: pointer; }
.ar-menueknopf { display: none; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--ar-line-stark); border-radius: 10px; background: transparent; color: var(--ar-ink); font: 700 14px/1 var(--font-ui); cursor: pointer; }
.ar-menueknopf__striche { display: grid; gap: 4px; width: 18px; }
.ar-menueknopf__striche i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.ar-menueknopf[aria-expanded="true"] { background: var(--ar-soft); }
.ar-menue { position: absolute; top: calc(100% - 4px); right: 12px; z-index: 40; min-width: 220px; padding: 6px; border: 1px solid var(--ar-line-stark); border-radius: 12px; background: var(--ar-panel); box-shadow: 0 14px 30px -12px #000000; }
.ar-menue[hidden] { display: none; }
.ar-menue__liste { margin: 0; padding: 0; list-style: none; }
.ar-menue__eintrag { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ar-ink); font: 600 15px/1.2 var(--font-ui); text-align: left; cursor: pointer; }
@media (hover: hover) { .ar-menue__eintrag:hover { background: var(--ar-soft); } }

/* ---------------------------------------------------------------- Rahmen */
.ar-inhalt { display: grid; gap: 28px; max-width: 1440px; margin: 0 auto; padding: 24px 40px 40px; min-width: 0; }
.ar-hinweise { display: grid; gap: 10px; }
.ar-hinweise[hidden] { display: none; }
.ar-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; min-width: 0; }
.ar-spalte { display: grid; gap: 18px; min-width: 0; }
.ar-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; opacity: .75; }

/* ---------------------------------------------------------------- Hero mit grosser Figur (A3, A4) */
.ar-held { position: relative; isolation: isolate; overflow: hidden; height: clamp(520px, calc(100dvh - 165px), 640px); border: 1px solid var(--ar-line); border-radius: 25px; background: linear-gradient(140deg, var(--ar-held-a), var(--ar-held-b)); }
.ar-held__titel { position: absolute; z-index: 2; top: 32px; left: 30px; right: 24px; font: italic 800 60px/1.02 var(--ar-schrift-kopf); letter-spacing: -2px; text-transform: uppercase; text-shadow: 0 2px 18px #00000055; }
.ar-held__titel span { display: block; }
.ar-held__titel:focus { outline: none; }
.ar-held__figur { position: absolute; inset: 120px 0 0; display: flex; align-items: flex-end; justify-content: center; }
.ar-held__figur::before { content: ''; position: absolute; z-index: -1; left: 50%; bottom: 7%; width: min(80%, 470px); aspect-ratio: 1; translate: -50% 0; rotate: -12deg; border: 1px solid var(--ar-aura-rand); border-radius: 12px; background: var(--ar-aura); }
.ar-held__bild { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 100%; }
.ar-held__bild > svg { display: block; width: auto; height: 100%; max-width: 100%; filter: drop-shadow(0 18px 17px #00000033); }
.ar-held__platz { display: block; width: 50%; height: 70%; }
.ar-held__gestalten { position: absolute; z-index: 3; left: 50%; bottom: 16px; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ar-line-stark); border-radius: 30px; background: var(--ar-panel); color: var(--ar-ink); font: 600 14px/1 var(--font-ui); white-space: nowrap; cursor: pointer; }

/* ---------------------------------------------------------------- Profilkarte (A5) */
.ar-profil { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px 20px; align-items: center; padding: 18px 20px; border: 1px solid var(--ar-line); border-radius: 12px; background: var(--ar-panel); min-width: 0; }
.ar-profil__ich { min-width: 0; }
.ar-spieler { display: flex; align-items: center; gap: 13px; min-width: 0; }
.ar-level { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ar-line); border-radius: 12px; background: var(--ar-soft); font: 900 17px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.ar-level--gast .sym { width: 22px; height: 22px; }
.ar-spieler__text { min-width: 0; }
.ar-spieler__name { display: block; overflow: hidden; font-size: 17px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ar-spieler__text small { display: block; font-size: 13px; color: var(--ar-muted); }
.ar-xp { display: block; width: 100%; height: 6px; margin: 12px 0 6px; border: 0; border-radius: 20px; background: var(--ar-line); overflow: hidden; appearance: none; -webkit-appearance: none; }
.ar-xp::-webkit-progress-bar { background: var(--ar-line); border-radius: 20px; }
.ar-xp::-webkit-progress-value { background: var(--ar-accent); border-radius: 20px; }
.ar-xp::-moz-progress-bar { background: var(--ar-accent); border-radius: 20px; }
.ar-xp__zeile { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ar-muted); font-variant-numeric: tabular-nums; }
.ar-xp__heute { margin-top: 2px; font-size: 12px; color: var(--ar-muted); }
.ar-xp__leer { margin-top: 10px; font-size: 13px; color: var(--ar-muted); }
.ar-beutel { display: grid; gap: 2px; align-content: center; min-width: 0; padding-left: 20px; border-left: 1px solid var(--ar-line); }
.ar-beutel__label { font-size: 12px; color: var(--ar-muted); }
.ar-beutel__zahl { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ar-beutel small { font-size: 12px; color: var(--ar-muted); }
.ar-beutel--gast { gap: 8px; justify-items: start; }
.ar-beutel__satz { font-size: 14px; }
.ar-feld { margin-top: 12px; }
.ar-feld .feld__label { font-size: 13px; }
.ar-feld .feld__input { min-height: 44px; border-color: var(--ar-feldrand); background: var(--ar-bg); }
.ar-statistik { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 12px; border-top: 1px solid var(--ar-line); }
.ar-statistik > div { min-width: 0; }
.ar-statistik dt { font-size: 12px; color: var(--ar-muted); }
.ar-statistik dd { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ar-statistik--fehler { font-size: 13px; color: var(--ar-muted); }

/* ---------------------------------------------------------------- Haupt-CTA «Spielen» (A6) */
.ar-go { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: 22px 26px; border-radius: 16px; background: var(--ar-accent); color: var(--ar-onaccent); }
.ar-go__titel { margin-top: 4px; font: 800 30px/1.08 var(--ar-schrift-kopf); letter-spacing: -.6px; text-wrap: balance; }
.ar-go__info { margin-top: 6px; font-size: 13px; font-weight: 700; opacity: .8; }
.ar-go__aktion { display: grid; justify-items: end; gap: 8px; }
.ar-go__knopf { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 150px; min-height: 56px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--ar-knopf); color: var(--ar-knopf-text); font: 800 18px/1 var(--font-ui); cursor: pointer; }
.ar-go__knopf[aria-disabled="true"] { opacity: .6; cursor: wait; }
.arena .ar-go__knopf:focus-visible { outline-color: var(--ar-knopf); }
.ar-go__geld { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; text-align: right; }
.ar-go__status { grid-column: 1 / -1; font-size: 13px; font-weight: 700; }
.ar-go__status:empty { display: none; }
.arena .ar-go .feldfehler { grid-column: 1 / -1; color: var(--ar-fehler-limette); font-weight: 700; }
.ar-auswahl .hinweis__titel { color: var(--ar-ink); }
.ar-auswahl__knoepfe { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; }

/* ---------------------------------------------------------------- Offene Tische (A7, A8) */
.ar-tische { display: grid; gap: 12px; min-width: 0; }   /* Abstand zur festen Leiste: scroll-padding-top oben (f1) */
.ar-tische:focus { outline: none; }
.ar-tische:focus-visible { outline: 3px solid var(--ar-accent); outline-offset: 4px; border-radius: 6px; }
.ar-tische__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ar-tische__titel { margin-right: auto; font: 800 23px/1.2 var(--ar-schrift-kopf); letter-spacing: -.6px; }
.ar-filter { display: flex; gap: 6px; }
.ar-filter__knopf { min-height: 36px; padding: 0 14px; border: 1px solid var(--ar-line-stark); border-radius: 30px; background: transparent; color: var(--ar-ink); font: 600 13px/1 var(--font-ui); cursor: pointer; }
.ar-filter__knopf[aria-pressed="true"] { border-color: var(--ar-ink); background: var(--ar-ink); color: var(--ar-bg); }
.ar-rund { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--ar-line-stark); border-radius: 50%; background: transparent; color: var(--ar-ink); cursor: pointer; }
.ar-rund:disabled { opacity: .5; cursor: wait; }
/* Trefferflaeche 44 px ohne groessere Optik (Filter 36 px, «Aktualisieren» 40 px); kein Nachbar liegt in diesem Rand */
.ar-filter__knopf, .ar-rund { position: relative; }
.ar-filter__knopf::after, .ar-rund::after { content: ''; position: absolute; inset: -4px 0; }
.ar-rund::after { inset: -2px; }
.ar-tische__meldung { padding: 14px 18px; border: 1px dashed var(--ar-line-stark); border-radius: 10px; color: var(--ar-muted); }
.ar-tische__meldung:empty { display: none; }
.ar-tischliste { margin: 0; padding: 0; list-style: none; overflow: hidden; border: 1px solid var(--ar-line); border-radius: 10px; background: var(--ar-panel); }
.ar-tischliste[hidden] { display: none; }
.ar-tisch { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) auto; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ar-line); }
.ar-tisch:last-child { border-bottom: 0; }
.ar-tisch__name, .ar-tisch__platz { min-width: 0; }
.ar-tisch__name strong { display: block; font-size: 15px; }
.ar-tisch small { display: block; margin-top: 3px; font-size: 12px; color: var(--ar-muted); overflow-wrap: anywhere; }
.ar-tisch__platz strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.ar-punkt { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--ar-accent); vertical-align: middle; }
.ar-punkt[data-an="nein"] { background: var(--ar-muted); }
.ar-tisch:not([data-status="open"]) .ar-tisch__name strong { color: var(--ar-muted); }
.ar-klein { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ar-line-stark); border-radius: 8px; background: var(--ar-soft); color: var(--ar-ink); font: 700 14px/1 var(--font-ui); white-space: nowrap; cursor: pointer; }
.ar-klein:disabled { border-style: dashed; background: transparent; color: var(--ar-muted); opacity: .7; cursor: not-allowed; }
.ar-klein[aria-disabled="true"] { opacity: .6; cursor: wait; }
.ar-klein--hell { border-color: var(--ar-accent); background: var(--ar-accent); color: var(--ar-onaccent); }
.ar-link { justify-self: start; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--ar-accent); font: 700 14px/1 var(--font-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ar-link[hidden] { display: none; }

/* ---------------------------------------------------------------- Gruppentisch (A9) */
.ar-gruppe { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--ar-line); border-radius: 12px; background: var(--ar-panel); }
.ar-gruppe__text { min-width: 0; }
.ar-gruppe__titel { margin: 6px 0 4px; font-size: 18px; font-weight: 800; }
.ar-gruppe small { display: block; font-size: 13px; color: var(--ar-muted); }
.ar-gruppe .ar-go__status, .ar-gruppe .feldfehler { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- Weitere Wege (A10, A11) */
.ar-wege { display: grid; gap: 12px; min-width: 0; }
.ar-wege__titel { font: 800 21px/1.2 var(--ar-schrift-kopf); letter-spacing: -.4px; }
.ar-wege__liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ar-weg { display: grid; align-content: start; gap: 6px; width: 100%; height: 100%; min-height: 88px; padding: 16px 18px; border: 1px solid var(--ar-line); border-radius: 12px; background: var(--ar-panel); color: var(--ar-ink); font: inherit; text-align: left; cursor: pointer; }
.ar-weg strong { font-size: 16px; }
.ar-weg small { font-size: 13px; color: var(--ar-muted); }
@media (hover: hover) { .ar-weg:hover, .ar-klein:not(:disabled):hover { border-color: var(--ar-accent); } }
.ar-weg[aria-disabled="true"] { opacity: .6; cursor: wait; }
.ar-wege .ar-go__status { color: var(--ar-muted); }

/* ---------------------------------------------------------------- Landing-Abschnitte (E4) und Fuss (A14) */
.ar-landing { display: grid; gap: 24px; min-width: 0; padding-top: 8px; }
.arena .start-geld { background: var(--ar-panel); }
.arena .start-geld__titel, .arena .start-abschnitt__titel { font: 800 21px/1.2 var(--ar-schrift-kopf); letter-spacing: -.4px; }
.arena .start-geld__etikett { background: color-mix(in srgb, var(--ar-accent) 20%, var(--ar-panel)); }
.ar-fuss { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--ar-line); color: var(--ar-muted); }
.ar-fuss__geld { font-size: 13px; font-weight: 700; color: var(--ar-ink); }
.arena .rechtlinks a { color: var(--ar-ink); }

/* Ueben-Blatt (lib/ranglisten_blatt.js blatt, ausserhalb von .arena: Tokens der App) */
.ar-blatt .practice-choice { margin: 0; }

/* ---------------------------------------------------------------- Breiten */
@media (max-width: 1099.98px) {
  .ar-nav, .ar-kopf__hilfe { display: none; }
  .ar-menueknopf { display: inline-flex; }
  .ar-kopf__ende { margin-left: auto; }
  .ar-held__titel { font-size: 48px; }
  .ar-wege__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899.98px) {
  .ar-kopf__zeile, .ar-inhalt { padding-left: 24px; padding-right: 24px; }
  .ar-raster { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ar-held { height: 320px; }
  .ar-held__titel { font-size: 44px; }
  .ar-held__figur { inset: 70px 0 0 30%; }
}
@media (max-width: 599.98px) {
  .ar-kopf__zeile { min-height: 56px; gap: 6px; padding: 0 12px 0 16px; }
  .ar-marke__bild { height: 28px; }
  .ar-mini { display: none; }
  .ar-profilknopf { padding: 0 12px; }
  .ar-menueknopf { padding: 0; }
  .ar-menueknopf__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .ar-inhalt { gap: 20px; padding: 12px 16px 32px; }
  .ar-raster, .ar-spalte { gap: 12px; }
  /* D5: kleiner Hero; die Figur rechts beschnitten, Schlagzeile links oben */
  .ar-held { height: 212px; border-radius: 18px; }
  .ar-held__titel { top: 18px; left: 18px; right: 44%; font-size: 30px; letter-spacing: -1px; }
  .ar-held__figur { inset: 6px 0 0 40%; }
  .ar-held__figur::before { width: 86%; bottom: 4%; }
  .ar-held__gestalten { left: 14px; bottom: 12px; translate: none; min-height: 40px; padding: 0 14px; font-size: 13px; }
  .ar-held__gestalten::after { content: ''; position: absolute; inset: -2px 0; }   /* Trefferflaeche 44 px */
  .ar-profil { gap: 10px 14px; padding: 14px; }
  .ar-profil[data-art="gast"] { grid-template-columns: minmax(0, 1fr); }
  .ar-profil[data-art="gast"] .ar-beutel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--ar-line); }
  .ar-beutel--gast .ar-beutel__satz { grid-column: 1; font-size: 13px; }
  .ar-beutel--gast > .ar-klein { grid-column: 2; grid-row: 1 / 3; }
  .ar-beutel--gast > small { grid-column: 1; }
  .ar-feld { margin-top: 10px; }
  .ar-level { width: 40px; height: 40px; font-size: 16px; }
  .ar-spieler { gap: 10px; }
  /* langer Spielname (bis 20 Zeichen) bricht um statt «…»; er steht sonst nirgends auf der Arena (f1) */
  .ar-spieler__name { white-space: normal; overflow-wrap: anywhere; }
  .ar-beutel { padding-left: 14px; }
  .ar-beutel__zahl { font-size: 24px; }
  .ar-xp { margin-top: 10px; }
  .ar-statistik { padding-top: 10px; }
  .ar-statistik dd { font-size: 16px; }
  /* Text links, Knopf rechts, Geldhinweis als eigene Zeile darunter (kein Umbruch neben dem Knopf) */
  .ar-go { grid-template-areas: 'text knopf' 'geld geld'; gap: 8px 12px; padding: 16px 16px 14px; border-radius: 14px; }
  .ar-go__text { grid-area: text; }
  .ar-go__aktion { display: contents; }
  .ar-go__knopf { grid-area: knopf; }
  .ar-go__geld { grid-area: geld; justify-self: start; text-align: left; }
  .ar-go__titel { font-size: 22px; }
  .ar-go__info { margin-top: 4px; font-size: 12px; }
  .ar-go__knopf { gap: 14px; min-width: 0; min-height: 52px; padding: 0 18px; font-size: 17px; }
  .ar-tische__titel { font-size: 21px; }
  .ar-filter { order: 3; width: 100%; }
  .ar-tisch { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px; }
  .ar-tisch__platz { grid-column: 1; grid-row: 2; }
  .ar-tisch__platz small { display: inline; margin-left: 6px; }
  .ar-tisch > .ar-klein { grid-column: 2; grid-row: 1 / 3; }
  .ar-gruppe { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .ar-gruppe > .ar-klein { justify-self: start; }
  .ar-wege__liste { gap: 10px; }
  .ar-weg { min-height: 0; padding: 14px; }
}
@media (max-width: 359.98px) {
  .ar-wege__liste { grid-template-columns: minmax(0, 1fr); }
  .ar-held__titel { font-size: 26px; }
  /* 320 px (WCAG 1.4.10): Profil- bzw. Anmelden-Knopf nur mit Symbol (Text fuer Screenreader), damit der Menueknopf ganz
     ins Bild passt (Logo 105 + Sprache 58 + 44 + 44 + Luecken 18 <= 292 px; der Sprachknopf zeigt bis 400 px nur das Kuerzel) */
  .ar-profilknopf { justify-content: center; min-width: 44px; padding: 0; }
  .ar-profilknopf__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .ar-tische { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- UX Paket A (06.10.2026, Kuerzel ua) */
/* U18: leere Tischliste -> Weg zum Ueben */
.ar-tische__ueben { margin: -2px 0 6px; }
/* U24: Risiko-Tisch fuer Gaeste und Konten unter 16 */
.ar-klein--gesperrt { font-weight: 600; white-space: normal; text-align: center; }
/* U25: Beitrittsfehler an der Tischzeile */
.ar-tisch__fehler { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--ar-accent); border-radius: 8px; font-size: 14px; }
.ar-tisch__fehler:focus-visible { outline: 3px solid var(--ar-accent); outline-offset: 2px; }
/* U29: kleine Handys (Hoehe bis 700 px) und Querformat: Hero als schmales Band (Schlagzeile bleibt, Figur und «Figur gestalten»
   gibt es weiter ueber Garderobe im Menue), im Querformat Profil und «Spielen» nebeneinander: Namensfeld und «Spielen» im
   ersten Bildschirm; Look und Farben bleiben */
@media (max-width: 599.98px) and (max-height: 700px), (orientation: landscape) and (max-height: 500px) and (max-width: 899.98px) {
  .ar-held { height: auto; min-height: 0; border-radius: 14px; }
  .ar-held__titel { position: static; padding: 12px 16px; font-size: 22px; letter-spacing: -.5px; }
  .ar-held__titel span { display: inline; }
  .ar-held__figur, .ar-held__gestalten { display: none; }
  .ar-raster, .ar-spalte { gap: 10px; }
}
@media (orientation: landscape) and (max-height: 500px) and (min-width: 600px) and (max-width: 899.98px) {
  .ar-spalte { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .ar-spalte > :not(.ar-profil):not(.ar-go) { grid-column: 1 / -1; }
  .ar-profil[data-art="gast"] { grid-template-columns: minmax(0, 1fr); }
  .ar-go__titel { font-size: 24px; }
}

/* ---------------------------------------------------------------- v11 w1 (09.10.2026, Nutzerentscheid P19): Kopfleiste des Warteraums
   wie die Arena (screens/lobby.js header.lb-kopf.ar-kopfleiste): dieselbe dunkle Leiste und dieselbe Marke (logo-on-dark-600.png);
   der Saal darunter bleibt hell (lobby.css). Eigener Token-Bereich auf der Leiste, weil die --ar-* der Arena nur gelten, solange die
   Arena zu sehen ist; die Tokens --c- und --g- der Leiste zeigen auf dieselben Werte (Code-Knopf, Symbole, Fokus). */
.ar-kopfleiste {
  --ar-bg: #111827;
  --ar-ink: #eef3fc;
  --ar-muted: #a9b6ce;
  --ar-accent: #c5ed62;
  --ar-onaccent: #182030;
  --ar-line: #ffffff1c;
  --ar-line-stark: #ffffff38;
  --ar-soft: #29384d;
  --c-bg: var(--ar-bg);
  --c-surface: var(--ar-soft);
  --c-text: var(--ar-ink);
  --c-muted: var(--ar-muted);
  --c-line: var(--ar-line);
  --c-focus: var(--ar-accent);
  --c-primary: var(--ar-accent);
  --c-accent-line: var(--ar-accent);
  --g-rand: var(--ar-line-stark);
  --g-cta-a: var(--ar-accent);
  --g-on-cta-a: var(--ar-onaccent);
  color-scheme: dark;
  background: var(--ar-bg);
  color: var(--ar-ink);
  border-bottom-color: var(--ar-line);
}
.ar-kopfleiste .lb-marke { min-width: 0; min-height: 0; background: none; }
.ar-kopfleiste .lb-marke > * { opacity: 1; }
.ar-kopfleiste .ar-marke__bild { height: 30px; }
@media (max-width: 399.98px) { .ar-kopfleiste .ar-marke__bild { height: 22px; } }
/* v11 w1 (P04): Hinweis zur Warteschlange unter «Spielen» (zweite, ruhigere Zeile) */
.ar-go__info.ar-go__warte { margin-top: 2px; font-weight: 600; }

/* ==========================================================================
   v12.2 Paket K2 (14.10.2026): E9 Start-Tafel, E2 Kategorie, E6 Name, E4 Tagesauktion, E15 Schaufenster, E10 Startbildschirm,
   E17 Wahl des Uebungsbots. Arena-Look (dunkelblau + Limette) bleibt; Tippziele >= 44 px; kein Inline-Stil.
   ========================================================================== */
/* Karte «Spielen»: Name und Kategorie als ruhige Zeile unter Satz und Knopf (volle Breite) */
.ar-go__mehr { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px 14px; align-items: end; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--ar-onaccent) 22%, transparent); }
.ar-go__mehr:empty { display: none; }
.arena .ar-go .feld__label, .ar-kat__label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--ar-onaccent); }
.ar-go__name { margin: 0; }
.ar-name__zeile { display: flex; gap: 6px; align-items: center; }
.arena .ar-go .feld__input { min-height: 44px; border-color: var(--ar-onaccent); background: #ffffffd9; color: var(--ar-onaccent); font-weight: 700; }
.ar-name__neu { flex: none; width: 44px; height: 44px; border-color: var(--ar-onaccent); color: var(--ar-onaccent); }
.ar-kat__wahl { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--ar-onaccent); border-radius: 8px; background: #ffffffd9; color: var(--ar-onaccent); font: 700 14px/1.2 var(--font-ui); }
.arena .ar-go .feldfehler:empty { display: none; }
.ar-go__titel { font-size: 26px; }

/* Kachelreihe «Üben · Mit Freunden · Code eingeben» */
.ar-kacheln__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ar-kachel { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--ar-line-stark); border-radius: 12px; background: var(--ar-panel); color: var(--ar-ink); font: 800 15px/1.2 var(--font-ui); text-align: left; cursor: pointer; }
.ar-kachel__titel { min-width: 0; overflow-wrap: anywhere; }
@media (hover: hover) { .ar-kachel:hover { border-color: var(--ar-accent); } }
.ar-kachel[aria-disabled="true"] { opacity: .6; cursor: wait; }
.arena .ar-kachel:focus-visible { outline: 3px solid var(--ar-accent); outline-offset: 2px; }

/* Tagesauktion (E4) und Schaufenster (E15): ruhige Karten im Aufbau des Gruppentischs */
.ar-tages { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 16px 20px; border: 1px solid var(--ar-aura-rand); border-radius: 12px; background: var(--ar-panel); }
.ar-tages[hidden], .ar-schau[hidden], .ar-heim[hidden] { display: none; }
.ar-tages__titel { font-size: 18px; font-weight: 800; }
.ar-tages__info { margin-top: 4px; font-size: 13px; color: var(--ar-muted); }
.ar-schau { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 14px 18px; align-items: center; padding: 14px; border: 1px solid var(--ar-line); border-radius: 12px; background: var(--ar-panel); }
.ar-schau__figur { display: grid; gap: 6px; margin: 0; min-width: 0; }
.ar-schau__bild { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; border-radius: 8px; background: var(--ar-bg); }
.ar-schau__figur .bildwarnung, .ar-schau__figur .bildhinweis--kompakt, .ar-schau__figur .bildnotiz { font-size: 12px; color: var(--ar-muted); }
.ar-schau__text { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.ar-schau__titel { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.ar-schau__satz { font-size: 13px; color: var(--ar-muted); }

/* Hinweis «Zum Startbildschirm» (E10) */
.ar-heim .hinweis__titel { color: var(--ar-ink); }
.ar-heim .ar-auswahl__knoepfe { grid-column: 2; }

/* Üben-Blatt: Wahl des Uebungsbots (E17); das Blatt liegt ausserhalb von .arena (Tokens der App) */
.ar-botstil { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; border: 0; }
.ar-botstil__wahl { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 10px; border: 1px solid var(--c-line, #0000001f); border-radius: 10px; cursor: pointer; }
.ar-botstil__wahl input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; }
.ar-botstil__text { display: grid; gap: 2px; min-width: 0; }
.ar-botstil__text small { font-size: 13px; color: var(--c-muted, #555); }
.ar-botstil__wahl:has(input:checked) { border-color: var(--c-primary, currentColor); }

@media (max-width: 599.98px) {
  .ar-go { grid-template-areas: 'text knopf' 'geld geld' 'mehr mehr'; }
  .ar-go__mehr { grid-area: mehr; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 8px; }
  .ar-go__titel { font-size: 20px; }
  .ar-kacheln__liste { gap: 8px; }
  .ar-kachel { min-height: 48px; padding: 8px 10px; font-size: 14px; }
  .ar-schau { grid-template-columns: minmax(0, 110px) minmax(0, 1fr); gap: 10px 12px; padding: 12px; }
  .ar-tages { grid-template-columns: minmax(0, 1fr); padding: 14px; }
}
@media (max-width: 359.98px) {
  .ar-kacheln__liste { grid-template-columns: minmax(0, 1fr); }
}

/* v12.2 Kuerzel Z (E16 b, Befund Q1-9): Dauer auf «Spielen» und «Üben» (lib/raum.js dauerText), leiser als der Knopftext */
.ar-dauer { margin-inline-start: auto; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; opacity: .85; }
.ar-go__knopf .ar-dauer { font-size: 14px; }

/* ==========================================================================
   v12.2 Kuerzel N4 (15.10.2026) «Kleinteile Oberflaeche»: E6 Vorschau «So sehen dich die anderen», E11 «Neu seit …» kompakt,
   E9 Arena am kleinen Handy (360 x 640 und 390 x 844): «Spielen», Kachelreihe und Tagesauktion ganz im ersten Bildschirm, kein
   seitliches Scrollen. Look (dunkelblau + Limette) bleibt; Tippziele >= 44 px; kein Inline-Stil.
   ========================================================================== */
/* E6: Vorschau beim Spielnamen (Bueste wie am Platz im Warteraum, Name, «Gast ohne Stufe») */
.ar-vorschau { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 8px; padding: 4px 10px 4px 4px; border: 1px solid color-mix(in srgb, var(--ar-onaccent) 28%, transparent); border-radius: 12px; background: #ffffff59; color: var(--ar-onaccent); }
.ar-vorschau__figur { flex: none; display: block; width: 44px; height: 44px; overflow: hidden; border-radius: 10px; background: var(--ar-panel); }
.ar-vorschau__bild, .ar-vorschau__bild > svg { display: block; width: 100%; height: 100%; }
.ar-vorschau__text { display: grid; min-width: 0; line-height: 1.2; }
.ar-vorschau__titel, .ar-vorschau__stufe { font-size: 12px; font-weight: 600; opacity: .85; }
.ar-vorschau__name { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.ar-vorschau__mini { display: none; }

/* E11: «Neu seit …» als kompakte Zeile (lib/update_weg.js neuSeitElement am kleinen Handy); Liste erst nach «Zeigen» */
:root:has(.app__haupt > .arena) .neuigkeiten:not(:empty) { background: var(--ar-bg); }
:root:has(.app__haupt > .arena) .update-weg--kompakt { display: flex; align-items: flex-start; gap: 6px; padding: 0 4px 0 12px; }
:root:has(.app__haupt > .arena) .update-weg--kompakt { --ton: var(--ar-accent); --ton-bg: var(--ar-panel); --ton-titel: var(--ar-ink); --ton-rand: var(--ar-line-stark); color: var(--ar-ink); }
:root:has(.app__haupt > .arena) .update-weg--kompakt .hinweis__text { color: var(--ar-muted); }
:root:has(.app__haupt > .arena) .update-weg--kompakt .update-weg__mehr { flex: 1 1 auto; min-width: 0; }
:root:has(.app__haupt > .arena) .update-weg--kompakt .update-weg__kopf { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; }
:root:has(.app__haupt > .arena) .update-weg--kompakt .update-weg__kopf::-webkit-details-marker { display: none; }
:root:has(.app__haupt > .arena) .update-weg--kompakt .update-weg__kopf .hinweis__sym { margin-top: 0; }
:root:has(.app__haupt > .arena) .update-weg--kompakt .update-weg__kopf .hinweis__titel { min-width: 0; overflow-wrap: anywhere; }
:root:has(.app__haupt > .arena) .update-weg__zeigen { margin-inline-start: auto; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
:root:has(.app__haupt > .arena) .update-weg__zeigen::after { content: ' ▾'; text-decoration: none; }
:root:has(.app__haupt > .arena) .update-weg__mehr[open] .update-weg__zeigen::after { content: ' ▴'; }
:root:has(.app__haupt > .arena) .update-weg--kompakt .update-weg__liste { padding-bottom: 10px; }
:root:has(.app__haupt > .arena) .update-weg__zu { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 700 22px/1 var(--font-ui); cursor: pointer; }
:root:has(.app__haupt > .arena) .update-weg--kompakt .update-weg__kopf:focus-visible, :root:has(.app__haupt > .arena) .update-weg__zu:focus-visible { outline: 3px solid var(--ar-accent, currentColor); outline-offset: 2px; }

/* E9 am kleinen Handy: «Spielen»-Karte gestapelt (Satz, Knopf in voller Breite, Geld, Name/Kategorie), Kacheln Titel ueber Dauer,
   Tagesauktion als eine Zeile (Text links, Knopf rechts), kleinerer Hero */
@media (max-width: 599.98px) {
  .ar-inhalt { padding-top: 10px; }
  .ar-raster, .ar-spalte { gap: 10px; }
  .ar-held { height: 128px; }
  .ar-held__titel { top: 14px; font-size: 24px; }
  .ar-held__gestalten { bottom: 10px; }
  /* Plaetze und Wartehinweis als ein Absatz */
  .ar-go__text { font-size: 12px; line-height: 1.35; }
  .ar-go__text > .ar-go__info { display: inline; }
  .ar-go__text > .ar-go__info:not(.ar-go__warte)::after { content: ' · '; }
  /* Kategorie: Beschriftung links, Auswahl rechts (eine Zeile) */
  .ar-kat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
  .arena .ar-kat__label { margin-bottom: 0; }
  .ar-vorschau { margin-top: 6px; padding: 2px 8px 2px 2px; }
  .ar-vorschau__figur { width: 40px; height: 40px; }
  .ar-go { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'text' 'knopf' 'geld' 'mehr'; gap: 8px; padding: 14px 14px 12px; }
  .ar-go__titel { margin-top: 0; font-size: 20px; text-wrap: pretty; }
  .ar-go__info { margin-top: 2px; }
  .ar-go__knopf { width: 100%; }
  .ar-go__mehr { gap: 6px; }
  .ar-name__zeile .feld__input { min-width: 0; }
  .ar-kacheln__liste { gap: 6px; }
  .ar-kachel { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 10px; }
  .ar-kachel .ar-pfeil { display: none; }
  .ar-kachel .ar-dauer { margin-inline-start: 0; font-size: 12px; }
  .ar-kachel__titel { overflow-wrap: normal; word-break: normal; hyphens: auto; }
  .ar-tages { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 8px 12px; }
  .ar-tages__titel { font-size: 16px; }
  .ar-tages__info { margin-top: 2px; font-size: 12px; }
}
/* niedrige Handys (bis 700 px, z. B. 360 x 640): Hero-Band nur fuer Screenreader (h1 bleibt Fokusziel), Wartehinweis ausgeblendet
   (das Angebot «gegen den Uebungsbot ueben» kommt im Warteraum, v11 z1), Vorschau ohne Ueberschrift */
@media (max-width: 599.98px) and (max-height: 700px) {
  .ar-held { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
  .ar-go__text > .ar-go__info.ar-go__warte { display: none; }
  .ar-go__text > .ar-go__info:not(.ar-go__warte)::after { content: none; }
  .ar-go { gap: 6px; padding: 12px 12px 10px; }
  .ar-go__titel { font-size: 19px; }
  .ar-vorschau { display: none; }
  .ar-vorschau__mini { flex: none; display: block; width: 44px; height: 44px; overflow: hidden; border-radius: 10px; background: var(--ar-panel); }
  :root:has(.app__haupt > .arena) .neuigkeiten:has(> .update-weg--kompakt) { padding-block: 4px; }
  .arena .ar-go .feld__label, .ar-kat__label { margin-bottom: 2px; }
}
