:root { color-scheme: light; font-family: system-ui, sans-serif; color: #14262b; background: #eef6f2; }
body { margin: 0; }
main { max-width: 60rem; margin: auto; padding: clamp(1rem, 4vw, 2.5rem); }
header { border-bottom: 2px solid #1f7a8c; padding-bottom: .7rem; }
h1, h2 { font-family: Georgia, serif; }
h1 { margin: .25rem 0; font-size: clamp(2rem, 6vw, 3.8rem); }
h3 { font-size: 1.15rem; margin: 1rem 0 .6rem; }
p { line-height: 1.55; }
.eyebrow { color: #1f5a72; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin: 0 0 .3rem; }
nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
button { font: inherit; font-weight: 700; cursor: pointer; color: #ffffff; background: #1f4e6b; border: 1px solid #1f4e6b; border-radius: .5rem; padding: .65rem .9rem; min-height: 44px; }
button.secondary { color: #1f4e6b; background: #fff; }
button[aria-current="step"] { background: #1f5a52; border-color: #1f5a52; }
button:disabled { opacity: .58; cursor: default; }
button:focus-visible { outline: 3px solid #1b6c65; outline-offset: 3px; }
#chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem; background: #fbfffd; padding: clamp(.75rem, 3vw, 1.5rem); border-radius: .8rem; align-items: start; }
#scene { width: 100%; height: auto; border-radius: .6rem; background: #cfe3dc; aspect-ratio: 16 / 9; }
#play { display: flex; flex-wrap: wrap; gap: .5rem; }
#play .choice { text-align: left; flex: 1 1 100%; }
#feedback { min-height: 1.6em; font-weight: 600; }
.timeline { flex: 1 1 100%; margin: 0; padding-left: 1.4rem; line-height: 1.5; }
.pool { display: flex; flex-direction: column; gap: .5rem; flex: 1 1 100%; }
footer { margin-top: 1.5rem; font-size: .9rem; }
[hidden] { display: none !important; }
/* Landscape art: stack it above the story and game, centred, so it keeps its shape and no column has a gap. */
#chapter { grid-template-columns: minmax(0, 1fr); }
#scene { max-width: 38rem; justify-self: center; object-fit: contain; }
