/* ===================== Farbwelten ===================== */
body[data-game="hub"] { --g1: #ff7a45; --g2: #a66bff; --g3: #34e1ff; }
body[data-game="limit"] { --accent: #ff7a45; --accent2: #ffc53d; --g1: #ff7a45; --g2: #ffc53d; --g3: #ff4d6d; }
body[data-game="kraftprobe"] { --accent: #ff4d6d; --accent2: #ffd24a; --g1: #ff4d6d; --g2: #4da3ff; --g3: #ffd24a; }
body[data-game="maulwurf"] { --accent: #ff6b3d; --accent2: #ffd24a; --g1: #ff6b3d; --g2: #7b5cff; --g3: #2b1d52; }
body[data-game="pikto"] { --accent: #ff5fa2; --accent2: #ffe14d; --g1: #ffe14d; --g2: #ff5fa2; --g3: #3ddc84; }
body[data-game="quote"] { --accent: #a66bff; --accent2: #34e1ff; --g1: #34e1ff; --g2: #a66bff; --g3: #ff6f91; }

/* ===================== LIMIT ===================== */
.table { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 0 12px; }
.limit-panel {
  position: relative; border-radius: 22px; padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(64, 48, 132, .95), rgba(38, 29, 84, .95));
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px -20px #000, inset 0 1px 0 rgba(255, 255, 255, .08);
}
.limit-panel.shake { animation: shake .5s; }
.limit-head { display: flex; align-items: baseline; gap: 10px; min-height: 68px; }
.limit-number { font-family: var(--font-display); font-size: 52px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.sum-wrap { margin-left: auto; text-align: right; display: grid; transition: opacity .2s; }
.sum-number { font-family: var(--font-display); font-size: 32px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.sum-wrap.hidden { opacity: 0; }
.gauge { position: relative; height: 34px; margin-top: 12px; border-radius: 10px; background: rgba(0, 0, 0, .3); }
.gauge-fill { position: absolute; inset: 0; display: flex; border-radius: 10px; overflow: hidden; }
.seg.zero { display: none; }
.gauge-over {
  position: absolute; top: 0; bottom: 0; width: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255, 77, 109, .85) 0 6px, rgba(255, 77, 109, .25) 6px 12px);
  border-radius: 0 10px 10px 0; transition: width .35s;
}
.seg {
  height: 100%; display: grid; place-items: center; width: 0;
  font-weight: 900; color: #1b1238; font-size: 15px;
  border-right: 2px solid rgba(0, 0, 0, .25);
  transition: width .35s cubic-bezier(.2, .9, .3, 1.2);
  overflow: hidden; white-space: nowrap;
}
.gauge-limit {
  position: absolute; top: -7px; bottom: -7px; width: 5px; margin-left: -2.5px;
  background: #fff; box-shadow: 0 0 0 2px #1b1238, 0 0 12px #fff; border-radius: 3px; transition: left .3s;
}
.gauge.over { box-shadow: inset 0 0 0 2px var(--bad); }
.gauge.over .gauge-limit { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
.gauge.exact { box-shadow: inset 0 0 0 2px var(--gold), 0 0 24px -4px var(--gold); }
.banner { min-height: 68px; display: grid; place-content: center; text-align: center; gap: 4px; animation: pop .35s cubic-bezier(.2, .9, .3, 1.3); }
.banner strong { font-family: var(--font-display); font-size: 32px; font-weight: 900; letter-spacing: .02em; line-height: 1; }
.banner span { font-size: 15px; font-weight: 600; }
.banner.hold strong { color: var(--good); }
.banner.exact strong { color: var(--gold); text-shadow: 0 0 18px rgba(255, 210, 74, .6); }
.banner.crash strong { color: var(--bad); }
.players {
  list-style: none; margin: 0; padding: 0 0 6px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 8px; align-content: start;
}
.player { position: relative; border-radius: 14px; padding: 9px 10px 8px 14px; background: rgba(28, 22, 64, .92); border: 1px solid var(--line); overflow: hidden; }
.player::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.player.me { border-color: color-mix(in srgb, var(--c) 70%, transparent); }
.player.off { border-style: dashed; }
.player.off::before { filter: grayscale(1); opacity: .45; }
.p-top { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.p-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-score { font-weight: 900; font-variant-numeric: tabular-nums; }
.p-bottom { display: flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 26px; }
.status { font-size: 13px; font-weight: 800; color: var(--muted); }
.status.ready { color: var(--good); }
.status.thinking::after { content: "•••"; letter-spacing: 1px; display: inline-block; animation: blink 1.2s infinite; }
.played-chip {
  min-width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; margin-left: auto;
  background: var(--card); color: var(--card-ink); font-weight: 950; animation: pop .3s;
}
.played-chip.hidden { background: rgba(170, 150, 255, .22); color: var(--muted); animation: none; }
.delta { font-weight: 900; font-size: 14px; animation: pop .3s; }
.delta.plus { color: var(--good); }
.delta.minus { color: var(--bad); }
.delta.zero { color: var(--muted); }
.hand { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
@media (min-height: 760px) {
  .limit-panel { padding: 18px 18px 20px; }
  .limit-number { font-size: 66px; }
  .limit-head, .banner { min-height: 80px; }
  .banner strong { font-size: 38px; }
  .gauge { height: 44px; margin-top: 16px; }
  .player { padding: 12px 12px 10px 16px; }
  .pip { height: 22px; font-size: 12px; }
  .hand { gap: 8px; }
}

/* ===================== KRAFTPROBE ===================== */
.kp { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 0 14px; overflow-y: auto; }
.kp-versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.kp-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kp-side.opp { justify-content: flex-end; }
.kp-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kp-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; color: #170d2e; background: var(--c, #fff);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .1), 0 0 18px var(--c, transparent);
}
.kp-avatar.ready { box-shadow: 0 0 0 3px var(--good), 0 0 18px var(--good); }
.kp-avatar.off { filter: grayscale(1); }
.kp-vs { font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--gold); text-shadow: 0 0 14px rgba(255, 210, 74, .6); }
.kp-arena {
  position: relative; padding: 20px 12px 12px; border-radius: 22px;
  background: linear-gradient(90deg, rgba(255, 77, 109, .18), rgba(20, 15, 46, .92) 35%, rgba(20, 15, 46, .92) 65%, rgba(77, 163, 255, .18));
  border: 1px solid var(--line);
}
.kp-arena[data-lean="me"] { box-shadow: -18px 0 40px -24px #ff4d6d; }
.kp-arena[data-lean="opp"] { box-shadow: 18px 0 40px -24px #4da3ff; }
.kp-rope { position: relative; height: 54px; }
.kp-slots { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.kp-slot { position: relative; }
.kp-slot::after { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, .14); }
.kp-slot.mid::after { background: rgba(255, 255, 255, .45); width: 3px; }
.kp-slot.end:first-child { background: linear-gradient(90deg, rgba(255, 77, 109, .45), transparent); border-radius: 12px 0 0 12px; }
.kp-slot.end:last-child { background: linear-gradient(270deg, rgba(77, 163, 255, .45), transparent); border-radius: 0 12px 12px 0; }
.kp-line {
  position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 6px;
  background: repeating-linear-gradient(115deg, #e2c290 0 8px, #b8925e 8px 12px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}
.kp-knot {
  position: absolute; top: 50%; width: 22px; height: 46px; margin: -23px 0 0 -11px; left: 50%;
  border-radius: 8px; background: linear-gradient(180deg, #ffe680, var(--gold) 50%, #d69c00);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .25), 0 0 26px rgba(255, 210, 74, .8);
  transition: left .9s cubic-bezier(.3, 1.5, .4, 1);
}
.kp-pos { margin: 10px 0 0; text-align: center; font-size: 14px; font-weight: 700; color: #ebe5ff; }
.kp-duel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 140px; }
.kp-card { width: clamp(70px, 22vw, 96px); display: grid; gap: 4px; justify-items: center; perspective: 700px; }
.kp-inner { position: relative; width: 100%; aspect-ratio: 3 / 4; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); }
.kp-card.flipped .kp-inner { transform: rotateY(180deg); }
.kp-face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.kp-face.back {
  background: repeating-linear-gradient(45deg, #ff4d6d 0 10px, #e23a5a 10px 20px);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .7), 0 12px 24px -12px #000;
}
#k-card-opp .kp-face.back { background: repeating-linear-gradient(45deg, #4da3ff 0 10px, #2f86e6 10px 20px); }
.kp-face.front {
  transform: rotateY(180deg); background: linear-gradient(160deg, #fffaf0, var(--card) 60%, #f3e4c8); color: var(--card-ink);
  font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 11vw, 52px);
  box-shadow: 0 12px 24px -12px #000;
}
.kp-card.win .kp-face.front { box-shadow: 0 0 0 4px var(--good), 0 0 30px var(--good); }
.kp-card.lose .kp-face.front { filter: saturate(.4) brightness(.8); }
.kp-card-label { font-size: 12px; color: var(--muted); font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-result { text-align: center; display: grid; gap: 4px; min-width: 0; }
.kp-result strong { font-family: var(--font-display); font-weight: 900; font-size: clamp(15px, 4.6vw, 22px); line-height: 1.1; overflow-wrap: anywhere; }
.kp-result span { font-size: 13px; color: #ebe5ff; }
.kp-duel.waiting .kp-result strong { font-family: inherit; font-size: 15px; color: var(--muted); font-weight: 700; }
.kp-duel.done .kp-result { animation: pop .4s cubic-bezier(.2, .9, .3, 1.3); }
.kp-duel.won .kp-result strong { color: var(--good); }
.kp-duel.lost .kp-result strong { color: var(--bad); }
.kp-duel.tie .kp-result strong { color: var(--gold); }
.kp-duel.underdog.won .kp-result strong { color: var(--gold); text-shadow: 0 0 16px rgba(255, 210, 74, .6); }
.kp-opp-hand { display: flex; align-items: center; justify-content: center; gap: 10px; }
.kp-opp-hand .pips { grid-template-columns: repeat(9, 1fr); max-width: 200px; }
.kp-hand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.kp-hand .hcard { aspect-ratio: auto; height: clamp(48px, 13vw, 64px); }
@media (min-width: 420px) {
  .kp-hand { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
  .kp-hand .hcard { aspect-ratio: 5 / 7; height: auto; }
}

/* ===================== QUOTE ===================== */
.qt { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 0 14px calc(14px + var(--safe-bottom)); overflow-y: auto; }
.qt-card {
  position: relative; padding: 18px 18px 14px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(150deg, rgba(52, 225, 255, .22), rgba(24, 18, 58, .96) 45%, rgba(166, 107, 255, .26));
  border: 1px solid rgba(52, 225, 255, .35);
  box-shadow: 0 20px 40px -26px #34e1ff;
  animation: pop .4s cubic-bezier(.2, .9, .3, 1.2);
}
.qt-pack { position: absolute; right: 14px; top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9eefff; }
.qt-lead { margin: 0; font-weight: 700; color: #9eefff; }
.qt-question { margin: 6px 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 5.4vw, 25px); line-height: 1.25; }
.qt-answer { display: grid; gap: 10px; }
.qt-step { margin: 4px 0 0; font-weight: 800; }
.qt-step b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent2); color: var(--ink); margin-right: 6px; font-size: 13px; }
.qt-step .muted { font-weight: 600; font-size: 13px; }
.qt-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qt-yn {
  padding: 18px 0; border-radius: 18px; border: 2px solid var(--line); cursor: pointer;
  font-family: var(--font-display); font-weight: 900; font-size: 24px; background: rgba(22, 17, 52, .94);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.qt-yn.yes.sel { background: linear-gradient(135deg, #3ddc84, #1fae63); color: #04140b; border-color: transparent; box-shadow: 0 10px 26px -10px #3ddc84; transform: scale(1.03); }
.qt-yn.no.sel { background: linear-gradient(135deg, #ff6f91, #e0405f); color: #26030c; border-color: transparent; box-shadow: 0 10px 26px -10px #ff6f91; transform: scale(1.03); }
.qt-yn:disabled { cursor: default; }
.qt-yn:disabled:not(.sel) { opacity: .45; }
.qt-guess { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.qt-num {
  min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: rgba(22, 17, 52, .94); cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; transition: transform .15s;
}
.qt-num.sel { background: linear-gradient(135deg, #34e1ff, #a66bff); color: var(--ink); border-color: transparent; transform: scale(1.06); }
.qt-num:disabled { cursor: default; }
.qt-num:disabled:not(.sel) { opacity: .45; }
.qt-reveal { display: grid; gap: 12px; }
.qt-count { text-align: center; display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.qt-count strong { font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: 1; color: #3ddc84; text-shadow: 0 0 22px rgba(61, 220, 132, .5); font-variant-numeric: tabular-nums; }
.qt-count span { font-weight: 700; font-size: 16px; }
.qt-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; perspective: 600px; }
.qt-c { width: 44px; height: 58px; }
.qt-c-in { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.qt-c.flip .qt-c-in { transform: rotateY(180deg); }
.qt-c-back, .qt-c-front { position: absolute; inset: 0; border-radius: 9px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.qt-c-back { background: repeating-linear-gradient(45deg, #34e1ff 0 6px, #2bb9d6 6px 12px); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7); }
.qt-c-front { transform: rotateY(180deg); background: #2a2254; color: #ffb3c4; box-shadow: inset 0 0 0 2px #ff6f91; }
.qt-c.yes .qt-c-front { background: linear-gradient(135deg, #3ddc84, #1fae63); color: #04140b; box-shadow: 0 0 14px -2px #3ddc84; }
.qt-c.none .qt-c-front { background: #2a2254; color: var(--muted); box-shadow: none; }
.qt-verdict { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; min-height: 1.4em; }
.qt-reveal[data-points="3"] .qt-verdict { color: var(--gold); text-shadow: 0 0 18px rgba(255, 210, 74, .6); animation: pop .4s; }
.qt-reveal[data-points="1"] .qt-verdict { color: #3ddc84; }
.qt-guesses { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.qt-g {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  padding: 9px 12px 9px 16px; border-radius: 14px; background: rgba(22, 17, 52, .94); border: 1px solid var(--line);
  position: relative; overflow: hidden; animation: rise .35s ease-out both;
}
.qt-g::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.qt-g.me { border-color: color-mix(in srgb, var(--c) 70%, transparent); }
.qt-g-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-g-tip { font-size: 13px; color: var(--muted); }
.qt-g-pts { font-family: var(--font-display); font-weight: 900; min-width: 34px; text-align: right; }
.qt-g.p3 { box-shadow: 0 0 0 2px var(--gold), 0 0 22px -6px var(--gold); }
.qt-g.p3 .qt-g-pts { color: var(--gold); }
.qt-g.p1 .qt-g-pts { color: #3ddc84; }
.qt-players { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.qt-player {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px;
  background: rgba(22, 17, 52, .94); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); max-width: 100%;
}
.qt-player.done { box-shadow: 0 0 0 1px #3ddc84; }
.qt-player.off { border-style: dashed; }
.qt-p-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.qt-p-score { font-family: var(--font-display); font-weight: 800; }
.qt-p-state { color: #3ddc84; font-weight: 900; min-width: 10px; }

/* ===================== MAULWURF ===================== */
.mw { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 0 14px calc(16px + var(--safe-bottom)); overflow-y: auto; }
.mw-card {
  position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 16px; border-radius: 24px;
  background: linear-gradient(150deg, #fff6e6, #ffe2c7); color: #2b1d52; box-shadow: 0 18px 36px -20px #ff6b3d, inset 0 0 0 3px rgba(255, 107, 61, .35);
  animation: mwflip .55s cubic-bezier(.3, 1.4, .5, 1);
}
@keyframes mwflip { from { transform: rotateX(80deg); opacity: 0; } to { transform: none; opacity: 1; } }
.mw-cat { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7a4a2e; }
.mw-word { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 9vw, 40px); line-height: 1.1; overflow-wrap: anywhere; }
.mw-role { font-size: 13px; font-weight: 700; color: #5a3f8f; }
.mw-card.mole { background: radial-gradient(120% 120% at 50% 0%, #3a2470, #140c30); color: #fff; box-shadow: 0 18px 40px -16px #7b5cff, inset 0 0 0 3px rgba(123, 92, 255, .6); }
.mw-card.mole .mw-cat { color: #c9b8ff; }
.mw-card.mole .mw-word { color: #ff6b3d; text-shadow: 0 0 22px rgba(255, 107, 61, .6); letter-spacing: .2em; }
.mw-card.mole .mw-role { color: #ffd24a; font-size: 15px; }
.mw-card.reveal { background: linear-gradient(150deg, #fff6e6, #ffd9a8); }
.mw-phase { text-align: center; display: grid; gap: 4px; }
.mw-phase strong { font-family: var(--font-display); font-weight: 900; font-size: clamp(18px, 5.6vw, 26px); line-height: 1.15; }
.mw-phase span { color: #ebe5ff; font-size: 14px; }
.mw[data-phase="result"][data-outcome="caught"] .mw-phase strong { color: var(--good); }
.mw[data-phase="result"][data-outcome="guessed"] .mw-phase strong { color: var(--gold); }
.mw[data-phase="result"][data-outcome="escaped"] .mw-phase strong, .mw[data-phase="result"][data-outcome="tie"] .mw-phase strong { color: #ff6b3d; }
.mw[data-phase="result"] .mw-phase { animation: pop .45s cubic-bezier(.2, .9, .3, 1.3); }
.mw .timer { margin-top: -4px; }
.mw-hint { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.mw-hint input { font-size: 18px; font-weight: 700; text-align: center; }
.mw-hint .btn { width: auto; }
.mw-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mw-opt {
  min-height: 48px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(22, 17, 52, .94); cursor: pointer;
  font-weight: 800; font-size: 15px; overflow-wrap: anywhere;
}
.mw-opt:not(:disabled):hover { border-color: var(--accent2); }
.mw-opt:disabled { cursor: default; }
.mw-opt.right { background: linear-gradient(135deg, #3ddc84, #1fae63); color: #04140b; border-color: transparent; }
.mw-opt.wrong { box-shadow: 0 0 0 2px var(--bad); }
.mw-players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mw-p {
  position: relative; display: grid; gap: 4px; padding: 10px 12px 10px 16px; border-radius: 16px; min-width: 0;
  background: rgba(22, 17, 52, .94); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.mw-p::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.mw-p.me { border-color: color-mix(in srgb, var(--c) 70%, transparent); }
.mw-p.off { border-style: dashed; }
.mw-p.votable { padding: 0; }
.mw-pick { all: unset; display: grid; gap: 4px; padding: 10px 12px 10px 16px; cursor: pointer; border-radius: 16px; }
.mw-pick:focus-visible { outline: 3px solid var(--accent2); outline-offset: -3px; }
.mw-p.sel { box-shadow: 0 0 0 3px var(--accent2), 0 0 24px -6px var(--accent2); transform: scale(1.02); }
.mw-p.mine { box-shadow: 0 0 0 2px var(--accent2); }
.mw-p.accused { box-shadow: 0 0 0 3px #ff6b3d, 0 0 26px -6px #ff6b3d; }
.mw-p.mole { background: linear-gradient(135deg, #3a2470, #1b1240); }
.mw-name { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mw-h { font-family: var(--font-display); font-weight: 800; font-size: clamp(16px, 4.8vw, 21px); overflow-wrap: anywhere; color: #ffe2c7; }
.mw-h.none { font-family: inherit; font-size: 13px; color: var(--muted); font-weight: 600; }
.mw-badge { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; min-height: 1.2em; }
.mw-ok { color: var(--good); }
.mw-wait::after { content: '•••'; color: var(--muted); animation: blink 1.2s infinite; }
.mw-votes { color: #ebe5ff; }
.mw-pts { font-family: var(--font-display); font-size: 15px; color: var(--muted); }
.mw-pts.plus { color: var(--gold); }

/* ===================== PIKTO ===================== */
.pk { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 0 14px calc(16px + var(--safe-bottom)); overflow-y: auto; }
.pk-build, .pk-guess { display: grid; gap: 12px; }
.pk-task {
  display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px; border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 225, 77, .22), rgba(24, 18, 58, .96) 50%, rgba(255, 95, 162, .24));
  border: 1px solid rgba(255, 225, 77, .4); animation: pop .4s cubic-bezier(.2, .9, .3, 1.2);
}
.pk-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff3a6; }
.pk-term { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 7.5vw, 34px); line-height: 1.1; color: #ffe14d; text-shadow: 0 0 20px rgba(255, 225, 77, .45); overflow-wrap: anywhere; }
.pk-options { font-size: 12px; color: #ebe5ff; }
.pk-clue { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pk-slot {
  aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; font-size: clamp(26px, 9vw, 40px);
  border: 2px dashed rgba(255, 225, 77, .45); background: rgba(12, 9, 32, .6);
}
.pk-slot.full { border: 0; cursor: pointer; color: #2b1d52; background: linear-gradient(160deg, #fffaf0, #f3e4c8); box-shadow: 0 6px 14px -8px #000; padding: 0; }
.pk-slot, .pk-emoji, .pk-e, .pk-tabs button { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.pk-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.pk-tabs button { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(22, 17, 52, .94); font-size: 22px; cursor: pointer; }
.pk-tabs button[aria-selected="true"] { background: linear-gradient(135deg, #ffe14d, #ff5fa2); border-color: transparent; }
.pk-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.pk-emoji { min-height: 46px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .08); font-size: 26px; cursor: pointer; transition: transform .1s; }
.pk-emoji:active { transform: scale(.88); }
.pk-emoji:disabled { opacity: .35; cursor: default; }
.pk-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.pk-actions .btn { width: auto; }
.pk-actions .btn.primary { width: 100%; }
.pk-who { margin: 0; text-align: center; font-weight: 800; color: #ebe5ff; }
.pk-big {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 18px 10px; border-radius: 24px; min-height: 96px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(255, 225, 77, .2), rgba(18, 14, 44, .95) 60%); border: 1px solid rgba(255, 225, 77, .35);
}
.pk-e { font-size: clamp(40px, 13vw, 60px); line-height: 1; animation: pkin .5s cubic-bezier(.2, .9, .3, 1.5) both; }
@keyframes pkin { from { transform: scale(0) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.pk-answers { display: grid; gap: 8px; }
.pk-ans {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(22, 17, 52, .94); cursor: pointer; font-weight: 800; font-size: 16px; text-align: left;
  transition: transform .15s, box-shadow .2s;
}
.pk-ans:not(:disabled):hover { border-color: #ffe14d; }
.pk-ans:disabled { cursor: default; }
.pk-ans.chosen { box-shadow: 0 0 0 3px #ffe14d; }
.pk-ans.right { background: linear-gradient(135deg, #3ddc84, #1fae63); color: #04140b; border-color: transparent; transform: scale(1.02); }
.pk-ans.wrong { box-shadow: 0 0 0 2px var(--bad); }
.pk-dots { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pk-dots i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--c); color: #170d2e; }
.pk-status { margin: 0; text-align: center; font-weight: 700; min-height: 1.4em; }
.pk[data-phase="show"] .pk-status { font-family: var(--font-display); font-size: 16px; color: #ffe14d; animation: pop .35s; }
.pk-players { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pk-p {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px;
  background: rgba(22, 17, 52, .94); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); max-width: 100%;
}
.pk-p.done { box-shadow: 0 0 0 1px var(--good); }
.pk-p.off { border-style: dashed; }
.pk-p-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.pk-p-score { font-family: var(--font-display); font-weight: 800; }
.pk-p-plus { color: var(--gold); font-weight: 900; animation: pop .3s; }
