/* The room and games are independent, browser-only additions to the guide. */
.site-header nav { gap: 23px; }
.exploration { padding-top: 75px; padding-bottom: 45px; }
.exploration h2, .quiz-section h2 { font-size: clamp(32px, 3.7vw, 48px); }
.enhancement-fallback { margin-top: 25px; padding: 18px; border: 1px solid var(--line); font-size: 13px; }
.enhancement-fallback a { color: var(--gold); text-decoration: underline; }
.exploration-toolbar { margin: 30px 0 13px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.discovery-progress { display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--text); }
progress { appearance: none; border: 0; height: 3px; background: #ffffff1c; border-radius: 5px; overflow: hidden; accent-color: var(--gold); }
progress::-webkit-progress-bar { background: #ffffff1c; }
progress::-webkit-progress-value { background: var(--gold); transition: width .3s; }
progress::-moz-progress-bar { background: var(--gold); }
#discovery-meter { width: 130px; }
.exploration-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.small-control { background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--text); padding: 10px 13px; min-height: 44px; font-size: 11px; }
.small-control:hover, .small-control[aria-pressed=true] { background: #dfc38c14; border-color: #dfc38c70; color: var(--gold); }
.small-control span { margin-left: 8px; color: var(--gold); }
.small-control:disabled, .text-control:disabled { opacity: .45; }
.hint-line { font-size: 12px; min-height: 22px; margin-bottom: 15px; color: var(--muted); }
.object-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.exploration-scene { position: relative; isolation: isolate; border: 1px solid #b9a1d850; border-radius: 8px; background: #17172c; box-shadow: 0 12px 45px #0003; }
.exploration-scene > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 7px; }
.scene-caption { position: absolute; left: 22px; top: 20px; font-size: 8px; letter-spacing: 2px; padding: 6px 10px; border: 1px solid #b9a1d833; background: #0c101db3; color: #dfc38c; }
.scene-credit { position: absolute; right: 12px; bottom: 10px; font-size: 8px; padding: 2px 6px; color: #c9c1d4; background: #0a1023b3; }
.hotspot { position: absolute; display: grid; place-items: center; width: clamp(48px, 7vw, 90px); aspect-ratio: 1; padding: 0; border-radius: 50%; border: 1px solid transparent; background: transparent; transform: translate(-50%, -50%); transition: background .2s, border-color .2s; }
.hotspot > svg { width: 100%; height: 100%; filter: drop-shadow(1px 4px 4px #000); transition: transform .2s, filter .2s; }
.hotspot:hover > svg, .hotspot:focus-visible > svg { transform: translateY(-3px) rotate(-3deg); filter: drop-shadow(0 0 9px #dfc38c77); }
.hotspot:focus-visible { z-index: 4; outline-offset: 3px; }
.hotspot-doll { left: 13%; top: 45%; }
.hotspot-cat { left: 28%; top: 45%; }
.hotspot-key { left: 56.5%; top: 43%; }
.hotspot-music { left: 83%; top: 40%; }
.hotspot-button { left: 74%; top: 81%; }
.object-label { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); opacity: 0; pointer-events: none; background: #101321f2; color: #f2e4cb; padding: 3px 8px; font-size: 10px; white-space: nowrap; border: 1px solid #dfc38c5e; border-radius: 3px; transition: opacity .2s; }
.hotspot:hover .object-label, .hotspot:focus-visible .object-label, .highlight-objects .object-label { opacity: 1; }
.highlight-objects .hotspot { background: #ddc8fa1c; border: 1px dashed #dfc38cc9; box-shadow: 0 0 20px #b69de133; }
.found-mark { display: none; position: absolute; right: -1px; top: 0; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #ddc38c; color: #211d2e; font-size: 12px; font-weight: bold; box-shadow: 0 2px 5px #0009; }
.hotspot.found .found-mark { display: grid; }
.hotspot.found > svg { opacity: .75; }
.unlocked-door { position: absolute; top: 15.5%; left: 45.2%; width: 12.4%; height: 45.4%; pointer-events: none; border: 1px solid #d9b8ff; opacity: 0; background: radial-gradient(ellipse at 50% 60%, #f1d4f8, #b697e2 40%, #7970c0 80%); box-shadow: 0 0 30px #bc98ff, 0 0 70px #9175cc70; transform: scaleX(.1); transform-origin: left; transition: opacity .9s, transform 1.2s; }
.unlocked-door::before { content: ''; position: absolute; inset: 4%; border: 1px solid #ffe6c855; background: repeating-radial-gradient(ellipse at center, transparent 0 14%, #ffffff25 15%, transparent 16% 23%); }
.unlocked-door > span { display: grid; place-items: center; height: 100%; font-size: clamp(30px, 7vw, 70px); color: #fff1d1; }
.complete .unlocked-door { opacity: .95; transform: scaleX(1); }
.collection-tray { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid var(--line); }
#clue-collection { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 8px; }
.collection-item { display: flex; align-items: center; gap: 7px; padding: 7px 9px; font-size: 10px; color: var(--muted); border: 1px dashed var(--line); border-radius: 4px; }
.collection-item.collected { background: #dfc38c10; border: 1px solid #dfc38c66; color: var(--gold); }
.collection-mark { font-size: 13px; }
.text-control { background: transparent; border: 0; padding: 10px 0; min-height: 44px; font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.text-control:hover { color: var(--gold); }
.object-list { margin-top: 12px; }
.object-list summary { font-size: 11px; color: var(--muted); padding: 12px 0; display: flex; align-items: center; gap: 18px; }
.object-list summary > span { color: var(--gold); font-size: 18px; }
#object-list-buttons { display: flex; flex-wrap: wrap; gap: 10px; padding: 3px 0 14px; }
#object-list-buttons .found::after { content: ' ✓'; color: var(--gold); }
.experience-note { font-size: 10px; color: var(--faint); line-height: 1.8; margin-top: 10px; max-width: 760px; }
.exploration-complete { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 24px; margin-top: 24px; border: 1px solid #d6bc8b66; background: radial-gradient(ellipse at top left, #68507e47, #dfc38c07); border-radius: 5px; }
.exploration-complete .eyebrow { font-size: 8px; }
.exploration-complete h3 { font-size: 28px; margin: 8px 0; line-height: 1.2; }
.exploration-complete p:not(.eyebrow) { font-size: 12px; }
.exploration-complete a { flex-shrink: 0; }
.clue-dialog { color: var(--text); background: radial-gradient(ellipse at top, #3b2e4b, var(--bg) 70%); border: 1px solid #baa0cb80; border-radius: 12px; padding: 35px; width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; box-shadow: 0 25px 100px #0009; }
.clue-dialog::backdrop { background: #080b16d1; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; background: transparent; border: 0; color: var(--text); border-radius: 50%; font-size: 28px; }
.dialog-close:hover { background: #ffffff10; }
.dialog-object { display: block; width: 86px; height: 86px; margin-bottom: 19px; filter: drop-shadow(0 4px 15px #050714); }
.clue-dialog h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.7px; margin: 13px 0 19px; }
.clue-dialog > p:not(.eyebrow) { font-size: 14px; line-height: 1.8; }
.clue-dialog .source-link { margin: 22px 0; font-size: 11px; }
.clue-dialog .button { width: 100%; }
.quiz-section { padding-top: 70px; padding-bottom: 25px; }
.quiz-shell { margin-top: 34px; padding: 38px; background: linear-gradient(140deg, #5d477a24, #ffffff03); border: 1px solid #c1a3d640; border-radius: 8px; }
.quiz-intro { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center; max-width: 780px; margin: auto; }
.quiz-seal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 23px; width: 180px; aspect-ratio: 1; border: 1px dashed #dfc38c60; border-radius: 50%; position: relative; }
.quiz-seal::before { content: '✧'; position: absolute; left: 9px; top: 10px; color: var(--gold); background: var(--bg); font-size: 24px; }
.quiz-seal img { border-radius: 50%; transform: rotate(-18deg); }
.quiz-seal > span { font-size: 6px; letter-spacing: 1.2px; color: var(--gold); }
.quiz-intro h3 { font-size: 30px; line-height: 1.3; margin: 12px 0; }
.quiz-intro p { font-size: 13px; margin-bottom: 23px; }
.quiz-meta { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--gold); }
#quiz-meter { display: block; width: 100%; margin-top: 13px; margin-bottom: 26px; }
#quiz-form fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.quiz-question-title { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.3; margin-bottom: 24px; width: 100%; color: var(--text); }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-option { position: relative; display: flex; align-items: center; gap: 13px; min-height: 69px; padding: 15px 18px; background: #ffffff03; border: 1px solid #b9b5cc40; border-radius: 5px; cursor: pointer; color: var(--text); font-size: 13px; flex-wrap: wrap; }
.quiz-option > input { margin: 0; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--gold); }
.quiz-option:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; }
.quiz-option:has(input:checked) { border-color: var(--gold); background: #dfc38c12; }
.quiz-option:hover { background: #ffffff09; }
.option-letter { font-family: var(--serif); color: var(--gold); font-size: 18px; }
.option-text { flex: 1; min-width: 100px; }
.quiz-option:has(input:disabled) { cursor: default; }
.quiz-option.answer-correct { border-color: #9ac6aa; background: #9ac6aa10; }
.quiz-option.answer-incorrect { border-color: #df9f9f; background: #df9f9f10; }
.answer-label { font-size: 10px; color: #a7d7b9; margin-left: auto; }
.answer-incorrect .answer-label { color: #edb3b3; }
#quiz-submit:disabled { opacity: .45; transform: none; }
.quiz-feedback { padding: 22px 0 0; border-top: 1px solid var(--line); }
.quiz-feedback h4 { font-family: var(--serif); font-size: 25px; line-height: 1.3; color: var(--gold); font-weight: 400; }
.quiz-feedback p { font-size: 14px; max-width: 800px; line-height: 1.8; margin-top: 10px; }
.quiz-feedback .source-link { width: fit-content; margin: 13px 0 22px; padding: 0; border: 0; font-size: 11px; }
.result-heading { display: flex; gap: 30px; align-items: center; }
.result-score { flex-shrink: 0; width: 125px; height: 125px; border: 1px solid #dfc38c80; outline: 1px dashed #dfc38c40; outline-offset: 8px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #dfc38c08; color: var(--gold); }
.result-score strong { font-family: var(--serif); font-size: 58px; font-weight: 400; line-height: 1.1; }
.result-score span { font-size: 8px; letter-spacing: 1px; margin-top: 6px; }
.result-title { font-size: 36px; margin: 9px 0; line-height: 1.2; }
.result-heading p:not(.eyebrow) { font-size: 13px; max-width: 550px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 25px; margin: 30px 0; align-items: center; }
.quiz-review { border-top: 1px solid var(--line); }
.quiz-review summary { font-size: 13px; padding: 20px 0; color: var(--gold); }
.quiz-review ol { list-style: decimal-leading-zero; margin: 0; padding-left: 30px; }
.quiz-review li { font-size: 12px; color: var(--faint); padding: 17px 0 21px 8px; border-top: 1px solid var(--line); }
.quiz-review h4 { color: var(--text); font-size: 14px; line-height: 1.5; margin-bottom: 10px; font-weight: 400; }
.quiz-review p { margin-top: 5px; }
.quiz-review .review-answer, .review-correct .review-choice { color: #afd4b9; }
.review-incorrect .review-choice { color: #e6afaf; }
.quiz-review .source-link { font-size: 11px; border: 0; margin-top: 10px; padding: 0; width: fit-content; }
@media (max-width: 900px) {
  .site-header nav { gap: 14px; font-size: 11px; }
  .exploration-toolbar { align-items: flex-start; }
  .discovery-progress { flex-direction: column; align-items: flex-start; gap: 8px; }
  .collection-tray { flex-wrap: wrap; gap: 3px; }
  .quiz-intro { grid-template-columns: 140px 1fr; gap: 28px; }
  .quiz-seal { width: 140px; }
  .quiz-seal img { width: 65px; height: 65px; }
  .quiz-seal > span { font-size: 5px; }
}
@media (max-width: 760px) {
  .site-header nav { justify-content: space-between; gap: 10px; font-size: 10px; }
  .exploration { padding-top: 42px; padding-bottom: 15px; }
  .exploration-toolbar { flex-direction: column; gap: 15px; margin-top: 23px; }
  .discovery-progress { flex-direction: row; justify-content: space-between; width: 100%; font-size: 11px; }
  #discovery-meter { width: 80px; }
  .exploration-tools { width: 100%; }
  .exploration-tools button { flex: 1; }
  .hint-line { font-size: 11px; min-height: 38px; }
  .scene-caption { top: 10px; left: 10px; font-size: 6px; letter-spacing: 1px; padding: 4px 6px; }
  .scene-credit { font-size: 6px; right: 6px; bottom: 6px; }
  .hotspot { width: clamp(44px, 10vw, 62px); }
  .hotspot-doll { left: 13%; top: 46%; }
  .hotspot-cat { left: 31%; top: 44%; }
  .object-label { font-size: 8px; padding: 2px 5px; }
  .found-mark { width: 17px; height: 17px; font-size: 10px; }
  .collection-item { padding: 5px 7px; font-size: 9px; }
  #clue-collection { gap: 6px; }
  .collection-tray { padding-top: 13px; padding-bottom: 5px; }
  .exploration-complete { flex-direction: column; align-items: flex-start; padding: 20px; gap: 20px; }
  .exploration-complete h3 { font-size: 25px; }
  .quiz-section { padding-top: 45px; }
  .quiz-shell { padding: 24px; margin-top: 24px; }
  .quiz-intro { grid-template-columns: 1fr; gap: 23px; }
  .quiz-seal { width: 110px; margin: auto; gap: 8px; }
  .quiz-seal img { width: 52px; height: 52px; }
  .quiz-seal > span { font-size: 4px; letter-spacing: .6px; }
  .quiz-intro .eyebrow { font-size: 7px; }
  .quiz-intro h3 { font-size: 27px; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-option { min-height: 62px; padding: 13px; font-size: 13px; gap: 10px; }
  .quiz-question-title { font-size: 25px; }
  .quiz-feedback p { font-size: 13px; }
  .quiz-feedback h4 { font-size: 23px; }
  .result-heading { flex-direction: column; align-items: flex-start; gap: 25px; }
  .result-score { width: 100px; height: 100px; margin: 8px; }
  .result-score strong { font-size: 45px; }
  .result-title { font-size: 30px; }
  .result-actions { gap: 10px 25px; }
  .clue-dialog { padding: 26px; }
  .clue-dialog h2 { font-size: 29px; }
  .clue-dialog > p:not(.eyebrow) { font-size: 13px; }
}
@media (max-width: 350px) {
  .quiz-shell { padding: 20px; }
  .exploration h2, .quiz-section h2 { font-size: 31px; }
  .quiz-option { font-size: 12px; padding: 12px 10px; }
  .quiz-question-title { font-size: 23px; }
  .scene-caption { font-size: 5px; }
  .scene-credit { max-width: 180px; text-align: right; }
  .clue-dialog { padding: 24px; }
  .dialog-object { width: 65px; height: 65px; }
  .clue-dialog h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .unlocked-door, .hotspot, .hotspot > svg, .object-label, progress::-webkit-progress-value { transition: none; }
  .hotspot:hover > svg, .hotspot:focus-visible > svg { transform: none; }
}
