/* ======================================================================
   Partybohnen – „Die Bohnen-Show“
   Abendliche TV-Spielshow über den Wolken: dunkle Glas-Paneele, feine 1-px-Linien,
   Barlow Condensed für Titel/Zahlen, Inter für Text, Akzente Bernstein/Koralle/Türkis.
   ====================================================================== */
:root {
  --nacht: #0d1326; --graphit: #1b2238; --stahl: #3a4560; --weiss: #f3eee4;
  --amber: #ffb23e; --amber2: #ffc766; --koralle: #ff5a4e; --tuerkis: #27d3c3;
  --gold: #ffb23e; --silber: #c7d0e0; --bronze: #d58a57;
  --text: #f3eee4; --text2: rgba(243, 238, 228, .72); --text3: rgba(243, 238, 228, .48);
  --linie: rgba(243, 238, 228, .10); --linie2: rgba(243, 238, 228, .18); --linie3: rgba(243, 238, 228, .30);
  --glas: linear-gradient(180deg, rgba(30, 38, 64, .88), rgba(13, 19, 38, .92));
  --glas-flach: rgba(13, 19, 38, .78);
  --feld: rgba(5, 9, 22, .48);
  --schatten: 0 24px 60px rgba(3, 6, 16, .55), 0 2px 8px rgba(3, 6, 16, .35);
  --anzeige: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r: 14px; --r-klein: 9px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sa-t: env(safe-area-inset-top, 0px); --sa-b: env(safe-area-inset-bottom, 0px); --sa-l: env(safe-area-inset-left, 0px); --sa-r: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
[hidden] { display: none !important; }
body { background: var(--nacht); color: var(--text); font: 500 14px/1.45 var(--body); overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
input { -webkit-user-select: text; user-select: text; }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; }
.bi { width: 18px; height: 18px; flex: none; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; font: 700 12px/1 var(--body); color: var(--text); background: linear-gradient(180deg, rgba(243, 238, 228, .14), rgba(243, 238, 228, .06)); border: 1px solid var(--linie3); border-bottom-width: 2px; border-radius: 5px; vertical-align: 1px; }

/* ---------- Bildschirme ---------- */
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: max(16px, var(--sa-t)) max(16px, var(--sa-r)) max(16px, var(--sa-b)) max(16px, var(--sa-l)); pointer-events: none; }
.screen > * { pointer-events: auto; }
.screen:not([hidden]) > .panel { animation: rein .32s var(--ease) both; }
@keyframes rein { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Paneel ---------- */
.panel { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 440px; max-height: 100%; min-height: 0; background: var(--glas); border: 1px solid var(--linie2); border-radius: var(--r); box-shadow: var(--schatten), inset 0 1px 0 rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); color: var(--text); touch-action: pan-y; overscroll-behavior: contain; overflow: hidden; }
.panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--amber) 0 22%, var(--koralle) 22% 30%, transparent 30% 100%); opacity: .95; z-index: 2; pointer-events: none; }
.ecken { position: absolute; inset: 7px; pointer-events: none; z-index: 2; opacity: .55;
  background:
    linear-gradient(var(--linie3), var(--linie3)) right top / 12px 1px no-repeat, linear-gradient(var(--linie3), var(--linie3)) right top / 1px 12px no-repeat,
    linear-gradient(var(--linie3), var(--linie3)) left bottom / 12px 1px no-repeat, linear-gradient(var(--linie3), var(--linie3)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--linie3), var(--linie3)) right bottom / 12px 1px no-repeat, linear-gradient(var(--linie3), var(--linie3)) right bottom / 1px 12px no-repeat; }
.p-kopf { flex: none; padding: 22px 22px 14px; position: relative; }
.p-inhalt { touch-action: pan-y; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 22px 16px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--stahl) transparent; }
.p-inhalt::-webkit-scrollbar { width: 6px; } .p-inhalt::-webkit-scrollbar-thumb { background: var(--stahl); border-radius: 3px; }
.p-fuss { flex: none; padding: 14px 22px 18px; border-top: 1px solid var(--linie); background: linear-gradient(180deg, rgba(5, 9, 22, .18), rgba(5, 9, 22, .42)); position: relative; }

