.categories-room{--category-ink:#164d49;--category-line:#a8cbc4;--category-wash:#eff8f6;width:min(100%,1120px);margin-inline:auto;color:var(--category-ink);text-align:left}
.categories-room .session-banner{margin:0 0 20px;text-align:left}
.categories-room .category-arena{display:grid;grid-template-columns:150px minmax(0,1fr) auto;align-items:center;gap:24px;margin:16px 0 22px}
.categories-room .category-letter{text-align:left;min-width:0}
.categories-room .category-letter strong{display:block;font-size:clamp(4rem,8vw,7rem);font-weight:850;line-height:1;letter-spacing:-.06em;font-variant-numeric:tabular-nums}
.categories-room .category-letter p{font-size:.8rem;line-height:1.5;color:#466b65;margin:14px 0 0;max-width:14rem}
.categories-room .category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;width:100%;list-style:none;margin:0;padding:0}
.categories-room .category-grid li{min-width:0;min-height:90px;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere;padding:16px 10px;background:var(--category-wash);border:1px solid var(--category-line);border-top:5px solid #3f8b7e;border-radius:5px;text-align:center;font-weight:750;font-size:1rem;line-height:1.45}
.categories-room .category-paper-hint,.categories-room .hint{font-size:.9rem;line-height:1.6;color:#466b65}
.category-review-reference{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:24px;margin:22px 0}
.categories-room .category-review-reference .category-letter strong{font-size:4.5rem}
.categories-room .category-review-reference .category-letter p{display:none}
.categories-room .category-review-reference .category-grid li{min-height:65px;padding:12px 8px;font-size:.95rem}
.category-score-rule{font-weight:750;font-size:1.1rem;margin:18px 0 10px}
.category-correction{border-left:4px solid #ba7c2e;padding:12px 16px;background:#fff4dd;line-height:1.6}
.game-shell .play .categories-room [data-table-form="record"]{width:100%;max-width:none;margin-inline:0}
.category-score-desk{display:grid;gap:12px;margin:20px 0}
.category-player-row{min-width:0;border-bottom:1px solid var(--category-line);padding:10px 0}
.category-player-total{display:flex;align-items:center;justify-content:space-between;gap:16px}
.category-player-total>strong{font-size:1.05rem}
.category-player-total label{display:flex;align-items:center;gap:12px;font-size:.88rem}
.categories-room .category-player-total input{width:88px;min-height:46px;padding:8px;border:1px solid #77a79d;border-radius:5px;background:#f7fbfa;color:var(--category-ink);text-align:center;font-size:1.3rem;font-weight:750}
.category-cell-editor{margin-top:10px}
.category-cell-editor summary{cursor:pointer;font-size:.88rem;color:#38675e;padding:7px 0;width:fit-content}
.category-cell-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;gap:12px;margin-top:10px}
.category-cell-grid label{display:grid;gap:8px;min-width:0;font-weight:650;font-size:.85rem;overflow-wrap:anywhere}
.category-cell-grid select{width:100%;min-width:0;min-height:43px;border:1px solid #77a79d;border-radius:5px;background:#f7fbfa;color:var(--category-ink);padding:8px 6px;font:inherit}
.categories-room input:focus-visible,.categories-room select:focus-visible,.categories-room summary:focus-visible{outline:3px solid #267d71;outline-offset:3px}
.category-ledger{border-top:2px solid #377f73;margin:28px 0;padding-top:18px}
.category-ledger h3{font-size:1.1rem;margin:0 0 16px}
.category-ledger ol{list-style:none;padding:0;margin:0}
.category-ledger li{display:grid;grid-template-columns:42px minmax(0,1fr);gap:16px;border-top:1px solid #c6dcd6;padding:14px 0}
.category-ledger-letter{font-size:1.8rem;line-height:1.2}
.category-ledger-scores{display:flex;align-items:center;gap:10px 22px;flex-wrap:wrap;font-size:.9rem}
.category-ledger-scores>span{display:flex;gap:9px;white-space:nowrap}
.category-ledger-scores>span>span{color:#466b65}
.category-final-scores{max-width:36rem;margin:22px 0}
@media(min-width:1000px){
 .categories-room[data-category-phase="writing"] .category-arena{grid-template-columns:150px minmax(0,1fr) 110px}
 .categories-room[data-category-phase="ready"] .category-arena{grid-template-columns:150px minmax(0,1fr)}
 .category-score-desk{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:2rem}
 .category-player-row:has(details[open]){grid-column:1/-1}
}
@media(max-width:699px){.categories-room .category-arena{grid-template-columns:minmax(0,1fr) auto;gap:16px}.categories-room .category-letter{display:flex;align-items:center;gap:20px}.categories-room .category-letter strong{font-size:5rem}.categories-room .category-letter p{margin:0;max-width:14rem}.categories-room .category-arena>.category-grid{grid-column:1/-1;grid-row:2}.categories-room .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.categories-room .category-grid li{min-height:58px;padding:10px;font-size:.95rem;border-top-width:3px}.categories-room .category-grid li:last-child{grid-column:1/-1}.category-review-reference{grid-template-columns:56px minmax(0,1fr);gap:14px}.categories-room .category-review-reference .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.categories-room .category-review-reference .category-grid li{min-height:43px;padding:7px;font-size:.82rem}.category-player-row{padding:14px}.category-player-total{gap:10px}.category-player-total label{gap:8px;font-size:.8rem}.categories-room .category-player-total input{width:70px}.category-cell-grid{grid-template-columns:minmax(0,1fr);gap:10px}.category-cell-grid label{grid-template-columns:minmax(0,1fr) 165px;align-items:center;gap:12px;font-size:.88rem}.category-ledger-scores{gap:10px 16px}.category-ledger li{gap:8px;grid-template-columns:32px minmax(0,1fr)}}
@media(max-width:360px){.category-cell-grid label{grid-template-columns:minmax(0,1fr) 145px}.category-player-total>strong{font-size:.94rem}}
@media(max-width:699px){
 .game-shell .play .categories-room .table-clock{width:5.6rem;min-width:0;padding:.5rem .6rem}
 .game-shell .play .categories-room .table-clock strong{font-size:2.15rem;white-space:nowrap}
 .categories-room .table-clock span{white-space:nowrap}
}

.page-game .game-shell.theme-categories:has(.categories-room) {
  --category-pine:#29483b;
  --category-rust:#a1452a;
  background:radial-gradient(ellipse at 20% 0,#faf8ed,#e9ecdf 90%);
}
.page-game .game-shell.theme-categories:has(.categories-room) .game-toolbar {
  background:#f4eddb;color:var(--category-pine);border-color:#a9ad97;
}
.theme-categories:has(.categories-room) .game-toolbar .button {
  background:#fffaee;color:var(--category-pine);border-color:#929d8c;
}
.game-shell .play .categories-room {
  --category-ink:#2a483c;
  --category-line:#a4ad94;
  --category-wash:#fff6e1;
  width:min(100%,1200px);
}
.game-shell.theme-categories .play .categories-room .session-banner :is(h2,.meta) {
  margin-inline:0;text-align:left;color:var(--category-pine);
}
.game-shell.theme-categories .play .categories-room .session-banner .meta {
  width:fit-content;border-bottom:3px solid #bb6141;padding-bottom:3px;
}
.game-shell.theme-categories .play .categories-room .category-arena {
  width:100%;max-width:none;gap:clamp(12px,1.7vw,22px);
}
.game-shell.theme-categories .categories-room .category-letter strong {
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:1.1;
  padding:.12em;
  border:1px solid #a04c32;
  border-radius:10px;
  background:
    repeating-linear-gradient(130deg,#fff6dc13 0 1px,transparent 1px 4px),
    linear-gradient(140deg,#c26442,#9e3d24);
  box-shadow:inset 0 0 0 3px #ffc49758,0 4px 0 #82371f,0 7px 13px #63382924;
  color:#fff5df;
  text-shadow:0 2px 0 #813a25;
  font-size:clamp(3rem,6.8vw,6.4rem);
  letter-spacing:0;
}
.game-shell.theme-categories .categories-room .category-letter p {
  color:#4f5e4f;margin:9px 0 0;text-align:left;
}
.game-shell .play .categories-room .category-grid li {
  color:#29483b;
  min-height:clamp(70px,8vw,117px);
  padding:12px 9px;
  border:1px solid #b0a184;
  border-top:6px solid #72866a;
  border-radius:11px 11px 5px 5px;
  background:linear-gradient(#fff7e4,#efdfbb);
  box-shadow:0 3px 0 #b7a38365;
  font-size:clamp(.94rem,1.5vw,1.22rem);
  hyphens:auto;
}
.game-shell .play .categories-room .category-review-reference .category-grid li {min-height:56px;font-size:.94rem}
.game-shell .play .categories-room .category-review-reference .category-letter strong {font-size:3.7rem}
.game-shell.theme-categories .play .categories-room .table-clock {
  min-width:0;
  border:1px solid #678374;
  background:linear-gradient(145deg,#426559,#254438);
  box-shadow:inset 0 0 0 2px #e6d7b455,0 4px 0 #1d342b;
  color:#fff5dd;
}
.game-shell.theme-categories .play .categories-room .table-clock[data-low=true] {background:#7c4232;color:#fff6de}
.categories-room .table-clock progress::-webkit-progress-value {background:#f4c68c}
.categories-room .table-clock progress::-moz-progress-bar {background:#f4c68c}
.game-shell.theme-categories .play .categories-room .button {min-height:44px}
.game-shell.theme-categories .play .categories-room .button:not(.secondary) {
  background:var(--category-rust);border-color:var(--category-rust);color:#fff7e7;
}
.game-shell.theme-categories .play .categories-room .button:not(.secondary):hover {background:#823921}
.game-shell.theme-categories .play .categories-room .button.secondary {color:var(--category-pine)}
.category-score-desk {gap:11px 17px}
.category-player-row {
  padding:12px;
  border:1px solid var(--category-line);
  border-radius:8px;background:#faf7e9;
}
.category-player-row:has(details[open]) {background:#f1f4e9}
.game-shell.theme-categories .play .categories-room :is(.category-player-total input,.category-cell-grid select) {
  color:#254338;border-color:#98aa94;background:#fffaf0;min-height:44px;
}
.game-shell.theme-categories .play .categories-room :is(.category-player-total label,.category-cell-grid label) {color:var(--category-pine)}
.category-cell-editor {margin-top:3px}
.category-cell-editor summary {min-height:44px;padding:10px 0;color:#375947}
.category-ledger {border-color:#839783}
.category-ledger-letter {color:#9b4529}
@media(min-width:1000px) {
  .game-shell .categories-room[data-category-phase="writing"] .category-arena {
    grid-template-columns:minmax(120px,.85fr) minmax(0,4fr) minmax(115px,.85fr);
  }
}
@media(min-width:700px) and (max-width:999px) {
  .game-shell .play .categories-room .category-arena {grid-template-columns:minmax(0,1fr) auto}
  .game-shell .play .categories-room .category-arena > .category-grid {grid-column:1/-1;grid-row:2}
  .game-shell .play .categories-room .category-arena .category-letter {display:flex;align-items:center;gap:18px}
  .game-shell .play .categories-room .category-arena .category-letter strong {width:104px}
}
@media(max-width:699px) {
  .page-game .game-shell.theme-categories.wide .play:has(.category-arena) {
    justify-content:flex-start;
    padding-block-start:1rem;
  }
  .game-shell .play .categories-room .category-arena .category-letter {gap:12px}
  .game-shell .play .categories-room .category-arena .category-letter strong {
    width:clamp(64px,45%,93px);min-height:75px;flex:none;
  }
  .game-shell .play .categories-room .category-arena .category-letter p {margin:0;font-size:.75rem}
  .game-shell .play .categories-room .category-grid li {min-height:56px;border-top-width:4px}
  .game-shell .play .categories-room .category-review-reference .category-letter strong {font-size:2.15rem}
  .game-shell .play .categories-room .category-review-reference .category-grid li {min-height:43px;font-size:.81rem}
}
