:root {
  color-scheme: light;
  --paper: #f4f3e9;
  --surface: #fffef8;
  --ink: #202443;
  --muted: #58605f;
  --line: #cbd2c2;
  --teal: #245e46;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid #a54720; outline-offset: 3px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(100% - 64px, 1120px); margin-inline: auto; }
footer, footer nav { display: flex; align-items: center; }
footer nav { flex-wrap: wrap; gap: 18px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.document { max-width: 700px; margin: 48px auto; }
.document h1 { margin-bottom: 24px; }
.document h2 { margin: 27px 0 12px; font-size: 21px; }
.document p { margin: 0 0 14px; color: var(--muted); }
.document .return { display: inline-block; margin-top: 18px; }
.language-control { position: relative; display: inline-flex; min-width: 0; max-width: 100%; }
.language-current { display: none; }
.language-picker {
  min-height: 44px;
  max-width: 100%;
  padding-inline: 7px;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  cursor: pointer;
}
@media (min-width: 740px) and (max-width: 965px) { .shell { width: calc(100% - 36px); } }
@media (max-width: 739px) {
  .shell { width: min(100% - 24px, 510px); }
  .document { margin-block: 32px; }
  .language-control { flex: 0 0 auto; }
  .language-current { display: flex; position: relative; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; font-size: 12px; font-weight: 600; pointer-events: none; }
  .language-current::after { content: ''; width: 6px; height: 6px; transform: translateY(-2px) rotate(45deg); border-right: 2px solid; border-bottom: 2px solid; }
  .language-control .language-picker { appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; color: transparent; }
  .language-picker option { color: var(--ink); background: var(--surface); }
}
@media (max-width: 350px) { .shell { width: calc(100% - 16px); } }

/* The board and piece wells share a single molded case. */
.game-page {
  --ivory: #fff1d5;
  --case-edge: #ba9d74;
  --board-ink: #202443;
  --soft-ink: #535271;
  --chalk: #e4e8ff;
  --tile-size: clamp(20px, 1.65vw, 25px);
  background-color: #293db5;
}
.game {
  display: grid;
  grid-template-columns: minmax(0, .99fr) minmax(0, 1fr);
  grid-template-areas: 'case head' 'case controls';
  grid-template-rows: max-content 1fr;
  align-items: start;
  gap: 20px clamp(36px, 5vw, 80px);
  max-width: 1000px;
  margin: clamp(26px, 4.5vh, 56px) auto clamp(30px, 5vh, 64px);
  color: var(--ivory);
}
.game-heading { grid-area: head; min-width: 0; padding-top: 5px; }
#first-move-cue { display: none; }
#level-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 13px/1.3 var(--mono);
  color: #ffe3a2;
  letter-spacing: .025em;
}
#level-number::before { content: ''; width: 24px; height: 3px; background: #ffc45b; border-radius: 1px; }
#level-title { margin: 7px 0 13px; color: var(--ivory); font: 800 clamp(36px, 4.7vw, 68px)/1.01 var(--display, system-ui); letter-spacing: -.018em; overflow-wrap: anywhere; text-wrap: balance; }
.objective { max-width: 41ch; font-size: clamp(15px,1.3vw,18px); line-height: 1.48; color: var(--chalk); }
.objective strong { color: var(--ivory); font-weight: 680; }
.puzzle-case {
  grid-area: case;
  position: relative;
  width: 100%;
  max-width: 490px;
  justify-self: end;
  padding: clamp(14px, 1.8vw, 26px);
  color: var(--board-ink);
  background: linear-gradient(122deg,#fff5df 0%,#fff1d5 65%,#f6e4c0 100%);
  border: 1px solid #fff6de;
  border-radius: 31px;
  box-shadow: inset 0 2px 0 #fffaf0, inset 0 -3px 0 #e5d1ad, 0 5px 0 #b99b74, 0 9px 0 #1c266c, 0 20px 30px #141e6f55;
}
.puzzle-case::before, .puzzle-case::after {
  content: '';
  position: absolute;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(130deg,#c9ba9d 40%,#a3967e 42% 56%,#d3c6ac 58%);
  box-shadow: 0 1px 0 #fff9e9, inset 0 1px 1px #aa997a;
}
.puzzle-case::before { left: 14px; }
.puzzle-case::after { right: 14px; }
.board-housing {
  display: grid;
  grid-template: 16px auto / 16px minmax(0,1fr);
  gap: 4px;
  margin-inline: 0 4px;
}
.axis { display: grid; justify-items: center; align-items: center; font: 700 11px/1 var(--mono); color: #6c604c; }
.col-labels { grid-template-columns: repeat(5,minmax(0,1fr)); padding-inline: 6px; }
.row-labels { grid-template-rows: repeat(5,minmax(0,1fr)); padding-block: 6px; }
#board {
  --piece-preview: #ff805f;
  display: grid;
  position: relative;
  gap: 4px;
  grid-template-rows: repeat(5, minmax(0,1fr));
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 15px;
  background: #202443;
  box-shadow: inset 0 3px 4px #0b1027, 0 2px 0 #fffdf2, 0 0 0 2px #b6a17e;
}
#board[data-selected='H3'] { --piece-preview: #ffc45b; }
#board[data-selected='L3'] { --piece-preview: #7edbc8; }
.board-row { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
.cell {
  position: relative;
  min-height: 0;
  min-width: 0;
  padding: 0;
  border: 1px solid #282d4e;
  border-radius: clamp(5px,.8vw,11px);
  background: linear-gradient(155deg,#2f3355,#393e60);
  box-shadow: inset 1px 3px 4px #171b38b3, inset -1px -1px 1px #5b5f7b9e;
}
.cell.occupied {
  border: 1px solid #ffeac0;
  background: radial-gradient(circle at 50% 47%,#bba378 0 4%,#dbc399 5.5%,#f6deb1 7%,#fff0c9 8%,transparent 9%), linear-gradient(145deg,#fff4d4,#f8dfac);
  box-shadow: inset 0 2px 0 #fff9e5, inset 0 -5px 0 #c9ac7e, 0 1px 1px #151932;
}
.cell.preview {
  border: 2px dashed #202443;
  background: var(--piece-preview);
  box-shadow: inset 0 0 0 2px #fff6db;
}
.cell.hint-cell { border: 3px dashed #ffdb78; background: #575773; }
.cell.anchor::after, .cell.hint-anchor::after {
  content: '';
  position: absolute;
  width: 20%;
  aspect-ratio: 1;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: #272744;
  border: 2px solid #fff4c8;
}
.cell.hint-anchor::after { background: #ffe79a; border-color: #393651; box-shadow: 0 0 0 2px #ffe79a; }
.cell.will-clear { border: 2px solid #ffcf51; box-shadow: inset 0 0 0 2px #624512, inset 0 0 0 5px #ffe391; }
.cell.invalid { border: 2px dashed #ffe3d1; background: repeating-linear-gradient(135deg,#834354 0 6px,#b65962 6px 11px); }
.cell:focus-visible { outline: 3px solid #82f0e4; outline-offset: 1px; z-index: 1; }
.game:has(.next:not([hidden])) #board::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: clamp(40px, 12%, 64px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid #bbf2de;
  border-radius: 50%;
  background: #7edbc8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23202443' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E") center / 54% no-repeat;
  box-shadow: 0 3px 0 #427568, 0 5px 8px #10163277;
  pointer-events: none;
}
.cell.just-cleared::before, .cell.just-placed::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  animation: clear-line 410ms both ease-out;
  background: #ffe7a8;
}
.cell.just-placed:not(.just-cleared)::before { background: var(--piece-preview); animation-name: set-piece; }
@keyframes clear-line { 0% { opacity: .96; transform: scale(.96); } 40% { opacity: .86; } 100% { opacity: 0; transform: scale(.48); } }
@keyframes set-piece { from { opacity: .8; } to { opacity: 0; } }

.piece-shelf { margin-top: 18px; padding-top: 12px; border-top: 1px solid #d7c6a5; box-shadow: inset 0 1px 0 #fff9e7; }
.tray-heading, .hint-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.tray-heading { margin: 0 2px 8px; }
.tray-heading h3, .hint-heading h3 { font: 750 16px/1.25 var(--display,system-ui); }
.counter { display: inline-flex; align-items: baseline; gap: 4px; font: 550 12px/1.25 system-ui; color: #615b57; }
.counter strong { font: 750 14px/1 var(--mono); color: #333247; }
html[lang|='ja'] .counter span { order: -1; }
#tray { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.piece, .drag-ghost { --piece-color: #ff805f; --piece-shadow: #bd533e; --piece-rim: #934333; }
.H3 { --piece-color: #ffc45b; --piece-shadow: #c8903d; --piece-rim: #975f25; }
.L3 { --piece-color: #7edbc8; --piece-shadow: #4d9f91; --piece-rim: #33776e; }
.piece {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 91px;
  padding: 7px 3px;
  border: 1px solid #cab793;
  border-radius: 12px;
  background: linear-gradient(150deg,#eddbb8,#f6e8ce);
  box-shadow: inset 0 2px 4px #ab956e40, 0 1px 0 #fffdf0;
  color: var(--board-ink);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.piece:not(:disabled):hover { border-color: #77655e; }
.piece.selected { border-color: #293db5; box-shadow: inset 0 0 0 2px #293db5; background: #fff4d9; }
.piece.dragging { cursor: grabbing; opacity: .65; }
.shape {
  display: grid;
  grid-template-columns: repeat(var(--w),var(--tile-size));
  grid-template-rows: repeat(var(--h),var(--tile-size));
  align-content: center;
  gap: 1px;
  height: calc(2 * var(--tile-size) + 1px);
}
.shape i { position: relative; display: block; border: 1px solid var(--piece-rim); border-radius: 4px; background: var(--piece-color); box-shadow: inset 0 2px 0 #ffffff67, inset 0 -3px 0 var(--piece-shadow), 0 1px 1px #5c4c354d; }
.shape b { position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); width: 5px; height: 5px; border-radius: 50%; background: #333345; box-shadow: 0 1px 0 #ffffff88; }
.piece-name { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; line-height: 1.25; font-weight: 640; text-align: center; }
.piece-name kbd { padding: 1px 3px; border: 1px solid #b9a98a; border-radius: 3px; color: #60574b; font: 10px var(--mono); }
.piece.used { cursor: default; }
.piece.used .shape i { background: #d7c29f; border-color: #c9b18d; box-shadow: inset 1px 2px 3px #8e765b57, 0 1px 0 #fff2d8; }
.piece.used .shape b { display: none; }
.piece.used .piece-name::after { content: '✓'; }
.drag-ghost { position: fixed; pointer-events: none; z-index: 20; opacity: .86; filter: drop-shadow(0 3px 3px #1a1a3866); }
.drag-ghost .shape { align-content: start; }

.controls-column { grid-area: controls; min-width: 0; }
.actions { display: grid; grid-template-columns: 1fr 1fr 1.12fr; gap: 7px; }
.action, .next {
  min-width: 0;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #ede6d5;
  border-radius: 9px;
  background: #fff1d5;
  box-shadow: 0 3px 0 #182675;
  color: var(--board-ink);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 720;
  overflow-wrap: anywhere;
}
.action-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.action:hover:not(:disabled), .next:hover { filter: brightness(1.06); }
.action:not(:disabled):active, .next:active { transform: translateY(2px); box-shadow: 0 1px 0 #182675; }
.action.primary, .next { background: #ffc45b; border-color: #ffdb8e; }
.action:disabled { background: #344ab2; color: #dee1ff; border: 1px solid #8694e3; box-shadow: none; }
#selection-label, #level-focus { color: #e0e5ff; font-size: 13px; line-height: 1.45; }
#selection-label { margin: 10px 0 13px; }
.controls-column:has(#status:not(:empty)) #selection-label { display: none; }
#status { margin: 10px 0; padding: 8px 11px; border-left: 3px solid #adbaf8; background: #2131a2; color: #faf4e4; font-size: 14px; }
#status:empty, #level-focus:empty { display: none; }
#status.notice { border-color: #ffb591; }
#status.success { color: #192e36; background: #9de5cb; border-color: #56bd9a; border-radius: 5px; font-weight: 700; }
.next { width: 100%; margin: 0 0 12px; }
.hint-panel {
  position: relative;
  padding: 15px 18px 16px 21px;
  border-radius: 3px 9px 9px 3px;
  border-inline-start: 5px solid #ffc45b;
  background: #fff1d5;
  color: var(--board-ink);
  box-shadow: 0 3px 0 #1a2b8e;
}
.hint-heading { padding-bottom: 8px; border-bottom: 1px dashed #c6b68e; }
#hint-stage { flex-shrink: 0; font: 650 12px var(--mono); color: #615744; }
#hint-text { margin-top: 8px; font-size: 14px; line-height: 1.5; color: #474453; }
#level-focus { margin: 9px 0 18px; }
.collections { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.collection h2 { margin-bottom: 6px; color: #ede9ff; font-weight: 660; font-size: 12px; }
.levels, .challenge-levels { display: flex; gap: 4px; }
.collection button {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  min-height: 44px;
  padding: 3px;
  border: 1px solid #a3adeb;
  border-radius: 6px;
  background: #283ca4;
  color: #fff6e3;
}
.collection button.active { background: #ffdc96; border-color: #fff1c4; box-shadow: 0 2px 0 #17275e; color: #222543; }
.collection button:hover:not(.active) { background: #3449b8; }
.level-id { font: 700 15px/1 var(--mono); }
.level-check { position: absolute; top: 2px; right: 3px; font: 700 11px/1 var(--mono); }
.level-name { display: none; }
.keyboard { margin-top: 14px; border-top: 1px solid #7e8be0; color: var(--chalk); font-size: 14px; }
.keyboard summary { width: fit-content; min-height: 44px; padding: 11px 2px 7px; cursor: pointer; color: var(--ivory); font-weight: 680; }
.keyboard p { padding-bottom: 9px; }
.keyboard a { text-underline-offset: 3px; }
.game :is(button:not(.cell),summary,a):focus-visible { outline: 3px solid #ffe49c; outline-offset: 3px; }
.game .piece:focus-visible { outline-color: #293db5; }

@media (max-width: 930px) and (min-width: 740px) {
  .game { grid-template-columns: minmax(0,1fr) minmax(0,.87fr); gap: 16px 30px; }
  .puzzle-case { padding: 15px; }
  #level-title { font-size: clamp(35px,5vw,48px); }
  .collection button { width: 44px; }
  .collections { column-gap: 12px; }
}
@media (max-width: 739px) {
  .game-page { --tile-size: 19px; }
  .game { grid-template: 'head' auto 'case' auto 'controls' auto / minmax(0,1fr); gap: 11px; margin: 17px auto 23px; }
  .game-heading, .controls-column { width: 100%; max-width: 440px; margin: auto; }
  .game-heading { padding: 0; display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: baseline; }
  #level-number { font-size: 11px; gap: 5px; }
  #level-number::before { width: 12px; height: 2px; }
  #level-title { margin: 0; font-size: clamp(24px,5.4vw,34px); line-height: 1.08; }
  .objective { width: 100%; max-width: none; font-size: 13px; line-height: 1.4; }
  .puzzle-case {
    justify-self: center;
    width: min(100%, max(279px,46svh), 400px);
    padding: 10px;
    border-radius: 20px;
    box-shadow: inset 0 2px 0 #fffaf0, inset 0 -2px 0 #e5d1ad, 0 3px 0 #b99b74, 0 5px 0 #1c266c, 0 9px 14px #15227044;
  }
  .puzzle-case::before, .puzzle-case::after { top: 6px; width: 4px; height: 4px; }
  .puzzle-case::before { left: 8px; }
  .puzzle-case::after { right: 8px; }
  .board-housing { grid-template: 12px auto / 12px minmax(0,1fr); gap: 3px; margin-right: 0; }
  .axis { font-size: 10px; }
  .row-labels { padding-block: 4px; }
  .col-labels { padding-inline: 4px; }
  #board { padding: 4px; border-radius: 8px; }
  #board, .board-row { gap: 3px; }
  .cell.occupied { box-shadow: inset 0 1px 0 #fff9e5, inset 0 -3px 0 #c9ac7e; }
  .cell.will-clear { box-shadow: inset 0 0 0 2px #624512, inset 0 0 0 4px #ffe391; }
  .piece-shelf { margin-top: 10px; padding-top: 7px; }
  .tray-heading { margin-bottom: 4px; }
  .tray-heading h3 { font-size: 13px; }
  .counter { font-size: 11px; }
  #tray { gap: 5px; }
  .piece { min-height: 65px; padding: 4px 2px; gap: 2px; border-radius: 8px; }
  .piece-name { font-size: 11px; }
  .piece-name kbd { display: none; }
  .collections { gap: 9px 14px; }
  .collection button { width: 44px; }
  .action, .next { font-size: 13px; padding: 8px 5px; min-height: 44px; }
  #selection-label { margin: 8px 0 10px; }
  .hint-panel { padding: 12px 14px; }
}
@media (max-width: 739px) and (max-height: 720px) {
  .game { margin-top: 9px; gap: 8px; }
  #level-title { font-size: 21px; }
  .objective { font-size: 12px; line-height: 1.28; }
}
@media (max-width: 739px) and (max-height: 600px) {
  .game { margin-top: 6px; }
  .objective span { display: none; }
  .action-icon { display: none; }
}
@media (max-width: 739px), (orientation: landscape) and (max-width: 960px) and (max-height: 500px) {
  .awaiting-first-move .tray-title, .awaiting-first-move .counter,
  .awaiting-first-move #selection-label { display: none; }
  .awaiting-first-move #first-move-cue { display: inline; }
  .awaiting-first-move .actions { margin-bottom: 8px; }
}

/* A short portrait viewport can keep the three pieces alongside the board. */
@media (orientation: portrait) and (max-width: 519px) and (max-height: 560px) {
  .game-page .play-shell { width: calc(100% - 8px); }
  .puzzle-case {
    display: grid;
    width: min(100%, 360px);
    grid-template: 'label label' auto 'board pieces' auto / minmax(0, 1fr) clamp(46px, calc(100vw - 274px), 70px);
    gap: 4px;
    padding: 7px 3px 5px;
    border-radius: 12px;
  }
  .puzzle-case::before, .puzzle-case::after { display: none; }
  .board-housing { grid-area: board; grid-template: 10px auto / 10px minmax(0, 1fr); gap: 2px; }
  .piece-shelf { display: contents; }
  .tray-heading { grid-area: label; margin: 0 6px 2px; }
  #tray { grid-area: pieces; grid-template: repeat(3, 1fr) / minmax(0, 1fr); gap: 4px; }
  .piece { --tile-size: 13px; min-height: 44px; padding: 3px 1px; }
  .piece-name { max-width: 100%; font-size: 10.5px; line-height: 1.2; overflow-wrap: anywhere; }
}

/* In a short landscape viewport the tray stays beside the board. */
@media (orientation: landscape) and (min-width: 520px) and (max-width: 960px) and (max-height: 500px) {
  .game-page .play-shell { width: min(calc(100% - 20px), 900px); }
  .game-page .site-header { min-height: 44px; padding-block: 0; }
  .game {
    --tile-size: 17px;
    grid-template: 'case head' auto 'case tray' auto 'case controls' 1fr / min(48%, clamp(262px, calc(100svh - 70px), 350px)) minmax(0, 1fr);
    gap: 6px clamp(10px, 2.5vw, 22px);
    margin: 5px auto 24px;
  }
  .puzzle-case { display: contents; }
  .puzzle-case::before, .puzzle-case::after { display: none; }
  .board-housing, .piece-shelf {
    margin: 0; background: var(--ivory); color: var(--board-ink);
    border-radius: 12px; box-shadow: 0 3px 0 #b99b74;
  }
  .board-housing { grid-area: case; grid-template: 10px auto / 10px minmax(0, 1fr); gap: 2px; padding: 5px; }
  #board { padding: 4px; border-radius: 8px; }
  #board, .board-row { gap: 3px; }
  .game-heading, .controls-column { width: 100%; max-width: none; margin: 0; }
  .game-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; padding: 0; }
  #level-number { font-size: 11px; }
  #level-number::before { width: 10px; }
  #level-title { margin: 0; font-size: 21px; line-height: 1.1; }
  .objective { width: 100%; max-width: none; font-size: 13px; line-height: 1.3; }
  .piece-shelf { grid-area: tray; border: 0; padding: 7px 9px; }
  .tray-heading { margin-bottom: 4px; }
  .tray-heading h3 { font-size: 13px; }
  .piece { min-height: 55px; padding: 3px 2px; gap: 2px; }
  .piece-name { font-size: 11px; }
  .piece-name kbd, .action-icon { display: none; }
  .action { min-height: 44px; padding-inline: 3px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .cell.just-placed::before, .cell.just-cleared::before { display: none; }
}

.play-strategy {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px) 0 8px;
  border-top: 1px solid #7e8be0;
  color: var(--chalk);
  display: grid;
  gap: 12px;
  line-height: 1.6;
}
.play-strategy h2 {
  color: var(--ivory);
  font: 800 clamp(22px, 2.5vw, 34px)/1.15 var(--display, system-ui);
}
.play-strategy p { max-width: 68ch; }
.play-strategy details { border-top: 1px solid #7e8be0; }
.play-strategy summary {
  min-height: 44px;
  padding: 10px 0;
  color: var(--ivory);
  font-weight: 680;
  cursor: pointer;
}
.play-strategy details p { margin-bottom: 10px; }
.play-strategy a {
  display: inline-block;
  padding-block: 10px;
  min-height: 44px;
  color: var(--ivory);
  text-underline-offset: 3px;
}
.play-strategy :is(a, summary):focus-visible { outline: 3px solid #ffe49c; outline-offset: 3px; }
@media (min-width: 840px) {
  .play-strategy { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); column-gap: clamp(30px, 5vw, 76px); }
  .play-strategy h2 { grid-row: 1 / span 3; }
}

.practice-reading { margin-block: 22px; padding-bottom: 0; }
.practice-reading .practice-intro { margin-top: 10px; }
.practice-reading .practice-copy { white-space: pre-line; }
.practice-number { margin-right: 6px; color: #ffe3a2; font: 700 .86em var(--mono); }
.practice-reading .practice-list { min-width: 0; }
.practice-reading details:first-child { border-top: 0; }
.practice-reading summary { padding-block: 12px; }
.practice-reading details[open] summary { color: #ffe3a2; }
.practice-reading .practice-link { font-weight: 650; }
@media (min-width: 840px) {
  .practice-reading { align-items: start; }
  .practice-reading h2 { grid-row: auto; }
}