.oberzeile { display: flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--anzeige); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.oberzeile .bi { width: 15px; height: 15px; }
.titel, h1, h2, h3 { margin: 0; font-family: var(--anzeige); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .98; text-wrap: balance; }
.titel { font-size: 36px; margin-top: 8px; }
.abschnitt { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; font: 700 13px/1 var(--anzeige); letter-spacing: .18em; text-transform: uppercase; color: var(--text2); }
.abschnitt::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--linie2), transparent); }
.abschnitt .nr { font: 800 12px/1 var(--anzeige); color: var(--amber); letter-spacing: .06em; padding: 3px 5px; border: 1px solid rgba(255, 178, 62, .45); border-radius: 4px; }
.abschnitt .rechts { margin-left: auto; order: 3; color: var(--text); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.p-fuss > .abschnitt:first-child, .p-inhalt > .abschnitt:first-child { margin-top: 6px; }
label.lab { display: block; margin: 14px 0 7px; font: 600 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--text3); }
.hinweis { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--text2); }
.hinweis.klein { font-size: 12px; color: var(--text3); margin-top: 10px; }
.hinweis kbd { min-width: 19px; height: 19px; font-size: 11px; }
.live-punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--koralle); box-shadow: 0 0 0 3px rgba(255, 90, 78, .22), 0 0 10px var(--koralle); flex: none; animation: puls 1.8s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .45; } }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font: 700 18px/1 var(--anzeige); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: transform .15s var(--ease), background-color .15s, border-color .15s, box-shadow .2s, filter .15s; }
.btn:active:not([disabled]) { transform: translateY(1px) scale(.985); }
.btn:focus-visible, .seg button:focus-visible, .farben button:focus-visible, .opt:focus-visible, .reiter button:focus-visible, .mini:focus-visible, .rund:focus-visible { outline: 2px solid var(--tuerkis); outline-offset: 2px; }
.btn.haupt { color: #1b1204; background: linear-gradient(180deg, #ffcb70, #ffad35 55%, #f59a1d); border-color: rgba(255, 220, 160, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(120, 60, 0, .25), 0 10px 24px -8px rgba(255, 178, 62, .65); }
.btn.haupt:hover:not([disabled]) { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(120, 60, 0, .25), 0 12px 30px -8px rgba(255, 178, 62, .85); }
.btn.haupt.tuerkis { color: #03201d; background: linear-gradient(180deg, #5ee8da, #27d3c3 55%, #17b5a6); border-color: rgba(160, 250, 240, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px -8px rgba(39, 211, 195, .6); }
.btn.zweit { color: var(--text); background: rgba(243, 238, 228, .06); border-color: var(--linie2); }
.btn.zweit:hover:not([disabled]) { background: rgba(243, 238, 228, .11); border-color: var(--linie3); }
.btn.zweit.on, .btn.zweit[aria-expanded="true"] { border-color: rgba(39, 211, 195, .7); background: rgba(39, 211, 195, .12); color: #bff6f0; }
.btn[disabled] { opacity: .45; cursor: default; filter: saturate(.4); }
.btn.breit { width: 100%; }
.btn.gross { min-height: 54px; font-size: 21px; }
.btn .bi { width: 19px; height: 19px; }
.reihe { display: flex; gap: 10px; }
.reihe > .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; }
.mini { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 8px; border: 1px solid var(--linie2); background: rgba(243, 238, 228, .05); color: var(--text2); cursor: pointer; transition: background-color .15s, color .15s, transform .2s var(--ease); }
.mini:hover { background: rgba(243, 238, 228, .1); color: var(--text); }
.mini .bi { width: 17px; height: 17px; transition: transform .25s var(--ease); }

/* ---------- Eingaben ---------- */
.eingabe { position: relative; }
input[type=text] { width: 100%; height: 48px; padding: 0 54px 0 14px; font: 600 16px var(--body); color: var(--text); background: var(--feld); border: 1px solid var(--linie2); border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s; }
input[type=text]::placeholder { color: var(--text3); font-weight: 500; }
input[type=text]:focus { border-color: rgba(255, 178, 62, .8); box-shadow: 0 0 0 3px rgba(255, 178, 62, .16); }
.zaehler { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 12px var(--anzeige); letter-spacing: .08em; color: var(--text3); font-variant-numeric: tabular-nums; pointer-events: none; }
.farben { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.farben button { position: relative; aspect-ratio: 1; width: 100%; max-width: 40px; justify-self: center; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .25), inset 0 2px 3px rgba(255, 255, 255, .35), 0 0 0 1px rgba(0, 0, 0, .35); transition: transform .15s var(--ease), box-shadow .15s; }
.farben button:hover { transform: translateY(-1px); }
.farben button.on { box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .25), inset 0 2px 3px rgba(255, 255, 255, .35), 0 0 0 2px var(--nacht), 0 0 0 4px var(--amber), 0 0 14px rgba(255, 178, 62, .45); }
.farben button.on::after { content: ''; position: absolute; inset: 30%; border-radius: 50%; background: rgba(13, 19, 38, .55); -webkit-mask: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9); }
.seg { display: flex; padding: 3px; gap: 3px; background: var(--feld); border: 1px solid var(--linie); border-radius: 9px; }
.seg button { flex: 1 1 0; min-width: 0; min-height: 34px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--text2); cursor: pointer; font: 700 16px/1 var(--anzeige); letter-spacing: .05em; text-transform: uppercase; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s; }
.seg button:hover { color: var(--text); background: rgba(243, 238, 228, .06); }
.seg button.on { color: #1b1204; background: linear-gradient(180deg, #ffc966, #ffae38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 8px rgba(255, 178, 62, .35); }

/* ---------- Menü ---------- */
#menu { justify-content: flex-start; padding-left: max(4vw, 16px, var(--sa-l)); }
.menukarte { max-width: 420px; }
.marke-kopf { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; }
.marke-text { min-width: 0; }
.marke { width: 58px; height: 58px; flex: none; filter: drop-shadow(0 4px 14px rgba(255, 140, 40, .35)); }
.wortmarke { display: flex; align-items: baseline; margin: 6px 0 0; font: italic 800 44px/.9 var(--anzeige); letter-spacing: .005em; text-transform: uppercase; white-space: nowrap; }
.wortmarke span { color: var(--weiss); }
.wortmarke b { font-weight: 800; color: transparent; background: linear-gradient(180deg, #ffd27a, #ffb23e 55%, #ff7a3e); -webkit-background-clip: text; background-clip: text; padding-right: .08em; }
.marke-kopf .oberzeile { font-size: 11.5px; letter-spacing: .16em; color: var(--text2); white-space: nowrap; }
.kennzahlen { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 22px; border-block: 1px solid var(--linie); }
.kennzahlen div { display: flex; align-items: baseline; gap: 6px; min-width: 0; padding: 10px 0 10px 12px; border-left: 1px solid var(--linie); }
.kennzahlen div:first-child { border-left: 0; padding-left: 0; }
.kennzahlen b { font: 800 24px/1 var(--anzeige); color: var(--weiss); font-variant-numeric: tabular-nums; }
.kennzahlen span { font: 600 10.5px/1.15 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
/* Ausweis: wer du in der Show bist */
.ausweis { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 10px 12px 10px 10px; border-radius: 12px; cursor: pointer; text-align: left; color: var(--text); background: linear-gradient(100deg, rgba(243, 238, 228, .07), rgba(243, 238, 228, .02) 60%), var(--feld); border: 1px solid var(--linie2); overflow: hidden; transition: border-color .15s, background-color .15s, transform .15s var(--ease); }
.ausweis::after { content: ''; position: absolute; right: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 178, 62, .12), transparent); pointer-events: none; }
.ausweis:hover { border-color: rgba(255, 178, 62, .55); }
.ausweis:active { transform: scale(.99); }
.ausweis:focus-visible { outline: 2px solid var(--tuerkis); outline-offset: 2px; }
.aw-farbe { --f: var(--amber); position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: rgba(13, 19, 38, .75); background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, .55), transparent 42%), var(--f); box-shadow: inset 0 -5px 10px rgba(0, 0, 0, .25), 0 0 0 2px var(--nacht), 0 0 0 3px color-mix(in srgb, var(--f) 70%, transparent), 0 0 22px -4px var(--f); }
.aw-farbe .bi { width: 24px; height: 24px; }
.aw-text { display: grid; gap: 4px; min-width: 0; }
.aw-text small { font: 700 10.5px/1 var(--anzeige); letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.aw-text b { font: 800 26px/1 var(--anzeige); letter-spacing: .02em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-text b.leer { color: var(--text3); font-size: 21px; letter-spacing: .06em; }
.aw-text > span { font-size: 12px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-knopf { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 11px; border-radius: 7px; border: 1px solid var(--linie2); font: 700 13px/1 var(--anzeige); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); transition: color .15s, border-color .15s; }
.aw-knopf .bi { width: 15px; height: 15px; }
.ausweis:hover .aw-knopf { color: var(--amber); border-color: rgba(255, 178, 62, .5); }
#b-join { margin-top: 10px; }
#joinbox { margin-top: 10px; }
.status { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12px; line-height: 1.45; color: var(--text3); }
.status::before { content: ''; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; flex: none; background: var(--tuerkis); box-shadow: 0 0 8px var(--tuerkis); }
#joinbox { margin-top: 10px; padding: 12px; border: 1px solid rgba(39, 211, 195, .35); border-radius: 11px; background: linear-gradient(180deg, rgba(39, 211, 195, .08), rgba(39, 211, 195, .02)); animation: rein .25s var(--ease) both; }
#joinbox label.lab { margin-top: 0; color: #9ee9e0; }
#joinbox .hinweis { margin-top: 8px; }
/* Spielen: der große Show-Knopf */
.btn.spielen { position: relative; justify-content: flex-start; gap: 14px; min-height: 74px; padding: 0 18px 0 12px; text-align: left; overflow: hidden; }
.btn.spielen::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 60%); transform: translateX(-100%); animation: glanz 4.5s var(--ease) 1.2s infinite; pointer-events: none; }
@keyframes glanz { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.sp-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 50%; background: #1b1204; color: var(--amber); box-shadow: inset 0 0 0 2px rgba(255, 220, 160, .35), 0 4px 10px rgba(120, 60, 0, .35); }
.sp-icon .bi { width: 22px; height: 22px; margin-left: 3px; }
.sp-text { display: grid; gap: 5px; flex: 1; min-width: 0; }
.sp-text b { font: italic 800 32px/.9 var(--anzeige); letter-spacing: .05em; }
.sp-text small { font: 600 12px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: rgba(27, 18, 4, .72); overflow: hidden; text-overflow: ellipsis; }
.btn.spielen .sp-pfeil { width: 24px; height: 24px; transition: transform .2s var(--ease); }
.btn.spielen:hover .sp-pfeil { transform: translateX(3px); }
#joinbox .btn.privat { min-height: 46px; font-size: 17px; }
.oder { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; font: 700 11.5px/1 var(--anzeige); letter-spacing: .2em; text-transform: uppercase; color: #9ee9e0; }
.oder::before, .oder::after { content: ''; flex: 1; height: 1px; background: rgba(39, 211, 195, .3); }
.oeffblock { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 11px; border: 1px solid rgba(39, 211, 195, .45); background: radial-gradient(120% 140% at 0% 0%, rgba(39, 211, 195, .18), rgba(39, 211, 195, .03) 60%), var(--feld); }
.oeffblock .live-punkt { background: var(--tuerkis); box-shadow: 0 0 0 3px rgba(39, 211, 195, .22), 0 0 10px var(--tuerkis); }
.oeffblock div { display: grid; gap: 4px; }
.oeffblock b { font: italic 800 24px/1 var(--anzeige); letter-spacing: .04em; text-transform: uppercase; }
.oeffblock small { font-size: 12px; color: var(--text2); }
.btn .auto { display: inline-grid; place-items: center; min-width: 34px; height: 30px; margin-left: 4px; padding: 0 6px; border-radius: 6px; background: #1b1204; color: var(--amber); font: 800 19px/1 var(--anzeige); font-variant-numeric: tabular-nums; }
.code-reihe { display: flex; gap: 8px; align-items: stretch; }
.code-reihe .btn { flex: none; width: 56px; padding: 0; }
.code-reihe .btn .bi { width: 22px; height: 22px; }
.codefeld { position: relative; flex: 1 1 auto; min-width: 0; height: 52px; }
.codefeld input[type=text] { position: absolute; inset: 0; z-index: 2; height: 100%; padding: 0; opacity: 0; cursor: text; caret-color: transparent; font-size: 16px; }
.zellen { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.zellen span { display: grid; place-items: center; border-radius: 8px; background: var(--feld); border: 1px solid var(--linie2); font: 800 28px/1 var(--anzeige); color: var(--weiss); letter-spacing: .02em; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.zellen span.leer { color: rgba(243, 238, 228, .2); }
.codefeld.fokus .zellen span.jetzt { border-color: var(--tuerkis); box-shadow: 0 0 0 3px rgba(39, 211, 195, .18); }
.codefeld.fokus .zellen span.jetzt.leer::after { content: ''; width: 2px; height: 24px; background: var(--tuerkis); animation: puls 1s steps(2) infinite; }
.codefeld.fokus .zellen span.jetzt.leer { color: transparent; font-size: 0; }
.codefeld.voll .zellen span { border-color: rgba(39, 211, 195, .6); background: rgba(39, 211, 195, .08); }

/* ---------- Avatar-Studio ---------- */
#editor { justify-content: flex-start; padding-left: max(4vw, 16px, var(--sa-l)); }
.edkarte { max-width: 420px; }
.edkarte .p-kopf { padding-bottom: 0; }
.reiter { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px -22px 0; padding: 0 14px; border-bottom: 1px solid var(--linie); }
.reiter button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 2px 13px; border: 0; background: none; color: var(--text3); cursor: pointer; font: 700 15px/1 var(--anzeige); letter-spacing: .14em; text-transform: uppercase; position: relative; transition: color .15s; }
.reiter button svg { width: 20px; height: 20px; }
.reiter button:hover { color: var(--text2); }
.reiter button.on { color: var(--amber); }
.reiter button.on::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.unter { display: flex; gap: 3px; margin: 14px 0 2px; padding: 3px; background: var(--feld); border: 1px solid var(--linie); border-radius: 9px; }
.unter button { flex: 1 1 0; min-width: 0; min-height: 32px; padding: 0 4px; border: 0; border-radius: 6px; background: transparent; color: var(--text2); cursor: pointer; font: 700 13.5px/1 var(--anzeige); letter-spacing: .1em; text-transform: uppercase; transition: background-color .15s, color .15s; }
.unter button:hover { color: var(--text); background: rgba(243, 238, 228, .06); }
.unter button.on { color: var(--weiss); background: rgba(243, 238, 228, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -2px 0 var(--amber); }
.ed-gruppe { margin-top: 16px; }
#ed-name { margin-top: 16px; }
.ed-titel { display: flex; justify-content: space-between; align-items: center; min-height: 18px; margin-bottom: 9px; font: 700 13px/1 var(--anzeige); letter-spacing: .16em; text-transform: uppercase; color: var(--text2); }
.ed-titel b { font: 600 12.5px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--amber); font-variant-numeric: tabular-nums; }
.ed-titel.abstand { margin-top: 18px; }
.mini.text { width: 30px; height: 30px; }
.mini.text .bi { width: 16px; height: 16px; }
#ed-name input[type=text] { height: 54px; padding-right: 14px; font: 800 26px/1 var(--anzeige); letter-spacing: .04em; text-transform: uppercase; }
#ed-name input[type=text]::placeholder { font: 500 15px var(--body); letter-spacing: 0; text-transform: none; }
.vorschlaege { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.optionen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.opt { position: relative; min-height: 44px; padding: 8px 8px; border-radius: 9px; border: 1px solid var(--linie2); background: rgba(243, 238, 228, .04); color: var(--text2); cursor: pointer; font: 600 13px/1.15 var(--body); text-align: center; transition: border-color .15s, background-color .15s, color .15s; }
.opt:hover { color: var(--text); border-color: var(--linie3); }
.opt.on { color: var(--weiss); border-color: var(--amber); background: rgba(255, 178, 62, .12); box-shadow: inset 0 0 0 1px rgba(255, 178, 62, .35); }
.opt.on::before { content: ''; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.edkarte .farben { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.edkarte .farben button { max-width: 44px; }
.farbkarten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fk { --f: #888; position: relative; display: grid; justify-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 10px; border: 1px solid var(--linie2); background: rgba(243, 238, 228, .035); color: var(--text2); cursor: pointer; font: 700 12.5px/1 var(--anzeige); letter-spacing: .12em; text-transform: uppercase; transition: border-color .15s, background-color .15s, color .15s, transform .15s var(--ease); }
.fk i { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, .5), transparent 45%), var(--f); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .35); }
.fk:hover { color: var(--text); border-color: var(--linie3); transform: translateY(-1px); }
.fk.on { color: var(--weiss); border-color: var(--f); background: linear-gradient(180deg, color-mix(in srgb, var(--f) 22%, transparent), rgba(243, 238, 228, .03)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--f) 50%, transparent), 0 0 22px -8px var(--f); }
.fk.on i { box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .25), 0 0 0 2px var(--nacht), 0 0 0 4px var(--f), 0 0 16px var(--f); }
.ed-tipp { margin-top: 10px; }
/* ---------- Party-Lobby ---------- */
#party { justify-content: flex-start; padding-left: max(4vw, 16px, var(--sa-l)); }
.partykarte { max-width: 420px; }
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zahl-pill { margin-left: 4px; padding: 3px 7px; border-radius: 4px; background: rgba(243, 238, 228, .08); color: var(--text); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.codeblock { margin-top: 14px; padding: 12px 12px 12px 14px; border-radius: 11px; border: 1px solid rgba(255, 178, 62, .35); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 178, 62, .16), rgba(255, 178, 62, .03) 60%), var(--feld); display: grid; gap: 8px; }
.code-titel { display: flex; justify-content: space-between; align-items: baseline; font: 700 12px/1 var(--anzeige); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.code-titel small { font: 500 11px/1 var(--body); letter-spacing: .02em; text-transform: none; color: var(--text3); }
.code-zeile { display: flex; align-items: center; gap: 10px; }
.code { display: flex; gap: 6px; flex: 1; min-width: 0; font: 800 44px/1 var(--anzeige); color: var(--weiss); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.code span { flex: 1 1 0; max-width: 54px; display: grid; place-items: center; height: 58px; border-radius: 8px; background: rgba(5, 9, 22, .55); border: 1px solid var(--linie2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -10px 18px rgba(0, 0, 0, .25); text-shadow: 0 0 18px rgba(255, 178, 62, .35); }
.code-zeile .kopie { width: 42px; height: 58px; flex: none; }
.kopie.ok { color: var(--tuerkis); border-color: rgba(39, 211, 195, .6); }
.partykarte.zu .p-inhalt { display: none; }
.partykarte.zu #p-klein .bi { transform: rotate(180deg); }
.liste { display: grid; gap: 5px; }
.spieler { display: grid; grid-template-columns: 22px 4px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 8px; background: rgba(243, 238, 228, .035); border: 1px solid var(--linie); font-weight: 600; }
.spieler.ich { border-color: rgba(255, 178, 62, .5); background: linear-gradient(90deg, rgba(255, 178, 62, .12), rgba(255, 178, 62, .02)); }
.spieler .platz { font: 700 14px/1 var(--anzeige); color: var(--text3); font-variant-numeric: tabular-nums; }
.spieler .balken { width: 4px; height: 24px; border-radius: 2px; box-shadow: 0 0 10px currentColor; }
.spieler .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spieler .tags { display: flex; gap: 5px; }
.spieler.leer { background: transparent; border-style: dashed; color: var(--text3); font-weight: 500; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; border: 1px solid var(--linie2); font: 700 11.5px/1 var(--anzeige); letter-spacing: .12em; text-transform: uppercase; color: var(--text2); white-space: nowrap; }
.tag.ich { background: var(--amber); border-color: var(--amber); color: #1b1204; }
.tag.host { border-color: rgba(39, 211, 195, .55); color: #8de9df; }
.tag.ki { background: rgba(58, 69, 96, .6); }
.einst { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.einst:last-child { border-bottom: 0; }
.einst-name { display: grid; gap: 2px; font: 700 14px/1.05 var(--anzeige); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.einst-name small { font: 500 11px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--text3); }
.warten { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--text2); }
.lauf { display: inline-flex; gap: 4px; }
.lauf i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: hupf 1.2s ease-in-out infinite; }
.lauf i:nth-child(2) { animation-delay: .15s; } .lauf i:nth-child(3) { animation-delay: .3s; }
@keyframes hupf { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Abstimmung ---------- */
.tag.art-raus { border-color: rgba(255, 90, 78, .55); color: #ffa79f; }
@keyframes stimme { from { transform: scale(0); } }
@keyframes sieg { 0% { transform: translateY(-4px) scale(1); } 40% { transform: translateY(-8px) scale(1.06); } 100% { transform: translateY(-6px) scale(1.03); } }

/* ---------- Anleitung ---------- */
#intro { justify-content: flex-start; }
#intro .panel { max-width: min(400px, 42vw); }
.i-kopf { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--linie); }
.i-icon { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 12px; background: radial-gradient(80% 80% at 50% 100%, rgba(255, 178, 62, .3), transparent 70%), linear-gradient(180deg, rgba(58, 69, 96, .55), rgba(13, 19, 38, .6)); border: 1px solid rgba(255, 178, 62, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.i-icon .ic { width: 58px; height: 58px; animation: schweb 3s ease-in-out infinite; }
@keyframes schweb { 50% { transform: translateY(-3px) rotate(-2deg); } }
.i-kopf .titel { font-size: 34px; margin-top: 6px; }
.i-kopf .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.schritte li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 7px 0; font-size: 14px; line-height: 1.45; color: var(--text); border-bottom: 1px dashed var(--linie); }
.schritte li:last-child { border-bottom: 0; }
.schritte li b { font: 800 20px/1 var(--anzeige); color: var(--amber); font-variant-numeric: tabular-nums; }
.steuer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.steuer div { display: grid; gap: 6px; align-content: start; padding: 8px 10px; border-radius: 8px; background: rgba(243, 238, 228, .035); border: 1px solid var(--linie); }
.steuer div > span:first-child { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--text3); font-size: 11.5px; }
.steuer div > span:last-child { font: 700 13px/1.1 var(--anzeige); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.steuer .tsym { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 3px; border-radius: 50%; border: 1.5px solid currentColor; }
.steuer .tsym svg { width: 12px; height: 12px; }
.bereitliste { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 12px; }
.br { display: inline-flex; align-items: center; gap: 6px; max-width: 132px; height: 26px; padding: 0 8px 0 7px; border-radius: 13px; background: rgba(243, 238, 228, .05); border: 1px solid var(--linie2); font-size: 12px; font-weight: 600; color: var(--text2); transition: border-color .2s, background-color .2s, color .2s; }
.br i { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(13, 19, 38, .8); }
.br .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br .st { display: grid; place-items: center; width: 14px; height: 14px; flex: none; }
.br .st svg { width: 14px; height: 14px; }
.br .st::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--text3); animation: puls 1.4s ease-in-out infinite; }
.br.ok { color: var(--text); border-color: rgba(39, 211, 195, .55); background: rgba(39, 211, 195, .1); }
.br.ok .st { color: var(--tuerkis); }
.br.ok .st::before { display: none; }
.br.ich { box-shadow: inset 0 0 0 1px rgba(255, 178, 62, .6); }
.i-zeit { display: grid; gap: 7px; }
.i-zeit-text { display: flex; justify-content: space-between; gap: 10px; font: 700 12.5px/1 var(--anzeige); letter-spacing: .14em; text-transform: uppercase; color: var(--text3); font-variant-numeric: tabular-nums; }
.i-zeit-text b { color: var(--tuerkis); font-weight: 800; margin-left: 4px; }
.fortschritt { height: 4px; border-radius: 2px; background: rgba(243, 238, 228, .08); overflow: hidden; }
.fortschritt i { display: block; height: 100%; background: var(--tuerkis); box-shadow: 0 0 10px var(--tuerkis); transition: width .3s var(--ease); }

/* ---------- HUD (TV-Grafik) ---------- */
#hud { display: block; }
.scorebug { position: absolute; top: max(14px, var(--sa-t)); left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; height: 48px; border-radius: 10px; overflow: hidden; background: var(--glas); border: 1px solid var(--linie2); box-shadow: var(--schatten); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); white-space: nowrap; animation: runter .35s var(--ease) both; }
@keyframes runter { from { opacity: 0; transform: translate(-50%, -12px); } }
.sb-runde { display: grid; align-content: center; justify-items: center; padding: 0 13px; background: linear-gradient(180deg, #ffc35e, #f7a127); color: #1b1204; }
.sb-runde small { font: 700 9.5px/1 var(--anzeige); letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.sb-runde span { font: 800 21px/1 var(--anzeige); font-variant-numeric: tabular-nums; }
.sb-name { display: flex; align-items: center; padding: 0 18px; font: italic 800 22px/1 var(--anzeige); letter-spacing: .04em; text-transform: uppercase; color: var(--weiss); border-right: 1px solid var(--linie); }
.sb-uhr { position: relative; display: grid; place-items: center; width: 64px; background: rgba(5, 9, 22, .45); }
.sb-ring { position: absolute; width: 40px; height: 40px; transform: rotate(-90deg); }
.sb-ring circle { fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 0; transition: stroke-dashoffset .5s linear, stroke .2s; opacity: .9; }
.sb-uhr.offen .sb-ring circle { stroke: var(--stahl); }
.uhr { position: relative; font: 800 21px/1 var(--anzeige); font-variant-numeric: tabular-nums; color: var(--weiss); }
.sb-uhr.knapp .sb-ring circle { stroke: var(--koralle); }
.sb-uhr.knapp .uhr { color: #ffb0a8; animation: puls .5s ease-in-out infinite; }
.sb-uhr.fertig .uhr { color: var(--tuerkis); }
.tafel { position: absolute; top: max(14px, var(--sa-t)); left: max(14px, var(--sa-l)); width: 214px; display: grid; gap: 2px; padding: 0 0 6px; border-radius: 10px; overflow: hidden; background: var(--glas); border: 1px solid var(--linie2); box-shadow: var(--schatten); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 13px; animation: rein .35s var(--ease) both; }
.tafel .kopf { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 7px; margin-bottom: 3px; border-bottom: 1px solid var(--linie); font: 700 11.5px/1 var(--anzeige); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.tafel .kopf span:last-child { color: var(--text3); letter-spacing: .12em; }
.tafel .z { display: grid; grid-template-columns: 18px 3px minmax(0, 1fr) auto; align-items: center; gap: 7px; height: 25px; margin: 0 5px; padding: 0 6px; border-radius: 5px; font-weight: 600; }
.tafel .z .pl { font: 700 13px/1 var(--anzeige); color: var(--text3); text-align: center; font-variant-numeric: tabular-nums; }
.tafel .z i { width: 3px; height: 15px; border-radius: 2px; }
.tafel .z .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tafel .z b { font: 800 16px/1 var(--anzeige); font-variant-numeric: tabular-nums; color: var(--weiss); }
.tafel .z .lebt { width: 7px; height: 7px; border-radius: 50%; background: var(--tuerkis); box-shadow: 0 0 8px var(--tuerkis); }
.tafel .z .raus { font: 700 10.5px/1 var(--anzeige); letter-spacing: .14em; color: var(--koralle); }
.tafel .z.ich { background: linear-gradient(90deg, rgba(255, 178, 62, .22), rgba(255, 178, 62, .04)); box-shadow: inset 2px 0 0 var(--amber); }
.tafel .z.ich .pl { color: var(--amber); }
.tafel .z.aus { opacity: .45; }
.tafel .z.aus .nm { text-decoration: line-through; text-decoration-color: rgba(255, 90, 78, .7); }

/* Banner: Bauchbinde */
#banner { position: fixed; left: 50%; top: 23%; z-index: 4; transform: translateX(-50%); isolation: isolate; padding: 10px 30px 10px 34px; font: italic 800 clamp(24px, 5vw, 46px)/1 var(--anzeige); letter-spacing: .04em; text-transform: uppercase; color: var(--weiss); white-space: nowrap; pointer-events: none; text-align: center; transition: opacity .2s var(--ease); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
#banner::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: skewX(-12deg); background: var(--glas); border: 1px solid var(--linie2); border-radius: 6px; box-shadow: var(--schatten); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#banner::after { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 10px; z-index: -1; transform: skewX(-12deg); background: linear-gradient(180deg, var(--amber), var(--koralle)); border-radius: 4px 0 0 4px; }
#banner:empty { display: none; }

/* Countdown */
#zahl { position: fixed; left: 50%; top: 50%; z-index: 5; display: grid; place-items: center; transform: translate(-50%, -50%); font: 800 clamp(110px, 22vw, 210px)/1 var(--anzeige); color: var(--weiss); font-variant-numeric: tabular-nums; pointer-events: none; text-shadow: 0 8px 40px rgba(3, 6, 16, .6), 0 0 30px rgba(255, 178, 62, .35); }
#zahl::before { content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; width: 1.32em; height: 1.32em; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 19, 38, .75), rgba(13, 19, 38, .5) 75%, transparent 76%); box-shadow: inset 0 0 0 2px rgba(255, 178, 62, .85), 0 0 40px rgba(255, 178, 62, .25); }
#zahl::after { content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; width: 1.5em; height: 1.5em; margin: -.75em 0 0 -.75em; border-radius: 50%; border: 1px dashed rgba(243, 238, 228, .35); animation: drehen 6s linear infinite; }
#zahl.los { color: var(--amber); font-style: italic; font-size: clamp(90px, 18vw, 180px); letter-spacing: .02em; text-shadow: 0 8px 40px rgba(3, 6, 16, .55), 0 0 40px rgba(255, 178, 62, .6); }
#zahl.los::before, #zahl.los::after { display: none; }
@keyframes drehen { to { transform: rotate(360deg); } }
.pop { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } 60% { opacity: 1; } }

#zahl-band { position: fixed; left: 50%; top: calc(50% + clamp(94px, 16.5vw, 172px)); z-index: 5; transform: translateX(-50%); display: flex; align-items: stretch; max-width: calc(100vw - 24px); border-radius: 7px; overflow: hidden; border: 1px solid var(--linie2); box-shadow: var(--schatten); white-space: nowrap; pointer-events: none; animation: band .4s var(--ease) both; }
@keyframes band { from { opacity: 0; clip-path: inset(0 50% 0 50%); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.zb-runde { display: flex; align-items: center; padding: 0 13px; background: linear-gradient(180deg, #ffc35e, #f7a127); color: #1b1204; font: 800 13px/1 var(--anzeige); letter-spacing: .18em; text-transform: uppercase; }
#zb-name { display: flex; align-items: center; min-width: 0; padding: 9px 18px; background: var(--glas); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font: italic 800 28px/1 var(--anzeige); letter-spacing: .04em; text-transform: uppercase; color: var(--weiss); overflow: hidden; text-overflow: ellipsis; }
.zb-text { display: flex; align-items: center; padding: 0 14px; background: rgba(5, 9, 22, .78); border-left: 1px solid var(--linie); color: var(--tuerkis); font: 700 13px/1 var(--anzeige); letter-spacing: .16em; text-transform: uppercase; }

/* Ansage */
.ansage { position: fixed; left: 50%; top: calc(max(14px, var(--sa-t)) + 60px); z-index: 4; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 9px 18px 9px 10px; border-radius: 10px; background: var(--glas); border: 1px solid var(--linie2); box-shadow: var(--schatten); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font: italic 800 clamp(22px, 4vw, 32px)/1 var(--anzeige); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; pointer-events: none; animation: runter .25s var(--ease) both; }
.ansage i { width: 30px; height: 30px; border-radius: 6px; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .25), 0 0 0 2px rgba(255, 255, 255, .85), 0 0 18px currentColor; }

/* ---------- Ergebnis und Finale ---------- */
.ergkarte { max-width: 520px; }
.tabkopf, .ergebnis .z { display: grid; grid-template-columns: 44px minmax(0, 1fr) 58px 62px; align-items: center; gap: 8px; }
.tabkopf { padding: 0 12px 7px; font: 700 11px/1 var(--anzeige); letter-spacing: .18em; text-transform: uppercase; color: var(--text3); border-bottom: 1px solid var(--linie); margin-bottom: 6px; }
.tabkopf span:nth-child(n+3) { text-align: right; }
.ergebnis { display: grid; gap: 4px; }
.ergebnis .z { min-height: 42px; padding: 0 12px; border-radius: 8px; background: rgba(243, 238, 228, .035); border: 1px solid var(--linie); animation: zeile .35s var(--ease) both; }
.ergebnis .z:nth-child(2) { animation-delay: .04s; } .ergebnis .z:nth-child(3) { animation-delay: .08s; } .ergebnis .z:nth-child(4) { animation-delay: .12s; } .ergebnis .z:nth-child(5) { animation-delay: .16s; } .ergebnis .z:nth-child(6) { animation-delay: .2s; } .ergebnis .z:nth-child(7) { animation-delay: .24s; } .ergebnis .z:nth-child(8) { animation-delay: .28s; }
@keyframes zeile { from { opacity: 0; transform: translateX(-8px); } }
.ergebnis .pl { font: 800 24px/1 var(--anzeige); color: var(--text3); font-variant-numeric: tabular-nums; }
.ergebnis .pl small { font-size: 13px; margin-left: 1px; }
.ergebnis .z.p1 .pl { color: var(--gold); } .ergebnis .z.p2 .pl { color: var(--silber); } .ergebnis .z.p3 .pl { color: var(--bronze); }
.ergebnis .z.p1 { border-color: rgba(255, 178, 62, .4); background: linear-gradient(90deg, rgba(255, 178, 62, .14), rgba(255, 178, 62, .02) 70%); }
.ergebnis .wer { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.ergebnis .wer i { width: 4px; height: 22px; border-radius: 2px; flex: none; }
.ergebnis .wer .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ergebnis .wer .tag { flex: none; height: 18px; font-size: 10.5px; }
.ergebnis .plus { text-align: right; font: 700 18px/1 var(--anzeige); color: var(--tuerkis); font-variant-numeric: tabular-nums; }
.ergebnis .plus.null { color: var(--text3); }
.ergebnis .ges { text-align: right; font: 800 22px/1 var(--anzeige); color: var(--weiss); font-variant-numeric: tabular-nums; }
.ergebnis .z.ich { box-shadow: inset 3px 0 0 var(--amber); }
.ablauf { height: 3px; margin-top: 12px; border-radius: 2px; background: rgba(243, 238, 228, .08); overflow: hidden; }
.ablauf i { display: block; height: 100%; background: var(--amber); transform-origin: left; animation: ablauf 6s linear both; }
.ablauf.ab18 i { animation-duration: 18s; }
@keyframes ablauf { from { transform: scaleX(1); } to { transform: scaleX(0); } }
#r-info { margin: 0; }
#final { justify-content: flex-end; padding-right: max(4vw, 16px, var(--sa-r)); }
.finalkarte { max-width: 420px; }
.oberzeile.gold { color: var(--amber); }
.f-sieger { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px 12px 12px; border-radius: 11px; border: 1px solid rgba(255, 178, 62, .45); background: radial-gradient(120% 160% at 100% 0%, rgba(255, 178, 62, .24), rgba(255, 178, 62, .04) 60%), var(--feld); }
.f-sieger:empty { display: none; }
.f-sieger i { width: 6px; height: 40px; border-radius: 3px; }
.f-sieger .wer { display: grid; gap: 4px; min-width: 0; }
.f-sieger small { font: 700 11px/1 var(--anzeige); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.f-sieger b { font: 800 26px/1 var(--anzeige); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-sieger .pkt { text-align: right; font: 800 34px/1 var(--anzeige); color: var(--amber); font-variant-numeric: tabular-nums; }
.f-sieger .pkt small { display: block; font-size: 10px; color: var(--text3); margin-top: 3px; }
.finalkarte .ergebnis .z { min-height: 36px; }
.finalkarte .tabkopf span:nth-child(3) { visibility: hidden; }

/* ---------- Feste Knöpfe, Hinweise ---------- */
.ecke { position: fixed; top: max(12px, var(--sa-t)); right: max(12px, var(--sa-r)); display: flex; gap: 8px; z-index: 6; }
.rund { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 10px; cursor: pointer; color: var(--text); background: var(--glas); border: 1px solid var(--linie2); box-shadow: 0 8px 20px rgba(3, 6, 16, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .15s, color .15s, background-color .15s; }
.rund:hover { border-color: var(--linie3); color: var(--amber); }
.rund svg { width: 20px; height: 20px; }
.rund svg [stroke-width] { stroke-width: 2; }
#b-raus:hover { color: var(--koralle); border-color: rgba(255, 90, 78, .6); }
#toast { position: fixed; left: 50%; bottom: max(24px, var(--sa-b)); z-index: 7; transform: translateX(-50%); width: max-content; max-width: min(480px, calc(100vw - 32px)); padding: 11px 16px 11px 18px; border-radius: 10px; background: var(--glas); border: 1px solid var(--linie2); box-shadow: var(--schatten), inset 3px 0 0 var(--amber); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-weight: 600; font-size: 14px; text-align: center; pointer-events: none; transition: opacity .3s var(--ease); }
#vorschau { position: fixed; z-index: 4; top: max(14px, var(--sa-t)); left: calc((100% + min(400px, 42vw) + 16px) / 2); transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 7px 14px 7px 10px; border-radius: 8px; background: var(--glas); border: 1px solid var(--linie2); box-shadow: var(--schatten); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px; font-weight: 600; color: var(--text2); white-space: nowrap; pointer-events: none; }
#vorschau b { font: 800 14px/1 var(--anzeige); letter-spacing: .18em; text-transform: uppercase; color: var(--weiss); padding-right: 9px; border-right: 1px solid var(--linie2); }
#vorschau i { width: 9px; height: 9px; border-radius: 50%; background: var(--koralle); box-shadow: 0 0 0 3px rgba(255, 90, 78, .25), 0 0 10px var(--koralle); animation: puls 1s ease-in-out infinite; }
#zuschauer { position: fixed; left: 50%; bottom: max(18px, var(--sa-b)); z-index: 4; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 9px; background: var(--glas); border: 1px solid var(--linie2); box-shadow: var(--schatten); font-size: 13px; font-weight: 600; color: var(--text2); white-space: nowrap; pointer-events: none; }
#zuschauer svg { width: 16px; height: 16px; color: var(--tuerkis); }
.wartekarte { max-width: 340px; padding: 28px 24px 22px; text-align: center; align-items: center; }
.wartekarte .titel { font-size: 30px; margin: 8px 0 14px; }
.wartekarte .oberzeile { justify-content: center; }
.wartekarte .code { justify-content: center; margin-bottom: 18px; font-size: 32px; }
.wartekarte .code:empty { display: none; }
.wartekarte .code { letter-spacing: .3em; padding-left: .3em; color: var(--amber); }
.spinner { width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; border: 2px solid var(--linie2); border-top-color: var(--amber); animation: drehen .9s linear infinite; }

/* Laden */
#lade { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: radial-gradient(90% 70% at 50% 110%, rgba(255, 140, 60, .22), transparent 60%), radial-gradient(60% 50% at 50% 40%, #1b2238, var(--nacht)); font: 700 18px var(--anzeige); letter-spacing: .1em; text-transform: uppercase; color: var(--text2); text-align: center; }
.lade-innen { display: grid; justify-items: center; gap: 14px; }
.lade-innen .marke { width: 76px; height: 76px; }
.lade-innen .wortmarke { font-size: 54px; margin: 0; }
.ladebalken { width: 220px; height: 3px; border-radius: 2px; background: rgba(243, 238, 228, .1); overflow: hidden; }
.ladebalken i { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--amber), transparent); animation: laden 1.2s ease-in-out infinite; }
@keyframes laden { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.lade-text { font: 600 12px var(--body); letter-spacing: .16em; color: var(--text3); }

/* ---------- Touch-Steuerung ---------- */
#touch { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
#stickzone { position: absolute; left: 0; bottom: 0; width: 50%; height: 72%; pointer-events: auto; touch-action: none; }
#stick.frei { transition: none; opacity: .95; }
.tbtn.druck { transform: scale(.9); filter: brightness(1.25); }
#stick { position: fixed; left: max(28px, var(--sa-l)); bottom: max(30px, var(--sa-b)); width: 140px; height: 140px; border-radius: 50%; pointer-events: auto; touch-action: none; background: radial-gradient(closest-side, rgba(13, 19, 38, .25), rgba(13, 19, 38, .55)); border: 1.5px solid rgba(243, 238, 228, .3); box-shadow: 0 10px 30px rgba(3, 6, 16, .35), inset 0 0 0 10px rgba(243, 238, 228, .03); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#stick::before { content: ''; position: absolute; inset: 20px; border-radius: 50%; border: 1px dashed rgba(243, 238, 228, .2); }
#stick::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background:
  linear-gradient(var(--amber), var(--amber)) 50% 0 / 2px 8px no-repeat, linear-gradient(var(--amber), var(--amber)) 50% 100% / 2px 8px no-repeat,
  linear-gradient(var(--amber), var(--amber)) 0 50% / 8px 2px no-repeat, linear-gradient(var(--amber), var(--amber)) 100% 50% / 8px 2px no-repeat; opacity: .7; }
#knopf { position: absolute; left: 50%; top: 50%; z-index: 1; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: radial-gradient(circle at 40% 32%, #3a4560, #1b2238 70%); border: 2px solid var(--amber); box-shadow: 0 6px 16px rgba(3, 6, 16, .5), inset 0 1px 0 rgba(255, 255, 255, .15), 0 0 16px rgba(255, 178, 62, .35); }
#knopf::after { content: ''; position: absolute; inset: 17px; border-radius: 50%; border: 1px solid rgba(243, 238, 228, .25); }
/* Tasten: groß, rund, kräftig gefüllt, mit „Kante“ unten wie echte Spielknöpfe. Sprung (groß) in der Ecke, Aktion links daneben,
   Party klein darüber. Rechts mittig bleibt frei für den Vollbild-Knopf der Website (.pb-full in partybohnen_seiten.py). */
.tbtn { --f: var(--amber); --k: #b86e0c; --s: 112px; position: fixed; display: grid; place-items: center; align-content: center; gap: 4px; width: var(--s); height: var(--s); border-radius: 50%; pointer-events: auto; touch-action: none; color: #1b1204;
  background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .45), transparent 55%), var(--f); border: 3px solid rgba(255, 255, 255, .75);
  box-shadow: 0 6px 0 var(--k), 0 14px 26px rgba(3, 6, 16, .45), inset 0 -6px 0 rgba(0, 0, 0, .14); opacity: .92; transition: transform .07s, box-shadow .07s, filter .07s; }
.tbtn svg { width: 42%; height: 42%; pointer-events: none; filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .35)); }
.tbtn span { font: 800 13px/1 var(--body); letter-spacing: .02em; color: inherit; pointer-events: none; }
.tbtn:active, .tbtn.druck { transform: translateY(5px) scale(.96); box-shadow: 0 1px 0 var(--k), 0 6px 14px rgba(3, 6, 16, .45), inset 0 -3px 0 rgba(0, 0, 0, .14); filter: brightness(1.08); }
#tA { right: max(28px, calc(var(--sa-r) + 12px)); bottom: max(30px, calc(var(--sa-b) + 14px)); }
#tB { --f: #ff6a5c; --k: #a8261c; --s: 92px; color: #2a0805; right: max(158px, calc(var(--sa-r) + 142px)); bottom: max(40px, calc(var(--sa-b) + 24px)); }
#tC { --f: var(--tuerkis); --k: #0f7f74; --s: 66px; color: #032622; right: max(51px, calc(var(--sa-r) + 35px)); bottom: max(162px, calc(var(--sa-b) + 146px)); }
#tC span { font-size: 11px; }

/* ---------- Icons der Minispiele ---------- */
.ic { color: var(--weiss); overflow: visible; }
.ic .A { stroke: var(--amber); fill: rgba(255, 178, 62, .2); }
.ic .K { stroke: var(--koralle); fill: rgba(255, 90, 78, .2); }
.ic .T { stroke: var(--tuerkis); fill: rgba(39, 211, 195, .2); }
.ic .An { stroke: var(--amber); fill: none; }
.ic .Kn { stroke: var(--koralle); fill: none; }
.ic .Tn { stroke: var(--tuerkis); fill: none; }
.ic .v { fill: currentColor; stroke: none; }
.ic .vA { fill: var(--amber); stroke: none; }
.ic .vK { fill: var(--koralle); stroke: none; }
.ic .vT { fill: var(--tuerkis); stroke: none; }
.ic .g { fill: rgba(243, 238, 228, .07); }
.ic .d { stroke-dasharray: 2 4.5; }
.ic .s { opacity: .5; }
.ic .dn { stroke-width: 1.6; }

/* ====================================================================== Anpassungen */
@media (min-width: 1500px) { .menukarte, .edkarte, .partykarte { max-width: 460px; } }

/* schmal (Handy hoch, kleine Fenster) */
@media (max-width: 760px) {
  #menu, #editor, #final { justify-content: center; align-items: flex-end; padding-left: max(12px, var(--sa-l)); padding-right: max(12px, var(--sa-r)); padding-bottom: max(12px, var(--sa-b)); }
  .menukarte, .edkarte, .finalkarte { max-width: 560px; }
  .menukarte { max-height: 78%; }
  .edkarte { max-height: 58%; } .edkarte .titel { font-size: 26px; margin-top: 5px; } .ed-tipp { display: none; } .edkarte .reiter { margin-top: 10px; } .reiter button { padding: 10px 2px 11px; }
  .finalkarte { max-height: 56%; }
  #party { justify-content: center; align-items: flex-start; padding-left: max(12px, var(--sa-l)); padding-right: max(12px, var(--sa-r)); padding-top: max(66px, calc(var(--sa-t) + 56px)); }
  .partykarte { max-width: 560px; }
  .p-kopf { padding: 18px 16px 12px; } .p-inhalt { padding: 2px 16px 14px; } .p-fuss { padding: 12px 16px 14px; }
  .kennzahlen { margin: 0 16px; }
  .reiter { margin-left: -16px; margin-right: -16px; padding: 0 8px; }
  .marke { width: 48px; height: 48px; }
  .wortmarke { font-size: 40px; }
  .titel { font-size: 30px; }
  .farben { gap: 6px; }
  .scorebug { left: max(12px, var(--sa-l)); transform: none; top: max(12px, var(--sa-t)); height: 44px; max-width: calc(100% - 136px - var(--sa-l) - var(--sa-r)); animation: rein .3s var(--ease) both; }
  .sb-name { font-size: 18px; padding: 0 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .sb-runde { padding: 0 10px; } .sb-runde span { font-size: 18px; }
  .sb-uhr { width: 54px; flex: none; }
  .tafel { top: calc(max(12px, var(--sa-t)) + 52px); left: max(12px, var(--sa-l)); width: 168px; font-size: 12px; }
  .tafel .z { height: 22px; }
  .ansage { left: auto; right: max(12px, var(--sa-r)); transform: none; top: calc(max(12px, var(--sa-t)) + 54px); font-size: 22px; padding: 7px 12px 7px 8px; }
  .ansage i { width: 24px; height: 24px; }
  @keyframes runter { from { opacity: 0; transform: translateY(-10px); } }
  #banner { top: 34%; }
  .zb-text { display: none; } #zb-name { font-size: 22px; padding: 8px 12px; } .zb-runde { padding: 0 10px; font-size: 12px; }
}
/* Handy hoch: Anleitung unten, Vorschau oben links (Kamera rechnet mit der Kartenoberkante) */
@media (orientation: portrait) {
  #intro { justify-content: center; align-items: flex-end; padding-bottom: max(12px, var(--sa-b)); }
  #intro .panel { max-width: 560px; max-height: 54%; }
  #vorschau { left: max(12px, var(--sa-l)); transform: none; font-size: 12px; }
}
@media (orientation: portrait) and (max-width: 760px) {
  #intro { padding-left: max(12px, var(--sa-l)); padding-right: max(12px, var(--sa-r)); }
  .i-kopf { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; }
  .i-icon { width: 56px; height: 56px; } .i-icon .ic { width: 42px; height: 42px; }
  .i-kopf .titel { font-size: 27px; margin-top: 4px; }
  .i-kopf .tags { margin-top: 6px; }
  .schritte li { padding: 5px 0; font-size: 13px; }
  #intro .steuer-block { display: none; }
}
/* Touch-Geräte mit Steuerung in der Lobby: unten Platz für Stick und Knöpfe lassen */
@media (pointer: coarse) and (min-height: 520px) {
  #party { align-items: flex-start; padding-top: max(66px, calc(var(--sa-t) + 56px)); }
  .partykarte { max-height: calc(100% - 180px); }
  #toast { bottom: max(176px, calc(var(--sa-b) + 160px)); }
  body:not([data-ph="play"]):not([data-ph="ende"]):not([data-ph="party"]) #toast { bottom: max(24px, var(--sa-b)); }   /* ohne Touch-Tasten unten bleiben */
}
/* niedrig (Handy quer) */
@media (max-height: 520px) {
  .p-kopf { padding: 14px 16px 10px; } .p-inhalt { padding: 2px 16px 10px; } .p-fuss { padding: 10px 16px 12px; }
  .kennzahlen, .marke-kopf .oberzeile { display: none; }
  .marke { width: 40px; height: 40px; } .wortmarke { font-size: 34px; margin: 0; }
  .marke-kopf { padding-bottom: 10px; }
  .titel { font-size: 26px; margin-top: 5px; }
  .abschnitt { margin: 10px 0 8px; }
  label.lab { margin: 10px 0 6px; }
  .btn { min-height: 42px; font-size: 17px; }
  .btn.gross { min-height: 46px; font-size: 19px; }
  .btn.spielen { min-height: 60px; } .sp-icon { width: 40px; height: 40px; } .sp-text b { font-size: 26px; }
  .ausweis { min-height: 60px; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; } .aw-farbe { width: 42px; height: 42px; } .aw-text b { font-size: 21px; } .aw-text small { display: none; }
  .unter { margin-top: 10px; } .fk { padding: 8px 4px 7px; gap: 5px; } .fk i { width: 26px; height: 26px; }
  input[type=text] { height: 42px; }
  .codefeld { height: 46px; } .zellen span { font-size: 24px; }
  .menukarte, .edkarte, .partykarte, .finalkarte { max-width: min(400px, 48vw); }
  .reiter button { padding: 8px 2px 9px; } .reiter button svg { width: 17px; height: 17px; } .reiter { margin-top: 10px; }
  .optionen { gap: 5px; } .opt { min-height: 36px; padding: 6px; }
  .codeblock { margin-top: 10px; padding: 8px 10px; gap: 6px; } .code { font-size: 32px; } .code span { height: 42px; } .code-zeile .kopie { height: 42px; }
  .spieler { min-height: 32px; }
  .einst { padding: 5px 0; }
  .seg button { min-height: 30px; font-size: 15px; }
  #intro .panel { max-width: min(370px, 44vw); }
  .i-kopf { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; padding-bottom: 10px; }
  .i-icon { width: 50px; height: 50px; } .i-icon .ic { width: 38px; height: 38px; }
  .i-kopf .titel { font-size: 24px; margin-top: 3px; } .i-kopf .tags { display: none; }
  .schritte li { padding: 4px 0; font-size: 12.5px; line-height: 1.35; }
  #intro .steuer-block { display: none; }
  .bereitliste { margin: 7px 0 8px; gap: 4px; } .br { height: 22px; padding: 0 5px; } .br .nm { display: none; } .br .st { width: 12px; } .i-zeit { gap: 5px; }
  .scorebug { height: 38px; top: max(8px, var(--sa-t)); }
  .sb-name { font-size: 17px; padding: 0 12px; } .sb-runde span { font-size: 17px; } .sb-runde small { font-size: 8px; }
  .sb-uhr { width: 50px; } .sb-ring { width: 32px; height: 32px; } .uhr { font-size: 18px; }
  .tafel { top: max(8px, var(--sa-t)); left: max(10px, var(--sa-l)); width: 158px; font-size: 11.5px; padding-bottom: 3px; gap: 1px; }
  .tafel .kopf { padding: 5px 8px; margin-bottom: 1px; font-size: 10px; }
  .tafel .z { height: 18px; margin: 0 3px; padding: 0 5px; } .tafel .z b { font-size: 14px; }
  .ansage { top: calc(max(8px, var(--sa-t)) + 46px); font-size: 22px; }
  .ergkarte { max-width: 480px; }
  .ergebnis .z { min-height: 30px; } .ergebnis .pl { font-size: 19px; } .ergebnis .ges { font-size: 18px; } .ergebnis .plus { font-size: 15px; }
  .tabkopf { padding-bottom: 5px; margin-bottom: 4px; }
  .f-sieger { margin-top: 8px; padding: 8px 12px 8px 10px; } .f-sieger b { font-size: 21px; } .f-sieger .pkt { font-size: 26px; } .f-sieger i { height: 30px; }
  .finalkarte .ergebnis .z { min-height: 27px; }
  #stick { width: 116px; height: 116px; left: max(20px, var(--sa-l)); bottom: max(16px, var(--sa-b)); }
  #knopf { width: 50px; height: 50px; margin: -25px 0 0 -25px; } #knopf::after { inset: 14px; }
  .tbtn { --s: 94px; } .tbtn span { font-size: 12px; }
  #tA { right: max(20px, calc(var(--sa-r) + 8px)); bottom: max(16px, var(--sa-b)); }
  #tB { --s: 78px; right: max(126px, calc(var(--sa-r) + 114px)); bottom: max(20px, calc(var(--sa-b) + 4px)); }
  #tC { --s: 56px; right: max(216px, calc(var(--sa-r) + 204px)); bottom: max(24px, calc(var(--sa-b) + 8px)); } #tC span { font-size: 10px; }
  #banner { top: 30%; }
  #vorschau { left: auto; right: max(116px, calc(var(--sa-r) + 104px)); transform: none; }
}
@media (max-height: 520px) and (max-width: 760px) { .scorebug { max-width: calc(100% - 136px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ablauf i { animation: none !important; transform: none; }
  .live-punkt, #vorschau i, .lauf i, .spinner, .ladebalken i, #zahl::after { animation: none !important; }
}

/* Spiele-Auswahl in der Lobby */
.spielwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; padding: 8px 0 10px; border-bottom: 1px solid var(--linie); }
.sw-kopf { grid-column: 1 / -1; display: flex; gap: 6px; }
.sw-kopf button { flex: 1; min-height: 32px; border: 1px solid var(--linie2); border-radius: 7px; background: var(--feld); color: var(--text2); font: 700 13px/1 var(--anzeige); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.sw { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 5px 8px; border: 1px solid var(--linie); border-radius: 8px; background: var(--feld); color: var(--text3); text-align: left; cursor: pointer; font: 600 12.5px/1.15 var(--body); overflow-wrap: anywhere; opacity: .6; transition: opacity .15s, border-color .15s, background-color .15s; }
.sw .ic { flex: 0 0 auto; width: 30px; height: 30px; }
.sw.on { opacity: 1; color: var(--text); border-color: var(--amber); background: rgba(255, 178, 62, .1); }

/* Tester-Modus (nur Admin) */
.tester-link { display: block; margin: 6px auto 0; padding: 2px 8px; border: 0; background: none; color: var(--text3); font: 600 11px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; opacity: .45; cursor: pointer; }
.tester-link.an { color: var(--tuerkis); opacity: .9; }
.tester-dlg { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 16, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tl-box { max-width: 360px; padding: 18px 20px; gap: 10px; }
.tl-box input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--linie2); border-radius: 9px; background: var(--feld); color: var(--text); font: 500 16px/1 var(--body); }
.tl-fehler { margin: 0; color: var(--koralle); font-size: 13px; }
.tl-knoepfe, .ts-knoepfe { display: flex; gap: 8px; } .tl-knoepfe .btn, .ts-knoepfe .btn { flex: 1; min-height: 40px; font-size: 14px; }
.tester-panel { position: fixed; z-index: 30; top: max(70px, var(--sa-t, 0px)); right: max(12px, var(--sa-r)); width: min(330px, calc(100% - 24px)); max-height: calc(100% - 90px); display: flex; flex-direction: column; background: var(--glas); border: 1px solid var(--tuerkis); border-radius: 14px; box-shadow: var(--schatten); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); pointer-events: auto; }
.tester-panel header { display: flex; align-items: center; gap: 10px; padding: 10px 12px 8px 16px; border-bottom: 1px solid var(--linie); }
.tester-panel header b { font: 800 18px/1 var(--anzeige); letter-spacing: .12em; text-transform: uppercase; color: var(--tuerkis); }
.tester-panel header span { flex: 1; font-size: 12px; color: var(--text3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ts-zu { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--feld); color: var(--text2); cursor: pointer; font-size: 15px; }
.ts-inhalt { overflow-y: auto; padding: 6px 14px 14px; touch-action: pan-y; }
.ts-gruppe { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--linie); } .ts-gruppe:last-child { border-bottom: 0; }
.ts-gruppe h4 { margin: 0; font: 700 12px/1 var(--anzeige); letter-spacing: .14em; text-transform: uppercase; color: var(--text3); }
.ts-reihe { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 13px; color: var(--text2); }
.ts-reihe .seg button { min-height: 32px; font-size: 13px; }
.ts-reihe select { min-height: 36px; padding: 0 8px; border: 1px solid var(--linie2); border-radius: 8px; background: var(--feld); color: var(--text); font: 500 14px/1 var(--body); }
.ts-schalter { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 14px; color: var(--text); cursor: pointer; }
.ts-schalter input { width: 20px; height: 20px; accent-color: var(--tuerkis); }
.ts-gruppe > .btn { min-height: 38px; font-size: 14px; }
/* Notizfeld war breiter als das Paneel (Standardbreite des Textfelds) → Knöpfe darunter ragten rechts heraus */
.ts-gruppe textarea { width: 100%; min-width: 0; resize: vertical; padding: 8px 10px; border: 1px solid var(--linie2); border-radius: 8px; background: var(--feld); color: var(--text); font: 500 14px/1.4 var(--body); }
.ts-gruppe > * { min-width: 0; }
@media (pointer: coarse) {
  .tester-link { min-height: 40px; padding: 0 14px; }
  .ts-reihe .seg button { min-height: 40px; } .ts-zu { width: 42px; height: 42px; } .ts-knoepfe .btn, .tl-knoepfe .btn, .ts-gruppe > .btn { min-height: 44px; }
}
/* Spieleranzahl: 7 Knöpfe passen neben dem Namen nur mit 29 px Breite → Knöpfe unter den Namen (volle Breite) */
.einst:has(#s-n) { grid-template-columns: minmax(0, 1fr); gap: 6px; }
#ts-notiz { width: 100%; padding: 8px 10px; border: 1px solid var(--linie2); border-radius: 9px; background: var(--feld); color: var(--text); font: 500 14px/1.4 var(--body); resize: vertical; -webkit-user-select: text; user-select: text; touch-action: auto; }

/* ======================================================================
   Spiel-Look (Wunsch 24.11.2026): wie große Lobby-Spiele (Roblox & Co.) – eigene Umsetzung.
   Dicke, abgerundete Knöpfe mit Kante unten, kräftige Farben, große Spielkarten mit echten Vorschaubildern,
   fette, gut lesbare Schrift, große Touch-Flächen, Symbole nur als SVG (keine Emojis). Ernst, nicht kindlich.
   ====================================================================== */
:root { --kante: #0a0f1e; --gruen: #35c867; --gruen-k: #1d7f3d; --amber-k: #b86e0c; --tuerkis-k: #0f7f74;
  --panel: linear-gradient(180deg, rgba(31, 39, 66, .95), rgba(16, 22, 42, .97)); --karte: linear-gradient(180deg, #252f4d, #161d33); }
.panel { border: 2px solid rgba(243, 238, 228, .14); border-radius: 22px; background: var(--panel); box-shadow: 0 8px 0 rgba(5, 8, 18, .55), 0 26px 60px rgba(3, 6, 16, .55), inset 0 2px 0 rgba(255, 255, 255, .06); }
.panel::before, .ecken { display: none; }
.oberzeile { font: 800 12px/1 var(--body); letter-spacing: .1em; }
.titel { font-style: italic; }
.abschnitt { font: 800 13px/1 var(--body); letter-spacing: .06em; color: var(--text); }
.abschnitt .nr { border: 0; padding: 4px 6px; border-radius: 6px; background: var(--amber); color: #2a1802; font: 800 11px/1 var(--body); }

/* Knöpfe: dick, rund, mit Kante – beim Drücken sinkt der Knopf in die Kante */
.btn { min-height: 52px; padding: 0 20px; border-radius: 14px; border: 2px solid rgba(0, 0, 0, .3); font: 800 17px/1 var(--body); letter-spacing: .005em; text-transform: none;
  box-shadow: 0 5px 0 var(--kante), 0 10px 18px rgba(3, 6, 16, .35), inset 0 2px 0 rgba(255, 255, 255, .2); transition: transform .08s, box-shadow .08s, filter .15s, background-color .15s; }
.btn:active:not([disabled]) { transform: translateY(4px); box-shadow: 0 1px 0 var(--kante), 0 4px 8px rgba(3, 6, 16, .35), inset 0 2px 0 rgba(255, 255, 255, .2); }
.btn.haupt { color: #2a1802; background: linear-gradient(180deg, #ffd27a, #ffb23e 60%, #f59a1d); border-color: rgba(120, 60, 0, .45); box-shadow: 0 5px 0 var(--amber-k), 0 12px 22px -6px rgba(255, 178, 62, .5), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn.haupt:hover:not([disabled]) { filter: brightness(1.06); box-shadow: 0 5px 0 var(--amber-k), 0 12px 24px -6px rgba(255, 178, 62, .7), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn.haupt:active:not([disabled]) { box-shadow: 0 1px 0 var(--amber-k), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn.haupt.gruen { color: #fff; background: linear-gradient(180deg, #62e38e, #35c867 60%, #26ae55); border-color: rgba(10, 70, 30, .5); text-shadow: 0 2px 0 rgba(10, 70, 30, .5); box-shadow: 0 5px 0 var(--gruen-k), 0 12px 22px -6px rgba(53, 200, 103, .55), inset 0 2px 0 rgba(255, 255, 255, .45); }
.btn.haupt.gruen:active:not([disabled]) { box-shadow: 0 1px 0 var(--gruen-k), inset 0 2px 0 rgba(255, 255, 255, .45); }
.btn.haupt.tuerkis { color: #032622; background: linear-gradient(180deg, #5ee8da, #27d3c3 60%, #17b5a6); border-color: rgba(0, 60, 55, .5); box-shadow: 0 5px 0 var(--tuerkis-k), 0 12px 22px -6px rgba(39, 211, 195, .5), inset 0 2px 0 rgba(255, 255, 255, .45); }
.btn.zweit { color: var(--weiss); background: linear-gradient(180deg, #36425f, #262f4b); border-color: rgba(0, 0, 0, .35); }
.btn.zweit:hover:not([disabled]) { background: linear-gradient(180deg, #3e4b6e, #2b3554); border-color: rgba(0, 0, 0, .35); }
.btn.zweit.on, .btn.zweit[aria-expanded="true"] { color: #032622; background: linear-gradient(180deg, #5ee8da, #22c4b4); border-color: rgba(0, 60, 55, .5); box-shadow: 0 5px 0 var(--tuerkis-k), inset 0 2px 0 rgba(255, 255, 255, .4); }
.btn[disabled] { opacity: .6; filter: saturate(.5); }
.btn.gross { min-height: 60px; font-size: 20px; }
.btn .bi { width: 21px; height: 21px; }
.btn.spielen { min-height: 80px; }
.sp-icon { width: 54px; height: 54px; background: rgba(8, 60, 26, .55); color: #fff; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), 0 3px 0 rgba(8, 60, 26, .5); }
.sp-text b { font: italic 800 36px/.9 var(--anzeige); letter-spacing: .03em; text-transform: uppercase; }
.sp-text small { color: rgba(255, 255, 255, .9); font-weight: 700; text-shadow: none; }
.mini { width: 40px; height: 40px; border-radius: 12px; border: 2px solid rgba(0, 0, 0, .35); background: linear-gradient(180deg, #36425f, #262f4b); color: #fff; box-shadow: 0 3px 0 var(--kante); }
.mini:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--kante); }
.code-zeile .kopie { width: 48px; }
.seg { padding: 4px 4px 7px; gap: 5px; border-radius: 14px; background: rgba(5, 9, 22, .55); border: 2px solid rgba(243, 238, 228, .07); }
.seg button { min-height: 40px; border-radius: 10px; font: 800 15px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--text2); background: rgba(243, 238, 228, .05); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.seg button.on { color: #2a1802; background: linear-gradient(180deg, #ffd27a, #ffb23e); box-shadow: 0 3px 0 var(--amber-k), inset 0 2px 0 rgba(255, 255, 255, .5); }
.seg button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.einst { grid-template-columns: 118px minmax(0, 1fr); padding: 10px 0; }
.einst-name { font: 800 14px/1.1 var(--body); letter-spacing: 0; text-transform: none; }

/* Ecke oben rechts: Ton / Verlassen */
.ecke { gap: 10px; }
.rund { width: 54px; height: 54px; border-radius: 16px; border: 2px solid rgba(0, 0, 0, .35); color: #fff; background: linear-gradient(180deg, #36425f, #232c48); box-shadow: 0 4px 0 var(--kante), 0 10px 20px rgba(3, 6, 16, .4), inset 0 2px 0 rgba(255, 255, 255, .14); -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform .08s, box-shadow .08s, filter .15s; }
.rund:hover { color: #fff; border-color: rgba(0, 0, 0, .35); filter: brightness(1.1); }
.rund:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--kante), inset 0 2px 0 rgba(255, 255, 255, .14); }
.rund svg { width: 25px; height: 25px; }
.rund svg [stroke-width] { stroke-width: 2.6; }
.rund.raus, #b-raus:hover { color: #fff; background: linear-gradient(180deg, #ff7a6e, #e4463a); border-color: rgba(90, 10, 5, .45); box-shadow: 0 4px 0 #8f2017, 0 10px 20px rgba(3, 6, 16, .4), inset 0 2px 0 rgba(255, 255, 255, .3); }
.rund.raus:active { box-shadow: 0 1px 0 #8f2017, inset 0 2px 0 rgba(255, 255, 255, .3); }
.ts-zu { display: grid; place-items: center; } .ts-zu svg { width: 16px; height: 16px; }

/* Listen, Marken, Felder etwas kräftiger */
.spieler { min-height: 46px; border-radius: 12px; border-width: 2px; background: rgba(243, 238, 228, .05); font-weight: 700; }
.spieler .balken { width: 6px; height: 26px; border-radius: 3px; }
.tag { height: 24px; padding: 0 9px; border-radius: 8px; border-width: 2px; font: 800 11px/1 var(--body); letter-spacing: .04em; }
.ausweis, .codeblock, .oeffblock, #joinbox, .f-sieger { border-radius: 16px; border-width: 2px; }
.code span, .zellen span { border-radius: 12px; border-width: 2px; }
.opt { min-height: 46px; border-radius: 12px; border-width: 2px; font-weight: 700; }
.fk { border-radius: 14px; border-width: 2px; }
.reiter button { font: 800 15px/1 var(--body); letter-spacing: .01em; text-transform: none; }
.unter { padding: 4px; border-radius: 13px; }
.unter button { min-height: 38px; border-radius: 9px; font: 800 13.5px/1 var(--body); letter-spacing: 0; text-transform: none; }
.unter button.on { color: #2a1802; background: linear-gradient(180deg, #ffd27a, #ffb23e); box-shadow: 0 3px 0 var(--amber-k); }
.ergebnis .z { min-height: 46px; border-radius: 12px; border-width: 2px; }
.br { height: 30px; border-radius: 999px; border-width: 2px; font-weight: 700; }
.steuer div { border-radius: 12px; border-width: 2px; }
.steuer .tsym { width: 26px; height: 26px; border: 0; background: currentColor; }
.steuer .tsym svg { width: 14px; height: 14px; color: #1b1204; }
.tafel, .scorebug, .ansage, #toast, #vorschau, #zuschauer { border-width: 2px; }
.tafel { border-radius: 16px; }
.scorebug { height: 54px; border-radius: 16px; box-shadow: 0 5px 0 rgba(5, 8, 18, .6), var(--schatten); }
#toast { border-radius: 14px; font-weight: 700; }

/* ---------- Spielkarten mit Vorschaubild (Abstimmung) ---------- */
.sk-bild img, .i-bild img, .r-foto img, .wk-bild img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.sk-bild.ohne, .i-bild.ohne, .r-foto.ohne, .wk-bild.ohne { display: grid; place-items: center; background: radial-gradient(70% 90% at 50% 100%, rgba(255, 178, 62, .25), transparent 70%), #141b31; }

/* ---------- Spielkarten-Gitter (Auswahl-Blatt, „Alle Spiele“ in der Abstimmung) ---------- */
.spielgitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); grid-auto-rows: max-content; gap: 16px; align-content: start; }
.sk { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; text-align: left; cursor: pointer; color: var(--text); background: var(--karte); border: 3px solid rgba(243, 238, 228, .14); border-radius: 18px; overflow: hidden;
  box-shadow: 0 6px 0 rgba(5, 8, 18, .75), 0 14px 26px rgba(3, 6, 16, .4); touch-action: pan-y; transition: transform .1s, border-color .15s, box-shadow .1s; }
.sk:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(5, 8, 18, .75), 0 8px 16px rgba(3, 6, 16, .4); }
.sk:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 2px; }
.sk-bild { position: relative; display: block; flex: none; aspect-ratio: 16 / 9; background: #0d1326; overflow: hidden; }
.sk-bild img { transition: filter .2s, transform .3s var(--ease); }
.sk-bild.ohne .ic { width: 64px; height: 64px; }
.sk-text { display: grid; gap: 5px; padding: 10px 12px 13px; }
.sk-text b { font: italic 800 23px/1 var(--anzeige); letter-spacing: .02em; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk-text small { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk-art { justify-self: start; padding: 4px 8px; border-radius: 7px; background: rgba(255, 90, 78, .22); color: #ffaaa2; font: 800 10.5px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.sk-art.host { background: rgba(39, 211, 195, .2); color: #8de9df; }
.sk-haken { position: absolute; z-index: 1; right: 10px; top: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: transparent; background: rgba(13, 19, 38, .82); border: 3px solid rgba(255, 255, 255, .7); box-shadow: 0 3px 0 rgba(0, 0, 0, .4); transition: background-color .15s, color .15s; }
.sk-haken svg { width: 22px; height: 22px; }
.sk.on { border-color: var(--gruen); box-shadow: 0 6px 0 var(--gruen-k), 0 0 0 3px rgba(53, 200, 103, .22), 0 14px 26px rgba(3, 6, 16, .4); }
.sk.on .sk-haken { color: #fff; background: var(--gruen); border-color: #fff; }
#wb-gitter .sk:not(.on) .sk-bild img { filter: grayscale(.85) brightness(.5); }
#wb-gitter .sk:not(.on) .sk-text { opacity: .6; }

/* Auswahl-Blatt über der ganzen Bühne */
.blatt { position: fixed; inset: 0; z-index: 9; display: flex; align-items: center; justify-content: center; padding: max(14px, var(--sa-t)) max(14px, var(--sa-r)) max(14px, var(--sa-b)) max(14px, var(--sa-l)); background: rgba(3, 6, 16, .62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); touch-action: none; animation: blende .2s var(--ease) both; }
@keyframes blende { from { opacity: 0; } }
.blatt-box { display: flex; flex-direction: column; width: min(1020px, 100%); max-height: 100%; min-height: 0; border-radius: 24px; background: var(--panel); border: 2px solid rgba(243, 238, 228, .14); box-shadow: 0 8px 0 rgba(5, 8, 18, .6), 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden; animation: rein .25s var(--ease) both; }
.blatt-kopf { display: flex; align-items: center; gap: 14px; padding: 20px 20px 12px 24px; }
.blatt-titel { flex: 1; min-width: 0; }
.blatt-kopf .titel { font-size: 36px; margin-top: 6px; }
.wb-zahl { padding: 9px 14px; border-radius: 12px; border: 2px solid rgba(53, 200, 103, .55); background: rgba(53, 200, 103, .16); color: #8ff0b0; font: 800 16px/1 var(--body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wb-zahl.leer { border-color: rgba(255, 178, 62, .55); background: rgba(255, 178, 62, .14); color: var(--amber2); }
.blatt-werkzeug { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0 24px 16px; }
.blatt-werkzeug .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.blatt-werkzeug span { font-size: 13px; font-weight: 600; color: var(--text2); }
#wb-gitter { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 24px 20px; touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.blatt-fuss { display: flex; justify-content: flex-end; padding: 14px 24px 20px; border-top: 2px solid rgba(243, 238, 228, .06); background: rgba(5, 9, 22, .35); }
.blatt-fuss .btn { min-width: 240px; }

/* Knopf in der Lobby, der das Blatt öffnet */
.wahlknopf { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 6px; padding: 10px 14px 10px 10px; border-radius: 16px; border: 2px solid rgba(53, 200, 103, .5); background: linear-gradient(180deg, rgba(53, 200, 103, .18), rgba(53, 200, 103, .06)); color: var(--text); cursor: pointer; text-align: left; box-shadow: 0 4px 0 rgba(5, 8, 18, .6); transition: transform .08s, box-shadow .08s; }
.wahlknopf:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(5, 8, 18, .6); }
.wk-bilder { display: flex; flex: none; }
.wk-bild { display: block; width: 56px; height: 56px; border-radius: 13px; overflow: hidden; border: 3px solid #1b2238; background: #0d1326; }
.wk-bild + .wk-bild { margin-left: -24px; }
.wk-bild.ohne .ic { width: 34px; height: 34px; }
.wk-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.wk-text b { font: 800 17px/1 var(--body); }
.wk-text small { font-size: 12.5px; font-weight: 600; color: var(--text2); }
.wahlknopf > .bi { width: 24px; height: 24px; color: #8ff0b0; }

/* Abstimmung: „Alle Spiele“ als großes Kartengitter */

/* ---------- Abstimmung: dieselbe Foto-Übersicht wie das Auswahl-Blatt ---------- */
#vote { padding: max(12px, var(--sa-t)) max(12px, var(--sa-r)) max(12px, var(--sa-b)) max(12px, var(--sa-l)); }
.v-box { width: min(1240px, 100%); max-height: 100%; }
#vote .v-kopf { padding-right: 150px; }   /* oben rechts liegen Ton / Verlassen */
.v-kopf .oberzeile { gap: 10px; }
.v-marke { padding: 6px 10px; border-radius: 8px; background: var(--amber); color: #1b1204; letter-spacing: .12em; }
#v-runde { color: var(--text2); letter-spacing: .14em; }
.v-kopf .titel { font-size: 36px; margin-top: 8px; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-stand { flex: none; }
.zeitbalken { flex: none; height: 10px; margin: 0 24px 12px; border-radius: 6px; background: rgba(5, 9, 22, .6); border: 2px solid rgba(243, 238, 228, .1); overflow: hidden; }
.zeitbalken i { display: block; height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--koralle), var(--amber)); transition: width .25s linear; }
.v-gitter { flex: 0 1 auto; min-height: 0; overflow: hidden; padding: 6px 24px 14px; justify-content: center; align-content: center; touch-action: pan-y; overscroll-behavior: contain; }
.v-gitter.scroll { overflow-y: auto; align-content: start; -webkit-overflow-scrolling: touch; }
.v-unten { flex: none; align-items: center; justify-content: space-between; gap: 14px; }
.v-fuss { flex: 1; min-width: 0; margin: 0; font-size: 14px; font-weight: 700; color: var(--text2); }
.v-alle { flex: none; min-height: 50px; padding: 0 18px; font-size: 15.5px; }
#vote.alle .v-fuss { color: var(--amber2); }
/* Karte */
.vs .sk-text { padding: 9px 12px 11px; }
.vs .sk-art { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Meldungen während der Abstimmung unten im Fuß statt mitten über den Karten */
body[data-ph="vote"] #toast, body[data-ph="pick"] #toast { bottom: max(14px, var(--sa-b)); }
.vs:hover, .v-liste .sk:hover { border-color: rgba(255, 178, 62, .7); }
.vs-foto { position: relative; display: block; flex: none; }
.vs-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 19, 38, .2), transparent 28%, transparent 58%, rgba(8, 12, 26, .82)); pointer-events: none; }
.vs-nr { position: absolute; z-index: 1; left: 10px; top: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(13, 19, 38, .85); border: 2px solid rgba(255, 255, 255, .3); color: #fff; font: 800 17px/1 var(--body); }
.vs-stimmen { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 9px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.stimmen { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.stimmen i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 -3px 4px rgba(0, 0, 0, .25), 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .5); animation: stimme .3s var(--ease) both; }
.stimmen i.ich { box-shadow: inset 0 -3px 4px rgba(0, 0, 0, .25), 0 0 0 3px var(--gruen), 0 0 0 5px #fff; }
@keyframes stimme { from { transform: scale(0); } }
.vs-zahl { flex: none; display: flex; align-items: baseline; gap: 5px; padding: 6px 10px; border-radius: 11px; background: rgba(13, 19, 38, .88); border: 2px solid rgba(255, 255, 255, .3); color: #fff; font: 800 22px/1 var(--body); font-variant-numeric: tabular-nums; }
.vs-zahl small { font: 800 10.5px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--text2); }
.vs-zahl.null { color: var(--text3); }
.vs.on .vs-zahl { background: var(--gruen); border-color: #fff; } .vs.on .vs-zahl small { color: #eafff0; }
.vs-sieg { position: absolute; z-index: 2; left: 50%; top: 50%; display: none; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 3px solid #fff; background: var(--amber); color: #2a1802; font: italic 800 24px/1 var(--anzeige); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; box-shadow: 0 4px 0 var(--amber-k), 0 10px 24px rgba(0, 0, 0, .45); transform: translate(-50%, -50%); }
.vs-sieg svg { width: 20px; height: 20px; }
.vs.sieg { border-color: var(--amber); box-shadow: 0 6px 0 var(--amber-k), 0 0 0 4px rgba(255, 178, 62, .35), 0 0 50px -4px rgba(255, 178, 62, .7); animation: sieg .7s var(--ease) both; }
.vs.sieg .vs-sieg { display: flex; }
.vs.raus { opacity: .35; filter: grayscale(.85); transform: scale(.96); transition: opacity .3s, filter .3s, transform .3s; }
#vote:not(.darf) .vs { cursor: default; }
.v-liste .sk-haken { display: none; }

/* ---------- Anleitung: großes Bild oben ---------- */
.i-kopf { display: block; position: relative; padding: 0; border-bottom: 0; }
.i-bild { position: relative; display: block; aspect-ratio: 16 / 8; background: #0d1326; overflow: hidden; }
.i-bild::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(17, 23, 44, .98)); }
.i-bild.ohne .ic { width: 76px; height: 76px; }
.i-titel { position: relative; z-index: 1; margin-top: -70px; padding: 0 22px 14px; }
.i-titel .titel { font-size: 38px; text-shadow: 0 3px 14px rgba(0, 0, 0, .55); }
.i-kopf .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- Ergebnis: Bild des Spiels im Kopf ---------- */
.r-kopf { display: flex; align-items: center; gap: 16px; }
.r-bild { flex: none; width: 132px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 3px solid rgba(243, 238, 228, .18); box-shadow: 0 4px 0 rgba(5, 8, 18, .6); background: #0d1326; }
.r-bild:empty { display: none; }
.r-foto { display: block; width: 100%; height: 100%; }
.r-foto.ohne .ic { width: 46px; height: 46px; }

/* ---------- Anpassungen ---------- */
@media (max-width: 760px) {
  .blatt-kopf .titel { font-size: 28px; }
  .blatt-fuss .btn { flex: 1; min-width: 0; }
  .spielgitter { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 12px; }
}
@media (max-width: 520px) {
  .tbtn { --s: 94px; }
  #tB { --s: 78px; right: max(134px, calc(var(--sa-r) + 118px)); }
  #tC { --s: 58px; right: max(46px, calc(var(--sa-r) + 30px)); bottom: max(138px, calc(var(--sa-b) + 122px)); }
  #stick { width: 120px; height: 120px; }
  .blatt-werkzeug span { display: none; }
  .r-bild { width: 96px; }
}
@media (orientation: portrait) and (max-width: 760px) { .i-bild { aspect-ratio: 16 / 6; } .i-titel { margin-top: -46px; } .i-titel .titel { font-size: 28px; } }
@media (max-height: 520px) {
  .btn { min-height: 44px; font-size: 15.5px; } .btn.gross { min-height: 50px; font-size: 18px; }
  .btn.spielen { min-height: 62px; } .sp-text b { font-size: 28px; } .sp-icon { width: 42px; height: 42px; }
  .seg button { min-height: 34px; font-size: 14px; }
  .rund { width: 46px; height: 46px; border-radius: 14px; } .rund svg { width: 21px; height: 21px; }
  .spieler { min-height: 36px; } .einst { padding: 6px 0; }
  .blatt-kopf { padding: 12px 14px 8px 18px; } .blatt-kopf .titel { font-size: 26px; margin-top: 4px; }
  .blatt-werkzeug { padding: 0 18px 10px; } .blatt-werkzeug span { display: none; } .blatt-werkzeug .btn { min-height: 38px; }
  #wb-gitter { padding: 4px 18px 12px; } .blatt-fuss { padding: 10px 18px 12px; }
  .spielgitter { grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 12px; }
  .sk-text { padding: 7px 10px 9px; } .sk-text b { font-size: 19px; } .sk-text small { display: none; }
  .i-bild { aspect-ratio: 16 / 6; } .i-titel { margin-top: -42px; padding: 0 16px 10px; } .i-titel .titel { font-size: 26px; } .i-kopf .tags { display: none; }
  .r-bild { width: 90px; border-radius: 11px; }
  .wk-bild { width: 44px; height: 44px; } .wahlknopf { margin: 8px 0 4px; padding: 7px 10px 7px 7px; }
  .scorebug { height: 42px; border-radius: 13px; }
  /* rechts mittig liegt auf der Website der Vollbild-Knopf (.pb-full) – Blatt und Kartengitter lassen ihn frei */
.blatt { padding-right: max(70px, calc(var(--sa-r) + 58px)); }
}

/* Eingebettet in die Infoseite: rechts mittig liegt der Vollbild-Knopf der Website (.pb-full) – Blatt und Abstimmung lassen ihn frei */
.im-rahmen .blatt, .im-rahmen #vote { padding-right: max(70px, calc(var(--sa-r) + 58px)); }
.im-rahmen #vote .v-kopf { padding-right: 70px; }
/* niedrige Bildschirme (Handy quer, eingebettet): Abstimmung kompakt */
@media (max-height: 560px) {
  .v-box { border-radius: 18px; }
  #vote .v-kopf { padding-top: 10px; padding-bottom: 6px; padding-left: 18px; } .v-kopf .titel { font-size: 24px; margin-top: 4px; } .v-kopf .oberzeile { font-size: 11px; } .v-marke { padding: 4px 7px; }
  .v-stand { padding: 6px 10px; font-size: 13px; }
  .zeitbalken { height: 7px; margin: 0 18px 6px; }
  .v-gitter { padding: 4px 18px 8px; gap: 10px; }
  .vs .sk-text { padding: 5px 9px 7px; gap: 3px; } .vs .sk-text b { font-size: 17px; } .vs .sk-art { font-size: 9.5px; padding: 3px 6px; }
  .stimmen i { width: 15px; height: 15px; } .vs-zahl { font-size: 16px; padding: 4px 7px; border-radius: 8px; } .vs-zahl small { display: none; }
  .vs-sieg { font-size: 17px; padding: 6px 11px; } .vs-sieg svg { width: 15px; height: 15px; }
  .sk-haken { width: 30px; height: 30px; right: 7px; top: 7px; } .sk-haken svg { width: 17px; height: 17px; }
  .v-unten { padding: 6px 18px 8px; } .v-fuss { font-size: 12.5px; } .v-alle { min-height: 42px; font-size: 14px; }
}
@media (max-width: 760px) {
  #vote .v-kopf { padding-right: 120px; } .v-kopf .titel { font-size: 28px; }
  .v-fuss { display: none; } .v-unten { justify-content: center; } .v-alle { flex: 1; } #vote:not(.host) .v-unten { display: none; }
}


/* Meldungen (Toast) in Phasen mit Paneel links (Menü, Studio, Lobby, Anleitung): oben rechts unter Ton/Verlassen,
   statt unten mittig über „Party starten“ / „Ich bin bereit“ */
body[data-ph="menu"] #toast, body[data-ph="party"] #toast, body[data-ph="intro"] #toast, body[data-ph="warte"] #toast {
  top: max(76px, calc(var(--sa-t) + 64px)); bottom: auto; left: auto; right: max(16px, var(--sa-r)); transform: none; max-width: max(220px, min(400px, calc(100vw - 480px))); }
/* Siegerehrung: Paneel rechts – oben Platz für Ton/Verlassen lassen */
#final { padding-top: max(76px, calc(var(--sa-t) + 64px)); }
.im-rahmen #final { padding-right: max(70px, calc(var(--sa-r) + 58px)); }
@media (max-height: 520px) { #final { padding-top: max(66px, calc(var(--sa-t) + 56px)); } }
/* iPad hochkant: Spiel-Ansage lag über der Tabelle „Stand“ → rechts neben die Tabelle, darf umbrechen */
@media (orientation: portrait) and (max-width: 1000px) and (min-width: 761px) {
  .ansage { left: calc(max(14px, var(--sa-l)) + 226px); right: max(12px, var(--sa-r)); transform: none; justify-content: center; white-space: normal; text-align: center; font-size: 22px; line-height: 1.1; }
}
/* Spiel ohne Sprung (Zuckerkeks): Aktion-Taste rückt an die Stelle der Sprung-Taste */
#tA[hidden] + #tB { right: max(28px, calc(var(--sa-r) + 12px)); }
/* Siegerehrung (Paneel rechts) und Ergebnis: Meldungen oben links statt über den Knöpfen */
body[data-ph="final"] #toast, body[data-ph="result"] #toast { top: max(16px, var(--sa-t)); bottom: auto; left: max(16px, var(--sa-l)); transform: none; max-width: max(220px, min(400px, calc(100vw - 480px))); }

/* ======================================================================
   Team-Wahl (js/30b-teamwahl.js): zwei beleuchtete Podest-Felder, links Rot, rechts Grün
   ====================================================================== */
#team { padding: max(12px, var(--sa-t)) max(12px, var(--sa-r)) max(12px, var(--sa-b)) max(12px, var(--sa-l)); background: radial-gradient(120% 90% at 50% 40%, rgba(3, 6, 16, .25), rgba(3, 6, 16, .7)); }
.tw-box { display: flex; flex-direction: column; width: min(1060px, 100%); max-height: 100%; min-height: 0; border-radius: 24px; background: var(--panel); border: 2px solid rgba(243, 238, 228, .14);
  box-shadow: 0 8px 0 rgba(5, 8, 18, .6), 0 30px 80px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 255, 255, .06); overflow: hidden; animation: rein .32s var(--ease) both; }
.tw-kopf { flex: none; display: grid; justify-items: center; gap: 4px; padding: 16px 150px 8px; text-align: center; }
.tw-kopf .oberzeile { gap: 10px; flex-wrap: wrap; justify-content: center; }
.tw-marke { padding: 6px 10px; border-radius: 8px; background: var(--amber); color: #1b1204; letter-spacing: .12em; }
#tw-runde, .tw-sp { color: var(--text2); letter-spacing: .14em; }
.tw-sp::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--text3); vertical-align: middle; }
.tw-format { display: flex; align-items: baseline; justify-content: center; gap: .28em; margin: 2px 0 0; font: italic 800 62px/.95 var(--anzeige); text-transform: uppercase; letter-spacing: .01em; }
.tw-format b { font-weight: 800; font-size: 1.12em; }
.tw-format b.t0 { color: #ff7b7f; text-shadow: 0 0 22px rgba(229, 72, 77, .55), 0 4px 0 #6e1418; }
.tw-format b.t1 { color: #74e59a; text-shadow: 0 0 22px rgba(63, 191, 107, .5), 0 4px 0 #14592c; }
.tw-format b:not([class]) { color: #fff; text-shadow: 0 4px 0 rgba(5, 8, 18, .8); }
.tw-format span { font-size: .62em; color: var(--text); text-shadow: 0 3px 0 rgba(5, 8, 18, .8); }
.tw-unter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; font: 700 16px/1.2 var(--body); color: var(--text2); }
.tw-unter .wb-zahl { padding: 6px 11px; font-size: 14px; }
.tw-zeitreihe { flex: none; display: flex; align-items: center; gap: 10px; margin: 4px 24px 12px; }
.tw-zeitreihe .zeitbalken { flex: 1; margin: 0; }
.tw-sek { flex: none; min-width: 34px; font: 800 18px/1 var(--anzeige); color: var(--amber2); text-align: right; font-variant-numeric: tabular-nums; }
#team.fertig .tw-sek { min-width: 0; }

.tw-felder { flex: 1 1 auto; min-height: 0; display: flex; gap: 14px; padding: 0 24px 14px; }
.tw-feld { --tf: #e5484d; --tl: rgba(255, 110, 114, .5); --tg: rgba(229, 72, 77, .2); --tk: #7c1a20; --th: #ffb0b2;
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-radius: 20px; cursor: pointer; overflow: hidden; isolation: isolate;
  border: 3px solid rgba(229, 72, 77, .45);
  background: radial-gradient(90% 60% at 50% 0%, var(--tl), transparent 70%), linear-gradient(180deg, #2a1d2b 0%, #171a2e 60%, #0f1428 100%);
  box-shadow: 0 6px 0 rgba(5, 8, 18, .65), 0 18px 34px rgba(3, 6, 16, .4), inset 0 2px 0 rgba(255, 255, 255, .08);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .25s; }
.tw-feld.t1 { --tf: #3fbf6b; --tl: rgba(98, 226, 140, .42); --tg: rgba(63, 191, 107, .2); --tk: #14592c; --th: #b4f2c7; border-color: rgba(63, 191, 107, .45);
  background: radial-gradient(90% 60% at 50% 0%, var(--tl), transparent 70%), linear-gradient(180deg, #1a2a2a 0%, #151d2e 60%, #0f1428 100%); }
.tw-feld:hover { transform: translateY(-2px); }
.tw-feld:active { transform: translateY(3px); }
.tw-feld.meins { border-color: var(--tf); box-shadow: 0 6px 0 var(--tk), 0 0 0 4px var(--tg), 0 0 46px var(--tg), inset 0 2px 0 rgba(255, 255, 255, .12); }
.tw-feld.voll:not(.meins) { cursor: default; }
.tw-feld.voll:not(.meins) .tw-licht { opacity: .45; }
/* Scheinwerfer-Kegel von oben und leuchtendes Podest unten */
.tw-licht { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 78%); clip-path: polygon(40% 0, 60% 0, 96% 100%, 4% 100%); transition: opacity .3s; animation: twLicht 5s ease-in-out infinite; }
.tw-feld.t1 .tw-licht { animation-delay: -2.5s; }
@keyframes twLicht { 50% { opacity: .65; } }
.tw-podest { position: absolute; left: 6%; right: 6%; bottom: -26px; height: 52px; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, var(--tl), transparent); }
.tw-oben { flex: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px 10px; }
.tw-wappen { flex: none; width: 78px; height: 90px; filter: drop-shadow(0 6px 0 rgba(5, 8, 18, .5)) drop-shadow(0 0 18px var(--tg)); animation: twSchwebe 3.6s ease-in-out infinite; }
.tw-feld.t1 .tw-wappen { animation-delay: -1.8s; }
@keyframes twSchwebe { 50% { transform: translateY(-4px); } }
.tw-name { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tw-name small { font: 800 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--th); opacity: .85; }
.tw-name b { font: italic 800 46px/.95 var(--anzeige); text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 var(--tk), 0 0 24px var(--tg); }
.tw-zahl { flex: none; display: grid; justify-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(5, 9, 22, .55); border: 2px solid rgba(255, 255, 255, .12); font: 800 24px/1 var(--anzeige); color: #fff; font-variant-numeric: tabular-nums; }
.tw-zahl small { font: 800 10.5px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--th); }
.tw-feld.voll .tw-zahl { border-color: var(--tf); }
.tw-plaetze { flex: 1 1 auto; min-height: 0; display: grid; align-content: start; gap: 8px; padding: 4px 16px 22px; }
.tw-platz { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 5px 10px 5px 8px; border-radius: 14px; background: rgba(5, 9, 22, .55); border: 2px solid rgba(255, 255, 255, .1); animation: twRein .28s var(--ease) both; }
@keyframes twRein { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.tw-platz.leer { background: transparent; border: 2px dashed rgba(255, 255, 255, .16); animation: none; color: var(--text3); }
.tw-platz.ok { border-color: var(--tf); background: linear-gradient(90deg, var(--tg), rgba(5, 9, 22, .55) 70%); }
.tw-platz.ich { box-shadow: 0 0 0 2px var(--amber); }
.tw-bohne { flex: none; width: 34px; height: 42px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
.tw-loch { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .18); }
.tw-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 17px/1.1 var(--body); }
.tw-platz.leer .tw-nm { font-weight: 700; font-size: 14px; }
.tw-ok { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .25); color: #fff; }
.tw-platz.ok .tw-ok { border: 2px solid #fff; background: var(--tf); box-shadow: 0 0 14px var(--tg); animation: twHaken .35s var(--ease) both; }
.tw-ok svg { width: 19px; height: 19px; }
@keyframes twHaken { from { transform: scale(.4); } }
.tw-mitte { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px 4px; border-radius: 18px; background: rgba(5, 9, 22, .4); border: 2px dashed rgba(255, 255, 255, .12); }
.tw-mitte small { font: 800 11px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--text3); text-align: center; }
.tw-wartet { display: grid; justify-items: center; gap: 2px; max-width: 100%; animation: twWippe 1.4s ease-in-out infinite; }
.tw-wartet:nth-child(odd) { animation-delay: -.7s; }
.tw-wartet span { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12.5px/1.1 var(--body); color: var(--text2); }
.tw-wartet.ich span { color: var(--amber2); }
@keyframes twWippe { 50% { transform: translateY(-3px); } }
.tw-mitte.viele { display: grid; grid-template-columns: repeat(2, auto); align-content: center; justify-content: center; column-gap: 6px; }
.tw-mitte.viele small { grid-column: 1 / -1; }

.tw-fuss { flex: none; display: grid; justify-items: center; gap: 8px; padding: 12px 24px 16px; border-top: 2px solid rgba(243, 238, 228, .06); background: rgba(5, 9, 22, .35); }
.tw-steuer { display: flex; align-items: stretch; justify-content: center; gap: 12px; width: min(720px, 100%); }
.tw-ok-knopf { flex: 1 1 auto; min-width: 0; max-width: 300px; }
.tw-pfeil { flex: 0 1 190px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 84px; min-height: 60px; padding: 0 16px; border-radius: 16px; cursor: pointer;
  font: italic 800 22px/1 var(--anzeige); letter-spacing: .04em; text-transform: uppercase; color: #fff; border: 2px solid rgba(0, 0, 0, .35);
  background: linear-gradient(180deg, #f0686c, #d63a40 60%, #b92d33); box-shadow: 0 5px 0 #6e1418, 0 12px 22px -8px rgba(229, 72, 77, .6), inset 0 2px 0 rgba(255, 255, 255, .35); text-shadow: 0 2px 0 rgba(80, 10, 14, .5);
  transition: transform .08s, box-shadow .08s, filter .15s, opacity .15s; }
.tw-pfeil.t1 { background: linear-gradient(180deg, #62dd8b, #35b862 60%, #27994f); box-shadow: 0 5px 0 #14592c, 0 12px 22px -8px rgba(63, 191, 107, .6), inset 0 2px 0 rgba(255, 255, 255, .35); text-shadow: 0 2px 0 rgba(10, 60, 30, .5); }
.tw-pfeil svg { width: 30px; height: 30px; flex: none; }
.tw-pfeil svg [stroke-width] { stroke-width: 3; }
.tw-pfeil svg.links { transform: scaleX(-1); }
.tw-pfeil:active:not([disabled]) { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .3); }
.tw-pfeil[disabled] { cursor: default; filter: grayscale(1) brightness(.6); opacity: .55; box-shadow: 0 3px 0 rgba(5, 8, 18, .6); }
.tw-pfeil:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 2px; }
.tw-hilfe { margin: 0; font: 600 13px/1.4 var(--body); color: var(--text3); text-align: center; }
.tw-hilfe kbd { margin: 0 1px; }
#team.fertig .tw-feld { cursor: default; }
#team.fertig .tw-feld.alle { animation: twPuls 1s ease-in-out infinite; }
@keyframes twPuls { 50% { box-shadow: 0 6px 0 var(--tk), 0 0 0 5px var(--tg), 0 0 60px var(--tl); } }
.im-rahmen #team { padding-right: max(70px, calc(var(--sa-r) + 58px)); }

/* schmal (Handy hochkant, kleines Fenster) */
@media (max-width: 760px) {
  .tw-kopf { padding: 14px 112px 6px 16px; justify-items: start; text-align: left; }
  .tw-kopf .oberzeile, .tw-format, .tw-unter { justify-content: flex-start; }
  .tw-format { font-size: 48px; }
  .tw-felder { gap: 8px; padding: 0 12px 10px; }
  .tw-zeitreihe { margin: 4px 14px 10px; }
  .tw-oben { flex-direction: column; gap: 6px; padding: 12px 8px 6px; text-align: center; }
  .tw-name { justify-items: center; }
  .tw-name b { font-size: 34px; }
  .tw-wappen { width: 58px; height: 68px; }
  .tw-zahl { padding: 5px 10px; font-size: 19px; }
  .tw-plaetze { padding: 4px 8px 18px; gap: 6px; }
  .tw-platz { min-height: 44px; gap: 6px; padding: 4px 6px; }
  .tw-bohne { width: 26px; height: 33px; } .tw-loch { width: 26px; height: 26px; }
  .tw-nm { font-size: 14.5px; } .tw-platz .tag { display: none; }
  .tw-ok { width: 26px; height: 26px; } .tw-ok svg { width: 16px; height: 16px; }
  .tw-mitte { width: 70px; } .tw-wartet span { max-width: 64px; font-size: 11px; }
  .tw-fuss { padding: 10px 12px 12px; }
  .tw-steuer { gap: 8px; }
  .tw-pfeil { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 19px; }
  .tw-ok-knopf { flex: 1.3 1 0; }
  .tw-hilfe { display: none; }
}
@media (max-width: 420px) { .tw-pfeil span { display: none; } .tw-pfeil { flex: 0 0 72px; } }
/* niedrig (Handy/iPad quer im Rahmen, eingebettet ~780×440): Wappen neben dem Namen, alles kompakter */
@media (max-height: 560px) {
  #team { padding-top: max(8px, var(--sa-t)); padding-bottom: max(8px, var(--sa-b)); }
  .tw-box { border-radius: 18px; }
  .tw-kopf { padding: 8px 120px 2px 18px; justify-items: start; text-align: left; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
  .tw-kopf .oberzeile { grid-column: 1 / -1; justify-content: flex-start; }
  .tw-format { font-size: 38px; margin: 0; }
  .tw-unter { justify-content: flex-start; font-size: 14px; }
  .tw-zeitreihe { margin: 4px 18px 6px; } .tw-zeitreihe .zeitbalken { height: 7px; }
  .tw-felder { padding: 0 14px 8px; gap: 10px; }
  .tw-oben { flex-direction: row; padding: 8px 12px 4px; gap: 10px; text-align: left; }
  .tw-name { justify-items: start; } .tw-name b { font-size: 30px; } .tw-name small { font-size: 10.5px; }
  .tw-wappen { width: 42px; height: 49px; }
  .tw-zahl { padding: 4px 9px; font-size: 18px; }
  .tw-plaetze { gap: 4px; padding: 2px 10px 12px; }
  .tw-platz .tag.ki { display: none; }
  .tw-mitte.viele .tw-wartet span { display: none; }
  .tw-platz { min-height: 36px; padding: 2px 6px; gap: 6px; border-radius: 11px; }
  .tw-bohne { width: 22px; height: 28px; } .tw-loch { width: 22px; height: 22px; }
  .tw-nm { font-size: 14px; } .tw-ok { width: 24px; height: 24px; } .tw-ok svg { width: 15px; height: 15px; }
  .tw-mitte { width: 76px; gap: 4px; }
  .tw-fuss { padding: 8px 14px 10px; gap: 4px; }
  .tw-pfeil { min-height: 50px; } .tw-ok-knopf.btn.gross { min-height: 50px; }
  .tw-hilfe { display: none; }
}
@media (max-height: 400px) { .tw-wappen { display: none; } .tw-unter #tw-titel { display: none; } }
@media (prefers-reduced-motion: reduce) { .tw-licht, .tw-wappen, .tw-wartet, #team.fertig .tw-feld.alle { animation: none !important; } }

/* ---------- Sonderrunde 1 gegen alle (js/30c-solo.js) ---------- */
#solo { flex-direction: column; justify-content: space-between; padding: max(14px, var(--sa-t)) max(14px, var(--sa-r)) max(14px, var(--sa-b)) max(14px, var(--sa-l));
  background: radial-gradient(90% 60% at 50% 0%, rgba(3, 6, 16, .62), rgba(3, 6, 16, 0) 70%), linear-gradient(0deg, rgba(3, 6, 16, .55), rgba(3, 6, 16, 0) 38%); }
.so-titelblock { display: grid; justify-items: center; gap: 2px; width: 100%; text-align: center; animation: rein .32s var(--ease) both; }
.so-titelblock .oberzeile { gap: 10px; }
.so-marke { padding: 6px 10px; border-radius: 8px; background: var(--koralle); color: #1d0705; letter-spacing: .12em; }
#so-runde { color: var(--text2); letter-spacing: .14em; }
.so-titel { margin: 4px 0 0; font: italic 800 clamp(40px, 7vw, 72px)/.95 var(--anzeige); text-transform: uppercase; color: #fff; text-shadow: 0 0 26px rgba(255, 178, 62, .45), 0 4px 0 rgba(5, 8, 18, .85); }
#solo.fertig .so-titel { color: var(--amber2); animation: soPop .5s var(--ease) both; }
@keyframes soPop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
.so-unter { margin: 6px 0 0; padding: 6px 14px; border-radius: 999px; background: rgba(5, 9, 22, .72); border: 1px solid var(--linie2); font: 700 15px/1.3 var(--body); color: var(--text); }
.so-duell { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.5fr); align-items: stretch; gap: 14px; width: min(980px, 100%); animation: soRein .45s var(--ease) both; }
@keyframes soRein { from { opacity: 0; transform: translateY(24px); } }
.so-seite { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 20px; background: var(--glas); border: 2px solid var(--linie2); box-shadow: var(--schatten); overflow: hidden; }
.so-seite > small { font: 800 13px/1 var(--anzeige); letter-spacing: .2em; text-transform: uppercase; color: var(--text2); }
.so-allein { border-color: rgba(255, 178, 62, .7); box-shadow: var(--schatten), 0 0 0 1px rgba(255, 178, 62, .25), inset 0 0 40px rgba(255, 178, 62, .14); }
.so-allein > small { color: var(--amber2); }
.so-held { display: flex; align-items: center; gap: 12px; min-width: 0; }
.so-held .tw-bohne { width: 54px; height: 68px; flex: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.so-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: italic 800 34px/1 var(--anzeige); text-transform: uppercase; }
.so-preis { margin-top: auto; font: 700 13px/1.2 var(--body); color: var(--text3); }
.so-allein .so-preis { color: var(--amber2); }
.so-vs { align-self: center; font: italic 800 30px/1 var(--anzeige); text-transform: uppercase; color: var(--koralle); text-shadow: 0 3px 0 rgba(5, 8, 18, .8); }
.so-koepfe { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.so-gast { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 150px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--feld); border: 1px solid var(--linie); }
.so-gast .tw-bohne { width: 26px; height: 33px; flex: none; }
.so-gast span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14px/1 var(--body); }
.so-gast.ich { border-color: var(--tuerkis); box-shadow: 0 0 0 1px var(--tuerkis); }
.so-koepfe.viele .so-gast { max-width: 120px; }
.im-rahmen #solo { padding-right: max(70px, calc(var(--sa-r) + 58px)); }
@media (max-width: 640px) {
  .so-duell { grid-template-columns: 1fr; gap: 8px; }
  .so-vs { display: none; }
  .so-seite { padding: 10px 12px; gap: 6px; }
  .so-nm { font-size: 26px; } .so-held .tw-bohne { width: 40px; height: 50px; }
  .so-gast .tw-bohne { width: 20px; height: 25px; } .so-gast span { font-size: 12px; }
}
@media (max-height: 460px) {
  .so-duell { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px; } .so-vs { display: none; } .so-seite { padding: 8px 12px; gap: 4px; }
  .so-titel { font-size: 34px; } .so-unter { font-size: 13px; } .so-preis { display: none; }
  .so-nm { font-size: 24px; } .so-held .tw-bohne { width: 34px; height: 43px; } .so-gast .tw-bohne { width: 18px; height: 23px; } .so-gast span { font-size: 12px; }
}
#vote.solo .v-marke { background: var(--koralle); color: #1d0705; }
.tag.solo-rolle { background: rgba(255, 90, 78, .18); border-color: rgba(255, 90, 78, .55); color: #ffb3ab; }
.r-solo { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; font: italic 800 22px/1.1 var(--anzeige); text-transform: uppercase; letter-spacing: .02em; }
.r-solo.allein { background: rgba(255, 178, 62, .14); border: 1px solid rgba(255, 178, 62, .55); color: var(--amber2); }
.r-solo.alle { background: rgba(39, 211, 195, .12); border: 1px solid rgba(39, 211, 195, .5); color: #8ff0e5; }
/* Handy hochkant: Abstimmungs-Kopf und Solo-Titel nicht unter Ton/Verlassen (die liegen hier über dem Paneel) */
@media (max-width: 520px) and (orientation: portrait) {
  #vote .v-kopf, .im-rahmen #vote .v-kopf { padding-right: 14px; flex-wrap: wrap; row-gap: 6px; }
  #vote .v-kopf .blatt-titel { flex: 1 1 100%; min-width: 0; }
  .v-kopf .titel { white-space: normal; overflow: visible; line-height: 1.05; }
  .so-titelblock { padding-top: 62px; }
}
