/* Trichter - Oberfläche.
   Art Direction: "Brettspiel bei Nacht". Das Brett füllt den Bildschirm und leuchtet; alles andere sind kräftige,
   runde Spielsteine darüber: dicke Kanten, harte Schatten, Knöpfe zum Drücken. Karten sind Sammelkarten mit Rahmen.
   Farben und Schriften: Kopie aus den Vitec-Tokens. Master: C:\Users\accou\Claude\vitec\branding\tokens\tokens.json */

@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("/fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("/fonts/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-display: swap; src: url("/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #070d13;
  --navy: #003996;
  --coral: #e2694b;
  --coral-alt: #e55a37;
  --blue: #64aaff;
  --sky: #c5e1f9;
  --peach: #ffbf9d;
  --amber: #c98600;
  --gold: #f2c14e;
  --green: #127a5a;
  --mint: #5fd6a2;
  --red: #c72222;
  --ink: #14213d;
  --paper: #f5f5fa;

  /* Spielsteine über dem Brett */
  --panel: #0e1a36;
  --panel-2: #16264d;
  --panel-3: #203566;
  --edge: #2c4480;
  --shade: rgba(2, 5, 14, 0.62);
  --line: rgba(197, 225, 249, 0.18);
  --line-strong: rgba(197, 225, 249, 0.36);
  --text: rgba(245, 245, 250, 0.94);
  --text-2: rgba(197, 225, 249, 0.76);

  --display: "Oswald", "Impact", "Haettenschweiler", "Arial Narrow", sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-btn: 14px;
  --r-card: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 400 16px/1.45 var(--body);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.screen { min-height: 100dvh; }
.kicker { font: 500 14px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--peach); }

/* ---------- Knöpfe: Spielsteine mit Kante, die beim Drücken einsinken ---------- */
.btn {
  --face: var(--panel-3); --rim: #0a1430; --fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 10px 20px; width: 100%;
  background: var(--face); color: var(--fg);
  border: 0; border-radius: var(--r-btn);
  box-shadow: 0 5px 0 var(--rim);
  font: 700 18px/1.1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; text-align: center;
  cursor: pointer; touch-action: manipulation;
  transition: transform 90ms var(--ease), box-shadow 90ms var(--ease), background-color 150ms var(--ease);
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--rim); }
.btn.primary { --face: var(--coral); --rim: #8f3320; --fg: #1a0c07; }
.btn.secondary { --face: var(--panel-3); --rim: #0a1430; }
.btn.ghost { --face: transparent; --rim: transparent; box-shadow: inset 0 0 0 2px var(--line-strong); }
.btn.ghost:active { transform: none; box-shadow: inset 0 0 0 2px var(--sky); }
.btn.danger { --face: var(--red); --rim: #6d0f0f; --fg: #fff; }
.btn.small { min-height: 44px; width: auto; padding: 6px 14px; font-size: 14px; box-shadow: 0 3px 0 var(--rim); }
.btn.small.ghost { box-shadow: inset 0 0 0 2px var(--line-strong); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; }
.btn .sub-label { font: 400 13px/1.2 var(--body); letter-spacing: 0; text-transform: none; opacity: 0.9; }
.btn.stack { flex-direction: column; gap: 2px; }
.row { display: grid; gap: 12px; }
.row.two { grid-template-columns: 1fr 1fr; }

/* ---------- Start und Lobby: Nachthimmel über dem Brett ---------- */
.home, .lobby {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; max-width: 540px; margin: 0 auto;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 46vmax at 88% -8%, rgba(0, 57, 150, 0.6), transparent 70%),
    radial-gradient(50vmax 40vmax at -10% 108%, rgba(226, 105, 75, 0.28), transparent 70%),
    var(--bg);
}
/* Der Start passt auf eine Handyhöhe (ab 375 x 600), ohne zu scrollen: Flaggen oben rechts, Logo, Formular, Hinweis */
.home { gap: 14px; padding: calc(10px + var(--safe-t)) 20px calc(10px + var(--safe-b)); }
.brand { display: grid; gap: 10px; }
.brand-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo .mark { flex: none; width: clamp(60px, 17vw, 92px); height: auto; filter: drop-shadow(0 5px 0 var(--navy)); }
.brand h1 {
  font: 700 clamp(46px, 14.5vw, 92px)/0.86 var(--display); letter-spacing: 0; text-transform: uppercase;
  color: var(--paper); margin: 0; white-space: nowrap;
  text-shadow: 0 5px 0 var(--navy);
}
.lede { font-size: 16px; line-height: 1.4; color: var(--text-2); max-width: 40ch; }
/* Sprachwahl als Flaggen */
.flags { display: flex; gap: 4px; flex: none; }
.flags button { display: grid; place-items: center; width: 48px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; opacity: 0.5; }
.flags button[aria-pressed="true"] { opacity: 1; }
.flag { display: block; width: 36px; height: 24px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.flags button[aria-pressed="true"] .flag { box-shadow: 0 0 0 3px var(--gold); }
.seg.lang .flag { display: inline-block; width: 24px; height: 16px; margin-right: 8px; vertical-align: -2px; border-radius: 3px; }
.home-form { display: grid; gap: 10px; padding: 16px; background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r-card); box-shadow: 0 8px 0 var(--shade); }
.home-form label { font: 500 14px/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.home-form input {
  min-height: 54px; padding: 10px 16px; width: 100%;
  background: #081029; border: 2px solid var(--edge); border-radius: var(--r-btn);
  font-size: 18px;
}
.home-form input:focus { border-color: var(--sky); outline: none; }
#joinDirect, #joinManual { display: grid; gap: 10px; margin-top: 4px; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.code-row input { font: 700 24px/1 var(--display); letter-spacing: 0.3em; text-transform: uppercase; text-align: center; }
.code-row .btn { width: auto; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.error { color: var(--peach); font-weight: 600; }
.fine { font-size: 13px; color: var(--text-2); text-align: center; }

.lobby { gap: 16px; padding: calc(28px + var(--safe-t)) 20px calc(28px + var(--safe-b)); }
.code-big { font: 700 clamp(64px, 22vw, 104px)/0.9 var(--display); letter-spacing: 0.12em; color: var(--paper); text-shadow: 0 5px 0 var(--navy); }
.qr-wrap { display: grid; justify-items: center; gap: 8px; padding: 18px; background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r-card); box-shadow: 0 8px 0 var(--shade); color: var(--text-2); font-size: 14px; }
.qr-wrap img { width: min(200px, 56vw); height: auto; aspect-ratio: 1; border-radius: 12px; background: #fff; padding: 6px; }
.sub { font: 700 18px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 8px; }
.sub span { color: var(--text-2); font-weight: 500; }
.lobby-players { display: grid; gap: 8px; }
.lobby-players li {
  display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px 8px 8px;
  background: var(--panel); border: 2px solid var(--edge); border-radius: 16px; font-weight: 600;
}
.lobby-players .av { width: 44px; height: 44px; }
.lobby-players .who { display: grid; min-width: 0; }
.lobby-players .who small { font-weight: 400; font-size: 13px; color: var(--text-2); }
.lobby-players .role { font: 500 12px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.iconbtn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px;
  background: transparent; color: var(--text-2); cursor: pointer; box-shadow: inset 0 0 0 2px var(--line);
}
.iconbtn:hover { color: var(--peach); box-shadow: inset 0 0 0 2px var(--coral); }
.avatar-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.avatar-pick button {
  display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 2px solid transparent; border-radius: 16px;
  background: var(--panel); cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.2; text-align: center;
  transition: transform 160ms var(--spring);
}
.avatar-pick img { width: 56px; height: 56px; }
.avatar-pick button[aria-pressed="true"] { border-color: var(--gold); color: var(--text); background: var(--panel-2); transform: translateY(-3px); }
.avatar-pick button[disabled] { opacity: 0.32; cursor: not-allowed; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 6px; background: var(--panel); border: 2px solid var(--edge); border-radius: 16px; }
.seg button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; font: 700 15px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--gold); color: #1d1500; }
.seg button[disabled] { cursor: default; }
/* Sprachwahl: Startseite (über dem Formular) und im Blatt "Mehr" */
.seg.lang button { min-height: 40px; font-size: 14px; }
.sheet .seg.lang { margin: 4px 0 10px; }
/* Alle Themen stehen nebeneinander zur Wahl: zwei je Zeile am Handy, vier auf breiten Bildschirmen */
.theme-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .theme-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-pick button { display: grid; gap: 4px; justify-items: start; padding: 10px; text-align: left; background: var(--panel); border: 2px solid var(--edge); border-radius: 16px; cursor: pointer; min-height: 44px; }
.theme-pick button[aria-pressed="true"] { border-color: var(--gold); background: var(--panel-2); }
.theme-pick button[disabled] { cursor: default; }
.theme-pick b { font: 700 15px/1.1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.theme-pick small { font-size: 12px; line-height: 1.3; color: var(--text-2); }
.theme-pick .sw { display: block; width: 100%; height: 34px; border-radius: 10px; }
.sw-kneipe { background: linear-gradient(135deg, #53331d 0 55%, #f2a516 55% 78%, #f2c14e 78%); }
.sw-strand { background: linear-gradient(135deg, #e6cc96 0 55%, #19c2c9 55% 78%, #ff7a59 78%); }
.sw-neon { background: linear-gradient(135deg, #0b0720 0 55%, #ff3d9a 55% 78%, #2ef2ff 78%); }
.sw-arcade { background: linear-gradient(135deg, #24140a 0 55%, #ffb000 55% 78%, #b6ff3c 78%); }
.hint { color: var(--text-2); font-size: 14px; }

/* Zurück in eine laufende Partie */
.rejoin { display: grid; gap: 10px; padding: 16px; background: var(--panel); border: 3px solid var(--gold); border-radius: var(--r-card); box-shadow: 0 8px 0 var(--shade); }
.rejoin p { font-size: 15px; }
.rejoin b { font: 700 18px/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Lobby ---------- */
body[data-theme="strand"] {
  --panel: #0c3b4a; --panel-2: #114f60; --panel-3: #18687a; --edge: #2a93a6; --shade: rgba(2, 20, 28, 0.6);
  --coral: #ff7a59; --coral-alt: #ff6a45; --gold: #ffd166; --text-2: rgba(214, 244, 248, 0.8);
}
body[data-theme="strand"]::before { background: radial-gradient(60vmax 46vmax at 88% -8%, rgba(25, 194, 201, 0.5), transparent 70%), radial-gradient(50vmax 40vmax at -10% 108%, rgba(255, 209, 102, 0.3), transparent 70%), #06283a; }
body[data-theme="strand"] .game { background: #06283a; }
body[data-theme="strand"] .die { background: #fff7e0; box-shadow: 0 7px 0 #e0b866, 0 12px 0 var(--shade); }
body[data-theme="strand"] .die i { --pip: #0c6f80; }
body[data-theme="neon"] {
  --panel: #150a30; --panel-2: #22104c; --panel-3: #331a70; --edge: #6a35e0; --shade: rgba(4, 0, 16, 0.7);
  --coral: #ff3d9a; --coral-alt: #ff2a8c; --gold: #f5e04a; --sky: #2ef2ff; --text-2: rgba(214, 200, 255, 0.82);
}
body[data-theme="neon"]::before { background: radial-gradient(60vmax 46vmax at 88% -8%, rgba(176, 107, 255, 0.5), transparent 70%), radial-gradient(50vmax 40vmax at -10% 108%, rgba(255, 61, 154, 0.32), transparent 70%), #05020f; }
body[data-theme="neon"] .game { background: #05020f; }
body[data-theme="neon"] .die { background: #12082c; box-shadow: 0 7px 0 #000, 0 12px 0 var(--shade), 0 0 0 3px #2ef2ff; }
body[data-theme="neon"] .die i { --pip: #2ef2ff; }
body[data-theme="neon"] .btn.primary, body[data-theme="neon"] .roll-btn { color: #1a0010; }
body[data-theme="arcade"] {
  --panel: #24140a; --panel-2: #33200f; --panel-3: #452c14; --edge: #b8621a; --shade: rgba(0, 0, 0, 0.75);
  --coral: #ffb000; --coral-alt: #ff9d00; --gold: #b6ff3c; --sky: #ff5a2a; --text-2: rgba(255, 232, 196, 0.82);
}
body[data-theme="arcade"]::before { background: radial-gradient(60vmax 46vmax at 88% -8%, rgba(255, 176, 0, 0.3), transparent 70%), radial-gradient(50vmax 40vmax at -10% 108%, rgba(182, 255, 60, 0.18), transparent 70%), #120a04; }
body[data-theme="arcade"] .game { background: #120a04; }
body[data-theme="arcade"] .die { background: #fff3d6; border-radius: 4px; box-shadow: 0 7px 0 #000, 0 12px 0 var(--shade); }
body[data-theme="arcade"] .die i { border-radius: 0; --pip: #24140a; }
.lobby-actions { display: grid; gap: 14px; margin-top: 8px; }
.bot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bot-row .btn { font-size: 15px; }

/* ---------- Spiel: Brett bildschirmfüllend, Spielsteine darüber ---------- */
.game { position: relative; height: 100dvh; min-height: 0; overflow: hidden; background: #05080f; }
.game canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.av { border-radius: 50%; flex: none; }

/* Wer ist dran, wie lange noch */
.turnchip {
  position: absolute; z-index: 5; top: calc(10px + var(--safe-t)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 116px); padding: 5px 12px 5px 5px;
  background: var(--panel); border: 2px solid var(--c, var(--edge)); border-radius: 999px; box-shadow: 0 5px 0 var(--shade);
}
.turnchip .av { width: 36px; height: 36px; }
.turnchip .tc-txt { display: grid; min-width: 0; }
.turnchip .tc-name { font: 700 15px/1.15 var(--display); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.turnchip .tc-sub { font-size: 12px; line-height: 1.2; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.turnchip .tc-time { display: flex; align-items: center; gap: 4px; padding-left: 8px; border-left: 2px solid var(--line); font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--gold); }
.turnchip .tc-time svg { display: none; }
.turnchip .tc-time.low { color: #ff8f70; animation: pulse 1s ease-in-out infinite; }
.turnchip.mine { background: var(--coral); border-color: #fff; color: #1a0c07; }
.turnchip.mine .tc-sub { color: rgba(26, 12, 7, 0.78); }
.turnchip.mine .tc-time { color: #1a0c07; border-left-color: rgba(26, 12, 7, 0.3); }
@keyframes pulse { 50% { opacity: 0.45; } }

/* Spieler links: Figuren als Leiste */
.rail { position: absolute; z-index: 3; left: 8px; top: calc(10px + var(--safe-t)); display: grid; gap: 8px; }
.rail button {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  transition: transform 200ms var(--spring);
}
.rail .av { width: 44px; height: 44px; box-shadow: 0 4px 0 var(--shade); }
.rail li.active button { transform: scale(1.12); transform-origin: left center; }
.rail li.active .av { outline: 3px solid #fff; outline-offset: 1px; }
.rail li.off .av { opacity: 0.45; filter: grayscale(1); }
/* Getrennt: rotes Zeichen am Bild (durchgestrichener Kreis), dazu der Text "getrennt" in der breiten Leiste */
.rail li.off button::after { content: ''; position: absolute; left: -3px; top: -3px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff;
  background: linear-gradient(45deg, transparent 43%, #fff 43% 57%, transparent 57%), var(--red); }
.rail li.off .r-txt small { color: #ffb3b3; font-weight: 700; }
.rail .r-team {
  position: absolute; left: 28px; top: -4px; min-width: 20px; height: 18px; padding: 0 4px; display: grid; place-items: center;
  background: var(--peach); color: #2a1206; border-radius: 9px; font: 700 12px/1 var(--display);
}
.rail .r-status { position: absolute; left: 30px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 2px solid var(--panel); }
.rail .r-txt { display: none; }

/* Menü rechts */
.tools { position: absolute; z-index: 5; right: 8px; top: calc(10px + var(--safe-t)); display: grid; gap: 8px; }
.tool {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; padding: 0;
  background: var(--panel); color: var(--text); border: 2px solid var(--edge); border-radius: 14px; box-shadow: 0 4px 0 var(--shade);
  cursor: pointer; touch-action: manipulation; transition: transform 90ms var(--ease), box-shadow 90ms var(--ease);
}
.tool:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--shade); }
.tool .t-ic { display: grid; }
.tool .t-label { display: none; font: 700 14px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
/* Kamera-Knöpfe unten rechts: rund, in Daumennähe, über der Hand */
/* liegen unter Aktions-Kästen (z 7), damit sie keinen Knopf eines Dialogs verdecken */
.fabs { position: absolute; z-index: 6; right: calc(8px + env(safe-area-inset-right, 0px)); bottom: calc(204px + var(--safe-b)); display: grid; gap: 8px; }
.fab { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; background: var(--panel); color: var(--text); border: 2px solid var(--edge); border-radius: 50%; box-shadow: 0 4px 0 var(--shade); cursor: pointer; touch-action: manipulation; transition: transform 90ms var(--ease), box-shadow 90ms var(--ease); }
.fab:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--shade); }
.fab span { display: grid; }
.fab[aria-pressed="true"] { background: var(--gold); border-color: #fff; color: #1d1500; }
.badge {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center;
  background: var(--coral); color: #1a0c07; border-radius: 10px; font: 700 12px/1 var(--display);
}

/* Hinter jeder Aktion wird das Brett dunkel: die Aktion ist das Einzige, was jetzt zählt */
.scrim { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(3, 6, 14, 0.58), rgba(3, 6, 14, 0.8)); animation: fade 260ms var(--ease); }
@keyframes fade { from { opacity: 0; } }
/* Wer das Brett verschiebt, sieht es hell; nach 3 Sekunden Ruhe (.redim) wird es wieder dunkel */
/* (seit 2026-11-19 bleibt die Abdunkelung auch beim Verschieben und Zoomen) */
.game canvas:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
.game canvas { cursor: grab; }
.game canvas:active { cursor: grabbing; }

/* Würfeln: gleiche Bühne wie jede Aktion - Brett dunkel, Würfel groß in der Mitte */
.dice-stage { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: radial-gradient(circle at 50% 46%, rgba(3, 6, 14, 0.62), rgba(3, 6, 14, 0.86)); animation: fade 180ms var(--ease); }
.dice-card { justify-items: center; gap: 16px; padding: 22px 26px 20px; min-width: 260px; }
.dice-row { display: flex; gap: 18px; }
.die { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 4px; width: 88px; height: 88px; padding: 12px; background: var(--paper); border-radius: 18px; box-shadow: 0 7px 0 #b9c0cf, 0 12px 0 var(--shade); }
.die i { border-radius: 50%; background: transparent; }
.die[data-v="1"] i:nth-child(5) { background: var(--coral); }
.die[data-v="2"] i:nth-child(1), .die[data-v="2"] i:nth-child(9),
.die[data-v="3"] i:nth-child(1), .die[data-v="3"] i:nth-child(5), .die[data-v="3"] i:nth-child(9),
.die[data-v="4"] i:nth-child(1), .die[data-v="4"] i:nth-child(3), .die[data-v="4"] i:nth-child(7), .die[data-v="4"] i:nth-child(9),
.die[data-v="5"] i:nth-child(1), .die[data-v="5"] i:nth-child(3), .die[data-v="5"] i:nth-child(5), .die[data-v="5"] i:nth-child(7), .die[data-v="5"] i:nth-child(9),
.die[data-v="6"] i:nth-child(1), .die[data-v="6"] i:nth-child(3), .die[data-v="6"] i:nth-child(4), .die[data-v="6"] i:nth-child(6), .die[data-v="6"] i:nth-child(7), .die[data-v="6"] i:nth-child(9) { background: var(--pip, var(--ink)); }
.dice-row.rolling .die { animation: tumble 340ms linear infinite; }
.dice-row.rolling .die:nth-child(2) { animation-duration: 290ms; animation-direction: reverse; }
@keyframes tumble { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-22px) rotate(180deg); } 100% { transform: translateY(0) rotate(360deg); } }
.dice-sum { display: grid; gap: 6px; min-height: 52px; align-content: center; font: 700 20px/1.2 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.dice-sum b { color: var(--gold); }
.dice-sum .pasch { padding: 6px 14px; background: var(--gold); color: #1d1500; border-radius: 999px; font-size: 16px; }

/* Landung auf einem Feld: das Emblem springt groß ins Bild und bewegt sich passend zu dem, was das Feld tut */
.fx { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; pointer-events: none; }
.fx-in { position: relative; display: grid; justify-items: center; gap: 10px; margin-top: -8vh; }
.fx-art { display: block; width: min(46vw, 210px); aspect-ratio: 1; animation: fx-pop 1050ms var(--spring) both; filter: drop-shadow(0 10px 0 rgba(2, 5, 14, 0.5)); }
.fx-art canvas { display: block; width: 100%; height: 100%; }
.fx-name { padding: 8px 18px; background: var(--panel); border: 3px solid var(--fxc); border-radius: 999px; font: 700 20px/1.1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; box-shadow: 0 5px 0 var(--shade); animation: fx-name 1050ms var(--ease) both; white-space: nowrap; }
.fx-ring { position: absolute; left: 50%; top: min(23vw, 105px); width: min(46vw, 210px); aspect-ratio: 1; margin: calc(min(23vw, 105px) * -1) 0 0 calc(min(23vw, 105px) * -1); border: 6px solid var(--fxc); border-radius: 50%; animation: fx-ring 900ms ease-out both; }
.fx-ring.late { animation-delay: 180ms; }
@keyframes fx-ring { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }
@keyframes fx-name { 0% { opacity: 0; transform: translateY(14px); } 25%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes fx-pop { 0% { opacity: 0; transform: scale(0.3); } 22% { opacity: 1; transform: scale(1.08); } 34%, 82% { transform: scale(1); opacity: 1; } 100% { opacity: 0; transform: scale(0.9); } }
/* je Feldtyp eine eigene Bewegung */
.fx-ansage .fx-art { animation-name: fx-shout; }
@keyframes fx-shout { 0% { opacity: 0; transform: scale(0.3); } 20% { opacity: 1; transform: scale(1.1) rotate(-8deg); } 30% { transform: scale(1.16) rotate(7deg); } 40% { transform: scale(1.1) rotate(-6deg); } 50% { transform: scale(1.16) rotate(5deg); } 62%, 84% { transform: scale(1) rotate(0); opacity: 1; } 100% { opacity: 0; } }
.fx-wop .fx-art { animation-name: fx-flip; }
@keyframes fx-flip { 0% { opacity: 0; transform: perspective(600px) rotateY(-180deg) scale(0.5); } 40% { opacity: 1; transform: perspective(600px) rotateY(20deg) scale(1.06); } 55%, 84% { transform: perspective(600px) rotateY(0) scale(1); opacity: 1; } 100% { opacity: 0; } }
.fx-flasche .fx-art { animation-name: fx-spin; animation-timing-function: cubic-bezier(0.1, 0.7, 0.2, 1); }
@keyframes fx-spin { 0% { opacity: 0; transform: rotate(-900deg) scale(0.6); } 15% { opacity: 1; } 70%, 86% { transform: rotate(0) scale(1); opacity: 1; } 100% { opacity: 0; } }
.fx-koenig .fx-art { animation-name: fx-drop; }
@keyframes fx-drop { 0% { opacity: 0; transform: translateY(-60vh); } 30% { opacity: 1; transform: translateY(0) scaleY(0.82); } 42% { transform: translateY(-34px) scaleY(1.06); } 54% { transform: translateY(0) scaleY(0.94); } 64%, 86% { transform: none; opacity: 1; } 100% { opacity: 0; } }
.fx-karte .fx-art { animation-name: fx-deal; }
@keyframes fx-deal { 0% { opacity: 0; transform: translate(-70vw, 30vh) rotate(-140deg) scale(0.6); } 40% { opacity: 1; transform: translate(0, 0) rotate(10deg) scale(1.06); } 54%, 84% { transform: none; opacity: 1; } 100% { opacity: 0; transform: translateY(18vh) scale(0.5); } }
.fx-team .fx-art { animation-name: fx-heart; }
@keyframes fx-heart { 0% { opacity: 0; transform: scale(0.3); } 20% { opacity: 1; transform: scale(1.18); } 32% { transform: scale(0.94); } 44% { transform: scale(1.14); } 56% { transform: scale(0.97); } 68%, 86% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
.fx-rutsche .fx-art { animation-name: fx-up; }
@keyframes fx-up { 0% { opacity: 0; transform: translateY(40vh) scale(0.7); } 30% { opacity: 1; transform: translateY(0) scale(1.05); } 70% { transform: translateY(0); opacity: 1; } 100% { opacity: 0; transform: translateY(-50vh) scale(0.8); } }
.fx-katapult .fx-art { animation-name: fx-launch; }
@keyframes fx-launch { 0% { opacity: 0; transform: scale(0.4); } 22% { opacity: 1; transform: scale(1.05); } 46% { transform: translateY(-22px) scaleY(1.1); } 62% { transform: translateY(18px) scaleY(0.84) scaleX(1.12); } 100% { opacity: 0; transform: translateY(60vh) rotate(260deg) scale(0.6); } }
.fx-schluck .fx-art { animation-name: fx-sip; transform-origin: 50% 80%; }
@keyframes fx-sip { 0% { opacity: 0; transform: scale(0.4); } 22% { opacity: 1; transform: scale(1.04); } 50%, 64% { transform: rotate(-38deg) translateY(-10px); } 80%, 88% { transform: none; opacity: 1; } 100% { opacity: 0; } }
.fx-geben .fx-art { animation-name: fx-give; }
@keyframes fx-give { 0% { opacity: 0; transform: translateX(-40vw) scale(0.7); } 30% { opacity: 1; transform: none; } 66% { transform: translateX(-12px); opacity: 1; } 100% { opacity: 0; transform: translateX(60vw) rotate(20deg); } }
.fx-wasserfall .fx-art { animation-name: fx-fall; }
@keyframes fx-fall { 0% { opacity: 0; transform: translateY(-50vh) scale(0.8); } 26% { opacity: 1; transform: translateY(0) scale(1.06); } 38% { transform: translateY(-16px); } 50% { transform: translateY(8px); } 62% { transform: translateY(-8px); } 74%, 86% { transform: none; opacity: 1; } 100% { opacity: 0; transform: translateY(30vh); } }
.fx-wasserfall .fx-ring { border-radius: 40%; }
.fx-frei .fx-art { animation-duration: 520ms; width: min(30vw, 130px); opacity: 0.85; }
.fx-frei .fx-ring, .fx-frei .fx-name { display: none; }
.fx-ziel .fx-art { animation-name: fx-heart; width: min(60vw, 280px); }
.fx.calm .fx-art, .fx.calm .fx-name { animation: none; }
.fx.calm .fx-ring { display: none; }
/* Würfel: beim Ergebnis aufspringen, beim Pasch golden */
.die.land { animation: die-land 420ms var(--spring) both; }
.die.land:nth-child(2) { animation-delay: 70ms; }
@keyframes die-land { 0% { transform: translateY(-34px) rotate(-14deg) scale(1.12); } 60% { transform: translateY(4px) scale(0.96, 0.9); } 100% { transform: none; } }
.dice-card.pasch { border-color: var(--gold); animation: pasch 600ms var(--spring); }
.dice-card.pasch .die { box-shadow: 0 7px 0 #c98600, 0 12px 0 var(--shade), 0 0 0 4px var(--gold); }
@keyframes pasch { 0% { transform: scale(1); } 40% { transform: scale(1.09) rotate(-2deg); } 70% { transform: scale(0.98) rotate(1deg); } 100% { transform: none; } }

/* Ereignisse, die für alle gelten: Leiste unter der Zug-Anzeige */
.effects { position: absolute; z-index: 5; top: calc(64px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; gap: 6px; max-width: calc(100vw - 124px); flex-wrap: wrap; justify-content: center; }
.effects li { display: flex; align-items: center; gap: 6px; padding: 4px 10px; background: #4a1a56; border: 2px solid #d36bd6; border-radius: 999px; font-size: 12px; line-height: 1.2; white-space: nowrap; }
.effects b { font: 700 13px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }

/* Karten in Bewegung */
.fly { position: fixed; inset: 0; z-index: 25; pointer-events: none; overflow: hidden; }
.flycard { position: absolute; left: 0; top: 0; width: var(--w); will-change: transform, opacity; }
.flycard .tcard { --w: inherit; width: var(--w); }
.fly-cap { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); padding: 6px 14px; background: var(--panel); color: var(--text); border: 2px solid var(--edge); border-radius: 999px; font: 700 14px/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 0 var(--shade); }
.flycard.guard::after { content: ""; position: absolute; inset: -14px; border: 6px solid var(--blue); border-radius: 26px; animation: guard 900ms ease-out both; }
@keyframes guard { 0% { transform: scale(0.8); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }
/* Kartenrückseite: was die anderen sehen */
.cardback { width: var(--w); aspect-ratio: 5 / 7; padding: calc(var(--w) * 0.05); border-radius: calc(var(--w) * 0.1); background: linear-gradient(160deg, #c3ccdb, #6f7b93 52%, #b4bfd1); box-shadow: 0 calc(var(--w) * 0.04) 0 rgba(2, 5, 14, 0.55); }
.cardback span { display: block; width: 100%; height: 100%; border-radius: calc(var(--w) * 0.07); background: repeating-linear-gradient(45deg, #0e1a36 0 8px, #16264d 8px 16px); box-shadow: inset 0 0 0 3px var(--gold); }
/* Figuren in der Leiste reagieren: Treffer schüttelt, alles andere leuchtet kurz auf */
.av.ping, #hand.ping { animation: ping 600ms var(--spring); }
.av.shake { animation: shake 520ms ease-in-out; }
@keyframes ping { 0% { transform: scale(1); } 35% { transform: scale(1.3); filter: brightness(1.5); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px) rotate(-8deg); } 40% { transform: translateX(7px) rotate(8deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); filter: brightness(1.6) saturate(1.6); } }
/* Ich werde getroffen: roter Rand um den ganzen Bildschirm */
.game.hitme::after { content: ""; position: absolute; inset: 0; z-index: 11; pointer-events: none; box-shadow: inset 0 0 0 10px var(--red), inset 0 0 90px rgba(199, 34, 34, 0.7); animation: hitme 700ms ease-out both; }
@keyframes hitme { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

/* Die Aktion: mittig, da wo man hinschaut */
.action {
  --fc: var(--edge);
  position: absolute; z-index: 7; left: 50%; top: calc(50% - 36px); transform: translate(-50%, -50%);
  width: min(calc(100vw - 20px), 400px); max-height: calc(100dvh - 318px - var(--safe-b)); overflow-y: auto;
  border-width: 3px; border-radius: 24px; /* Grundform: .win in ui.css */
  animation: pop 320ms var(--spring);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(0.9); } }
.action.slim { top: calc(50% + 56px); width: min(calc(100vw - 96px), 300px); }
/* Würfeln: kein Kasten, nur Ansage und Knopf, damit das Brett sichtbar bleibt */
.action.bare { top: calc(50% + 66px); width: auto; padding: 0; gap: 14px; background: none; border: 0; box-shadow: none; overflow: visible; }
.action.bare .p-title { padding: 8px 20px; background: var(--panel); border: 3px solid var(--coral); border-radius: 999px; box-shadow: 0 5px 0 var(--shade); font-size: 24px; white-space: nowrap; }
.action.bare .p-note { padding: 6px 14px; background: rgba(8, 14, 34, 0.86); border-radius: 999px; color: var(--text); white-space: nowrap; }
.action .p-text { font-size: 19px; line-height: 1.35; font-weight: 600; padding: 12px 14px; background: var(--panel-2); border-radius: 16px; }
.action .p-note { color: var(--text-2); font-size: 14px; }
.action .av.big { width: 72px; height: 72px; margin: 0 auto; }
.roll-btn {
  justify-self: center; display: grid; place-items: center; gap: 4px; width: 132px; height: 132px; padding: 0; border: 0; border-radius: 50%;
  background: var(--coral); color: #1a0c07; box-shadow: 0 8px 0 #8f3320, 0 0 0 6px rgba(226, 105, 75, 0.25);
  font: 700 20px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; touch-action: manipulation;
  transition: transform 90ms var(--ease), box-shadow 90ms var(--ease);
  animation: beat 1.6s ease-in-out infinite;
}
.roll-btn > span { display: grid; justify-items: center; gap: 6px; }
.roll-btn svg { width: 46px; height: 46px; }
.roll-btn:active { transform: translateY(6px); box-shadow: 0 2px 0 #8f3320, 0 0 0 6px rgba(226, 105, 75, 0.25); animation: none; }
@keyframes beat { 50% { box-shadow: 0 8px 0 #8f3320, 0 0 0 14px rgba(226, 105, 75, 0.12); } }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 16px 4px 4px;
  background: var(--panel-3); border: 2px solid transparent; border-radius: 999px;
  font-weight: 600; cursor: pointer; touch-action: manipulation;
}
.chip .av { width: 38px; height: 38px; }
.chip.text { padding-left: 16px; }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--gold); }
.chip[disabled] { opacity: 0.4; cursor: not-allowed; }
.options { display: grid; gap: 8px; text-align: left; }
.option {
  display: grid; gap: 4px; text-align: left; width: 100%; padding: 12px 14px; min-height: 64px;
  background: var(--panel-2); border: 2px solid var(--edge); border-left: 8px solid var(--oc, var(--gold)); border-radius: 16px;
  cursor: pointer; touch-action: manipulation;
}
.option[disabled] { cursor: default; }
.option:not([disabled]):hover { border-color: var(--sky); border-left-color: var(--oc, var(--gold)); }
.option:not([disabled]):active { background: var(--panel-3); }
.option .o-name { font: 700 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.option .o-kind { font: 500 12px/1 var(--display); letter-spacing: 0.1em; color: var(--text-2); white-space: nowrap; }
.option .o-text { font-size: 15px; color: var(--text-2); }
.bus-cards { display: flex; justify-content: center; gap: 8px; }
.bus-card { width: 58px; height: 82px; display: grid; place-items: center; align-content: center; gap: 4px; background: var(--paper); color: var(--ink); border-radius: 10px; box-shadow: 0 4px 0 var(--shade); font: 700 26px/1 var(--display); }
.bus-card.red { color: var(--red); }
.bus-card small { font: 500 12px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.bus-card.empty { background: transparent; border: 2px dashed var(--line-strong); color: var(--text-2); box-shadow: none; }
.pick-row { display: flex; justify-content: center; align-items: flex-end; gap: 8px; padding-top: 10px; }
.pick-row .tcard { --w: min(26.5vw - 4px, 118px); }
.pick-info { display: grid; gap: 4px; padding: 12px 14px; background: var(--panel-2); border-radius: 16px; text-align: left; min-height: 84px; align-content: center; }
.pick-info b { font: 700 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.pick-info .when { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.pick-info .when svg { width: 14px; height: 14px; flex: none; }

/* Letzte Meldung: ein Tipp öffnet den ganzen Verlauf */
.ticker {
  position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: calc(192px + var(--safe-b));
  display: flex; align-items: center; gap: 8px; max-width: min(calc(100vw - 24px), 440px); min-height: 44px; padding: 4px 14px;
  background: rgba(8, 14, 34, 0.86); border: 2px solid var(--line); border-radius: 999px; color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.ticker span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker svg { width: 16px; height: 16px; flex: none; color: var(--text-2); }

.flash {
  position: absolute; z-index: 8; left: 50%; top: calc(50% - 36px); transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 8px; width: min(86vw, 340px); padding: 18px;
  background: var(--paper); color: var(--ink); border-radius: 22px; text-align: center;
  border: 4px solid var(--fc, var(--coral)); box-shadow: 0 8px 0 var(--shade);
  animation: pop 320ms var(--spring);
}
.flash .p-kicker { font: 500 13px/1.1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: #4d5461; }
.flash .p-title { font: 700 30px/1.05 var(--display); text-transform: uppercase; }
.flash .f-text { font-size: 16px; }
.flash.bare { background: none; border: 0; box-shadow: none; padding: 0; width: auto; }
.flash.bare .p-kicker { padding: 6px 14px; background: var(--panel); color: var(--text); border-radius: 999px; }
.flash.bare .tcard { --w: 200px; }

/* ---------- Karten: Sammelkarten mit Rahmen nach Seltenheit ---------- */
.tcard {
  --w: 104px; --ac: var(--coral); --ad1: #7a2a18; --ad2: #2b0e07;
  --frame: linear-gradient(160deg, #c3ccdb, #6f7b93 52%, #b4bfd1);
  --cbody: var(--paper); --fgc: var(--ink); --fg2: #4d5461;
  position: relative; display: block; width: var(--w); font-size: calc(var(--w) / 10); line-height: 1.2;
  padding: 0.38em; border: 0; border-radius: 1.05em; background: var(--frame); color: var(--fgc); text-align: left;
  box-shadow: 0 0.45em 0 rgba(2, 5, 14, 0.55);
}
.tcard.t-abwehr { --ac: var(--blue); --ad1: #0b3f9c; --ad2: #041a4a; }
.tcard.t-zustand { --ac: var(--gold); --ad1: #6b4a00; --ad2: #2a1c00; }
.tcard.t-boost { --ac: var(--mint); --ad1: #0d5a43; --ad2: #04241b; }
.tcard.t-joker { --ac: var(--sky); --ad1: #2b3f6e; --ad2: #0c1630; }
.tcard .tc-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; height: 100%; min-height: 13.4em; overflow: hidden; background: var(--cbody); border-radius: 0.72em; }
.tcard .tc-top { display: flex; align-items: center; justify-content: space-between; gap: 0.4em; padding: 0.5em 0.6em 0.4em; }
.tcard .tc-type { font: 700 0.6em/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3em 0.55em; border-radius: 99px; background: var(--ad1); color: #fff; }
.tcard .tc-right { display: flex; align-items: center; margin-left: auto; }
.tcard .tc-rar { display: flex; gap: 0.18em; }
.tcard .tc-rar i { width: 0.5em; height: 0.5em; transform: rotate(45deg); background: var(--gem, #8b95a8); border-radius: 0.1em; }
.tcard .tc-art {
  position: relative; display: grid; place-items: center; margin: 0 0.5em; aspect-ratio: 10 / 7; border-radius: 0.5em; overflow: hidden;
  background:
    repeating-conic-gradient(from 0deg at 50% 120%, rgba(255, 255, 255, 0.07) 0deg 6deg, transparent 6deg 14deg),
    radial-gradient(circle at 30% 18%, var(--ad1), var(--ad2));
  box-shadow: inset 0 0 0 0.12em rgba(255, 255, 255, 0.16);
}
.tcard .tc-art svg { width: 62%; height: auto; filter: drop-shadow(0 0.22em 0 rgba(0, 0, 0, 0.35)); }
.tcard .tc-name { padding: 0.5em 0.48em 0.1em; font: 700 max(11px, 1.36em)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; overflow-wrap: break-word; hyphens: auto; }
.tcard .tc-text { padding: 0.3em 0.9em 0.3em; font-size: 0.72em; line-height: 1.3; }
.tcard .tc-when { display: flex; align-items: center; gap: 0.5em; margin: 0.3em 0.5em 0.5em; padding: 0.5em 0.7em; border-radius: 0.5em; background: rgba(20, 33, 61, 0.08); font-size: 0.56em; font-weight: 600; color: var(--fg2); }
.tcard .tc-when svg { width: 1.3em; height: 1.3em; flex: none; }
.tcard .tc-rname { display: none; }
/* Selten: blauer Metallrahmen mit Schimmer */
.tcard.r-rare { --frame: linear-gradient(150deg, #9fd0ff, #1f6fe0 38%, #003996 62%, #8cc4ff); --gem: #1f6fe0; box-shadow: 0 0.45em 0 rgba(2, 5, 14, 0.55), 0 0 1.4em rgba(100, 170, 255, 0.45); }
.tcard.r-rare { --cbody: linear-gradient(180deg, #dcebff, var(--paper) 46%); }
/* Legendär: Goldfolie, dunkler Grund, laufender Glanz */
.tcard.r-legend {
  --frame: conic-gradient(from var(--spin, 0deg), #f2c14e, #fff3c4, #c98600, #ffbf9d, #f2c14e, #fff8dc, #c98600, #f2c14e);
  --cbody: linear-gradient(180deg, #1b1430, #0c1024); --fgc: #fdf3d0; --fg2: #e8d9a8; --gem: #f2c14e;
  box-shadow: 0 0.45em 0 rgba(2, 5, 14, 0.55), 0 0 1.8em rgba(242, 193, 78, 0.6);
}
.tcard.r-legend .tc-when { background: rgba(242, 193, 78, 0.14); }
.tcard.r-legend .tc-in::after {
  content: ""; position: absolute; inset: -40% -60%; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 244, 200, 0.42) 50%, transparent 58%);
  animation: sheen 3.2s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
/* Kleine Karte (Hand, Auswahl): Bild und Name, der Text steht beim Antippen groß da */
.tcard.mini .tc-text, .tcard.mini .tc-when, .tcard.mini .tc-type { display: none; }
.tcard.mini .tc-in { min-height: 0; grid-template-rows: auto auto 1fr; }
.tcard.mini .tc-top { padding: 0.55em 0.6em 0.45em; }
.tcard.mini .tc-top::before { content: ""; width: 1.5em; height: 0.62em; border-radius: 99px; background: var(--ad1); }
.tcard.mini .tc-name { padding: 0.45em 0.5em 0.6em; min-height: 2.9em; }
.tcard.big { --w: min(250px, 66vw); margin: 0 auto; }
.tcard.big .tc-rname, .tcard.show .tc-rname { display: block; font: 700 0.5em/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg2); margin-right: 0.5em; }
button.tcard { cursor: pointer; touch-action: manipulation; }
.pick-row button.tcard { transition: transform 200ms var(--spring); }
.pick-row button.tcard[aria-pressed="true"] { transform: translateY(-8px); outline: 3px solid #fff; outline-offset: 2px; }

/* Hand: Fächer mittig vor dem Brett */
.handzone {
  position: absolute; z-index: 12; left: 0; right: 0; bottom: 0; height: 196px; padding-bottom: calc(12px + var(--safe-b));
  display: flex; justify-content: center; align-items: flex-end; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 8, 15, 0.92) 18%, rgba(5, 8, 15, 0));
}
.hand { display: flex; justify-content: center; align-items: flex-end; pointer-events: auto; }
.hand li { margin-left: -34px; transform: rotate(var(--rot, 0deg)) translateY(var(--drop, 0px)); transform-origin: 50% 120%; transition: transform 220ms var(--spring); }
.hand li:first-child { margin-left: 0; }
.hand li:hover, .hand li:has(:focus-visible) { transform: rotate(0deg) translateY(-22px) scale(1.1); z-index: 2; }
/* Handkarten sind die Hauptsache: größer, mit Wirkung drauf, mit Lichtkante gegen das Brett */
.hand .tcard { box-shadow: 0 0.45em 0 rgba(2, 5, 14, 0.55), 0 0 0 2px rgba(5, 8, 15, 0.9), 0 -6px 26px rgba(0, 0, 0, 0.5); }
.hand .tcard.r-rare { box-shadow: 0 0.45em 0 rgba(2, 5, 14, 0.55), 0 0 0 2px rgba(5, 8, 15, 0.9), 0 0 22px rgba(100, 170, 255, 0.6); }
.hand .tcard.r-legend { box-shadow: 0 0.45em 0 rgba(2, 5, 14, 0.55), 0 0 0 2px rgba(5, 8, 15, 0.9), 0 0 26px rgba(242, 193, 78, 0.75); }
.hand .tcard .tc-text { display: block; font-size: max(11px, 0.72em); padding: 0 0.5em 0.6em; line-height: 1.25; }
.hand .tcard .tc-name { min-height: 0; padding-bottom: 0.2em; }
.hand .tcard .tc-in { grid-template-rows: auto auto auto 1fr; min-height: 14.2em; }
.hand .empty { margin: 0 0 8px; padding: 8px 16px; transform: none; background: rgba(8, 14, 34, 0.8); border: 2px dashed var(--line-strong); border-radius: 999px; color: var(--text-2); font-size: 14px; }
.hand .empty:hover { transform: none; }
.game.over .handzone, .game.over .ticker { display: none; }
/* Beim Umsehen bleibt die Aktion stehen (man will würfeln können, während man schaut); nur die Abdunklung und die Laufzeile weichen */
.game.peek .ticker { display: none; }

/* ---------- Blatt (Karte, Regeln, Statistik, Verlauf, Spieler) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 20; display: grid; align-items: end; background: rgba(3, 6, 14, 0.74); }
.sheet {
  max-height: 90dvh; overflow-y: auto; gap: 14px; align-content: start; text-align: left; box-shadow: none;
  padding: 16px 16px calc(20px + var(--safe-b)); width: 100%; max-width: 560px; margin: 0 auto;
  border-width: 3px; border-bottom: 0; border-radius: 26px 26px 0 0; /* Grundform: .win */
  animation: sheet-in 300ms var(--ease);
}
@keyframes sheet-in { from { transform: translateY(48px); opacity: 0; } }
.sheet h2 { font: 700 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.sheet h3 { font: 500 13px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-top: 4px; }
.sheet .p-note { color: var(--text-2); font-size: 14px; }
.sheet .chips { justify-content: flex-start; }
.tabs { position: sticky; top: -16px; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 44px; gap: 6px; margin: -16px -16px 0; padding: 12px 12px 10px; background: var(--panel); border-bottom: 2px solid var(--line); }
.tabs button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); font: 700 14px/1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; display: grid; place-items: center; padding: 0 2px; }
.tabs button[aria-selected="true"] { background: var(--panel-3); color: var(--text); }
.sheet .rule { display: grid; gap: 6px; padding: 14px; background: var(--panel-2); border-radius: 16px; border-left: 8px solid var(--gold); }
.sheet .rule.digital { border-left-color: var(--blue); }
.sheet .rule .o-name { font: 700 18px/1.1 var(--display); text-transform: uppercase; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sheet .rule .o-kind { font: 500 12px/1 var(--display); letter-spacing: 0.1em; color: var(--peach); white-space: nowrap; }
.sheet .rule p { color: var(--text-2); font-size: 15px; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 14px; color: var(--text-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 16px; border-radius: 50%; background: var(--lc); flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.when-line { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.when-line svg { width: 16px; height: 16px; flex: none; }

/* Felder erklärt */
.field-list { display: grid; gap: 8px; }
.field-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 12px 14px; background: var(--panel-2); border-radius: 16px; }
.field-list i, .field-head i { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--lc); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55), 0 3px 0 var(--shade); }
.field-list b { font: 700 17px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.field-list p { color: var(--text-2); font-size: 15px; }
.field-head { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.field-head i { width: 56px; height: 56px; }
.field-head p { color: var(--text-2); font-size: 14px; }
.field-text { font-size: 18px; line-height: 1.4; padding: 14px; background: var(--panel-2); border-radius: 16px; }
span.chip { cursor: default; }
.chip.wf.out { opacity: 0.5; }
.chip.wf.now { background: var(--paper); color: var(--ink); border-color: var(--gold); }

/* Statistik */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.awards li { display: grid; gap: 4px; justify-items: center; padding: 12px 6px; background: var(--panel-2); border-radius: 16px; text-align: center; }
.awards .av { width: 44px; height: 44px; }
.awards small { font: 500 12px/1.15 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.awards b { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.awards span { font-size: 13px; color: var(--text-2); }
.stat-list { display: grid; gap: 8px; }
.stat { background: var(--panel-2); border-radius: 16px; overflow: hidden; }
.stat summary { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; cursor: pointer; list-style: none; min-height: 60px; }
.stat summary::-webkit-details-marker { display: none; }
.stat .av { width: 44px; height: 44px; }
.stat .s-name { display: grid; gap: 6px; min-width: 0; font-weight: 600; }
.stat .s-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.stat .s-bar i { display: block; height: 100%; width: var(--pct); background: var(--c); border-radius: 4px; }
.stat .s-num { display: grid; justify-items: end; font: 700 24px/1 var(--display); }
.stat .s-num small { font: 400 12px/1.2 var(--body); color: var(--text-2); }
.stat dl { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; margin: 0; padding: 4px 14px 14px; font-size: 14px; }
.stat dl div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.stat dt { color: var(--text-2); }
.stat dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Verlauf */
.log { display: grid; gap: 2px; }
.log li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); font-size: 15px; }
.log li:first-child { border-top: 0; }
.log time { color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.log .round { grid-template-columns: 1fr; font: 700 13px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); padding-top: 14px; }

/* Spieler-Blatt */
.pl-head { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.pl-head .av { width: 72px; height: 72px; }
.pl-head p { color: var(--text-2); font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facts li { display: grid; gap: 4px; padding: 12px 8px; background: var(--panel-2); border-radius: 14px; text-align: center; font: 700 22px/1 var(--display); }
.facts small { font: 400 12px/1.2 var(--body); color: var(--text-2); }

/* ---------- Trink-Ansage für mich ---------- */
/* Gleiches Muster wie jede Aktion: Brett dunkel, Kasten mittig */
.drink { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 50%, rgba(3, 6, 14, 0.62), rgba(3, 6, 14, 0.86)); animation: fade 220ms var(--ease); }
.drink-card {
  --fc: var(--gold); justify-items: center; gap: 8px; width: min(100%, 340px); padding: 22px 18px 20px; border-width: 3px; border-radius: 24px; /* Grundform: .win */
  animation: pop-in 320ms var(--spring);
}
@keyframes pop-in { from { opacity: 0; transform: scale(0.9); } }
.drink .d-num { font: 700 clamp(96px, 30vw, 132px)/0.86 var(--display); color: var(--gold); text-shadow: 0 6px 0 rgba(0, 0, 0, 0.35); }
.drink .d-unit { font: 700 28px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.drink .d-why { font-size: 15px; color: var(--text-2); max-width: 30ch; margin-bottom: 8px; }

.report-bar {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(64px + var(--safe-t)); z-index: 15; width: min(calc(100vw - 20px), 420px);
  display: grid; gap: 10px; padding: 14px;
  background: var(--paper); color: var(--ink); border: 3px solid var(--coral); border-radius: 20px; box-shadow: 0 8px 0 var(--shade); font-weight: 600;
}
.report-bar .btn { min-height: 46px; font-size: 15px; }
.report-bar .btn.ghost { --fg: var(--ink); box-shadow: inset 0 0 0 2px rgba(20, 33, 61, 0.4); }
.report-bar small { font-weight: 400; color: #4d5461; }

.toast, .offline {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 40; max-width: min(92vw, 420px);
  padding: 10px 16px; border-radius: 14px; font-weight: 600; text-align: center; box-shadow: 0 5px 0 var(--shade);
}
.toast { top: calc(66px + var(--safe-t)); background: var(--paper); color: var(--ink); }
.offline { top: calc(64px + var(--safe-t)); background: var(--red); color: #fff; }

/* ---------- Ende ---------- */
.end-list { display: grid; gap: 6px; text-align: left; }
.end-list li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: var(--panel-2); border-radius: 12px; font-weight: 600; }
.end-list .av { width: 36px; height: 36px; }
.end-list li span:last-child { color: var(--text-2); font-weight: 400; font-size: 14px; }

/* ---------- Breite Bildschirme ---------- */
@media (min-width: 900px) {
  .lobby { padding-top: 64px; }
  .home { padding-top: 40px; gap: 22px; }
  .rail { left: 16px; top: 16px; gap: 10px; }
  .rail button { padding: 4px 16px 4px 4px; background: rgba(8, 14, 34, 0.82); border-radius: 999px; }
  .rail .av { width: 48px; height: 48px; box-shadow: none; }
  .rail .r-txt { display: grid; }
  .rail .r-txt b { font-size: 15px; line-height: 1.2; }
  .rail .r-txt small { font-size: 13px; color: var(--text-2); }
  .tools { right: 16px; top: 16px; }
  .fabs { right: 16px; bottom: 16px; } /* ganz unten in der Ecke: die Hand liegt mittig und reicht nicht bis hierher */
  .tool { width: auto; padding: 0 16px 0 12px; justify-content: flex-start; }
  .tool .t-label { display: block; }
  .turnchip { top: 16px; max-width: 520px; gap: 10px; padding-right: 16px; }
  .turnchip .av { width: 44px; height: 44px; }
  .turnchip .tc-time svg { display: block; width: 16px; height: 16px; }
  .action { width: 440px; top: calc(50% - 70px); max-height: calc(100dvh - 400px); }
  .action.bare { top: 50%; }
  .turnchip .tc-name { font-size: 17px; }
  .turnchip .tc-time { font-size: 20px; }
  .action.slim { width: 320px; top: 50%; }
  .handzone { height: 250px; }
  .hand li { margin-left: -30px; }
  .hand .tcard { --w: 136px; }
  .ticker { bottom: 250px; }
  .toast { top: 84px; }
  .sheet-wrap { align-items: center; }
  .sheet { border-bottom: 3px solid var(--edge); border-radius: 26px; max-height: 84dvh; }
  .flash.bare .tcard { --w: 240px; }
}
@media (max-height: 640px) {
  .action, .action.slim, .action.bare { top: calc(50% - 20px); max-height: calc(100dvh - 216px); }
  .roll-btn { width: 108px; height: 108px; }
  .fabs { bottom: 154px; }
  .handzone { height: 150px; }
  .hand .tcard { --w: 84px; }
  .hand .tcard .tc-text { display: none; }
  .hand .tcard .tc-in { min-height: 0; }
  .ticker { bottom: 146px; }
}

/* ---------- Handy im Querformat: wenig Höhe, viel Breite ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  /* Spieler links in zwei Spalten, kleiner; Menü rechts in zwei Spalten */
  .rail { left: calc(6px + env(safe-area-inset-left, 0px)); top: 6px; grid-template-columns: 36px; gap: 4px; } /* Querformat: Spieler untereinander, nie nebeneinander */
  .rail button { padding: 0; background: none; }
  .rail .av { width: 36px; height: 36px; }
  .rail .r-txt { display: none; }
  .rail li.active button { transform: scale(1.08); }
  .tools { right: calc(6px + env(safe-area-inset-right, 0px)); top: 6px; gap: 5px; }
  .fabs { bottom: 8px; grid-auto-flow: column; }
  .fab { width: 44px; height: 44px; }
  .tool { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .tool .t-label { display: none; }
  .turnchip { top: 6px; max-width: calc(100vw - 300px); padding: 3px 10px 3px 3px; }
  .turnchip .av { width: 30px; height: 30px; }
  .turnchip .tc-sub { display: none; }
  .effects { top: 46px; }
  /* Aktion: breit statt hoch, mittig, lässt unten Platz für die Hand */
  .action, .action.slim { top: calc(50% - 22px); width: min(calc(100vw - 230px), 520px); max-height: calc(100dvh - 118px); padding: 12px 14px 14px; gap: 8px; }
  .action.bare { top: calc(50% - 6px); gap: 8px; width: auto; }
  .action .p-title { font-size: 22px; }
  .action .p-text { font-size: 16px; padding: 8px 12px; }
  .action.bare .p-title { font-size: 18px; padding: 5px 16px; }
  .roll-btn { width: 96px; height: 96px; font-size: 16px; }
  .roll-btn svg { width: 32px; height: 32px; }
  .options { grid-template-columns: 1fr 1fr; }
  .pick-row .tcard { --w: 88px; }
  .pick-info { min-height: 0; padding: 8px 12px; }
  /* Hand: kleine Karten ohne Text am unteren Rand */
  .handzone { height: 96px; padding-bottom: 4px; }
  .hand .tcard { --w: 70px; }
  .hand .tcard .tc-text, .hand .tcard .tc-line { display: none; }
  .hand .tcard .tc-in { min-height: 0; }
  .hand li { margin-left: -18px; }
  .hand li:hover, .hand li:has(:focus-visible) { transform: translateY(-34px) scale(1.25); }
  .ticker { bottom: 100px; min-height: 32px; font-size: 13px; }
  /* Blätter und Bühnen nutzen die volle Höhe */
  .sheet { max-height: 96dvh; max-width: 640px; padding-top: 12px; }
  .tcard.big { --w: 170px; }
  .dice-card { padding: 12px 20px; gap: 8px; }
  .die { width: 64px; height: 64px; padding: 9px; border-radius: 14px; }
  .dice-sum { min-height: 36px; font-size: 16px; }
  .drink-card { padding: 12px 18px; gap: 4px; }
  .drink .d-num { font-size: 72px; }
  .drink .d-unit { font-size: 20px; }
  .fx-art { width: min(34vh, 150px); }
  .fx-ring { display: none; }
  .fx-in { margin-top: -4vh; gap: 6px; }
  .flash { width: min(60vw, 340px); padding: 12px; }
  .flash .p-title { font-size: 22px; }
  .toast, .offline { top: 50px; }
  .report-bar { top: 50px; }
  /* Start und Lobby: einspaltig, nur enger gesetzt */
  .home, .lobby { padding-top: 14px; gap: 12px; }
  /* Start quer: Logo links, Formular rechts, damit alles auf eine Höhe passt */
  .home { max-width: 780px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; padding-top: 8px; }
  .home > * { grid-column: 1; }
  .home .home-form { grid-column: 2; grid-row: 1 / span 4; padding: 12px 16px; gap: 8px; }
  .home .home-form input, .home .home-form .btn { min-height: 46px; }
  .fine { text-align: left; }
  .brand h1 { font-size: 44px; }
  .logo .mark { width: 52px; }
  .code-big { font-size: 56px; }
  .qr-wrap img { width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .hand li { transform: none; }
}

/* ---------- Würfelwurf in 3D (public/js/dice.js) ---------- */
/* Zwei Quader fallen von oben, prallen auf, rollen aus. Während des Wurfs ist die Tafel unsichtbar, danach erscheint sie mit dem Ergebnis. */
.d3-row { --ds: 88px; display: flex; gap: 34px; padding: 10px 6px 16px; perspective: 700px; }
.d3 { position: relative; width: var(--ds); height: var(--ds); }
.d3-move, .d3-tilt, .d3-cube { position: absolute; inset: 0; display: block; transform-style: preserve-3d; }
.d3-tilt { transform: rotateX(-24deg) rotateY(-18deg); }
.d3-shadow { position: absolute; left: 4%; right: 4%; bottom: -22%; height: 26%; border-radius: 50%; background: rgba(0, 0, 0, 0.55); filter: blur(6px); }
.d3 .d3-face { position: absolute; inset: 0; width: auto; height: auto; padding: 14%; gap: 5%; border-radius: 14%; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2) !important; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.d3-face.f1 { transform: translateZ(calc(var(--ds) / 2)); }
.d3-face.f6 { transform: rotateY(180deg) translateZ(calc(var(--ds) / 2)); }
.d3-face.f2 { transform: rotateY(90deg) translateZ(calc(var(--ds) / 2)); }
.d3-face.f5 { transform: rotateY(-90deg) translateZ(calc(var(--ds) / 2)); }
.d3-face.f3 { transform: rotateX(90deg) translateZ(calc(var(--ds) / 2)); }
.d3-face.f4 { transform: rotateX(-90deg) translateZ(calc(var(--ds) / 2)); }
/* Die Würfel liegen frei auf der dunklen Bühne (in jedem Thema gleich); die Tafel mit dem Ergebnis erscheint darunter, sobald sie liegen */
.dice-wrap { display: grid; justify-items: center; gap: 18px; }
.dice-wrap .dice-card { min-height: 0; animation: pop 260ms var(--spring); }
.dice-wrap .dice-card[hidden] { display: grid; visibility: hidden; animation: none; }
.dice-wrap.pasch .d3-face { box-shadow: inset 0 0 0 4px var(--gold) !important; }
@keyframes pop { from { transform: scale(0.8); opacity: 0; } }
@media (orientation: landscape) and (max-height: 520px) { .d3-row { --ds: 60px; gap: 26px; } }

/* ---------- Leiste "gilt gerade": Ereignisse und Regeln als lesbare Knöpfe (Owner 2026-11-18) ---------- */
.effects { top: calc(70px + var(--safe-t)); gap: 8px; }
.effects li { padding: 0; background: none; border: 0; border-radius: 0; }
.fx-chip { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 14px 5px 10px; background: var(--panel); color: var(--text); border: 2px solid var(--gold); border-radius: 999px; box-shadow: 0 3px 0 var(--shade); font: 600 13px/1.2 var(--body); white-space: nowrap; cursor: pointer; touch-action: manipulation; }
.fx-chip svg { flex: none; width: 18px; height: 18px; color: var(--gold); }
.fx-chip b { font: 700 14px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.fx-chip span { color: var(--text-2); }
.fx-chip.event { border-color: var(--sky); }
.fx-chip.event svg { color: var(--sky); }
body[data-theme="strand"] .effects { top: calc(96px + var(--safe-t)); }
body[data-theme="strand"] .fx-chip { background: #fff7e0; color: #3a2412; border-color: #8a5a2b; }
body[data-theme="strand"] .fx-chip span { color: #6b4a2a; }
body[data-theme="strand"] .fx-chip svg { color: #b4541a; }
body[data-theme="neon"] .fx-chip { border-radius: 0; background: #05020f; }
body[data-theme="arcade"] .fx-chip { border-radius: 0; background: #120a04; }
@media (orientation: landscape) and (max-height: 520px) { .effects, body[data-theme="strand"] .effects { top: 50px; } .fx-chip { min-height: 30px; padding: 3px 10px 3px 8px; } }

/* ---------- Blätter: X oben rechts ---------- */
/* Das Blatt ist ein Raster: das X steht in der ersten Zeile rechts und zieht den Inhalt mit negativem Rand neben sich hoch */
.sheet-x { position: sticky; top: 0; justify-self: end; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -6px -58px 0; padding: 0; background: var(--panel-3); color: var(--text); border: 2px solid var(--edge); border-radius: 50%; cursor: pointer; touch-action: manipulation; }
.sheet-x svg { width: 22px; height: 22px; }
.tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-right: 62px; z-index: 2; }
body[data-theme="neon"] .sheet-x, body[data-theme="arcade"] .sheet-x { border-radius: 0; }
body[data-theme="strand"] .sheet-x { background: #fff7e0; color: #3a2412; border-color: #8a5a2b; }

/* ---------- Trink-Ansage: woraus sich die Zahl zusammensetzt ---------- */
.d-lines { display: grid; gap: 4px; width: 100%; max-width: 320px; margin: 4px 0 10px; padding: 10px 12px; list-style: none; text-align: left; background: rgba(0, 0, 0, 0.28); border-radius: 12px; font-size: 15px; line-height: 1.25; }
.d-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.d-lines li b { font: 700 17px/1 var(--display); }
.d-lines li small { display: block; font-size: 13px; color: var(--text-2); }
.d-lines li.mod { color: var(--gold); padding-left: 12px; }
.sheet > h2 { padding-right: 48px; }

/* Handy hochkant: die vier Menüknöpfe stehen als 2 x 2 oben rechts (106 px hoch), damit ein hoher Aktionskasten
   (Abstimmung, Kartenwahl) sie nie verdeckt. Die Zug-Anzeige bleibt dazwischen und kürzt lange Namen. */
@media (max-width: 899px) and (orientation: portrait) {
  .tools { grid-template-columns: repeat(2, 44px); }
  /* mittig zwischen Spielerleiste (links, 60 px) und Menü (rechts, 108 px) */
  .turnchip, .effects { left: calc(60px + (100vw - 168px) / 2); }
  .turnchip { max-width: calc(100vw - 176px); }
  .effects { max-width: calc(100vw - 176px); }
}

/* ---------- Lobby in klar getrennten Abschnitten ---------- */
.lobby-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lobby-share { display: flex; gap: 8px; flex-wrap: wrap; }
.lobby-share .btn { gap: 8px; }
.lobby-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r-card); }
.lobby-sec > .sub { margin-top: 0; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.lobby-sec .lobby-players li, .lobby-sec .avatar-pick button { background: var(--panel-2); }
.sub3 { font: 600 13px/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.bot-box { display: grid; gap: 8px; padding-top: 12px; border-top: 2px dashed var(--line); }
.bot-box[hidden] { display: none; }
.lobby-actions .hint { text-align: center; }

/* Kritische Aktion (Raum schließen, Spiel verlassen): eigene Form - achteckig wie ein Stoppschild, rot schraffiert, mit Warnzeichen */
body .btn.critical.critical {
  gap: 10px; border: 0; border-radius: 0; box-shadow: none; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  background: repeating-linear-gradient(135deg, #a31414 0 14px, #c72222 14px 28px);
  -webkit-clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
}
body .btn.critical.critical::before, body .btn.critical.critical::after { content: none; }
body .btn.critical.critical:active { transform: scale(0.98); }
.btn.critical svg { flex: none; }

/* QR-Code als Pop-up */
.qr-dialog { margin: auto; width: min(92vw, 380px); padding: 20px; } /* Grundform: .win, offen/zu: ui.css */
.qr-dialog[open] { display: grid; gap: 14px; justify-items: center; animation: pop 220ms var(--spring); }
.qr-dialog::backdrop { background: rgba(3, 6, 14, 0.82); }
.qr-dialog h2 { justify-self: start; padding-right: 52px; font: 700 22px/1.1 var(--display); text-transform: uppercase; }
.qr-dialog .sheet-x { position: absolute; top: 12px; right: 12px; margin: 0; }
.qr-dialog .qr-wrap { width: 100%; box-shadow: none; }
.qr-dialog .qr-wrap img { width: min(260px, 68vw); }
.qr-dialog .qr-wrap b { font: 700 22px/1 var(--display); letter-spacing: 0.2em; color: var(--text); margin-left: 6px; }

/* ---------- Tooltip ---------- */
.tip {
  position: fixed; z-index: 70; max-width: min(260px, calc(100vw - 16px)); padding: 8px 12px; pointer-events: none;
  background: #f6ead2; color: #14213d; font: 600 13px/1.35 var(--body); letter-spacing: 0; text-transform: none; text-align: left;
  border-radius: 10px; box-shadow: 0 0 0 2px #14213d, 0 5px 0 rgba(0, 0, 0, 0.45), 0 12px 24px rgba(0, 0, 0, 0.4);
  animation: tipIn 140ms var(--ease) both;
}
.tip::after { content: ""; position: absolute; left: var(--ax, 50%); top: 100%; width: 12px; height: 12px; background: inherit; box-shadow: 2px 2px 0 #14213d; transform: translate(-50%, -50%) rotate(45deg); }
.tip.below::after { top: 0; box-shadow: -2px -2px 0 #14213d; }
@keyframes tipIn { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Auftakt: Ladebild, Reihenfolge, Startkarten ---------- */
.game.pre :is(.rail, .tools, .fabs, .handzone, .turnchip, .effects, .ticker, .action, .scrim) { visibility: hidden; }
.intro { position: absolute; inset: 0; z-index: 14; display: grid; place-items: center; padding: 20px; overflow: hidden; }
.intro[hidden] { display: none; }
.intro.load { background: radial-gradient(60vmax 46vmax at 88% -8%, rgba(0, 57, 150, 0.6), transparent 70%), radial-gradient(50vmax 40vmax at -10% 108%, rgba(226, 105, 75, 0.28), transparent 70%), #070d13; }
.intro.stage { background: radial-gradient(circle at 50% 46%, rgba(3, 6, 14, 0.5), rgba(3, 6, 14, 0.86)); animation: fade 500ms var(--ease); }
.ld { display: grid; justify-items: center; gap: 14px; text-align: center; }
.ld-mark { width: min(42vw, 170px); height: auto; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.4)); animation: ldBob 1.2s ease-in-out infinite; }
.ld-fill { transform-box: fill-box; transform-origin: 50% 100%; animation: ldFill 2.3s cubic-bezier(0.3, 0.7, 0.3, 1) both; }
.ld-foam { animation: ldFoam 2.3s both; }
.ld-dot { animation: ldDot 0.3s both; animation-delay: calc(0.5s + var(--i) * 0.24s); }
.ld-pawn { transform-box: fill-box; transform-origin: 50% 50%; animation: ldPawn 0.5s ease-in-out infinite alternate; }
.ld-name { font: 700 clamp(40px, 12vw, 72px)/0.9 var(--display); text-transform: uppercase; color: #f5f5fa; text-shadow: 0 5px 0 #003996; }
.ld-text { min-height: 1.4em; color: #c9d3ea; }
.ld-bar { width: min(70vw, 280px); height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.ld-bar i { display: block; height: 100%; border-radius: inherit; background: #e2694b; transform-origin: 0 50%; animation: ldBar 2.4s linear both; }
@keyframes ldBar { from { transform: scaleX(0); } }
@keyframes ldFill { from { transform: scaleY(0); } }
@keyframes ldFoam { 0%, 78% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ldDot { from { opacity: 0; transform: scale(0); } }
@keyframes ldPawn { to { transform: translateY(-5px); } }
@keyframes ldBob { 50% { transform: translateY(-6px) rotate(-2deg); } }
.intro-box { gap: 10px; width: min(100%, 440px); padding: 18px; animation: pop 260ms var(--spring); } /* Grundform: .win */
.ord { display: grid; gap: 6px; text-align: left; }
.ord li { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) auto 30px; align-items: center; gap: 8px; min-height: 48px; padding: 4px 10px 4px 6px; background: var(--panel-2); border: 2px solid transparent; border-radius: 14px; }
.ord li .av { width: 36px; height: 36px; }
.ord li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ord-rank { font: 700 18px/1 var(--display); color: var(--text-2); text-align: center; }
.ord li.first { border-color: var(--gold); }
.ord li.first .ord-rank { color: var(--gold); }
.ord .ord-dice { min-width: 66px; min-height: 30px; }
.ord .ord-dice.d3-row { --ds: 28px; gap: 10px; padding: 0; perspective: 320px; }
.ord-sum { font: 700 22px/1 var(--display); text-align: right; opacity: 0; }
.ord li.rolled .ord-sum { opacity: 1; animation: pop 260ms var(--spring); }
.ord-cards { display: grid; place-items: center; width: 26px; height: 34px; border-radius: 5px; background: #f6ead2; color: #14213d; font: 700 16px/1 var(--display); box-shadow: 0 0 0 1.5px #14213d, 0 2px 0 rgba(0, 0, 0, 0.4); rotate: -6deg; }
.ord-cards[hidden] { display: none; }
.ord.dealing .ord-dice, .ord.dealing .ord-sum { display: none; }
.ord.dealing li { grid-template-columns: 22px 36px minmax(0, 1fr) auto; }
.ord[hidden] { display: none; }
.deal-mine { display: flex; justify-content: center; gap: 8px; padding: 8px 0; perspective: 800px; }
.deal-mine > span { animation: dealIn 460ms var(--spring) both; animation-delay: calc(var(--i) * 170ms); }
.deal-mine .tcard { --w: min(27vw, 120px); }
@keyframes dealIn { from { opacity: 0; transform: translateY(40px) rotateY(90deg) scale(0.7); } }
@media (orientation: landscape) and (max-height: 520px) {
  .intro { padding: 8px; }
  .intro-box { width: min(100%, 620px); padding: 10px 14px; gap: 6px; }
  .ord { grid-template-columns: 1fr 1fr; }
  .ord li { min-height: 40px; }
  .ld-mark { width: 90px; } .ld { gap: 8px; } .ld-name { font-size: 36px; }
  .deal-mine .tcard { --w: 84px; }
}

/* ---------- Spielerleiste: Kartenzahl als kleine Karte am Bild, Name darunter ---------- */
.rail .r-cards { position: absolute; left: -5px; bottom: -5px; z-index: 1; display: grid; place-items: center; width: 17px; height: 22px; border-radius: 4px; background: #f6ead2; color: #14213d; font: 700 12px/1 var(--display); box-shadow: 0 0 0 1.5px #14213d, 0 2px 0 rgba(0, 0, 0, 0.4); rotate: -8deg; }
.rail .r-name { display: none; }
@media (max-width: 899px) and (orientation: portrait) {
  .rail { gap: 6px; }
  .rail button { flex-direction: column; align-items: flex-start; gap: 2px; }
  .rail .r-name { display: block; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 10px/1.15 var(--body); color: #fff; text-shadow: 0 1px 2px #000, 0 0 5px #000; }
  .rail .r-cards { bottom: 9px; }
  .rail .r-status { bottom: 10px; }
  /* ab 7 Spielern ist kein Platz für Namen: dann nur Bild und Kartenzahl */
  .rail:has(li:nth-child(7)) .r-name { display: none; }
  .rail:has(li:nth-child(7)) .r-cards { bottom: -5px; }
  .rail:has(li:nth-child(7)) .r-status { bottom: -3px; }
}

/* ---------- Hand: was jetzt spielbar ist, leuchtet und trägt ein Schild; der Rest tritt zurück ---------- */
.hand li { position: relative; }
.hand.has-can li:not(.can) .tcard { filter: saturate(0.5) brightness(0.68); }
.hand li.can { transform: rotate(var(--rot, 0deg)) translateY(calc(var(--drop, 0px) - 14px)); }
body .hand li.can .tcard { box-shadow: 0 0 0 3px var(--gold), 0 0 22px 5px rgba(242, 193, 78, 0.8), 0 0.45em 0 rgba(2, 5, 14, 0.55) !important; animation: canGlow 1.6s ease-in-out infinite; }
@keyframes canGlow { 50% { box-shadow: 0 0 0 3px #fff, 0 0 32px 9px rgba(242, 193, 78, 1), 0 0.45em 0 rgba(2, 5, 14, 0.55); } }
.can-tag { position: absolute; z-index: 3; left: 50%; top: -12px; translate: -50% 0; padding: 4px 8px 3px; border-radius: 99px; background: var(--gold); color: #1d1500; font: 700 11px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 0 2px #1d1500, 0 2px 0 rgba(0, 0, 0, 0.5); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { body .hand li.can .tcard, .ld-mark, .ld-pawn { animation: none; } }

/* ---------- Leiste "gilt gerade": drei Bereiche mit Überschrift (Regeln, Für alle, Du) ---------- */
.effects { align-items: center; }
.effects li.fx-lab { padding: 0 0 0 6px; background: none; border: 0; border-radius: 0; box-shadow: none; font: 700 11px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px #000, 0 0 6px #000; }
.fx-chip.self { border-color: #5fd6a2; }
.fx-chip.rule b { font-size: 16px; }

/* ---------- Blätter: Abschnitte im Spielerblatt, Erklärung im Regelblatt ---------- */
.sheet .sec-h { margin-top: 6px; font: 700 14px/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.sheet .rule.self { border-left-color: #5fd6a2; }
.rule-names { display: flex; flex-wrap: wrap; gap: 6px; }
.rule-names li { padding: 4px 10px; border-radius: 99px; background: var(--panel-2); font-weight: 600; font-size: 14px; }
.rule-how { display: grid; gap: 8px; padding: 12px 14px; border: 2px dashed var(--line-strong); border-radius: 14px; font-size: 14px; color: var(--text-2); }
.rule-how > p > b { display: block; margin-bottom: 2px; color: var(--text); font: 700 15px/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.rule-how ul { display: grid; gap: 6px; }
.rule-how li b { margin-right: 6px; font: 700 12px/1 var(--display); letter-spacing: 0.1em; color: var(--peach); }
.sheet .rule .rule-by, .sheet .rule .rule-do { font-size: 13px; }
.sheet .rule .rule-do { font-style: italic; }
.rail { z-index: 5; } /* über der Abdunkelung: wer mitspielt und wie viele Karten er hat, bleibt immer lesbar */
.hand li.can .tcard { filter: drop-shadow(0 0 9px rgba(242, 193, 78, 0.95)); } /* folgt auch geschnittenen Kartenformen (Neon, Arcade) */

/* ===== Design-Auswahl des Owners vom 2026-11-19 ===== */
/* Start: zwei große Wege, Logo mittig */
.brand { justify-items: center; text-align: center; }
.brand-top { width: 100%; text-align: left; }
.logo { flex-direction: column; gap: 10px; }
.logo .mark { width: clamp(84px, 25vw, 124px); }
.lede { max-width: 34ch; }
.ways, .join-step { display: grid; gap: 10px; }
.ways .btn.small, .join-step .btn.small { width: 100%; gap: 8px; }
.join-step .row.two { grid-template-columns: 1fr 1fr; }
@media (orientation: landscape) and (max-height: 520px) {
  .brand { justify-items: start; text-align: left; }
  .logo { flex-direction: row; }
  .logo .mark { width: 52px; }
  .ways, .join-step { gap: 6px; }
}
/* Sprach-Menü: Knopf mit der aktuellen Flagge, darunter die Flaggen zur Wahl */
.langmenu { position: relative; flex: none; }
#langBtn { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border: 2px solid var(--edge); border-radius: 12px; background: var(--panel); color: var(--text); cursor: pointer; }
#langNow { display: block; }
#langNow .flag, .lang-list .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.lang-list { position: absolute; z-index: 8; right: 0; top: calc(100% + 6px); display: grid; gap: 4px; padding: 6px; background: var(--panel); border: 2px solid var(--edge); border-radius: 12px; box-shadow: 0 8px 0 var(--shade); animation: pop 160ms var(--spring); }
.lang-list button { display: grid; place-items: center; width: 52px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.lang-list button[aria-pressed="true"] { background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--gold); }
/* Lobby: Figur-Knopf in der eigenen Zeile, Testhilfen abgesetzt */
.lobby-players .btn.small { min-height: 40px; padding: 4px 12px; font-size: 13px; white-space: nowrap; }
.temp-box { display: grid; gap: 10px; padding: 12px; border: 2px dashed var(--line); border-radius: 14px; }
.char-dialog { width: min(94vw, 460px); }
.char-dialog .avatar-pick { width: 100%; }
.scan-video { width: 100%; max-height: 50vh; border-radius: 12px; background: #000; object-fit: cover; }
/* Gedrückt halten: roter Knopf in der normalen Knopfform, der sich beim Halten füllt */
body .btn.hold.hold {
  --face: #5a1818; --fg: #ffd9d2; position: relative; overflow: hidden; flex-direction: column; gap: 2px; min-height: 58px;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.hold-fill { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform 160ms var(--ease); }
.btn.hold.holding .hold-fill { transform: scaleX(1); transition: transform 1200ms linear; }
.btn.hold.holding { color: #fff; }
.hold-in { position: relative; display: flex; align-items: center; gap: 8px; }
.hold-hint { position: relative; font: 400 12px/1.1 var(--body); letter-spacing: 0; text-transform: none; opacity: 0.85; }
.btn.ghost.warn { color: #ff9c8c; gap: 8px; }
.btn[hidden] { display: none; }
/* Tooltip: dunkle Karte mit Titel */
.tip { display: grid; gap: 2px; max-width: min(250px, calc(100vw - 16px)); padding: 9px 12px; background: #0b1428; color: #c9d3ea; font: 400 13px/1.35 var(--body); border-radius: 10px; box-shadow: 0 0 0 2px var(--gold), 0 6px 0 rgba(0, 0, 0, 0.5), 0 14px 26px rgba(0, 0, 0, 0.45); }
.tip b { font: 700 13px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.tip::after { box-shadow: 2px 2px 0 var(--gold); }
.tip.below::after { box-shadow: -2px -2px 0 var(--gold); }
/* Startkarten groß aufdecken */
.deal-mine { gap: 10px; padding: 12px 0 6px; }
.deal-mine > span { animation-duration: 520ms; animation-delay: calc(250ms + var(--i) * 450ms); }
.deal-mine .tcard { --w: min(28vw, 132px); }
/* Statuskarte unten links: der eigene Status, dauerhaft mit Name, Wirkung und Dauer */
.mystatus { position: absolute; z-index: 6; left: calc(8px + env(safe-area-inset-left, 0px)); bottom: calc(204px + var(--safe-b)); width: min(46vw, 190px); }
.mystatus button { display: grid; gap: 6px; width: 100%; padding: 8px 10px; text-align: left; background: var(--panel); color: var(--text); border: 2px solid #5fd6a2; border-radius: 14px; box-shadow: 0 4px 0 var(--shade); cursor: pointer; }
.ms-lab { font: 700 11px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: #5fd6a2; }
.ms-item { display: grid; gap: 1px; font-size: 12px; line-height: 1.25; color: var(--text-2); }
.ms-item b { font: 700 13px/1.1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.game.pre .mystatus, .game.over .mystatus { visibility: hidden; }
@media (min-width: 900px) { .mystatus { left: 16px; bottom: 16px; width: 230px; } .ms-item { font-size: 13px; } }
@media (orientation: landscape) and (max-height: 520px) { .mystatus { bottom: 8px; width: 170px; } .ms-item span { display: none; } }
body[data-theme="neon"] .mystatus button, body[data-theme="arcade"] .mystatus button { border-radius: 0; }
/* Start passt auf eine Bildschirmhöhe: Logo und Schriftzug richten sich auch nach der Höhe */
.logo .mark { width: clamp(56px, min(25vw, 13vh), 124px); }
.brand h1 { font-size: clamp(38px, min(14.5vw, 8vh), 92px); }
@media (max-height: 760px) { .home { gap: 12px; padding-top: calc(8px + var(--safe-t)); } .brand { gap: 6px; } .lede { font-size: 15px; line-height: 1.3; } .ways, .join-step { gap: 8px; } .home-form input { min-height: 48px; } }
@media (max-height: 640px) and (orientation: portrait) { .lede { display: none; } }
.mystatus { z-index: 13; } /* über dem Verlauf hinter der Hand, sonst liegt sie am Desktop im Dunkeln */
/* Eigene Zeile in der Lobby: der Knopf "Figur ändern" steht in einer zweiten Zeile, damit der Name Platz hat */
.lobby-players li.me { grid-template-columns: 44px 1fr auto; row-gap: 8px; }
.lobby-players li.me [data-char] { grid-column: 1 / -1; width: 100%; }
@media (min-width: 560px) { .lobby-players li.me { grid-template-columns: 44px 1fr auto auto; } .lobby-players li.me [data-char] { grid-column: auto; width: auto; } }

/* Lobby 2026-11-19 (Owner): Raumname und Raumcode getrennt, "Teilen" oben rechts als Menü (Link, QR-Code), "Spieler einladen" nach dem letzten Spieler, eigene Zeile ganz anklickbar, Einstellungen zugeklappt */
.lobby-head { align-items: flex-start; flex-wrap: nowrap; }
.lobby-title { min-width: 0; display: grid; gap: 4px; }
.room-name { font: 700 clamp(26px, 7vw, 38px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--paper); overflow-wrap: anywhere; }
.share-wrap, .lobby-players li.invite { position: relative; }
.share-wrap { flex: none; }
#shareBtn { gap: 8px; }
.share-menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; min-width: 220px; display: grid; gap: 4px; padding: 6px; background: var(--panel); border: 2px solid var(--gold); border-radius: var(--r-card); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55); animation: pop 180ms var(--spring); }
.share-menu[hidden] { display: none; }
.share-menu button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: 600 15px/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; text-align: left; cursor: pointer; }
.share-menu button:hover, .share-menu button:focus-visible { background: var(--panel-2); color: var(--gold); }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--panel); border: 2px dashed var(--edge); border-radius: var(--r-card); }
.code-box .code-big { font-size: clamp(44px, 14vw, 64px); text-shadow: 0 4px 0 var(--navy); }
.lobby-players li.me { cursor: pointer; transition: border-color 160ms, transform 160ms; }
.lobby-players li.me:hover { border-color: var(--gold); transform: translateY(-1px); }
.lobby-players li.me .av { box-shadow: 0 0 0 2px var(--gold); border-radius: 50%; }
.lobby-players li.invite, .lobby-sec .lobby-players li.invite { display: block; padding: 0; background: transparent; border: 0; box-shadow: none; rotate: none; }
.lobby-players li.invite::before, .lobby-players li.invite::after { content: none; }
.invite-btn { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 14px; border: 2px dashed var(--edge); border-radius: var(--r-card); background: transparent; color: var(--text-2); font: 600 15px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.invite-btn:hover, .invite-btn:focus-visible, .invite-btn[aria-expanded=true] { border-color: var(--gold); color: var(--gold); }
.invite-btn .plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; font: 700 20px/1 var(--display); }
.lobby-players li.invite .share-menu { left: 0; right: 0; }
.set-box { display: block; }
.set-box > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; }
.set-box > summary::-webkit-details-marker { display: none; }
.set-box > summary .sub { margin: 0; padding: 0; border: 0; }
.set-sum { margin-left: auto; font: 500 14px/1.2 var(--body); color: var(--text-2); text-align: right; }
.set-box .chev { flex: none; color: var(--gold); transition: transform 200ms; }
.set-box[open] .chev { transform: rotate(180deg); }
.set-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--line); }

/* 2026-11-19 (Owner): Auftakt mit Knöpfen (Würfeln, Spiel starten, Karten nehmen); Spielerleiste zeigt deutlich, wer dran ist */
.intro-act { display: grid; gap: 8px; min-height: 56px; align-content: center; } /* Ausrichtung der Knöpfe: ui.css */
.rail li.active .av { outline: 3px solid var(--gold); outline-offset: 2px; animation: turnpulse 1.6s ease-in-out infinite; }
.rail .r-turn { position: absolute; z-index: 2; left: 30px; top: -8px; padding: 3px 7px; border-radius: 999px; background: var(--gold); color: #14213d; font: 700 10px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); pointer-events: none; }
@keyframes turnpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 178, 28, 0.7); } 50% { box-shadow: 0 0 0 8px rgba(242, 178, 28, 0); } }
@media (prefers-reduced-motion: reduce) { .rail li.active .av { animation: none; } }

/* 2026-11-19 (Owner): Kamera-Knöpfe lagen unter dem Verlauf der Handzone (z-index 12) und wirkten abgedunkelt; das Schließen-X lag in Neon und Arcade über den Reitern */
.fabs { z-index: 13; }
html body[data-theme] .tabs { padding-right: 64px; }

/* 2026-11-19 (Owner): Erklärung im Regelblatt eingeklappt hinter einem "!", damit die aktiven Regeln im Blick sind */
.rule-how { padding: 0; border-style: solid; border-width: 1px; }
.rule-how > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; cursor: pointer; list-style: none; color: var(--text-2); font: 600 13px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.rule-how > summary::-webkit-details-marker { display: none; }
.rule-how .how-ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font: 700 15px/1 var(--display); }
.rule-how[open] > summary { color: var(--text); }
.rule-how > p, .rule-how > ul { padding: 0 14px; }
.rule-how > ul { padding-bottom: 12px; }

/* 2026-11-19 (Owner): Handy quer - Handkarten größer und unten rechts; die Kamera-Knöpfe rücken darüber */
@media (orientation: landscape) and (max-height: 520px) {
  .handzone { height: 150px; justify-content: flex-end; padding-right: calc(10px + env(safe-area-inset-right, 0px)); background: linear-gradient(to top left, rgba(5, 8, 15, 0.9) 12%, rgba(5, 8, 15, 0) 55%); }
  .hand { justify-content: flex-end; }
  .hand .tcard { --w: 104px; }
  .hand li { margin-left: -44px; }
  .hand li:hover, .hand li:has(:focus-visible) { transform: translateY(-14px) scale(1.12); }
  .fabs { bottom: 158px; grid-auto-flow: row; }
  .ticker { bottom: 8px; left: 50%; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .rail { --av: clamp(30px, calc((100dvh - 20px) / var(--n, 4) - 12px), 50px); top: 8px; gap: 12px; grid-template-columns: var(--av); }
  .rail .av { width: var(--av); height: var(--av); }
  .rail .r-turn { left: calc(var(--av) - 8px); }
}

/* ---------- Konto (2026-11-19): Knopf oben rechts neben der Sprachwahl, Fenster mit Formular oder Profil ---------- */
.top-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.acct-btn { display: flex; align-items: center; gap: 6px; height: 44px; max-width: 150px; padding: 0 12px; border: 2px solid var(--edge); border-radius: 12px; background: var(--panel); color: var(--text); font: 600 14px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.acct-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn.on { border-color: var(--gold); color: var(--gold); }
.acct-body, .acct-form { display: grid; gap: 10px; width: 100%; justify-items: stretch; text-align: left; }
.acct-form label { font: 500 14px/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.acct-form input { width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--edge); border-radius: 12px; background: var(--panel-2); color: var(--text); font: 600 18px/1.2 var(--body); }
.acct-form input:focus { border-color: var(--sky); outline: none; }
.acct-who { display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--gold); border-radius: 12px; background: var(--panel-2); }
.acct-who b { font: 700 20px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.acct-who span { color: var(--text-2); overflow-wrap: anywhere; }
@media (max-width: 420px) { .brand-top .kicker { font-size: 11px; letter-spacing: 0.08em; } .acct-btn { max-width: 112px; padding: 0 9px; } }

/* ---------- Abstände im Handy-Format (Owner 2026-11-19) ---------- */
/* "Am Zug": hochkant unter dem Namen (nichts ragt über den Rand), quer rechts neben dem Bild, am Desktop an der Ecke der Pille */
.rail .r-turn { position: static; align-self: flex-start; margin-top: 2px; }
@media (min-width: 900px) and (min-height: 521px) { .rail .r-turn { position: absolute; left: auto; right: -8px; top: -9px; margin: 0; } }
@media (orientation: landscape) and (max-height: 520px) {
  .rail .r-turn { position: absolute; left: calc(var(--av) + 8px); top: 50%; transform: translateY(-50%); margin: 0; }
  /* Menü oben rechts als Reihe, Kamera-Knöpfe darunter am Rand: nichts überlappt, die Hand hat unten rechts Platz */
  .tools { grid-auto-flow: column; grid-template-columns: none; gap: 8px; top: 8px; }
  .fabs { top: 64px; bottom: auto; grid-auto-flow: row; gap: 8px; right: calc(8px + env(safe-area-inset-right, 0px)); }
  .turnchip { top: 8px; max-width: calc(100vw - 340px); }
  .mystatus { bottom: 10px; left: calc(10px + env(safe-area-inset-left, 0px)); }
}
/* Hochkant: gleiche Ränder (10 px) und Abstände (10 px) für Leiste, Menü und Kamera-Knöpfe */
@media (max-width: 899px) and (orientation: portrait) {
  .rail { left: 10px; top: calc(10px + var(--safe-t)); gap: 10px; }
  .tools { right: 10px; top: calc(10px + var(--safe-t)); gap: 8px; }
  .fabs { right: calc(10px + env(safe-area-inset-right, 0px)); gap: 10px; }
  .mystatus { left: calc(10px + env(safe-area-inset-left, 0px)); }
}
/* Ausnahme zur Abdunkelung: wer mit dem Knopf "Ganzes Brett zeigen" bewusst in die Übersicht geht, sieht das Brett hell. Verschieben und Zoomen bleiben dunkel. */
.game:has(#viewBtn[aria-pressed="true"]) .scrim { display: none; }
/* Hochkant ist neben dem Bild kein Platz für ein eigenes Schild: der Name des Spielers am Zug wird selbst zum goldenen Schild */
@media (max-width: 899px) and (orientation: portrait) {
  .rail .r-turn { display: none; }
  .rail li.active .r-name { max-width: 68px; margin: -2px -5px; padding: 2px 5px; border-radius: 999px; background: var(--gold); color: #14213d; text-shadow: none; }
}

/* Konto-Fenster: was ein Konto bringt, über dem Formular */
.acct-why { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border-left: 4px solid var(--gold); }
.acct-why li { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; color: var(--text-2); }
.acct-why b { font: 700 12px/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* ---------- 2026-11-19 (Owner): erster Bildschirm, Ladebild, Konto mit Passwort und Code ---------- */
.gate { display: grid; gap: 10px; padding: 16px; background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r-card); }
.gate .hint { text-align: center; }
.home.gated #homeForm, .home:not(.gated) .gate { display: none; }
@media (orientation: landscape) and (max-height: 520px) { .home .gate { grid-column: 2; grid-row: 1 / span 4; align-self: center; padding: 12px 16px; } }
.acct-dev { padding: 8px 12px; border: 1px dashed var(--gold); color: var(--gold); font-size: 14px; line-height: 1.35; }
.acct-dialog { width: min(92vw, 420px); max-height: 92dvh; overflow-y: auto; }
.acct-form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#acctCode { text-align: center; letter-spacing: 0.4em; font-size: 26px; font-variant-numeric: tabular-nums; }
/* Ladebild */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; pointer-events: none; background: #05020f; animation: spOut 520ms ease 2100ms forwards; }
.sp-sun { position: absolute; left: 50%; bottom: 38%; width: min(70vw, 46vh, 420px); aspect-ratio: 1; translate: -50% 42%; border-radius: 50%; background: repeating-linear-gradient(to bottom, transparent 0 9%, #05020f 9% 12%), linear-gradient(to bottom, #f5e04a, #ff3d9a 62%, #8a5cff); -webkit-mask: linear-gradient(#000 0 58%, transparent 58%); mask: linear-gradient(#000 0 58%, transparent 58%); filter: drop-shadow(0 0 28px rgba(255, 61, 154, 0.7)); animation: spRise 1400ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.sp-floor { position: absolute; left: -50%; right: -50%; bottom: 0; height: 38%; background-image: linear-gradient(rgba(46, 242, 255, 0.75) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 61, 154, 0.75) 2px, transparent 2px); background-size: 100% 44px, 64px 100%; transform: perspective(300px) rotateX(62deg); transform-origin: 50% 0; border-top: 3px solid #2ef2ff; box-shadow: 0 -8px 40px rgba(46, 242, 255, 0.5); animation: spRoll 900ms linear infinite; }
.sp-sign { position: relative; display: grid; justify-items: center; gap: 6px; padding: 0 16px; margin-top: -14vh; text-align: center; }
.sp-icons { width: min(64vw, 300px); height: auto; filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.55)); }
.sp-icons g { animation: spFlick 1500ms steps(1) both; }
.sp-icons .sp-i2 { animation-delay: 160ms; } .sp-icons .sp-i3 { animation-delay: 320ms; }
.sp-name { font: 400 clamp(52px, 16vw, 116px)/1 "Tilt Neon", "Chakra Petch", sans-serif; color: #fff; text-shadow: 0 0 6px #fff, 0 0 22px #ff3d9a, 0 0 54px #ff3d9a; animation: spFlick 1500ms steps(1) 420ms both; }
.sp-sub { font: 600 14px/1.3 "Chakra Petch", Consolas, monospace; letter-spacing: 0.2em; text-transform: uppercase; color: #2ef2ff; }
.sp-bar { width: min(60vw, 260px); height: 6px; margin-top: 8px; background: rgba(201, 184, 255, 0.2); overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2ef2ff, #ff3d9a); box-shadow: 0 0 12px #2ef2ff; transform-origin: 0 50%; animation: spFill 1900ms cubic-bezier(0.3, 0.6, 0.2, 1) both; }
@keyframes spOut { to { opacity: 0; visibility: hidden; } }
@keyframes spRoll { to { background-position: 0 44px, 0 0; } }
@keyframes spRise { from { translate: -50% 80%; opacity: 0; } }
@keyframes spFill { from { transform: scaleX(0); } }
@keyframes spFlick { 0% { opacity: 0; } 12% { opacity: 1; } 18% { opacity: 0.25; } 24% { opacity: 1; } 34% { opacity: 0.5; } 40%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .splash { animation-delay: 700ms; animation-duration: 1ms; } .sp-floor, .sp-sun, .sp-icons g, .sp-name, .sp-bar i { animation: none; } }
/* Würfelaugen: in Neon nahm der feste Innenabstand den kleinen Würfeln (Reihenfolge) allen Platz für die Augen */
body[data-theme="neon"] .d3 .d3-face { padding: 14%; gap: 5%; }
/* Startkarten: größer, mit Rand zu beiden Seiten */
.intro.deal .intro-box { width: min(100%, 580px); }
.deal-mine { gap: 12px; padding: 12px 2px 6px; }
.deal-mine .tcard { --w: min(calc((100vw - 104px) / 3), 164px); }
@media (orientation: landscape) and (max-height: 520px) { .deal-mine .tcard { --w: 96px; } }
/* Kartenzahl in der Spielerleiste im Stil des Themas */
body[data-theme="neon"] .rail .r-cards { width: 18px; height: 23px; border-radius: 0; rotate: -6deg; background: #0a0618; color: #2ef2ff; box-shadow: 0 0 0 1.5px #2ef2ff, 0 0 8px rgba(46, 242, 255, 0.7); font-family: "Chakra Petch", Consolas, monospace; clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px); }
body[data-theme="arcade"] .rail .r-cards { border-radius: 0; rotate: none; background: #fff3d6; color: #24140a; box-shadow: 0 0 0 2px #000; }
body[data-theme="strand"] .rail .r-cards { background: #fff7e0; color: #3a2412; box-shadow: 0 0 0 1.5px #8a5a2b, 0 2px 0 rgba(0, 0, 0, 0.3); }

/* ---------- 2026-11-19 (Owner): Kartenwahl mit ganzen, großen Karten; Seltenheits-Zeichen einheitlich; Flaschendrehen ---------- */
.action:has(.pick-row) { width: min(calc(100vw - 20px), 720px); max-height: calc(100dvh - 40px - var(--safe-b)); top: 50%; }
.game:has(.pick-row) .handzone, .game:has(.pick-row) .mystatus { visibility: hidden; }
.pick-row { gap: 14px; padding: 14px 4px 6px; align-items: stretch; perspective: 1200px; }
.pick-row .tcard { --w: min(calc((100vw - 96px) / 3), 204px); flex: none; }
.pick-row.fresh .tcard { animation: pickFlip 760ms cubic-bezier(0.2, 0.9, 0.2, 1) both; animation-delay: calc(200ms + var(--i) * 260ms); }
@keyframes pickFlip {
  0% { transform: translateY(40px) rotateY(180deg) scale(0.55); opacity: 0; filter: brightness(0.2); }
  35% { opacity: 1; }
  55% { transform: translateY(-14px) rotateY(72deg) scale(1.12); filter: brightness(2.2); }
  78% { transform: translateY(0) rotateY(-10deg) scale(1.05); filter: brightness(1.25); }
  100% { transform: none; filter: none; }
}
@media (max-width: 720px) and (orientation: portrait) {
  /* am Handy hochkant: eine Karte groß und lesbar, die anderen daneben zum Wischen */
  .pick-row { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: calc(50% - 31vw); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .pick-row::-webkit-scrollbar { display: none; }
  .pick-row .tcard { --w: 62vw; scroll-snap-align: center; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .action:has(.pick-row) { max-height: calc(100dvh - 12px); padding: 8px 12px 10px; gap: 6px; }
  .pick-row { padding-top: 6px; }
  .pick-row .tcard { --w: min(calc((100vw - 96px) / 3), 132px); }
}
@media (prefers-reduced-motion: reduce) { .pick-row.fresh .tcard { animation: none; } }
/* Seltenheit: drei Plätze, überall gleich groß; je Stufe mehr Licht */
.tcard .tc-rar i:not(.on) { opacity: 0.2; filter: saturate(0.2); }
.tcard .tc-rar { font-size: 1.2em; }
.tcard.r-rare .tc-rar { filter: drop-shadow(0 0 0.28em var(--gem)); }
.tcard.r-legend .tc-rar { filter: drop-shadow(0 0 0.4em var(--gem)); animation: rarGlow 1.8s ease-in-out infinite; }
@keyframes rarGlow { 50% { filter: drop-shadow(0 0 0.75em var(--gem)) brightness(1.35); } }
@media (prefers-reduced-motion: reduce) { .tcard.r-legend .tc-rar { animation: none; } }
/* Flaschendrehen */
.spin { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 50%, rgba(3, 6, 14, 0.7), rgba(3, 6, 14, 0.9)); animation: fade 240ms var(--ease); }
.spin-box { justify-items: center; gap: 10px; width: min(100%, 460px); }
.spin-ring { --r: min(34vw, 30vh, 150px); position: relative; width: calc(var(--r) * 2 + 76px); height: calc(var(--r) * 2 + 96px); --bottle: #5fd6a2; --bottle-edge: #f6ead2; }
.spin-p { position: absolute; left: 50%; top: 50%; display: grid; justify-items: center; gap: 2px; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); transition: scale 240ms var(--spring); }
.spin-p .av { width: 52px; height: 52px; }
.spin-p b { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12px/1.2 var(--body); }
.spin-p.hit { scale: 1.25; }
.spin-p.hit .av { outline: 4px solid var(--gold); outline-offset: 2px; }
.spin-p.hit b { color: var(--gold); }
.spin-bottle { position: absolute; left: 50%; top: 50%; width: 40px; height: calc(var(--r) * 1.25); margin: calc(var(--r) * -0.625) 0 0 -20px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)); }
.spin-bottle svg { display: block; width: 100%; height: 100%; }
.spin-res { min-height: 1.4em; font: 700 20px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
body[data-theme="neon"] .spin-ring { --bottle: #0a0618; --bottle-edge: #2ef2ff; }
body[data-theme="neon"] .spin-bottle { filter: drop-shadow(0 0 8px rgba(46, 242, 255, 0.9)); }
body[data-theme="neon"] .spin-p.hit .av { outline-color: #f5e04a; box-shadow: 0 0 18px #f5e04a; }
body[data-theme="neon"] .spin-res { font-family: var(--sign); text-transform: none; color: #fff; text-shadow: 0 0 12px #ff3d9a; }
@media (orientation: landscape) and (max-height: 520px) { .spin-ring { --r: min(24vh, 96px); height: calc(var(--r) * 2 + 76px); } .spin-p .av { width: 40px; height: 40px; } .spin-box { padding: 8px 12px; gap: 4px; } }

/* ---------- 2026-11-19 (Owner): Abstimmung als Fenster für alle, eindeutige Würfel, Start in Neon ohne Scrollen ---------- */
.vote { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 14, 0.86); animation: fade 220ms var(--ease); }
.vote[hidden] { display: none; }
.vote-card { --fc: var(--gold); width: min(100%, 460px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 18px; text-align: left; }
.vote-card .p-kicker { color: var(--gold); }
.vote-who { display: flex; align-items: center; gap: 12px; }
.vote-who .av { width: 56px; height: 56px; flex: none; }
.vote-who p { font-size: 17px; line-height: 1.3; }
.vote-who small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-2); }
.vote-rule { padding: 8px 12px; border-left: 4px solid var(--gold); background: var(--panel-2); font-size: 15px; color: var(--text-2); }
.vote-jury { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px; }
.vote-jury li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 8px; background: var(--panel-2); border: 2px solid transparent; border-radius: 10px; font-size: 14px; }
.vote-jury .av { width: 30px; height: 30px; }
.vote-jury span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-jury b { font: 700 13px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.vote-jury li.y { border-color: var(--mint); } .vote-jury li.y b { color: var(--mint); }
.vote-jury li.n { border-color: var(--red); } .vote-jury li.n b { color: #ff9c8c; }
.vote-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 14px; color: var(--text-2); }
.vote-sum b { font: 700 20px/1 var(--display); text-transform: uppercase; }
.vote-sum b.y { color: var(--mint); } .vote-sum b.n { color: #ff9c8c; }
.vote-sum i { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.vote-wait { padding: 10px 12px; text-align: center; background: var(--panel-2); border-radius: 10px; font-weight: 600; }
.vote .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body[data-theme="neon"] .vote-card { --nc: #f5e04a; }
body[data-theme="neon"] .vote-jury li, body[data-theme="neon"] .vote-wait { border-radius: 0; }
/* Würfel: sobald sie liegen, zeigen sie flach nach vorn, nur die Fläche, die zählt */
.d3-tilt { transition: transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1); }
.d3.landed .d3-tilt { transform: none; }
/* Kartenwahl: die Seltenheit steht schon als Zeichen auf der Karte */
.pick-row .tcard .tc-rname { display: none; }
/* Start am Desktop mit wenig Höhe: Logo und Abstände kleiner, damit nichts scrollt */
@media (min-width: 700px) and (max-height: 880px) { .home { gap: 10px; } .logo .mark { width: 72px; } .brand { gap: 6px; } body[data-theme="neon"] .brand h1 { font-size: clamp(48px, 9vh, 84px); } }

/* ---------- Regelblatt 2026-11-19 (Owner): groß, klar, bis zu 8 Regeln; Erklärungen nur unten unter "!" ---------- */
.rules-list { display: grid; gap: 8px; counter-reset: none; }
.rl { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "no main who" "no main rep"; align-items: center; gap: 4px 12px; padding: 10px 12px 10px 8px; background: var(--panel-2); border: 2px solid var(--line); border-left: 5px solid var(--gold); border-radius: 14px; }
.rl.digital { border-left-color: var(--sky, #64aaff); }
.rl-no { grid-area: no; align-self: start; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--panel); color: var(--text-2); font: 700 16px/1 var(--display); }
.rl-main { grid-area: main; display: grid; gap: 3px; min-width: 0; }
.rl-name { font: 700 14px/1.15 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); cursor: help; }
.rl-text { font: 600 19px/1.3 var(--body); color: var(--text); }
.rl-who { grid-area: who; display: grid; justify-items: center; gap: 2px; color: var(--gold); }
.rl.digital .rl-who { color: var(--sky, #64aaff); }
.rl-who svg { width: 22px; height: 22px; }
.rl-who small { font: 700 10px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.rl-report { grid-area: rep; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 2px solid var(--gold); border-radius: 10px; background: transparent; color: var(--gold); font: 700 13px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.rl-report svg { width: 16px; height: 16px; }
.rl-report:hover, .rl-report:focus-visible { background: var(--gold); color: #1d1500; }
.rl-report:disabled { opacity: 0.4; cursor: default; }
.rl-accuse { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 6px; }
.rl-accuse h3 { font: 700 14px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
/* ab 5 Regeln am Desktop zweispaltig und etwas kleiner, damit 8 Regeln ohne langes Scrollen passen */
@media (min-width: 760px) { .sheet:has(.rules-list.many) { width: min(calc(100vw - 32px), 860px); } .rules-list.many { grid-template-columns: 1fr 1fr; } }
.rules-list.many .rl-text { font-size: 17px; }
.rule-how li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 8px; align-items: start; }
.rule-how li svg { width: 18px; height: 18px; margin-top: 1px; color: var(--gold); }
.rule-how li b { margin-right: 4px; }
/* Neon */
body[data-theme="neon"] .rl { border-radius: 0; background: #0d0722; border: 1px solid rgba(138, 92, 255, 0.5); border-left: 4px solid var(--n-yel); }
body[data-theme="neon"] .rl.digital { border-left-color: var(--n-cyan); }
body[data-theme="neon"] .rl-who { color: var(--n-yel); } body[data-theme="neon"] .rl.digital .rl-who { color: var(--n-cyan); }
body[data-theme="neon"] .rl-no { border-radius: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--n-lav); }
body[data-theme="neon"] .rl-text { font-family: var(--body); }
body[data-theme="neon"] .rl-report { border-radius: 0; border-color: var(--n-yel); color: var(--n-yel); }
body[data-theme="neon"] .rl-report:hover, body[data-theme="neon"] .rl-report:focus-visible { background: var(--n-yel); color: #1d1500; }
@media (max-width: 420px) { .rl { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 8px; } .rl-no { width: 26px; height: 26px; font-size: 14px; } .rl-text { font-size: 17px; } }
/* Einladen-Menü in der Lobby: klappt in der Liste auf statt darüber zu schweben (Neon schneidet schwebende Teile ab) */
.lobby-players li.invite .share-menu { position: static; margin-top: 8px; box-shadow: none; }
/* "Melden" unter dem Regeltext statt daneben: der Text behält die ganze Breite */
.rl { grid-template-areas: "no main who" "no rep rep"; }
.rl-report { justify-self: start; margin-top: 4px; }

/* Logo 22 "Weg wird zum Cocktailglas-T" (Owner 2026-11-19), Quelle: docs/logo-vorschlaege.html -> _scratch/logo-export.mjs -> public/img/logo.svg */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logo .wordmark { display: block; width: min(86vw, 420px); height: auto; }
.sp-logo { display: block; width: min(80vw, 520px); height: auto; animation: spFlick 1500ms steps(1) both; }
@media (max-height: 520px) { .logo .wordmark { width: min(50vw, 300px); } }

/* Hinweistexte in den Konto-Feldern (Owner 2026-11-20) */
#acctDialog input::placeholder { color: rgba(201, 184, 255, 0.6); opacity: 1; }

/* ---------- Konto-Dialog (Owner 2026-11-20): feste Größe, Fehler unter dem Feld, Passwort-Auge, Textlinks ---------- */
.acct-dialog { box-sizing: border-box; width: min(92vw, 420px); scrollbar-gutter: stable; }
.acct-body { gap: 14px; }
.acct-form { gap: 8px; }
.acct-form label { margin-top: 6px; }
.acct-form input { box-sizing: border-box; height: 50px; min-height: 50px; padding-right: 48px; }
.acct-form input[aria-invalid="true"] { border-color: var(--peach, #ff7a8a); }
.acct-form .btn { margin-top: 8px; }
.f-err { margin: 0; font: 600 14px/1.3 var(--body); color: var(--peach, #ff7a8a); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 92px; }
.pw-eye { position: absolute; right: 4px; top: 3px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--text-2); cursor: pointer; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--text); }
.pw-eye:focus-visible { outline: 2px solid var(--sky); outline-offset: -4px; }
.pw-eye[aria-pressed="true"] .pw-off { display: none; }
.acct-why { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border-left: 4px solid var(--gold); }
.acct-why > b { font: 700 13px/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.acct-why ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.acct-why li { display: block; position: relative; padding-left: 18px; font-size: 15px; line-height: 1.35; color: var(--text); }
.acct-why li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.acct-switch { margin: 0; text-align: center; font-size: 15px; color: var(--text-2); }
.linkbtn { padding: 10px 4px; border: 0; background: none; color: var(--sky, #2ef2ff); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.acct-legal { margin: 4px 0 0; font-size: 14px; }
.acct-legal a { color: var(--sky, #2ef2ff); }

/* ---------- Startseite: Kulisse und Bewegung (Owner 2026-11-20: "sieht langweilig aus") ----------
   Sonne und Rasterboden wie im Ladebild, damit beides zusammengehört. Bewegung nur über transform/opacity. */
.home { position: relative; isolation: isolate; }
.home-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hs-sun { position: absolute; left: 50%; bottom: 30%; width: min(78vw, 52vh, 520px); aspect-ratio: 1; translate: -50% 46%; border-radius: 50%; opacity: 0.55;
  background: repeating-linear-gradient(to bottom, transparent 0 9%, #05020f 9% 12%), linear-gradient(to bottom, #f5e04a, #ff3d9a 62%, #8a5cff);
  -webkit-mask: linear-gradient(#000 0 54%, transparent 54%); mask: linear-gradient(#000 0 54%, transparent 54%);
  filter: drop-shadow(0 0 40px rgba(255, 61, 154, 0.5)); animation: hsSun 7s ease-in-out infinite alternate; }
.hs-floor { position: absolute; left: -60%; right: -60%; bottom: 0; height: 30%; overflow: hidden; transform: perspective(320px) rotateX(64deg); transform-origin: 50% 0;
  -webkit-mask: linear-gradient(transparent, #000 35%); mask: linear-gradient(transparent, #000 35%); border-top: 2px solid rgba(46, 242, 255, 0.9); }
.hs-floor i { position: absolute; inset: -44px 0 0; background-image: linear-gradient(rgba(46, 242, 255, 0.6) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 61, 154, 0.6) 2px, transparent 2px); background-size: 100% 44px, 64px 100%; animation: hsRoll 1600ms linear infinite; }
.hs-ic { position: absolute; width: clamp(34px, 6vw, 60px); height: auto; opacity: 0.5; filter: drop-shadow(0 0 8px currentColor); animation: hsFloat 9s ease-in-out infinite alternate; }
.hs-a { left: 7%; top: 16%; color: #f5e04a; rotate: -14deg; }
.hs-b { right: 8%; top: 22%; color: #2ef2ff; rotate: 10deg; animation-duration: 11s; animation-delay: -3s; }
.hs-c { left: 12%; top: 52%; color: #ff3d9a; rotate: 8deg; animation-duration: 13s; animation-delay: -6s; }
.hs-d { right: 13%; top: 56%; color: #b06bff; rotate: -9deg; animation-duration: 10s; animation-delay: -2s; }
.hs-e { left: 26%; top: 8%; color: #2ef2ff; rotate: 16deg; width: clamp(26px, 4vw, 42px); animation-duration: 12s; animation-delay: -8s; }
@keyframes hsRoll { to { transform: translateY(44px); } }
@keyframes hsSun { to { opacity: 0.7; } }
@keyframes hsFloat { from { transform: translateY(-10px) rotate(-4deg); } to { transform: translateY(14px) rotate(5deg); } }
/* Logo: ein Lichtpunkt läuft den Weg vom S ins Glas, das Zeichen glimmt */
.logo .wordmark { overflow: visible; filter: drop-shadow(0 0 18px rgba(255, 61, 154, 0.35)); animation: hsGlow 3.2s ease-in-out infinite alternate; }
.logo-spark { filter: drop-shadow(0 0 5px #fff); animation: hsSpark 4.2s cubic-bezier(0.4, 0, 0.3, 1) infinite; }
@keyframes hsSpark { 0% { stroke-dashoffset: 0; opacity: 0; } 8% { opacity: 1; } 62% { opacity: 1; } 70%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes hsGlow { to { filter: drop-shadow(0 0 30px rgba(46, 242, 255, 0.45)); } }
/* Auswahlkasten: Glas statt flacher Fläche, damit die Kulisse durchscheint */
.home .gate, .home .home-form { background: rgba(10, 6, 24, 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .home .gate, .home .home-form { background: rgba(10, 6, 24, 0.94); } }
.home .gate { animation: hsIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes hsIn { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 700px) { .hs-c, .hs-d { top: auto; bottom: 34%; } .hs-ic { opacity: 0.32; } }
@media (orientation: landscape) and (max-height: 520px) { .hs-sun { display: none; } .hs-floor { height: 24%; } .hs-ic { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .hs-sun, .hs-floor i, .hs-ic, .logo .wordmark, .logo-spark, .home .gate { animation: none; } .logo-spark { opacity: 0; } }
/* Sonne sitzt hinter dem Logo (wie im Ladebild), nicht hinter dem Text darunter */
.hs-sun { top: calc(34px + var(--safe-t, 0px)); bottom: auto; width: min(86vw, 440px); translate: -50% 0; opacity: 0.3; }
@keyframes hsSun { to { opacity: 0.42; } }
@media (max-width: 700px) { .hs-a, .hs-b, .hs-e { display: none; } .hs-c, .hs-d { bottom: 25%; } .hs-sun { top: calc(84px + var(--safe-t, 0px)); width: min(92vw, 400px); } }
.hs-sun { width: min(86vw, 360px); -webkit-mask: linear-gradient(#000 0 44%, transparent 44%); mask: linear-gradient(#000 0 44%, transparent 44%); }
@media (max-width: 700px) { .hs-sun { top: calc(60px + var(--safe-t, 0px)); width: min(80vw, 310px); } }

/* Ein Teilen-Fenster für "Teilen" und "Spieler einladen": hängt am body, Position setzt shareSet() */
#shareMenu { position: fixed; z-index: 60; right: auto; top: 0; left: 0; }

/* Startformular in zwei Schritten (Owner 2026-11-20) */
.home-step { display: grid; gap: 10px; }
.home-step[hidden] { display: none; }
.step-no { margin: 0; font: 600 12px/1.2 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.hello { margin: 0; font-size: 16px; color: var(--text-2); }
.hello b { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.or { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font: 600 12px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong, rgba(201, 184, 255, 0.35)); }
#stepRoom .btn[data-scan] { gap: 8px; }
.home-form input::placeholder { color: rgba(201, 184, 255, 0.55); opacity: 1; }

/* Lobby: Status-Schild für jeden; Gastgeber und Bot gelb, Du und Spieler ruhig */
body:not(#_) .lobby-players .role:not(.host):not(.bot) { color: var(--text-2); border-color: rgba(201, 184, 255, 0.4); }

/* Entfernen-Dialog (echter Spieler) */
.kick-dialog h2 { padding-right: 0; }
.kick-text { margin: 0; justify-self: start; color: var(--text-2); }
.kick-dialog .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.btn.danger { --nc: #ff5a6e; --face: #ff5a6e; }

/* ---------- Lobby kompakter (Owner 2026-11-20: weniger scrollen) ---------- */
.lobby { gap: 12px; padding-top: calc(16px + var(--safe-t)); padding-bottom: 0; }
.lobby .code-box { padding: 6px 14px; }
.lobby .code-box .code-big { font-size: clamp(36px, 11vw, 48px); }
.lobby .lobby-sec { gap: 8px; padding: 12px; }
.lobby .lobby-players { gap: 6px; }
.lobby .lobby-players li:not(.invite) { min-height: 0; padding-top: 6px; padding-bottom: 6px; }
.lobby .invite-btn { min-height: 46px; }
/* ab 5 Einträgen (4 Spieler + Einladen) zweispaltig, wenn Platz ist */
@media (min-width: 760px) { .lobby .lobby-players:has(li:nth-child(5)) { grid-template-columns: 1fr 1fr; } .lobby .lobby-players:has(li:nth-child(5)) li.me { grid-template-columns: 44px 1fr auto; } .lobby .lobby-players:has(li:nth-child(5)) li.me [data-char] { grid-column: 1 / -1; width: 100%; } }
/* Start-Leiste klebt unten: "Spiel starten" ist immer sichtbar, darunter Verlassen und Schließen nebeneinander */
.lobby .lobby-actions { position: sticky; bottom: 0; z-index: 5; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px -20px 0; padding: 10px 20px calc(10px + var(--safe-b)); background: rgba(5, 2, 15, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid rgba(201, 184, 255, 0.25); }
.lobby .lobby-actions > .hint, .lobby .lobby-actions > #startBtn { grid-column: 1 / -1; }
.lobby .lobby-actions > .hint:empty { display: none; }
.lobby .lobby-actions > .btn:not(#startBtn) { min-height: 44px; font-size: 14px; }
.lobby .lobby-actions > .btn[hidden] + .btn, .lobby .lobby-actions > .btn:not([hidden]):last-child:nth-last-of-type(1) { }

.lobby .lobby-actions { grid-template-columns: 1fr; }
#noticeDialog .btn { width: 100%; }

/* Ladebild des Spiels: neues Logo statt altem Glas (Owner 2026-11-20) */
.ld-logo { display: block; width: min(80vw, 460px); height: auto; overflow: visible; filter: drop-shadow(0 0 18px rgba(255, 61, 154, 0.4)); }
.ld-bar i { background: linear-gradient(90deg, #2ef2ff, #ff3d9a); }
@media (orientation: landscape) and (max-height: 520px) { .ld-logo { width: min(46vw, 300px); } }

/* ---------- Spielbildschirm (Owner 2026-11-20) ---------- */
/* Startkarten und Kartenwahl brauchen Platz für volle Karten */
.intro.deal .intro-box { width: min(100%, 860px); }
body:not(#_) .action:has(.card-row) { width: min(96vw, 880px); max-width: none; }
.p-waitline { margin: 0; }
/* Wartehinweis: wer nicht dran ist, sieht, auf wen und worauf gewartet wird. Liegt über der Hand, verdeckt das Brett nicht. */
body:not(#_) .action.waiting { position: absolute; left: 50%; top: auto; bottom: calc(150px + var(--safe-b, 0px)); transform: translateX(-50%); width: auto; max-width: min(92vw, 520px); padding: 10px 16px; pointer-events: none; background: rgba(5, 2, 15, 0.88); border: 1px solid rgba(46, 242, 255, 0.6); box-shadow: 0 0 18px rgba(46, 242, 255, 0.25); clip-path: none; border-radius: 0; animation: none; }
.p-wait { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text-2); }
.p-wait .av { width: 34px; height: 34px; flex: none; }
.p-wait b { color: var(--text); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #2ef2ff; animation: dotPulse 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; } .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse { 0%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: 0.8; } }
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) .action.waiting { bottom: calc(8px + var(--safe-b, 0px)); } }
/* Spielerliste: Klick = Kamera zum Spieler, Info-Zeichen = Details, Karten-Zeichen, aktiver Spieler leuchtet */
.rail li { display: flex; align-items: center; gap: 6px; }
.rail .r-info { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(201, 184, 255, 0.45); border-radius: 50%; background: rgba(8, 5, 20, 0.82); color: var(--text-2); cursor: pointer; }
.rail .r-info:hover, .rail .r-info:focus-visible { color: #2ef2ff; border-color: #2ef2ff; }
.rail .r-info:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rail .r-cards { left: auto; right: auto; bottom: -6px; left: -6px; width: auto; height: 20px; display: inline-flex; align-items: center; gap: 2px; padding: 0 5px 0 3px; border-radius: 0; background: #05020f; color: #2ef2ff; border: 1px solid #2ef2ff; font: 700 12px/1 var(--display); box-shadow: 0 0 6px rgba(46, 242, 255, 0.5); }
.rail .r-cards b { font: inherit; }
.rail li.active > button { box-shadow: 0 0 0 2px var(--gold, #f5e04a), 0 0 18px rgba(245, 224, 74, 0.6); }
.rail li.active .av { outline: 3px solid var(--gold, #f5e04a); outline-offset: 2px; animation: railTurn 1.6s ease-in-out infinite; }
@keyframes railTurn { 50% { outline-offset: 5px; } }
@media (prefers-reduced-motion: reduce) { .rail li.active .av { animation: none; } }
@media (max-width: 700px), (orientation: landscape) and (max-height: 520px) { .rail .r-info { width: 28px; height: 28px; } .rail li.active > button { box-shadow: none; } }
/* Info-Zeichen hängt rechts neben dem Spieler, ohne dessen Feld zu stauchen */
.rail li { display: block; position: relative; width: max-content; max-width: 100%; }
.rail .r-info { position: absolute; left: calc(100% + 6px); top: 50%; translate: 0 -50%; }
.rail li.active > button { box-shadow: none; }
.swipe-hint { display: none; margin: 0; font-size: 13px; color: var(--text-2); }
@media (max-width: 700px) { .swipe-hint { display: block; } }
body:not(#_) .action.waiting { width: max-content; }
.p-wait span { white-space: nowrap; }

/* ---------- Ladebild nutzt den ganzen Bildschirm (Owner 2026-11-20) ----------
   Logo groß über dem Horizont vor der Sonne, Text und Balken unten auf dunklem Grund, damit sie lesbar sind. */
.splash { display: block; }
.sp-sun { bottom: 34%; width: min(96vw, 78vh, 820px); translate: -50% 50%; }
.sp-floor { height: 34%; }
.sp-sign { position: absolute; inset: 0; margin: 0; padding: 0; display: block; }
.sp-logo { position: absolute; left: 50%; bottom: calc(34% + 5vh); translate: -50% 0; width: min(88vw, 100vh, 860px); max-height: 46vh; filter: drop-shadow(0 0 26px rgba(5, 2, 15, 0.9)) drop-shadow(0 0 30px rgba(255, 61, 154, 0.45)); }
.sp-sub { position: absolute; left: 50%; bottom: calc(15% + 22px); translate: -50% 0; margin: 0; padding: 8px 16px; white-space: nowrap; background: rgba(5, 2, 15, 0.86); font-size: clamp(14px, 1.6vw, 20px); text-shadow: 0 0 10px rgba(46, 242, 255, 0.7); }
.sp-bar { position: absolute; left: 50%; bottom: 15%; translate: -50% 0; margin: 0; width: min(70vw, 460px); height: 8px; background: rgba(5, 2, 15, 0.86); box-shadow: 0 0 0 1px rgba(201, 184, 255, 0.35); }
@media (orientation: landscape) and (max-height: 520px) { .sp-logo { bottom: calc(34% + 2vh); max-height: 50vh; } .sp-sub { bottom: calc(8% + 20px); } .sp-bar { bottom: 8%; } }

/* Startseite: Sonne groß am Horizont hinter dem ganzen Inhalt, wie im Ladebild (Owner 2026-11-20).
   Sie ist gedimmt und der Text bekommt einen dunklen Grund, damit er lesbar bleibt. */
.hs-sun { top: auto; bottom: 30%; width: min(120vw, 110vh, 1200px); translate: -50% 50%; opacity: 0.3;
  -webkit-mask: linear-gradient(#000 0 50%, transparent 50%); mask: linear-gradient(#000 0 50%, transparent 50%); }
@keyframes hsSun { to { opacity: 0.4; } }
@media (max-width: 700px) { .hs-sun { top: auto; bottom: 30%; width: min(150vw, 90vh); } }
.home .lede, .home .fine { justify-self: center; padding: 6px 12px; background: rgba(5, 2, 15, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.home .gate, .home .home-form { background: rgba(10, 6, 24, 0.9); }
@media (orientation: landscape) and (max-height: 520px) { .hs-sun { display: block; bottom: 24%; width: min(90vw, 150vh); opacity: 0.22; } }
@media (max-width: 700px) { .hs-sun { width: min(118vw, 78vh); bottom: 30%; } }

/* Entfernen im Bestätigungs-Dialog: rot wie jede kritische Aktion (Owner 2026-11-20) */
body:not(#_) .btn.danger { --nc: #ff4d5e; --fg: #fff; --fill: #c8102e; --face: #c8102e; background: #c8102e; color: #fff; border-color: #ff4d5e; box-shadow: 0 0 16px rgba(255, 77, 94, 0.55); }
body:not(#_) .btn.danger:hover, body:not(#_) .btn.danger:focus-visible { background: #e0193a; }
/* Ladebild: Sonne endet am Horizont (hinter dem Raster, nicht darüber), Balken höher */
.sp-sun { -webkit-mask: linear-gradient(#000 0 50%, transparent 50%); mask: linear-gradient(#000 0 50%, transparent 50%); }
.sp-floor { z-index: 1; }
.sp-bar { height: 16px; width: min(76vw, 520px); }
.sp-sub { bottom: calc(15% + 30px); }
.hs-floor { z-index: 1; }

/* Spielerliste: Info-Zeichen sitzt IN der Box des Spielers (Owner 2026-11-20) */
.rail li { display: flex; align-items: center; gap: 2px; width: max-content; max-width: 100%; }
.rail .r-info { position: static; translate: none; flex: none; border: 0; border-radius: 0; background: none; width: 36px; height: 36px; }
.swipe-hint { display: none !important; }
@media (min-width: 900px) {
  body:not(#_) .rail li { background: rgba(3, 1, 9, 0.86); border-left: 3px solid #8a5cff; padding-right: 4px; }
  body:not(#_) .rail li.active { border-left-color: #2ef2ff; box-shadow: 0 0 0 1px rgba(245, 224, 74, 0.8), 0 0 16px rgba(245, 224, 74, 0.35); }
  body:not(#_) .rail li > button[data-id] { background: none; border-left: 0; padding-right: 8px; }
  body:not(#_) .rail li.active > button[data-id] { transform: none; }
}

/* Regel-Hilfe: Erklärtext lief in die 18-px-Spalte des Zeichens und brach Wort für Wort um (Owner 2026-11-20) */
.rule-how li { display: block; position: relative; padding-left: 28px; }
.rule-how li svg { position: absolute; left: 0; top: 1px; margin: 0; }
.rule-how li b { display: block; margin: 0 0 2px; }
/* Handy quer: Startkarten-Fenster passt ganz ins Bild */
@media (orientation: landscape) and (max-height: 520px) {
  .intro.deal .intro-box { padding: 6px 12px; gap: 4px; max-height: calc(100dvh - 12px); }
  .intro.deal #introKick { display: none; }
  .intro.deal .intro-box .btn { min-height: 44px; }
}

/* Zustände im Regelblatt: gleiche Zeile wie eine Regel, vorne das Bild des Spielers */
.rl.status .rl-no { padding: 0; background: none; box-shadow: none; border: 0; }
.rl.status .rl-no .av { width: 34px; height: 34px; }
.btn.secondary.warn { color: #ff9c8c; gap: 8px; }

/* Hochformat am Handy (Owner 2026-11-20: muss so sauber sein wie quer) */
@media (max-width: 700px) and (orientation: portrait) {
  /* Zug-Anzeige und Regel-Zähler lassen Platz für Bild + Info-Zeichen der Spielerliste */
  .turnchip, .effects { left: calc(96px + (100vw - 204px) / 2); max-width: calc(100vw - 204px); }
  /* Kartenzahl sitzt rechts unten am Bild und verdeckt den Namen darunter nicht mehr */
  .rail .r-cards { left: auto; right: -8px; bottom: 12px; }
  .rail .r-name { max-width: 64px; }
  .rail li.active .r-name { max-width: 74px; }
}
/* Hand: bei wenigen Karten kaum Überlappung, damit die Namen ganz lesbar sind; erst ab 5 Karten wird gefächert */
body:not(#_) .hand li { margin-left: -8px; }
body:not(#_) .hand li:first-child { margin-left: 0; }
body:not(#_) .hand:has(li:nth-child(4)) li:not(:first-child) { margin-left: -30px; }
body:not(#_) .hand:has(li:nth-child(5)) li:not(:first-child) { margin-left: -48px; }
@media (min-width: 900px) { body:not(#_) .hand:has(li:nth-child(4)) li:not(:first-child) { margin-left: -14px; } body:not(#_) .hand:has(li:nth-child(6)) li:not(:first-child) { margin-left: -44px; } }
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) .hand li:not(:first-child) { margin-left: -6px; } body:not(#_) .hand:has(li:nth-child(4)) li:not(:first-child) { margin-left: -24px; } body:not(#_) .hand:has(li:nth-child(5)) li:not(:first-child) { margin-left: -44px; } }

/* Ladebild: Schrift, Text und Balken liegen ÜBER Sonne und Raster (das Raster lag seit dem Sonnen-Umbau darüber) */
.sp-sign { z-index: 2; }
.sp-sub, .sp-bar { z-index: 3; }
@media (orientation: portrait) { .sp-sun { bottom: 44%; } .sp-floor { height: 44%; } .sp-logo { bottom: calc(44% + 4vh); } .sp-sub { bottom: calc(20% + 34px); } .sp-bar { bottom: 20%; } }

/* Erster Bildschirm: der Einleitungstext steht IM Kasten, der Konto-Satz entfällt (Owner 2026-11-20) */
.home.gated .brand .lede { display: none; }
.home .gate .gate-lede { justify-self: stretch; margin: 0 0 4px; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; text-align: center; font-size: 16px; line-height: 1.4; color: var(--text); }
#gateHint { display: none; }

/* Ende-Hinweis (Zustand, Ereignis, Regel vorbei): groß, für alle, bleibt bis zum Wegklicken (Owner 2026-11-20) */
.end-notes { position: absolute; z-index: 12; left: 50%; top: 22%; translate: -50% 0; display: grid; gap: 10px; width: min(92vw, 440px); pointer-events: none; }
.end-note { pointer-events: auto; display: grid; gap: 4px; justify-items: center; width: 100%; padding: 14px 18px 12px; text-align: center; cursor: pointer; color: #fff; background: rgba(5, 2, 15, 0.94); border: 2px solid #5fd6a2; box-shadow: 0 0 26px rgba(95, 214, 162, 0.55), inset 0 0 18px rgba(95, 214, 162, 0.18); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); animation: endIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.en-kick { font: 700 13px/1.2 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: #5fd6a2; }
.en-title { font: 700 clamp(24px, 6vw, 32px)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.en-text { font-size: 17px; line-height: 1.35; }
.en-ok { margin-top: 4px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
@keyframes endIn { from { opacity: 0; transform: translateY(-18px) scale(0.94); } }
@media (hover: hover) { .end-note:hover { border-color: #fff; } }
@media (orientation: landscape) and (max-height: 520px) { .end-notes { top: 8px; width: min(60vw, 400px); } .end-note { padding: 8px 14px; } .en-title { font-size: 20px; } .en-text { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .end-note { animation: none; } }

/* Meldung (was gerade passiert ist): oben unter dem Regel-Zähler, verschwindet nach 4,5 s. Unten steht nur noch der Wartehinweis. */
body:not(#_) .ticker { top: 110px; bottom: auto; z-index: 6; max-width: min(calc(100vw - 24px), 460px); min-height: 38px; padding: 4px 14px; border-radius: 0; background: rgba(5, 2, 15, 0.9); border: 1px solid rgba(255, 61, 154, 0.7); border-left: 4px solid #ff3d9a; box-shadow: 0 0 14px rgba(255, 61, 154, 0.3); transition: opacity 300ms, translate 300ms; }
body:not(#_) .ticker.show { animation: tickIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
body:not(#_) .ticker.gone { opacity: 0; translate: 0 -8px; pointer-events: none; }
body:not(#_) .ticker span { white-space: normal; text-align: left; }
@keyframes tickIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } }
.end-notes { top: 34%; }
@media (orientation: landscape) and (max-height: 520px) { .end-notes { top: 96px; } }
/* Ausgespielte Karte: einfach groß in der Mitte für den, den sie betrifft */
.cardpop { position: absolute; inset: 0; z-index: 13; display: grid; place-content: center; justify-items: center; gap: 10px; pointer-events: none; background: radial-gradient(closest-side, rgba(3, 2, 10, 0.78), rgba(3, 2, 10, 0)); animation: cpIn 300ms cubic-bezier(0.2, 0.8, 0.2, 1); transition: opacity 200ms; }
.cardpop.out { opacity: 0; }
.cp-cap { padding: 6px 14px; background: rgba(5, 2, 15, 0.92); border: 1px solid #ff3d9a; color: #fff; font: 700 16px/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
body:not(#_) .cardpop .tcard.big { --w: min(300px, 74vw, calc((100dvh - 110px) / 1.5)); margin: 0; }
@keyframes cpIn { from { opacity: 0; transform: scale(0.82); } }
@media (prefers-reduced-motion: reduce) { .cardpop, body:not(#_) .ticker.show { animation: none; } }

/* Startkarten genommen: Fenster schrumpft auf den Wartehinweis */
.intro.taken .intro-box { width: min(100%, 420px); }

/* Ausgegrauter Knopf, der beim Antippen erklärt, warum es gerade nicht geht */
body:not(#_) .btn.off { filter: grayscale(0.85) brightness(0.6); cursor: help; box-shadow: none; }
body:not(#_) .btn.off:hover { translate: none; filter: grayscale(0.7) brightness(0.72); box-shadow: none; }
#noticeText { white-space: pre-line; }
/* Schließen-Kreuz: immer in der Ecke des Fensters, auch wenn das Blatt zweispaltig ist (Handy quer) */
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) #sheet { position: relative; } body:not(#_) #sheet > .sheet-x { position: absolute; top: 8px; right: 8px; margin: 0; } }

/* Übersichts-Knopf entfällt (Owner 2026-11-20); das Element bleibt für die Kamera-Logik, ist aber nie sichtbar */
#viewBtn { display: none !important; }
/* Neue Karte landet in der Hand */
.hand li.landed { animation: handLand 380ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes handLand { from { opacity: 0.2; translate: 30px -18px; scale: 1.25; } }
@media (prefers-reduced-motion: reduce) { .hand li.landed { animation: none; } }
/* Abwehr: echte Karten zur Wahl */
.react-go { font: 600 12px/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: #64aaff; }
body:not(#_) .react-row .tcard { --w: clamp(170px, 15vw, 215px); }
@media (max-width: 520px) { body:not(#_) .react-row .tcard { --w: min(56vw, 200px); } }
/* Kartenpaar im Popup: Abwehrkarte klein links, betroffene Karte groß */
.cp-cards { display: flex; align-items: center; justify-content: center; gap: 14px; }
body:not(#_) .cp-side .tcard { --w: min(150px, 30vw, calc((100dvh - 200px) / 1.5)); opacity: 0.92; rotate: -6deg; }
.cp-cap { max-width: 92vw; text-align: center; }
@media (max-width: 520px) { body:not(#_) .cardpop:has(.cp-side) .tcard.big { --w: min(56vw, calc((100dvh - 130px) / 1.5)); } body:not(#_) .cp-side .tcard { --w: 28vw; } .cp-cards { gap: 8px; } }

/* Ansage: Schlucke je Spieler eintragen */
.chips.tally .chip { position: relative; }
.tally-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-left: 6px; padding: 0 6px; background: #f5e04a; color: #1d1500; font: 700 15px/1 var(--display); }
@media (max-width: 700px) and (orientation: portrait) { .turnchip, .effects { left: calc(108px + (100vw - 216px) / 2); max-width: calc(100vw - 216px); } }

/* Ansage: Verlierer antippen, Schluckzahl kommt aus der Aufgabe (Owner 2026-11-20) */
.tally-it { display: inline-flex; align-items: center; gap: 6px; }
.tally-step { display: inline-flex; align-items: center; gap: 4px; }
.tally-step button { width: 40px; height: 40px; padding: 0; border: 1px solid rgba(201, 184, 255, 0.5); background: var(--panel-2); color: #fff; font: 700 20px/1 var(--display); cursor: pointer; }
.tally-step .tally-n { margin: 0; min-width: 34px; height: 40px; font-size: 18px; }
/* Abwehr-Fenster: nutzt die ganze Höhe, Karten richten sich nach dem freien Platz, kein Scrollen (Owner 2026-11-20) */
.action:has(.react-row) { width: min(calc(100vw - 20px), 720px); max-height: calc(100dvh - 24px - var(--safe-b, 0px)); top: 50%; }
.game:has(.react-row) .handzone, .game:has(.react-row) .mystatus { visibility: hidden; }
body:not(#_) #panel .react-row .tcard { --w: min(clamp(215px, 17vw, 250px), calc((100dvh - 350px) / 1.5)); }
@media (max-width: 520px) { body:not(#_) #panel .react-row .tcard { --w: min(56vw, 200px, calc((100dvh - 350px) / 1.5)); } }
@media (orientation: landscape) and (max-height: 520px) {
  body:not(#_) #panel:has(.react-row) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto 1fr; column-gap: 14px; align-items: start; width: min(calc(100vw - 20px), 780px); max-height: calc(100dvh - 12px); top: 50%; }
  body:not(#_) #panel:has(.react-row) > * { grid-column: 1; }
  body:not(#_) #panel:has(.react-row) > .react-row { grid-column: 2; grid-row: 1 / span 5; align-self: center; padding-block: 0; }
  body:not(#_) #panel:has(.react-row) > .btn { align-self: end; }
  body:not(#_) #panel .react-row .tcard { --w: calc((100dvh - 100px) / 1.5); }
  .tally-step button, .tally-step .tally-n { width: 32px; min-width: 32px; height: 32px; }
  .action:has(.tally) { max-height: calc(100dvh - 100px); }
}

/* Lobby (Owner 2026-11-20): im Querformat und auf breiten Schirmen stehen "Raum schließen/verlassen" und "Spiel starten" nebeneinander;
   der Hinweis "mindestens 2 Spieler" poppt nur kurz über dem Knopf auf, wenn man ihn antippt. */
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; filter: none; }
body:not(#_) .btn[aria-disabled="true"]:hover, body:not(#_) .btn[aria-disabled="true"]:active { transform: none; translate: none; filter: none; box-shadow: none; }
.start-tip { position: absolute; left: 20px; right: 20px; bottom: calc(100% + 8px); margin: 0; padding: 10px 14px; border: 2px solid var(--gold); border-radius: 12px; background: var(--panel-2, #0d0722); color: var(--text); font-size: 15px; line-height: 1.35; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); animation: tipIn 160ms ease-out; }
.start-tip[hidden] { display: none; }
@keyframes tipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .start-tip { animation: none; } }
@media (orientation: landscape), (min-width: 640px) {
  body:not(#_) .lobby .lobby-actions { grid-template-columns: 1fr 1fr; align-items: stretch; }
  body:not(#_) .lobby .lobby-actions > #startBtn { grid-column: auto; order: 2; min-height: 52px; }
  body:not(#_) .lobby .lobby-actions > .btn:not(#startBtn) { min-height: 52px; }
  body:not(#_) .lobby .lobby-actions > #startBtn[hidden] ~ .btn, body:not(#_) .lobby .lobby-actions > .hint { grid-column: 1 / -1; }
}

/* Zustand hat überall dieselbe Farbe: Grün (Owner 2026-11-20). Gelb gehört den Regeln. Gilt für die Marke am Spielerbild in jedem Thema. */
body:not(#_) .rail .r-status { background: var(--mint, #5fd6a2); }

/* Konto-Fenster: jedes Feld steckt in .f. Hochkant ändert das nichts; im Querformat stehen die Felder nebeneinander,
   damit kein Fenster scrollen muss (Regel: kein Dialog erzwingt Scrollen). */
.acct-form .f { display: contents; }
.acct-who + .hint { margin: 0; }
@media (orientation: landscape) and (max-height: 520px) {
  body:not(#_) .acct-dialog { width: min(94vw, 760px); max-height: calc(100dvh - 12px); padding: 12px 16px; }
  body:not(#_) .acct-dialog h2 { margin: 0 0 6px; font-size: 20px; }
  body:not(#_) .acct-body { grid-template-columns: 1fr 1fr; gap: 8px 14px; align-items: start; }
  body:not(#_) .acct-body > * { grid-column: 1 / -1; margin: 0; }
  body:not(#_) .acct-body > .acct-who, body:not(#_) .acct-body > .acct-who + .hint { grid-column: 1; }
  body:not(#_) .acct-body > .acct-who ~ .row.two, body:not(#_) .acct-body > .acct-who ~ .btn { grid-column: 2; }
  body:not(#_) .acct-body > .acct-who { grid-row: 1 / span 2; align-self: stretch; align-content: center; }
  body:not(#_) .acct-body > .acct-who + .hint { grid-row: 3; }
  body:not(#_) .acct-body .btn { min-height: 44px; margin-top: 0; }
  body:not(#_) .acct-form { grid-template-columns: 1fr 1fr; gap: 6px 14px; align-items: start; }
  body:not(#_) .acct-form > * { grid-column: 1 / -1; margin: 0; }
  body:not(#_) .acct-form > .f { display: grid; gap: 3px; grid-column: auto; align-content: start; }
  body:not(#_) .acct-form > .f:only-of-type { grid-column: 1 / -1; }
  body:not(#_) .acct-form[data-kind="register"] { grid-template-columns: 1fr 1fr 1fr; }
  body:not(#_) .acct-form[data-kind="register"] > .acct-legal { grid-column: 1 / 3; align-self: center; }
  body:not(#_) .acct-form[data-kind="register"] > button[type=submit] { grid-column: 3; }
  body:not(#_) .acct-form .f-err { font-size: 12px; line-height: 1.25; }
  body:not(#_) .acct-form label { margin-top: 0; font-size: 12px; }
  body:not(#_) .acct-form input { height: 44px; min-height: 44px; font-size: 16px; }
  body:not(#_) .acct-form .pw-eye { top: 0; }
  body:not(#_) .acct-form .hint, body:not(#_) .acct-dev { font-size: 13px; line-height: 1.3; }
  body:not(#_) .acct-dev { padding: 5px 10px; }
  body:not(#_) #acctCode { font-size: 20px; }
  body:not(#_) .acct-why { padding: 8px 12px; }
  body:not(#_) .acct-why ul { grid-template-columns: 1fr 1fr; gap: 2px 14px; }
  body:not(#_) .acct-why li { font-size: 13px; }
  body:not(#_) .acct-switch .linkbtn { padding: 4px; }
  body:not(#_) .acct-form[data-kind="otp"] > button[type=submit], body:not(#_) .acct-form[data-kind="reset"] > button[type=submit] { grid-column: 2; }
  body:not(#_) .acct-form[data-kind="otp"] > .row.two, body:not(#_) .acct-form[data-kind="reset"] > .row.two { grid-column: 1; grid-row-end: span 1; }
}

body:not(#_) .acct-dialog { max-height: calc(100dvh - 16px); }
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) .acct-dialog { max-height: calc(100dvh - 12px); } }

/* Kopfzeile im Spiel (Owner 2026-11-20): Zug-Anzeige und eine Regel-Box in EINER Zeile, zusammen mittig; keine zweite Zeile mehr. */
body:not(#_) .turnchip { translate: calc(var(--fxw, 0px) / -2) 0; max-width: min(520px, calc(100vw - 232px - var(--fxw, 0px))); }
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) .turnchip { max-width: calc(100vw - 340px - var(--fxw, 0px)); } }
body:not(#_) .effects { transform: none; translate: none; max-width: none; margin: 0; padding: 0; flex-wrap: nowrap; gap: 0; }
body:not(#_) .effects li { height: 100%; }
body:not(#_) .effects .fx-chip { height: 100%; min-height: 0; min-width: 44px; gap: 6px; padding: 0 12px 0 10px; box-shadow: none; }
body:not(#_) .effects .fx-chip:not(.on) { border-color: rgba(201, 184, 255, 0.5); }
body:not(#_) .effects .fx-chip:not(.on) svg { color: var(--text-2); }
@media (max-width: 700px) { body:not(#_) .effects .fx-chip span { display: none; } body:not(#_) .effects .fx-chip { padding: 0 10px 0 8px; } }

/* Spielerleiste: Info-Zeichen und "Am Zug" schwebten ohne Grund über dem Brett und waren kaum zu sehen (Owner 2026-11-20).
   Info-Zeichen: dunkle Scheibe mit Rand. "Am Zug": sitzt als Schild oben auf dem Spielerbild, in jedem Format. */
body:not(#_) .rail .r-info { width: 30px; height: 30px; border: 1px solid rgba(201, 184, 255, 0.7); border-radius: 50%; background: rgba(5, 2, 15, 0.92); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
body:not(#_) .rail .r-info svg { width: 18px; height: 18px; }
body:not(#_) .rail .r-turn { display: block; position: absolute; left: 0; top: -9px; right: auto; transform: none; translate: none; margin: 0; z-index: 3; outline: 2px solid #05020f; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }

/* Hochkant am Handy: Regel-Box in der Lücke neben dem Mehr-Knopf (fxPlace setzt .slot); die Zug-Anzeige behält ihre Breite samt Name. */
@media (max-width: 700px) and (orientation: portrait) { body:not(#_) .turnchip { max-width: calc(100vw - 216px - var(--fxw, 0px)); } body:not(#_) .rail .r-info { margin-left: 8px; } }
body:not(#_) .effects.slot .fx-chip { justify-content: center; padding: 0 6px; gap: 3px; }
body:not(#_) .rail .r-turn { top: -4px; }
body:not(#_) .effects.slot { z-index: 6; } /* liegt in der Fläche der Werkzeugleiste: sonst fängt die Leiste den Tipp ab */

/* 2026-11-21: Startbildschirm steht in der Mitte der Höhe, nicht oben (Owner: "Why is that not centered anymore?"). */
body:not(#_) .home { align-content: center; }
@media (min-width: 700px) { body:not(#_) .home { padding-top: calc(10px + var(--safe-t)); } }

/* 2026-11-21 Regelwerk-Freigabe: eigene Regel schreiben (Königsfeld) und die vierte Frage der Busfahrt (vier Antworten in einer Zeile). */
body:not(#_) .rule-write { display: grid; gap: 4px; }
body:not(#_) .rule-write textarea { box-sizing: border-box; width: 100%; min-height: 64px; padding: 10px 14px; resize: none; border: 2px solid var(--edge); border-radius: 12px; background: var(--panel-2); color: var(--text); font: 600 18px/1.3 var(--body); }
body:not(#_) .rule-write textarea:focus { border-color: var(--sky); outline: none; }
body:not(#_) .rule-write textarea::placeholder { color: var(--text-2); opacity: 0.8; }
body:not(#_) .rule-write small { justify-self: end; color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
body:not(#_) .row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
body:not(#_) .row.four .btn { padding-inline: 4px; min-width: 0; }
@media (max-width: 420px) { body:not(#_) .row.four { grid-template-columns: 1fr 1fr; } }

/* 2026-11-21: Das kleine Fenster ("Noch eine Karte?", Zug beenden) ist im Querformat nur so breit wie sein Inhalt braucht (Owner: "Less width possible"). */
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) .action.slim { width: min(calc(100vw - 230px), 320px); } }
/* Handy quer: Königsfeld, eigene Regel und Busfahrt passen ohne Scrollen ins Fenster (drei Regeln nebeneinander, kleinere Karten, keine doppelte Überschrift). */
@media (orientation: landscape) and (max-height: 520px) {
  body:not(#_) #panel[data-stage="rule_pick"] { width: min(calc(100vw - 230px), 620px); }
  body:not(#_) #panel[data-stage="rule_pick"] .p-kicker, body:not(#_) #panel[data-stage="rule_write"] .p-kicker, body:not(#_) #panel[data-stage="bus"] .p-title { display: none; }
  body:not(#_) #panel[data-stage="rule_pick"] .options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  body:not(#_) #panel[data-stage="rule_pick"] .option { padding: 8px 10px; min-height: 0; align-content: start; }
  body:not(#_) #panel[data-stage="rule_pick"] .option .o-name { font-size: 15px; flex-direction: column; gap: 3px; }
  body:not(#_) #panel[data-stage="rule_pick"] .option .o-kind { font-size: 11px; white-space: normal; }
  body:not(#_) #panel[data-stage="rule_pick"] .option .o-text { font-size: 13px; line-height: 1.3; }
  body:not(#_) #panel[data-stage="rule_write"] .p-note { font-size: 13px; line-height: 1.3; }
  body:not(#_) #panel[data-stage="rule_write"] .rule-write { position: relative; }
  body:not(#_) #panel[data-stage="rule_write"] .rule-write textarea { min-height: 60px; padding: 6px 12px 16px; font-size: 17px; }
  body:not(#_) #panel[data-stage="rule_write"] .rule-write small { position: absolute; right: 10px; bottom: 4px; font-size: 12px; }
  body:not(#_) #panel[data-stage="bus"] .bus-card { width: 46px; height: 58px; font-size: 22px; gap: 2px; }
  body:not(#_) #panel[data-stage="bus"] .bus-card small { font-size: 10px; }
  body:not(#_) #panel[data-stage="bus"] .p-note { font-size: 13px; line-height: 1.3; }
}

/* 2026-11-21: Status hat eine Farbe, auch im Spielerblatt des Club-Designs (Owner: "Yellow, wrong color for statuses. It must be green"). */
body:not(#_) .sheet .rule.self { border-left-color: var(--mint); }
/* 2026-11-21: Felder-Liste und Feldblatt zeigen das Feldzeichen vom Brett statt eines Farbpunkts (Owner: "These fields dont use the correct design"). */
body:not(#_) .field-list li { grid-template-columns: 44px 1fr; align-items: center; }
body:not(#_) .field-head { grid-template-columns: 64px 1fr; }
body:not(#_) .f-ic { display: block; width: 44px; height: 44px; object-fit: contain; }
body:not(#_) .field-head .f-ic { width: 64px; height: 64px; }
/* Handy hochkant: solange ein Fenster eine Entscheidung verlangt, weicht "Dein Status" (sonst liegt es über den Antwort-Knöpfen, gesehen bei Busfahrt Frage 4 mit zwei Zuständen). */
@media (max-width: 700px) and (orientation: portrait) { body:not(#_) .game:has(#panel:not([hidden]):not(.bare):not(.waiting):not(.slim)) .mystatus { visibility: hidden; } }

/* 2026-11-21: Figurwahl mit zwölf Figuren - im Querformat sechs je Reihe, damit das Fenster nicht scrollt. */
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) .char-dialog { width: min(96vw, 700px); padding-block: 10px; } body:not(#_) .char-dialog .avatar-pick { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; } body:not(#_) .char-dialog .avatar-pick button { padding-block: 6px; font-size: 12px; } body:not(#_) .char-dialog .avatar-pick img { width: 48px; height: 48px; } }

/* 2026-11-21: Knöpfe und Eingabefelder werden nie vom Behälter in die Höhe gezogen (Owner: "Responsivness of the button height is not correct ... fixed globally").
   Ursache war das Startformular im Querformat: es wurde auf die Höhe der Nachbarspalte gestreckt und verteilte den Rest auf Feld und Knopf. */
body:not(#_) :is(.home-form, .gate, .home-step, .join-step, .ways, .acct-form, .action, .intro-box) { align-content: start; }
body:not(#_) .home .home-form, body:not(#_) .home .gate { align-self: center; }
/* 2026-11-21: Beschreibung und Hinweis stehen in EINER Box; der Hinweis in der Schrift der Beschriftungen mit Warnzeichen davor (Owner). */
body:not(#_) .home .about { display: grid; gap: 6px; justify-self: center; max-width: 40ch; padding: 8px 12px; background: rgba(5, 2, 15, 0.84); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
body:not(#_) .home .about > p { justify-self: stretch; max-width: none; margin: 0; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; text-align: left; }
body:not(#_) .home .about .fine { display: flex; gap: 8px; align-items: center; font: 400 14px/1.3 var(--sign, var(--display)); letter-spacing: 0.02em; color: var(--n-vio, var(--edge)); } /* Lila des Designs, nicht das Gelb der Regeln (Owner 2026-11-21) */
body:not(#_) .home .about .fine::before { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5cff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 22 20.5H2Z'/%3E%3Cpath d='M12 10v5M12 17.6v.2'/%3E%3C/svg%3E") center / contain no-repeat; }
body:not(#_) .home:not(.gated) .about .lede + .fine { padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
@media (max-height: 640px) and (orientation: portrait) { body:not(#_) .home .about .lede + .fine { padding-top: 0; border-top: 0; } }

/* 2026-11-21: Ton-Schalter auf dem Start (Töne und Musik), quadratisch neben Sprache und Konto. */
body:not(#_) .ton-btn { flex: none; width: 44px; max-width: none; padding: 0; justify-content: center; }
body:not(#_) .ton-btn svg { width: 22px; height: 22px; }

/* 2026-11-21: Start - der ganze Inhalt (Kopfzeile, Logo, Hinweis, Fenster) steht in EINER leicht durchsichtigen Box, mittig im Bild,
   statt einzeln über der Kulisse zu schweben (Owner). Die Kulisse liegt fest dahinter (position: fixed). */
main:has(> #home:not([hidden])) { display: grid; align-items: center; min-height: 100dvh; padding: calc(8px + var(--safe-t, 0px)) 0 calc(8px + var(--safe-b, 0px)); }
body:not(#_) .home { min-height: 0; width: calc(100% - 20px); padding: 16px 18px 18px; }
/* Die Box ist ein eigenes Element ÜBER der Kulisse: die Kulisse ist ein Kind von .home (z-index -1) und läge sonst über dessen Hintergrund. */
body:not(#_) .home::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(5, 2, 15, 0.86); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); border: 1px solid rgba(138, 92, 255, 0.45); box-shadow: 0 0 28px rgba(138, 92, 255, 0.18); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { body:not(#_) .home::after { background: rgba(5, 2, 15, 0.9); } }
@media (min-width: 700px) { body:not(#_) .home { padding: 22px 26px 24px; } }
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) .home { padding: 10px 16px 12px; } main:has(> #home:not([hidden])) { padding-block: 4px; } }
/* in der Box brauchen Beschreibung und Hinweis keinen eigenen Kasten mehr */
body:not(#_) .home .about { padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* 2026-11-21 Busfahrt mit Zahlen: drei Antworten in einer Zeile; die gezogenen Zahlen als Kartenreihe, die aktuelle hervorgehoben. */
body:not(#_) .row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body:not(#_) .row.three .btn { padding-inline: 4px; min-width: 0; }
body:not(#_) .bus-cards { flex-wrap: nowrap; }
body:not(#_) .bus-card.num { width: 46px; height: 56px; font-size: 26px; opacity: 0.6; }
body:not(#_) .bus-card.num.now { opacity: 1; outline: 3px solid var(--gold); outline-offset: 2px; }
body:not(#_) .bus-card.empty { width: 46px; height: 56px; }
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) #panel[data-stage="bus"] .bus-card.num, body:not(#_) #panel[data-stage="bus"] .bus-card.empty { width: 40px; height: 50px; font-size: 22px; } }
@media (max-width: 420px) { body:not(#_) .bus-card.num, body:not(#_) .bus-card.empty { width: 40px; height: 56px; font-size: 22px; } }

/* ---------- 2026-11-21 (Owner: 12 statt 8 Spieler): ab 9 Spielern schrumpft die Spielerleiste mit der Bildschirmhöhe, damit alle untereinander passen ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  body:not(#_) .rail:has(li:nth-child(9)) { --av: clamp(20px, calc((100dvh - 14px) / var(--n, 12) - 4px), 36px); top: 6px; gap: 4px; }
  body:not(#_) .rail:has(li:nth-child(9)) .r-info { width: var(--av); height: var(--av); }
  body:not(#_) .rail:has(li:nth-child(9)) .r-info svg { width: 14px; height: 14px; }
  body:not(#_) .rail:has(li:nth-child(9)) .r-cards { height: 15px; font-size: 10px; bottom: -3px; left: -4px; }
  body:not(#_) .rail:has(li:nth-child(9)) .r-cards svg { display: none; }
  body:not(#_) .rail:has(li:nth-child(9)) .r-turn { display: block; padding: 2px 5px; font-size: 8px; top: -3px; } /* Owner 2026-11-30: auch bei 9+ Spielern sichtbar */
}
@media (max-width: 899px) and (orientation: portrait) {
  body:not(#_) .rail:has(li:nth-child(9)) { --av: clamp(24px, calc((100dvh - 250px) / var(--n, 12) - 8px), 44px); gap: 8px; }
  body:not(#_) .rail:has(li:nth-child(9)) .av { width: var(--av); height: var(--av); }
  body:not(#_) .rail:has(li:nth-child(9)) .r-info { width: min(30px, var(--av)); height: min(30px, var(--av)); }
}
@media (min-width: 900px) and (min-height: 521px) {
  body:not(#_) .rail:has(li:nth-child(9)) { --av: clamp(26px, calc((100dvh - 130px) / var(--n, 12) - 14px), 48px); gap: 6px; }
  body:not(#_) .rail:has(li:nth-child(9)) .av { width: var(--av); height: var(--av); }
}

/* ---------- 2026-11-21 (Owner): Würfel-Fenster passt immer in den Bildschirm; reicht die Höhe nicht, rollt nur die Liste, Titel und Knopf bleiben stehen ---------- */
body:not(#_) .intro-box { max-height: calc(100dvh - 16px); grid-template-rows: none; overflow: hidden; }
body:not(#_) .intro-box > .ord { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
body:not(#_) .intro-box:has(.ord) { display: flex; flex-direction: column; }
body:not(#_) .intro-box:has(.ord) > :not(.ord) { flex: none; }
@media (orientation: landscape) and (max-height: 520px) {
  body:not(#_) .intro-box:has(.ord li:nth-child(9)) { width: min(100%, 820px); padding: 6px 12px; gap: 4px; }
  body:not(#_) .intro-box:has(.ord li:nth-child(9)) #introKick { display: none; }
  body:not(#_) .intro-box:has(.ord li:nth-child(9)) .ord { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  body:not(#_) .intro-box:has(.ord li:nth-child(9)) .ord li { min-height: 0; padding-top: 2px; padding-bottom: 2px; }
  body:not(#_) .intro-box:has(.ord li:nth-child(9)) .intro-act { min-height: 0; }
}

/* ---------- 2026-11-21 (Owner: kein Fenster höher als der Bildschirm, auch mit 12 Spielern) ---------- */
/* Trink-Karte: viele Zeilen (12 Spieler geben Schlucke) - die Aufstellung rollt, Zahl und Knopf bleiben stehen */
body:not(#_) .drink-card { display: flex; flex-direction: column; align-items: center; max-height: calc(100dvh - 16px); overflow: hidden; }
body:not(#_) .drink-card > * { flex: none; }
body:not(#_) .drink-card > .d-lines { flex: 0 1 auto; min-height: 44px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
@media (orientation: landscape) and (max-height: 520px) {
  body:not(#_) .drink { padding: 8px; }
  body:not(#_) .drink-card { padding: 10px 16px 12px; gap: 4px; width: min(100%, 420px); }
  body:not(#_) .drink-card .d-num { font-size: 56px; }
  body:not(#_) .drink-card .d-lines { margin: 2px 0 6px; padding: 6px 10px; }
  body:not(#_) .drink-card .btn { min-height: 44px; }
  /* Kartenwahl und Abwehr: mittig und nie höher als der Bildschirm */
  body:not(#_) .action:not(.waiting):is(:has(.pick-row), :has(.react-row)) { top: 50%; max-height: calc(100dvh - 12px); }
  /* mehrere End-Hinweise übereinander: der Stapel endet am unteren Rand und rollt */
  body:not(#_) .end-notes { max-height: calc(100dvh - 104px); overflow-y: auto; pointer-events: auto; gap: 6px; }
}
body:not(#_) .end-notes { max-height: calc(100dvh - 34% - 8px); overflow-y: auto; }
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) .end-notes { max-height: calc(100dvh - 104px); } }

/* ---------- 2026-11-21 (Owner): Handy hochkant - Handkarten höher (Bild der Karte hochkant statt quer) ---------- */
@media (max-width: 899px) and (orientation: portrait) {
  body:not(#_) .hand .tcard .tc-art { aspect-ratio: 10 / 11; }
  body:not(#_) .handzone { height: 190px; }
}

/* ---------- 2026-11-21 (Owner): alle an einem Bildschirm ---------- */
.local-box { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(201, 184, 255, 0.35); }
.local-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.local-form input { min-height: 44px; padding: 0 12px; background: #0a0618; color: #fff; border: 1px solid rgba(201, 184, 255, 0.55); font: 600 16px/1 var(--body); }
.seat-note { position: fixed; z-index: 60; left: 50%; top: 50%; translate: -50% -50%; display: grid; gap: 4px; justify-items: center; padding: 16px 28px; text-align: center; pointer-events: none; background: rgba(5, 2, 15, 0.94); border: 2px solid #2ef2ff; box-shadow: 0 0 30px rgba(46, 242, 255, 0.6); color: #fff; }
.seat-note[hidden] { display: none; }
.seat-note small { font: 600 13px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: #2ef2ff; }
.seat-note b { font: 700 clamp(26px, 7vw, 40px)/1.1 var(--display); }
.seat-note.go { animation: seatNote 2200ms ease both; }
@keyframes seatNote { 0% { opacity: 0; scale: 0.9; } 12%, 80% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .seat-note.go { animation: none; } }

/* ---------- 2026-11-21 (Owner): Startseite / Beitreten per Raumcode passt in jedes Format ---------- */
/* Kopfzeile: die Zeile "Party-Spiel ..." bekommt auf schmalem Platz ihre eigene Zeile unter den Knöpfen statt neben ihnen umzubrechen */
@media (max-width: 899px), (orientation: landscape) and (max-height: 520px) {
  body:not(#_) .brand-top { flex-wrap: wrap; row-gap: 6px; }
  body:not(#_) .brand-top .top-acts { margin-left: auto; order: 1; }
  body:not(#_) .brand-top .kicker { order: 2; flex: 1 0 100%; font-size: 11px; letter-spacing: 0.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* Raumcode: vier Buchstaben passen immer ganz ins Feld */
body:not(#_) .code-row { grid-template-columns: minmax(0, 1fr) auto; }
body:not(#_) .code-row input { min-width: 0; padding-left: 6px; padding-right: 0; font-size: clamp(18px, 5.6vw, 24px); letter-spacing: 0.22em; text-indent: 0.22em; }
@media (max-width: 420px) { body:not(#_) .code-row { gap: 8px; } body:not(#_) .code-row .btn { padding-left: 14px; padding-right: 14px; } }
/* niedrige Hochkant-Handys: Schriftzug kleiner, damit Schritt 2 ohne Scrollen passt */
@media (orientation: portrait) and (max-height: 700px) { body:not(#_) .logo .wordmark { width: min(58vw, 230px); } body:not(#_) .home { gap: 8px; padding-top: 10px; } }
@media (orientation: landscape) and (max-height: 380px) { body:not(#_) .logo .wordmark { width: min(34vw, 220px); } }
@media (orientation: landscape) and (max-height: 380px) {
  body:not(#_) #stepRoom { gap: 6px; }
  body:not(#_) .home :is(.home-form, .gate) { padding-top: 8px; padding-bottom: 8px; gap: 6px; }
  body:not(#_) .home .btn { min-height: 44px; }
  body:not(#_) #homeError { margin: 0; font-size: 13px; }
}

/* 2026-11-21 (Owner): Spielmodus als Einstellung - zwei gleich breite Felder, Text darf umbrechen */
body:not(#_) .seg.seg-two { display: grid; grid-template-columns: 1fr 1fr; }
body:not(#_) .seg.seg-two button { min-height: 48px; padding: 6px 8px; white-space: normal; line-height: 1.15; font-size: 13px; }

/* ---------- 2026-11-21 (Owner): Feld-Ansage sagt auch, was das Feld tut ---------- */
.fx-what { max-width: min(86vw, 420px); padding: 6px 14px; background: rgba(5, 2, 15, 0.92); border: 1px solid var(--fxc); color: #fff; font: 600 15px/1.25 var(--body); text-align: center; animation: fade 300ms 250ms both; }
.fx-what i { font-style: normal; color: var(--fxc); font-weight: 700; }
@media (orientation: landscape) and (max-height: 520px) { .fx-in { gap: 6px; margin-top: 0; } .fx-art { width: min(30vh, 130px); } .fx-what { font-size: 14px; padding: 4px 12px; } }
/* Hinweis "Jetzt am Gerät" oben, damit er die Feld-Ansage in der Mitte nicht verdeckt */
body:not(#_) .seat-note { top: calc(64px + var(--safe-t, 0px)); translate: -50% 0; padding: 10px 22px; }
body:not(#_) .seat-note b { font-size: clamp(20px, 5vw, 30px); }
/* 2026-11-21: sehr schmale Handys - die Anzeige oben zeigt den Namen ganz, dafür ohne Bild */
@media (max-width: 380px) and (orientation: portrait) { body:not(#_) .turnchip .av { display: none; } }

/* ---------- 2026-11-21 (Owner: "Check all screens") - Befunde aus dem Lauf über alle Bildschirme mit 12 Spielern ---------- */
/* Spieler-Auswahl mit vielen Mitspielern (Wasserfall, Verteilen, Team, Kartenziel): festes Raster mit kleineren Feldern statt langer Liste */
body:not(#_) .chips:has(.chip:nth-child(7)) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
body:not(#_) .chips:has(.chip:nth-child(7)) .chip { min-height: 40px; padding: 2px 8px 2px 2px; gap: 6px; font-size: 13px; line-height: 1.1; text-align: left; border-radius: 22px; overflow-wrap: anywhere; }
body:not(#_) .chips:has(.chip:nth-child(7)) .chip .av { width: 30px; height: 30px; flex: none; }
@media (min-width: 700px) { body:not(#_) .chips:has(.chip:nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Der Knopf am Ende eines Fensters bleibt sichtbar, auch wenn der Inhalt darüber rollt */
body:not(#_) .action:not(.waiting):has(.chips .chip:nth-child(7)) > :is(.btn, .row):last-child { position: sticky; bottom: -2px; z-index: 2; box-shadow: 0 -8px 10px 4px var(--panel, #0d0820); }
/* Querformat am Handy: ein Fenster mit vielen Spielern braucht die ganze Höhe, die Hand tritt solange zurück */
@media (orientation: landscape) and (max-height: 520px) {
  body:not(#_) .action:not(.waiting):has(.chips .chip:nth-child(7)) { top: 50%; max-height: calc(100dvh - 12px); width: min(calc(100vw - 120px), 640px); padding-top: 8px; padding-bottom: 10px; gap: 6px; }
  body:not(#_) .game:has(.action:not([hidden]) .chips .chip:nth-child(7)) :is(.handzone, .mystatus) { visibility: hidden; }
}
/* Figurwahl: Namen stehen ganz da (drei Spalten im Hochformat, kleinere Schrift, kein Abschneiden) */
body:not(#_) .avatar-pick button { overflow: visible; font-size: 11.5px; letter-spacing: 0; line-height: 1.15; overflow-wrap: normal; hyphens: manual; }
@media (max-width: 520px) and (orientation: portrait) { body:not(#_) .char-dialog .avatar-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } body:not(#_) .char-dialog .avatar-pick img { width: 46px; height: 46px; } body:not(#_) .char-dialog .avatar-pick button { padding: 6px 2px; } }
@media (max-width: 520px) and (orientation: portrait) and (max-height: 700px) { body:not(#_) .char-dialog .avatar-pick img { width: 36px; height: 36px; } body:not(#_) .char-dialog { padding-block: 10px; } }
/* Reihenfolge-Liste: lange Namen brechen um statt mit "..." zu enden */
body:not(#_) .ord li b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.1; font-size: 14px; }
/* Karte ausspielen mit Zielwahl im Hochformat: Karte kleiner, damit die Ziele ohne Rollen zu sehen sind */
@media (orientation: portrait) { body:not(#_) #sheet:has(.chips) > .tcard.big { --w: min(190px, 50vw, 21dvh); } }

/* ---------- 2026-11-21 (Owner): ein Fenster zeigt, wer jetzt wie viel trinkt ---------- */
body:not(#_) .drink-card.many { width: min(100%, 420px); gap: 8px; }
body:not(#_) .drink-card .d-head { font: 700 clamp(20px, 5.4vw, 26px)/1.15 var(--display); color: var(--gold, #f5e04a); text-align: center; }
body:not(#_) .drink-card > .d-who { flex: 0 1 auto; min-height: 52px; width: 100%; margin: 2px 0 8px; padding: 0; list-style: none; display: grid; gap: 6px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
body:not(#_) .d-who li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: rgba(0, 0, 0, 0.32); border-left: 3px solid rgba(201, 184, 255, 0.5); text-align: left; }
body:not(#_) .d-who li.me { border-left-color: var(--gold, #f5e04a); background: rgba(245, 224, 74, 0.12); }
body:not(#_) .d-who .av { width: 40px; height: 40px; }
body:not(#_) .d-who .dw-txt { display: grid; gap: 2px; min-width: 0; }
body:not(#_) .d-who .dw-txt b { font: 700 16px/1.15 var(--body); color: #fff; overflow-wrap: anywhere; }
body:not(#_) .d-who .dw-txt small { font-size: 12.5px; line-height: 1.2; color: var(--text-2, #c9c2e6); overflow-wrap: anywhere; }
body:not(#_) .d-who .dw-team { font: 700 11px/1 var(--display); font-style: normal; letter-spacing: 0.06em; padding: 2px 5px; border: 1px solid #2ef2ff; color: #2ef2ff; vertical-align: middle; }
body:not(#_) .d-who .dw-n { font: 700 30px/1 var(--display); color: var(--gold, #f5e04a); min-width: 1.2em; text-align: right; }
@media (orientation: landscape) and (max-height: 520px) {
  body:not(#_) .drink-card.many { width: min(100%, 620px); }
  body:not(#_) .drink-card .d-head { font-size: 18px; }
  body:not(#_) .drink-card > .d-who { grid-template-columns: 1fr 1fr; gap: 4px 8px; margin: 0 0 6px; }
  body:not(#_) .d-who li { padding: 3px 10px 3px 4px; grid-template-columns: 32px minmax(0, 1fr) auto; }
  body:not(#_) .d-who .av { width: 32px; height: 32px; }
  body:not(#_) .d-who .dw-n { font-size: 24px; }
}

/* 2026-11-21 (Owner): Meldung - nur der Gastgeber entscheidet */
body:not(#_) .vote-judge { margin: 0; font: 700 16px/1.25 var(--body); color: #fff; text-align: center; }
body:not(#_) .vote-judge span { display: inline-block; margin-left: 6px; font-weight: 500; color: var(--text-2, #c9c2e6); }
body:not(#_) .vote-card [hidden] { display: none !important; }

/* 2026-11-21 (Owner): angehaltene Zugzeit ist gedämpft */
body:not(#_) .tc-time.hold { opacity: 0.55; }
/* 2026-11-23 (Owner): kein Zeichen mehr hinter der Zeit (das "II" wirkte wie ein Rechteck); angehaltene Zeit nur blasser */

/* ---------- 2026-11-21 (Owner): Spieler-Auswahl mit vielen Mitspielern - zwei je Zeile, Namen ganz lesbar, die Liste rollt ---------- */
body:not(#_) .chips:has(.chip:nth-child(7)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body:not(#_) .chips:has(.chip:nth-child(7)) .chip { min-height: 46px; padding: 3px 12px 3px 3px; gap: 8px; font-size: 15px; line-height: 1.15; overflow: visible; white-space: normal; overflow-wrap: normal; word-break: normal; min-width: 0; }
body:not(#_) .chips:has(.chip:nth-child(7)) .chip .av { width: 36px; height: 36px; }
@media (min-width: 700px) { body:not(#_) .chips:has(.chip:nth-child(7)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* in Blatt und Fenster rollt die Auswahl selbst, Überschrift und Knopf bleiben stehen */
body:not(#_) :is(#sheet, .action) .chips:has(.chip:nth-child(7)) { max-height: min(44dvh, 320px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 2px; align-content: start; }
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) :is(#sheet, .action) .chips:has(.chip:nth-child(7)) { max-height: 46dvh; } }
@media (min-width: 700px) { body:not(#_) .chips:has(.chip:nth-child(7)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body:not(#_) :is(#sheet, .action) .chips:has(.chip:nth-child(7)) { max-height: min(36dvh, 300px); }

/* ---------- 2026-11-21 (Owner): Teams im Regelblatt und in den Spieler-Details ---------- */
body:not(#_) .teams { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
body:not(#_) .teams li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 10px; background: rgba(0, 0, 0, 0.3); border-left: 3px solid #2ef2ff; }
body:not(#_) .teams li.mine { background: rgba(46, 242, 255, 0.1); }
body:not(#_) .teams .tm-no { font: 700 13px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #2ef2ff; white-space: nowrap; }
body:not(#_) .teams .tm-mem { display: flex; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
body:not(#_) .teams .tm-p { display: inline-flex; align-items: center; gap: 6px; font: 600 15px/1.15 var(--body); color: #fff; }
body:not(#_) .teams .tm-p .av { width: 28px; height: 28px; flex: none; }
body:not(#_) .tm-note { margin-top: 0; }

/* ---------- 2026-11-23 (Owner): Frau oder Mann - Umschalter in der Figurwahl und beim Anlegen von Mitspielern ---------- */
body:not(#_) .sex-pick { margin: 0 0 10px; }
body:not(#_) .local-form { grid-template-columns: 1fr; }
body:not(#_) .local-form .sex-pick { margin: 0; }
body:not(#_) .local-form:has(.sex-pick) { grid-template-columns: minmax(0, 1fr) auto; }
body:not(#_) .local-form .sex-pick { grid-column: 1 / -1; }

/* 2026-11-23: Text im Startfenster mittig - die 34ch breite Box sass links, nur die Zeilen waren zentriert */
body:not(#_) .home .gate .gate-lede { margin-left: auto; margin-right: auto; justify-self: center; }

/* 2026-11-23 (Owner): Spielbeschreibung nur im ersten Schritt (Gast oder Anmelden, steht dort im Fenster); in Name, Raum und Beitreten nicht mehr. */
body:not(#_) .home .about .lede { display: none; }
body:not(#_) .home .about .lede + .fine { padding-top: 0; border-top: 0; }
/* Hinweis "Trinkt verantwortungsvoll" im Pink des Hauptknopfs (Owner 2026-11-23, ersetzt Lila vom 2026-11-21); Warnzeichen in derselben Farbe */
body:not(#_) .home .about .fine { color: var(--n-mag, var(--coral)); }
body:not(#_) .home .about .fine::before { background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 22 20.5H2Z'/%3E%3Cpath d='M12 10v5M12 17.6v.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 22 20.5H2Z'/%3E%3Cpath d='M12 10v5M12 17.6v.2'/%3E%3C/svg%3E") center / contain no-repeat; }

/* 2026-11-23 (Owner): Zugzeit-Box behält ihre Breite, egal welche Zeit dasteht */
body:not(#_) .turnchip .tc-time b { display: inline-block; min-width: 0; width: 3.4ch; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Einstellungen: Ton, Sprache, Vollbild als Symbol-Reihe */
body:not(#_) .set-icons { display: flex; gap: 10px; flex-wrap: wrap; }
body:not(#_) .set-icons .set-ic { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; background: var(--panel-3); color: var(--text); border: 2px solid var(--edge); border-radius: 14px; cursor: pointer; }
body:not(#_) .set-icons .set-ic svg { width: 24px; height: 24px; }
body:not(#_) .set-icons .set-ic .flag { width: 30px; height: 20px; border-radius: 3px; }
body:not(#_) .set-icons .set-ic[aria-pressed="false"] { color: var(--text-2); }
body[data-theme="neon"]:not(#_) .set-icons .set-ic, body[data-theme="arcade"]:not(#_) .set-icons .set-ic { border-radius: 0; }
/* Spieler-Blatt: Orten-Symbol links neben Schließen */
body:not(#_) #sheet > .sheet-x.sheet-loc { margin-right: 50px; margin-top: -14px; }
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) #sheet > .sheet-x.sheet-loc { margin: 0; right: 60px; } }
#statsBtn[hidden] { display: none !important; }

/* 2026-11-23 (Owner): Regel-Erklärung nur über das Info-Symbol oben, keine eigene Zeile mehr */
body:not(#_) #sheet .rule-how > summary { display: none; }
body:not(#_) #sheet .rule-how:not([open]) { display: none; }
body:not(#_) #sheet .rule-how[open] { padding-top: 12px; }
body:not(#_) #sheet > .sheet-x[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }

/* 2026-11-23 (Owner): Startseite - drei Punkte oben rechts öffnen Ton, Sprache, Konto; Kennzahlen mit Symbolen unter dem Logo */
body:not(#_) .home > .brand > .brand-top { position: absolute; z-index: 6; top: 12px; right: 12px; width: auto; min-height: 0; display: block; }
body:not(#_) .home .top-more { width: 44px; justify-content: center; padding: 0; }
body:not(#_) .home .top-acts { position: absolute; right: 0; top: calc(100% + 6px); display: grid; gap: 8px; width: max-content; min-width: 190px; padding: 10px; background: var(--panel); border: 2px solid var(--edge); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
body:not(#_) .home .top-acts[hidden] { display: none; }
body:not(#_) .home .top-acts .acct-btn { width: 100%; max-width: none; justify-content: flex-start; }
body:not(#_) .home .top-acts #langBtn { display: none; }
body:not(#_) .home .top-acts .lang-list { position: static; display: flex; gap: 6px; padding: 0; background: none; border: 0; box-shadow: none; }
body:not(#_) .home .top-acts .lang-list button { flex: 1; height: 44px; border: 2px solid var(--edge); }
body:not(#_) .home .brand-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
body:not(#_) .home .brand-facts li { display: flex; align-items: center; gap: 7px; font: 600 12px/1.1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--n-cyan, var(--text-2)); }
body:not(#_) .home .brand-facts svg { flex: none; width: 22px; height: 22px; }
/* Querformat (Handy quer, flaches Laptop-Fenster): Variante A für Start, Name, Raum - Marke links, Fenster rechts */
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) .home { width: min(calc(100% - 20px), 1100px); max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 44%); grid-template-rows: auto 1fr auto; column-gap: 24px; row-gap: 8px; align-content: stretch; min-height: calc(100dvh - 24px); }
  body:not(#_) .home > .brand { grid-column: 1; grid-row: 1 / span 3; display: grid; align-content: center; justify-items: start; gap: 12px; text-align: left; }
  body:not(#_) .home > :is(.gate, .home-form, .rejoin) { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 100%; }
  /* drei Punkte oben links über der Marke: rechts steht das Fenster in voller Höhe */
  body:not(#_) .home > .brand > .brand-top { right: auto; left: 12px; }
  body:not(#_) .home .top-acts { right: auto; left: 0; }
  body:not(#_) .home > .rejoin:not([hidden]) { grid-row: 1; align-self: start; }
  body:not(#_) .home .logo .wordmark { width: min(36vw, 300px); }
  body:not(#_) .home .brand-facts { justify-content: flex-start; }
}

/* 2026-11-23 (Owner): Ausrichtung auf der Startseite - alles an EINER linken Kante (Logo, Kennzahlen, Hinweis, Text im Fenster), hoch und quer.
   Das Wortbild hat links Luft in der Zeichnung; der negative Rand setzt das S genau auf die Kante. */
body:not(#_) .home > .brand { justify-items: start; text-align: left; }
body:not(#_) .home .logo { align-items: flex-start; justify-self: stretch; }
body:not(#_) .home .logo .wordmark { margin-left: -4.2%; }
body:not(#_) .home .brand-facts { justify-content: flex-start; }
body:not(#_) .home .about { justify-self: stretch; max-width: none; }
body:not(#_) .home .about .fine { justify-content: flex-start; text-align: left; }
body:not(#_) .home .gate .gate-lede, body:not(#_) .home .gate .hint { text-align: left; }
/* Drei-Punkte-Menü immer oben rechts, auch im Querformat: dort hält die rechte Spalte oben eine Zeile für den Knopf frei */
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) .home > .brand > .brand-top { left: auto; right: 12px; }
  body:not(#_) .home .top-acts { left: auto; right: 0; }
  body:not(#_) .home { grid-template-rows: 40px minmax(0, 1fr); }
  body:not(#_) .home .home-form .btn, body:not(#_) .home .home-form input { min-height: 40px; }
  body:not(#_) .home .home-form .code-row input { height: 44px; }
  body:not(#_) .home > .brand { grid-row: 1 / span 2; }
  body:not(#_) .home > :is(.gate, .home-form) { grid-row: 2; align-self: center; }
  body:not(#_) .home > .rejoin:not([hidden]) { grid-row: 2; }
  body:not(#_) .home .home-step { gap: 6px; }
}

/* 2026-11-23 (Owner): Handkarten sind in jedem Format hochkant wie eine echte Spielkarte (vorher quer/quadratisch im Querformat und am Desktop) */
body:not(#_) .hand .tcard .tc-art { aspect-ratio: 10 / 11; }
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) .hand .tcard { --w: 88px; } }

/* 2026-11-23 (Owner): Hochkant am Handy - Hilfe und Einstellungen rechts untereinander (wie die Spieler links), die Regeln als dritter Knopf darunter
   (Platz setzt fxPlace), Zentrieren darunter. Die Zugbox steht oben zwischen Spielerleiste und Knopfspalte, damit der Name wieder Platz hat. */
@media (max-width: 700px) and (orientation: portrait) {
  body:not(#_) .tools { grid-auto-flow: row; grid-template-columns: 44px; gap: 8px; top: calc(10px + var(--safe-t, 0px)); right: calc(8px + env(safe-area-inset-right, 0px)); }
  body:not(#_) .fabs { top: calc(166px + var(--safe-t, 0px)); bottom: auto; right: calc(8px + env(safe-area-inset-right, 0px)); }
  body:not(#_) .turnchip { top: calc(10px + var(--safe-t, 0px)); left: 118px; right: 60px; transform: none; translate: none; max-width: none; width: auto; padding-left: 12px; }
  /* die Leiste links zeigt schon, wer dran ist: das kleine Bild in der Box entfällt, so bleibt Platz für Name und Aktion */
  body:not(#_) .turnchip > .av, body:not(#_) .turnchip > img { display: none; }
  body:not(#_) .turnchip .tc-txt { flex: 1 1 auto; }
}

/* 2026-11-23 (Owner, Runde): Spielerauswahl ohne den Punkte-Streifen rechts (Ticket-Zier), mehr Abstand zum sicheren Tippen */
body[data-theme="neon"]:not(#_) .chip { padding-right: 14px; background: var(--panel-3); }
body[data-theme="neon"]:not(#_) .chip[aria-pressed="true"], body[data-theme="neon"]:not(#_) .chip.wf.now { background: var(--n-yel); }
body:not(#_) .chips { gap: 12px; }
body:not(#_) .chips:has(.chip:nth-child(7)) { gap: 10px 12px; }
/* Hochkant: die Regel-Box ist der erste Knopf oben rechts, im selben Stil wie Hilfe und Einstellungen, mit gelbem Akzent; die Werkzeuge rücken eine Stelle nach unten */
@media (max-width: 700px) and (orientation: portrait) {
  body:not(#_) .tools { top: calc(62px + var(--safe-t, 0px)); }
  body[data-theme="neon"]:not(#_) .effects.slot .fx-chip { border: 1px solid #4a3a8c; border-radius: 3px; color: var(--n-yel); background: linear-gradient(180deg, #221650, #0c0720 55%); box-shadow: inset 0 -3px 0 var(--n-yel), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
  body:not(#_) .effects.slot .fx-chip b, body:not(#_) .effects.slot .fx-chip svg { color: var(--n-yel, var(--gold)); }
}
/* Ein offenes Fenster (was du gerade tun musst) liegt über allem im Spiel: über Handkarten und dem Zentrieren-Knopf (nur Blätter, Trink-Fenster und Dialoge liegen darüber) */
body:not(#_) .action:not(.waiting):not(.bare):not([hidden]) { z-index: 14; }
/* Kartenwahl im Querformat: kleinere Karten, das Fenster nur so breit wie nötig */
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) #panel .pick-row .tcard { --w: min(calc((100dvh - 170px) / 1.45), 118px); }
  body:not(#_) .action:not(.waiting):has(.pick-row) { width: auto; max-width: calc(100vw - 120px); }
}

/* ===================== 2026-11-23 (Owner): EINE Ebenen-Ordnung im Spiel =====================
   Spielfläche (Leiste, Werkzeuge, Regeln, Hand, Zentrieren)  <  Aktion (alles, was der Spieler gerade tun muss)  <  Blätter  <  Flug-Karte  <  Trinken  <  Abstimmung.
   Jede Aktions-Fläche (Feld-Fenster jeder Art, Flasche, Auftakt, Karten-Popup, Würfel) liegt auf derselben Ebene über der Hand - kein Sonderfall je Fenster. */
:root { --z-hud: 13; --z-action: 16; --z-sheet: 20; --z-fly: 25; --z-drink: 30; --z-vote: 45; }
body:not(#_) :is(.action:not(.waiting):not([hidden]), .intro, .cardpop, .dice-stage) { z-index: var(--z-action); }
body:not(#_) .sheet-wrap { z-index: var(--z-sheet); }
/* Flasche: passt hochkant ins Bild (Ring höchstens so breit wie der Bildschirm abzüglich Rand) */
body:not(#_) .spin-box { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: hidden; }
body:not(#_) .spin-ring { --r: min(28vw, 28vh, 150px); max-width: 100%; }
/* Querformat: jedes Aktions-Fenster bleibt zwischen Kopfleiste und unterem Rand, nichts wird abgeschnitten (der Inhalt rollt notfalls im Fenster) */
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) .action:not(.waiting):not(.bare):not([hidden]) { top: calc(50% + 26px); max-height: calc(100dvh - 64px); overflow-y: auto; }
}
/* Knöpfe zum Weitermachen (CTA) in Fenstern stehen rechts und nur so breit wie nötig - nicht über die ganze Breite.
   Auswahl-Paare (z. B. Wahrheit / Pflicht) bleiben nebeneinander. */
body:not(#_) .win > .btn { justify-self: center; width: auto; min-width: min(48%, 240px); padding-inline: 28px; } /* gegen ältere Breiten-Regeln einzelner Fenster; Grundform in ui.css */
body:not(#_) .roll-btn { scale: 1.2; }

/* 2026-11-23 (Owner): Zugbox mit zwei Zeilen - oben wer dran ist, darunter was er gerade tut (statt "Runde N"); die Wartezeile unten entfällt. */
body:not(#_):not(#q) .action.waiting { display: none !important; }
body:not(#_):not(#q) .turnchip .tc-txt { display: grid; gap: 1px; min-width: 0; }
body:not(#_):not(#q) .turnchip .tc-sub { display: block; font: 600 12px/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--n-cyan, var(--text)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* eigener Zug: hell auf dem dunklen Pink, damit die zweite Zeile lesbar ist */
body:not(#_):not(#q) .turnchip.mine .tc-sub { color: #ffd3e8; }
/* Hochkant ist die Box schmal: die Aktion darf in eine zweite Zeile umbrechen statt gekürzt zu werden (höchstens zwei Zeilen) */
@media (max-width: 700px) and (orientation: portrait) {
  body:not(#_):not(#q) .turnchip .tc-sub { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; letter-spacing: 0.03em; line-height: 1.15; }
}

/* 2026-11-23 (Owner): Flasche wie jedes andere Fenster - keine Abdunkelung über den ganzen Bildschirm, Spielerleiste, Knöpfe und Karten bleiben sichtbar; nur das Fenster liegt auf der Aktions-Ebene */
body:not(#_) .spin { z-index: auto; background: radial-gradient(circle at 50% 50%, rgba(3, 6, 14, 0.58), rgba(3, 6, 14, 0.8)); pointer-events: none; } /* wie die Abdunkelung der anderen Fenster: unter Leiste, Knöpfen und Karten */
body:not(#_) .spin > .spin-box { position: relative; z-index: var(--z-action); pointer-events: auto; }
/* Flasche im Querformat: unter der Kopfleiste, Ring kleiner, damit die Zugbox sichtbar bleibt */
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) .spin { padding: 60px 12px 8px; }
  body:not(#_) .spin-ring { --r: min(19vh, 84px); height: calc(var(--r) * 2 + 80px); }
  body:not(#_) .spin-box { max-height: calc(100dvh - 68px); padding: 8px 14px; gap: 4px; }
}

/* 2026-11-23 (Owner): Reaktionen - Auswahl neben dem Knopf, Anzeige animiert neben dem Bild in der Spielerleiste */
body:not(#_) .emote-bar { position: absolute; z-index: var(--z-hud); display: grid; grid-template-columns: repeat(3, 48px); gap: 8px; padding: 8px; background: var(--panel); border: 2px solid var(--edge); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
body:not(#_) .emote-bar[hidden] { display: none; }
body:not(#_) .emote-pick { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; background: var(--panel-3); color: var(--n-yel, var(--gold)); border: 1px solid var(--edge); border-radius: 12px; cursor: pointer; touch-action: manipulation; }
body:not(#_) .emote-pick svg { width: 26px; height: 26px; }
body:not(#_) .emote-bar.locked .emote-pick { opacity: 0.4; cursor: not-allowed; }
body:not(#_) #emoteBtn.cool { opacity: 0.55; }
body[data-theme="neon"]:not(#_) :is(.emote-bar, .emote-pick) { border-radius: 3px; }
body:not(#_) .rail li { position: relative; }
body:not(#_) .emote-pop { position: absolute; z-index: 6; left: calc(var(--av, 44px) - 16px); top: -8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #05020f; color: var(--n-yel, var(--gold)); border: 2px solid currentColor; box-shadow: 0 0 14px currentColor; pointer-events: none; animation: emotePop 3s cubic-bezier(0.2, 0.9, 0.2, 1) forwards; } /* Abzeichen an der oberen rechten Ecke des Spielerbilds */
body:not(#_) .emote-pop svg { width: 20px; height: 20px; }
body:not(#_) .emote-pop.em-down { color: #64aaff; } body:not(#_) .emote-pop.em-hot { color: #ff8a3d; } body:not(#_) .emote-pop.em-love { color: #ff3d9a; } body:not(#_) .emote-pop.em-drunk { color: #c6e04a; } body:not(#_) .emote-pop.em-up { color: #2ef2ff; }
@keyframes emotePop { 0% { opacity: 0; scale: 0.3; } 12% { opacity: 1; scale: 1.3; } 22% { scale: 1; } 30% { rotate: -12deg; } 38% { rotate: 10deg; } 46% { rotate: 0deg; } 82% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -14px; } }
@media (prefers-reduced-motion: reduce) { body:not(#_) .emote-pop { animation: emoteFade 3s linear forwards; } @keyframes emoteFade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } } }
/* Begleit-Gerät im Ein-Bildschirm-Modus: nur Reaktionen, kein Spielfenster, keine Hand */


/* 2026-11-23 (Owner): Spielende als Rangliste - Podest (2 | 1 | 3), darunter Platz 4 bis 12 in zwei Spalten, Knöpfe rechts */
body:not(#_) #panel[data-stage="ended"] { width: min(calc(100vw - 20px), 560px); }
body:not(#_) .podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; margin: 0; padding: 0; list-style: none; }
body:not(#_) .podium li { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 10px; background: var(--panel-3); border: 1px solid var(--edge); min-width: 0; }
body:not(#_) .podium .pod-1 { order: 2; padding-top: 14px; border-color: var(--n-yel, var(--gold)); box-shadow: 0 0 18px rgba(245, 224, 74, 0.35); }
body:not(#_) .podium .pod-2 { order: 1; } body:not(#_) .podium .pod-3 { order: 3; }
body:not(#_) .podium .pod-av { position: relative; display: grid; }
body:not(#_) .podium .av { width: 52px; height: 52px; }
body:not(#_) .podium .pod-1 .av { width: 72px; height: 72px; }
body:not(#_) .pod-crown { position: absolute; left: 50%; top: -16px; translate: -50% 0; color: var(--n-yel, var(--gold)); }
body:not(#_) .pod-crown svg { width: 26px; height: 26px; }
body:not(#_) .pod-n { font: 700 22px/1 var(--display); color: var(--n-yel, var(--gold)); }
body:not(#_) .pod-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14px/1.2 var(--display); }
body:not(#_) .podium small, body:not(#_) .rank-list small { color: var(--text-2); font-size: 12px; }
body:not(#_) .rank-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin: 0; padding: 0; list-style: none; text-align: left; }
body:not(#_) .rank-list li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 4px 8px; background: var(--panel-3); border: 1px solid var(--edge); }
body:not(#_) .rank-list li > b { grid-row: 1 / span 2; font: 700 16px/1 var(--display); color: var(--text-2); }
body:not(#_) .rank-list .av { grid-row: 1 / span 2; width: 30px; height: 30px; }
body:not(#_) .rank-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
body:not(#_) .end-awards { margin: 0; color: var(--text-2); font-size: 13px; }
body:not(#_) .end-acts { display: flex; justify-content: center; gap: 10px; }
body:not(#_) .end-acts .btn { width: auto; padding-inline: 22px; }
@media (max-width: 420px) { body:not(#_) .rank-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } body:not(#_) .rank-list .rk-pos { display: none; } } /* schmal: das Feld entfällt, die Schlucke bleiben (Owner 2026-11-24) */
@media (orientation: landscape) and (max-height: 620px) { body:not(#_) #panel[data-stage="ended"] { width: min(calc(100vw - 140px), 760px); gap: 8px; padding-block: 10px; } body:not(#_) .rank-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } body:not(#_) .podium .pod-1 .av { width: 56px; height: 56px; } body:not(#_) .podium .av { width: 40px; height: 40px; } }
/* Spielende: das Fenster darf die volle Höhe nutzen (Hand und Brett braucht dann niemand mehr) */
body:not(#_) #panel[data-stage="ended"] { top: 50%; max-height: calc(100dvh - 24px); }
body:not(#_) .game:has(#panel[data-stage="ended"]:not([hidden])) .handzone { visibility: hidden; }
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) #panel[data-stage="ended"] { top: calc(50% + 4px); max-height: calc(100dvh - 12px); gap: 6px; }
  body:not(#_) #panel[data-stage="ended"] .p-kicker { display: none; }
  body:not(#_) #panel[data-stage="ended"] .p-title { font-size: 22px; }
  body:not(#_) .podium li { padding: 4px 4px 6px; }
  body:not(#_) .podium .pod-1 { padding-top: 8px; }
  body:not(#_) .rank-list li { padding: 2px 6px; }
  body:not(#_) .rank-list .av { width: 24px; height: 24px; }
}
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) .podium { align-items: stretch; }
  body:not(#_) .podium li { grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; align-items: center; column-gap: 8px; row-gap: 0; text-align: left; padding: 6px 10px; }
  body:not(#_) .podium .pod-1 { padding-top: 6px; }
  body:not(#_) .podium li .pod-av { grid-row: 1 / span 2; }
  body:not(#_) .podium li .pod-n { grid-row: 1 / span 2; }
  body:not(#_) .podium .av, body:not(#_) .podium .pod-1 .av { width: 40px; height: 40px; }
  body:not(#_) .pod-crown { top: -12px; } body:not(#_) .pod-crown svg { width: 20px; height: 20px; }
}

/* ===================== Rundenende (Owner 2026-11-24: Vollbild "Neonschild") =====================
   Ganzer Bildschirm über allem im Spiel. Rangfolge von oben: Leuchtschild RUNDENENDE, Etikett Runde, Art (Farbe je Art),
   Titel, Aufgabe, Geheimnis (nur gedrückt), FOLGE (hervorgehoben), dann der Schritt des Gastgebers (Fertig / Eintragen). */
body:not(#_) #panel[data-stage="roundevent"] {
  --k: #f5e04a; position: fixed; inset: 0; z-index: 40; width: auto; max-width: none; height: 100dvh; max-height: none; top: 0; left: 0; transform: none; translate: none;
  margin: 0; border: 0; border-radius: 0; clip-path: none; -webkit-clip-path: none; box-shadow: none; overflow-y: auto; columns: auto;
  padding: calc(20px + var(--safe-t, 0px)) max(18px, env(safe-area-inset-right, 0px)) calc(20px + var(--safe-b, 0px)) max(18px, env(safe-area-inset-left, 0px));
  display: grid; align-content: center; justify-items: center; gap: 18px; text-align: center; animation: revOn 600ms linear;
  background: linear-gradient(to top, rgba(255, 61, 154, 0.22), transparent 38%), repeating-linear-gradient(90deg, rgba(46, 242, 255, 0.1) 0 1px, transparent 1px 48px), repeating-linear-gradient(0deg, rgba(255, 61, 154, 0.08) 0 1px, transparent 1px 48px), #05020f;
}
body:not(#_) #panel[data-kind="pantomime"] { --k: #ff3d9a; } body:not(#_) #panel[data-kind="duell"] { --k: #ff8a3d; } body:not(#_) #panel[data-kind="schaetzen"] { --k: #2ef2ff; } body:not(#_) #panel[data-kind="kategorien"] { --k: #a77bff; } body:not(#_) #panel[data-kind="koerper"] { --k: #c6e04a; }
body:not(#_) #panel[data-stage="roundevent"] > * { width: 100%; max-width: 600px; margin: 0; }
/* Kopf: Schild, Etikett Runde, Art, Titel */
body:not(#_) .rev-top { display: grid; justify-items: center; gap: 8px; }
body:not(#_) .rev-sign { margin: 0; font: 400 clamp(36px, 9vw, 72px)/1 var(--sign, var(--display)); letter-spacing: 0.02em; color: #fff; white-space: nowrap; text-shadow: 0 0 6px #fff, 0 0 18px #ff3d9a, 0 0 44px #ff3d9a; animation: revFlicker 3.4s linear infinite; }
body:not(#_) .rev-round { padding: 4px 14px; background: var(--n-yel, var(--gold)); color: #1d1500; font: 700 13px/1.2 var(--display); letter-spacing: 0.2em; text-transform: uppercase; }
body:not(#_) .rev-kind { display: inline-flex; justify-content: center; align-items: center; gap: 10px; margin: 8px 0 0; color: var(--k); font: 700 15px/1.2 var(--display); letter-spacing: 0.24em; text-transform: uppercase; }
body:not(#_) .rev-kind svg { width: 30px; height: 30px; filter: drop-shadow(0 0 8px var(--k)); }
body:not(#_) #panel[data-stage="roundevent"] .rev-top .p-title { margin: 0; font-size: clamp(28px, 6vw, 42px); text-shadow: 0 0 14px var(--k); }
/* Zonen: je eigene Farbe (unabhängig von der Art), Etikett oben links, Inhalt links */
body:not(#_) .rev-zone { --z: #c9b8ff; display: grid; gap: 8px; padding: 14px 16px 16px; text-align: left; background: color-mix(in srgb, var(--z) 9%, #05020f); border: 1px solid color-mix(in srgb, var(--z) 55%, transparent); border-left: 5px solid var(--z); }
body:not(#_) .rev-zone > p { margin: 0; }
body:not(#_) .rev-label { color: var(--z); font: 700 12px/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; }
body:not(#_) .z-how { --z: #c9b8ff; } /* So geht's: helles Lila, ruhig */
body:not(#_) .z-how > p:not(.rev-label) { color: var(--text-2); font-size: 15px; line-height: 1.45; }
body:not(#_) .z-now { --z: #2ef2ff; } /* Jetzt: Türkis, die konkrete Aufgabe */
body:not(#_) .rev-task { color: #fff; font: 600 18px/1.4 var(--body); }
body:not(#_) .rev-name { color: var(--z); }
body:not(#_) .z-folge { --z: #f5e04a; } /* Folge: Gelb wie Schlucke */
body:not(#_) .z-folge > p:not(.rev-label) { color: #fff; font: 700 18px/1.35 var(--display); }
body:not(#_) .z-folge .rev-name { color: #f5e04a; }
body:not(#_) .rev-small { color: var(--text-2); font-size: 14px; }
/* Geheimer Begriff: verdeckt, sichtbar nur solange gedrückt */
body:not(#_) .rev-hold { position: relative; display: grid; place-items: center; min-height: 72px; padding: 12px; background: repeating-linear-gradient(135deg, #0c1d2a 0 10px, #071219 10px 20px); color: var(--text); border: 2px dashed #2ef2ff; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body:not(#_) .rev-hold-cover { font: 700 13px/1.3 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: #2ef2ff; }
body:not(#_) .rev-hold-term { position: absolute; inset: 0; display: grid; place-items: center; background: #05020f; color: #2ef2ff; font: 700 30px/1.1 var(--display); opacity: 0; }
body:not(#_) .rev-hold.show .rev-hold-term { opacity: 1; }
body:not(#_) .rev-answer { display: grid; gap: 2px; margin: 0; padding: 10px 14px; background: #05020f; border: 2px solid #2ef2ff; text-align: center; }
body:not(#_) .rev-answer small { color: var(--text-2); font: 700 12px/1.2 var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
body:not(#_) .rev-answer b { font: 700 32px/1.1 var(--display); color: #2ef2ff; }
body:not(#_) .rev-letter { display: inline-grid; place-items: center; min-width: 1.5em; padding: 0 4px; background: var(--n-mag, var(--coral)); color: #1a0010; }
/* Knopf und Hinweis: mittig, deutlich abgesetzt */
body:not(#_) .rev-cta { display: grid; justify-items: center; gap: 12px; margin-top: 10px; text-align: center; }
body:not(#_) .rev-hint { margin: 0; color: var(--text-2); font-size: 14px; }
body:not(#_) .rev-cta > .btn { justify-self: center; width: auto; min-width: min(80%, 300px); padding-inline: 32px; }
body:not(#_) .rev-cta .chips.tally { justify-content: center; }
@keyframes revFlicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: 0.35; } }
@keyframes revOn { 0% { opacity: 0; } 30% { opacity: 1; } 40% { opacity: 0.4; } 55%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body:not(#_) #panel[data-stage="roundevent"], body:not(#_) .rev-sign { animation: none; } }
/* Spalten-Hüllen: hochkant unsichtbar (alles untereinander), quer zwei feste Spalten */
body:not(#_) .rev-col { display: contents; }
body:not(#_) #panel[data-stage="roundevent"][data-step="enter"] .z-how { display: none; }
/* quer und niedrig: links Kopf, So geht's, Jetzt; rechts Folge, Knopf und Hinweis */
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) #panel[data-stage="roundevent"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; justify-items: stretch; gap: 0 36px; padding-block: 10px; }
  body:not(#_) .rev-col { display: grid; gap: 10px; align-content: center; min-width: 0; max-width: none; }
  body:not(#_) .rev-top { gap: 4px; } body:not(#_) .rev-sign { font-size: 38px; } body:not(#_) .rev-kind { margin-top: 2px; }
  body:not(#_) #panel[data-stage="roundevent"] .rev-top .p-title { font-size: 22px; }
  body:not(#_) .rev-zone { padding: 9px 12px 11px; gap: 5px; }
  body:not(#_) .rev-task, body:not(#_) .z-folge > p:not(.rev-label) { font-size: 15px; }
  body:not(#_) .z-how > p:not(.rev-label) { font-size: 13px; }
  body:not(#_) .rev-hold { min-height: 54px; }
  body:not(#_) .rev-answer b { font-size: 26px; }
}
/* Rundenende: der Hinweis "Jetzt am Gerät" (ein Bildschirm) würde das Leuchtschild verdecken - dort trägt ohnehin der Gastgeber ein */
body:not(#_):has(#panel[data-stage="roundevent"]:not([hidden])) .seat-note { display: none; }
/* Zonen in den Spalten-Hüllen: volle Breite (sonst nur so breit wie ihr Text) */
body:not(#_) #panel[data-stage="roundevent"] .rev-col > * { width: 100%; max-width: 600px; margin: 0; justify-self: center; }
@media (orientation: landscape) and (max-height: 620px) { body:not(#_) #panel[data-stage="roundevent"] .rev-col > * { max-width: none; } }

/* ===================== Spiel-Bildschirme (Owner 2026-11-24): ein Muster für alle =====================
   Kopf (Art, Name) - So geht's (türkis, mit Aktionen) - Folge (gelb, eigene Box) - Knopf mittig.
   Ergebnis: Lösung (türkis), Wer trinkt (pink), Knopf mittig. */
body:not(#_) .gs-head { display: grid; justify-items: center; gap: 8px; }
body:not(#_) .gs-head .p-title { margin: 0; font-size: clamp(28px, 6vw, 42px); text-shadow: 0 0 14px var(--k, #fff); }
body:not(#_) .gs-how { color: var(--text-2); font-size: 15px; line-height: 1.45; }
body:not(#_) .gs-task { color: #fff; font: 600 18px/1.4 var(--body); padding-top: 8px; border-top: 1px dashed color-mix(in srgb, var(--z) 45%, transparent); }
body:not(#_) .gs-small { margin: 0; color: var(--text-2); font-size: 14px; }
body:not(#_) .gs-answer { margin: 0; font: 700 34px/1.1 var(--display); color: #2ef2ff; text-align: center; }
body:not(#_) .z-answer { --z: #2ef2ff; }
body:not(#_) .z-drink { --z: #ff3d9a; }
body:not(#_) .z-drink .chips.tally { justify-content: center; }
body:not(#_) .z-drink .gs-small .rev-name { color: #f5e04a; }
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) .gs-head { gap: 4px; } body:not(#_) .gs-head .p-title { font-size: 22px; }
  body:not(#_) .gs-how { font-size: 13px; } body:not(#_) .gs-task { font-size: 15px; padding-top: 5px; }
  body:not(#_) .gs-answer { font-size: 26px; }
}

/* 2026-11-24 (Owner): Kopf einzeilig - Art und Name nebeneinander; Aufgabe groß, Ergänzung klein, eigene Zeile "Wer" */
body:not(#_) .gs-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px; margin: 4px 0 0; }
body:not(#_) .gs-line .rev-kind { margin: 0; }
body:not(#_) .gs-line .rev-kind svg { width: 24px; height: 24px; align-self: center; }
body:not(#_) .gs-line .p-title { font: 700 clamp(24px, 5.5vw, 36px)/1.1 var(--display); text-shadow: 0 0 14px var(--k, #fff); }
body:not(#_) .gs-task { padding-top: 0; border-top: 0; }
body:not(#_) .gs-how { padding-top: 8px; border-top: 1px dashed color-mix(in srgb, var(--z) 45%, transparent); font-size: 14px; }
body:not(#_) .gs-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; padding: 8px 12px; background: rgba(46, 242, 255, 0.08); font: 700 17px/1.2 var(--display); }
body:not(#_) .gs-who small { color: var(--text-2); font: 700 11px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; }
body:not(#_) .gs-vs { color: var(--text-2); font-weight: 400; font-size: 14px; }
@media (orientation: landscape) and (max-height: 620px) { body:not(#_) .gs-line .p-title { font-size: 22px; } body:not(#_) .gs-who { padding: 5px 10px; font-size: 15px; } }

/* 2026-11-24 (Owner): Timer im Rundenende - groß, für alle gleich, mit Start-Knopf */
body:not(#_) .gs-timer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: rgba(46, 242, 255, 0.08); border: 1px solid rgba(46, 242, 255, 0.4); }
body:not(#_) .gs-timer b { font: 700 34px/1 var(--display); color: #2ef2ff; font-variant-numeric: tabular-nums; min-width: 3ch; }
body:not(#_) .gs-timer b.low { color: #ff8f70; animation: pulse 1s ease-in-out infinite; }
body:not(#_) .gs-timer b.over { color: #ff3d9a; font-size: 24px; }
body:not(#_) .gs-timer .btn { width: auto; }
@media (orientation: landscape) and (max-height: 620px) { body:not(#_) .gs-timer { padding: 5px 10px; } body:not(#_) .gs-timer b { font-size: 26px; } }
@media (orientation: landscape) and (max-height: 620px) { body:not(#_) .rev-hold { min-height: 40px; padding: 6px; } body:not(#_) .rev-hold-term { font-size: 22px; } body:not(#_) .gs-timer { padding: 3px 8px; gap: 6px; } body:not(#_) .gs-timer b { font-size: 22px; } body:not(#_) .gs-timer .btn { min-height: 34px; padding-block: 4px; } body:not(#_) .gs-how { padding-top: 5px; } body:not(#_) .rev-zone { gap: 4px; } }

/* ===== 12 Spieler (Owner 2026-11-24): Trinken ohne Wiederholung, Lobby ohne Umbruch, Schluck-Liste kompakt ===== */
/* Trinken-Fenster: "Alle trinken N" bzw. je Menge eine Überschrift und nur Namen */
body:not(#_) .drink .d-all { font: 700 clamp(22px, 6vw, 30px)/1.1 var(--display); color: #fff; }
body:not(#_) .drink .d-why { margin: 2px 0 8px; color: var(--text-2, #c9c2e6); font-size: 14px; line-height: 1.3; text-align: center; }
body:not(#_) .drink-card > .d-groups { display: grid; gap: 10px; width: 100%; margin: 2px 0 6px; }
body:not(#_) .d-grp { display: grid; gap: 6px; padding: 8px 10px; background: rgba(0, 0, 0, 0.32); border-left: 3px solid var(--gold, #f5e04a); }
body:not(#_) .d-grp-h { margin: 0; font: 700 18px/1.1 var(--display); color: #fff; text-align: left; }
body:not(#_) .d-grp-h b { color: var(--gold, #f5e04a); font-size: 26px; }
body:not(#_) .d-grp .d-why { margin: 0; text-align: left; font-size: 12.5px; }
body:not(#_) .d-names { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
body:not(#_) .d-names li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px 3px 3px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(201, 184, 255, 0.35); font: 600 14px/1.1 var(--body); color: #fff; }
body:not(#_) .d-names li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:not(#_) .d-names li.me { border-color: var(--gold, #f5e04a); background: rgba(245, 224, 74, 0.14); }
body:not(#_) .d-names .av { width: 28px; height: 28px; flex: none; }
@media (orientation: landscape) and (max-height: 520px) {
  body:not(#_) .drink .d-all { font-size: 20px; } body:not(#_) .drink-card > .d-groups { gap: 6px; } body:not(#_) .d-grp { padding: 5px 8px; gap: 4px; }
  body:not(#_) .d-names li { font-size: 13px; padding: 2px 8px 2px 2px; } body:not(#_) .d-names .av { width: 24px; height: 24px; }
}
/* Lobby: Namen brechen nie um; zwei Spalten nur, wenn jede Karte breit genug ist */
body:not(#_) .lobby-players .who > span, body:not(#_) .lobby-players .who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 760px) { body:not(#_) .lobby .lobby-players:has(li:nth-child(5)) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); } }
/* Schluck-Liste: gleich breite Felder, Menge und Minus im Feld */
body:not(#_) .chips.tally { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); gap: 6px; width: 100%; }
body:not(#_) .chips.tally .tally-it { display: flex; align-items: stretch; min-width: 0; gap: 0; }
body:not(#_) .chips.tally .chip { flex: 1 1 auto; min-width: 0; justify-content: flex-start; gap: 6px; }
body:not(#_) .chips.tally .chip .t-nm { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
body:not(#_) .chips.tally .chip .tally-n { flex: none; margin: 0; min-width: 24px; height: 24px; font-size: 14px; }
body:not(#_) .chips.tally .tally-dec { flex: none; width: 34px; padding: 0; border: 1px solid rgba(245, 224, 74, 0.6); border-left: 0; background: rgba(245, 224, 74, 0.14); color: #fff; font: 700 20px/1 var(--display); cursor: pointer; }
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) .chips.tally { grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); gap: 4px; }
  body:not(#_) .chips.tally .chip { min-height: 32px; padding: 2px 6px 2px 2px; font-size: 13px; }
  body:not(#_) .chips.tally .chip .av { width: 24px; height: 24px; }
  body:not(#_) .chips.tally .tally-dec { width: 28px; }
}
/* Wer fängt an: ab 10 Spielern niedrigere Zeilen, damit alle ohne Rollen passen */
body:not(#_) .ord:has(li:nth-child(10)) { gap: 4px; }
body:not(#_) .ord:has(li:nth-child(10)) li { min-height: 40px; padding-block: 2px; }

/* Menge als Zeichen unten rechts am Spielerbild, damit der Name Platz behält */
body:not(#_) .chips.tally .t-av { position: relative; flex: none; display: inline-grid; }
body:not(#_) .chips.tally .t-av .tally-n { position: absolute; right: -6px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 4px; font-size: 12px; box-shadow: 0 0 0 2px #120a24; }
body:not(#_) .chips.tally .tally-dec { width: 28px; }
body:not(#_) .chips.tally { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (orientation: landscape) and (max-height: 620px) { body:not(#_) .chips.tally { grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); } body:not(#_) .chips.tally .tally-dec { width: 24px; } }
/* Schluck-Liste: kleineres Bild, damit Namen ganz bleiben; Abstand zur Mengen-Marke */
body:not(#_) .chips.tally .chip { font-size: 15px; padding-right: 8px; gap: 8px; }
body:not(#_) .chips.tally .chip .av { width: 30px; height: 30px; }
body:not(#_) .chips.tally .tally-it.on .t-nm { padding-left: 4px; }
@media (orientation: landscape) and (max-height: 620px) { body:not(#_) .chips.tally .chip { font-size: 13px; } body:not(#_) .chips.tally .chip .av { width: 24px; height: 24px; } body:not(#_) .chips.tally .t-av .tally-n { min-width: 15px; height: 15px; font-size: 10px; right: -7px; bottom: -3px; } }
/* Wasserfall: Reihenfolge als gleich breite, kompakte Felder (12 Spieler ohne Rollen) */
body:not(#_) .chips:has(> .chip.wf) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); gap: 4px; width: 100%; }
body:not(#_) .chip.wf { min-height: 34px; padding: 2px 8px 2px 2px; gap: 6px; font-size: 13px; justify-content: flex-start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:not(#_) .chip.wf .av { width: 26px; height: 26px; flex: none; }
/* Wasserfall-Felder: Vorrang vor der allgemeinen Regel für viele Namen (sonst 46 px hoch) */
body:not(#_) #panel .chips:has(> .chip.wf) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 100px), 1fr)); }
body:not(#_) #panel .chips .chip.wf { min-height: 34px; padding: 2px 8px 2px 2px; gap: 6px; font-size: 13px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:not(#_) #panel .chips .chip.wf .av { width: 26px; height: 26px; }

/* + und - übereinander rechts im Feld (so hoch wie das Feld) */
body:not(#_) .chips.tally .tally-pm { flex: none; display: grid; grid-template-rows: 1fr 1fr; width: 32px; }
body:not(#_) .chips.tally .tally-pm button { padding: 0; border: 1px solid rgba(245, 224, 74, 0.6); border-left: 0; background: rgba(245, 224, 74, 0.14); color: #fff; font: 700 17px/1 var(--display); cursor: pointer; }
body:not(#_) .chips.tally .tally-pm button + button { border-top: 0; }
@media (orientation: landscape) and (max-height: 620px) { body:not(#_) .chips.tally .tally-pm { width: 26px; } body:not(#_) .chips.tally .tally-pm button { font-size: 14px; } }

/* ===== Spiel-Bildschirm-Muster in Feld-Fenstern (Ansage, Wahrheit oder Pflicht, Flasche; Owner 2026-11-25) ===== */
body:not(#_) #panel:has(> .rev-col):not([data-stage="roundevent"]) { gap: 12px; }
body:not(#_) #panel:has(> .rev-col):not([data-stage="roundevent"]) .gs-head .p-title { font-size: clamp(24px, 6vw, 32px); }
body:not(#_) #panel:has(> .rev-col):not([data-stage="roundevent"]) .rev-cta { margin-top: 0; }
body:not(#_) #panel:has(> .rev-col):not([data-stage="roundevent"]) .rev-hint:empty { display: none; }
body:not(#_) .rev-cta > .row { width: 100%; }
body:not(#_) .gs-target { display: flex; align-items: center; gap: 12px; }
body:not(#_) .gs-target .av.big { width: 64px; height: 64px; flex: none; }
body:not(#_) .gs-target .gs-who { flex: 1; }
body:not(#_) .z-now .chips { justify-content: flex-start; }
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) #panel:has(> .rev-col):not([data-stage="roundevent"]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 20px; width: min(calc(100vw - 120px), 760px); }
  body:not(#_) #panel:has(> .rev-col):not([data-stage="roundevent"]) .gs-head .p-title { font-size: 22px; }
}
/* Namenslisten in Feld-Fenstern (Abstimmung, Wer trinkt): kompakte, gleich breite Felder - 12 Spieler passen */
body:not(#_) #panel:not([data-stage="roundevent"]) .rev-zone .chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); gap: 4px; width: 100%; }
body:not(#_) #panel:not([data-stage="roundevent"]) .rev-zone .chips .chip { min-height: 34px; padding: 2px 8px 2px 2px; gap: 6px; font-size: 13px; line-height: 1.1; justify-content: flex-start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:not(#_) #panel:not([data-stage="roundevent"]) .rev-zone .chips .chip .av { width: 26px; height: 26px; flex: none; }
body:not(#_) #panel:not([data-stage="roundevent"]) .rev-zone .chips.tally .tally-pm { width: 26px; }
body:not(#_) #panel:not([data-stage="roundevent"]) .rev-zone .chips.tally .tally-pm button { font-size: 14px; }
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) #panel:has(> .rev-col):not([data-stage="roundevent"]):has(.z-drink) { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); }
  body:not(#_) #panel:not([data-stage="roundevent"]) .rev-zone .chips .chip { min-height: 30px; }
  body:not(#_) #panel:not([data-stage="roundevent"]) .rev-zone .chips .chip .av { width: 22px; height: 22px; }
}
/* Hochkant: Feld-Fenster mit vielen Namen (Abstimmung, Wer trinkt) nutzen die Höhe, die Hand tritt solange zurück */
@media (orientation: portrait) {
  body:not(#_) .action:not(.waiting):has(.rev-zone .chips > :nth-child(7)) { top: calc(50% + 46px); max-height: calc(100dvh - 116px); }
  body:not(#_) .game:has(.action:not([hidden]) .rev-zone .chips > :nth-child(7)) :is(.handzone, .mystatus) { visibility: hidden; }
}
/* Desktop: Spiel-Bildschirme in Feld-Fenstern dürfen die Höhe nutzen (sonst rollt die Namensliste) */
@media (min-height: 621px) and (min-width: 700px) {
  body:not(#_) .action:not(.waiting):has(> .rev-col):not([data-stage="roundevent"]) { top: 50%; width: min(calc(100vw - 520px), 560px); max-height: calc(100dvh - 120px); }
}
/* CTA mittig (Owner 2026-11-25): eine Knopfreihe mit nur einem Knopf stellt ihn mittig, nicht links in die erste Spalte */
body:not(#_) .row.two:has(> .btn:only-child) { grid-template-columns: minmax(0, auto); justify-content: center; }
body:not(#_) .row.two:has(> .btn:only-child) > .btn { min-width: min(80%, 240px); padding-inline: 28px; }

/* Abstimmung (Owner 2026-11-25): Namen in eigenem Kasten; quer rechts in drei Spalten, damit 12 Spieler ohne Rollen passen */
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) #panel:has(> .rev-col):not([data-stage="roundevent"]):has(.z-pick) { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); width: min(calc(100vw - 110px), 780px); }
  body:not(#_) #panel:not([data-stage="roundevent"]) .z-pick .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
body:not(#_) .z-pick > .rev-label .rev-name { margin-left: 6px; font-size: 16px; letter-spacing: 0.02em; text-transform: none; }

/* Abstimmung (Owner 2026-11-26): Zwischenstand je Name; am Gastgeber-Gerät nur ein Minus neben dem Namen (antippen zählt hoch) */
body:not(#_) .chips.tally.vote-count .tally-pm.one button { height: 100%; }
body:not(#_) .chips.tally.vote-count .chip[disabled] { opacity: 0.55; }
body:not(#_) .chips.tally.vote-count .tally-pm.one { grid-template-rows: 1fr; }
body:not(#_) #panel .z-pick .chips.tally.vote-count .tally-it .chip { width: auto; }
/* Abstimmung: wer selbst gewählt hat, steht als kleine Bilder rechts im Namensfeld (Owner 2026-11-26) */
body:not(#_) .chips.tally.vote-count .v-who { flex: none; display: inline-flex; align-items: center; margin-left: auto; padding-left: 4px; }
body:not(#_) #panel .chips.tally.vote-count .v-who .av { width: 18px; height: 18px; margin-left: -6px; box-shadow: 0 0 0 2px #120a24; }
body:not(#_) #panel .chips.tally.vote-count .v-who .av:first-child { margin-left: 0; }
body:not(#_) .chips.tally.vote-count .v-who i { font: 700 11px/1 var(--display); font-style: normal; margin-left: 2px; color: var(--text-2, #c9c2e6); }

/* ===== Spielmodi (Owner 2026-11-26) ===== */
body:not(#_) .mode-q { margin: 0; font: 700 22px/1.2 var(--display); }
body:not(#_) .mode-list { display: grid; gap: 8px; }
body:not(#_) .mode-opt { display: grid; gap: 3px; padding: 12px 14px; text-align: left; background: var(--panel-2, #1b1236); border: 1px solid var(--edge, #3b2d6b); color: var(--text, #fff); cursor: pointer; font: inherit; }
body:not(#_) .mode-opt b { font: 700 17px/1.2 var(--display); color: var(--cyan, #2ef2ff); }
body:not(#_) .mode-opt span { font-size: 14px; line-height: 1.35; color: var(--text-2, #c9c2e6); }
body:not(#_) .mode-opt:hover, body:not(#_) .mode-opt:focus-visible { border-color: var(--cyan, #2ef2ff); outline: none; }
body:not(#_) .seg-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body:not(#_) .seg-three > button { white-space: normal; line-height: 1.15; min-height: 44px; }
/* Ein-Gerät-Spiel: Reaktionen gibt es nicht (keine anderen Geräte) */
body.solo-mode:not(#_) :is(#emoteBtn, #emoteBar) { display: none !important; }
/* Konto: Statistik je Partie (Owner 2026-11-26) */
body:not(#_) .acct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
body:not(#_) .acct-stats > div { display: grid; gap: 2px; padding: 8px; background: var(--panel-2, #1b1236); border: 1px solid var(--edge, #3b2d6b); text-align: center; }
body:not(#_) .acct-stats b { font: 700 22px/1 var(--display); color: var(--gold, #f5e04a); }
body:not(#_) .acct-stats span { font-size: 12px; line-height: 1.2; color: var(--text-2, #c9c2e6); }
body:not(#_) .acct-games { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
body:not(#_) .acct-games li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; padding: 6px 8px; background: rgba(255, 255, 255, 0.04); }
body:not(#_) .acct-games small { grid-column: 1 / -1; color: var(--text-2, #c9c2e6); }
/* Lobby (ein Gerät): Figur ändern und Entfernen nebeneinander, die Zeile bleibt einzeilig */
body:not(#_) .lobby-players .lp-acts { display: inline-flex; gap: 6px; }
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) #stepMode { gap: 6px; }
  body:not(#_) #stepMode .step-no { display: none; }
  body:not(#_) .mode-q { font-size: 18px; }
  body:not(#_) .mode-list { gap: 5px; }
  body:not(#_) .mode-opt { padding: 6px 10px; gap: 1px; }
  body:not(#_) .mode-opt b { font-size: 15px; }
  body:not(#_) .mode-opt span { font-size: 12.5px; line-height: 1.25; }
}
/* Spieler anlegen (Owner 2026-11-26): eine Zeile wie ein Spieler-Eintrag - Name, Frau/Mann für genau diesen Spieler, Anlegen */
body:not(#_) #localRow.local-box { padding: 0; border: 0; background: transparent; }
body:not(#_) .local-form.add-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 8px; border: 2px dashed rgba(201, 184, 255, 0.45); background: rgba(255, 255, 255, 0.03); }
body:not(#_) .local-form.add-row .add-plus { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px dashed rgba(201, 184, 255, 0.55); font: 700 24px/1 var(--display); color: var(--cyan, #2ef2ff); }
body:not(#_) .local-form.add-row input { min-height: 40px; min-width: 0; }
body:not(#_) .local-form.add-row .sex-pick { grid-column: auto; margin: 0; }
body:not(#_) .local-form.add-row .sex-pick button { min-height: 40px; padding: 0 10px; font-size: 12px; }
@media (max-width: 480px) {
  body:not(#_) .local-form.add-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  body:not(#_) .local-form.add-row #localBtn { grid-column: 2 / -1; }
}
/* Ein-Gerät-Spiel: Startkarten beim ersten eigenen Zug - die Hand ist erst danach zu sehen (Owner 2026-11-26) */
body:not(#_) .game:has(#panel[data-stage="startcards"]) :is(.handzone, .mystatus) { visibility: hidden; }
body:not(#_) #panel[data-stage="startcards"] .start-row { display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; }
body:not(#_) #panel[data-stage="startcards"] .start-row .card-it { flex: 0 0 auto; }
body:not(#_) #panel[data-stage="startcards"] .start-row .tcard { --w: min(26vw, 118px); }
@media (orientation: landscape) and (max-height: 620px) { body:not(#_) #panel[data-stage="startcards"] .start-row .tcard { --w: 92px; } }
/* Lobby-Einstellungen (Owner 2026-11-26): Optionen mit Beschreibung im Knopf; Modi am Handy untereinander, Events 2 x 2 */
body:not(#_) .seg.opt-list, body:not(#_) .seg.opt-grid { display: grid; grid-auto-flow: row; gap: 0; }
body:not(#_) .seg.opt-list { grid-template-columns: 1fr; }
body:not(#_) .seg.opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { body:not(#_) .seg.opt-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } body:not(#_) .seg.opt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body:not(#_) .seg > .opt { display: grid; align-content: center; gap: 2px; min-height: 44px; padding: 7px 10px; text-align: left; white-space: normal; text-transform: none; letter-spacing: 0; }
body:not(#_) .seg > .opt b { font: 700 13px/1.15 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
body:not(#_) .seg > .opt small { font: 400 12.5px/1.3 var(--body); color: var(--text-2, #c9c2e6); }
body:not(#_) .seg > .opt[aria-pressed="true"] small { color: inherit; opacity: 0.9; }
/* ===== Abstände im ganzen Produkt (Owner 2026-11-26: "proper spacings to headings, CTAs etc. in the whole product") =====
   Überschrift -> Inhalt mindestens 16 px, Inhalt -> Hauptknopf mindestens 18 px, sonst 12 px. Dialoge fließen als Block (ohne gap),
   darum bekommen ihre Teile hier ausdrücklich Abstand; Fenster mit Raster (gap 12 px) bekommen nur den Zuschlag. Prüfung: _scratch/alle-bildschirme.mjs ("zu eng"). */
body:not(#_) dialog.win[open] > :not(:first-child):not(.sheet-x) { margin-top: 12px; }
body:not(#_) dialog.win[open] > .sheet-x:first-child + * { margin-top: 0; }
body:not(#_) dialog.win[open] > :is(h2, .p-title) + :not(.sheet-x) { margin-top: 16px; }
body:not(#_) dialog.win[open] > :not(.btn):not(.row):not(.sheet-x) + :is(.btn, .row) { margin-top: 18px; }
body:not(#_) .win:not(dialog) > :is(h2, .p-title, .win-head, .gs-head) + *, body:not(#_) .win .rev-col > .gs-head + *, body:not(#_) .intro-box .deal-mine { margin-top: 4px; }
body:not(#_) .win:not(dialog) > :not(.btn):not(.row):not(.sheet-x):not(.p-kicker):not(h2):not(.p-title) + :is(.btn, .row, .intro-act) { margin-top: 6px; }
body:not(#_) #panel:has(> .rev-col):not([data-stage="roundevent"]) .rev-cta { margin-top: 6px; }
body:not(#_) dialog.win[open] > :is(h2, .p-title) + [hidden] + * { margin-top: 16px; }
body:not(#_) .win .rev-col-a:has(> .gs-head:only-child) + .rev-col-b > :first-child { margin-top: 4px; }
/* Abstände auch in den kompakten Formaten (quer, kleine Handys): nach dem Titel mindestens 14 px */
body:not(#_) :is(#panel, .intro-box, #flash, .drink-card).win > :is(h2, .p-title) + :not(.sheet-x) { margin-top: max(0px, calc(14px - var(--gap-now, 6px))); }
@media (orientation: landscape) and (max-height: 620px), (max-height: 700px) and (orientation: portrait) {
  body:not(#_) :is(#panel, .intro-box, #flash, .drink-card).win { --gap-now: 6px; }
  body:not(#_) :is(#panel, .intro-box, #flash, .drink-card).win > :is(h2, .p-title) + :not(.sheet-x) { margin-top: 8px; }
}
@media (orientation: landscape) and (max-height: 620px), (max-height: 700px) and (orientation: portrait) {
  body:not(#_) .win:not(dialog) > :not(.btn):not(.row):not(.sheet-x):not(.p-kicker):not(h2):not(.p-title) + :is(.btn, .row, .intro-act) { margin-top: 8px; }
  body:not(#_) .intro-box.win > :is(h2, .p-title) + * { margin-top: 10px; }
}
@media (orientation: landscape) and (max-height: 620px) { body:not(#_) #intro .intro-box #introTitle { margin-bottom: 6px; } }
@media (orientation: landscape) and (max-height: 620px) {
  body:not(#_) #intro .intro-box { gap: 8px; }
  body:not(#_) #intro .intro-box > #introAct { margin-top: 6px; }
}
/* Quer (Handy): mehr Abstand darf den Knopf nicht aus dem Fenster schieben - Figuren und Startkarten etwas kleiner */
@media (orientation: landscape) and (max-height: 520px) {
  body:not(#_) .char-dialog .avatar-pick img { width: 36px; height: 36px; }
  body:not(#_) .char-dialog .avatar-pick button { padding-block: 4px; gap: 2px; }
  body:not(#_) .char-dialog > :is(h2, .p-title) + * { margin-top: 10px; }
  body:not(#_) .char-dialog > * + .avatar-pick { margin-top: 10px; }
  body:not(#_) .char-dialog > .avatar-pick + .btn { margin-top: 14px; }
}
/* Quer (Handy): Frau/Mann steht neben dem Titel, damit die Figuren und "Fertig" ins Fenster passen */
@media (orientation: landscape) and (max-height: 520px) {
  body:not(#_) .char-dialog { position: relative; }
  body:not(#_) dialog.char-dialog.win[open] > .sex-pick { position: absolute; top: 14px; right: 72px; left: auto; translate: none; margin: 0; }
  body:not(#_) dialog.char-dialog.win[open] > .sex-pick button { min-height: 36px; padding-block: 0; }
  body:not(#_) dialog.char-dialog.win[open] > .sex-pick + .avatar-pick { margin-top: 18px; }
}
/* ===== Lobby (Owner 2026-11-27): Geschlechtszeichen am Bild, Zeile antippen zum Bearbeiten, Rundenende in einer Reihe, Spielmodus als Pop-up ===== */
body:not(#_) .av-wrap { position: relative; display: inline-grid; flex: none; }
body:not(#_) .sex-badge { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #120a24; box-shadow: 0 0 0 2px #120a24; color: #fff; }
body:not(#_) .sex-badge.f { background: #c8186f; } body:not(#_) .sex-badge.m { background: #1c6fd6; }
body:not(#_) .lobby-players li.editable { cursor: pointer; }
body:not(#_) .lobby-players li.editable:focus-visible { outline: 2px solid var(--cyan, #2ef2ff); outline-offset: 2px; }
body:not(#_) .lobby-players li.me { grid-template-columns: 44px 1fr auto; }
body:not(#_) .sub-info { display: flex; align-items: center; gap: 8px; }
body:not(#_) .sub-info .info-btn { width: 30px; height: 30px; min-height: 0; padding: 0; display: grid; place-items: center; }
body:not(#_) .sub-info .info-btn svg { width: 18px; height: 18px; }
body:not(#_) .info-text { margin: 0; }
body:not(#_) #revPick > button { white-space: nowrap; padding-inline: 4px; }
body:not(#_) .mode-cur { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; width: 100%; padding: 10px 12px; text-align: left; background: var(--panel-2, #1b1236); border: 1px solid var(--edge, #3b2d6b); color: var(--text, #fff); font: inherit; cursor: pointer; }
body:not(#_) .mode-cur b { font: 700 14px/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan, #2ef2ff); }
body:not(#_) .mode-cur small { grid-column: 1; font-size: 13px; line-height: 1.3; color: var(--text-2, #c9c2e6); }
body:not(#_) .mode-cur .mode-chev { grid-column: 2; grid-row: 1 / span 2; font: 700 26px/1 var(--display); color: var(--cyan, #2ef2ff); }
body:not(#_) .mode-cur[disabled] { cursor: default; }
body:not(#_) .mode-dialog { width: min(94vw, 460px); }
body:not(#_) .mode-dialog .mode-opt[aria-pressed="true"] { border-color: var(--gold, #f5e04a); box-shadow: inset 4px 0 0 var(--gold, #f5e04a); }
@media (max-width: 480px) { body:not(#_) #revPick > button { white-space: normal; line-height: 1.1; font-size: 12px; padding-inline: 2px; } }
/* Anlege-Zeile ohne Frau/Mann (Owner 2026-11-27): Plus, Name, Anlegen in einer Reihe */
body:not(#_) .local-form.add-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
body:not(#_) .local-form.add-row #localBtn { grid-column: auto; }
/* Lobby (Owner 2026-11-27): Schild und Entfernen stehen in jeder Zeile bündig rechts; Entfernen ist rot (kritische Aktionen sind rot, DECISIONS 2026-11-20) */
body:not(#_) .lobby-players li > .lp-acts { grid-column: 3 / -1; justify-self: end; }
body:not(#_) .lobby-players [data-kick] { color: #ff5a6e; border-color: rgba(255, 90, 110, 0.7); }
body:not(#_) .lobby-players [data-kick]:hover, body:not(#_) .lobby-players [data-kick]:focus-visible { background: rgba(255, 90, 110, 0.16); color: #ffd9de; }
body:not(#_) .lobby-players [data-kick] { --nc: rgba(255, 90, 110, 0.75); }

/* Lobby quer (Owner 2026-11-28, Live-Befund: Seite scrollte): zwei Spalten auf Bildschirmhöhe.
   Links Raum, Code und Einstellungen, rechts die Spieler (zweispaltig, kompakt), unten die Knöpfe. */
/* Desktop (Owner 2026-11-28 "Erst hoch auch"): dieselbe Zwei-Spalten-Lobby, damit 12 Spieler ohne Scrollen passen */
@media (orientation: landscape) and (max-height: 520px), (min-width: 900px) and (min-height: 521px) {
  body:not(#_) .lobby { max-width: 920px; height: 100dvh; overflow: hidden; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; align-content: stretch; column-gap: 16px; row-gap: 8px; padding-top: calc(10px + var(--safe-t)); }
  body:not(#_) .lobby > .lobby-head { grid-column: 1; grid-row: 1; }
  body:not(#_) .lobby .room-name { font-size: 26px; line-height: 1.05; }
  body:not(#_) .lobby > .code-box { grid-column: 1; grid-row: 2; }
  body:not(#_) .lobby .code-box .code-big { font-size: 34px; }
  body:not(#_) .lobby > #setBox { grid-column: 1; grid-row: 3; align-self: start; max-height: 100%; overflow: auto; }
  body:not(#_) .lobby #setToggle { flex-wrap: wrap; row-gap: 4px; }
  body:not(#_) .lobby #setSum { order: 3; flex-basis: 100%; text-align: left; }
  /* geöffnete Einstellungen bekommen die ganze Breite (zweispaltig), Raum und Spieler treten so lange zurück */
  body:not(#_) .lobby:has(#setBox[open]) > .code-box, body:not(#_) .lobby:has(#setBox[open]) > .lobby-sec:not(#setBox) { display: none; }
  body:not(#_) .lobby:has(#setBox[open]) > #setBox { grid-column: 1 / -1; grid-row: 2 / 4; }
  body:not(#_) .lobby:has(#setBox[open]) > .lobby-head { grid-column: 1 / -1; }
  body:not(#_) .lobby #setBox[open] .set-body { display: block; columns: 2; column-gap: 24px; }
  body:not(#_) .lobby #setBox[open] .set-body > * { break-inside: avoid; margin-bottom: 8px; }
  body:not(#_) .lobby #setBox[open] .set-body > h3 { break-after: avoid; margin-top: 4px; }
  body:not(#_) .lobby > .lobby-sec:not(#setBox) { grid-column: 2; grid-row: 1 / 4; min-height: 0; overflow: auto; align-content: start; padding: 8px 10px; gap: 6px; }
  body:not(#_) .lobby > .lobby-sec:not(#setBox) > .sub { padding-bottom: 6px; }
  body:not(#_) .lobby > .lobby-actions { grid-column: 1 / -1; grid-row: 4; position: static; margin: 0 -20px; padding-top: 6px; padding-bottom: calc(6px + var(--safe-b)); }
  body:not(#_) .lobby > .lobby-actions > .btn { min-height: 44px; }
  body:not(#_) .lobby .lobby-players.lobby-players:has(li) { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; }
  /* ab 7 Einträgen nur der Name, damit 12 Spieler in sechs Reihen passen */
  body:not(#_) .lobby .lobby-players:has(li:nth-child(7)) .who small { display: none; }
  body:not(#_) .lobby .lobby-players.lobby-players li:not(.invite) { grid-template-columns: 32px minmax(0, 1fr) auto auto; column-gap: 6px; row-gap: 0; min-height: 0; padding: 2px 6px 2px 8px; }
  body:not(#_) .lobby .lobby-players .av { width: 32px; height: 32px; }
  body:not(#_) .lobby .lobby-players li > .role:last-child { grid-column: 3 / -1; justify-self: end; }
  body:not(#_) .lobby .lobby-players .btn.small, body:not(#_) .lobby .lobby-players .lp-acts .btn, body:not(#_) .lobby .lobby-players .lp-acts .iconbtn, body:not(#_) .lobby .lobby-players li > .iconbtn { min-height: 32px; height: 32px; min-width: 32px; width: 32px; padding: 0; }
  body:not(#_) .lobby .lobby-players .who small { font-size: 11px; line-height: 1.2; }
  body:not(#_) .lobby .lobby-players .role { font-size: 10px; }
  body:not(#_) .lobby .lobby-players li.invite, body:not(#_) .lobby .local-box { grid-column: 1 / -1; }
}

/* Lobby hoch (Owner 2026-11-28): ab 7 Einträgen kompakte Zeilen (nur Name), Knöpfe in einer Reihe - 12 Spieler ohne Scrollen */
@media (orientation: portrait) and (max-width: 899px) {
  body:not(#_) .lobby .lobby-players:has(li:nth-child(7)) { gap: 4px; }
  body:not(#_) .lobby .lobby-players:has(li:nth-child(7)) li:not(.invite) { grid-template-columns: 32px minmax(0, 1fr) auto auto; column-gap: 6px; row-gap: 0; min-height: 0; padding: 2px 6px 2px 8px; }
  body:not(#_) .lobby .lobby-players:has(li:nth-child(7)) .av { width: 32px; height: 32px; }
  body:not(#_) .lobby .lobby-players:has(li:nth-child(7)) .who small { display: none; }
  body:not(#_) .lobby .lobby-players:has(li:nth-child(7)) .lp-acts .btn, body:not(#_) .lobby .lobby-players:has(li:nth-child(7)) .lp-acts .iconbtn, body:not(#_) .lobby .lobby-players:has(li:nth-child(7)) li > .iconbtn { min-height: 32px; height: 32px; min-width: 32px; width: 32px; padding: 0; }
  body:not(#_) .lobby .lobby-players:has(li:nth-child(7)) li > .role:last-child { grid-column: 3 / -1; justify-self: end; }
  body:not(#_) .lobby:has(.lobby-players li:nth-child(7)) .lobby-actions { grid-template-columns: 1fr 1fr; padding-top: 8px; padding-bottom: calc(8px + var(--safe-b)); }
  body:not(#_) .lobby:has(.lobby-players li:nth-child(7)) .lobby-actions > #startBtn { grid-column: auto; order: 2; }
  body:not(#_) .lobby:has(.lobby-players li:nth-child(7)) .lobby-actions > .btn { min-height: 50px; }
  body:not(#_) .lobby:has(.lobby-players li:nth-child(7)) { gap: 8px; padding-top: calc(10px + var(--safe-t)); }
  body:not(#_) .lobby:has(.lobby-players li:nth-child(7)) .room-name { font-size: 28px; line-height: 1.05; }
  body:not(#_) .lobby:has(.lobby-players li:nth-child(7)) .code-box { padding: 2px 12px; }
  body:not(#_) .lobby:has(.lobby-players li:nth-child(7)) .code-box .code-big { font-size: 32px; }
  body:not(#_) .lobby:has(.lobby-players li:nth-child(7)) .lobby-sec { padding: 8px 10px; gap: 6px; }
  body:not(#_) .lobby:has(.lobby-players li:nth-child(7)) .lobby-sec > .sub { padding-bottom: 6px; }
  body:not(#_) .lobby:has(.lobby-players li:nth-child(7)) #setBox:not([open]) #setSum { display: none; }
}

/* Desktop: Zwei-Spalten-Lobby, aber normale Zeilengröße (Platz ist da); Spielerfeld so hoch wie sein Inhalt */
@media (min-width: 900px) and (min-height: 521px) {
  body:not(#_) .lobby { max-width: 1000px; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  body:not(#_) .lobby .room-name { font-size: 30px; }
  body:not(#_) .lobby .code-box .code-big { font-size: 44px; }
  body:not(#_) .lobby > .lobby-sec:not(#setBox) { align-self: start; max-height: 100%; padding: 12px 14px; gap: 8px; }
  body:not(#_) .lobby .lobby-players.lobby-players:has(li) { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
  body:not(#_) .lobby .lobby-players.lobby-players li:not(.invite) { grid-template-columns: 44px minmax(0, 1fr) auto auto; column-gap: 10px; padding: 6px 10px; }
  body:not(#_) .lobby .lobby-players .av { width: 44px; height: 44px; }
  body:not(#_) .lobby .lobby-players:has(li:nth-child(7)) .who small { display: block; }
  body:not(#_) .lobby .lobby-players .who small { font-size: 13px; }
  body:not(#_) .lobby .lobby-players .role { font-size: 12px; }
  body:not(#_) .lobby .lobby-players .lp-acts .iconbtn, body:not(#_) .lobby .lobby-players li > .iconbtn, body:not(#_) .lobby .lobby-players .lp-acts .btn { min-height: 40px; height: 40px; min-width: 40px; width: 40px; }
  body:not(#_) .lobby > .lobby-actions > .btn { min-height: 52px; }
}

/* Reagieren als Aktion unten rechts neben den Handkarten (Owner 2026-11-30): drei Reaktionen als Dreieck, kein Menüknopf */
body:not(#_) .emote-btn { position: absolute; z-index: 6; right: calc(8px + env(safe-area-inset-right, 0px)); bottom: calc(16px + var(--safe-b, 0px)); width: 64px; height: 64px; padding: 0; border: 1.5px solid rgba(255,255,255,.22); border-radius: 18px; background: linear-gradient(160deg, rgba(40,22,78,.94), rgba(14,6,34,.94)); box-shadow: 0 6px 18px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1); cursor: pointer; transition: transform .12s, border-color .12s; pointer-events: auto; touch-action: manipulation; }
body.solo-mode:not(#_) .emote-btn { display: none; }
body:not(#_) .emote-btn:hover { border-color: rgba(255,255,255,.45); }
body:not(#_) .emote-btn:active { transform: scale(.94); }
body:not(#_) .emote-fan { position: absolute; inset: 6px; }
body:not(#_) .emote-fan i { position: absolute; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid currentColor; background: #05020f; color: var(--gold); }
body:not(#_) .emote-fan i:nth-child(1) { left: 11px; top: 0; color: #ff3d9a; z-index: 1; }
body:not(#_) .emote-fan i:nth-child(2) { left: 0; bottom: 0; }
body:not(#_) .emote-fan i:nth-child(3) { right: 0; bottom: 0; color: #c6e04a; }
body:not(#_) .emote-fan svg { width: 17px; height: 17px; }
body:not(#_) .emote-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Platz rechts für den Auslöser: die Hand rückt nach links, nie unter die Symbole */
@media (max-width: 899px) { body:not(#_):not(.solo-mode) .handzone { padding-right: calc(72px + env(safe-area-inset-right, 0px)); } }
@media (orientation: landscape) and (max-height: 520px) { body:not(#_):not(.solo-mode) .handzone { padding-right: calc(76px + env(safe-area-inset-right, 0px)); } }
@media (min-width: 900px) and (min-height: 521px) {
  body:not(#_) .emote-btn { right: 24px; bottom: 24px; width: 84px; height: 84px; border-radius: 22px; }
  body:not(#_) .emote-fan { inset: 7px; }
  body:not(#_) .emote-fan i { width: 40px; height: 40px; }
  body:not(#_) .emote-fan i:nth-child(1) { left: 15px; }
  body:not(#_) .emote-fan svg { width: 24px; height: 24px; }
}
body:not(#_) .emote-bar { z-index: calc(var(--z-action) + 1); } /* selbst geöffnet: liegt über Würfelknopf und Karten */

/* Reaktion in der Spielerleiste, drei Versionen zur Auswahl (?rv=1|2|3, nur lokal) */
.emote-layer { position: absolute; inset: 0; z-index: calc(var(--z-action) + 1); overflow: hidden; pointer-events: none; }
.rv { position: absolute; width: 0; height: 0; --c: var(--n-yel, var(--gold)); --e: 72px; }
.rv.em-down { --c: #64aaff; } .rv.em-hot { --c: #ff8a3d; } .rv.em-love { --c: #ff3d9a; } .rv.em-drunk { --c: #c6e04a; } .rv.em-up { --c: #2ef2ff; }
.rv i.rv-ring { position: absolute; left: calc(-1 * var(--r) - 3px); top: calc(-1 * var(--r) - 3px); width: calc(2 * var(--r) + 6px); height: calc(2 * var(--r) + 6px); border-radius: 50%; border: 4px solid var(--c); box-shadow: 0 0 18px 4px var(--c); animation: rvRing 700ms ease-out 4 both; }
.rv i.rv-ring.two { animation: rvHold 3s linear both; }
.rv-sym { position: absolute; left: calc(var(--o) + 6px); top: calc(var(--e) / -2); display: grid; place-items: center; width: var(--e); height: var(--e); border-radius: 50%; background: var(--c); color: #05020f; border: 4px solid #05020f; box-shadow: 0 0 0 3px var(--c), 0 0 34px 8px var(--c); transform-origin: -30px 50%; animation: rvSym 3s both; }
.rv-sym svg { width: 64%; height: 64%; stroke-width: 2.2; }
.rv-bubble { position: absolute; left: calc(var(--o) + 16px); top: 0; translate: 0 -50%; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 16px; border-radius: 16px; background: var(--c); color: #05020f; box-shadow: 0 0 0 3px #05020f, 0 0 26px 4px var(--c); white-space: nowrap; transform-origin: -14px 50%; animation: rvBubble 3s both; }
.rv-bubble::before { content: ''; position: absolute; left: -13px; top: calc(50% - 10px); border: 10px solid transparent; border-left: 0; border-right: 14px solid var(--c); }
.rv-bubble b { font: 800 17px/1.1 var(--display); max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.rv-bubble em { display: grid; animation: rvWig 560ms ease-in-out 300ms 4; } .rv-bubble svg { width: 40px; height: 40px; stroke-width: 2.2; }
.rv3 { --e: 54px; }
.rv-bit { position: absolute; left: calc(var(--o) + 4px); top: calc(var(--s) / -2); width: var(--s); height: var(--s); color: var(--c); filter: drop-shadow(0 0 5px #05020f) drop-shadow(0 0 8px var(--c)); animation: rvBit 1.9s cubic-bezier(0.12, 0.7, 0.3, 1) var(--d) both; }
.rv-bit svg { width: 100%; height: 100%; }
@keyframes rvRing { from { scale: 1; opacity: 1; } to { scale: 2; opacity: 0; } }
@keyframes rvHold { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rvSym { 0% { scale: 0.1; opacity: 0; } 8% { scale: 1.5; opacity: 1; } 15% { scale: 0.9; } 21% { scale: 1.12; } 27% { scale: 1; rotate: 0deg; } 36% { rotate: -14deg; } 44% { rotate: 12deg; } 52% { rotate: -8deg; } 60% { rotate: 0deg; } 88% { scale: 1; opacity: 1; } 100% { scale: 0.2; opacity: 0; } }
@keyframes rvBubble { 0% { scale: 0; opacity: 0; } 8% { scale: 1.15; opacity: 1; } 14% { scale: 1; } 90% { scale: 1; opacity: 1; } 100% { scale: 0; opacity: 0; } }
@keyframes rvWig { 25% { rotate: -16deg; } 75% { rotate: 16deg; } }
@keyframes rvBit { 0% { transform: none; opacity: 0; } 10% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--t)); opacity: 0; } }
@media (orientation: landscape) and (max-height: 520px) { .rv { --e: 60px; } .rv3 { --e: 40px; } .rv-bubble { padding: 4px 10px 4px 14px; } .rv-bubble svg { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .rv-ring:not(.two), .rv-bit { display: none; } .rv-sym, .rv-bubble { animation: rvHold 3s linear both; } .rv-bubble em { animation: none; } }
/* Hoch: Karten schieben sich enger, damit die Hand links vom Auslöser ganz zu sehen ist */
@media (max-width: 899px) and (orientation: portrait) {
  body:not(#_):not(.solo-mode) .hand li:not(:first-child) { margin-left: -24px; }
  body:not(#_):not(.solo-mode) .hand:has(li:nth-child(4)) li:not(:first-child) { margin-left: -52px; }
  body:not(#_):not(.solo-mode) .hand:has(li:nth-child(5)) li:not(:first-child) { margin-left: -70px; }
}
body:not(#_) .hand li.empty:is(:hover, :focus-within) { transform: none; } /* Hinweis ist keine Karte: hebt sich nicht */

/* "Du bist dran" liegt immer oben (Owner 2026-11-30): über dem Info-Knopf und den Nachbarzeilen */
body:not(#_) .rail li:has(.r-turn) { position: relative; z-index: 4; }
body:not(#_) .rail li:has(.r-turn) > button:first-child { position: relative; z-index: 2; }
body:not(#_) .rail li:has(.r-turn) .r-info { z-index: 1; }
body:not(#_) .rail .r-turn { z-index: 5; }

/* Owner 2026-11-30: 12 eigene Reaktionen als Sticker; Auswahl 4 x 3 */
body:not(#_) .emote-bar { grid-template-columns: repeat(4, 48px); }
body:not(#_) .emote-pick svg { width: 34px; height: 34px; }
body:not(#_) .emote-fan svg { width: 22px; height: 22px; }
@media (min-width: 900px) and (min-height: 521px) { body:not(#_) .emote-fan svg { width: 30px; height: 30px; } }
.rv.em-ex { --c: #ffb627; } .rv.em-lol { --c: #ffd23f; } .rv.em-puke { --c: #8fdc6a; } .rv.em-rip { --c: #f4f1ea; } .rv.em-legend { --c: #ffc94d; } .rv.em-busted { --c: #9b7bff; } .rv.em-prost { --c: #ffb627; }
/* Hochkant: der Lauftext beginnt rechts neben der Spielerleiste und verdeckt nie "Du bist dran" (Owner 2026-11-30) */
@media (max-width: 899px) and (orientation: portrait) { body:not(#_) .ticker { left: 118px; right: 62px; transform: none; max-width: 460px; } body:not(#_) .ticker.show { animation: none; } }


/* ---------- 2026-12-01 (Owner): wer dran ist, leuchtet in der Leiste; spielbare Karten mit laufendem Lichtrand; Reaktionen im Neon-Stil ---------- */
/* Neon-Schilder: dunkle Fläche, Leuchtkontur in der Symbolfarbe */
.em-art { color: var(--em); filter: drop-shadow(0 0 1.5px var(--em)) drop-shadow(0 0 5px var(--em)); overflow: visible; }
.rv-bit .em-art, .rv-sym .em-art { filter: none; } /* im Schwarm trägt .rv-bit den Schein, doppelt kostet nur Leistung */
/* Wer dran ist (Owner 2026-12-01): goldener Ring am Bild, Name als goldenes Schild; am Desktop statt des Namens der Rand der Box. Kein Rahmen um die Zeile. Prüfung: _scratch/turn-mark.mjs */
body:not(#_) .rail li.active { background: none; box-shadow: none; }
body:not(#_) .rail li.active > button { transform: none; }
body:not(#_) .rail li.active .av { outline: 3px solid var(--gold); outline-offset: 0; animation: none; }
@media (orientation: landscape) and (max-height: 520px) { body:not(#_) .rail li.active .av { outline-width: 2px; } }
body:not(#_) .rail:has(li.active) li:not(.active) > button { opacity: 0.6; transition: opacity 300ms; }
@media (min-width: 900px) and (min-height: 521px) { body:not(#_) .rail li.active { background: rgba(3, 1, 9, 0.86); border-left-color: var(--gold); outline: 2px solid var(--gold); outline-offset: -2px; } body:not(#_) .rail li.active .av { outline-offset: -3px; } }
/* Spielbare Karte: ein Lichtpunkt läuft um den Rand (gold auf pink), die Karte selbst liegt davor */
@property --canang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes canRun { to { --canang: 360deg; } }
body .hand li.can { isolation: isolate; }
body .hand li.can::before, body .hand li.can::after { content: ''; position: absolute; inset: -5px; border-radius: 14px; pointer-events: none; z-index: -1; padding: 4px;
  background: conic-gradient(from var(--canang), rgba(255, 61, 154, 0.35) 0deg, #ff3d9a 120deg, rgba(255, 201, 77, 0.35) 200deg, var(--gold) 300deg, #fff3c4 345deg, rgba(255, 61, 154, 0.35) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: canRun 2.2s linear infinite; }
body .hand li.can::before { filter: blur(6px); inset: -9px; padding: 9px; border-radius: 18px; }
@media (prefers-reduced-motion: reduce) { body .hand li.can::before, body .hand li.can::after { animation: none; } }
/* Desktop: das Schild sitzt auf der Oberkante der Zeile und verdeckt den Namen nicht */
@media (min-width: 900px) and (min-height: 521px) { body:not(#_) .rail .r-turn { top: -14px; } }
/* Tablet hochkant: Kartenzahl wie am Handy rechts unten am Bild, nicht auf dem Namen (2026-12-01) */
@media (min-width: 701px) and (max-width: 899px) and (orientation: portrait) { body:not(#_) .rail .r-cards { left: auto; right: -8px; bottom: 12px; } body:not(#_) .rail:has(li:nth-child(7)) .r-cards { bottom: -5px; } }

/* ===== Einstellungen (Owner 2026-12-03, Entwurf S Runde 2): Kurzzeile in der Lobby, alles andere in einem Fenster =====
   Reihenfolge: Spielmodus, Intensität, weitere Einstellungen. Eine Schriftregel: jede Auswahl (mit oder ohne Untertext)
   steht in der Titelschrift, normale Schreibweise, ohne Umbruch; Untertexte und Beschriftungen in der Textschrift. */
body:not(#_) #setBox { display: grid; gap: 4px; }
body:not(#_) #setBox .set-line { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; }
body:not(#_) #setBox .set-line .sub { margin: 0; padding: 0; border: 0; }
body:not(#_) #setBox .set-edit { margin-left: auto; font: 700 13px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
body:not(#_) #setBox .set-sum { margin: 0; text-align: left; font: 500 14px/1.4 var(--body); color: var(--text-2); }
body:not(#_) #setBox .set-sum b { color: var(--text, #fff); font-weight: 600; }
body:not(#_) #setBox .set-sum b.hot { color: var(--coral, #ff6b6b); }
body:not(#_) .set-dialog { box-sizing: border-box; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh; overflow: auto; padding: 14px max(16px, env(safe-area-inset-left, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)); border: 0; border-top: 2px solid var(--edge); border-radius: 18px 18px 0 0; background: var(--panel); color: var(--text, #fff); }
body:not(#_) .set-dialog[open] { display: grid; gap: 14px; align-content: start; }
body:not(#_) .set-dialog::backdrop { background: rgba(3, 6, 14, 0.7); }
body:not(#_) .sd-head { display: flex; align-items: center; gap: 12px; }
body:not(#_) .sd-head h2 { margin: 0; font: 700 16px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
body:not(#_) .sd-done { margin-left: auto; min-height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--gold); color: #1d1500; font: 700 15px/1 var(--display); cursor: pointer; }
body:not(#_) .sd-grp { display: grid; gap: 7px; }
body:not(#_) .sd-grp > h3 { margin: 0; font: 600 12px/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
body:not(#_) .sd-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
body:not(#_) .sd-card, body:not(#_) .sd-seg button, body:not(#_) .sd-chip { font: 700 15px/1.2 var(--display); letter-spacing: 0.01em; text-transform: none; white-space: nowrap; }
body:not(#_) .sd-card { position: relative; display: grid; gap: 2px; min-width: 0; padding: 9px 12px; text-align: left; color: var(--text, #fff); background: transparent; border: 2px solid var(--edge); border-radius: 12px; cursor: pointer; }
body:not(#_) .sd-card b { font: inherit; overflow: hidden; text-overflow: ellipsis; }
body:not(#_) .sd-card small { font: 400 13px/1.3 var(--body); color: var(--text-2); white-space: normal; }
body:not(#_) .sd-card[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
body:not(#_) .sd-card.hot[aria-pressed="true"] { border-color: var(--coral, #ff6b6b); background: color-mix(in srgb, var(--coral, #ff6b6b) 8%, transparent); }
body:not(#_) .sd-card .b18 { position: absolute; top: 9px; right: 10px; padding: 3px 5px; border-radius: 5px; background: var(--coral, #ff6b6b); color: #1d0008; font: 700 10px/1 var(--display); letter-spacing: 0.04em; }
body:not(#_) .sd-card[disabled], body:not(#_) .sd-seg button[disabled], body:not(#_) .sd-chip[disabled] { cursor: default; }
body:not(#_) .sd-own { justify-self: start; padding: 4px 0; background: none; border: 0; color: var(--cyan, #2ef2ff); font: 600 14px/1.3 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body:not(#_) .sd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body:not(#_) .sd-chip { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--edge); background: transparent; color: var(--text-2); cursor: pointer; font-size: 14px; }
body:not(#_) .sd-chip[aria-pressed="true"] { border-color: var(--gold); color: var(--text, #fff); background: color-mix(in srgb, var(--gold) 10%, transparent); }
body:not(#_) .sd-chip.c-heiss[aria-pressed="true"] { border-color: var(--coral, #ff6b6b); }
body:not(#_) .sd-adult { display: grid; gap: 8px; padding: 10px 12px; border-left: 3px solid var(--coral, #ff6b6b); background: color-mix(in srgb, var(--coral, #ff6b6b) 10%, transparent); }
body:not(#_) .sd-adult[hidden] { display: none; }
body:not(#_) .sd-adult p { margin: 0; font: 400 14px/1.35 var(--body); }
body:not(#_) .sd-adult-btns { display: flex; gap: 8px; flex-wrap: wrap; }
body:not(#_) .sd-adult-btns button { min-height: 38px; padding: 0 14px; border-radius: 10px; font: 700 15px/1 var(--display); cursor: pointer; }
body:not(#_) .sd-yes { border: 0; background: var(--coral, #ff6b6b); color: #1d0008; }
body:not(#_) .sd-no { border: 2px solid var(--edge); background: transparent; color: var(--text, #fff); }
body:not(#_) .sd-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
body:not(#_) .sd-more > div { display: grid; gap: 6px; min-width: 0; }
body:not(#_) .sd-label { display: flex; align-items: center; gap: 6px; margin: 0; font: 400 13px/1.2 var(--body); color: var(--text-2); }
body:not(#_) .sd-seg { display: flex; gap: 4px; padding: 4px; border: 2px solid var(--edge); border-radius: 12px; }
body:not(#_) .sd-seg button { flex: 1 1 auto; min-height: 40px; padding: 0 4px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; }
body:not(#_) .sd-seg button[aria-pressed="true"] { background: var(--gold); color: #1d1500; }
body:not(#_) .set-dialog .temp-box { margin-top: 4px; }
body:not(#_) .set-dialog :focus-visible { outline: 2px solid var(--cyan, #2ef2ff); outline-offset: 2px; }
/* breit (Handy quer, Desktop): jede Gruppe eine Zeile mit drei Karten, weitere Einstellungen nebeneinander */
@media (orientation: landscape) and (max-height: 520px), (min-width: 700px) {
  body:not(#_) .sd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:not(#_) .sd-more { grid-template-columns: 1fr 1fr; column-gap: 14px; }
}
/* Handy quer: das Fenster füllt den Bildschirm */
@media (orientation: landscape) and (max-height: 520px) {
  body:not(#_) .set-dialog { margin: 0; width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; gap: 9px; padding: 10px max(20px, env(safe-area-inset-left, 0px)) 10px max(20px, env(safe-area-inset-right, 0px)); }
  body:not(#_) .sd-card { padding: 6px 10px; }
  body:not(#_) .sd-seg button { min-height: 34px; }
  body:not(#_) .sd-grp { gap: 5px; }
  body:not(#_) .lobby > #setBox .ew { display: none; }
  body:not(#_) .lobby > #setBox .set-edit { font-size: 22px; }
}
/* Desktop: Fenster in der Mitte */
@media (min-width: 700px) and (min-height: 521px) {
  body:not(#_) .set-dialog { margin: auto; width: min(780px, 94vw); max-height: 90dvh; border: 2px solid var(--edge); border-radius: 18px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); }
}
@media (min-width: 900px) and (min-height: 521px) { body:not(#_) .lobby > #setBox .ew { display: none; } body:not(#_) .lobby > #setBox .set-edit { font-size: 22px; } }


/* ===== Desktop-Lobby (Owner 2026-12-03): Leiste oben mit Wortmarke, Raum, Teilen, Raum schließen / Verlassen;
   unten nur "Spiel starten"; oben und unten Abstand. Handy hoch und quer bleiben wie sie sind. ===== */
.lobby-brand { display: none; }
@media (min-width: 900px) and (min-height: 521px) {
  body:not(#_) .lobby { max-width: 1040px; padding-top: calc(28px + var(--safe-t)); padding-bottom: 28px; row-gap: 14px; column-gap: 20px; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; }
  body:not(#_) .lobby > .lobby-head { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; padding: 0 0 14px; border-bottom: 2px solid var(--line, rgba(255,255,255,.12)); }
  body:not(#_) .lobby .lobby-brand { display: block; flex: none; }
  body:not(#_) .lobby .lobby-wordmark { display: block; height: 40px; width: auto; }
  body:not(#_) .lobby .lobby-title { padding-left: 16px; border-left: 2px solid var(--line, rgba(255,255,255,.12)); gap: 2px; min-width: 0; }
  body:not(#_) .lobby .room-name { font-size: 22px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body:not(#_) .lobby .share-wrap { margin-left: auto; }
  body:not(#_) .lobby .lobby-nav-acts { display: flex; gap: 10px; flex: none; }
  body:not(#_) .lobby .lobby-nav-acts > .btn { min-height: 44px; margin: 0; width: auto; padding-inline: 18px; font-size: 14px; }
  body:not(#_) .lobby .lobby-nav-acts > .btn[hidden] { display: none; }
  body:not(#_) .lobby > .code-box { grid-column: 1; grid-row: 2; }
  body:not(#_) .lobby > #setBox { grid-column: 1; grid-row: 3; align-self: start; }
  body:not(#_) .lobby > .lobby-sec:not(#setBox) { grid-column: 2; grid-row: 2 / 4; }
  body:not(#_) .lobby > .lobby-actions { grid-column: 1 / -1; grid-row: 4; position: static; margin: 0; padding: 14px 0 0; background: none; border-top: 2px solid var(--line, rgba(255,255,255,.12)); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 20px; align-items: center; }
  body:not(#_) .lobby > .lobby-actions > .hint, body:not(#_) .lobby > .lobby-actions > .start-tip { grid-column: 1; grid-row: 1; text-align: left; margin: 0; }
  body:not(#_) .lobby > .lobby-actions > #startBtn { grid-column: 2; grid-row: 1; order: 0; min-height: 56px; }
}
/* Owner 2026-12-03: in der Desktop-Leiste ist Teilen genauso groß wie Raum schließen / Raum verlassen */
@media (min-width: 900px) and (min-height: 521px) {
  body:not(#_) .lobby .lobby-head #shareBtn, body:not(#_) .lobby .lobby-nav-acts > .btn { box-sizing: border-box; height: 60px; min-height: 60px; width: 220px; justify-content: center; padding-inline: 14px; font-size: 14px; }
}


/* ===== Desktop-Lobby Runde 2 (Owner 2026-12-03): oben nur Wortmarke und Raum schließen / verlassen (rechts, Symbol mittig);
   darunter die Raumzeile (Raumname, Code, Teilen, Einstellungen); die Lobby ist die Mitte; unten nur Spiel starten. ===== */
@media (min-width: 900px) and (min-height: 521px) {
  body:not(#_) .lobby { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; row-gap: 16px; }
  body:not(#_) .lobby > .lobby-head { grid-column: 1; grid-row: 1; padding: 0 0 12px; }
  body:not(#_) .lobby .lobby-nav-acts { margin-left: auto; }
  body:not(#_) .lobby .lobby-nav-acts > .btn { height: 56px; min-height: 56px; width: auto; min-width: 210px; }
  /* Raum schließen: Symbol links, mittig über beide Zeilen, Beschriftung rechtsbündig */
  body:not(#_) .lobby .lobby-nav-acts > #closeBtn { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-content: center; justify-content: end; text-align: right; }
  body:not(#_) .lobby .lobby-nav-acts > #closeBtn .hold-in { display: contents; }
  body:not(#_) .lobby .lobby-nav-acts > #closeBtn .hold-in > svg { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  body:not(#_) .lobby .lobby-nav-acts > #closeBtn .hold-in > span { grid-column: 2; grid-row: 1; }
  body:not(#_) .lobby .lobby-nav-acts > #closeBtn .hold-hint { grid-column: 2; grid-row: 2; margin: 0; }
  body:not(#_) .lobby > .room-bar { grid-column: 1; grid-row: 2; display: flex; align-items: stretch; gap: 12px; min-width: 0; }
  body:not(#_) .lobby .room-bar > .lobby-title { display: grid; align-content: center; gap: 2px; padding: 0 18px 0 0; border: 0; border-right: 2px solid var(--line, rgba(255,255,255,.12)); flex: none; max-width: 280px; }
  body:not(#_) .lobby .room-bar > .code-box { flex: none; display: flex; align-items: center; gap: 14px; padding: 6px 16px; margin: 0; }
  body:not(#_) .lobby .room-bar .code-box .code-big { font-size: 30px; }
  body:not(#_) .lobby .room-bar > .share-wrap { margin: 0; display: flex; }
  body:not(#_) .lobby .room-bar #shareBtn { height: auto; min-height: 0; width: auto; padding-inline: 18px; }
  body:not(#_) .lobby .room-bar > #setBox { flex: 1 1 auto; min-width: 0; padding: 8px 14px; align-content: center; }
  body:not(#_) .lobby .room-bar > #setBox .set-line { min-height: 0; }
  body:not(#_) .lobby .room-bar > #setBox .ew { display: inline; }
  body:not(#_) .lobby .room-bar > #setBox .set-edit { font-size: 13px; }
  body:not(#_) .lobby .room-bar > #setBox .set-sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body:not(#_) .lobby > .lobby-sec:not(#setBox) { grid-column: 1; grid-row: 3; align-self: start; max-height: 100%; }
  body:not(#_) .lobby > .lobby-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 420px) minmax(0, 1fr); }
  body:not(#_) .lobby > .lobby-actions > .hint, body:not(#_) .lobby > .lobby-actions > .start-tip { grid-column: 1 / -1; text-align: center; }
  body:not(#_) .lobby > .lobby-actions > #startBtn { grid-column: 2; }
}

/* Gedrückt halten = kritische Aktion (Raum schließen, Spiel für alle beenden, Verlassen als Gastgeber, Konto löschen):
   rot wie .btn.danger (Owner 2026-11-20 und 2026-12-03), dunkler Grund, damit die rote Füllung beim Halten sichtbar bleibt. */
body:not(#_) .btn.hold.hold { --nc: #ff4d5e; --face: #4a0a16; --fill: #4a0a16; --fg: #ffe3e6; background: #4a0a16; color: #ffe3e6; border-color: #ff4d5e; box-shadow: 0 0 16px rgba(255, 77, 94, 0.45); }
body:not(#_) .btn.hold.hold:hover, body:not(#_) .btn.hold.hold:focus-visible { background: #6a0f20; box-shadow: 0 0 22px rgba(255, 77, 94, 0.65); }
body:not(#_) .btn.hold .hold-fill { background: #e0193a; }
body:not(#_) .btn.hold.holding { color: #fff; }
