:root {
  --bg: #0b1020;
  --bg2: #141b33;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-b: rgba(255, 255, 255, 0.14);
  --text: #f4f6ff;
  --muted: #a9b1d6;
  --accent: #39e6c8;
  --accent2: #ff4fa3;
  --a: #ff5a5f;
  --b: #2f9bff;
  --c: #ffb627;
  --d: #2ecc71;
  --good: #2ecc71;
  --bad: #ff5a5f;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 600 16px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before, body::after {
  content: ""; position: fixed; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(80px); opacity: .35; pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
body::before { background: radial-gradient(circle, #3b2bff 0%, transparent 65%); top: -30vmax; left: -20vmax; }
body::after { background: radial-gradient(circle, #00c2a8 0%, transparent 65%); bottom: -35vmax; right: -25vmax; animation-delay: -11s; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; }
a { color: var(--accent); }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 12px; background: var(--accent); color: #062019;
  font-weight: 800; letter-spacing: .01em; box-shadow: 0 4px 0 rgba(0,0,0,.35);
  transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.btn:disabled { opacity: .45; cursor: default; filter: none; transform: none; }
.btn.ghost { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--panel-b); }
.btn.pink { background: var(--accent2); color: #fff; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.small { padding: .45em .8em; font-size: .9em; border-radius: 9px; }
.btn.big { font-size: 1.3em; padding: .8em 2em; }

.logo { display: inline-flex; align-items: center; gap: .45em; font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em; }
.logo .mark { width: 1.5em; height: 1.5em; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; transform: rotate(-8deg); }
.logo .mark i { border-radius: 4px; }
.logo .mark i:nth-child(1) { background: var(--a); }
.logo .mark i:nth-child(2) { background: var(--b); }
.logo .mark i:nth-child(3) { background: var(--c); }
.logo .mark i:nth-child(4) { background: var(--d); }
.logo b { color: var(--accent); }

.card { background: var(--panel); border: 1px solid var(--panel-b); border-radius: var(--radius); padding: 1.25rem; backdrop-filter: blur(10px); }
input.field, select.field, textarea.field {
  width: 100%; padding: .85em 1em; border-radius: 12px; border: 2px solid var(--panel-b);
  background: rgba(0,0,0,.25); outline: none; transition: border-color .15s;
}
input.field:focus, select.field:focus, textarea.field:focus { border-color: var(--accent); }
input.field.center { text-align: center; font-size: 1.4rem; font-weight: 800; letter-spacing: .08em; }
.err { color: #ffb3b5; min-height: 1.3em; font-size: .95em; margin: .5em 0 0; }
.muted { color: var(--muted); font-weight: 500; }

/* shapes & answer colours */
.shape { display: inline-block; width: 1.6em; height: 1.6em; flex: none; }
.shape svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.ans-a { background: var(--a); }
.ans-b { background: var(--b); }
.ans-c { background: var(--c); }
.ans-d { background: var(--d); }

/* ----------------------------------------------------------------- top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.2rem; }
.topbar .right { display: flex; gap: .5rem; align-items: center; }
.conn { width: .7em; height: .7em; border-radius: 50%; background: var(--good); display: inline-block; }
.conn.off { background: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ----------------------------------------------------------------- player */
.player { min-height: 100dvh; display: flex; flex-direction: column; }
.player main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; text-align: center; }
.join-box { width: min(380px, 100%); display: grid; gap: .8rem; }
.join-box .logo { justify-content: center; font-size: 2.2rem; margin-bottom: 1rem; }
.status-big { font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 900; margin: .3em 0; }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.player-foot { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; background: rgba(0,0,0,.35); font-weight: 800; }
.player-foot .score { background: var(--panel); padding: .3em .8em; border-radius: 99px; }

.answer-grid { width: 100%; height: 100%; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding: .7rem; }
.answer-grid.two { grid-template-columns: 1fr 1fr; }
.answer-grid.three .abtn:last-child { grid-column: span 2; }
.abtn { border-radius: var(--radius); display: grid; place-items: center; box-shadow: inset 0 -6px 0 rgba(0,0,0,.2); min-height: 120px; transition: transform .08s; }
.abtn:active { transform: scale(.97); }
.abtn .shape { width: 34%; height: auto; max-width: 110px; aspect-ratio: 1; }

.result { width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; }
.result.good { background: linear-gradient(160deg, #1b9e57, #13703f); }
.result.bad { background: linear-gradient(160deg, #c8373b, #8d1f24); }
.result.none { background: linear-gradient(160deg, #3a3f63, #23263f); }
.result .icon { font-size: 4rem; line-height: 1; }
.result .pts { background: rgba(0,0,0,.25); padding: .4em 1.1em; border-radius: 99px; font-size: 1.4rem; font-weight: 900; }
.result .streak { background: var(--c); color: #2a1a00; padding: .3em .9em; border-radius: 99px; font-weight: 900; }

/* ----------------------------------------------------------------- host */
.host { min-height: 100dvh; display: flex; flex-direction: column; }
.host main { flex: 1; display: flex; flex-direction: column; padding: 0 1.2rem 1.2rem; }
.wrap { width: min(1100px, 100%); margin: 0 auto; }

.quiz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.quiz-card { display: flex; flex-direction: column; gap: .6rem; }
.quiz-card h3 { margin: 0; font-size: 1.15rem; }
.quiz-card .actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; }
.tag { display: inline-block; font-size: .75rem; padding: .15em .6em; border-radius: 99px; background: var(--panel-b); color: var(--muted); }

/* editor */
.editor { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; margin-top: 1rem; }
.qnav { display: flex; flex-direction: column; gap: .5rem; max-height: 75vh; overflow: auto; padding-right: .3rem; }
.qnav .qitem { text-align: left; padding: .6rem .8rem; border-radius: 10px; background: var(--panel); border: 2px solid transparent; font-weight: 600; font-size: .9rem; display: flex; gap: .5rem; }
.qnav .qitem.active { border-color: var(--accent); }
.qnav .qitem span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qedit { display: grid; gap: .9rem; }
.qedit .row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: end; }
.qedit .row > label { flex: 1; min-width: 140px; display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.ans-edit { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.ans-edit .ae { display: flex; align-items: center; gap: .6rem; padding: .6rem; border-radius: 12px; }
.ans-edit .ae input[type=text] { flex: 1; background: rgba(0,0,0,.18); border: 0; border-radius: 8px; padding: .6em .7em; outline: none; color: #fff; font-weight: 700; }
.ans-edit .ae input[type=text]::placeholder { color: rgba(255,255,255,.7); }
.ans-edit .ae .chk { width: 2em; height: 2em; border-radius: 50%; border: 3px solid #fff; background: transparent; flex: none; display: grid; place-items: center; font-weight: 900; color: transparent; }
.ans-edit .ae .chk.on { background: #fff; color: #1b9e57; }
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* game screens */
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; }
.lobby-head { display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.pinbox { background: #fff; color: var(--bg); border-radius: 18px; padding: .8rem 1.6rem; text-align: left; }
.pinbox small { display: block; font-weight: 700; color: #4a5070; }
.pinbox .pin { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 900; letter-spacing: .06em; line-height: 1; }
.qr { width: 150px; height: 150px; background: #fff; border-radius: 14px; padding: 6px; }
.players { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; max-width: 1000px; }
.chip { background: var(--panel); border: 1px solid var(--panel-b); padding: .45em .9em; border-radius: 99px; font-weight: 800; animation: pop .25s ease-out; }
.chip:hover { background: var(--bad); text-decoration: line-through; cursor: pointer; }
.chip.off { opacity: .45; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.count-badge { font-size: 1.2rem; background: var(--panel); padding: .4em 1em; border-radius: 99px; }

.q-title { font-size: clamp(1.4rem, 3.4vw, 2.6rem); font-weight: 900; background: #fff; color: var(--bg); padding: .6em 1em; border-radius: 16px; max-width: 1100px; width: 100%; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.q-mid { display: grid; grid-template-columns: 120px 1fr 120px; align-items: center; width: 100%; max-width: 1100px; gap: 1rem; flex: 1; }
.q-img { max-height: 36vh; max-width: 100%; border-radius: 14px; justify-self: center; }
.q-img-ph { justify-self: center; }
.timer { --p: 1; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 900;
  background: conic-gradient(var(--accent2) calc(var(--p) * 360deg), rgba(255,255,255,.12) 0); position: relative; }
.timer::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg2); z-index: 0; }
.timer > * , .timer { z-index: 1; }
.timer span { position: relative; }
.answered-box { font-size: 2.2rem; font-weight: 900; }
.answered-box small { display: block; font-size: .9rem; color: var(--muted); }
.host-answers { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; width: 100%; max-width: 1100px; }
.host-answers .ha { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: 14px; font-size: clamp(1rem, 2vw, 1.5rem); text-align: left; box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); transition: opacity .3s; }
.host-answers .ha.dim { opacity: .3; }
.host-answers .ha .tick { margin-left: auto; font-size: 1.6em; }

.dist { display: flex; align-items: flex-end; justify-content: center; gap: 1.2rem; height: 32vh; width: 100%; max-width: 700px; }
.dist .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .4rem; }
.dist .bar { width: 100%; border-radius: 10px 10px 0 0; min-height: 6px; transition: height .7s cubic-bezier(.2,.9,.3,1.2); display: flex; align-items: flex-start; justify-content: center; padding-top: .3rem; }
.dist .col.dim .bar { opacity: .3; }
.dist .lbl { display: flex; align-items: center; gap: .3rem; font-size: 1.4rem; font-weight: 900; }

.getready .num { font-size: 1.1rem; color: var(--muted); }
.getready .big { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 900; max-width: 1000px; }
.bar-progress { width: min(600px, 80vw); height: 10px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.bar-progress i { display: block; height: 100%; background: var(--accent); width: 0; }
.bar-progress i.run { animation: fill linear forwards; }
@keyframes fill { to { width: 100%; } }

.board { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: .6rem; }
.board .rowp { display: flex; align-items: center; gap: 1rem; background: var(--panel); border: 1px solid var(--panel-b); padding: .8rem 1.2rem; border-radius: 14px; font-size: 1.3rem; animation: slidein .45s backwards; }
.board .rowp .rk { width: 2em; font-weight: 900; color: var(--muted); }
.board .rowp .nm { flex: 1; text-align: left; font-weight: 800; }
.board .rowp .sc { font-weight: 900; }
.board .rowp .mv { font-size: .8em; width: 2.2em; }
.board .rowp .mv.up { color: var(--good); }
.board .rowp .mv.down { color: var(--bad); }
.board .rowp .st { font-size: .75em; background: var(--c); color: #2a1a00; padding: .1em .6em; border-radius: 99px; }
@keyframes slidein { from { transform: translateX(-40px); opacity: 0; } }

.podium { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; height: 55vh; width: 100%; max-width: 900px; }
.podium .pcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .5rem; }
.podium .pname { font-size: clamp(1.1rem, 2.6vw, 2rem); font-weight: 900; opacity: 0; animation: fadeup .6s forwards; word-break: break-word; }
.podium .pblock { width: 100%; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 1rem; font-size: 3rem; font-weight: 900; transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.9,.3,1.1) backwards; }
.podium .pblock small { font-size: 1rem; font-weight: 800; opacity: .85; }
.podium .p1 .pblock { height: 75%; background: linear-gradient(#ffd04a, #e2a400); color: #3a2800; }
.podium .p2 .pblock { height: 55%; background: linear-gradient(#e6ecff, #a9b3d6); color: #1d2340; }
.podium .p3 .pblock { height: 40%; background: linear-gradient(#ffb07a, #c96a2c); color: #3a1800; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes fadeup { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.host-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 1.2rem; background: rgba(0,0,0,.3); font-weight: 800; }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 10; padding: 1rem; }
.modal .card { width: min(520px, 100%); background: var(--bg2); }

@media (max-width: 760px) {
  .editor { grid-template-columns: 1fr; }
  .qnav { flex-direction: row; overflow-x: auto; max-height: none; }
  .qnav .qitem { min-width: 140px; }
  .ans-edit, .host-answers { grid-template-columns: 1fr; }
  .q-mid { grid-template-columns: 80px 1fr 80px; }
  .timer { width: 76px; height: 76px; font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ================================================================= web app (v2) */
.nav { display: flex; gap: .3rem; margin-right: auto; margin-left: 1rem; }
.navlink { color: var(--muted); text-decoration: none; padding: .45em .8em; border-radius: 9px; font-weight: 800; }
.navlink:hover { color: var(--text); background: var(--panel); }
.navlink.on { color: var(--text); background: var(--panel-b); }
a.btn { text-decoration: none; }
.avatar { gap: .45em; }
.av { width: 1.6em; height: 1.6em; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--accent2), #7b61ff); color: #fff; font-weight: 900; font-size: .85em; }
.av.big { width: 84px; height: 84px; font-size: 2.4rem; flex: none; }
.flash { background: rgba(57, 230, 200, .12); border: 1px solid rgba(57, 230, 200, .4); padding: .7em 1em; border-radius: 12px; }
.grow { flex: 1; }
.center { text-align: center; margin: 1.5rem 0; }
.toolbar.center { justify-content: center; }
.toolbar.sticky { position: sticky; top: 0; z-index: 3; background: rgba(11, 16, 32, .85); backdrop-filter: blur(10px); padding: .6rem 0; }
hr { border: 0; border-top: 1px solid var(--panel-b); margin: 1rem 0; width: 100%; }

.hero { text-align: center; padding: 1.5rem 0 1rem; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin: 0 0 .3rem; letter-spacing: -.02em; }
.searchbar { display: flex; gap: .5rem; max-width: 640px; margin: 1rem auto 0; }
.pill { background: var(--panel); color: var(--muted); padding: .45em 1em; border-radius: 99px; font-weight: 800; border: 1px solid var(--panel-b); }
.pill.on { background: var(--text); color: var(--bg); }

.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.qcard { background: var(--panel); border: 1px solid var(--panel-b); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.qcard:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.3); }
.qcard > a { position: relative; display: block; }
.qcard a { color: inherit; text-decoration: none; }
.qcard h3 a:hover, .meta a:hover { text-decoration: underline; }
.cover { aspect-ratio: 16 / 9; width: 100%; background: var(--bg2); overflow: hidden; display: grid; place-items: center; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.gen { background: linear-gradient(135deg, hsl(var(--h1, 260) 75% 55%), hsl(var(--h2, 180) 70% 45%)); }
.cover.gen span { font-size: 3.5rem; font-weight: 900; color: rgba(255,255,255,.9); text-shadow: 0 4px 0 rgba(0,0,0,.2); }
.cover.big { border-radius: var(--radius); max-width: 460px; }
.cover.big.gen span { font-size: 6rem; }
.qcount { position: absolute; right: .5rem; bottom: .5rem; background: rgba(0,0,0,.65); padding: .2em .6em; border-radius: 8px; font-size: .8rem; }
.qbody { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.qbody h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; }
.qbody .actions { display: flex; gap: .4rem; margin-top: auto; padding-top: .3rem; }
.meta { color: var(--muted); font-weight: 600; font-size: .9rem; }
.meta a { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; }
a.tag { text-decoration: none; }
.tag.pub { background: rgba(46, 204, 113, .2); color: #8ff0b8; }

.detail { display: grid; grid-template-columns: minmax(240px, 460px) 1fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.detail h1 { margin: 0 0 .4rem; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.1; }
.detail-info { display: flex; flex-direction: column; gap: .8rem; }
.desc { white-space: pre-wrap; font-weight: 500; margin: 0; }
.btn.liked { color: var(--accent2); box-shadow: inset 0 0 0 1px var(--accent2); }
.qpreview { list-style: none; padding: 0; display: grid; gap: .6rem; counter-reset: q; }
.qpreview li { display: flex; gap: 1rem; align-items: center; background: var(--panel); border-radius: 12px; padding: .6rem; counter-increment: q; }
.qpreview li img, .qpreview li .ph { width: 96px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg2); }
.qpreview li .ph::after { content: counter(q); display: grid; place-items: center; height: 100%; font-size: 1.6rem; font-weight: 900; color: var(--muted); }

.profile { display: flex; gap: 1.2rem; align-items: center; margin: 1rem 0; }
.profile h1 { margin: 0; }
.auth { width: min(440px, 100%); margin: 2rem auto; display: grid; gap: .8rem; }
.auth h1 { margin: 0; }
.auth h3 { margin: .6rem 0 0; }
.empty { text-align: center; grid-column: 1 / -1; display: grid; gap: .6rem; justify-items: center; padding: 2rem; }

/* editor v2 */
.meta-edit { display: grid; grid-template-columns: 280px 1fr; gap: 1rem; margin-top: .5rem; }
.imgpick { display: grid; gap: .5rem; border: 2px dashed transparent; border-radius: 14px; padding: 4px; }
.imgpick.drop { border-color: var(--accent); }
.imgpick img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; background: rgba(0,0,0,.25); }
.imgpick .ph { height: 120px; border-radius: 10px; background: rgba(0,0,0,.2); display: grid; place-items: center; color: var(--muted); border: 2px dashed var(--panel-b); }
.qedit .imgpick { max-width: 420px; }
.addq { display: grid; gap: .35rem; margin-top: .4rem; }
.qnav .qitem .has-img { margin-left: auto; font-style: normal; }
.ans-edit .ae .chk.sq { border-radius: 8px; }
.qtext { font-size: 1.15rem; font-weight: 800; }

/* estimation / slider */
.slider-scale { display: flex; justify-content: space-between; width: 100%; font-weight: 800; gap: 1rem; }
.est-wrap { width: 100%; max-width: 1000px; display: grid; gap: .4rem; }
.est-track { position: relative; height: 140px; width: 100%; background: rgba(255,255,255,.06); border-radius: 14px; border-bottom: 4px solid rgba(255,255,255,.3); }
.est-track.small { height: 46px; }
.est-band { position: absolute; top: 0; bottom: 0; background: rgba(46, 204, 113, .28); border-left: 2px solid var(--good); border-right: 2px solid var(--good); }
.est-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px rgba(0,0,0,.35); animation: pop .4s backwards; }
.est-dot.in { background: var(--good); }
.est-answer { position: absolute; top: -10px; bottom: -4px; width: 4px; margin-left: -2px; background: var(--c); }
.est-answer span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--c); color: #2a1a00; padding: .1em .6em; border-radius: 8px; white-space: nowrap; font-weight: 900; }
.est-track.small .est-answer span { font-size: .8rem; }
.est-big { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 900; color: var(--c); line-height: 1; }
.slider-prev { display: grid; gap: .3rem; padding-top: 1.4rem; }
.board.narrow { max-width: 520px; }
.board.narrow .rowp { font-size: 1.1rem; }
.hint { font-weight: 800; }

.est-player { width: min(520px, 100%); display: grid; gap: 1rem; padding: 1rem; }
.est-value { font-size: clamp(2.6rem, 12vw, 4rem); font-weight: 900; color: var(--c); }
.est-range { width: 100%; height: 44px; accent-color: var(--c); }
.multi-wrap { width: 100%; flex: 1; display: flex; flex-direction: column; }
.multi-wrap .hint { margin: .7rem 0 0; }
.multi-wrap .submit { margin: 0 .7rem .7rem; }
.abtn { position: relative; }
.abtn .pick-mark { position: absolute; top: .6rem; right: .6rem; width: 2.2rem; height: 2.2rem; border-radius: 8px; border: 3px solid #fff; display: grid; place-items: center; color: transparent; font-weight: 900; font-size: 1.3rem; }
.abtn.picked { box-shadow: inset 0 0 0 6px #fff, inset 0 -6px 0 rgba(0,0,0,.2); }
.abtn.picked .pick-mark { background: #fff; color: #111; }
.result.part { background: linear-gradient(160deg, #d08a12, #8f5a05); }

@media (max-width: 760px) {
  .nav { display: none; }
  .topbar { flex-wrap: wrap; }
  .detail, .meta-edit { grid-template-columns: 1fr; }
  .avatar span:last-child { display: none; }
}

/* ----------------------------------------------------------------- dropdowns */
select.field {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  cursor: pointer; font-weight: 700;
  padding-right: 2.6em;
  background-color: rgba(255, 255, 255, .06);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2339e6c8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"),
    linear-gradient(to right, transparent calc(100% - 2.3em), rgba(255, 255, 255, .06) calc(100% - 2.3em));
  background-repeat: no-repeat, no-repeat;
  background-position: right .8em center, 0 0;
  background-size: 1em, 100% 100%;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
select.field:hover { border-color: rgba(255, 255, 255, .3); background-color: rgba(255, 255, 255, .1); }
select.field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(57, 230, 200, .18); }
select.field option { background: var(--bg2); color: var(--text); font-weight: 600; }
select.field option:checked { background: #23305a; }
select.field::-ms-expand { display: none; }
.qedit .row > label { font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: .72rem; }
.qedit .row > label > .field { text-transform: none; letter-spacing: 0; font-size: 1rem; }

/* ================================================================= Buzzer-Board */
.btn.good { background: var(--good); color: #062014; }
.chip.good { background: rgba(46, 204, 113, .25); border-color: var(--good); }
.chip.bad { background: rgba(255, 90, 95, .25); border-color: var(--bad); }
.danger-text { color: #ff9a9d; }
.card.center { text-align: center; display: grid; gap: .8rem; justify-items: center; }
.qr.big { width: 240px; height: 240px; }
.card.wide { width: min(640px, 100%); }
.modal .card.qedit { max-height: 92vh; overflow: auto; }

.av.img { padding: 0; overflow: hidden; background: var(--bg2); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.xs { width: 1.3em; height: 1.3em; font-size: .7em; vertical-align: -.25em; display: inline-grid; }
.avatar-edit .imgpick { max-width: 220px; }
.avatar-edit .imgpick img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; }
.avatar-edit .imgpick .ph { width: 160px; height: 160px; border-radius: 50%; }
.qmode { position: absolute; left: .5rem; top: .5rem; background: rgba(11, 16, 32, .8); color: var(--c); padding: .2em .6em; border-radius: 8px; font-size: .78rem; font-weight: 800; }

.mode-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.mode-card { text-decoration: none; color: inherit; display: grid; gap: .4rem; transition: transform .15s, border-color .15s; }
.mode-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.mode-card h2 { margin: 0; }
.mode-ico { font-size: 3rem; height: 4rem; display: flex; align-items: center; }
.mode-ico .mark { width: 3rem; height: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(-8deg); }
.mode-ico .mark i { border-radius: 6px; }
.mode-ico .mark i:nth-child(1) { background: var(--a); } .mode-ico .mark i:nth-child(2) { background: var(--b); }
.mode-ico .mark i:nth-child(3) { background: var(--c); } .mode-ico .mark i:nth-child(4) { background: var(--d); }

.stage.bb { justify-content: flex-start; gap: .9rem; width: 100%; }
.bb-grid { --cols: 5; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: .5rem; width: 100%; max-width: 1400px; }
.bb-cat { min-height: 4.2rem; display: grid; place-items: center; padding: .5rem; border-radius: 12px; text-align: center; font-weight: 900; font-size: clamp(.8rem, 1.6vw, 1.3rem); line-height: 1.15;
  background: linear-gradient(135deg, #ff4fa3, #7b61ff); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25); word-break: break-word; }
.bb-grid.intro .bb-cat { animation: flipin .6s backwards; }
@keyframes flipin { from { transform: rotateX(90deg); opacity: 0; } }
.bb-tile { min-height: clamp(3.4rem, 9vh, 6.5rem); display: grid; place-items: center; border-radius: 12px; font-weight: 900; font-size: clamp(1.2rem, 3vw, 2.6rem); color: var(--accent);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); text-shadow: 0 2px 0 rgba(0,0,0,.35); transition: transform .12s, background .15s; }
button.bb-tile:hover { transform: scale(1.04); background: rgba(57, 230, 200, .16); }
.bb-tile.used { background: rgba(255,255,255,.02); border-color: transparent; }
.bb-tile.empty { visibility: hidden; }
.bb-tile.dd-hint { box-shadow: inset 0 0 0 3px var(--c); }
.bb-turn { font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-weight: 900; }
.bb-round { font-size: clamp(2.4rem, 7vw, 4.5rem); margin: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.bb-scores { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; width: 100%; max-width: 1400px; margin-top: auto; }
.bb-score { min-width: 120px; padding: .45rem .9rem; border-radius: 12px; background: var(--panel); border: 2px solid var(--panel-b); text-align: center; cursor: default; }
.bb-scores .bb-score { cursor: pointer; }
.bb-score .nm { font-weight: 800; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.bb-score .nm small { color: var(--accent); }
.bb-score .sc { font-size: 1.4rem; font-weight: 900; }
.bb-score .sc.neg { color: var(--bad); }
.bb-score.ctrl { border-color: var(--accent); }
.bb-score.buzzed { border-color: var(--c); background: rgba(255, 182, 39, .2); transform: scale(1.08); }
.bb-score.locked { opacity: .4; }
.bb-score.off { opacity: .55; border-style: dashed; }

.bb-clue { width: 100%; max-width: 1200px; background: linear-gradient(160deg, #1b2450, #10162e); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; padding: 1.2rem 1.6rem 1.4rem; display: grid; gap: .9rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); animation: zoomin .35s ease-out; }
@keyframes zoomin { from { transform: scale(.6); opacity: 0; } }
.bb-clue.dd { border-color: var(--c); box-shadow: 0 0 0 3px rgba(255,182,39,.4), 0 20px 60px rgba(0,0,0,.35); }
.bb-clue.final { border-color: var(--accent2); }
.bb-clue.small .bb-text { font-size: clamp(1rem, 2vw, 1.5rem); }
.bb-clue-head { display: flex; justify-content: space-between; gap: 1rem; font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(.9rem, 1.6vw, 1.2rem); }
.bb-text { font-size: clamp(1.4rem, 3.6vw, 3rem); font-weight: 900; line-height: 1.2; }
.bb-img { max-height: 34vh; max-width: 100%; border-radius: 14px; justify-self: center; }
.bb-status { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; font-weight: 800; font-size: 1.2rem; color: var(--muted); }
.bb-status.open { color: var(--good); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; animation: pulse .7s infinite; }
.bb-status.who { color: var(--text); font-size: clamp(1.3rem, 3vw, 2rem); display: block; }
.bb-who { color: var(--c); font-weight: 900; }
.bb-typed { font-size: .8em; color: var(--muted); margin-top: .3rem; }
.bb-timer { height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: .6rem; }
.bb-timer i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width linear; }
.bb-judge { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.bb-judge .btn { min-width: 180px; }
.bb-answer { display: inline-grid; gap: .2rem; justify-items: center; background: rgba(255, 182, 39, .12); border: 2px dashed var(--c); padding: .6rem 1.2rem; border-radius: 14px; font-size: clamp(1.1rem, 2.4vw, 1.8rem); font-weight: 900; }
.bb-answer small, .bb-solution small { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bb-solution { display: grid; gap: .2rem; justify-items: center; font-size: clamp(1.4rem, 3.4vw, 2.6rem); font-weight: 900; color: var(--c); }
.bb-deltas { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.bb-dd-splash { font-size: clamp(3rem, 10vw, 7rem); font-weight: 900; color: var(--c); text-shadow: 0 6px 0 rgba(0,0,0,.3); animation: ddspin 1s cubic-bezier(.2,.9,.3,1.2); margin-top: 8vh; }
@keyframes ddspin { from { transform: scale(0) rotate(-200deg); opacity: 0; } }
.bb-final-cat { font-size: clamp(1.8rem, 5vw, 3.4rem); font-weight: 900; padding: .5em 1em; border-radius: 18px; background: linear-gradient(135deg, #ff4fa3, #7b61ff); }
.bb-final-list { width: 100%; max-width: 1000px; display: grid; gap: .5rem; }
.bb-final-row { display: grid; grid-template-columns: 1fr 2fr auto auto; gap: 1rem; align-items: center; background: var(--panel); border: 2px solid var(--panel-b); border-radius: 12px; padding: .6rem 1rem; text-align: left; }
.bb-final-row.good { border-color: var(--good); }
.bb-final-row.bad { border-color: var(--bad); }
.bb-final-row .nm { font-weight: 900; }
.bb-final-row .wg { font-weight: 900; color: var(--c); }

/* moderator phone view: compact */
body.mod-view .bb-text { font-size: 1.2rem; }
body.mod-view .bb-grid .bb-tile { min-height: 2.6rem; font-size: 1rem; }
body.mod-view .bb-cat { min-height: 2.6rem; font-size: .7rem; }
body.mod-view .bb-scores { margin-top: 0; }
body.mod-view .bb-score { min-width: 90px; }
body.mod-view .bb-judge .btn { min-width: 0; flex: 1; }
.host-bar.mod { background: rgba(255, 182, 39, .15); }

/* player: buzzer & picking */
.bb-buzz { display: grid; gap: 1rem; justify-items: center; }
.buzzer { width: min(70vw, 300px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6b7192, #3a3f63 60%, #23263f); box-shadow: 0 12px 0 #15182b, 0 20px 40px rgba(0,0,0,.4); font-size: 2.4rem; font-weight: 900; color: rgba(255,255,255,.6); transition: transform .06s, box-shadow .06s; touch-action: manipulation; user-select: none; }
.buzzer.live { background: radial-gradient(circle at 35% 30%, #ff8a8d, #ff3b41 55%, #b0151b); color: #fff; box-shadow: 0 12px 0 #7a0c10, 0 0 50px rgba(255, 59, 65, .6); animation: pulse .9s infinite; }
.buzzer.pressed, .buzzer:active { transform: translateY(10px); box-shadow: 0 2px 0 #15182b; }
.bb-pick { width: 100%; display: grid; gap: .8rem; }
.bb-grid.mini { gap: .3rem; }
.bb-grid.mini .bb-cat { min-height: 2.8rem; font-size: .68rem; padding: .25rem; border-radius: 8px; }
.bb-grid.mini .bb-tile { min-height: 3rem; font-size: 1rem; border-radius: 8px; }

/* board editor & preview */
.bb-grid.edit, .bb-grid.preview { margin-top: .5rem; }
.bb-cat.edit { position: relative; padding: .3rem; }
.bb-cat.edit input { width: 100%; background: rgba(0,0,0,.2); border: 0; border-radius: 8px; padding: .5em; color: #fff; font-weight: 900; text-align: center; outline: none; }
.bb-cat.edit .x { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--bad); color: #fff; font-size: .7rem; display: none; }
.bb-cat.edit:hover .x { display: grid; place-items: center; }
.bb-tile.edit { font-size: 1rem; display: flex; flex-direction: column; gap: .1rem; padding: .4rem; position: relative; min-height: 5rem; }
.bb-tile.edit b { font-size: 1.3rem; }
.bb-tile.edit small { color: var(--muted); font-size: .7rem; font-weight: 600; text-shadow: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bb-tile.edit.todo { border-style: dashed; color: var(--muted); }
.bb-tile.edit.done { border-color: rgba(57, 230, 200, .4); }
.bb-tile.edit em { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: .65rem; background: var(--c); color: #2a1a00; padding: 0 .35em; border-radius: 4px; text-shadow: none; }
.bb-tile.edit em.img { right: auto; left: 6px; background: transparent; }
.bb-grid.preview .bb-tile { min-height: 3rem; font-size: 1.1rem; }

@media (max-width: 760px) {
  .bb-grid:not(.mini) { gap: .25rem; }
  .bb-cat { font-size: .65rem; min-height: 3rem; padding: .2rem; border-radius: 8px; }
  .bb-tile { font-size: 1rem; border-radius: 8px; }
  .bb-final-row { grid-template-columns: 1fr auto; }
  .bb-final-row .ans { grid-column: 1 / -1; }
}

/* ================================================================= guest avatars */
.pav { display: inline-block; width: 2.6em; height: 2.6em; flex: none; vertical-align: middle; }
.pav svg { width: 100%; height: 100%; display: block; }
.pav.sm { width: 1.8em; height: 1.8em; }
.pav.xs { width: 1.4em; height: 1.4em; margin-right: .3em; vertical-align: -.35em; }
.pav.lobby-me { width: 140px; height: 140px; margin: 0 auto; display: block; }
.pav.podium-av { width: clamp(56px, 8vw, 96px); height: clamp(56px, 8vw, 96px); display: block; margin: 0 auto .3rem; }
.chip.pchip { display: inline-flex; align-items: center; gap: .45em; padding: .3em .9em .3em .35em; }
.board .rowp .pav { margin-right: -.3rem; }
.foot-me { display: inline-flex; align-items: center; gap: .45em; }
.pav-editor { display: grid; gap: .6rem; justify-items: center; }
.pav-big { width: 132px; height: 132px; }
.pav-big svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.pav-rows { display: grid; gap: .55rem; width: 100%; }
.pav-row { display: grid; gap: .3rem; justify-items: center; }
.pav-row small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.pav-sw { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.pav-sw .sw { width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.pav-sw .sw.on { border-color: #fff; transform: scale(1.12); }
.pav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.pav-step { display: flex; align-items: center; justify-content: space-between; gap: .2rem; background: rgba(0,0,0,.2); border-radius: 10px; padding: .15rem; font-size: .8rem; font-weight: 800; }
.pav-step .btn { padding: .3em .7em; box-shadow: none; }
.pav-step:last-child { grid-column: 1 / -1; }

label.mode-card { cursor: pointer; }

/* ================================================================= party games */
.game-card { cursor: default; }
.game-card:hover { transform: none; }
.game-card .tag { justify-self: start; }
.pt-big-ico { font-size: clamp(3rem, 8vw, 5rem); line-height: 1; }
.timer.small { width: 84px; height: 84px; font-size: 1.8rem; }
.num.muted { font-weight: 800; }
.gain { color: var(--good); font-weight: 900; font-size: .85em; }

/* drawing */
canvas.drawing { width: 100%; max-width: 760px; aspect-ratio: 4 / 3; height: auto; background: #fff; border-radius: 14px; display: block; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.drawpad { display: grid; gap: .5rem; width: 100%; }
.drawpad canvas.pad { cursor: crosshair; }
.dp-colors { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }
.dp-colors .sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.dp-colors .sw.on { border-color: var(--accent); transform: scale(1.15); }
.dp-tools { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; align-items: center; }
.dp-sizes { display: flex; gap: .3rem; }
.dp-sizes .sz { width: 38px; height: 38px; border-radius: 10px; background: var(--panel); display: grid; place-items: center; border: 2px solid transparent; }
.dp-sizes .sz.on { border-color: var(--accent); }
.dp-sizes .sz i { display: block; border-radius: 50%; background: var(--text); }

/* phone */
.pt-wrap { width: min(520px, 100%); display: grid; gap: .8rem; padding: .5rem; }
.pt-wrap.wide { width: min(760px, 100%); }
.pt-head { display: grid; gap: .3rem; font-weight: 800; color: var(--muted); }
.pt-head .bb-timer { margin: 0; }
.pt-form { display: grid; gap: .6rem; }
.pt-prompt { background: #fff; color: var(--bg); padding: .7em 1em; border-radius: 14px; font-weight: 900; font-size: 1.2rem; }
.pt-prompt small { display: block; font-size: .75rem; color: #4a5070; }
.pt-prompt.big { font-size: clamp(1.2rem, 5vw, 1.6rem); }
.pt-fact { font-size: clamp(1.2rem, 5vw, 1.6rem); font-weight: 900; line-height: 1.3; background: var(--panel); border: 1px solid var(--panel-b); padding: .8em 1em; border-radius: 16px; }
.pt-fact.big { font-size: clamp(1.5rem, 3.6vw, 2.8rem); max-width: 1100px; }
.pt-fact .blank { display: inline-block; min-width: 4ch; padding: 0 .3em; border-bottom: 4px solid var(--accent2); color: var(--accent2); }
.pt-fact .blank.filled { color: var(--good); border-color: var(--good); animation: pop .5s; }
.pt-options, .pt-opt-grid { display: grid; gap: .5rem; }
.pt-opt-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); width: 100%; max-width: 1100px; }
.pt-opt { padding: .9em 1em; border-radius: 14px; background: var(--panel); border: 2px solid var(--panel-b); font-weight: 800; font-size: 1.1rem; text-align: center; }
button.pt-opt:hover { border-color: var(--accent); }
.pt-opt.mine { opacity: .45; }
.pt-opt small { display: block; font-size: .7rem; color: var(--muted); }
.pt-duel { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; width: 100%; }
.pt-duel.big { max-width: 1200px; gap: 1.2rem; }
.pt-opt.duel { min-height: 140px; display: grid; place-items: center; font-size: clamp(1.1rem, 2.6vw, 2rem); line-height: 1.25; }
.pt-opt.duel.a { background: linear-gradient(160deg, rgba(47,155,255,.35), rgba(47,155,255,.12)); border-color: var(--b); }
.pt-opt.duel.b { background: linear-gradient(160deg, rgba(255,79,163,.35), rgba(255,79,163,.12)); border-color: var(--accent2); }
.pt-opt.duel.result { place-items: stretch; gap: .5rem; text-align: left; }
.pt-opt.duel.win { box-shadow: 0 0 0 4px var(--c), 0 10px 40px rgba(255,182,39,.3); }
.pt-author { display: flex; align-items: center; gap: .5em; font-size: .7em; color: var(--muted); }
.pt-meter { height: 12px; border-radius: 99px; background: rgba(0,0,0,.3); overflow: hidden; }
.pt-meter i { display: block; height: 100%; width: 0; background: var(--c); transition: width 1s cubic-bezier(.2,.9,.3,1); }
.pt-score { font-size: .6em; font-weight: 900; }
.pt-score .sweep { color: var(--c); }
.pt-voters { display: flex; flex-wrap: wrap; gap: .3rem; font-size: .9rem; }
.pt-voters .pv { display: inline-flex; align-items: center; background: rgba(0,0,0,.25); padding: .15em .5em .15em .2em; border-radius: 99px; }

/* bluff reveal */
.pt-reveals { display: grid; gap: .7rem; width: 100%; max-width: 900px; }
.pt-reveal { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: center; background: var(--panel); border: 2px solid var(--panel-b); border-radius: 16px; padding: .8rem 1.2rem; text-align: left; animation: slidein .5s backwards; }
.pt-reveal-text { font-size: clamp(1.2rem, 2.6vw, 1.9rem); font-weight: 900; }
.pt-reveal .pt-voters { grid-column: 1 / -1; }
.pt-verdict { grid-row: 1; grid-column: 2; font-weight: 900; animation: pop .4s backwards; }
.pt-reveal.lie .pt-verdict { color: var(--bad); }
.pt-reveal.truth { border-color: var(--good); background: rgba(46,204,113,.15); }
.pt-reveal.truth .pt-verdict { color: var(--good); }

/* chain reveal */
.ch-stage { justify-content: flex-start; }
.ch-head { display: flex; align-items: center; gap: .6rem; font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-weight: 900; }
.ch-list { display: grid; gap: 1rem; width: 100%; max-width: 820px; padding-bottom: 2rem; }
.ch-entry { display: grid; gap: .4rem; justify-items: start; animation: slidein .5s; opacity: .7; }
.ch-entry.latest { opacity: 1; }
.ch-entry:nth-child(even) { justify-items: end; }
.ch-who { display: flex; align-items: center; font-weight: 800; color: var(--muted); }
.ch-likes { color: var(--accent2); }
.ch-text { background: #fff; color: var(--bg); font-weight: 900; font-size: clamp(1.2rem, 2.8vw, 2rem); padding: .6em 1em; border-radius: 18px; max-width: 100%; }
.ch-entry:nth-child(odd) .ch-text { border-bottom-left-radius: 4px; }
.ch-entry:nth-child(even) .ch-text { border-bottom-right-radius: 4px; }
canvas.ch-draw { max-width: 560px; }
.ch-entry.latest canvas.ch-draw { max-width: 760px; }

@media (max-width: 760px) {
  .pt-duel { grid-template-columns: 1fr; }
  .pt-reveal { grid-template-columns: 1fr; }
  .pt-verdict { grid-row: auto; grid-column: auto; }
}

/* ================================================================= Lückenlos */
.lk-prompt { background: #151a2e; color: #fff; border: 3px solid #fff; border-radius: 18px; padding: 1em 1.2em; font-weight: 900; font-size: 1.25rem; line-height: 1.35; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.lk-prompt.big { font-size: clamp(1.4rem, 3.4vw, 2.8rem); max-width: 1100px; }
.lk-prompt .blank { display: inline-block; min-width: 3ch; border-bottom: 4px solid var(--accent); color: var(--accent); padding: 0 .2em; }
.lk-prompt .blank.filled { border: 0; background: #fff; color: #151a2e; border-radius: 8px; padding: 0 .35em; animation: pop .5s; }
.lk-hand { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.lk-card { position: relative; background: #fff; color: #151a2e; border-radius: 12px; padding: .8em .7em 1.6em; font-weight: 800; font-size: 1rem; text-align: left; min-height: 110px; box-shadow: 0 4px 0 rgba(0,0,0,.25); transition: transform .1s; }
.lk-card::after { content: 'Lückenlos'; position: absolute; left: .7em; bottom: .5em; font-size: .6rem; font-weight: 900; color: #9aa0bb; letter-spacing: .05em; }
button.lk-card.on { transform: translateY(-6px); box-shadow: 0 0 0 4px var(--accent), 0 8px 0 rgba(0,0,0,.25); }
button.lk-card.on[data-n]:not([data-n=""])::before { content: attr(data-n); position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #062019; display: grid; place-items: center; font-weight: 900; }
.lk-cardback { width: min(60vw, 240px); aspect-ratio: 5 / 7; border-radius: 18px; background: repeating-linear-gradient(45deg, #151a2e 0 14px, #1d2547 14px 28px); border: 4px solid #fff; color: #fff; font-size: 2rem; font-weight: 900; display: grid; place-items: center; align-content: center; gap: .5rem; margin: 0 auto; box-shadow: 0 14px 30px rgba(0,0,0,.4); animation: pulse 1.6s infinite; }
.lk-cardback small { font-size: .8rem; color: var(--muted); }
.lk-cardback.big { width: clamp(160px, 18vw, 260px); }
.lk-options { display: grid; gap: .5rem; }
.lk-option { background: var(--panel); border: 2px solid var(--panel-b); border-radius: 14px; padding: .8em 1em; font-weight: 800; text-align: left; font-size: 1.05rem; }
.lk-option.on { border-color: var(--c); background: rgba(255,182,39,.18); }
.lk-option.mine { border-style: dashed; }
.lk-option small { display: block; color: var(--muted); font-size: .7rem; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; width: 100%; max-width: 1300px; }
.lk-grid.small { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.lk-white { background: #fff; color: #151a2e; border-radius: 14px; padding: 1em; font-weight: 900; font-size: clamp(1rem, 1.8vw, 1.4rem); display: grid; gap: .5rem; text-align: left; animation: slidein .4s backwards; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.lk-white > div + div { border-top: 2px dashed #d5d8e8; padding-top: .5rem; }
.lk-white.dim { opacity: .55; font-size: 1rem; }
.lk-white small { color: #6a7090; font-size: .75rem; }
.lk-win { display: grid; gap: .6rem; justify-items: center; }
.lk-winner { display: flex; align-items: center; gap: .5rem; font-size: clamp(1.2rem, 2.6vw, 2rem); font-weight: 900; color: var(--c); }
.lk-deck { margin-top: 2vh; }

/* ================================================================= Cloke Games look */
a.logo, a.logo:hover { text-decoration: none; color: var(--text); }
.logo.games b { background: linear-gradient(90deg, #ff4fa3, #7b61ff 60%, #39e6c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo .gmark { width: 1.75em; height: 1.75em; display: inline-block; filter: drop-shadow(0 3px 6px rgba(123, 97, 255, .45)); }
.logo .gmark svg { width: 100%; height: 100%; display: block; }
.join-box .logo.games { justify-content: center; font-size: 2.2rem; margin-bottom: 1rem; }

.games-hero { padding: 2.2rem 0 .6rem; }
.games-hero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); letter-spacing: -.03em; }
.grad { background: linear-gradient(90deg, #ff4fa3, #7b61ff 55%, #39e6c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; max-width: 900px; margin: .8rem auto 1.8rem; }
.hw-step { display: flex; gap: .8rem; align-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--panel-b); border-radius: 14px; padding: .7rem .9rem; }
.hw-step strong { display: block; font-size: .98rem; }
.hw-step span:not(.hw-n) { color: var(--muted); font-weight: 600; font-size: .85rem; }
.hw-n { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: linear-gradient(135deg, #ff4fa3, #7b61ff); }

.gc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.1rem; align-items: stretch; }
.gc { --gc: var(--accent); position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem 1.25rem 1.25rem; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gc) 16%, transparent), rgba(255,255,255,.03) 55%), rgba(14, 19, 40, .75);
  border: 1px solid color-mix(in srgb, var(--gc) 35%, rgba(255,255,255,.1)); transition: transform .18s, box-shadow .18s, border-color .18s; }
.gc::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gc); }
.gc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--gc) 55%, transparent); border-color: color-mix(in srgb, var(--gc) 70%, transparent); }
.gc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.gc-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--gc); box-shadow: 0 8px 20px -6px var(--gc); }
.gc-ico svg { width: 30px; height: 30px; }
.gc-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.gc-chip { display: inline-flex; align-items: center; gap: .35em; font-size: .78rem; font-weight: 800; padding: .25em .65em; border-radius: 99px; background: rgba(255,255,255,.1); white-space: nowrap; }
.gc-chip.ghost { background: transparent; color: var(--muted); padding-right: 0; }
.gc-ci { width: 15px; height: 15px; display: inline-block; }
.gc-ci svg { width: 100%; height: 100%; display: block; }
.gc-kicker { margin-top: .4rem; font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--gc); }
.gc h2 { margin: -.2rem 0 0; font-size: 1.45rem; letter-spacing: -.01em; }
.gc-desc { margin: 0; color: var(--muted); font-weight: 500; line-height: 1.45; flex: 1; }
.gc-opts { display: grid; gap: .5rem; margin-top: .3rem; }
.gc-opt { display: grid; grid-template-columns: 5.2rem 1fr; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 800; color: var(--muted); }
.gc-opt .field { padding: .55em 2.4em .55em .8em; font-size: .92rem; border-radius: 10px; }
.gc-opt.check { grid-template-columns: auto 1fr; color: var(--text); cursor: pointer; }
.gc-go { width: 100%; margin-top: .5rem; background: var(--gc); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
input.switch { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 99px; background: rgba(255,255,255,.18); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
input.switch:checked { background: var(--gc, var(--accent)); }
input.switch:checked::after { transform: translateX(16px); }
input.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 760px) {
  .howto { grid-template-columns: 1fr; }
  .gc-grid { grid-template-columns: 1fr; }
}
.btn.big.gc-go { font-size: 1.1rem; padding: .8em 1em; white-space: nowrap; }
.gc-opts { min-height: 6.1rem; align-content: end; }
.gc-opt { grid-template-columns: 4.6rem 1fr; }
.gc-opt .field { padding-right: 2.2em; background-position: right .6em center, 0 0; }

/* ================================================================= Meme-Schmiede */
.meme { position: relative; width: 100%; background: #000; border-radius: 12px; overflow: hidden; container-type: inline-size; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.meme img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.meme-box { position: absolute; display: flex; align-items: center; justify-content: center; padding: 2% 3%; overflow: hidden; }
.meme-box span { display: block; width: 100%; text-align: center; color: #fff; text-transform: uppercase; font-family: Impact, 'Anton', 'Arial Black', 'Helvetica Neue', sans-serif; font-weight: 900; line-height: 1.05; word-break: break-word;
  -webkit-text-stroke: .045em #000; paint-order: stroke fill; text-shadow: 0 0 .08em #000, .04em .04em 0 #000, -.04em -.04em 0 #000, .04em -.04em 0 #000, -.04em .04em 0 #000; }
.meme.phone { max-width: 520px; margin: 0 auto; }
.meme.phone.small { max-width: 300px; }
.meme-layouts { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.meme-layouts .pill { font-size: .8rem; padding: .35em .8em; }
.meme-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.meme-card { background: transparent; padding: 0; border-radius: 12px; border: 3px solid transparent; display: grid; gap: .2rem; }
.meme-card:hover:not(:disabled) { border-color: var(--accent); }
.meme-card.mine { opacity: .45; }
.meme-card small { color: var(--muted); font-size: .7rem; }
.meme-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; width: 100%; max-width: 1500px; align-items: start; }
.meme-gallery .meme { animation: zoomin .4s backwards; }
.meme-gallery.small { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); max-width: 1300px; opacity: .85; }
.meme-winners { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.meme-win { display: grid; gap: .6rem; justify-items: center; width: min(560px, 90vw); }
.meme.big { box-shadow: 0 0 0 5px var(--c), 0 20px 60px rgba(255,182,39,.35); animation: zoomin .5s; }
.meme-tile { display: grid; gap: .3rem; }
.meme-cap { display: flex; align-items: center; justify-content: center; gap: .3rem; font-weight: 800; font-size: .9rem; color: var(--muted); }
.gc-ico-inline { width: 72px; height: 72px; color: #2ecc71; }
.gc-ico-inline svg { width: 100%; height: 100%; }

/* ================================================================= Ohrwurm */
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 48px; }
.eq i { width: 10px; height: 30%; border-radius: 4px; background: linear-gradient(#ffb627, #ff4fa3); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
.eq i:nth-child(5) { animation-delay: -.45s; } .eq i:nth-child(6) { animation-delay: -.75s; } .eq i:nth-child(7) { animation-delay: -.2s; }
.eq.big { height: 120px; gap: 12px; } .eq.big i { width: 22px; border-radius: 8px; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.song-opts { display: grid; gap: .6rem; }
.song-opt { display: flex; align-items: center; gap: .8rem; padding: 1rem; border-radius: 14px; font-weight: 900; font-size: 1.05rem; text-align: left; color: #fff; box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); min-height: 72px; }
.song-opt .shape { width: 1.8em; height: 1.8em; }
.song-reveal { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; max-width: 1100px; width: 100%; text-align: left; }
.song-cover { width: clamp(160px, 22vw, 300px); aspect-ratio: 1; border-radius: 16px; object-fit: cover; box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: zoomin .5s; }
.song-cover.small { width: 140px; }
.song-title { font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 900; line-height: 1.1; }
.song-artist { font-size: clamp(1.1rem, 2.4vw, 1.8rem); color: var(--c); font-weight: 800; margin-bottom: .8rem; }
.song-dist { display: grid; gap: .35rem; }
.sd-row { display: grid; grid-template-columns: 1.6em 1fr 30% 2ch; gap: .6rem; align-items: center; opacity: .45; font-weight: 700; }
.sd-row.ok { opacity: 1; color: var(--good); }
.sd-row .shape { width: 1.4em; height: 1.4em; }
.sd-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-bar { height: 10px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; }
.sd-bar i { display: block; height: 100%; width: 0; background: currentColor; transition: width .8s; }
@media (max-width: 760px) { .song-reveal { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ================================================================= Kiez-Baron */
.kz-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; padding: .8rem 1rem 1rem !important; align-items: start; }
.kz-board { display: grid; grid-template-columns: 1.35fr repeat(6, 1fr) 1.35fr; grid-template-rows: 1.35fr repeat(6, 1fr) 1.35fr; gap: 3px; aspect-ratio: 1; max-height: calc(100dvh - 90px); width: 100%; margin: 0 auto;
  background: #0e1530; border-radius: 16px; padding: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.kz-cell { position: relative; background: #f3efe4; color: #1c2033; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; overflow: hidden; font-size: clamp(.5rem, .85vw, .85rem); line-height: 1.05; }
.kz-cell.corner, .kz-cell.start, .kz-cell.jail, .kz-cell.free, .kz-cell.gotojail { justify-content: center; background: #e9e1cc; font-weight: 900; }
.kz-cell.mort { filter: grayscale(.8) brightness(.85); }
.kz-band { width: 100%; height: 22%; min-height: 10px; display: flex; align-items: center; justify-content: center; }
.kz-ico { font-size: 1.6em; margin: .25em 0 .1em; }
.kz-cell.corner .kz-ico { font-size: 2.4em; }
.kz-name { font-weight: 800; padding: .2em .25em 0; word-break: break-word; hyphens: auto; }
.kz-price { font-size: .85em; color: #555b75; margin-top: auto; padding-bottom: .25em; }
.kz-owner { position: absolute; left: 0; right: 0; bottom: 0; font-size: .78em; font-weight: 900; color: #fff; padding: .1em; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.kz-houses { display: flex; gap: 2px; } .kz-houses i { width: .65em; height: .65em; background: #2ecc71; border: 1px solid #0b4d2a; border-radius: 2px; }
.kz-hotel { background: #ff3b41; color: #fff; font-weight: 900; padding: 0 .4em; border-radius: 3px; border: 1px solid #7a0c10; font-size: .85em; }
.kz-tokens { position: absolute; inset: 22% 0 1.2em; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1px; pointer-events: none; }
.pav.kz-token { width: clamp(16px, 2.2vw, 34px); height: clamp(16px, 2.2vw, 34px); border: 3px solid #fff; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.pav.kz-token.active { animation: pulse 1s infinite; z-index: 2; }
.kz-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; background: radial-gradient(circle at 50% 30%, #1d2750, #0e1530 70%); border-radius: 10px; overflow: hidden; }
.kz-logo { font-size: clamp(1.6rem, 3.5vw, 3.2rem); font-weight: 900; transform: rotate(-6deg); letter-spacing: -.02em; }
.kz-logo span { color: #f3efe4; } .kz-logo b { color: #ffd23f; margin-left: .15em; }
.kz-turn { display: flex; align-items: center; gap: .5rem; font-weight: 900; font-size: clamp(.9rem, 1.6vw, 1.3rem); }
.kz-dice { display: flex; gap: .6rem; min-height: 56px; }
.kz-die { width: 52px; height: 52px; background: #fff; border-radius: 12px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 7px; box-shadow: 0 6px 0 #c9c3b2; animation: dice .5s ease-out; }
.kz-die i { width: 9px; height: 9px; background: #1c2033; border-radius: 50%; align-self: center; justify-self: center; }
.kz-die.d1 i { grid-area: 2 / 2; }
.kz-die.d2 i:nth-child(1) { grid-area: 1 / 1; } .kz-die.d2 i:nth-child(2) { grid-area: 3 / 3; }
.kz-die.d3 i:nth-child(1) { grid-area: 1 / 1; } .kz-die.d3 i:nth-child(2) { grid-area: 2 / 2; } .kz-die.d3 i:nth-child(3) { grid-area: 3 / 3; }
.kz-die.d4 i:nth-child(1) { grid-area: 1 / 1; } .kz-die.d4 i:nth-child(2) { grid-area: 1 / 3; } .kz-die.d4 i:nth-child(3) { grid-area: 3 / 1; } .kz-die.d4 i:nth-child(4) { grid-area: 3 / 3; }
.kz-die.d5 i:nth-child(1) { grid-area: 1 / 1; } .kz-die.d5 i:nth-child(2) { grid-area: 1 / 3; } .kz-die.d5 i:nth-child(3) { grid-area: 2 / 2; } .kz-die.d5 i:nth-child(4) { grid-area: 3 / 1; } .kz-die.d5 i:nth-child(5) { grid-area: 3 / 3; }
.kz-die.d6 i:nth-child(1) { grid-area: 1 / 1; } .kz-die.d6 i:nth-child(2) { grid-area: 2 / 1; } .kz-die.d6 i:nth-child(3) { grid-area: 3 / 1; } .kz-die.d6 i:nth-child(4) { grid-area: 1 / 3; } .kz-die.d6 i:nth-child(5) { grid-area: 2 / 3; } .kz-die.d6 i:nth-child(6) { grid-area: 3 / 3; }
@keyframes dice { from { transform: rotate(-200deg) scale(.4); opacity: 0; } }
.kz-card { background: #ffd23f; color: #2a1a00; border-radius: 12px; padding: .5em .9em; font-weight: 800; max-width: 90%; text-align: center; box-shadow: 0 6px 0 rgba(0,0,0,.25); animation: pop .35s; }
.kz-card small { display: block; font-size: .7em; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.kz-pot { font-size: .85rem; color: var(--muted); font-weight: 800; }
.kz-log { width: 100%; max-width: 520px; font-size: clamp(.7rem, 1vw, .9rem); color: var(--muted); display: grid; gap: .15rem; text-align: center; }
.kz-log .last { color: var(--text); font-weight: 800; }
.kz-log.small { font-size: .85rem; text-align: left; }
.kz-side { display: grid; gap: .5rem; align-content: start; }
.kz-round { font-weight: 900; color: var(--muted); text-align: center; }
.kz-pl { display: grid; grid-template-columns: 6px auto 1fr auto; gap: .5rem; align-items: center; background: var(--panel); border: 2px solid var(--panel-b); border-radius: 12px; padding: .45rem .6rem .45rem .35rem; }
.kz-pl.turn { border-color: var(--accent); box-shadow: 0 0 20px rgba(57,230,200,.25); }
.kz-pl.out { opacity: .4; }
.kz-dot { width: 6px; align-self: stretch; border-radius: 3px; }
.kz-pl-main { display: grid; min-width: 0; } .kz-pl-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .kz-pl-main small { color: var(--muted); font-size: .72rem; }
.kz-cash { font-weight: 900; font-size: 1.05rem; }
.kz-me { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; background: var(--panel); border: 2px solid; border-radius: 14px; padding: .6rem; text-align: center; }
.kz-me small { display: block; font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; } .kz-me b { font-size: .95rem; }
.kz-roll { font-size: 1.6rem; padding: 1em; }
.kz-wait { font-size: 1.3rem; font-weight: 900; text-align: center; padding: 1rem; }
.kz-info { background: rgba(255,90,95,.15); border-radius: 12px; padding: .6rem .8rem; margin: 0; }
.kz-deed { background: #f3efe4; color: #1c2033; border-radius: 14px; overflow: hidden; text-align: center; font-weight: 800; padding-bottom: .8rem; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.kz-deed-band { background: #8a8fa8; color: #fff; padding: .8rem; font-size: 1.3rem; font-weight: 900; margin-bottom: .6rem; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.kz-props { display: grid; gap: .4rem; }
.kz-prop { display: grid; grid-template-columns: 8px 1fr auto; gap: .6rem; align-items: center; background: var(--panel); border-radius: 12px; padding: .5rem .6rem .5rem .4rem; }
.kz-prop.mort { opacity: .6; }
.kz-pcolor { align-self: stretch; border-radius: 4px; }
.kz-prop-main { display: grid; } .kz-prop-main small { color: var(--muted); }
.kz-prop-act { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.kz-phone .kz-dice { justify-content: center; }
@media (max-width: 1000px) { .kz-main { grid-template-columns: 1fr; } }
.host main.kz-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; align-items: start; justify-items: center; padding: .8rem 1rem 1rem; }
.kz-board { width: min(100%, calc(100dvh - 90px)); height: auto; }
.kz-side { width: 100%; }
@media (max-width: 1000px) { .host main.kz-main { grid-template-columns: 1fr; } }
.kz-tokens { inset: 46% 0 1.1em; }

/* ================================================================= new games + big groups */
.status-meter { width: min(520px, 90%); display: grid; gap: .4rem; justify-items: center; }
.sm-bar { width: 100%; height: 14px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.sm-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .4s; }
.players:has(> .chip:nth-child(30)) .chip { font-size: .8rem; padding: .25em .6em .25em .25em; }
.players:has(> .chip:nth-child(30)) .pav.sm { width: 1.3em; height: 1.3em; }

.gc-ico-inline.mw { color: #8a8fa8; } .gc-ico-inline.kr { color: #ff6b8b; }
.mw-head { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.mw-cat { background: var(--panel-b); padding: .4em 1em; border-radius: 99px; font-weight: 900; font-size: 1.2rem; }
.mw-hints { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem; width: 100%; max-width: 1200px; }
.mw-hints.small { grid-template-columns: 1fr; }
.mw-hint { display: flex; align-items: center; gap: .5rem; background: var(--panel); border: 1px solid var(--panel-b); border-radius: 12px; padding: .5rem .8rem; animation: slidein .4s backwards; text-align: left; }
.mw-hint span { margin-left: auto; font-weight: 900; color: var(--c); font-size: 1.1rem; }
.mw-reveal { display: grid; gap: .2rem; justify-items: center; }
.mw-reveal small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.mw-word { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 900; color: var(--c); line-height: 1; }
.mw-votes { display: grid; gap: .35rem; width: 100%; max-width: 640px; }
.mw-vrow { display: grid; grid-template-columns: auto 8rem 1fr 2ch; gap: .6rem; align-items: center; font-weight: 800; text-align: left; }
.mw-vrow.mole { color: var(--accent2); }
.mw-bar { height: 12px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; } .mw-bar i { display: block; height: 100%; width: 0; background: currentColor; transition: width .8s; }
.mw-card { width: min(460px, 100%); display: grid; gap: 1rem; text-align: center; padding: 1.4rem; border-radius: 20px; background: var(--panel); border: 2px solid var(--panel-b); }
.mw-card.mole { border-color: var(--accent2); background: rgba(255,79,163,.12); }
.mw-card small { color: var(--muted); font-weight: 800; }
.mw-role { font-size: 1.8rem; font-weight: 900; color: var(--accent2); }
.mw-mini { text-align: center; font-weight: 900; padding: .5em; border-radius: 12px; background: var(--panel); }
.mw-mini.mole { color: var(--accent2); }
.mw-opt { display: flex; align-items: center; gap: .6rem; justify-content: flex-start; }

.sb-frag { font-size: clamp(4rem, 14vw, 9rem); font-weight: 900; letter-spacing: .08em; color: #fff; text-shadow: 0 0 40px rgba(255,90,95,.6); line-height: 1; }
.sb-frag.small { font-size: 3rem; }
.sb-bomb { display: flex; align-items: center; gap: .8rem; font-size: clamp(1.1rem, 2.4vw, 1.8rem); font-weight: 900; }
.sb-ico { font-size: 3rem; animation: shake .25s infinite; display: inline-block; }
@keyframes shake { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) scale(1.05); } }
.sb-players { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.sb-p { display: flex; align-items: center; gap: .4rem; background: var(--panel); border: 2px solid var(--panel-b); border-radius: 99px; padding: .3rem .8rem .3rem .3rem; }
.sb-p.hold { border-color: var(--bad); box-shadow: 0 0 20px rgba(255,90,95,.5); }
.sb-p.out { opacity: .35; }
.sb-lives i { color: rgba(255,255,255,.2); font-style: normal; } .sb-lives i.on { color: var(--bad); }
.sb-lives.big { font-size: 2rem; text-align: center; }
.sb-words { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; max-width: 1000px; }
.sb-boom { font-size: clamp(4rem, 12vw, 8rem); font-weight: 900; color: #ffb627; animation: zoomin .4s; }
.sb-hold { border: 3px solid var(--bad); border-radius: 20px; padding: 1rem; animation: pulse 1s infinite; }

.kr-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; width: 100%; align-items: start; }
.kr-main { display: grid; gap: .6rem; justify-items: center; }
.kr-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; max-width: 900px; font-weight: 900; font-size: 1.2rem; }
.kr-mask { font-family: ui-monospace, monospace; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: .15em; font-weight: 900; }
canvas.kr-canvas { max-width: min(900px, calc((100dvh - 200px) * 4 / 3)); }
canvas.kr-small { max-width: 420px; }
.kr-side { display: grid; gap: .6rem; }
.kr-feed { display: grid; gap: .3rem; max-height: 70vh; overflow: auto; }
.kr-f { background: var(--panel); border-radius: 10px; padding: .35rem .6rem; font-size: .95rem; text-align: left; }
.kr-f.ok { background: rgba(46,204,113,.2); color: #8ff0b8; font-weight: 800; }
.kr-live { display: grid; gap: .4rem; }
.kr-live .kr-mask { text-align: center; font-size: 1.5rem; }
@media (max-width: 900px) { .kr-stage { grid-template-columns: 1fr; } }

/* ================================================================= teams */
.team-ctl .pill { font-size: .85rem; }
.team-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; width: 100%; max-width: 1200px; }
.team-col { --tc: var(--accent); border: 2px solid var(--tc); border-radius: 16px; padding: .7rem; display: flex; flex-wrap: wrap; gap: .4rem; align-content: flex-start; background: color-mix(in srgb, var(--tc) 10%, transparent); min-height: 80px; }
.team-name { width: 100%; font-weight: 900; color: var(--tc); margin-bottom: .2rem; }
.team-strip { display: grid; gap: .35rem; width: 100%; max-width: 760px; margin-bottom: .6rem; }
.ts-row { --tc: var(--accent); display: grid; grid-template-columns: 9rem 1fr auto auto; gap: .6rem; align-items: center; background: color-mix(in srgb, var(--tc) 14%, transparent); border: 2px solid var(--tc); border-radius: 12px; padding: .45rem .8rem; font-weight: 800; }
.ts-row b { color: var(--tc); }
.ts-row small { color: var(--muted); }
.ts-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; } .ts-bar i { display: block; height: 100%; width: 0; background: var(--tc); transition: width .8s; }
.score-wrap { display: grid; justify-items: center; width: 100%; }
.team-win { --tc: var(--c); font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 900; color: var(--tc); text-shadow: 0 0 30px color-mix(in srgb, var(--tc) 60%, transparent); animation: zoomin .5s; }
.team-pick { display: grid; gap: .4rem; width: 100%; }
.team-pick small { color: var(--muted); }
.team-btn { --tc: var(--accent); border: 2px solid var(--tc); background: transparent; color: var(--text); border-radius: 12px; padding: .6em; font-weight: 800; }
.team-btn.on { background: var(--tc); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.3); }

.gc-opt { grid-template-columns: 3.9rem 1fr; }
.gc-opt .field { padding-left: .6em; padding-right: 2em; font-size: .88rem; }
.gc-chip.team { background: color-mix(in srgb, var(--gc) 30%, transparent); }

/* ================================================================= Hakenschwung */
.hk-page { width: 100%; height: 100dvh; display: flex; flex-direction: column; }
.hk-head { display: flex; justify-content: space-between; align-items: center; padding: .5rem .9rem; }
.hk-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hk-canvas { width: 100%; flex: 1; min-height: 240px; display: block; touch-action: none; user-select: none; -webkit-user-select: none; background: #16205a; }
.hk-info { text-align: center; font-weight: 900; padding: .6rem; background: rgba(0,0,0,.35); }
.hk-count { font-size: clamp(4rem, 12vw, 8rem); font-weight: 900; color: var(--c); line-height: 1; }
.hk-lanes { display: grid; gap: .35rem; width: 100%; max-width: 1200px; }
.hk-lane { display: grid; grid-template-columns: 9rem 1fr 6rem; gap: .8rem; align-items: center; background: var(--panel); border-radius: 12px; padding: .3rem .7rem; }
.hk-lane.done { background: rgba(46,204,113,.15); }
.hk-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.hk-track { position: relative; height: 36px; border-radius: 99px; background: linear-gradient(90deg, rgba(127,211,255,.12), rgba(127,211,255,.3)); }
.hk-runner { position: absolute; top: 50%; transform: translate(-50%, -50%); transition: left .3s linear; }
.hk-flag { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); font-style: normal; }
.hk-time { font-weight: 900; text-align: right; }

.hk-tip { position: absolute; top: 2.2rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.55); padding: .3em .8em; border-radius: 99px; font-size: .8rem; font-weight: 800; white-space: nowrap; pointer-events: none; }

.hk-tip { display: none; }
.hk-rotate { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1.5rem; text-align: center; background: rgba(11,16,32,.94); }
.hk-rotate.hidden { display: none; }
.hk-phone { width: 64px; height: 110px; border: 5px solid #fff; border-radius: 14px; position: relative; animation: hkrot 2s ease-in-out infinite; }
.hk-phone::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 14px; height: 4px; border-radius: 2px; background: #fff; transform: translateX(-50%); }
.hk-phone.small { width: 34px; height: 58px; border-width: 3px; border-radius: 8px; }
@keyframes hkrot { 0%, 25% { transform: rotate(0); } 55%, 100% { transform: rotate(-90deg); } }
.hk-lobby-tip { display: flex; align-items: center; justify-content: center; gap: .9rem; background: rgba(127,211,255,.15); border: 2px solid #7fd3ff; border-radius: 14px; padding: .7rem 1rem; }

/* ================================================================= cross links quiz <-> games */
.gc-quiz { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.5rem; text-decoration: none; color: inherit; padding: 1.4rem 1.6rem; }
.gc-quiz-main { display: flex; align-items: center; gap: 1.2rem; flex: 1; }
.gc-quiz h2 { margin: .1rem 0 .3rem; }
.gc-quiz .gc-desc { flex: none; max-width: 70ch; }
.gc-quiz .gc-go { width: auto; flex: none; padding: .8em 1.6em; color: #062019; text-shadow: none; }
.gc-ico.quizmark { width: 64px; height: 64px; flex: none; background: rgba(255,255,255,.08); }
.gc-ico.quizmark .mark { width: 38px; height: 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(-8deg); }
.gc-ico.quizmark .mark i { border-radius: 5px; }
.gc-ico.quizmark .mark i:nth-child(1) { background: var(--a); } .gc-ico.quizmark .mark i:nth-child(2) { background: var(--b); }
.gc-ico.quizmark .mark i:nth-child(3) { background: var(--c); } .gc-ico.quizmark .mark i:nth-child(4) { background: var(--d); }
.navlink.games-link { color: #ff8fc4; }
.games-banner { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 18px; text-decoration: none; color: var(--text);
  background: linear-gradient(110deg, rgba(255,79,163,.22), rgba(123,97,255,.22) 55%, rgba(57,230,200,.16)); border: 1px solid rgba(255,79,163,.4); transition: transform .15s, box-shadow .15s; }
.games-banner:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(255,79,163,.6); }
.gb-mark { width: 52px; height: 52px; flex: none; } .gb-mark svg { width: 100%; height: 100%; display: block; }
.gb-text { display: grid; gap: .15rem; flex: 1; min-width: 0; } .gb-text b { font-size: 1.1rem; } .gb-text span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.gb-icons { display: flex; gap: .35rem; }
.gb-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.gb-ic svg { width: 20px; height: 20px; }
.gb-go { flex: none; background: var(--accent2); color: #fff; }
@media (max-width: 900px) { .gb-icons { display: none; } }
@media (max-width: 760px) {
  .gc-quiz { flex-direction: column; align-items: stretch; }
  .gc-quiz-main { flex-direction: column; align-items: flex-start; }
  .gc-quiz .gc-go { width: 100%; }
  .games-banner { flex-wrap: wrap; } .gb-go { width: 100%; }
}

/* ================================================================= jukebox */
.jb-menu { position: fixed; z-index: 50; width: 260px; max-height: 75vh; overflow: auto; background: #141b33; border: 1px solid var(--panel-b); border-radius: 16px; padding: .5rem; box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: pop .15s; }
.jb-title { font-weight: 900; padding: .3rem .5rem .5rem; }
.jb-sep { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .6rem .5rem .3rem; font-weight: 800; }
.jb-item { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; background: transparent; border-radius: 10px; padding: .45rem .5rem; }
.jb-item:hover { background: var(--panel); }
.jb-item b { display: block; font-size: .92rem; } .jb-item small { color: var(--muted); font-size: .75rem; font-weight: 600; }
.jb-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.jb-item.on .jb-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.jb-item.on b { color: var(--accent); }
.jb-sound { display: flex; align-items: center; gap: .4rem; padding: .6rem .5rem .3rem; border-top: 1px solid var(--panel-b); margin-top: .4rem; font-weight: 800; font-size: .9rem; }
.jb-sound.sub { border-top: 0; margin-top: 0; padding-top: .2rem; }

/* ================================================================= Würfelnacht */
.wn-stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; width: 100%; align-items: start; padding-top: .5rem; }
.wn-board { position: relative; width: min(100%, calc(100dvh - 110px)); aspect-ratio: 1; margin: 0 auto; }
.wn-ring { position: absolute; inset: 0; }
.wn-f { position: absolute; width: 8.5%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 30%; display: grid; place-items: center; font-weight: 900; font-size: clamp(.6rem, 1.3vw, 1.05rem); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25); }
.wn-f.blue { background: #2f9bff; } .wn-f.red { background: #ff5a5f; } .wn-f.event { background: #7b61ff; } .wn-f.start { background: #2ecc71; }
.wn-f.star { background: #ffd23f; color: #2a1a00; box-shadow: 0 0 24px #ffd23f, inset 0 -4px 0 rgba(0,0,0,.2); animation: pulse 1.4s infinite; }
.wn-tokens { position: absolute; bottom: 70%; left: 50%; transform: translateX(-50%); display: flex; gap: 1px; }
.pav.wn-token { width: clamp(20px, 2.6vw, 38px); height: clamp(20px, 2.6vw, 38px); border: 3px solid #fff; border-radius: 50%; overflow: hidden; background: #fff; }
.pav.wn-token.active { animation: hop .6s infinite; }
@keyframes hop { 50% { transform: translateY(-6px); } }
.wn-center { position: absolute; inset: 18%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; }
.wn-title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; background: linear-gradient(90deg, #ffd23f, #ff4fa3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wn-turn { display: flex; align-items: center; gap: .4rem; font-weight: 900; font-size: clamp(1rem, 2vw, 1.5rem); }
.wn-dice { width: 74px; height: 74px; border-radius: 18px; background: #fff; color: #1c2033; display: grid; place-items: center; font-size: 2.6rem; font-weight: 900; box-shadow: 0 6px 0 #c9c3b2; animation: dice .5s ease-out; }
.wn-dice.idle { background: transparent; box-shadow: none; font-size: 3rem; animation: none; }
.wn-stand { display: grid; gap: .4rem; }
.wn-st { display: grid; grid-template-columns: 1.5rem auto 1fr auto auto; gap: .5rem; align-items: center; background: var(--panel); border: 1px solid var(--panel-b); border-radius: 12px; padding: .4rem .7rem; }
.wn-st .nm { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wn-st .nm small { color: var(--muted); }
.wn-stars { font-weight: 900; color: #ffd23f; } .wn-coins { font-weight: 900; }
.wn-rl { display: grid; gap: .5rem; width: min(520px, 90%); }
.wn-rl-item { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-radius: 14px; background: var(--panel); border: 2px solid var(--panel-b); font-weight: 900; font-size: 1.3rem; transition: transform .08s; }
.wn-rl-item.on { border-color: #ffd23f; background: rgba(255,210,63,.18); transform: scale(1.04); }
.wn-rl-item.chosen { background: #ffd23f; color: #2a1a00; animation: pulse .8s 3; }
.gc-ico.mini { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.12); box-shadow: none; }
.gc-ico.mini svg { width: 24px; height: 24px; }
.wn-me { display: flex; justify-content: center; align-items: center; gap: 1rem; font-size: 1.4rem; font-weight: 900; background: var(--panel); border-radius: 14px; padding: .6rem; }
.wn-me small { font-size: .8rem; color: var(--muted); }
.rx-panel { width: min(900px, 90%); padding: 3rem 1rem; border-radius: 24px; font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 900; }
.rx-panel.wait { background: #ff5a5f; } .rx-panel.go { background: #2ecc71; animation: pulse .5s infinite; }
.rx-pad { width: 100%; height: 100dvh; font-size: 2.4rem; font-weight: 900; color: #fff; border-radius: 0; touch-action: manipulation; }
.rx-pad.wait { background: #c8373b; } .rx-pad.go { background: #1b9e57; }
.ms-pad { width: 100%; height: 100dvh; background: radial-gradient(circle, #ff8c42, #ff4fa3); color: #fff; display: grid; place-items: center; align-content: center; gap: .5rem; border-radius: 0; touch-action: manipulation; user-select: none; }
.ms-count { font-size: 6rem; font-weight: 900; line-height: 1; }
.ms-pad small { font-size: 1.4rem; font-weight: 900; }
@media (max-width: 1000px) { .wn-stage { grid-template-columns: 1fr; } }

/* ================================================================= hand-over */
.foot-right { display: flex; align-items: center; gap: .5rem; }
.ho-btn { padding: .3em .7em; font-size: .8rem; }
.ho-code { font-size: 1.05rem; } .ho-code b { letter-spacing: .08em; }
.take-toggle { font-size: .85rem; color: var(--muted); background: none; text-decoration: underline; }
.btn.off { opacity: .6; text-decoration: line-through; }

/* ================================================================= featured: Würfelnacht */
.gc.gc-feature { display: grid; grid-template-columns: 220px 1fr minmax(260px, 340px); grid-template-areas: "art top opts" "art kick opts" "art title opts" "art desc go"; gap: .3rem 1.6rem; align-items: start; margin-bottom: 1.2rem; padding: 1.6rem 1.8rem;
  background: radial-gradient(circle at 12% 50%, rgba(255,210,63,.28), transparent 45%), linear-gradient(120deg, rgba(255,79,163,.18), rgba(123,97,255,.16) 50%, rgba(57,230,200,.12)), rgba(14,19,40,.85); border-width: 2px; }
.gc-feature .gf-art { grid-area: art; position: relative; width: 200px; aspect-ratio: 1; align-self: center; }
.gc-feature .gf-art i { position: absolute; width: 22px; height: 22px; border-radius: 30%; transform: translate(-50%, -50%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.gc-feature .gf-art i.star { width: 30px; height: 30px; box-shadow: 0 0 18px #ffd23f; animation: pulse 1.4s infinite; }
.gc-feature .gf-dice { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); font-size: 3.6rem; animation: hop 1.6s infinite; }
.gc-feature .gf-badge { position: absolute; right: -4px; top: 0; background: var(--accent2); color: #fff; font-weight: 900; font-size: .75rem; padding: .2em .7em; border-radius: 99px; transform: rotate(8deg); }
.gc-feature .gc-top { grid-area: top; }
.gc-feature .gc-kicker { grid-area: kick; }
.gc-feature h2 { grid-area: title; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.gc-feature .gc-desc { grid-area: desc; font-size: 1.05rem; max-width: 60ch; }
.gc-feature .gc-opts { grid-area: opts; min-height: 0; align-content: start; }
.gc-feature .gc-go { grid-area: go; align-self: end; color: #2a1a00; text-shadow: none; }
.gc-feature .gc-top .gc-ico { display: none; }
@media (max-width: 900px) {
  .gc.gc-feature { grid-template-columns: 1fr; grid-template-areas: "art" "top" "kick" "title" "desc" "opts" "go"; }
  .gc-feature .gf-art { width: 150px; justify-self: center; }
}

/* ================================================================= new Würfelnacht minigames */
.tg-clock { font-size: clamp(4rem, 14vw, 9rem); font-weight: 900; font-variant-numeric: tabular-nums; color: var(--c); }
.tg-clock.small { font-size: 5rem; color: #fff; }
.tg-pad { background: radial-gradient(circle, #2f9bff, #1d3fbf); }
.zr-scene { position: relative; width: min(1100px, 92%); height: 58vh; background: rgba(255,255,255,.05); border-radius: 20px; overflow: hidden; }
.zr-scene span { position: absolute; font-size: clamp(1.6rem, 3.6vw, 3rem); }
.fc-word { font-size: clamp(3rem, 16vw, 5rem); font-weight: 900; text-align: center; padding: 1rem 0; letter-spacing: .02em; }
.fc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.fc-btn { height: 110px; border-radius: 18px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.25); }
.zj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.zj-btn { aspect-ratio: 1.3; border-radius: 14px; background: var(--panel); border: 2px solid var(--panel-b); font-size: 2rem; font-weight: 900; }
.zj-btn.ok { background: var(--good); border-color: var(--good); opacity: .5; }
.zj-btn.bad { background: var(--bad); animation: shake .2s 2; }

/* ================================================================= Würfelnacht 3D board */
.wn-stage { grid-template-columns: minmax(0, 1fr) 340px; }
.wn3d { --tilt: 52deg; perspective: 1500px; perspective-origin: 50% 20%; width: 100%; padding: 2% 3% 0; }
.wn3d-plane { position: relative; width: 100%; aspect-ratio: 100 / 70; transform: rotateX(var(--tilt)) scale(.94); transform-origin: 50% 60%; transform-style: preserve-3d; border-radius: 40px;
  box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 0 0 6px rgba(255,255,255,.08); }
.theme-hafen .wn3d-plane { background: radial-gradient(ellipse at 50% 45%, #f2d99b 0 34%, #d9b773 38%, #2a8fd6 42%, #1b5fa8 70%, #123f7a); }
.theme-zucker .wn3d-plane { background: radial-gradient(circle at 25% 50%, #ffd1e8 0 22%, transparent 23%), radial-gradient(circle at 75% 50%, #c8f7e6 0 22%, transparent 23%), linear-gradient(135deg, #ffb3d9, #b9f0ff 50%, #ffe7a3); }
.theme-vulkan .wn3d-plane { background: radial-gradient(ellipse at 50% 30%, #ff6a2b 0 6%, #7a2d1b 10%, #3b2a26 22%, #4f6b3a 40%, #2e4a2a 62%, #1a6aa0 66%, #124b78); }
.wn3d-path { position: absolute; height: 1.1%; margin-top: -.55%; background: rgba(255,255,255,.75); border-radius: 99px; transform-origin: 0 50%; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.wn3d-path.branch { background: repeating-linear-gradient(90deg, rgba(255,255,255,.85) 0 10px, transparent 10px 16px); }
.wn3d-tile { position: absolute; width: 4.6%; aspect-ratio: 1; transform: translate(-50%, -50%) translateZ(4px); border-radius: 26%; display: grid; place-items: center;
  font-weight: 900; font-size: clamp(.45rem, .9vw, .85rem); color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.35), 0 0 0 2px rgba(255,255,255,.6) inset; }
.wn3d-tile.blue { background: #2f9bff; } .wn3d-tile.red { background: #ff5a5f; } .wn3d-tile.event { background: #7b61ff; }
.wn3d-tile.bonus { background: linear-gradient(135deg, #ffd23f, #ff9f1c); color: #2a1a00; } .wn3d-tile.start { background: #2ecc71; width: 6%; }
.wn3d-tile.choice { box-shadow: 0 0 0 4px #fff, 0 0 30px #fff, 0 5px 0 rgba(0,0,0,.35); animation: pulse .8s infinite; }
/* billboards: stand upright against the tilt */
.wn3d-bb { position: absolute; transform-style: preserve-3d; transform: translate(-50%, -100%) rotateX(calc(var(--tilt) * -1)); transform-origin: 50% 100%; pointer-events: none; }
.wn3d-prop { font-size: clamp(1.6rem, 3.8vw, 3.4rem); filter: drop-shadow(0 6px 4px rgba(0,0,0,.35)); }
.wn3d-star { font-size: clamp(1.8rem, 4vw, 3.4rem); margin-top: -1%; animation: starbob 1.6s ease-in-out infinite; filter: drop-shadow(0 0 12px #ffd23f); }
@keyframes starbob { 50% { margin-top: -2.5%; } }
.wn3d-token .pav { width: clamp(26px, 3.4vw, 54px); height: clamp(26px, 3.4vw, 54px); display: block; border: 3px solid #fff; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 8px 10px rgba(0,0,0,.4); }
.wn3d-token { margin-top: -.6%; transition: left .3s ease, top .3s ease; }
.wn3d-token.active .pav { border-color: #ffd23f; box-shadow: 0 0 0 4px #ffd23f, 0 8px 10px rgba(0,0,0,.4); animation: hop .6s infinite; }
.wn3d-label { background: #fff; color: #1c2033; font-weight: 900; font-size: clamp(.6rem, 1vw, .9rem); padding: .2em .6em; border-radius: 99px; white-space: nowrap; margin-top: -3%; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.wn-side { display: grid; gap: .6rem; align-content: start; justify-items: center; text-align: center; }
.wn-boardname { font-weight: 900; font-size: 1.4rem; color: var(--c); }
.wn-way { display: grid; gap: .2rem; text-align: left; }
.wn-way small { color: var(--muted); }
@media (max-width: 1000px) { .wn-stage { grid-template-columns: 1fr; } }

/* board fits the screen: the layout box only takes the projected (tilted) height */
.wn3d { width: min(100%, calc((100dvh - 120px) / .52)); margin: 0 auto; padding: 0; container-type: inline-size; }
.wn3d-box { position: relative; width: 100%; height: 52cqw; }
.wn3d .wn3d-plane { position: absolute; left: 0; top: 0; transform-origin: 50% 0; transform: translateY(3cqw) rotateX(var(--tilt)) scale(.94); }

/* themed grounds that match the paths: hafen = land + harbour basin, vulkan = big island */
.theme-hafen .wn3d-plane { background:
  radial-gradient(ellipse 15% 17% at 63% 72%, #2a8fd6 0 80%, #1d72b8 92%, #d8c48e 100%),
  radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 40%),
  linear-gradient(160deg, #e9d9a6, #d4bd82 60%, #c5ab6c); }
.theme-vulkan .wn3d-plane { background:
  radial-gradient(ellipse 10% 9% at 50% 30%, #ff7a2e 0 45%, #b8401c 70%, transparent 100%),
  radial-gradient(ellipse 22% 20% at 50% 30%, #4a3a33 0 70%, transparent 100%),
  radial-gradient(ellipse 60% 64% at 50% 52%, #4f7a3a 0 82%, #e6cf8f 88%, #2a8fd6 94%, #1a6aa0 100%); background-color: #1a6aa0; }
/* real 3D: perspective must sit on the plane's direct parent */
.wn3d { perspective: none; }
.wn3d-box { perspective: 1300px; perspective-origin: 50% -10%; }
.wn3d .wn3d-plane { transform: translateY(1cqw) rotateX(var(--tilt)) scale(.9); }
.wn-side { min-width: 0; overflow-wrap: anywhere; }
.wn-side .wn-title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.wn-side p { margin: 0; }
/* camera further away, tilt around the board centre, scaled so the whole board stays in view */
.wn3d { width: min(100%, calc((100dvh - 120px) / .6)); }
.wn3d-box { height: 60cqw; perspective: 2600px; perspective-origin: 50% 35%; overflow: visible; }
.wn3d .wn3d-plane { top: 50%; transform-origin: 50% 50%; transform: translateY(-50%) rotateX(var(--tilt)) scale(.8); }
.wn-stage { overflow: hidden; }
.lk-white { transition: transform .25s, box-shadow .25s; }
.lk-white.reading { transform: scale(1.05); box-shadow: 0 0 0 5px #ff4fa3, 0 10px 30px rgba(255,79,163,.45); }
