/* Räume und Spiele mit mehreren Handys: hochkant, eine Spalte, große Knöpfe. */
main.narrow { width: 100%; max-width: 520px; margin: 0 auto; padding: 24px max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); flex: 1; }
.narrow h1 { margin-bottom: 8px; }
.narrow > p.dim { margin: 0 0 20px; font-size: 17px; }
.narrow form { margin-top: 12px; }
.narrow .stack { gap: 16px; }
.narrow details { margin-top: 24px; }
.err { color: var(--red); font-weight: 600; margin: 0; }
.small { font-size: 14px; }
.codeinput { font-size: 32px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

.roomtop { display: flex; justify-content: space-between; align-items: baseline; padding: 12px max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); font-size: 14px; font-weight: 600; }
.roomtop .dim { font-weight: 500; font-variant-numeric: tabular-nums; }
.roomtop .right { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.menubtn { min-height: 44px; min-width: 60px; margin: -12px -12px -12px 0; padding: 0 12px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; border-radius: 4px; }
.menubtn:hover { background: var(--rule); }
/* Bestätigungsleiste nach einer Auswahl: bleibt unten sichtbar, auch bei langen Listen. */
.confirmbar { position: sticky; bottom: 0; padding: 10px 0 max(10px, env(safe-area-inset-bottom)); background: var(--paper); z-index: 2; }
.confirmbar .primary { margin: 0; }
/* Querformat am Handy: weniger Höhe, alles kompakter. */
@media (orientation: landscape) and (max-height: 520px) {
	.timer { font-size: 44px; margin: 4px 0; }
	.question, .word { font-size: 22px; }
	.phase { margin-top: 6px; }
	.actions { position: sticky; bottom: 0; padding: 8px 0 max(8px, env(safe-area-inset-bottom)); background: var(--paper); z-index: 2; }
	.choices.one { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.pad { max-height: 62vh; max-width: 62vh; }
	.keule { min-height: 110px; }
}
body.observer .menubtn { display: none; }
/* Raum-Menü im Spiel: wer ist da, Spieler entfernen, abbrechen, verlassen. */
.sheet { position: fixed; inset: 0; z-index: 12; background: rgba(20, 18, 12, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out; }
.sheet .panel { width: 100%; max-width: 480px; max-height: 85vh; overflow: auto; background: var(--paper); color: var(--ink); border-radius: 10px 10px 0 0; padding: 16px 20px max(20px, env(safe-area-inset-bottom)); animation: rise .18s ease-out; }
@media (min-width: 600px) { .sheet { align-items: center; } .sheet .panel { border-radius: 10px; } }
.sheet h2 { font-size: 17px; margin: 0 0 10px; }
.sheet .plist { margin: 0 0 14px; }
.sheet .plist li { padding: 8px 0; }
.sheet .actions { margin-top: 0; }
.sheet button.warn { color: var(--red); border-color: var(--red); }
button.confirming, .sheet button.confirming { background: var(--red); border-color: var(--red); color: #fff; }
.roomtop a { color: inherit; text-decoration: none; }
.roomtop a:hover { text-decoration: underline; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }

.offline { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 20px max(10px, env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); font-size: 14px; text-align: center; z-index: 10; }
.flash { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 12px 16px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; text-align: center; border-radius: 6px; z-index: 11; animation: enter .15s ease-out; }
/* Während eine Aktion zum Server unterwegs ist: nichts doppelt antippen. */
main.busy button, main.busy .tap li { opacity: .55; pointer-events: none; }

/* Lobby */
.bigcode { font-size: 64px; font-weight: 800; letter-spacing: 0.12em; line-height: 1; text-align: center; margin: 8px 0 4px; font-variation-settings: "opsz" 96; font-variant-numeric: tabular-nums; }
.sharebtn { display: block; margin: -6px auto 14px; width: auto; }
.joinurl { text-align: center; color: var(--ink-2); font-size: 14px; margin: 0 0 16px; }
.qr { display: block; width: min(220px, 60vw); aspect-ratio: 1; margin: 0 auto 20px; border: 1.5px solid var(--ink); border-radius: 4px; background: #fff; padding: 8px; }
.plist { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1.5px solid var(--ink); }
.plist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.plist .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); flex: none; }
.plist .dot.on { background: var(--ok, #2f9e63); }
.plist .tag { font-size: 12px; color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase; }
.plist .name { flex: 1; }
.plist .state { font-size: 13px; color: var(--ink-2); }
.plist .state.ok { color: var(--ink); }
.plist button { width: auto; min-height: 40px; padding: 4px 12px; font-size: 13px; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions .quiet { align-self: center; width: auto; }

/* Spiel */
.word { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 12px 0 18px; font-variation-settings: "opsz" 96; overflow-wrap: anywhere; }
.phase { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; line-height: 1.15; }
.wait { color: var(--ink-2); font-size: 15px; margin: 12px 0 0; }
.hints { list-style: none; margin: 8px 0 16px; padding: 0; border-top: 1.5px solid var(--ink); }
.hints li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 22px; font-weight: 600; }
.hints li .who { flex: none; font-size: 13px; font-weight: 500; color: var(--ink-2); min-width: 0; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hints li .t { flex: 1; overflow-wrap: anywhere; }
.hints li.off .t { text-decoration: line-through; color: var(--ink-2); font-weight: 500; }
.hints li .tag { font-size: 12px; color: var(--red); letter-spacing: 0.06em; text-transform: uppercase; }
.hints.tap li { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.hints.big li { font-size: 28px; padding: 14px 0; }
.verdict { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 4px; font-variation-settings: "opsz" 96; }
.verdict.ok { color: var(--ok, #2f9e63); }
.verdict.no { color: var(--red); }
.score { font-size: 15px; color: var(--ink-2); margin: 0 0 16px; }
.hist { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1.5px solid var(--ink); }
.hist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.hist li .r { color: var(--ink-2); }
.hist li.ok .r { color: var(--ink); font-weight: 600; }
input.hintinput { font-size: 26px; }

/* Ein-Handy-Spiele und Startseiten mit Moduswahl */
.modes2 { display: grid; gap: 10px; margin: 16px 0 24px; }
.modes2 button { text-align: left; display: block; min-height: 64px; padding: 12px 18px; }
.modes2 button small { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.modes2 button.primary small { color: var(--paper); opacity: .75; }
.names { display: grid; gap: 8px; margin-bottom: 8px; }
.namerow { display: grid; grid-template-columns: 1fr 40px; gap: 8px; align-items: center; }
.namerow button { min-height: 40px; font-size: 20px; padding: 0; }
button.tall { min-height: 120px; font-size: 20px; }
.timer { font-size: 72px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-align: center; margin: 10px 0 6px; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 96; }
.timer { transition: color .3s ease; }
.timer.low { color: var(--red); }
.places { columns: 2; column-gap: 16px; list-style: none; padding: 0; margin: 10px 0 16px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.places li { break-inside: avoid; }
.places li.me { color: var(--ink); font-weight: 700; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 16px; }
.choices button { min-height: 44px; font-size: 15px; padding: 8px 10px; }
.choices.one { grid-template-columns: 1fr; }
.bignum { font-size: 120px; font-weight: 800; line-height: 1; text-align: center; letter-spacing: -0.04em; margin: 10px 0; font-variation-settings: "opsz" 96; }
.theme { border: 1.5px solid var(--ink); border-radius: 4px; padding: 14px 16px; margin: 12px 0 16px; }
.theme .t { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.theme .scale { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.theme .scale b { color: var(--ink); }
.orderlist { list-style: none; padding: 0; margin: 8px 0 12px; border-top: 1.5px solid var(--ink); }
.orderlist li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 18px; font-weight: 600; }
.orderlist li .pos { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.orderlist li .num { font-variant-numeric: tabular-nums; }
.orderlist li.ok .num { color: var(--ok, #2f9e63); }
.orderlist li.no .num { color: var(--red); }
.lives { display: flex; gap: 6px; margin: 4px 0 12px; }
.lives i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); }
.lives i.on { background: var(--ink); }
.scores { list-style: none; padding: 0; margin: 12px 0 16px; border-top: 1.5px solid var(--ink); }
.scores li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.scores li b { font-variant-numeric: tabular-nums; }
.opts { display: grid; gap: 10px; margin: 12px 0 16px; }
.opt2 { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; font-size: 15px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
.seg label, .seg button { position: relative; text-align: center; padding: 8px 10px; font-weight: 600; font-size: 14px; cursor: pointer; border-left: 1.5px solid var(--ink); user-select: none; -webkit-user-select: none; background: none; border-top: 0; border-bottom: 0; border-right: 0; border-radius: 0; min-height: 0; width: auto; color: var(--ink); font-family: inherit; }
.seg label:first-child, .seg button:first-child { border-left: 0; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg label:has(input:checked), .seg button.on { background: var(--ink); color: var(--paper); }

/* Tutorial: Attrappe des Spielbildschirms in einem Rahmen */
.tut-title { font-size: 24px; margin: 8px 0 4px; }
.tut-text { color: var(--ink-2); margin: 0 0 14px; font-size: 16px; }
.demo { border: 1.5px solid var(--ink); border-radius: 10px; padding: 16px 16px 18px; margin: 0 0 18px; background: var(--paper); position: relative; }
.demo::before { content: "So sieht's aus"; position: absolute; top: -9px; left: 12px; padding: 0 6px; background: var(--paper); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.demo-screen { pointer-events: none; }
.demo-screen .word { font-size: 34px; margin: 6px 0 12px; }
.demo-screen .timer { font-size: 52px; }
.demo-screen .bignum { font-size: 80px; }
.demo-screen button[disabled] { opacity: 1; }
.demo-screen .hints li { font-size: 19px; padding: 9px 0; }
.demo-screen .quotes { list-style: none; padding: 0; margin: 8px 0 0; }
.demo-screen .quotes li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.demo-screen .quotes li b { display: block; font-size: 12px; color: var(--ink-2); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }

/* Einig: Begriffe mit Trefferzahl */
.terms { list-style: none; padding: 0; margin: 8px 0 16px; border-top: 1.5px solid var(--ink); }
.terms li { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.terms li .n { font-size: 20px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.terms li.hit .n { color: var(--ok, #2f9e63); }
.terms li .t { font-size: 18px; font-weight: 600; }
.terms li .who { grid-column: 2 / 4; font-size: 13px; color: var(--ink-2); }
.terms.tap li { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.terms li.sel { background: var(--band); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 4px; }
.terms li button { width: auto; min-height: 40px; padding: 2px 12px; font-size: 13px; grid-column: 3; grid-row: 1; }
.mine { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.mine li { padding: 4px 10px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 600; }

/* Einsilbig: Keule */
.center { text-align: center; }
.word.center { font-size: 52px; margin: 8px 0 10px; }
button.keule { min-height: 180px; font-size: 40px; font-weight: 800; letter-spacing: 0.04em; background: var(--red); border-color: var(--red); color: #fff; margin: 16px 0 10px; }
button.keule:active { transform: scale(.97); }

/* Auswahl „mitspielen“ / „nur zuschauen“ */
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); }
.check small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }

/* Zuschauer (Fernseher, PC): alles größer, mehr Breite, keine Bedienelemente */
body.observer main.narrow { max-width: 900px; font-size: 22px; }
body.observer .word { font-size: 72px; }
body.observer .timer { font-size: 120px; }
body.observer .phase { font-size: 36px; }
body.observer .hints li { font-size: 32px; }
body.observer .terms li .t { font-size: 26px; }
body.observer .places { font-size: 22px; columns: 3; }
body.observer .bigcode { font-size: 120px; }
body.observer .qr { width: min(360px, 50vw); }
body.observer .plist li, body.observer .scores li, body.observer .orderlist li { font-size: 24px; }
body.observer .verdict { font-size: 48px; }
body.observer .theme .t { font-size: 32px; }
body.observer .roomtop { font-size: 28px; }
body.observer .wait, body.observer .score, body.observer .hist li, body.observer .rollen li, body.observer .livesrow li, body.observer .answers li .meta, body.observer .terms li .who { font-size: 26px; }
body.observer .joinurl { font-size: 32px; }
body.observer .dim.small, body.observer .note { font-size: 22px; }

/* Erlaubt / nicht erlaubt */
.quotes.okno li { display: grid; gap: 4px; }
.quotes.okno li span { font-size: 15px; }
.quotes.okno b.ok { color: var(--ok, #2f9e63); }
.quotes.okno b.no { color: var(--red); }
.namerow input.isdefault { color: var(--ink-2); font-weight: 500; }

/* Einsilbig: Kartenpaar leicht / schwer */
.pair { display: grid; gap: 8px; margin: 8px 0 6px; }
.pair > div { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 6px; font-size: 30px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; overflow-wrap: anywhere; }
.pair .pts { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: var(--ink); color: var(--paper); }
.pair .hard { border-color: var(--red); }
.pair .hard .pts { background: var(--red); }
.row button.tall { min-height: 80px; font-size: 16px; padding: 8px 10px; }

/* Spion: Rolle am Ort */
.rolle { font-size: 18px; margin: -6px 0 12px; }
.rollen { list-style: none; padding: 0; margin: 8px 0 12px; border-top: 1px solid var(--rule); }
.rollen li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }

/* Zeitbombe */
/* Bombe: Kugel mit Lunte und Funken, beim Knall Wackeln und Blitz */
.bomb { display: grid; place-items: center; margin: 6px 0 12px; position: relative; height: 190px; }
.bomb svg { width: 180px; height: 180px; overflow: visible; }
.bomb .ball { fill: var(--ink); }
.bomb .shine { fill: var(--paper); opacity: .18; }
.bomb .fuse { fill: none; stroke: var(--ink-2); stroke-width: 5; stroke-linecap: round; }
.bomb .spark { fill: var(--red); }
.bomb .label { fill: var(--paper); font-weight: 800; font-size: 20px; letter-spacing: .08em; text-anchor: middle; font-family: inherit; }
.bomb.ticking svg { animation: tick-wobble 1s ease-in-out infinite; transform-origin: 50% 60%; }
.bomb.ticking .spark { animation: spark .35s ease-in-out infinite alternate; transform-origin: 152px 28px; }
.bomb.boom svg { animation: boom-shake .5s ease-out 1; }
.bomb.boom .ball { fill: var(--red); }
.bomb.boom .spark, .bomb.boom .fuse { display: none; }
.bomb.boom::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: radial-gradient(circle, var(--red) 0%, transparent 65%); animation: flash .6s ease-out 1 both; }
@keyframes tick-wobble { 0%, 100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.04); } }
@keyframes spark { from { transform: scale(.6); opacity: .6; } to { transform: scale(1.4); opacity: 1; } }
@keyframes boom-shake { 0% { transform: translate(0); } 15% { transform: translate(-8px, 4px) rotate(-4deg); } 30% { transform: translate(8px, -4px) rotate(4deg); } 45% { transform: translate(-6px, 2px); } 60% { transform: translate(6px, -2px); } 75% { transform: translate(-3px, 1px); } 100% { transform: translate(0) scale(1.1); } }
@keyframes flash { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }
@media (prefers-reduced-motion: reduce) { .bomb svg, .bomb .spark, .bomb.boom::before { animation: none !important; } }
button.pass { min-height: 150px; font-size: 32px; }
.bombrow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; }
.bombrow .back { width: auto; min-height: 150px; padding: 0 18px; font-size: 15px; }
.livesrow { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 6px; }
.livesrow li { display: flex; -webkit-user-select: none; user-select: none; justify-content: space-between; align-items: center; font-size: 16px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.livesrow li.out { color: var(--ink-2); text-decoration: line-through; }
.livesrow li.holder { font-weight: 700; }
.livesrow .hearts { letter-spacing: 2px; font-variant-numeric: tabular-nums; }

/* Flunker */
.question { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin: 6px 0 14px; }
.answers { list-style: none; padding: 0; margin: 8px 0 14px; border-top: 1.5px solid var(--ink); }
.answers li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.answers li .t { font-size: 20px; font-weight: 600; }
.answers li .meta { font-size: 13px; color: var(--ink-2); }
.answers li.truth .t { color: var(--ok, #2f9e63); }
.answers li.truth .meta { color: var(--ok, #2f9e63); font-weight: 600; }
body.observer .question { font-size: 40px; }
body.observer .answers li .t { font-size: 30px; }

/* Agenten: Brett 5×5 */
:root { --blue: #2b6cb0; --blue-2: #cfe0f5; --red-l: #f6c9b8; }
@media (prefers-color-scheme: dark) { :root { --blue: #5b9ae6; --blue-2: #1f3650; --red-l: #5a2a1c; } }
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 10px 0 12px; }
.board .c { min-height: 52px; display: grid; place-items: center; text-align: center; padding: 4px 3px; border: 1.5px solid var(--ink); border-radius: 5px; font-size: 12px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; background: var(--card, var(--paper)); -webkit-user-select: none; user-select: none; }
.board.tap .c:not(.rev) { cursor: pointer; }
.board .c.k0 { border-color: var(--red); box-shadow: inset 0 0 0 2px var(--red-l); }
.board .c.k1 { border-color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue-2); }
.board .c.k2 { border-style: dashed; color: var(--ink-2); }
.board .c.k3 { background: var(--ink); color: var(--paper); }
.board .c.rev.k0 { background: var(--red); color: #fff; border-color: var(--red); box-shadow: none; }
.board .c.rev.k1 { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: none; }
.board .c.rev.k2 { background: var(--band); color: var(--ink-2); border-style: solid; border-color: var(--band); }
.board .c.rev.k3 { background: var(--ink); color: var(--paper); }
.teamline { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 16px; margin: 4px 0 6px; }
.teamline .t0 { color: var(--red); } .teamline .t1 { color: var(--blue); }
.cluebox { border: 1.5px solid var(--ink); border-radius: 6px; padding: 10px 14px; margin: 6px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.cluebox .w { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.cluebox .n { font-size: 26px; font-weight: 800; }
.cluelog { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--ink-2); display: grid; gap: 2px; }
.cluelog .t0 { color: var(--red); } .cluelog .t1 { color: var(--blue); }
.cluerow { display: grid; grid-template-columns: 1fr 72px; gap: 8px; }
body.observer .board .c { min-height: 90px; font-size: 22px; }
body.observer .cluebox .w, body.observer .cluebox .n { font-size: 44px; }
body.observer .teamline { font-size: 26px; }

/* Mehrheit: rosa Kuh */
.cow { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #f7c6d9; color: #7a1f47; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; margin-left: 6px; }
@media (prefers-color-scheme: dark) { .cow { background: #6b2a48; color: #ffd6e7; } }

/* Wer bin ich */
.figures { list-style: none; padding: 0; margin: 8px 0 16px; border-top: 1.5px solid var(--ink); }
.figures li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.figures li .who { font-size: 13px; color: var(--ink-2); }
.figures li .fig { font-size: 20px; font-weight: 700; }
.figures li.solved .fig { color: var(--ok); }
.figures li button { width: auto; min-height: 40px; padding: 4px 12px; font-size: 13px; grid-row: 1 / 3; }
.figures li .place { grid-row: 1 / 3; font-size: 13px; color: var(--ok); font-weight: 700; }

/* Blitzrunde */
.letter { font-size: 96px; font-weight: 800; line-height: 1; text-align: center; letter-spacing: -0.04em; margin: 4px 0 8px; font-variation-settings: "opsz" 96; }
.blitzform { display: grid; gap: 10px; }
.blitzform label { display: grid; gap: 2px; }
.blitzform label span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.blitz { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 14px; }
.blitz th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 6px 4px; border-bottom: 1.5px solid var(--ink); }
.blitz td { padding: 7px 4px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.blitz td.a { cursor: pointer; -webkit-user-select: none; user-select: none; }
.blitz td.a.no { text-decoration: line-through; color: var(--ink-2); }
.blitz td.a.empty { color: var(--rule); }
.blitz td.n { font-weight: 700; white-space: nowrap; }
body.observer .letter { font-size: 160px; }
body.observer .blitz { font-size: 24px; }
body.observer .figures li .fig { font-size: 32px; }

/* Werwölfe */
.night { background: var(--ink); color: var(--paper); margin: -24px max(-20px, calc(-1 * env(safe-area-inset-right))) 16px max(-20px, calc(-1 * env(safe-area-inset-left))); padding: 28px 20px 24px; border-radius: 0 0 14px 14px; }
.night .dim { color: #b8b4a6; }
.night .word { color: var(--paper); }
.rolecard { border: 1.5px solid var(--ink); border-radius: 10px; padding: 18px; margin: 10px 0 16px; text-align: center; }
.rolecard .r { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.rolecard.wolf .r { color: var(--red); }
.rolecard .d { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.people { list-style: none; padding: 0; margin: 8px 0 14px; border-top: 1.5px solid var(--ink); }
.people li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.people li.dead { color: var(--ink-2); text-decoration: line-through; }
.people li .r { font-size: 12px; color: var(--ink-2); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; }
.people li button { width: auto; min-height: 40px; padding: 4px 14px; font-size: 14px; }
.people li button.on { background: var(--ink); color: var(--paper); }
.wwlog { list-style: none; padding: 0; margin: 10px 0; font-size: 14px; color: var(--ink-2); display: grid; gap: 3px; }
body.observer .people li { font-size: 28px; }
body.observer .rolecard .r { font-size: 48px; }

/* Zeichnen */
.pad { border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; overflow: hidden; touch-action: none; }
.pad canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; touch-action: none; }
.padtools { display: flex; gap: 8px; justify-content: flex-end; margin: 6px 0 10px; }
.padtools button { width: auto; min-height: 36px; }
.drawing { display: block; width: 100%; height: auto; aspect-ratio: 1; border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; }
.drawing path { fill: none; stroke: #19170f; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.chain { display: grid; gap: 10px; margin: 8px 0 14px; }
.chain .step { display: grid; gap: 4px; }
.chain .step .who { font-size: 12px; color: var(--ink-2); letter-spacing: 0.06em; text-transform: uppercase; }
.chain .step .t { font-size: 24px; font-weight: 700; }
.chain .step .drawing { max-width: 260px; }
body.observer .chain .step .drawing { max-width: 420px; }
body.observer .chain .step .t { font-size: 40px; }

/* Decrypto */
.dcwords { margin: 4px 0 12px; padding-left: 28px; font-size: 20px; font-weight: 700; display: grid; gap: 4px; }
.dcwords.t0 li::marker { color: var(--red); } .dcwords.t1 li::marker { color: var(--blue); }
.cluerow3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 10px; }
.cluerow3 select { min-height: 52px; font: inherit; font-size: 24px; font-weight: 700; text-align: center; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--paper); color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 16px 0; }
.board .c.sel { outline: 3px solid var(--ink); outline-offset: -3px; }
/* ±-Knöpfe in Wertungs- und Lebenslisten (Einsilbig, Zeitbombe) */
.scores li .adj, .livesrow li .adj { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.scores li .adj > *, .livesrow li .adj > * { flex: 0 0 auto; }
.scores li .adj .seg button, .livesrow li .adj .seg button { min-width: 44px; }
/* Flunker: antippbare Lügen im Ergebnis */
.answers li[data-key] { cursor: pointer; -webkit-user-select: none; user-select: none; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 0 20px; }
.choices.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.blitz td.a { padding: 12px 6px; }
/* Tabu */
.hints.taboo li .t { color: var(--red); }
.hist.tap li { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
/* Falscher Künstler */
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
body.observer .drawing { max-width: 70vh; margin: 0 auto; }
/* Zwei Wahrheiten */
.answers li.lie .t, .answers li.lie .meta { color: var(--red); }
.choices button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* Stift: Farben und Dicke über dem Zeichenblock */
.pen { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 8px; }
.pen-colors { display: flex; gap: 6px; flex-wrap: wrap; }
.pen .sw { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--rule); }
.pen .sw.on { border-color: var(--paper); box-shadow: 0 0 0 2.5px var(--ink); }
.pen-widths { display: flex; gap: 4px; }
.pen-widths button { width: 36px; height: 36px; min-height: 0; padding: 0; border: 1.5px solid transparent; border-radius: 6px; background: none; display: grid; place-items: center; }
.pen-widths button.on { border-color: var(--ink); }
.pen-widths i { display: block; border-radius: 50%; background: var(--ink); }
/* Kritzel */
.kpic .drawing { max-width: min(100%, 48vh); margin: 0 auto 8px; }
.kpic.small .drawing { max-width: 160px; }
p.eyebrow:has(+ h1) { margin-bottom: 4px; }
.dcwords .dim { font-weight: 500; }
.teamline { flex-wrap: wrap; gap: 2px 12px; }
/* Umfrage */
.umf-step { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; align-items: center; margin: 8px 0 14px; }
.umf-step button { min-height: 56px; font-size: 26px; font-weight: 700; padding: 0; }
.umf-step input { text-align: center; font-size: 32px; font-weight: 700; padding: 8px 0; font-variant-numeric: tabular-nums; }
.umf-bar { height: 18px; border-radius: 9px; background: var(--rule); overflow: hidden; margin: 10px 0 16px; }
.umf-bar span { display: block; height: 100%; background: var(--red); border-radius: 9px; }
body.observer .umf-bar { height: 34px; border-radius: 17px; }
.umf-hl { list-style: none; margin: 0; padding: 0; }
.umf-hl li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
body.observer .umf-hl li { font-size: 26px; }
.scores li.me { font-weight: 700; }
#wFilter { margin: 0 0 10px; }
/* Gemeinsamkeiten */
.gmchip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; color: #fff; margin: 4px 0 12px; }
.gmchip b { font-size: 34px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.gmchip span { font-size: 16px; font-weight: 600; }
.gmchip.big { padding: 18px 20px; }
.gmchip.big b { font-size: 64px; }
.gmchip.big span { font-size: 20px; }
.gmgrid { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
body.observer .gmgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gmtile { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1.5px solid var(--rule); border-radius: 8px; min-width: 0; }
.gmtile.ok { border-color: var(--ok); }
.gmnum { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 800; }
body.observer .gmnum { width: 44px; height: 44px; font-size: 22px; }
.gmnames { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
body.observer .gmnames { font-size: 18px; }
.gmok { color: var(--ok); font-weight: 800; }
.gmcount { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.gmgrid.all .gmtile { flex-wrap: wrap; align-items: flex-start; }
.gmsmall { flex-basis: 100%; font-size: 13px; color: var(--ink-2); }
.gmlist { list-style: none; margin: 6px 0 14px; padding: 0; border-top: 1.5px solid var(--ink); }
.gmlist li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 18px; }
body.observer .gmlist li { font-size: 28px; }
.gmlist .gmx { width: 44px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: 22px; }
.gmmoved { background: var(--red); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
/* Stellt euch auf */
.orderlist.aufline li { break-inside: avoid; }
.hist li .small { display: block; margin-top: 2px; }
body.observer .gmgrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
body.observer .gmtile { padding: 12px; gap: 12px; }
body.observer .gmnum { width: 56px; height: 56px; font-size: 28px; border-radius: 10px; }
body.observer .gmnames { font-size: 22px; }
body.observer .gmcount, body.observer .gmok { font-size: 30px; }
/* Auswahlfelder im Raum: groß und daumentauglich wie die Textfelder */
main select { min-height: 48px; padding: 0 10px; font: inherit; font-size: 18px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 4px; }
main .row select { flex: 1; min-width: 0; }
/* Cast-Knopf: Symbol + „Cast“, erscheint nur, wenn ein Chromecast da ist */
.castbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 44px; margin: 0 auto 14px; padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: 22px; background: none; color: var(--ink); font: inherit; font-weight: 700; font-size: 16px; }
.castbtn small { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.castbtn .casticon { width: 22px; height: 22px; fill: currentColor; }
.castbtn:hover { background: var(--ink); color: var(--paper); }
.castbtn:hover small { color: var(--paper); }
main > .castbtn { display: flex; width: fit-content; }
.sheet .castbtn { align-self: center; margin: 0; }
