/* The First Light: touch-first adventure layer. */
#game{max-width:1100px}.adventure-mode #game .panel{background:#142820;color:#f4e9cc;border:1px solid #827044;outline:none;padding:22px;box-shadow:0 20px 65px #0005}.adventure-mode #game h2{color:#f0cf82;font-size:clamp(25px,4vw,38px);margin-bottom:12px}.adventure-mode #chapter{color:#bfae85}.adventure-mode #sceneText{display:none}.adventure-mode #game .spoken-line{font-size:20px}.adventure-mode #game .story-art{margin:0 0 22px;border:1px solid #8a764b;border-radius:14px;position:relative;isolation:isolate}.adventure-mode .story-art img,.adventure-mode .story-art video{width:100%;aspect-ratio:16/9;object-fit:cover}.adventure-mode .choice{background:#243e32;border:1px solid #b0985d;border-radius:12px;color:#fff2ce}.adventure-mode .choice:hover{background:#335744}.adventure-mode .narration-player{background:#102219;color:#dfd7bf;border-color:#4b624d}.adventure-mode .choice-back-bar{border-color:#4b624d}.adventure-mode .choice-back-bar p{color:#d2c5a6}.adventure-mode #undoChoice{background:#f3dc9d;color:#223127;border-color:#f3dc9d}.adventure-mode #undoChoice:disabled{background:#38483b;color:#c5c2af;border-color:#58654c}.adventure-mode #stats{color:#dfd1a9}.adventure-mode .secondary{color:#ffe5aa}.adventure-mode .panel .eyebrow{color:#c4ae7b}
.adventure-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 18px}.adventure-tools button{min-height:44px;background:#20392d;border:1px solid #8a794c;color:#fbe9bb;border-radius:25px;padding:8px 17px;font-size:16px}.adventure-tools button[aria-pressed=true]{background:#f0d799;color:#192e24}.scene-brief{font-size:clamp(20px,2.5vw,26px);line-height:1.45;max-width:760px;margin:0 0 18px;color:#f2e9cf}.quest-objective{color:#cfbb87;font:15px/1.5 system-ui,sans-serif;margin:12px 0}.explore-points{position:absolute;inset:0;z-index:5;pointer-events:none}.explore-points button{position:absolute;pointer-events:auto;transform:translate(-50%,-50%);border:1px solid #ffe4a4;border-radius:50%;width:48px;height:48px;background:#162e25ed;color:#fff4cb;box-shadow:0 0 0 7px #f1d08e20,0 0 25px #0008;font-size:23px}.explore-points button:after{content:attr(data-label);position:absolute;top:54px;left:50%;transform:translateX(-50%);font:12px/1.2 system-ui,sans-serif;background:#10231bec;color:#fff3ce;padding:5px 8px;border-radius:5px;white-space:nowrap}.explore-points button.found{background:#b6d391;color:#173121}.explore-points button:hover{box-shadow:0 0 0 10px #ffe3a340}.explore-points button:nth-child(1){left:24%;top:48%}.explore-points button:nth-child(2){left:67%;top:30%}.explore-points button:nth-child(3){left:83%;top:68%}
.play-space{border:1px solid #65784f;background:radial-gradient(ellipse at top,#2e4732,#11251c);border-radius:15px;padding:22px;margin:20px 0;position:relative;overflow:hidden}.play-space h3{font-size:22px;margin:0 0 8px;color:#f2d994}.play-space p{font:16px/1.6 system-ui,sans-serif;color:#e4ddc8}.play-space button{touch-action:manipulation;min-height:48px;border-radius:10px;border:1px solid #a48b53;background:#243e2d;color:#ffedbc;padding:10px 16px;margin:5px;font:17px/1.4 Georgia,serif}.play-space button:hover,.play-space button[aria-pressed=true]{background:#476044}.play-space .help-action{background:transparent;font:14px system-ui,sans-serif;min-height:44px}.play-space .challenge-result{color:#c9edaa;min-height:24px;font-weight:600}.play-space .glyph{font:28px Georgia,serif;min-width:65px;min-height:65px}.power-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stone-card{border:1px solid #8d815c;border-radius:14px;padding:16px 8px;text-align:center;background:#172c23}.stone-orb{display:block;width:66px;height:74px;margin:8px auto 15px;clip-path:polygon(50% 0,95% 25%,90% 78%,50% 100%,10% 78%,5% 25%);background:radial-gradient(circle at 35% 25%,#ffd8c5,#cc4438 50%,#3c1119);filter:drop-shadow(0 0 15px #da624b)}.stone-card.blue .stone-orb{background:radial-gradient(circle at 35% 25%,#d0faff,#459dd6 50%,#142952)}.stone-card.gold .stone-orb{background:radial-gradient(circle at 35% 25%,#fff9cc,#e2bb42 50%,#6b4216)}.stone-card h4{font:18px Georgia,serif;margin:5px}.stone-card button{font-size:15px;padding:8px}.stone-card .choose-stone{display:block;margin:10px auto}.challenge-track{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:15px 0}.chain-link{display:inline-flex;width:60px;height:42px;border:8px solid #a6aea0;border-radius:25px;transform:rotate(-20deg);transition:transform .4s,opacity .4s}.chain-link.broken{transform:translateY(35px) rotate(35deg);opacity:.15}.lantern-cell{font-size:32px!important;background:#1b2b23!important;min-width:65px;opacity:.5}.lantern-cell.lit{opacity:1;box-shadow:0 0 24px #f1d17566;background:#5a5424!important}.crossing-tile{width:65px;height:60px;background:#604f35!important}.crossing-tile.safe{border:2px solid #dbdba0;box-shadow:0 0 15px #f3de8a40}.crossing-tile.done{background:#405d3a!important}.mirror-cell{font-size:30px!important}.mirror-cell.done{opacity:.25;transform:rotate(12deg)}.quick-caption{font:14px/1.5 system-ui,sans-serif;color:#c1cdb4}.adventure-status{font:14px/1.5 system-ui,sans-serif;color:#d6c594;margin:10px 0}.bag-strip{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.bag-strip button{padding:9px 14px;min-height:44px;background:#1d3528;border:1px solid #8a7f52;border-radius:10px;color:#f4dfab;font:15px Georgia,serif}.bag-strip .selected{outline:2px solid #f0da92}.companion-row{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.companion-row button{display:flex;align-items:center;gap:9px;border-radius:30px;background:#1b3226;color:#ead7a7;border:1px solid #617251;min-height:48px;padding:5px 15px 5px 5px}.companion-row img{width:38px;height:38px;border-radius:50%;object-fit:cover}.adventure-mode #sceneText.transcript-open{display:block;color:#efe5cc;background:#1b3027;padding:20px;border-radius:10px;margin-top:14px}.adventure-mode #sceneText .speaker{color:#d0b372}.adventure-dialog{width:min(94vw,620px);max-height:85svh;overflow:auto;background:#172e24;color:#f2e7cb;border:1px solid #b59b60;border-radius:18px;padding:26px;box-shadow:0 25px 90px #0008}.adventure-dialog::backdrop{background:#06100cba;backdrop-filter:blur(4px)}.adventure-dialog h2{font-size:26px;color:#f1d393;margin-top:12px}.adventure-dialog p{font-size:20px;line-height:1.5}.adventure-dialog button{min-height:46px;background:#2b4733;color:#ffe5a2;border:1px solid #ac9256;border-radius:9px;padding:10px 16px;margin:5px;font:17px Georgia,serif}.adventure-dialog .dialog-close{float:right;background:#f3dfa9;color:#213326}.souvenir-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.souvenir-grid span{display:flex;align-items:center;justify-content:center;aspect-ratio:1;border:1px solid #6d7656;border-radius:8px;color:#788368}.souvenir-grid span.earned{color:#f6df97;background:#40522d}.map-routes .map-journey-path{fill:none;stroke:#fff0b3;stroke-width:5;stroke-dasharray:10 7;filter:drop-shadow(0 0 4px #edb751)}.ending-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:9px;margin:20px 0}.ending-cards div{background:#20392c;padding:14px;border:1px solid #8e8159;border-radius:10px;font-size:16px}.ending-cards img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px}.adventure-mode #fullJournal .ending-cards{color:#f1e5c6}.game-progress{height:4px;background:#526045;border-radius:4px;margin:8px 0 18px;overflow:hidden}.game-progress span{display:block;height:100%;background:#e9cc82;transition:width .3s}.adventure-mode .screen:has(#fullJournal) .panel{background:#142820;color:#efe3bf}.adventure-mode .screen:has(#fullJournal) h2{color:#e8ca87}.adventure-mode #game .story-art{min-height:200px}
@media(max-width:650px){.adventure-mode #game .panel{padding:14px}.adventure-mode #game .story-art img,.adventure-mode #game .story-art video{aspect-ratio:4/3}.power-row{gap:6px}.stone-card{padding:10px 3px}.stone-card button{font-size:13px;padding:6px;margin:4px 0}.stone-orb{width:48px;height:58px}.play-space{padding:14px}.explore-points button{width:42px;height:42px;font-size:20px}.explore-points button:after{top:47px;font-size:10px;max-width:94px;white-space:normal;min-width:65px}.scene-brief{font-size:21px}.adventure-tools{gap:7px}.adventure-tools button{padding:8px 12px}.adventure-dialog{padding:20px}.adventure-dialog p{font-size:19px}.adventure-mode .story-art{border-radius:9px}.game-progress{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}.chain-link,.game-progress span{transition:none}}
/* Explicit layout rules must never override native hidden controls. */
[hidden]{display:none!important}
.power-proof{display:flex;justify-content:center;gap:7px;min-height:30px;margin:12px 0;color:#bba36f}.power-proof.red span{display:inline-block;transition:transform .5s}.tested .power-proof.red span{transform:translateY(-12px) rotate(-12deg);color:#f3bbaa}.power-proof.blue span{opacity:.12;transition:opacity .5s,color .5s}.tested .power-proof.blue span{opacity:1;color:#a6e3ff;text-shadow:0 0 12px #93c5ff}.power-proof.gold span{color:#40533c;transition:color .5s,text-shadow .5s}.tested .power-proof.gold span{color:#ffe0a0;text-shadow:0 0 15px #efc26a}.stone-card.tested{border-color:#e9d393;box-shadow:inset 0 0 25px #e2c36e15}
