/* 노래 맞추기 reuses the card, chat and lobby shells from style.css and adds
   only what the game itself needs: the round dial, the hint chips, the reveal
   card and the scoreboard. Every colour still resolves through themes.css. */

.round-field{margin-bottom:17px}
.round-legend{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}
.round-choice{display:flex;gap:8px}
.round-choice button{flex:1;border:1px solid var(--line);background:var(--input);color:var(--muted);border-radius:9px;padding:12px 0;font-size:12px;font-variant-numeric:tabular-nums}
.round-choice button[aria-checked=true]{border-color:var(--green);background:var(--chip);color:var(--green);font-weight:700}

.pack-select{display:block;width:100%;min-width:0;border:1px solid var(--line);background:var(--input);color:var(--text);border-radius:9px;padding:13px 14px;font:inherit;font-size:13px;cursor:pointer}
.pack-select:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.pack-select:disabled{cursor:default;opacity:.6}
.pack-description{margin:8px 0 0;font-size:11px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}
.pack-description:empty{display:none}

.stage-card{text-align:center;padding:28px 34px;align-self:start}
.stage-card h2{font-size:20px;line-height:1.5;overflow-wrap:anywhere;margin:22px 0 0}
.stage{padding:26px 0 4px}

/* The dial is the only clock on screen, so it carries the number inside it
   rather than beside it. The stroke is drawn from the top and shortened by
   dash offset, which stays smooth without a per-frame layout. */
.stage-clock{position:relative;width:196px;height:196px;margin:0 auto}
.stage-clock svg{width:100%;height:100%;transform:rotate(-90deg)}
.stage-clock circle{fill:none;stroke-width:6;stroke-linecap:round}
.dial-track{stroke:var(--line)}
.dial-value{stroke:var(--green);stroke-dasharray:326.7;stroke-dashoffset:0;transition:stroke-dashoffset .25s linear,stroke .3s}
.stage-clock.hurry .dial-value{stroke:var(--badge-ink)}
.stage-count{position:absolute;inset:0;display:grid;place-content:center;gap:4px}
.stage-count b{font-family:var(--display);font-size:52px;font-weight:500;letter-spacing:-2px;line-height:1;font-variant-numeric:tabular-nums;color:var(--text)}
.stage-count small{font-size:10px;letter-spacing:1.4px;color:var(--muted)}
.stage-clock.solved .stage-count b{color:var(--green)}

.skip-line{margin:10px 0 0;font-size:11px;color:var(--muted-2);font-variant-numeric:tabular-nums}
.skip-line.voted{color:var(--eyebrow)}

.hints{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:18px;min-height:30px}
.hint{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--chip-line);background:var(--chip);border-radius:20px;padding:7px 13px;font-size:12px;color:var(--chip-ink)}
.hint b{font-size:13px;letter-spacing:1px;color:var(--text-2)}
.hint.pending{border-style:dashed;background:transparent;color:var(--muted-2);border-color:var(--line)}

.reveal{margin-top:20px;border:1px solid var(--chip-line);border-radius:14px;background:var(--chip);padding:18px}
.reveal .eyebrow{color:var(--eyebrow)}
.reveal .place{display:block;font-family:var(--display);font-size:25px;letter-spacing:-1px;line-height:1.35;margin:9px 0 5px;color:var(--text)}
.reveal .ost{display:block;font-size:12px;color:var(--muted)}
.reveal .also{display:block;font-size:11px;color:var(--muted-2);margin-top:11px;line-height:1.7;overflow-wrap:anywhere}

.stage-card .start-button{background:var(--green);border-color:var(--green);color:var(--accent-ink);padding:10px 22px}
.stage-card .volume{flex-wrap:wrap}

.scores{display:flex;flex-direction:column;gap:9px;margin-top:20px}
.score-row{display:grid;grid-template-columns:22px 32px minmax(0,1fr) auto;align-items:center;gap:11px;border:1px solid var(--line);border-radius:12px;background:var(--input);padding:10px 13px}
.score-row .rank{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.score-row .who{min-width:0}
.score-row .name{display:block;font-size:12px;color:var(--member-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.score-row .detail{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.score-row .points{font-family:var(--display);font-size:20px;color:var(--text);font-variant-numeric:tabular-nums}
/* A player still in the round and a player already through read differently at
   a glance, which is the whole point of watching the board while guessing. */
.score-row.solved{border-color:var(--green);background:var(--chip)}
.score-row.away{opacity:.5}
/* Not a failure, just someone the room is still waiting on, so it reads as a
   dashed outline rather than as an error colour. */
.score-row.hushed{border-style:dashed;border-color:var(--chip-line)}
.score-row.hushed .detail{color:var(--eyebrow)}
.score-row.me .name{font-weight:700}
.score-row.me{grid-template-columns:22px 32px minmax(0,1fr) auto auto}
.score-row .nickname-actions{margin-left:0}
.score-row .avatar{background:var(--member-tint);color:var(--member-color);border:1px solid var(--member-color)}

.chat-line.correct .chat-text{background:var(--chip);border-color:var(--green);color:var(--green);border-radius:20px}

@media(max-width:760px){
  .stage-card{padding:24px 20px}
  .stage-clock{width:158px;height:158px}
  .stage-count b{font-size:42px}
}
