/* Play surfaces for timed turns, shared tables, paper games and puzzles. */
.arena-duo {
  display:flex; align-items:center; justify-content:center; gap:clamp(.65rem,3vw,2rem); width:100%; margin-inline:auto;
}
.arena-duo .session-banner { margin-inline:0 }
.arena-duo .table-clock { flex:none }
.arena-tally { color:var(--brand); font-weight:750; text-align:center; font-variant-numeric:tabular-nums }
.arena-duo .arena-tally { margin:.4rem 0 0 }
.arena-grid,.sketch-sheet { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.3rem }
:is(.arena-grid,.rhythm-seats,.tray-picks,.timeline-order) button {
  min-height:44px; border:1px solid var(--line); background:var(--card); color:var(--stage-ink);
  border-radius:.55rem; font:inherit; font-weight:720; padding:.3rem; cursor:pointer;
}
:is(.arena-grid,.rhythm-seats,.tray-picks,.timeline-order) button:enabled:hover { border-color:var(--brand); background:var(--soft) }
:is(.arena-grid,.rhythm-seats,.tray-picks,.timeline-order) button[aria-pressed="true"] { border-color:var(--brand); background:var(--wash) }
:is(.arena-grid,.rhythm-seats) button:disabled:not([aria-pressed="true"]) { opacity:.55; cursor:default }
.arena-grid button.is-winning { background:var(--brand); color:white; border-color:var(--brand); opacity:1 }

.taboo-ticket {
  width:min(100%,40rem); padding:clamp(.7rem,3vw,2rem); border:1px solid var(--line);
  border-inline-start:.4rem solid var(--brand); background:#fff9f3; border-radius:.35rem; text-align:start;
}
.taboo-ticket h2 { margin:.2rem 0 .55rem; overflow-wrap:anywhere }
.taboo-ticket .meta { color:var(--brand); margin:0; padding:0; background:none }
.taboo-ticket ul { display:flex; flex-wrap:wrap; gap:.35rem; list-style:none; padding:0; margin:.35rem 0 0 }
.taboo-ticket li { padding:.18rem .55rem; color:var(--stage-ink); background:var(--wash); border-radius:.25rem }
.sprint-arena { align-items:stretch }
.sprint-arena .session-banner {
  text-align:start; margin:0; padding:clamp(.7rem,3vw,2rem); align-self:center;
  background:linear-gradient(90deg,var(--wash),transparent); border-inline-start:3px solid var(--brand);
}
.sprint-arena .table-clock { border-radius:50%; aspect-ratio:1; align-self:center; min-width:clamp(4.6rem,15vw,9rem) }
.sprint-arena .table-clock strong { font-size:clamp(1.8rem,6vw,4rem) }

