/* ============ Grand Bluff – Design ============ */
:root {
  --bg-0: #050c09;
  --bg-1: #08130e;
  --bg-2: #0d1f17;
  --felt: #0f3b2a;
  --felt-2: #0a2a1e;
  --gold: #d4af6a;
  --gold-2: #f1d9a0;
  --gold-dim: #8a7244;
  --ivory: #efe7d6;
  --muted: #9a978b;
  --line: rgba(212, 175, 106, .22);
  --line-2: rgba(239, 231, 214, .08);
  --card: rgba(13, 31, 23, .72);
  --red: #d0675e;
  --green: #6cc08a;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--bg-0); }
body {
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(212, 175, 106, .10), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(15, 59, 42, .55), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  background-attachment: fixed;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--gold); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.caps { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 700; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.grow { flex: 1; }
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bausteine ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; }
.narrow { max-width: 520px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.card.flat { box-shadow: none; }
.card h2 { font-size: 1.6rem; }
.card h3 { font-size: 1.25rem; color: var(--gold); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 18px 0; border: 0; }

.btn {
  appearance: none; border: 1px solid var(--line); background: rgba(239, 231, 214, .04);
  color: var(--ivory); padding: 12px 18px; border-radius: 10px; cursor: pointer;
  font-weight: 700; letter-spacing: .02em; transition: transform .08s, background .2s, border-color .2s, opacity .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  text-decoration: none;
}
.btn:hover { border-color: var(--gold); background: rgba(212, 175, 106, .08); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.primary {
  background: linear-gradient(180deg, #e7c886, #b8924d); color: #1a1408; border-color: #e9cf95;
  box-shadow: 0 6px 20px rgba(212, 175, 106, .25), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn.primary:hover { background: linear-gradient(180deg, #f0d596, #c39c56); }
.btn.danger { border-color: rgba(208, 103, 94, .5); color: #f0b1aa; }
.btn.danger:hover { background: rgba(208, 103, 94, .12); border-color: var(--red); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ivory); background: rgba(239, 231, 214, .05); }
.btn.sm { padding: 6px 10px; min-height: 34px; font-size: .85rem; border-radius: 8px; }
.btn.lg { padding: 16px 26px; font-size: 1.1rem; min-height: 58px; }
.btn.block { width: 100%; }

label.field { display: block; }
label.field > span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 106, .15); }
textarea.input { min-height: 120px; resize: vertical; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.input.code { text-transform: uppercase; letter-spacing: .4em; text-align: center; font-size: 1.8rem; font-family: var(--serif); font-weight: 700; }
.input.big { font-size: 2rem; text-align: center; font-weight: 700; padding: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr 1fr; } }

.chip-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px;
  border: 1px solid var(--line); font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.chip-badge.gold { background: rgba(212, 175, 106, .12); }
.chip-badge.red { border-color: rgba(208, 103, 94, .5); color: #f0b1aa; }
.chip-badge.green { border-color: rgba(108, 192, 138, .5); color: #a8e2bb; }

.banner {
  border: 1px dashed var(--gold-dim); border-radius: 10px; padding: 10px 14px; font-size: .85rem;
  background: rgba(212, 175, 106, .06); color: var(--gold-2);
}

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0;
  background: #14281f; border: 1px solid var(--gold); color: var(--ivory); padding: 12px 18px;
  border-radius: 12px; box-shadow: var(--shadow); transition: all .3s; z-index: 99; pointer-events: none;
  max-width: calc(100vw - 32px); text-align: center; font-weight: 600;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Logo / Header ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.logo svg { flex: none; filter: drop-shadow(0 4px 14px rgba(212, 175, 106, .25)); }
.logo .name { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: .06em; line-height: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 10; background: rgba(5, 12, 9, .82); backdrop-filter: blur(10px); }
.topbar .role { color: var(--gold); }

/* ---------- Landing ---------- */
.hero { text-align: center; padding: 64px 16px 28px; }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); line-height: .95; letter-spacing: .04em; margin-top: 18px;
  background: linear-gradient(180deg, #f6e4b6, #c79f58 60%, #8c6c34); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tag { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--muted); margin-top: 6px; }
.ornament { display: flex; align-items: center; gap: 14px; justify-content: center; color: var(--gold); margin: 22px auto 0; max-width: 320px; }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 820px) { .roles { grid-template-columns: 1fr; } }
.role-card {
  position: relative; text-align: left; padding: 28px 24px; border-radius: 18px; cursor: pointer;
  background: linear-gradient(160deg, rgba(20, 50, 37, .85), rgba(8, 20, 15, .9));
  border: 1px solid var(--line); color: var(--ivory); text-decoration: none; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s; box-shadow: var(--shadow);
}
.role-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 26px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 175, 106, .3); }
.role-card .num { position: absolute; right: 18px; top: 8px; font-family: var(--serif); font-size: 4.5rem; color: rgba(212, 175, 106, .1); font-weight: 700; }
.role-card h2 { font-size: 1.9rem; margin: 14px 0 6px; }
.role-card p { color: var(--muted); margin: 0; }
.role-card .go { margin-top: 18px; color: var(--gold); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.icon-ring { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; counter-reset: st; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps div { padding: 16px; border-left: 1px solid var(--line); }
.steps div::before { counter-increment: st; content: counter(st, upper-roman); font-family: var(--serif); color: var(--gold); font-size: 1.4rem; display: block; }

/* ---------- Spieler (Handy) ---------- */
.player { max-width: 560px; margin: 0 auto; padding: 14px 14px 120px; }
.stackbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.big-chips { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--gold-2); line-height: 1; }
.qcard { border-radius: 18px; padding: 22px 20px; background: linear-gradient(170deg, #f4ecda, #e2d5b8); color: #1d1a12; box-shadow: var(--shadow); position: relative; }
.qcard .cat { color: #7b6332; }
.qcard .q { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; line-height: 1.2; margin-top: 6px; }
.qcard .unit { color: #6b5f45; font-size: .9rem; margin-top: 8px; }
.hints { list-style: none; margin: 0; padding: 0; }
.hints li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(212, 175, 106, .05); }
.hints li + li { margin-top: 8px; }
.hints li b { color: var(--gold); font-family: var(--serif); font-size: 1.1rem; margin-right: 6px; }
.hints li.locked { opacity: .35; border-style: dashed; }
.stat { text-align: center; }
.stat .v { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--gold-2); line-height: 1.1; }
.stat .l { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.action-dock {
  position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5, 12, 9, 0), rgba(5, 12, 9, .96) 22%); z-index: 20;
}
.action-dock .inner { max-width: 560px; margin: 0 auto; background: #0e2219; border: 1px solid var(--gold); border-radius: 18px; padding: 14px; box-shadow: 0 -10px 50px rgba(0, 0, 0, .6), 0 0 40px rgba(212, 175, 106, .15); animation: rise .3s ease; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
.action-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.raise-box { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
input[type=range] { width: 100%; accent-color: var(--gold); height: 34px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 0 10px; }
.mini-players { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini-players .mp { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line-2); font-size: .85rem; min-width: 0; }
.mini-players .mp.turn { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.mini-players .mp.folded { opacity: .4; }
.mp .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: #14100a; flex: none; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4), 0 0 0 3px rgba(212, 175, 106, .4); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.colors label { cursor: pointer; }
.colors input { position: absolute; opacity: 0; pointer-events: none; }
.colors .sw { width: 38px; height: 38px; border-radius: 50%; display: block; border: 2px solid transparent; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); transition: transform .15s; }
.colors input:checked + .sw { border-color: var(--ivory); transform: scale(1.12); box-shadow: 0 0 0 3px var(--gold); }
.colors input:disabled + .sw { opacity: .2; cursor: not-allowed; }
.result-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .22); }
.result-row.win { background: rgba(212, 175, 106, .14); border: 1px solid var(--gold); }
.result-row + .result-row { margin-top: 6px; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--gold-2); }
.waiting { text-align: center; padding: 30px 10px; }
.waiting .pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); margin: 0 auto 14px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 106, .6); } 100% { box-shadow: 0 0 0 22px rgba(212, 175, 106, 0); } }

/* ---------- Game Master ---------- */
.gm-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 960px) { .gm-grid { grid-template-columns: 1fr; } }
.phase-pill { display: inline-block; padding: 4px 12px; border-radius: 99px; background: rgba(212, 175, 106, .14); color: var(--gold-2); font-weight: 800; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.answer-reveal { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: #2c5a3f; }
table.ptable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ptable th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; padding: 6px 6px; border-bottom: 1px solid var(--line); }
.ptable td { padding: 9px 6px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.ptable tr.turn td { background: rgba(212, 175, 106, .1); }
.ptable tr.folded td { opacity: .45; }
.ptable tr.out td { opacity: .3; text-decoration: line-through; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 4px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
details.box { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
details.box + details.box { margin-top: 10px; }
details.box summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.box summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; }
details.box[open] summary::after { content: '–'; }
details.box[open] summary { margin-bottom: 12px; }
.code-display { font-family: var(--serif); font-weight: 700; font-size: 3rem; letter-spacing: .25em; color: var(--gold-2); line-height: 1; }
.qr img, .qr canvas { display: block; border-radius: 10px; border: 6px solid var(--ivory); }
.log { font-style: italic; color: var(--gold-2); font-family: var(--serif); font-size: 1.15rem; }

/* ---------- Scoreboard ---------- */
.board { height: 100vh; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.board-top { display: flex; justify-content: space-between; align-items: center; padding: 1.6vh 2.4vw; }
.board-top .meta { display: flex; gap: 2vw; align-items: center; font-size: 1.6vh; }
.board-top .meta b { color: var(--gold-2); font-size: 2.2vh; font-family: var(--serif); }
.stage { position: relative; }
.table {
  position: absolute; left: 50%; top: 50%; width: min(80vw, 145vh); height: min(60vh, 40vw); transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #17553c 0%, var(--felt) 45%, var(--felt-2) 100%);
  box-shadow: 0 0 0 1.4vh #3a2a14, 0 0 0 1.6vh #8a6a35, 0 0 0 2.3vh #24190c, 0 4vh 10vh rgba(0, 0, 0, .7), inset 0 0 8vh rgba(0, 0, 0, .55);
}
.table::after { content: ''; position: absolute; inset: 3.2vh; border-radius: 50%; border: 1px solid rgba(212, 175, 106, .25); }
.table-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 6vh 17%; z-index: 2; }
.table-center .cat { color: var(--gold); font-size: 1.4vh; }
.table-center .q { font-family: var(--serif); font-size: clamp(16px, 3.3vh, 44px); font-weight: 700; line-height: 1.15; margin: .6vh 0 1vh; text-wrap: balance; }
.table-center .hint { font-size: 1.8vh; color: var(--gold-2); margin-top: .5vh; }
.table-center .hint.lock { color: rgba(239, 231, 214, .25); }
.potbox { display: inline-flex; align-items: center; gap: 1vh; margin-top: 1.4vh; padding: .8vh 2vh; border-radius: 99px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.potbox .v { font-family: var(--serif); font-weight: 700; font-size: 3.4vh; color: var(--gold-2); }
.solution { font-family: var(--serif); font-weight: 700; font-size: 6vh; color: var(--gold-2); line-height: 1; text-shadow: 0 0 30px rgba(212, 175, 106, .4); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.seat { position: absolute; transform: translate(-50%, -50%); width: 17vh; text-align: center; z-index: 3; transition: opacity .3s; }
.seat .plate { background: linear-gradient(180deg, #13281f, #0b1913); border: 1px solid var(--line); border-radius: 1.4vh; padding: 1.1vh 1vh .9vh; box-shadow: 0 1.2vh 3vh rgba(0, 0, 0, .55); position: relative; }
.seat .avatar { width: 5.4vh; height: 5.4vh; font-size: 2.6vh; margin: -3.6vh auto .5vh; }
.seat .nm { font-weight: 800; font-size: 1.8vh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat .ch { font-family: var(--serif); font-weight: 700; font-size: 2.4vh; color: var(--gold-2); line-height: 1.1; }
.seat .st { font-size: 1.3vh; color: var(--muted); min-height: 1.8vh; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.seat.turn .plate { border-color: var(--gold); box-shadow: 0 0 0 .3vh var(--gold), 0 0 4vh rgba(212, 175, 106, .5); animation: glow 1.4s ease-in-out infinite alternate; }
@keyframes glow { to { box-shadow: 0 0 0 .3vh var(--gold-2), 0 0 6vh rgba(212, 175, 106, .7); } }
.seat.folded { opacity: .35; }
.seat.out { opacity: .2; filter: grayscale(1); }
.seat.win .plate { border-color: var(--gold-2); background: linear-gradient(180deg, #3b3017, #1b170c); box-shadow: 0 0 6vh rgba(241, 217, 160, .6); }
.table .bet { position: absolute; transform: translate(-50%, -50%); z-index: 2; white-space: nowrap; display: inline-flex; align-items: center; gap: .6vh; font-weight: 800; font-size: 1.6vh; padding: .3vh 1.1vh .3vh .4vh; border-radius: 99px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line); }
.table .bet i { width: 2vh; height: 2vh; border-radius: 50%; background: radial-gradient(circle, #f6e3b2 30%, var(--gold) 31%, var(--gold) 55%, #7a5b26 56%); display: inline-block; }
.seat .badges { position: absolute; top: -1.2vh; right: -1vh; display: flex; gap: .4vh; }
.seat .bdg { width: 2.8vh; height: 2.8vh; border-radius: 50%; display: grid; place-items: center; font-size: 1.1vh; font-weight: 800; background: var(--ivory); color: #111; box-shadow: 0 .3vh 1vh rgba(0, 0, 0, .5); }
.seat .bdg.d { background: #fff; border: .25vh solid #111; }
.seat .bdg.b { background: var(--gold); }
.seat .ans { margin-top: .6vh; font-size: 1.6vh; background: rgba(0, 0, 0, .4); border-radius: .8vh; padding: .4vh .6vh; }
.seat .ans b { font-family: var(--serif); font-size: 2.2vh; color: var(--ivory); }
.seat .won { color: var(--green); font-weight: 800; font-size: 1.9vh; }
.board-foot { display: flex; justify-content: space-between; align-items: center; padding: 1.6vh 2.4vw 2vh; gap: 2vw; }
.board-foot .log { font-size: 2.4vh; }
.lobby-board { height: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; padding: 0 6vw; }
.lobby-board h1 { font-size: 11vh; line-height: .9; background: linear-gradient(180deg, #f6e4b6, #c79f58 60%, #8c6c34); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lobby-board .code-display { font-size: 10vh; }
.lobby-board .qr img { width: 26vh; height: 26vh; }
.lobby-players { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4vh; margin-top: 3vh; }
.lobby-players .lp { display: flex; align-items: center; gap: 1.4vh; padding: 1.2vh 1.6vh; border-radius: 1.2vh; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); font-size: 2.2vh; font-weight: 700; animation: rise .4s ease; }
.lobby-players .lp.empty { opacity: .25; border-style: dashed; font-weight: 500; }
.lobby-players .avatar { width: 4.4vh; height: 4.4vh; font-size: 2.2vh; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 2vw; height: 100%; padding-bottom: 6vh; }
.podium .pl { text-align: center; width: 22vh; }
.podium .col { border-radius: 1.4vh 1.4vh 0 0; background: linear-gradient(180deg, #2a5a43, #0c2219); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--serif); font-size: 7vh; font-weight: 700; color: var(--gold); }
.podium .avatar { width: 9vh; height: 9vh; font-size: 4.5vh; margin: 0 auto 1.4vh; }
.podium .nm { font-size: 3vh; font-weight: 800; }
.podium .ch { font-family: var(--serif); font-size: 3vh; color: var(--gold-2); margin-bottom: 1.4vh; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@media (max-aspect-ratio: 1/1) {
  .table { width: 86vw; height: 46vh; }
  .seat { width: 15vw; }
  .lobby-board { grid-template-columns: 1fr; padding: 4vh 6vw; overflow: auto; }
}

.fs-btn { font-size: 1.4vh; min-height: 0; padding: .6vh 1.2vh; opacity: .55; }
.fs-btn:hover { opacity: 1; }
.btn svg { width: 16px; height: 16px; }

input[type=radio] { accent-color: var(--gold); width: 18px; height: 18px; }
.podium { position: relative; }
.bot-ctl select.input { padding: 10px 12px; }
.bot-ctl .chip-badge { padding: 4px 6px 4px 10px; }
.dot.emo { width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 13px; line-height: 1; box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
.colors.emojis { gap: 8px; }
.colors.emojis .sw { background: rgba(239, 231, 214, .06); display: grid; place-items: center; font-size: 22px; line-height: 1; }
.colors.emojis input:checked + .sw { background: rgba(212, 175, 106, .25); }
.colors button.sw { appearance: none; border: 2px solid transparent; padding: 0; cursor: pointer; border-radius: 50%; width: 38px; height: 38px; box-shadow: 0 0 0 2px rgba(0,0,0,.4); transition: transform .15s; color: inherit; }
.colors button.sw.sel { border-color: var(--ivory); box-shadow: 0 0 0 3px var(--gold); transform: scale(1.1); }
.colors button.sw:disabled { opacity: .18; cursor: not-allowed; }
.avatar { line-height: 1; }
.hints li, .table-center .hint, .hintprev li, .qcard .hintprev li { white-space: pre-line; }
.logo .ver { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); opacity: .7; align-self: flex-start; margin-top: 2px; }

/* ============ v4: Fragetypen ============ */
.opt-letter { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--gold); color: #1d1a12; font-family: var(--sans); font-weight: 800; font-size: .8em; margin-right: .35em; vertical-align: .1em; }
.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mc-opt { display: flex; align-items: center; gap: 6px; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(212, 175, 106, .06); color: var(--ivory); font: inherit; font-weight: 600; line-height: 1.2; transition: opacity .3s, background .2s; }
.mc-grid.pick .mc-opt { cursor: pointer; min-height: 56px; }
.mc-grid.pick .mc-opt.sel { background: rgba(212, 175, 106, .28); border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
.mc-opt.elim { opacity: .3; text-decoration: line-through; }
.mc-opt.right { background: rgba(108, 192, 138, .25); border-color: var(--green); opacity: 1; text-decoration: none; }
.mc-opt.mine { box-shadow: 0 0 0 2px var(--gold-2) inset; }
.qcard .mc-opt { color: #1d1a12; background: rgba(0, 0, 0, .05); border-color: rgba(123, 99, 50, .3); padding: 8px 10px; }
.qcard .mc-opt.right { background: rgba(44, 90, 63, .18); border-color: #2c5a3f; }
.mc-grid.big { gap: 1vh; margin: 1.2vh auto; max-width: 80%; }
.mc-grid.big .mc-opt { font-size: 2.1vh; padding: 1.1vh 1.4vh; border-radius: 1.2vh; }
.sort-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sort-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(212, 175, 106, .06); font-weight: 600; }
.sort-list .pos { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #1d1a12; font-weight: 800; font-size: .85rem; flex: none; }
.sort-list .btn { padding: 6px 10px; min-width: 40px; }
.sort-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.sort-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(212, 175, 106, .08); font-weight: 600; }
.sort-view.big .sort-chip { font-size: 2vh; padding: .7vh 1.6vh; }
.sort-view.big { margin: 1vh 0; }
.sort-sol { margin: 6px auto 0; padding-left: 1.4em; text-align: left; display: inline-block; font-size: .7em; line-height: 1.35; }
.sort-sol li span + span { margin-left: .6em; }
.solution.sort { font-size: 3.6vh; text-shadow: none; }
.answer-reveal.block { display: block; font-size: 1.15rem; margin-top: 4px; }
.answer-reveal .sort-sol { font-size: 1rem; }
.worldmap { width: 100%; height: auto; display: block; border-radius: 12px; touch-action: none; user-select: none; -webkit-user-select: none; }
.worldmap .sea { fill: #0b2a3a; }
.worldmap .land { fill: #c9b98f; stroke: none; }
.worldmap .borders { fill: none; stroke: rgba(29, 26, 18, .45); }
.worldmap .pin text { pointer-events: none; }
.map-wrap { position: relative; }
.map-wrap .worldmap { aspect-ratio: 2.5 / 1; cursor: crosshair; }
.map-ctl { position: absolute; right: 8px; top: 8px; display: grid; gap: 6px; }
.map-ctl .btn { width: 40px; height: 40px; padding: 0; font-size: 1.2rem; background: rgba(5, 12, 9, .8); }
.map-result .worldmap { aspect-ratio: 2.5 / 1; }
.map-result.big { width: min(64vw, 100%); margin: 1vh auto 0; }
.map-result.big .worldmap { max-height: 32vh; }
.ok { color: var(--green); font-weight: 700; }
.bad { color: var(--red); font-weight: 700; }
.ans-cell { text-align: right; max-width: 55%; font-size: .95rem; }
.gm-ans { font-size: .85rem; max-width: 180px; }
.judge { border-color: var(--gold); }
.types-box .cats { margin-top: 0; }
.my-ans .opt-letter, .ans-cell .opt-letter { font-size: .75em; }
div.box { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }

/* Chipstapel am Scoreboard-Tisch – echte Pokerchips von leicht schräg oben */
.seat .stacks { position: absolute; bottom: .6vh; display: flex; align-items: flex-end; gap: .25vh; pointer-events: none; filter: drop-shadow(0 .5vh .5vh rgba(0, 0, 0, .55)); }
.seat .stacks.left { right: calc(100% + .9vh); flex-direction: row-reverse; }
.seat .stacks.right { left: calc(100% + .9vh); }
.seat .stk { display: flex; flex-direction: column-reverse; padding-top: .75vh; position: relative; }
.seat .stk:nth-child(even) { margin-bottom: .5vh; }
.seat .stk .c {
  display: block; position: relative; width: 4vh; height: .72vh;
  border-radius: 0 0 2vh 2vh / 0 0 .38vh .38vh;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(255, 255, 255, .22) 30%, rgba(255, 255, 255, .04) 55%, rgba(0, 0, 0, .55)),
    repeating-linear-gradient(90deg, var(--cc) 0 .6vh, var(--edge) .6vh .92vh);
  box-shadow: inset 0 -.07vh 0 rgba(0, 0, 0, .55);
}
.seat .stk .c:last-child::before {
  content: ''; position: absolute; left: 0; right: 0; top: -.75vh; height: 1.5vh; border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .25) 0 12%, transparent 13%),
    radial-gradient(ellipse at 50% 50%, var(--cc) 0 40%, var(--edge) 41% 44%, var(--cc) 45% 62%, transparent 63%),
    repeating-conic-gradient(from 8deg, var(--cc) 0 26deg, var(--edge) 26deg 38deg);
  box-shadow: inset 0 0 0 .07vh rgba(0, 0, 0, .35), inset 0 .12vh .2vh rgba(255, 255, 255, .25);
}
.c.gold  { --cc: #c99a3c; --edge: #f6ecd2; }
.c.red   { --cc: #a52f28; --edge: #f3ead6; }
.c.green { --cc: #24734a; --edge: #f3ead6; }
.c.blue  { --cc: #23508f; --edge: #f3ead6; }
.c.black { --cc: #1d1f23; --edge: #d8c58f; }
.c.ivory { --cc: #e6dcc4; --edge: #b0362e; }
.seat.out .stacks, .seat.folded .stacks { opacity: .55; }

/* Einsatz hängt direkt unten an der Platz-Karte – überlappt nie die Tischmitte */
.seat .plate .bet { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 55%); z-index: 4; white-space: nowrap; display: inline-flex; align-items: center; gap: .6vh; font-weight: 800; font-size: 1.6vh; padding: .3vh 1.1vh .3vh .4vh; border-radius: 99px; background: #0b1611; border: 1px solid var(--gold-dim); box-shadow: 0 .4vh 1vh rgba(0, 0, 0, .5); }
.seat .plate .bet i { width: 2vh; height: 2vh; border-radius: 50%; background: radial-gradient(circle, #f6e3b2 30%, var(--gold) 31%, var(--gold) 55%, #7a5b26 56%); display: inline-block; }
.seat .plate:has(.bet) { margin-bottom: 1.4vh; }

.seat .stacks.below { left: 50%; right: auto; bottom: auto; top: calc(100% + 1.2vh); transform: translateX(-50%); }
.table-center > div { flex: none; }
.seat .ans { line-height: 1.25; }
.seat .stacks.mini { transform-origin: bottom center; scale: .6; }
.seat .stacks.below.mini { transform-origin: top center; }
.worldmap .truth-label { fill: #fff; font-weight: 800; font-family: var(--sans); paint-order: stroke; stroke: rgba(5, 12, 9, .85); stroke-width: .35px; stroke-linejoin: round; }
.hint-edit-btn { padding: 4px 10px; font-size: .8rem; }
.qcard .hint-edit-btn { color: #4f4632; border-color: rgba(123, 99, 50, .35); }
.qcard .hint-edit textarea { background: #fffaf0; color: #1d1a12; }
.hints li.locked:has(.hint-edit) { opacity: 1; border-style: solid; border-color: var(--gold); }
.hints .hint-edit textarea { font: inherit; }

/* GM: richtige / beste Antworten */
.ptable tr.ans-right td, .ptable tr.ans-best td { background: rgba(108, 192, 138, .14); }
.ptable tr.ans-right td:first-child, .ptable tr.ans-best td:first-child { box-shadow: inset .3rem 0 0 var(--green); }
.ptable tr.ans-best td { background: rgba(212, 175, 106, .14); }
.ptable tr.ans-best td:first-child { box-shadow: inset .3rem 0 0 var(--gold); }
.ptable tr.ans-wrong td { background: rgba(208, 103, 94, .10); }
.ptable tr.ans-wrong td:first-child { box-shadow: inset .3rem 0 0 var(--red); }
.ptable tr.ans-right .gm-ans, .ptable tr.ans-right .gm-ans b { color: var(--green); font-weight: 700; }
.ptable tr.ans-best .gm-ans { color: var(--gold-2); font-weight: 700; }
.ptable .gm-ans .dist { color: var(--muted); font-weight: 600; }
.rank-badge { display: inline-block; min-width: 1.6em; padding: 0 .3em; border-radius: 99px; background: rgba(239, 231, 214, .1); font-size: .75rem; font-weight: 800; text-align: center; }
.ans-best .rank-badge, .ans-right .rank-badge { background: var(--gold); color: #1d1a12; }
.ans-legend { margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ans-legend .lg { width: .8rem; height: .8rem; border-radius: 3px; display: inline-block; margin-left: 6px; }
.ans-legend .lg.right { background: var(--green); } .ans-legend .lg.best { background: var(--gold); } .ans-legend .lg.wrong { background: var(--red); }

/* Spielregeln: sauberes Raster */
.rules .rgroup { border-top: 1px solid var(--line-2); padding-top: 12px; }
.rules .rgroup > .caps { font-size: .72rem; margin-bottom: 10px; }
.rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; align-items: start; }
@media (max-width: 1100px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rfield { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rfield .rl { font-size: .8rem; font-weight: 700; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rfield .rin { display: flex; align-items: center; gap: 8px; }
.rfield .rin .input { width: 100%; min-width: 0; }
.rfield .rin i { font-style: normal; color: var(--muted); font-size: .85rem; font-weight: 600; flex: none; }
.rfield .rh { font-size: .72rem; color: var(--muted); line-height: 1.25; min-height: 1.25em; }
.rfield .rin { position: relative; }
.rfield .rin i { position: absolute; right: 2.6em; top: 50%; transform: translateY(-50%); pointer-events: none; }
.rfield .rin:has(i) .input { padding-right: 5em; }
.types-box .cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.types-box .check { align-items: flex-start; }

/* ============ Aktiv-Runde ============ */
.active-card { background: linear-gradient(170deg, #f6e7c8, #e8cf9c); }
.active-meter { text-align: center; padding: 6px 0; }
.active-meter .am-count { font-family: var(--serif); font-weight: 700; font-size: 4.2rem; line-height: 1; color: var(--gold-2); text-shadow: 0 0 30px rgba(212, 175, 106, .35); }
.active-meter .am-unit { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-top: 4px; }
.active-meter .am-timer { margin-top: 8px; font-weight: 800; font-size: 1.3rem; color: var(--ivory); }
.active-meter.big .am-count { font-size: clamp(3rem, 14vh, 9rem); }
.active-meter.big .am-unit { font-size: clamp(.8rem, 1.8vh, 1.2rem); }
.active-meter.big .am-timer { font-size: clamp(1.1rem, 3.4vh, 2.2rem); }
.count-pad { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.count-pad .btn { min-width: 64px; font-size: 1.2rem; }
.count-pad .count-plus { min-width: 140px; min-height: 72px; font-size: 1.8rem; }
.mult-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mult-row .btn { display: flex; flex-direction: column; gap: 2px; font-size: 1.2rem; padding: 10px 6px; }
.mult-row .btn .tiny { font-weight: 600; opacity: .8; }
.perf-pick .btn .dot { width: 18px; height: 18px; font-size: .7rem; }

/* ============ Bildfragen ============ */
.picscene { width: 100%; height: auto; display: block; border-radius: 12px; touch-action: none; user-select: none; -webkit-user-select: none; max-height: 70vh; }
.map-wrap .picscene { cursor: crosshair; }
.map-result.big .picscene { max-height: 40vh; }

/* Pause im Auto-Modus */
.pause-overlay { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; text-align: center; background: rgba(5, 12, 9, .72); backdrop-filter: blur(4px); }
.pause-overlay .serif { font-size: 9vh; color: var(--gold-2); line-height: 1; }
.pause-overlay .muted { font-size: 2.2vh; margin-top: 1.5vh; }
.pause-card { text-align: center; border-color: var(--gold); display: grid; gap: 10px; }
.bot-ctl .fastbots { padding: 2px 0; }

/* Impressum & Datenschutz */
.legal h2 { font-family: var(--serif); color: var(--gold-2); margin: 0 0 6px; }
.legal h3 { font-size: .95rem; margin: 14px 0 2px; color: var(--gold); }
.legal p { margin: 0; line-height: 1.55; color: var(--ivory); }
.legal a, .legal-links a { color: var(--gold); }
.legal-links a { text-decoration: none; opacity: .8; }

/* ---------- Update-Hinweis ---------- */
#update-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 98;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px;
  background: #14281f; border: 1px solid var(--gold); border-radius: 14px; box-shadow: var(--shadow);
  color: var(--ivory); font-size: .9rem; width: max-content; max-width: calc(100vw - 32px); animation: updIn .4s ease;
}
#update-bar span { flex: 1; min-width: 0; }
#update-bar .btn { white-space: nowrap; flex: none; }
@keyframes updIn { from { opacity: 0; transform: translate(-50%, 20px); } }
