@font-face { font-family: 'History Serif'; src: local('Georgia'); font-display: swap; }
:root { color-scheme: light; --ink: #183d3e; --deep: #103033; --paper: #fff8e9; --gold: #ebbd5d; --muted: #546865; --line: #d5d8c9; --accent: #9b4531; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; }
body { margin: 0; color: var(--ink); background: #f3f0e5; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--paper); }
.skip-link:focus { top: 10px; }
.game-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 16px max(24px, calc((100vw - 1376px) / 2)); color: #fff3db; background: var(--deep); border-bottom: 3px solid var(--gold); }
.brand { display: inline-flex; gap: 12px; align-items: center; font-family: Georgia, serif; font-size: 21px; text-decoration: none; line-height: 1.25; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 16px; }
.brand small { display: block; font: 12px/1.8 system-ui, sans-serif; color: #d2dcca; letter-spacing: .05em; }
.game-header nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 14px; }
.game-header nav a { padding-block: 10px; text-decoration: none; }
.game-header :focus-visible { outline-color: var(--gold); }
.text-button { padding: 10px 0; border: 0; background: none; color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 5px; }
.game-shell { max-width: 1440px; margin: 0 auto; padding: 36px 32px 40px; }
.game-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.eyebrow { margin: 0 0 7px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 500; line-height: 1.15; }
h1 { margin: 0 0 12px; font-size: clamp(32px, 3.1vw, 47px); }
h1 em { color: var(--accent); font-weight: 500; }
.game-heading p:last-child { margin: 0; }
.game-heading > button { flex-shrink: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 46px; padding: 11px 17px; border: 1px solid var(--ink); border-radius: 8px; font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center; }
.button.primary { background: var(--ink); color: #fff7e7; }
.button.secondary { background: var(--paper); color: var(--ink); }
.button:not(:disabled):hover { box-shadow: 0 3px 0 #183d3e22; border-color: var(--accent); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 28px; }
.exploration { min-width: 0; }
.scene-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.scene-heading h2 { margin: 0; font-size: clamp(25px, 2.3vw, 34px); }
.scene-badge { flex-shrink: 0; padding: 6px 10px; border: 1px solid #bfcdbb; border-radius: 4px; font-size: 12px; color: var(--muted); }
.scene-story { margin: 16px 0 12px; }
.scene-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 10px; font-size: 14px; }
.scene-tools p { margin: 0; }
.scene-tools button { flex-shrink: 0; }
.scene-scroll { position: relative; overflow: hidden; border: 4px solid var(--ink); border-radius: 12px; background: #c7caba; box-shadow: 0 6px 0 #183d3e16; }
.scene-scroll.is-zoomed { overflow: auto; max-height: 70vh; overscroll-behavior: contain; }
.scene-stage { position: relative; width: 100%; aspect-ratio: 3 / 2; cursor: crosshair; isolation: isolate; }
.scene-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.scene-scroll.is-zoomed .scene-stage { width: 180%; }
.object-layer { position: absolute; inset: 0; pointer-events: none; }
.scene-object { position: absolute; display: grid; place-items: center; border: 0; padding: 0; background: none; transform: translate(-50%, -50%); pointer-events: none; border-radius: 5px; }
.reason-reminder { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:12px 0; padding:14px 16px; border:2px solid #a87326; border-radius:8px; background:#fff0c9; }
.reason-reminder p { margin:0; flex:1 1 240px; font-weight:650; }
.reason-reminder button { flex-shrink:0; }
.scene-object.is-found { outline: 2px solid #fff4bd; outline-offset: 1px; box-shadow: 0 0 0 4px #183d3eb3; cursor: default; }
.found-marker { position: absolute; top: 0; right: 0; padding: 1px 6px; background: var(--ink); color: #fff4bd; border-radius: 3px; font: 700 12px/1.6 system-ui, sans-serif; pointer-events: none; }
.scene-object:focus-visible { outline: 3px solid #fff8ce; outline-offset: 2px; border-radius: 5px; box-shadow: 0 0 0 6px var(--ink); }
.scene-object.is-hinted::after { content: ''; position: absolute; inset: -10px; border: 3px dashed #ffef8f; border-radius: 50%; box-shadow: 0 0 0 3px var(--ink); }
.scene-message { margin: 15px 0; padding: 10px 13px; border-left: 3px solid var(--gold); background: #fffaf0; font-size: 14px; }
.text-mode { border: 1px solid var(--line); border-radius: 8px; background: #ffffff70; padding: 15px 18px; }
.text-mode summary { cursor: pointer; font-size: 14px; font-weight: 700; padding-block: 4px; }
.text-mode > p { font-size: 14px; }
.object-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.object-choice { min-height: 48px; padding: 10px 12px; border: 1px solid #b7c6bc; background: white; color: var(--ink); border-radius: 6px; text-align: left; font-size: 14px; }
.object-choice:not(:disabled):hover { background: #f4eacb; }
.object-choice:disabled { border-color: #a7bcb0; color: #315f4c; background: #e0eadf; }
.illustration-note { color: var(--muted); font-size: 12px; margin-top: 16px; }
.notebook { position: sticky; top: 20px; padding: 25px 23px; border: 1px solid #c6cebf; border-top: 5px solid var(--ink); border-radius: 8px; background: var(--paper); box-shadow: 6px 6px 0 #183d3e0b; }
.notebook h2 { margin: 0 0 14px; font-size: 27px; }
.notebook > p:not(.eyebrow) { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.progress-label { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.progress-label > span { color: var(--accent); }
progress { display: block; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 20px; background: #e3e4d6; margin: 10px 0 23px; overflow: hidden; }
progress::-webkit-progress-bar { background: #e3e4d6; }
progress::-webkit-progress-value { background: var(--ink); }
progress::-moz-progress-bar { background: var(--ink); }
.discoveries { list-style: none; margin: 0; padding: 0; }
.discoveries li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #dfdfce; min-height: 47px; font-size: 14px; }
.discovery-number { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border: 1px dashed #c2c5b5; border-radius: 50%; font-size: 12px; color: var(--muted); }
.discoveries .is-found .discovery-number { background: var(--ink); border: 0; color: var(--paper); }
.discovery-button { border: 0; padding: 3px 0; background: none; color: var(--ink); text-align: left; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.hint-panel { margin-top: 23px; }
.hint-panel .button { width: 100%; }
.hint-panel > p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.completion { margin-top: 22px; padding-top: 20px; border-top: 2px solid var(--gold); }
.completion-seal { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: var(--ink); color: var(--gold); font-size: 23px; }
.completion h3 { margin: 13px 0; font-size: 25px; }
.completion > p { font-size: 14px; }
.completion .button { width: 100%; }
.reflection { border-left: 2px solid var(--gold); padding-left: 12px; margin-block: 23px; }
.reflection span { display: block; margin-top: 7px; }
.game-footer { max-width: 1440px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin: 0 auto; padding: 20px 32px 30px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.game-footer p { margin: 0; font-size: 12px; }
.loading, .image-error { padding: 28px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; }
.image-error { margin-top: 15px; }
dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 26px 30px 30px; border: 1px solid #b2b6a4; border-radius: 12px; color: var(--ink); background: var(--paper); box-shadow: 0 28px 80px #0005; overflow-y: auto; }
dialog::backdrop { background: #102729b3; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.close-button { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); font-size: 27px; }
dialog h2 { margin: 8px 0 22px; font-size: clamp(27px, 4vw, 35px); }
.dialog-explanation { margin: 0 0 18px; }
.old-way { padding: 15px 18px; background: #e4eadf; border-left: 3px solid var(--ink); border-radius: 4px; }
.old-way strong { display: block; margin-bottom: 5px; }
.old-way span { display: block; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.sources-list { padding-left: 21px; }
.sources-list li { margin-block: 12px; }
.dialog-note { color: var(--muted); font-size: 14px; }
@media (max-width: 1100px) { .game-heading { align-items: flex-start; } .scene-badge { display: none; } .workspace { grid-template-columns: minmax(0, 1fr) 275px; gap: 20px; } .notebook { padding: 23px 19px; } }
@media (max-width: 850px) { .workspace { grid-template-columns: 1fr; } .notebook { position: static; } .game-heading { flex-direction: column; gap: 18px; } .notebook h2 { max-width: none; } .discoveries { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; } .notebook > p { max-width: 620px; } }
@media (max-width: 520px) { .game-header { padding: 14px 16px; gap: 8px; } .game-header nav { width: 100%; justify-content: space-between; gap: 16px; } .game-shell { padding: 25px 16px 30px; } h1 { font-size: 33px; } .game-heading { margin-bottom: 27px; } .game-heading > p { font-size: 15px; } .scene-tools { align-items: flex-start; flex-direction: column; gap: 2px; } .scene-scroll { border-width: 3px; border-radius: 8px; } .scene-stage { min-height: 0; } .object-choices { grid-template-columns: 1fr; } .discoveries { grid-template-columns: 1fr; } .game-footer { padding: 18px 16px 26px; } dialog { padding: 20px; } }
@media (prefers-reduced-motion: no-preference) { .button { transition: box-shadow .15s ease, background .15s ease; } }

.wrap{max-width:1440px;margin:auto;padding:36px 32px 40px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}.panel{min-width:0}.aside{position:sticky;top:20px;padding:25px 23px;border:1px solid #c6cebf;border-top:5px solid var(--ink);border-radius:8px;background:var(--paper);box-shadow:6px 6px 0 #183d3e0b}.aside strong{font:27px/1.15 Georgia,serif;display:block;margin:0 0 14px}.aside p{font-size:14px;color:var(--muted)}.round-top{display:flex;justify-content:space-between;gap:12px;font-weight:650;font-size:14px}.question{font-size:27px;margin:22px 0}.answers.two{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.option{position:relative;padding:0;display:block;overflow:hidden;text-align:left;background:var(--paper);color:var(--ink);border:3px solid var(--ink);border-radius:12px;box-shadow:0 5px 0 #183d3e16}.option:not(:disabled):hover{border-color:var(--accent)}.option>.letter{position:absolute;z-index:1;top:12px;left:12px;padding:4px 10px;border:1px solid var(--gold);background:var(--deep);color:var(--gold);border-radius:4px;font-weight:700}.option>span:last-child{display:block;padding:18px;font:23px/1.3 Georgia,serif}.event-art{display:block;aspect-ratio:1.6;border-bottom:2px solid var(--ink);background-image:none;background-size:400% 300%;background-position:var(--sx,0%) var(--sy,0%)}.option.correct{border-color:#4d784b;background:#e3efdf}.option.wrong{border-color:var(--accent);background:#f5e7de}.feedback{margin:22px 0;padding:20px;border-left:3px solid var(--gold);background:var(--paper);border-radius:4px}.feedback strong{display:block;font-size:19px}.feedback p{margin:10px 0 18px}.fine{font-size:12px;color:var(--muted)}.finish{text-align:center;padding:24px}.finish h2{font-size:32px}.finish .big{font:76px Georgia,serif;color:var(--accent);margin:24px}.finish .big small{font-size:28px;color:var(--muted)}.reviews{text-align:left;margin-top:24px}.reviews li{margin:12px 0}.primary,.secondary{font:700 14px/1.4 system-ui;min-height:46px;padding:11px 17px;border:1px solid var(--ink);border-radius:8px}.primary{background:var(--ink);color:var(--paper)}.secondary{background:var(--paper);color:var(--ink)}.primary:hover,.secondary:hover{border-color:var(--accent);box-shadow:0 3px 0 #183d3e22}.game-footer{display:flex;gap:18px;flex-wrap:wrap;justify-content:space-between;align-items:center}.game-footer p{margin:0}.game-heading{align-items:start}.game-heading>div{max-width:800px}.instruction{padding:0;font-size:14px;color:var(--muted)}dialog{max-width:560px;background:var(--paper);color:var(--ink);border:2px solid var(--ink);border-radius:12px;padding:26px}dialog::backdrop{background:#103033a8}@media(max-width:760px){.wrap{padding:25px 16px}.layout{grid-template-columns:1fr}.aside{position:static}.answers.two{gap:12px}.option>span:last-child{font-size:18px;padding:13px}.event-art{aspect-ratio:1.2}.game-heading{display:block}.game-heading p{font-size:15px}}@media(max-width:370px){.answers.two{grid-template-columns:1fr}.event-art{aspect-ratio:2}}
.event-art{display:flex;align-items:center;justify-content:center;background:#eae7da;aspect-ratio:1.5;overflow:hidden}.event-art img{display:block;width:100%;height:100%;object-fit:contain}.option>.event-label{display:block;padding:15px 17px 7px;font:23px/1.3 Georgia,serif}.event-caption{display:block;font:12px/1.5 system-ui;padding:0 17px 16px;color:var(--muted)}.option{display:flex;flex-direction:column}.event-art{width:100%;flex:none}.event-caption{margin-top:auto}h2[tabindex="-1"]:focus{outline:none}@media(max-width:760px){.option>.event-label{font-size:18px;padding:12px 10px 7px}.event-caption{font-size:11px;padding:0 10px 12px}}