.memory-tray {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.45rem; width:min(100%,40rem);
  margin:.55rem auto; padding:.55rem; list-style:none; border:1px solid #b0c4ad; border-radius:.9rem;
  background:repeating-linear-gradient(2deg,#e5efdf 0 .24rem,#e8f1e3 .26rem .48rem);
}
.memory-tray li,.tray-picks button {
  display:grid; justify-items:center; align-content:center; line-height:1.15; gap:.22rem; text-align:center;
  overflow-wrap:anywhere; font-size:clamp(.73rem,1.9vw,.94rem);
}
.memory-tray li { background:#ffffffbe; border-radius:.45rem; min-height:2.6rem; padding:.25rem .14rem }
.tray-symbol { font-size:clamp(1.25rem,4vw,2rem) }
.tray-picks { display:flex; flex-wrap:wrap; gap:.35rem; justify-content:center; margin:.45rem 0 }
.tray-picks button { padding:.3rem .5rem }
.tray-picks button[aria-pressed="true"]::after { content:"✓"; line-height:1; color:var(--brand) }
.tray-cloche {
  width:min(78%,24rem); aspect-ratio:2.6; margin:.9rem auto .5rem; position:relative;
  border-radius:13rem 13rem .55rem .55rem; border:2px solid var(--brand); border-bottom-width:.38rem;
  background:linear-gradient(155deg,#f5fcf4,var(--wash) 55%,#bddec7);
}
.tray-cloche::before { content:""; width:13%; height:1rem; border:2px solid var(--brand); border-radius:.75rem .75rem 0 0; position:absolute; inset:auto 43.5% 100% }
.sketch-sheet {
  width:min(60vw,15rem); aspect-ratio:1; margin:.35rem auto; gap:1px;
  background:var(--edge); border:1px solid var(--edge); padding:1px; box-shadow:0 .4rem 1rem #22304c14;
}
.sketch-sheet span { display:grid; place-items:center; background:#fcfdff }
.sketch-sheet i { display:block; width:48%; aspect-ratio:1; background:var(--brand) }
.sketch-circle,.sketch-ring { border-radius:50% }
.sketch-sheet .sketch-ring { background:transparent; border:.24rem solid var(--brand) }
.sketch-sheet .sketch-triangle { clip-path:polygon(50% 0,100% 100%,0 100%) }
.sketch-sheet .sketch-diamond { transform:rotate(45deg) scale(.8) }
.sketch-sheet .sketch-bars { background:repeating-linear-gradient(to right,var(--brand) 0 19%,transparent 19% 40%) }
.arena-score-form { display:flex; align-items:end; flex-wrap:wrap; gap:.5rem; justify-content:center; margin-inline:auto }
.arena-score-form select { min-width:5rem }

.rhythm-note { text-align:center }
.rhythm-seats {
  width:min(100%,38rem); margin:.45rem auto; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.35rem;
}
.rhythm-seats button { font-size:clamp(1.1rem,3vw,1.6rem); font-variant-numeric:tabular-nums }
.rhythm-seats button[aria-pressed="true"] { background:var(--brand); color:white }
.count-disc,.bingo-current {
  display:grid; place-items:center; aspect-ratio:1; margin:.35rem auto; border-radius:50%;
  font-weight:800; line-height:1; font-variant-numeric:tabular-nums;
}
.count-disc {
  width:clamp(5.5rem,21dvh,11rem); background:var(--brand); color:white;
  outline:2px solid var(--edge); outline-offset:.2rem; font-size:clamp(3rem,11dvh,6rem);
}
.bingo-current { width:2.8rem; background:var(--brand); color:white; font-size:1.5rem }
.bingo-layout {
  width:min(100%,37rem); display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center;
  gap:clamp(.5rem,2vw,1.1rem); margin-inline:auto;
}
.bingo-layout .bingo-current { width:clamp(2.8rem,10vw,5.75rem); font-size:clamp(1.5rem,5vw,2.8rem) }
.bingo-boards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:min(100%,31rem); gap:.75rem; margin-inline:auto }
.bingo-boards section { min-width:0; padding:.38rem; background:var(--soft); border:1px solid var(--line); border-radius:.65rem }
.bingo-boards h3 { font-size:clamp(.78rem,2.5vw,1rem); margin:.05rem 0 .35rem; color:var(--brand); text-align:center }
.bingo-boards button { font-variant-numeric:tabular-nums }
.bingo-boards button[aria-pressed="true"]:not(.is-winning)::after { content:" ✓"; font-size:.72em }
.theme-bingo .session-recap ol { display:flex; flex-wrap:wrap; gap:.25rem; padding:0; list-style:none }
.theme-bingo .session-recap li { min-width:2em; text-align:center; padding:.12rem .3rem; background:var(--soft); border-radius:.25rem }

.timeline-case { display:grid; grid-template-columns:1fr 1.15fr; gap:clamp(.6rem,3vw,1.4rem); width:min(100%,55rem); margin-inline:auto; text-align:start }
.timeline-case h3 { color:var(--brand); margin:.2rem 0 }
.timeline-order,.timeline-clues { padding-inline-start:1.6rem; margin:.35rem 0 }
.timeline-order li { margin-bottom:.25rem; padding-inline-start:.15rem; font-variant-numeric:tabular-nums }
.timeline-order li::marker { color:var(--brand); font-weight:750 }
.timeline-order button { display:block; width:100%; text-align:start; font-size:.95rem }
.timeline-order button[aria-pressed="true"] { box-shadow:inset .22rem 0 var(--brand) }
.timeline-clues { font-size:.91rem }
.timeline-clues li { margin-bottom:.27rem }
.timeline-solution { width:min(100%,38rem); margin-inline:auto; text-align:start }
.timeline-solution li { padding-block:.4rem; border-bottom:1px solid var(--line) }

.story-line,.story-cue,.story-manuscript {
  width:min(100%,45rem); margin:.4rem auto; text-align:start; padding:.65rem .9rem;
  background:#fffbed; border-inline-start:.2rem solid var(--edge);
}
.story-line p:not(.meta) { font-family:Georgia,serif; font-size:clamp(1.12rem,3.1vw,1.65rem); color:var(--stage-ink) }
.story-line p,.story-cue p { margin:.15rem 0; overflow-wrap:anywhere }
.story-cue { background:var(--wash) }
.story-desk { width:min(100%,55rem); margin-inline:auto; text-align:start }
.story-desk form { min-width:0 }
.theme-story .play textarea {
  display:block; width:100%; resize:vertical; font:inherit; color:var(--ink); background:var(--card);
  border:1px solid var(--edge); border-radius:.45rem; padding:.4rem .55rem;
}
.story-manuscript { padding-inline-start:2rem }
.story-manuscript li { margin:.25rem 0; overflow-wrap:anywhere }
@media(min-width:690px) {
  .story-desk { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); align-items:center; gap:.85rem }
  .story-desk form { width:100%; margin:0 }
}
.toss-grid { width:min(100%,13rem); margin:.4rem auto }
.toss-grid button { font-size:clamp(1.5rem,5dvh,2.2rem); line-height:1 }
.toss-grid button[aria-pressed="true"]:not(.is-winning) { color:var(--stage-ink) }
.game-shell.wide:has(.arena-grid,.rhythm-seats,.memory-tray) .play > .session-banner h2 { font-size:clamp(1.25rem,4.5vmin,2.75rem) }

@media(prefers-reduced-motion:no-preference) {
  .count-disc,.bingo-current { animation:arena-pop .2s ease-out both }
  .tray-cloche { animation:cloche-drop .22s ease-out both }
  .arena-grid .is-winning { animation:arena-pop .22s ease-out both }
  @keyframes arena-pop { from { transform:scale(.93); opacity:.72 } to { transform:none; opacity:1 } }
  @keyframes cloche-drop { from { transform:translateY(-.4rem); opacity:.7 } to { transform:none; opacity:1 } }
}
@media(max-width:570px) {
  .page-game .game-shell.wide .play { justify-content:flex-start; padding-top:clamp(.9rem,5dvh,2.8rem) }
  .timeline-case { grid-template-columns:1fr }
  .bingo-layout { grid-template-columns:1fr; gap:.2rem }
  .bingo-boards { gap:.35rem }
  .bingo-boards section { padding:.25rem }
}
@media(max-height:500px) and (orientation:landscape) {
  .game-shell.wide .sketch-sheet { width:7.8rem }
  .game-shell.wide .rhythm-seats { grid-template-columns:repeat(10,minmax(0,1fr)) }
  .game-shell.wide .memory-tray { grid-template-columns:repeat(8,minmax(0,1fr)) }
  .game-shell.wide.theme-timeline .session-banner h2 { font-size:clamp(1.25rem,4vmin,1.85rem); margin-block:.2rem }
  .game-shell.wide .timeline-case { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:.65rem }
  .game-shell.wide .timeline-order button { min-height:32px; font-size:.84rem }
  .game-shell.wide .timeline-case h3 { font-size:.95rem }
  .game-shell.wide .timeline-clues { font-size:.8rem; line-height:1.22 }
  .game-shell.wide .bingo-boards { width:min(100%,24rem) }
  .game-shell.wide .bingo-boards button { min-height:38px }
  .game-shell.wide.theme-story .session-banner h2 { font-size:clamp(1.25rem,4vmin,1.85rem); margin-block:.2rem }
  .game-shell.wide .arena-tally { margin-block:.25rem }
}
