.matchdraw-room{--matchdraw-ink:#3b4445;--matchdraw-copper:#966c45;--matchdraw-paper:#f7f2e6;width:100%;max-width:1260px;margin:auto;color:var(--matchdraw-ink)}
.game-shell.wide:has(.matchdraw-room) .play{width:100%;margin:0 auto;align-self:start}
.game-shell .play .matchdraw-room .session-banner{max-width:none;margin:0 0 1rem;text-align:left}
.game-shell.wide .play .matchdraw-room h2{font-size:clamp(1.65rem,2.4vw,2.55rem);text-align:left;line-height:1.2}
.game-shell.wide .play .matchdraw-room .session-banner .meta{margin-inline:0;text-align:left}
.game-shell .play .matchdraw-room p{text-align:left;line-height:1.6}
.game-shell .play .matchdraw-room button{min-height:44px;white-space:normal}
.matchdraw-room .actions{justify-content:flex-start}
.matchdraw-brief{padding:1rem 1.3rem;background:var(--matchdraw-paper);border-left:5px solid var(--matchdraw-copper);box-shadow:3px 3px 0 #e1dfd5;overflow-wrap:anywhere}
.game-shell .play .matchdraw-room .matchdraw-command{font-size:clamp(1.2rem,1.8vw,1.55rem);line-height:1.55;max-width:none;margin:0 0 .9rem}
.matchdraw-drawers{display:flex;gap:.8rem 1.5rem;flex-wrap:wrap;border-top:1px solid #d3c9b6;padding-top:.7rem}
.matchdraw-drawers>span{display:flex;align-items:baseline;gap:.65rem}
.matchdraw-drawers b{font-size:.9rem}.matchdraw-drawers small{font-size:.82rem;color:#67716b}
.game-shell .play .matchdraw-room .matchdraw-guidance{max-width:900px;margin:1rem 0;font-size:.95rem}
.matchdraw-live{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(245px,.7fr);gap:2rem;align-items:start}
.matchdraw-clock{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:.3rem .5rem;text-align:left;padding:1rem 0;border-top:2px solid #b1997c;border-bottom:1px solid #cfc7b6}
.matchdraw-clock>span:first-child{grid-column:1/-1;font-size:.85rem;color:#4d5c56}
.matchdraw-clock strong{font:550 clamp(3rem,6vw,5rem)/1.15 ui-monospace,monospace;letter-spacing:-.06em}
.matchdraw-clock-unit{font-size:1.1rem;font-weight:600}
.matchdraw-clock progress{grid-column:1/-1;width:100%;height:6px;margin-top:.6rem;accent-color:#966c45}
.game-shell .play .matchdraw-room .matchdraw-live aside .actions{display:grid;grid-template-columns:1fr;margin-top:1rem}
.matchdraw-paused{display:grid;grid-template-columns:220px 1fr;gap:2rem;align-items:center;margin:1.3rem 0;max-width:900px}
.matchdraw-paused .matchdraw-clock{padding:.7rem 0}
.matchdraw-flip{display:flex;align-items:center;justify-content:center;gap:1.5rem;max-width:640px;margin:1.5rem auto}
.matchdraw-flip>span{display:grid;place-items:center;width:130px;height:130px;background:#ebe5d5;border:1px solid #b9b3a0;box-shadow:3px 4px 0 #d9d7cb;font:600 2rem ui-monospace,monospace;color:#8e816c}
.matchdraw-flip b{font-weight:400;font-size:1.8rem}
.game-shell .play .matchdraw-room .matchdraw-grade{max-width:none;margin:.9rem 0 0}
.matchdraw-condition{border:0;border-top:1px solid #c9c8b7;margin:0;padding:.65rem 0 .8rem;min-width:0}
.matchdraw-condition>legend{font-size:1rem;font-weight:650;padding:.15rem .5rem .15rem 0;max-width:100%;overflow-wrap:anywhere}
.matchdraw-condition>legend>span{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid #b59a7c;margin-right:.5rem;font-size:.8rem}
.matchdraw-two-papers{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:950px}
.matchdraw-paper-verdict{padding:0;border:0;min-width:0;margin:0}
.matchdraw-paper-verdict>legend{font-size:.82rem;color:#596b62;margin-bottom:.35rem;padding:0;font-weight:550}
.matchdraw-choices{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.game-shell .play .matchdraw-room .matchdraw-choices label{display:flex;align-items:center;gap:.45rem;padding:.45rem .65rem;min-height:44px;border:1px solid #b9c4b7;border-radius:3px;background:#f5f7ef;color:#344e44;font-size:.9rem;font-weight:550;cursor:pointer}
.matchdraw-choices label:has(input:checked){outline:2px solid #587563;outline-offset:-1px;background:#e5eddf}
.matchdraw-choices input{width:18px;height:18px;margin:0;accent-color:#587563;flex:none}
.matchdraw-grade-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;max-width:950px;margin:.6rem 0}
.matchdraw-grade-footer>span{font-size:.85rem;color:#4d5c56}
.matchdraw-grade [role=alert]{color:#a24c39;font-size:.9rem}
.matchdraw-reference{margin:1.1rem 0;border-top:1px solid #cbc8b8;padding-top:.5rem;max-width:850px;text-align:left}
.matchdraw-reference summary{display:flex;align-items:center;min-height:44px;font-weight:650;color:#7d5d3f;cursor:pointer}
.matchdraw-reference summary:before{content:'+';font-size:1.2rem;margin-right:.5rem}
.matchdraw-reference[open] summary:before{content:'−'}
.matchdraw-reference p{font-size:.9rem}
.matchdraw-reference canvas{display:block;width:min(100%,420px);height:auto;border:1px solid #b9ab92;margin-top:.8rem}
.matchdraw-scores{display:flex;gap:1.5rem;margin:.7rem 0 1rem}
.matchdraw-scores>span{display:flex;align-items:baseline;gap:.65rem;font-size:.95rem}
.matchdraw-scores strong{font:650 1.8rem ui-monospace,monospace}
.matchdraw-record{padding:1.2rem 0;border-top:2px solid #b8aa90;margin-top:1rem;text-align:left}
.matchdraw-record>header{display:flex;justify-content:space-between;gap:1rem;align-items:baseline}
.matchdraw-record h3{font-size:1.1rem;margin:.2rem 0}
.game-shell .play .matchdraw-room .matchdraw-record-command{margin:.8rem 0;font-size:1.1rem}
.game-shell .play .matchdraw-room .matchdraw-record-time{margin:.5rem 0 1rem;font-size:.85rem;color:#4d5c56}
.matchdraw-evidence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.matchdraw-evidence>section{padding:.9rem;background:#f5f3e9;border:1px solid #d1cebd;min-width:0}
.matchdraw-evidence h4{margin:0 0 .7rem;font-size:1rem;line-height:1.45;overflow-wrap:anywhere}
.game-shell .play .matchdraw-room .matchdraw-evidence-papers p{display:flex;justify-content:space-between;gap:.6rem;flex-wrap:wrap;font-size:.85rem;margin:.35rem 0}
.matchdraw-evidence-papers strong{white-space:nowrap}
.game-shell .play .matchdraw-room .matchdraw-evidence-reason{margin:.8rem 0 0;padding-top:.6rem;border-top:1px solid #cdc6b6;font-size:.85rem}
.matchdraw-evidence-reason b{font-size:1.1rem;margin-left:.5rem}
.matchdraw-archive{display:grid;gap:1.2rem}
@media(max-width:760px){.matchdraw-live{grid-template-columns:1fr;gap:1rem}.matchdraw-live aside{display:grid;grid-template-columns:120px 1fr;gap:1rem;align-items:start}.matchdraw-clock strong{font-size:3rem}.matchdraw-paper-pair{display:none}.matchdraw-brief{padding:.85rem 1rem}.matchdraw-drawers{gap:.6rem 1rem}.matchdraw-drawers>span{display:block}.matchdraw-drawers small{display:block;margin-top:.2rem}.matchdraw-paused{grid-template-columns:1fr;gap:.5rem}.matchdraw-paused .matchdraw-clock{max-width:200px}.matchdraw-evidence{grid-template-columns:1fr}.matchdraw-two-papers{gap:.65rem}.matchdraw-grade-footer{align-items:flex-start;flex-direction:column}.matchdraw-flip>span{width:100px;height:120px}.matchdraw-room .matchdraw-reference canvas{width:100%}}
@media(max-width:450px){.matchdraw-choices{grid-template-columns:1fr}.matchdraw-condition>legend{font-size:.95rem}.matchdraw-live aside{grid-template-columns:100px 1fr}.matchdraw-flip{gap:.8rem}.matchdraw-flip>span{width:90px;height:105px}.matchdraw-drawers b{font-size:.85rem}}
@media(prefers-reduced-motion:reduce){.matchdraw-room *{scroll-behavior:auto}}

.page-game .game-shell.theme-matchdraw:has(.matchdraw-room) {
  --matchdraw-red:#8f3150;
  --matchdraw-dark:#482130;
  background:radial-gradient(ellipse at 25% 5%,#fffaf0,#f4e3d5 90%);
}
.page-game .game-shell.theme-matchdraw:has(.matchdraw-room) .game-toolbar {
  background:#f8eadb;color:var(--matchdraw-dark);border-color:#c5a498;
}
.theme-matchdraw:has(.matchdraw-room) .game-toolbar .button {
  background:#fff6ec;color:#722c43;border-color:#b3898c;
}
.game-shell .play .matchdraw-room {--matchdraw-ink:#482130;--matchdraw-paper:#fff4e5}
.game-shell.theme-matchdraw .matchdraw-room .session-banner h2 {
  color:var(--matchdraw-ink);
  font-size:clamp(1.65rem,3.4vw,3.2rem);
  letter-spacing:-.028em;
}
.game-shell.theme-matchdraw .matchdraw-room .session-banner .meta {color:#8a304d}
.matchdraw-brief {
  border:1px solid #bc8d8b;
  border-radius:5px;
  background:repeating-linear-gradient(133deg,#8842240b 0 1px,transparent 1px 5px),var(--matchdraw-paper);
  box-shadow:5px 5px 0 #a35062;
}
.game-shell .play .matchdraw-room .matchdraw-command {
  font-family:Georgia,"Noto Serif SC",SimSun,serif;
  font-size:clamp(1.22rem,2.4vw,2rem);
  line-height:1.47;
}
.matchdraw-drawers {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  border-color:#d7b8a7;
}
.matchdraw-drawers > span {
  display:flex;flex-wrap:wrap;
  gap:3px .65rem;align-items:baseline;padding:.6rem .7rem;
  border:1px solid #c59a95;border-radius:3px;
  background:#f2d6cf;
}
.matchdraw-drawers > span:nth-child(2) {background:#f6e4c6;border-color:#c8a581}
.matchdraw-drawers small {margin:0;color:#633b3a}
.game-shell .play .matchdraw-room .matchdraw-guidance {color:#62464a;margin:1.1rem 0}
.matchdraw-clock,.matchdraw-paused .matchdraw-clock {
  padding:clamp(.8rem,2vw,1.35rem);
  border:1px solid #7e5260;
  border-radius:10px;
  background:repeating-linear-gradient(135deg,#ffffff09 0 1px,transparent 1px 5px),linear-gradient(152deg,#633343,#482336);
  color:#fff4de;
  box-shadow:0 5px 0 #41212d;
}
.matchdraw-clock > span:first-child {color:#f7decc}
.matchdraw-clock progress {accent-color:#f0ad8c}
.matchdraw-clock progress::-webkit-progress-bar {background:#936675}
.matchdraw-clock progress::-webkit-progress-value {background:#f0ad8c}
.matchdraw-clock progress::-moz-progress-bar {background:#f0ad8c}
.theme-matchdraw .matchdraw-room .button:not(.secondary) {background:var(--matchdraw-red);border-color:var(--matchdraw-red);color:#fff7ec}
.theme-matchdraw .matchdraw-room .button:not(.secondary):hover {background:#72253f}
.theme-matchdraw .matchdraw-room .button.secondary {color:#74334a}
.theme-matchdraw .matchdraw-live aside .button.secondary {background:#fff7ed;border-color:#ac7781}
.matchdraw-flip > span {background:#f0d4ce;border-color:#c59a95;color:#65304b;box-shadow:3px 4px 0 #d0ac9e}
.matchdraw-flip > span:last-child {background:#f6e4c6}
.matchdraw-condition {border-color:#bfa193}
.matchdraw-condition > legend > span {background:#752e49;color:#fff6e4;border-color:#752e49;border-radius:3px}
.matchdraw-paper-verdict > legend {color:#63454c}
.game-shell .play .matchdraw-room .matchdraw-choices label {
  background:#fff8ef;border-color:#c4a496;color:#573342;
}
.game-shell .play .matchdraw-room .matchdraw-choices label:has(input:checked) {background:#f1d8d7;outline-color:#8f3150}
.matchdraw-choices input {accent-color:#8f3150}
.matchdraw-choices label:has(input:focus-visible) {outline:3px solid #9a5b32;outline-offset:2px}
.matchdraw-record,.matchdraw-reference {border-color:#bfa193}
.matchdraw-evidence > section {background:#fff3e4;border-color:#c6a99c;border-radius:6px}
.page-game .game-shell.theme-matchdraw.wide .play:has(.matchdraw-room) {
  justify-content:flex-start;
  padding-block-start:clamp(1rem,5dvh,3.5rem);
}
.game-shell.wide .matchdraw-room {margin-block:0}
@media(max-width:760px) {
  .matchdraw-live aside {grid-template-columns:minmax(100px,.75fr) minmax(0,1fr);gap:11px}
  .game-shell .play .matchdraw-room .matchdraw-live aside .actions {margin:0}
  .matchdraw-clock strong {font-size:clamp(2.25rem,8vw,3rem)}
  .matchdraw-clock > span:first-child {font-size:.76rem;line-height:1.45}
  .matchdraw-clock progress {margin-top:.2rem}
  .page-game .game-shell.theme-matchdraw.wide .play:has(.matchdraw-room) {justify-content:flex-start;padding-block-start:1rem}
}
