body { margin: 0; }
main { position: relative; max-width: 1536px; margin: auto; container-type: inline-size; }
.board { display: block; width: 100%; height: auto; }
.zone, .overlay { position: absolute; box-sizing: border-box; }
.zone { display: block; background: transparent; border: 0; padding: 0; cursor: pointer; }
.zone:focus-visible, dialog button:focus-visible { outline: 3px solid white; outline-offset: -5px; box-shadow: inset 0 0 0 7px #31422b; }
[data-thumb][aria-pressed=true] { border: 2px solid #000; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#preview { object-fit: contain; }
#caption, #counter { text-align: center; font: 1.54cqw Georgia, serif; color: #321c11; }
#caption { font-style: italic; }
dialog img { display: block; max-width: 92vw; max-height: 85vh; object-fit: contain; }
dialog::backdrop { background: #241b13b3; }
[hidden] { display: none !important; }
.upper-board { aspect-ratio: 1536 / 913; overflow: hidden; }
