@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap');
:root{--ink:#f0f5e8;--lime:#d2eaa3;--green:#173b33;--glass:rgba(15,35,31,.9)}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#122b28;color:var(--ink);font:16px 'DM Sans',sans-serif;touch-action:none}button{font:inherit;cursor:pointer;color:inherit;touch-action:manipulation}button:focus-visible{outline:3px solid var(--lime);outline-offset:4px}.hidden{display:none!important}#world,#vignette{position:absolute;inset:0}#world canvas{display:block;width:100%;height:100%}#vignette{pointer-events:none;background:linear-gradient(180deg,rgba(7,25,23,.35),transparent 22%,transparent 75%,rgba(7,25,23,.5))}header{position:absolute;top:max(22px,env(safe-area-inset-top));left:32px;right:32px;display:flex;justify-content:space-between;align-items:center;gap:18px;z-index:5}.brand{display:flex;gap:12px;align-items:center;letter-spacing:3px;font-size:18px;font-weight:700;text-shadow:0 2px 8px #15332a}.brand-symbol{display:grid;place-items:center;border:1px solid #b7d3b066;width:42px;height:46px;border-radius:50% 50% 42% 42%;font:32px Georgia;color:var(--lime)}.brand-light{font-weight:400;font-size:13px;letter-spacing:2px}.brand small{display:block;font-size:10px;letter-spacing:4px;margin-top:6px;font-weight:400}nav{display:flex;gap:8px}nav button,.close{border:1px solid #e8f7d52a;background:#15332bdd;border-radius:50%;width:42px;height:42px;font-size:22px}#hud{display:flex;gap:28px;align-items:center;background:var(--glass);padding:12px 24px;border:1px solid #c6e3b526;border-radius:12px}.stat small{font-size:10px;letter-spacing:1.5px;display:block;color:#bdcebf;margin-bottom:4px}.stat span{font:600 14px Manrope,sans-serif}.energy{width:125px;height:5px;border-radius:6px;background:#9bbab126;overflow:hidden}.energy i{display:block;height:100%;width:100%;background:var(--lime);transition:width .3s}#quest{position:absolute;top:118px;left:32px;width:270px;padding:20px;border:1px solid #cee4b927;border-radius:13px;background:var(--glass);backdrop-filter:blur(12px)}#quest small,.eyebrow{font-size:10px;letter-spacing:2px;color:var(--lime)}#quest h2{font:600 19px Manrope,sans-serif;margin:10px 0}#quest p{font-size:14px;line-height:1.6;color:#c6d2c7;margin:0 0 16px}.quest-progress{height:3px;background:#bed8ae22}.quest-progress i{display:block;height:3px;background:var(--lime);transition:width .6s}#questCount{display:block;font-size:12px;color:#c6d2c7;margin-top:10px}#location{position:absolute;right:32px;top:116px;font-size:11px;letter-spacing:2px;color:#ebf4de;text-shadow:0 2px 8px #15332a}#location span{display:block;text-align:right;font-size:22px;margin-top:5px;font-family:Manrope}#targetLabel{position:absolute;transform:translate(-50%,-100%);background:#0e2c29ee;border:1px solid #d2eaa36b;border-radius:7px;padding:9px 14px;font-size:13px;pointer-events:none;white-space:nowrap}#targetLabel b{color:var(--lime);margin-right:8px}#toast{position:absolute;top:95px;left:50%;transform:translate(-50%,-12px);background:var(--lime);color:#18332a;border-radius:30px;padding:12px 24px;opacity:0;transition:.25s;z-index:12;font-size:14px;font-weight:600;pointer-events:none;text-align:center;max-width:90vw}#toast.visible{opacity:1;transform:translate(-50%,0)}#desktopHint{position:absolute;bottom:90px;left:50%;transform:translateX(-50%);display:flex;gap:22px;white-space:nowrap;color:#d1dfcc;font-size:12px}kbd{background:#14372dd9;border:1px solid #adc89c55;border-radius:4px;padding:4px 6px;font:11px 'DM Sans',sans-serif;margin-right:5px}#actions{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);display:flex;gap:5px;background:#102a24ed;border:1px solid #c7e4a12a;border-radius:12px;padding:7px}.module{display:flex;align-items:center;gap:10px;padding:9px 16px;font-size:12px;color:#829b8d}.module b{font-size:10px;border:1px solid #8fa48755;padding:5px;border-radius:5px}.module.active{color:#e0f3b9;background:#cee99c13;border-radius:7px}.module.active b{background:var(--lime);color:#16332c;border-color:var(--lime)}.overlay{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;background:#061e19a8;backdrop-filter:blur(6px)}.intro{justify-content:flex-start;padding:100px 7vw 45px;background:linear-gradient(90deg,#0a2624fa 0%,#0a2624d9 30%,#0a262436 67%,transparent);backdrop-filter:none}.intro section{max-width:520px}h1{font:400 clamp(42px,5.4vw,82px)/1.05 Georgia,serif;letter-spacing:-2.8px;margin:22px 0}h1 em{font-weight:400;color:var(--lime)}.intro p{font-size:16px;color:#bbd0c1;line-height:1.7;margin:25px 0 28px}.primary{display:flex;justify-content:space-between;align-items:center;gap:40px;border:0;background:var(--lime);color:#1a3529;padding:16px 22px;border-radius:8px;font-weight:700;min-height:50px}.primary:hover{background:#e5f7c2}.primary span{font-size:22px}.secondary{display:block;border:1px solid #acc49b65;border-radius:8px;padding:12px 22px;background:transparent;margin-top:10px;width:100%;font-size:14px}.introMeta{margin-top:28px;color:#9eb89d;font-size:10px;letter-spacing:2px}.introMeta small{display:block;font-size:12px;letter-spacing:0;line-height:1.6;margin-top:10px}.scene-caption{position:absolute;bottom:45px;right:6vw;text-align:right}.scene-caption span{font:300 38px Georgia;letter-spacing:6px}.scene-caption small{display:block;font-size:12px;color:#a9c9b5;margin-top:10px}#dialog{position:absolute;z-index:15;left:50%;bottom:105px;transform:translateX(-50%);width:min(720px,92vw);padding:26px;display:flex;gap:24px;border:1px solid #d7e7b747;border-radius:16px;background:#122f29f7;box-shadow:0 20px 100px #0007}.portrait{width:65px;height:75px;flex-shrink:0;background:#d2eaa318;border:1px solid #d2eaa34d;border-radius:14px;display:grid;place-items:center;font:36px Georgia;color:var(--lime)}#dialog section{flex:1}#dialog small{font-size:11px;letter-spacing:2px;color:var(--lime)}#dialog h2{font:500 24px Georgia;margin:9px 0 12px}#dialog p{font-size:16px;line-height:1.65;color:#cdd9ce;margin:0 0 18px}#dialog .primary{margin-left:auto;font-size:14px;padding:10px 17px;min-height:44px}.modal-card{position:relative;background:#15382f;border:1px solid #b6d78a55;border-radius:18px;padding:35px;max-width:620px;width:90vw;max-height:85dvh;overflow-y:auto;touch-action:pan-y}.close{position:absolute;right:14px;top:14px}.modal-card h2{font:36px Georgia;margin:15px 0 12px}.modal-card p{color:#bdcebd;line-height:1.6}.modal-card h3{font-size:16px;margin:24px 0 10px}.modal-card .row{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid #d2eaa320;font-size:14px}.row span{color:#a9c897}.modal-card button.primary{margin-top:22px;width:100%}.talent{width:100%;text-align:left;background:#234c3c;border:1px solid #a7c48045;padding:14px;margin:5px 0;border-radius:8px;font-size:14px}.talent:disabled{opacity:.5;cursor:default}#touch{position:absolute;inset:0;pointer-events:none}#joystick{position:absolute;left:30px;bottom:105px;width:120px;height:120px;border:1px solid #c7e9b43c;border-radius:50%;background:#18392b80;pointer-events:auto}#stick{position:absolute;width:48px;height:48px;left:35px;top:35px;border-radius:50%;background:#daebbc55;border:1px solid #dfedc278;pointer-events:none}.touchActions{position:absolute;right:30px;bottom:115px;display:flex;align-items:end;gap:15px;pointer-events:auto}.touchActions button{border:1px solid #d2eaa38c;border-radius:50%;background:#21493ae0;width:60px;height:60px;font-size:25px}.touchActions button:last-child{width:80px;height:80px;background:#d2eaa3;color:#1d3d30}.touchActions small{display:block;font-size:8px;letter-spacing:1px;margin-top:2px}#bossHUD{position:absolute;top:120px;left:50%;transform:translateX(-50%);width:300px;text-align:center;padding:14px 22px;background:#291a29ed;border:1px solid #ca7b9066;border-radius:12px}#bossHUD small{font-size:10px;letter-spacing:2px;color:#efb0b4}#bossHUD strong{display:block;font-size:18px;margin:6px}#bossHUD .energy{width:100%;background:#e983ab33}#bossHUD .energy i{background:#dc8cac}#bossCount{display:block;font-size:12px;margin-top:8px}
@media(max-width:760px){header{left:18px;right:18px;top:max(16px,env(safe-area-inset-top));gap:10px}.brand{font-size:14px;gap:8px;letter-spacing:2px}.brand-symbol{width:30px;height:35px;font-size:24px}.brand-light{font-size:9px}.brand small{font-size:8px;letter-spacing:2px}nav{gap:5px}nav button{width:35px;height:35px;font-size:19px}#hud{position:absolute;top:52px;left:0;gap:18px;padding:9px 14px}.stat small{font-size:9px}.stat span{font-size:12px}.energy{width:85px}#quest{top:128px;left:18px;width:218px;padding:13px}#quest small{font-size:8px;letter-spacing:1px}#quest h2{font-size:16px;margin:7px 0}#quest p{font-size:12px;line-height:1.5;margin-bottom:8px}#questCount{font-size:10px;margin-top:7px}#location{right:18px;top:83px;font-size:8px;letter-spacing:1px}#location span{font-size:16px}#actions{bottom:max(16px,env(safe-area-inset-bottom));width:calc(100% - 30px);justify-content:space-around;padding:7px 3px;gap:0}.module{padding:6px 4px;display:block;text-align:center;font-size:9px}.module b{display:block;margin:0 auto 5px;width:25px;padding:3px}.intro{padding:100px 28px 40px;background:linear-gradient(90deg,#0a2624ed,#0a262499 65%,#0a262433)}h1{font-size:53px;letter-spacing:-2px}.intro p{font-size:14px;margin:22px 0}.intro .eyebrow{font-size:9px}.introMeta{margin-top:22px}.scene-caption{display:none}#desktopHint{display:none}#dialog{bottom:100px;padding:18px;gap:12px}#dialog h2{font-size:22px}#dialog p{font-size:14px;line-height:1.6}.portrait{width:40px;height:48px;font-size:25px}#toast{top:108px;max-width:95vw;font-size:12px;padding:10px 16px}#joystick{left:20px;bottom:110px;width:105px;height:105px}#stick{left:28px;top:28px}.touchActions{right:20px;bottom:115px;gap:10px}#bossHUD{top:127px;left:auto;right:16px;transform:none;width:160px;padding:12px}#bossHUD strong{font-size:14px}#bossHUD small,#bossCount{font-size:9px}.modal-card{padding:28px 24px}.modal-card h2{font-size:30px}}
@media(max-height:550px){.intro{padding-top:70px}.intro h1{font-size:40px;margin:12px 0}.intro p{font-size:13px;margin:10px 0}.introMeta,.scene-caption{display:none}#quest{top:95px;width:230px}#hud{position:static}#quest p{font-size:12px}#dialog{bottom:35px}#actions{bottom:12px}#joystick{bottom:70px}.touchActions{bottom:75px}}
/* Decisions stay inside the RPG; consequences retain their own retry checkpoint. */
#clinicHud{position:absolute;right:32px;top:190px;width:218px;padding:15px 18px;border:1px solid #d2eaa32b;border-radius:12px;background:var(--glass);backdrop-filter:blur(10px)}#clinicHud>small{font-size:10px;letter-spacing:1.4px;color:#c5d89f}#clinicHud>div{display:flex;justify-content:space-between;gap:10px;margin-top:11px;font-size:12px}#clinicHud span{color:#c0d0bf}#clinicHud b{color:#e0edc1;font-weight:600}#storyOverlay{z-index:30;background:#09271eb8}#storyCard{max-width:740px;padding:36px;max-height:90dvh;overscroll-behavior:contain}#storyCard h2{font-size:clamp(28px,3.6vw,44px);max-width:590px}#storyCard p{font-size:16px;line-height:1.65}#storyCard .eyebrow{font-size:11px;line-height:1.6}#storyCard .fiction-note{font-size:12px;line-height:1.5;color:#9db29e;margin-top:18px}#storyCard .primary{width:100%;text-decoration:none;margin-top:18px;font-size:15px}#storyCard .secondary{font-size:14px;min-height:44px}.story-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:15px 0}.story-metrics>div{padding:12px 10px;background:#c9e99a0c;border:1px solid #d2eaa325;border-radius:8px}.story-metrics small{display:block;font-size:9px;line-height:1.5;color:#b5c9a7}.story-metrics b{display:block;margin-top:7px;font-size:18px;font-weight:600;color:#e4f1ba}.story-choices{display:grid;gap:10px;margin-top:8px}.story-choice{display:flex;align-items:flex-start;gap:14px;text-align:left;border:1px solid #d2eaa33a;border-radius:10px;background:#214c3c;padding:16px;color:#eff4e7;min-height:76px}.story-choice:hover,.story-choice:focus-visible{background:#315a42;border-color:#d2eaa3}.story-choice>span{font-size:12px;color:#d2eaa3;border:1px solid #d2eaa344;padding:6px;border-radius:5px}.story-choice b{font-size:16px;line-height:1.4;display:block}.story-choice small{font-size:14px;line-height:1.5;color:#c0d0bd;display:block;margin-top:5px}.consequence-timeline{display:grid;gap:12px;margin:25px 0}.consequence-timeline>div{padding:15px 18px;border-left:2px solid #cfad82;background:#f8d5b508;border-radius:0 8px 8px 0;animation:consequence-in .5s both;animation-delay:calc(var(--beat)*.28s)}.consequence-timeline b{color:#e9c9a0;font-size:14px}.consequence-timeline p{margin:7px 0 0}#storyCard[data-kind="failure"]{background:#352a2b;border-color:#d3978266}#storyCard[data-kind="failure"] .eyebrow{color:#f2b79f}#storyCard[data-kind="failure"] .story-metrics b{color:#efb79b}.family-message{padding:22px;border-left:2px solid var(--lime);background:#d2eaa30a;font:italic 24px/1.5 Georgia;margin:24px 0}.story-steps{padding-left:22px;color:#d0ddc8;font-size:15px;line-height:1.9}.intro{overflow-y:auto;touch-action:pan-y}.intro section{padding-bottom:15px}#toast{max-width:min(600px,92vw)}@keyframes consequence-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){#clinicHud{right:14px;top:130px;width:132px;padding:10px}#clinicHud>small{font-size:8px;letter-spacing:.6px}#clinicHud>div{display:block;margin-top:7px;font-size:10px}#clinicHud b{display:block;font-size:13px;margin-top:2px}#quest{width:calc(100vw - 178px);max-width:218px;min-width:160px}#storyCard{padding:24px 20px;width:94vw;max-height:92dvh}#storyCard p{font-size:14px}#storyCard h2{font-size:30px}.story-metrics{grid-template-columns:1fr 1fr;gap:7px;padding:8px 0}.story-metrics b{font-size:18px}.story-metrics small{font-size:9px}.story-choice{padding:13px;gap:10px}.story-choice b{font-size:14px}.story-choice small{font-size:12px}.story-choices{gap:8px}.consequence-timeline>div{padding:12px}.family-message{font-size:21px}#bossHUD{top:auto;bottom:98px;left:50%;right:auto;transform:translateX(-50%);width:160px;padding:8px 10px}#bossHUD strong{font-size:12px;margin:4px}#bossCount{font-size:10px}#intro .eyebrow{max-width:280px}.introMeta{margin-top:15px}.intro p{margin:18px 0}.intro{align-items:flex-start;padding-top:100px}}
@media(max-width:360px){#quest{left:12px;min-width:145px;width:145px}#clinicHud{width:120px;right:12px}.brand-light{display:none}.story-choice{gap:8px;padding:11px}}
@media(prefers-reduced-motion:reduce){.consequence-timeline>div{animation:none}}
/* Readable RPG loot: matching quest inventory, direction cue and pickup reward. */
#lootTray{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:14px;color:#ffdb7b}.loot-slot{position:relative;text-align:center;border:1px solid #e9bb594f;border-radius:9px;padding:10px 3px 8px;background:#dba53c12}.loot-slot svg{width:32px;height:32px;display:block;margin:0 auto 6px;filter:drop-shadow(0 0 6px #ffbf4159)}.loot-slot span{display:block;font-size:10px;line-height:1.2}.loot-slot b{position:absolute;right:4px;top:2px;font-size:12px;color:#fddd91}.loot-slot.taken{color:#b2d9aa;background:#b4e99c17;border-color:#b1d9a657}.loot-slot.taken svg{filter:none;opacity:.7}.loot-slot.taken b{color:#d1ffac}#lootTray[data-tone="sensor"]{color:#9fffe0}#lootTray[data-tone="sensor"] .loot-slot{border-color:#95ffd84f;background:#84edc612}#lootGuide{position:absolute;left:50%;bottom:88px;transform:translateX(-50%);z-index:7;display:flex;align-items:center;gap:11px;padding:10px 15px;max-width:90vw;border-radius:12px;background:#193329ed;border:1px solid #ffd573a8;box-shadow:0 0 22px #ffd56815;color:#ffe299;pointer-events:none}#lootGuideIcon svg{width:30px;height:30px}#lootGuideName{display:block;font-size:14px}#lootGuideDistance{display:block;font-size:11px;color:#dae2bb;margin-top:3px}#lootGuideArrow{font-size:28px;display:block;line-height:1;transform-origin:center}#lootGuide[data-tone="sensor"]{color:#a2ffdd;border-color:#a2ffdd99}body:has(#lootGuide:not(.hidden)) #desktopHint{display:none}#lootReward{position:absolute;left:50%;top:36%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;padding:17px 24px;z-index:10;color:#fff0b4;background:#29482aeb;border:1px solid #ffe180;border-radius:14px;box-shadow:0 0 40px #ffce5c33;pointer-events:none;white-space:nowrap}#lootReward svg{width:45px;height:45px;color:#ffdd76}#lootReward b{font-size:20px;display:block}#lootReward span{display:block;font-size:12px;color:#dddfb8;margin-top:5px}#lootReward.celebrate{animation:loot-reward 2.1s both}@keyframes loot-reward{0%{opacity:0;transform:translate(-50%,18px) scale(.8)}12%,75%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-25px) scale(1.03)}}
@media(max-width:760px){#lootTray{gap:4px;margin-top:10px}.loot-slot{padding:9px 1px 7px}.loot-slot svg{width:27px;height:27px}.loot-slot span{font-size:8px}.loot-slot b{font-size:10px;right:3px}#lootGuide{bottom:87px;padding:8px 12px;gap:9px;max-width:75vw}#lootGuideIcon svg{width:24px;height:24px}#lootGuideName{font-size:12px}#lootGuideDistance{font-size:10px}#lootGuideArrow{font-size:23px}#lootReward{top:42%;padding:13px 17px;gap:11px}#lootReward b{font-size:17px}#lootReward svg{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){#lootReward.celebrate{animation:none}}

/* Mobile play surface: one objective, one menu, contextual controls. */
#mobileHud,.mobile-only{display:none}.mission-items{display:grid;gap:10px;margin:20px 0}.mission-items>div{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #d2eaa340;border-radius:10px}.mission-items svg{width:30px;height:30px;color:#ffdb7b}.mission-items b{margin-left:auto;color:var(--lime)}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
 body:has(#intro.hidden) header,#hud,#quest,#clinicHud,#location,#actions,#bossHUD,#lootGuide,#desktopHint{display:none!important}
 #mobileHud{position:absolute;z-index:8;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));display:flex;gap:8px;align-items:flex-start;pointer-events:none}
 #mobileHud button{pointer-events:auto;border:1px solid #d2eaa340;background:#102d27ed;border-radius:12px;color:var(--ink)}
 #mobileMission{flex:1;min-width:0;padding:11px 14px;text-align:left;min-height:64px;box-shadow:0 4px 18px #0002}
 #mobileObjective{display:block;font-size:14px;font-weight:600;line-height:1.35}
 #mobileHint{display:block;margin-top:4px;font-size:12px;color:#bdcbb9}
 #mobileLoot{display:flex;align-items:center;gap:12px;margin-top:4px;font-size:14px;color:#ffe299}#mobileLootArrow{display:inline-block;font-size:18px;line-height:1}
 #mobileMenu{flex:0 0 48px;width:48px;height:48px;font-size:23px}
 .mobile-only{display:block}.mobile-unneeded{display:none!important}
 #joystick{left:max(20px,env(safe-area-inset-left));bottom:max(24px,env(safe-area-inset-bottom));width:105px;height:105px;background:#18392b66}
 #stick{left:28px;top:28px}.touchActions{right:max(20px,env(safe-area-inset-right));bottom:max(30px,env(safe-area-inset-bottom));gap:12px}
 .touchActions button,.touchActions button:last-child{width:76px;height:76px}.touchActions small{font-size:9px;letter-spacing:0}
 #targetLabel{max-width:80vw;white-space:normal;text-align:center;font-size:14px;padding:7px 11px}#targetLabel b{display:none}
 #toast{top:94px;width:max-content;max-width:calc(100vw - 32px);padding:9px 14px;font-size:13px;border-radius:10px}
 #lootReward{top:28%;padding:10px 14px;gap:9px}#lootReward b{font-size:16px}#lootReward svg{width:28px;height:28px}#lootReward span{display:none}
 body:has(#lootReward.celebrate:not(.hidden)) #toast{display:none}
 #dialog{bottom:max(16px,env(safe-area-inset-bottom));max-height:calc(100dvh - 40px);overflow-y:auto;touch-action:pan-y;padding:20px;width:calc(100vw - 24px)}#dialog .portrait{display:none}#dialog p{font-size:16px}#dialog .primary{width:100%}
 body:has(#dialog:not(.hidden),#modal:not(.hidden),#storyOverlay:not(.hidden),#audioPanel:not(.hidden)) :is(#mobileHud,#touch,#targetLabel,#toast,#lootReward){display:none!important}
 .modal-card{max-height:calc(100dvh - 32px)}.modal-card h2{padding-right:24px}.modal-card .close{width:44px;height:44px}
 .desktop-controls{display:none}.introMeta{display:none}header #journalButton,header #pauseButton{display:none}
}
/* The saga unfolds over the live clinic, one scene and one action at a time. */
#prologue{position:absolute;inset:0;z-index:25;overflow-y:auto;touch-action:pan-y;background:linear-gradient(90deg,#081f20f5 0%,#0a2823d9 38%,#112f2630 100%);color:#f3f3df}
.prologue-top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:28px 5vw;color:#d5e6b0;font-size:12px;letter-spacing:2px}
.prologue-top button,#prologueMusic{border:1px solid #d2eaa340;background:#102d27a8;color:#dce8cb;border-radius:24px;padding:12px 18px;min-height:44px;font-size:14px;letter-spacing:0}
#prologueCard{max-width:570px;margin:clamp(10px,5vh,55px) 0 80px 8vw;padding:22px 0;animation:saga-enter .65s ease both}
.prologue-chapter{display:flex;align-items:center;gap:14px;color:#e6d998;font-size:12px;letter-spacing:2px;line-height:1.5}
#prologueEmblem{font:48px Georgia;color:#ffdf91;text-shadow:0 0 22px #ffe8a65e}
#prologueTitle{font:400 clamp(36px,4.5vw,62px)/1.08 Georgia;letter-spacing:-1.4px;margin:22px 0;max-width:520px;outline:none}
#prologueText{font-size:18px;line-height:1.65;color:#cfddcb;max-width:480px;margin:0}
#prologueMessage{margin-top:24px;max-width:390px;padding:20px 24px;border:1px solid #e7d49a55;border-radius:16px 16px 16px 3px;background:#203e35d9;animation:saga-enter .5s ease both}
#prologueMessage small,#prologueGoal small{font-size:12px;letter-spacing:1.5px;color:#e6d998}#prologueMessage p{font:italic 27px/1.4 Georgia;margin:12px 0;color:#fff0cf}#prologueMessage>span{font-size:13px;color:#bdccb7}
#prologueGoal{display:flex;gap:18px;align-items:center;margin-top:24px;border-top:1px solid #d9e6b744;padding-top:22px;animation:saga-enter .5s ease both}#prologueGoal>span{font-size:32px;color:#f4d48f}#prologueGoal strong{display:block;font-size:17px;line-height:1.4;margin:7px 0}#prologueGoal div>span{font-size:14px;color:#c7d4b8}
.prologue-bottom{display:flex;align-items:center;gap:25px;justify-content:space-between;margin-top:32px;max-width:480px}.prologue-bottom .primary{min-width:210px;background:#e5e8ad;box-shadow:0 0 32px #cde68818}
#prologueSteps{display:flex;gap:9px}#prologueSteps i{width:8px;height:8px;transform:rotate(45deg);border:1px solid #d8dfa666}#prologueSteps i.current{background:#ffdf91;border-color:#ffdf91;box-shadow:0 0 12px #eacd8655}#prologueSteps i.done{background:#b7c294}
#prologueMusic{position:absolute;right:5vw;bottom:24px}
body:has(#prologue:not(.hidden)) :is(header,#location,#targetLabel,#mobileHud,#touch,#toast){display:none!important}
.tutorial-glow{animation:tutorial-glow 1.8s ease-in-out infinite}
@keyframes saga-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes tutorial-glow{50%{box-shadow:0 0 0 7px #d2eaa31a,0 0 24px #d2eaa34a;border-color:#e9ecb4}}
@media(max-width:760px){
 #prologue{background:linear-gradient(180deg,#0a252b38 0%,#0a2629d9 24%,#092521f7 68%)}
 .prologue-top{padding:max(14px,env(safe-area-inset-top)) 18px 12px;font-size:10px;letter-spacing:1px}.prologue-top button{padding:10px 12px;font-size:12px}
 #prologueCard{margin:clamp(12px,8vh,65px) 24px 24px;max-width:none;padding:0}.prologue-chapter{font-size:11px;letter-spacing:1px;gap:10px}#prologueEmblem{font-size:38px}
 #prologueTitle{font-size:clamp(34px,8.5vw,44px);margin:16px 0;letter-spacing:-.8px}#prologueText{font-size:16px;line-height:1.6}
 #prologueMessage{padding:16px 18px;margin-top:20px}#prologueMessage p{font-size:24px;margin:10px 0}#prologueMessage>span{font-size:12px}
 #prologueGoal{gap:12px;margin-top:20px;padding-top:18px}#prologueGoal strong{font-size:16px}#prologueGoal div>span{font-size:14px;line-height:1.5;display:block}
 .prologue-bottom{margin-top:26px;gap:14px}.prologue-bottom .primary{min-width:0;flex:1;max-width:260px;gap:12px;font-size:15px;padding:14px 18px}
 #prologueMusic{position:static;display:block;margin:0 24px max(20px,env(safe-area-inset-bottom)) auto;font-size:12px}
}
@media(max-height:560px){#prologueCard{margin:8px 6vw 20px;max-width:620px}.prologue-top{padding-top:10px;padding-bottom:0}#prologueTitle{font-size:34px;margin:12px 0}#prologueText{font-size:16px}#prologueEmblem{font-size:30px}.prologue-bottom{margin-top:18px}#prologueMusic{position:static;display:block;margin:0 5vw 16px auto}#prologueMessage,#prologueGoal{margin-top:16px}}
@media(prefers-reduced-motion:reduce){#prologueCard,#prologueMessage,#prologueGoal,.tutorial-glow{animation:none}}

/* Product identity uses the supplied logo, preserved on a light backing. */
.gaia-logo{display:block;width:190px;height:auto;padding:8px 12px;background:#f7f9f4;border-radius:9px;object-fit:contain}.intro-logo{width:230px;margin-bottom:24px}.menu-logo{width:180px;margin:8px 0 24px}.saga-brand{display:flex;align-items:center;gap:20px}.saga-brand>span{font-size:12px;letter-spacing:2px}.music-note{font-size:14px}
body:has(#intro:not(.hidden)) header{visibility:hidden}
@media(max-width:760px){.gaia-logo{width:150px}.intro-logo{width:195px;margin-bottom:24px}.intro{padding-top:max(30px,env(safe-area-inset-top))}.saga-brand{display:block}.saga-brand>span{display:block;font-size:10px;margin-top:8px;letter-spacing:1px}.saga-brand .gaia-logo{width:140px}.prologue-top{align-items:flex-start}.menu-logo{width:170px}}
