/* The timeline is one field, rather than a stack of oversized title cards. */
.background{isolation:isolate}
#monte-carlo{position:absolute;z-index:-1;inset:0;width:100%;height:100%;opacity:.42;pointer-events:none}
.timeline-event{display:block;min-height:clamp(6.25rem,10vw,9rem);padding:clamp(1.35rem,2.5vw,2rem) 0 clamp(1.35rem,2.5vw,2rem) calc(10rem + 4vw)}
.event-copy strong{font-size:clamp(1.65rem,3vw,3.15rem);letter-spacing:-.06em;line-height:1}
.event-copy p{margin-top:.45rem;font-size:.78rem}
@media(max-width:760px){.timeline-event{padding:1.8rem 0 1.8rem 1.5rem}.timeline-event:before{top:2.5rem}.event-copy strong{font-size:clamp(1.7rem,8vw,2.35rem)}}
/* Chess is deliberately a fixed 8 × 8 square, independent of the panel width. */
#chess-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));inline-size:min(100%,34rem);block-size:auto;aspect-ratio:1/1;overflow:hidden;border:1px solid rgba(241,240,235,.34);isolation:isolate}
.chess-actions{display:flex;align-items:center;gap:1rem}
.chess-square{position:relative;display:grid;place-items:center;min-inline-size:0;min-block-size:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:#827d73;overflow:hidden;transition:background .14s ease,box-shadow .14s ease,transform .14s ease}
.chess-square.light{background:#e4e0d7}
.chess-piece{position:relative;z-index:2;display:block;width:84%;height:84%;object-fit:contain;pointer-events:none}
.chess-square.piece-white .chess-piece{filter:drop-shadow(0 1px 1px rgba(0,0,0,.58))}
.chess-square.piece-black .chess-piece{filter:drop-shadow(0 1px 1px rgba(255,255,255,.2))}
/* Selection is a neutral ivory frame. Legal moves are hints, not answer colouring. */
.chess-square.selected{box-shadow:inset 0 0 0 3px #f5f2e9, inset 0 0 0 5px rgba(219,30,25,.95);z-index:1}
.chess-square.legal:after{content:"";position:absolute;z-index:1;width:17%;aspect-ratio:1;border-radius:999px;background:rgba(36,35,31,.7);box-shadow:0 0 0 1px rgba(241,240,235,.62)}
.chess-square.light.legal:after{background:rgba(36,35,31,.6);box-shadow:0 0 0 1px rgba(0,0,0,.25)}
.chess-square.capture{box-shadow:inset 0 0 0 3px rgba(219,30,25,.9)}
.chess-square.last-move{box-shadow:inset 0 0 0 3px rgba(241,240,235,.72)}
.chess-square.correct{box-shadow:inset 0 0 0 3px #f5f2e9,inset 0 0 0 6px var(--red);z-index:1}
.chess-square.incorrect{background:#7a241f!important;transform:scale(.94)}
