.five-room{--five-ink:#45354e;--five-accent:#b8872e;--five-line:#d4c7b9;--five-paper:#fffcf6;width:min(100%,1200px);margin-inline:auto;color:var(--five-ink);text-align:left}
.five-room .session-banner{text-align:left;margin:0 0 20px}
.game-shell .play .five-room .session-banner h2{font-size:clamp(1rem,2vw,1.3rem);font-weight:700;color:#6d5f71}
.game-shell .play .five-room:is([data-five-phase="judge"],[data-five-phase="result"]) .session-banner h2{
  font-size:clamp(1.55rem,3.2vw,2.55rem);color:var(--five-ink)
}
.five-stage{display:grid;grid-template-columns:minmax(0,1fr) 310px;align-items:center;gap:50px;margin:18px 0 44px}
.five-prompt{min-width:0}
.game-shell .play .five-room .five-prompt p{font-size:1rem;font-weight:750;text-align:left;margin:0 0 15px;color:#836b3d}
.game-shell .five-room .five-prompt h2{font-size:clamp(1.9rem,4.3vw,3.7rem);font-weight:800;line-height:1.3;text-align:left;margin:0;overflow-wrap:anywhere;word-break:normal}
.five-dial{--five-progress:100%;position:relative;isolation:isolate;display:grid;place-items:center;width:100%;aspect-ratio:1;padding:35px 24px}
.five-dial:before{
  content:'';position:absolute;inset:0;border-radius:50%;
  background:conic-gradient(var(--five-accent) var(--five-progress),#e7dfd2 0);
  box-shadow:inset 0 1px 2px #3d204340,0 9px 18px #45354e21;z-index:-2;
}
.five-dial:after{
  content:'';position:absolute;inset:13px;border-radius:50%;z-index:-1;
  background:radial-gradient(ellipse at 34% 26%,#fffdfa,#f7ecdb);
  box-shadow:inset 0 0 0 1px #b8872e33;
}
.game-shell .five-room .five-dial .table-clock,.five-static-clock{display:grid;justify-items:center;align-content:center;gap:6px;background:transparent!important;color:var(--five-ink)!important;padding:0;margin:0;min-width:0;width:100%;border:0;border-radius:0}
.game-shell .five-room .five-dial .table-clock strong,.five-static-clock strong{font-size:clamp(4rem,8vw,6.7rem);line-height:1;font-variant-numeric:tabular-nums;font-weight:800}
.game-shell .five-room .five-dial .table-clock span,.five-static-clock span{font-size:.85rem;color:#756779}
.five-dial .table-clock progress{display:none}
.five-beats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;position:absolute;left:12%;right:12%;bottom:-29px;list-style:none;padding:0;margin:0}
.five-beats li{display:flex;align-items:center;justify-content:center;min-height:27px;border-top:4px solid #b8872e;font-size:.73rem;color:#756779;font-variant-numeric:tabular-nums}
.five-beats [data-state="active"]{border-color:#634469;color:#45354e;font-weight:800}
.five-beats [data-state="done"]{border-color:#ded5c8;color:#a69b8d}
.game-shell .play .five-room .five-cue{text-align:left;font-size:1rem;line-height:1.7;margin:18px 0 24px;max-width:50rem;color:#6d5f71}
.five-room>.actions{justify-content:flex-start;margin-inline:0}
.five-scores{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:26px 0}
.five-scores li{display:flex;justify-content:space-between;align-items:baseline;gap:17px;border:1px solid var(--five-line);border-radius:5px;background:#fff;padding:8px 12px;min-width:100px;font-size:.83rem}
.five-scores li.is-current{border:2px solid #917347;background:#fff7e6;padding:7px 11px}
.five-scores strong{font-size:1.05rem;font-variant-numeric:tabular-nums}
.five-room[data-five-phase="judge"] .five-prompt{padding:20px 24px;background:var(--five-paper);border:1px solid var(--five-line);border-left:5px solid var(--five-accent);border-radius:5px;margin:20px 0}
.five-room[data-five-phase="judge"] .five-prompt h2{font-size:clamp(1.6rem,3vw,2.5rem)}
.five-quick[hidden],.five-room:has(>.five-evidence[open])>.five-quick{display:none}
.five-quick .actions{justify-content:flex-start}
.five-quick .button{min-height:52px}
.five-evidence{border:1px solid var(--five-line);border-radius:5px;padding:14px 20px;margin:22px 0;max-width:58rem;background:#fff}
.five-evidence summary{cursor:pointer;min-height:44px;display:list-item;padding:10px 0;font-weight:650;line-height:1.5}
.game-shell .play .five-room .five-evidence p{text-align:left;font-size:.9rem;line-height:1.65;color:#6d5f71;margin:0 0 12px}
.game-shell .play .five-evidence form{margin-inline:0;max-width:none}
.game-shell .play .five-room [data-five-error]{color:#8c393f}
.five-room [data-five-error]:empty{display:none}
.five-evidence-row{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:20px;align-items:end;margin:16px 0}
.five-evidence-row>label:first-child{display:grid;gap:8px;font-size:.9rem;font-weight:650;min-width:0}
.five-room [data-five-answer]{min-width:0;width:100%;min-height:48px;font:inherit;padding:10px 12px;border:1px solid #b8a891;border-radius:5px;color:var(--five-ink);background:var(--five-paper)}
.game-shell .play .five-evidence .five-counts{display:flex;align-items:center;gap:9px;min-height:48px;font-size:.9rem;cursor:pointer}
.five-room [data-five-counts]{width:22px;height:22px;accent-color:#7e5b85;flex:none}
.five-room input:focus-visible,.five-room summary:focus-visible{outline:3px solid #866b91;outline-offset:3px}
.five-scoreboard{max-width:38rem;margin:20px 0}
.game-shell .five-scoreboard .scores{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem 1rem;columns:auto;
}
.five-archive{border-top:2px solid #a58d6b;margin:28px 0;padding-top:20px}
.five-archive>h3{font-size:1.1rem;margin:0 0 20px}
.five-archive>ol{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.five-record{border:1px solid var(--five-line);border-radius:5px;background:#fff;padding:18px 22px;min-width:0}
.five-record-meta{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:baseline;font-size:.8rem;line-height:1.5;color:#756779}
.five-record-meta>strong:last-child{margin-left:auto;color:var(--five-ink)}
.five-record h4{font-size:1.05rem;line-height:1.6;margin:16px 0 12px;overflow-wrap:anywhere}
.game-shell .five-room .five-no-notes{text-align:left;font-size:.8rem;color:#756779;margin:10px 0}
.five-record-answers{list-style:decimal;padding-left:20px;margin:0}
.five-record-answers li{padding:8px 0;line-height:1.5;border-top:1px solid #ebe2d7;font-size:.87rem;overflow-wrap:anywhere}
.five-record-answers strong{font-size:.78rem;margin-left:12px;color:#756779}
@media(max-width:699px){.five-stage{grid-template-columns:minmax(0,1fr);gap:24px;margin:20px 0 40px}.five-dial{width:195px;justify-self:center}.game-shell .five-room .five-prompt h2{font-size:1.9rem}.game-shell .five-room .five-prompt p{font-size:.9rem;margin-bottom:10px}.game-shell .five-room .five-cue{font-size:.9rem;margin:18px 0}.five-scores{gap:6px}.five-scores li{min-width:88px;padding:7px 9px;font-size:.75rem;gap:10px}.five-scores li.is-current{padding:6px 8px}.five-evidence{padding:12px 14px}.five-evidence-row{grid-template-columns:minmax(0,1fr) 80px;gap:12px}.five-counts{gap:7px;font-size:.8rem}.five-room[data-five-phase="judge"] .five-prompt{padding:16px 18px}.five-archive>ol{grid-template-columns:minmax(0,1fr)}.five-record{padding:16px}}
.game-shell .play .five-room [data-five-long] h2{font-size:clamp(1.05rem,2.25vw,2.35rem);line-height:1.4}
@media(max-width:699px){
  .five-stage>.five-prompt[data-five-long]~.five-dial{width:154px}
  .game-shell .play .five-room .five-cue{font-size:.9rem;margin:14px 0 18px}
  .game-shell .play .five-evidence .five-counts{gap:7px;font-size:.8rem}
}
@media(prefers-reduced-motion:reduce){.five-dial:before{transition:none}}

.page-game .game-shell.theme-five:has(.five-room) {
  --five-stage-color:#fff0d6;--five-deep:#1a376b;
  background:radial-gradient(ellipse at 27% 0,#fffaf0,var(--five-stage-color) 78%);color:var(--five-deep);
}
.page-game .game-shell.theme-five:has(.five-room) .game-toolbar {
  background:var(--five-stage-color);color:var(--five-deep);border-color:#d4aa78;
}
.page-game .game-shell.theme-five:has(.five-room) .game-toolbar .button,
.page-game .game-shell.theme-five .five-room .button.secondary {
  color:var(--five-deep);background:#fff9eb;border-color:#ae936f;
}
.page-game .game-shell.theme-five .five-room .button:not(.secondary,.quiet) {
  background:#f7a53e;color:#172e59;border-color:#a76128;box-shadow:0 2px 0 #b67b3b;
}
.game-shell.theme-five .five-room {
  --five-ink:#1b376a;--five-accent:#d85632;--five-paper:#fff8e9;--five-line:#d8b787;
}
.game-shell.theme-five .play .five-room .session-banner {
  margin:0 0 .8rem;max-width:none;text-align:left;
}
.game-shell.theme-five .play .five-room .session-banner>:is(h2,.meta) {
  margin-inline:0;text-align:left;color:var(--five-deep);
}
.five-stage {
  grid-template-columns:minmax(0,1fr) minmax(0,290px);
  grid-template-areas:"prompt dial" "controls dial";
  gap:.9rem clamp(1.25rem,5vw,4.3rem);align-items:center;margin:1rem 0 1.5rem;
}
.five-stage .five-prompt {grid-area:prompt}
.five-dial {grid-area:dial}
.five-play-controls {grid-area:controls;min-width:0}
.game-shell .play .five-room .five-play-controls .actions {justify-content:flex-start;margin:0;flex-wrap:wrap}
.game-shell .play .five-room .five-cue {margin:.75rem 0 1rem;color:#3c5072}
.five-prompt,.five-room[data-five-phase=judge] .five-prompt {
  position:relative;border:1px solid #d9b78b;border-radius:13px;
  background:repeating-linear-gradient(118deg,#b983210a 0 1px,transparent 1px 5px),linear-gradient(145deg,#fffcf5,#fff1d6);
  box-shadow:0 5px 0 #faa54f,0 9px 0 #e38c3a,0 13px 20px #7c4b1926;
}
.five-stage .five-prompt {padding:clamp(1.1rem,4vw,3.75rem)}
.game-shell .play .five-room .five-prompt p {color:#794624}
.game-shell .five-room .five-prompt h2 {color:var(--five-deep);letter-spacing:-.025em}
.five-dial:before {
  background:conic-gradient(var(--five-accent) var(--five-progress),#eedab5 0);
  box-shadow:inset 0 1px 2px #98471a50,0 7px 17px #9b5e2530;
}
.five-dial:after {background:radial-gradient(ellipse at 32% 22%,#fff8dd,#ffdf8e)}
.game-shell .five-room .five-dial .table-clock span,.five-static-clock span {color:#4e4d59}
.five-beats li {border-color:#b06c29;color:#68452b}
.five-beats [data-state=active] {border-color:#a34127;color:#82361e}
.five-beats [data-state=done] {border-color:#cbb693;color:#73614c}
.five-scores li {min-width:0;color:#243d64;border-color:#a7b7cf;background:#f9fbfe}
.five-scores li.is-current {background:#dbe9f8;border-color:#4770a0}
.five-evidence,.five-record {background:#fffaf1}
.five-room [data-five-counts] {accent-color:#245583}
@media(max-width:699px) {
  .page-game .game-shell.theme-five.wide .play:has(.five-room) {
    min-height:0;margin-block:0;justify-content:flex-start;padding-block:1.05rem 2rem;
  }
  .five-stage {grid-template-columns:minmax(0,1fr);grid-template-areas:"prompt" "dial" "controls";gap:1.35rem}
  .five-dial {width:min(100%,166px);margin:0 0 1.3rem}
  .five-dial:after {inset:9px}
  .five-scores {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:1rem 0}
  .five-scores li {gap:.2rem;overflow-wrap:anywhere}
}
