.page-game .game-shell.theme-mapchoice:has(.mapchoice-room) {
  --map-ink:#253e32;
  --map-deep:#264e3c;
  --map-muted:#504a3f;
  --map-paper:#fbefd6;
  --map-line:#b29a73;
  color:var(--map-ink);
  background:radial-gradient(ellipse at 27% 19%,#fff8e6 0%,#f7ead1 65%,#eddbc0 100%);
}
.page-game .game-shell.theme-mapchoice:has(.mapchoice-room) .game-toolbar {
  color:#fff5dd;
  background:linear-gradient(100deg,#294437,#385141);
  border-bottom:2px solid #a78d60;
}
.page-game .game-shell.theme-mapchoice:has(.mapchoice-room) .game-toolbar .button {
  min-height:44px;
  color:#fff5dd;
  background:#344f40;
  border-color:#d4bd90;
}
.mapchoice-room {width:min(100%,77rem);margin-inline:auto;color:var(--map-ink);text-align:left}
.game-shell .play .mapchoice-room .session-banner {max-width:none;text-align:left;margin:0 0 clamp(14px,2.2vw,26px)}
.game-shell .play .mapchoice-room .session-banner>:is(h2,.meta) {
  max-width:none;
  margin-inline:0;
  text-align:left;
  color:var(--map-ink);
}
.game-shell .play .mapchoice-room .session-banner h2 {
  font-family:Georgia,'Noto Serif SC',serif;
  font-weight:700;
  font-size:clamp(1.45rem,3.7vw,3.7rem);
  line-height:1.14;
}
.game-shell .play .mapchoice-room .session-banner .meta {color:#77582e;font-weight:750}
.game-shell .play .mapchoice-room p {color:var(--map-muted)}
.game-shell .play .mapchoice-room .actions {justify-content:flex-start;gap:.5rem;margin:.7rem 0}
.game-shell .play .mapchoice-room .button {min-height:44px;white-space:normal}
.game-shell .play .mapchoice-room .button.cta,
.game-shell .play .mapchoice-room .actions .button:not(.secondary) {background:var(--map-deep);border-color:var(--map-deep);color:#fff8e8}
.game-shell .play .mapchoice-room .actions .button:not(.secondary):hover {background:#173c2b}
.game-shell .play .mapchoice-room .button.secondary {background:#fff7e4;border-color:#a98e65;color:var(--map-ink)}
.mapchoice-room :is(button,summary):focus-visible {outline:3px solid #215775;outline-offset:2px;position:relative;z-index:1}

.mapchoice-desk {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start;gap:clamp(1rem,3.5vw,3rem)}
.mapchoice-board {
  --map-tab:clamp(44px,6vw,56px);
  display:grid;
  grid-template-columns:var(--map-tab) repeat(4,minmax(0,1fr));
  grid-template-rows:var(--map-tab) repeat(4,minmax(0,1fr));
  width:min(100%,640px);
  min-width:0;
  aspect-ratio:1;
  padding:clamp(5px,1vw,12px);
  border:1px solid #b89b70;
  border-radius:8px;
  background:
    repeating-radial-gradient(ellipse at 104% 17%,transparent 0 13px,#b18b542c 14px 15px,transparent 16px 21px),
    repeating-radial-gradient(ellipse at -10% 105%,transparent 0 15px,#a980451a 16px 17px,transparent 18px 23px),
    #f5e4bb;
  box-shadow:0 4px 0 #c9ac7c,0 7px 0 #a98e643b,0 13px 24px #6c522633;
}
.mapchoice-axis,.mapchoice-square {
  box-sizing:border-box;
  display:grid;
  place-items:center;
  margin:0;
  min-width:0;
  min-height:0;
  font:inherit;
  color:var(--map-ink);
}
button:is(.mapchoice-axis,.mapchoice-square) {cursor:pointer;touch-action:manipulation}
.mapchoice-axis {
  border:1px solid #c2a778;
  border-radius:5px;
  background:#fdf0d0;
  font-weight:780;
}
.mapchoice-axis:is([aria-pressed=true],[data-marked=true]) {background:#315642;border-color:#274734;color:#fff8e4}
.mapchoice-square {
  font-size:clamp(1.15rem,3.65vw,2.6rem);
  background-color:#fff7e450;
  border:0;
  border-left:1px solid #9d8a66;
  border-top:1px solid #9d8a66;
  font-family:system-ui,sans-serif;
  transition:background-color .15s,box-shadow .15s;
}
.mapchoice-square:nth-child(5n) {border-right:1px solid #9d8a66}
.mapchoice-square:nth-last-child(-n+4) {border-bottom:1px solid #9d8a66}
button.mapchoice-square:hover {box-shadow:inset 0 0 0 2px #46627a}
.mapchoice-square[data-mapchoice-marked-line=true] {background-color:#c5dce2b8}
.mapchoice-square[data-mapchoice-state=notes] {background-color:#bbd3dfd6}
.mapchoice-square[data-mapchoice-state=selected] {box-shadow:inset 0 0 0 3px #986126,inset 0 0 0 6px #ffe29d;background:#ffe8b8}
.mapchoice-square[data-mapchoice-state=correct] {box-shadow:inset 0 0 0 3px #326344;background:#d8e8c6}
.mapchoice-square[data-mapchoice-state=wrong] {box-shadow:inset 0 0 0 3px #983f30;background:#f4d4c4}
.mapchoice-square:is([data-mapchoice-state=correct],[data-mapchoice-state=wrong]) {position:relative}
.mapchoice-square[data-mapchoice-state=correct]::after,
.mapchoice-square[data-mapchoice-state=wrong]::after {
  content:"";
  position:absolute;
  right:6px;
  top:6px;
  width:12px;
  height:12px;
  background:#2e633e;
  clip-path:polygon(8% 49%,26% 41%,43% 62%,78% 15%,94% 27%,44% 96%);
}
.mapchoice-square[data-mapchoice-state=wrong]::after {
  background:#983f30;
  clip-path:polygon(17% 4%,50% 37%,83% 4%,96% 17%,63% 50%,96% 83%,83% 96%,50% 63%,17% 96%,4% 83%,37% 50%,4% 17%);
}
.mapchoice-seal {
  display:grid;
  place-items:center;
  line-height:1;
  width:1.55em;
  height:1.55em;
  font-weight:740;
  color:#355b42;
  border-radius:50%;
  border:2px solid currentColor;
  background:#dce5c984;
  transform:rotate(-7deg);
}
.mapchoice-seal.seal-wave {color:#2c5573;background:#d5e4ebbb;border-radius:36%;transform:rotate(4deg)}
.mapchoice-seal.seal-gate {color:#894836;background:#f0d8c2b5;border-radius:48% 48% 34% 34%;transform:rotate(5deg)}
.mapchoice-seal.seal-branch {color:#72531d;background:#efdc9e96;border-radius:24%;font-size:.83em;transform:rotate(-12deg)}

.mapchoice-desk aside {
  text-align:left;
  padding:clamp(14px,2.4vw,28px);
  border-inline-start:4px double #a68153;
  border-radius:0 10px 10px 0;
  background:#fff4dc;
  box-shadow:0 3px 0 #a98e642b;
}
.mapchoice-desk aside h3 {margin:0 0 .45rem;font-family:Georgia,'Noto Serif SC',serif;font-size:clamp(1.2rem,2.15vw,1.85rem)}
.game-shell .play .mapchoice-desk aside p {margin:.3rem 0 .55rem;max-width:52ch;text-align:left}
.game-shell .play .mapchoice-desk aside .mapchoice-focus {margin-top:.9rem;padding:.55rem 0;color:var(--map-ink);font-weight:780;border-top:1px solid var(--map-line)}
.mapchoice-desk [data-mapchoice-warning]:empty {display:none}
.game-shell .play .mapchoice-desk [data-mapchoice-warning] {color:#8b3424;font-weight:700}
.mapchoice-desk details {margin:.7rem 0 0;padding:0;border-block:1px solid var(--map-line)}
.mapchoice-room summary {cursor:pointer;font-weight:700;min-height:44px;padding-block:.58rem}
.mapchoice-desk aside strong {display:block;margin-top:.15rem;color:var(--map-ink)}
.mapchoice-checks {list-style:none;padding:0;margin:.8rem 0}
.mapchoice-checks li {margin:0;padding:.45rem 0;display:flex;gap:.6rem;justify-content:space-between;border-bottom:1px solid var(--map-line)}
.mapchoice-checks [data-valid=true] b {color:#315c43}
.mapchoice-checks [data-valid=false] b {color:#8b3424}
.mapchoice-archive {width:min(100%,720px);margin-block:1rem}
.mapchoice-archive details {border-bottom:1px solid var(--map-line);padding:.35rem 0}
.mapchoice-archive summary span {display:inline-block;margin-inline-start:.55rem;font-weight:600;color:var(--map-muted)}
.mapchoice-envelope {
  width:min(100%,520px);
  min-height:clamp(145px,29vw,258px);
  display:grid;
  place-content:center;
  justify-items:center;
  gap:.7rem;
  border:1px solid #b79a65;
  border-top:5px solid #557653;
  border-radius:7px;
  background:repeating-linear-gradient(0deg,transparent 0 21px,#b7935330 21px 22px),var(--map-paper);
  box-shadow:0 5px 0 #a98e6450;
  margin-bottom:1rem;
  padding:1rem;
  text-align:center;
}
.mapchoice-envelope p {margin:0;font-weight:750}
.mapchoice-envelope span,.mapchoice-envelope strong {font-size:clamp(2.5rem,8vw,5.4rem);line-height:1.07;color:var(--map-ink);font-family:Georgia,'Noto Serif SC',serif}

@media(min-width:781px) {
  .mapchoice-desk {--map-board-limit:600px;grid-template-columns:minmax(0,min(56%,var(--map-board-limit))) minmax(0,1fr)}
  .game-shell.wide .mapchoice-desk {--map-board-limit:min(640px,max(330px,calc(100svh - 205px)))}
}
@media(max-width:780px) {
  .mapchoice-desk {grid-template-columns:minmax(0,1fr)}
  .mapchoice-board,.mapchoice-desk aside {max-width:570px}
}
@media(prefers-reduced-motion:reduce) {.mapchoice-square {transition:none}}
