/* Party rooms — builds on games.css tokens (inside .gc) */
.pr-hero{text-align:center;max-width:520px;margin:10px auto 30px}
.pr-hero h1{font-size:clamp(28px,5vw,44px);letter-spacing:-.03em;margin-bottom:10px}
.pr-hero p{color:var(--muted);font-size:16px}
.pr-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:820px;margin:0 auto}
.pr-form h3{font-size:18px;margin:0 0 14px}
.pr-form label{display:block;font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:12px 0 6px}
.pr-form input,.pr-form select{width:100%;font:inherit;font-size:15px;padding:11px 13px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--ink)}
.pr-form input:focus,.pr-form select:focus{outline:none;border-color:var(--accent)}
.pr-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pr-teams{display:flex;gap:8px;flex-wrap:wrap}
.pr-team{font:inherit;font-size:13px;font-weight:700;padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--muted);cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.pr-team .dot{width:10px;height:10px;border-radius:50%}
.pr-team.on{color:#fff;border-color:transparent} /* selected chip gets an inline background from teamColor() */
.pr-err{text-align:center;color:var(--gc-red);font-weight:600;margin-top:16px}
.pr-mute{font:inherit;font-size:15px;width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:var(--surface);cursor:pointer;line-height:1}
.pr-mute:hover{border-color:var(--accent)}

/* room */
.pr-roomhead{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.pr-code{font-size:14px;color:var(--muted)}
.pr-code b{font-size:22px;color:var(--accent);letter-spacing:.12em;margin:0 8px}
.pr-copy{font:inherit;font-size:12.5px;font-weight:600;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink-soft);cursor:pointer}
.pr-copy:hover{border-color:var(--accent);color:var(--accent)}
.pr-roundinfo{margin-left:auto;font-size:14px;font-weight:700;color:var(--ink-soft)}
.pr-timer b{color:var(--accent);font-variant-numeric:tabular-nums}
.pr-leave{font:inherit;font-size:12.5px;font-weight:600;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--muted);cursor:pointer}
.pr-leave:hover{border-color:var(--gc-red);color:var(--gc-red)}
.pr-teambar{display:flex;height:36px;border-radius:999px;overflow:hidden;margin-bottom:16px;font-size:13px;font-weight:800;color:#fff}
.pr-teambar .seg{display:grid;place-items:center;min-width:60px;transition:flex .5s ease}
.pr-teambar .red{background:var(--gc-red)}.pr-teambar .blue{background:var(--gc-blue)}

.pr-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;align-items:start}
.pr-main{min-height:240px}
.pr-lobbytitle{font-size:20px;font-weight:800;text-align:center;margin-bottom:8px}
.pr-settings{text-align:center;color:var(--muted);font-size:13.5px;margin-bottom:18px}
.pr-waitmsg{text-align:center;color:var(--muted);font-size:14px;margin-top:14px}
.pr-reveal{text-align:center;font-size:20px;font-weight:800;margin-bottom:18px}
.pr-reveal .num{color:var(--accent);font-size:40px;display:block;margin-top:6px}

/* players / standings */
.pr-sidetitle{font-size:16px;margin:0 0 12px}
.pr-player{display:flex;align-items:center;gap:10px;padding:9px 4px;border-bottom:1px solid var(--line);font-size:14.5px}
.pr-av{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;color:#fff;background:var(--muted);flex:none}
.pr-av.red{background:var(--gc-red)}.pr-av.blue{background:var(--gc-blue)}
.pr-name{font-weight:600;display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pr-host{font-size:9px;font-weight:800;color:var(--accent);border:1px solid var(--accent);border-radius:999px;padding:1px 5px}
.pr-off{opacity:.45}
.pr-pstatus{margin-left:auto;font-size:12.5px;color:var(--muted);flex:none}
.pr-pstatus.solved{color:var(--gc-good);font-weight:700}
.pr-pts{margin-left:auto;font-weight:800;font-variant-numeric:tabular-nums;flex:none}

/* podium */
.pr-winteam{text-align:center;font-size:20px;font-weight:800;margin-bottom:18px}
.pr-podium{display:flex;justify-content:center;align-items:flex-end;gap:12px;margin-bottom:22px}
.pr-pod{width:33%;max-width:120px;text-align:center}
.pr-pod .pr-av{margin:0 auto 8px;width:42px;height:42px;font-size:17px}
.pr-pod .bar{border-radius:12px 12px 0 0;border:1px solid var(--line);border-bottom:none;display:flex;align-items:flex-start;justify-content:center;padding-top:10px;font-weight:800;background:var(--surface-2)}
.pr-pod.p1 .bar{height:120px;background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.pr-pod.p2 .bar{height:88px}.pr-pod.p3 .bar{height:66px}
.pr-pod .nm{font-weight:700;font-size:14px;margin-top:8px}
.pr-pod .pts{font-size:12px;color:var(--muted)}

@media(max-width:760px){.pr-cards,.pr-grid{grid-template-columns:1fr}}
