/* ui-charades: 你比划我猜 (docs/design/CHARADES.md「界面」). Team colours and lobby: ui-shell.css; pick grid, hero and
   VS pair: ui-undercover.css; guess input, solved bubble, cover button: ui-draw.css. Only this game's layout lives here. */
.ch{--dg-red:#C8412D;--dg-green:#3F7A4B}
/* ---- scoreboard ---- */
.ch-board{align-items:stretch}
.ch-side{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 8px!important;text-align:center;min-width:0}
.ch-side.live{background:var(--team-tint);box-shadow:var(--hard)}
.ch-side .chip{font-weight:900}
.ch-score{font-size:40px;font-weight:950;line-height:1.1}
/* ---- setup ---- */
.ch-setup h2{font-size:24px;font-weight:900;margin:2px 0 10px}
.ch-teams{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.ch-team{min-height:48px;border:2px solid var(--ink);border-radius:14px;background:var(--team-tint);color:var(--ink);font-size:17px;font-weight:900;box-shadow:var(--hard-sm);cursor:pointer;transition:transform .18s var(--ease-pop),box-shadow .18s}
.ch-team[aria-pressed=true]{background:var(--team);box-shadow:var(--hard);transform:translate(-2px,-2px)}
.ch-team[aria-pressed=true]::before{content:"✓ "}
.ch-only{margin:0 0 6px;font-weight:800}
.ch-grid{margin-top:8px}
/* ---- play ---- */
.ch-head{display:flex;align-items:center;gap:12px;background:var(--team-tint)}
.ch-live{position:relative;display:flex;align-items:baseline;gap:4px;margin-top:2px}
.ch-live b{font-size:44px;font-weight:950;line-height:1}
.ch-live span{font-size:16px;font-weight:850}
.ch-float{left:56px;top:-6px}
.ch .ch-ring{--size:70px}
.ch .ch-ring span{font-size:18px}
.ch-hit:empty{display:none}
.ch-hit .dg-msg{align-self:stretch}
.ch-word{position:relative;background:var(--team);text-align:center;padding:14px 16px 20px!important}
.ch-wordtop{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left}
.ch-wordbox{position:relative;display:grid;place-items:center;min-height:96px;margin-top:6px;border-radius:14px}
.ch-wordbox strong{font-size:clamp(34px,11vw,52px);font-weight:950;letter-spacing:4px;line-height:1.15;overflow-wrap:anywhere}
.ch-wordbox:not(.peek) .peek-hint{display:none}
.ch-wordbox.peek{background:#fffaf099;border:2px dashed var(--ink)}
.ch-wordbox.peek .peek-hint{font-size:17px}
.ch-feed{min-height:96px;max-height:30vh;flex:none}
.ch-feed:empty::before{content:"队友猜的答案会出现在这里";margin:auto;font-size:13px;font-weight:700;color:var(--sub)}
.ch-solved{display:flex;flex-wrap:wrap;gap:6px}
.ch-solved:empty{display:none}
.ch-solved .chip{background:var(--sage)}
.ch-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}
.ch-me{margin:0;font-size:14px;font-weight:800;color:var(--sub);min-width:0;overflow-wrap:anywhere}
.ch-me.no{color:var(--bad)}.ch-me.ok{color:var(--ok)}
.ch-skip{flex:none;min-height:44px}
.ch-dock{position:sticky;bottom:0;background:var(--bg)}
.ch-watch h2{font-size:24px;font-weight:900;margin:4px 0}
/* ---- turn end / settle ---- */
.ch-turnhero{background:var(--team-tint)}
.ch-turnhero h2 b{font-size:56px}
.ch-stamp{right:10px;top:12px;font-size:18px;padding:2px 8px}
.ch-results{padding:6px 14px!important}
.ch-res{display:flex;align-items:center;gap:10px;min-height:44px;border-bottom:2px dashed #29283126}
.ch-res:last-child{border-bottom:0}
.ch-res b{flex:1;min-width:0;font-size:17px;overflow-wrap:anywhere}
.ch-mark{flex:none;width:28px;height:28px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;font-weight:900;background:var(--card)}
.ch-res.ok .ch-mark{background:var(--sage)}
.ch-res.skip{color:var(--sub)}.ch-res.skip b{text-decoration:line-through;text-decoration-thickness:2px}
.uc-hero.ch-win{background:var(--team)}
.ch-list summary{display:flex;align-items:center;gap:8px;min-height:44px;font-weight:800;cursor:pointer;list-style:none}
.ch-list summary::-webkit-details-marker{display:none}
.ch-list summary::after{content:"▾";margin-left:auto}
.ch-list[open] summary::after{content:"▴"}
@media (max-width:360px){.ch-score{font-size:34px}.ch-live b{font-size:38px}.ch .ch-ring{--size:62px}}
@media (prefers-reduced-motion:reduce){.ch-float{display:none}}
