:root{font-family:'Trebuchet MS','Avenir Next','PingFang SC','Microsoft YaHei',sans-serif;color:#fff1cb;background:#102b37;font-synthesis:none;--gold:#f3ce75;--ink:#274044;--paper:#fff1d1;--teal:#1c6870;--edge:#b68443;--shadow:#5e3c20}*{box-sizing:border-box}html,body,#app{margin:0;width:100%;height:100%;height:100dvh;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #fff0a5;outline-offset:4px}button{touch-action:manipulation}img{user-select:none;-webkit-user-drag:none}button img{pointer-events:none}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.landing,.room{position:absolute;inset:0}.landing{background:linear-gradient(90deg,rgba(7,29,40,.25),rgba(7,29,40,.05)),url('/lanternquest/art/farmyard-v1.webp') center/cover;display:flex;align-items:center;justify-content:flex-start;padding:4vh 7vw}.landing::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,29,40,.5),transparent 75%)}.landing-glow{position:absolute;inset:0;background:radial-gradient(ellipse at 25% 45%,rgba(255,201,95,.1),transparent 60%)}.menu-card{position:relative;width:min(530px,100%);max-height:94dvh;overflow:auto;padding:28px 34px 25px;border:2px solid #d6ad66;border-radius:30px;background:linear-gradient(155deg,rgba(23,72,77,.97),rgba(12,39,51,.97));box-shadow:0 8px 0 #182d32,0 25px 80px #08192277,inset 0 0 0 5px #ffffff08}.menu-top{display:flex;justify-content:space-between;gap:16px;align-items:center}.brand-link{display:inline-flex;align-items:center;gap:8px;font-weight:900;font-size:18px;white-space:nowrap}.brand-link>img{width:30px;height:34px}.languages{display:flex;padding:3px;border-radius:12px;background:#061f2a6b;gap:2px}.lang-btn{border:0;border-radius:9px;padding:7px 8px;background:transparent;color:#d2e5dc;font-size:12px;font-weight:900;min-width:34px;min-height:34px}.lang-btn.active{background:linear-gradient(#f8dfa1,#d7ad5b);color:#403c27;box-shadow:0 2px 0 #8e6934}.eyebrow{margin:32px 0 13px;text-transform:uppercase;font-size:11px;letter-spacing:2px;color:#bad8ca;font-weight:800}.menu-card h1{font-family:Georgia,'Times New Roman','Songti SC',serif;font-size:clamp(35px,4vw,57px);line-height:1.02;color:#ffdb85;margin:0;text-shadow:0 3px #643e29}.menu-subtitle{font-size:19px;margin:13px 0 18px;color:#fff3cc}.menu-ornament{display:flex;align-items:center;gap:14px;justify-content:center}.menu-ornament span{height:1px;background:linear-gradient(90deg,transparent,#c29f62);width:100%}.menu-ornament span:last-child{transform:scaleX(-1)}.menu-ornament img{width:38px;height:42px}.menu-story{line-height:1.6;font-size:16px;color:#d9e6d8;margin:19px 0 24px}.menu-actions{display:grid;gap:12px}.btn{border:2px solid #ac7a39;border-radius:16px;font-weight:900;padding:13px 20px;min-height:48px;box-shadow:0 4px 0 #6c492d;transition:filter .15s,transform .15s;display:inline-flex;align-items:center;justify-content:center;gap:9px}.btn:hover{filter:brightness(1.08);transform:translateY(-1px)}.btn:active{transform:translateY(3px);box-shadow:0 1px 0 #6c492d}.btn.primary{background:linear-gradient(#ffdf91,#e3b35a);color:#3e402f}.btn.primary>img{width:28px;height:24px}.btn.secondary{background:linear-gradient(#347d7c,#226064);border-color:#6eab98;box-shadow:0 4px 0 #143d43;color:#fff4d1}.btn.subtle{background:#f7e7bc;color:#3a5655;box-shadow:0 3px 0 #c7a36f}.menu-foot{display:flex;flex-wrap:wrap;gap:8px 16px;color:#a7c8bc;font-size:11px;margin-top:21px}.menu-foot span::before{content:'·';margin-right:7px;color:#f6cf7d}.scene-surround{position:absolute;inset:-25px;background:linear-gradient(#102b3733,#081b2f66),url('/lanternquest/art/farmyard-v1.webp') center/cover;filter:blur(20px);transform:scale(1.1)}.stage-holder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.stage{position:relative;aspect-ratio:1672/941;width:min(100vw,177.6833dvh);height:auto;max-height:100dvh;isolation:isolate;box-shadow:0 0 75px #041b27}.background,#actors,.outlines,.hotspots{position:absolute;inset:0;width:100%;height:100%}.background{display:block;z-index:0}.stage::before{content:'';display:block;padding-top:56.2799%}#actors{z-index:2;pointer-events:none}.outlines{z-index:3;pointer-events:none}.hotspots{z-index:4;pointer-events:none}.hotspot{position:absolute;background:transparent;border:0;color:transparent;pointer-events:auto;padding:0;border-radius:12px}.hotspot:focus-visible{outline:3px solid #ffdf7c;outline-offset:3px;box-shadow:0 0 18px #ffd36c77}.world-item{position:absolute;object-fit:contain;pointer-events:none;filter:drop-shadow(1px 2px 1px #47312355);z-index:1}.world-item.focused{filter:drop-shadow(0 0 5px #fff0a5) drop-shadow(0 0 2px #ffcf68)}.outline{fill:#f2d38511;stroke:#ffdf85;stroke-width:3;stroke-linejoin:round;opacity:0;transition:opacity .15s;filter:drop-shadow(0 0 4px #ffe9a5)}.outline.active,.show-targets .outline{opacity:1}.show-targets .hotspot::after{content:'';position:absolute;right:8px;top:8px;width:8px;height:8px;border:2px solid #fff2bf;border-radius:50%;background:#ffcf66;box-shadow:0 0 10px #ffc95c}.topbar{position:absolute;z-index:10;top:max(12px,env(safe-area-inset-top));left:18px;right:18px;min-height:59px;display:flex;align-items:center;gap:22px;padding:8px 13px;border:1px solid #d9bd7d77;border-radius:19px;background:linear-gradient(125deg,#133f49ef,#16464bf0);box-shadow:0 5px 18px #05202c4d,inset 0 1px #fbe6ad22;backdrop-filter:blur(10px)}.room-heading{display:flex;flex-direction:column;gap:2px;min-width:0}.room-heading strong{font-family:Georgia,'Songti SC',serif;font-size:20px;color:#ffe1a0}.room-heading>span{font-size:11px;color:#c0d9ca}.top-actions{margin-left:auto;display:flex;align-items:center;gap:9px}.icon-btn{width:37px;height:37px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #a9c4ab66;border-radius:12px;background:#275d61;color:#ffe4a4}.icon-btn>img{width:23px;height:23px}.quest-ribbon{position:absolute;z-index:7;top:84px;left:24px;display:flex;align-items:center;gap:9px;padding:9px 11px;border:1px solid #e4bd7280;border-radius:14px;background:#123b45e8;max-width:min(480px,65vw);box-shadow:0 4px 15px #0a232844;font-size:13px;color:#fff1bd;pointer-events:auto}.quest-ribbon>img{width:22px;height:22px}.ribbon-help{background:#f5d28b;color:#2e5557;border:0;border-radius:50%;font-weight:900;width:26px;height:26px;flex:none}.inventory-bar{position:absolute;z-index:10;bottom:max(15px,env(safe-area-inset-bottom));left:18px;right:18px;min-height:94px;border:2px solid #c49b54;border-radius:22px;background:linear-gradient(130deg,#143f47f7,#174c51f5);box-shadow:0 6px 0 #052b35,0 0 0 4px #f9dea51a,inset 0 1px #fff1bc33;display:flex;align-items:center;gap:18px;padding:10px 16px;backdrop-filter:blur(8px)}.inventory-heading{width:125px;display:flex;flex-direction:column;gap:5px}.inventory-heading strong{color:#ffdf98;font-size:16px}.inventory-heading span{font-size:11px;color:#bfd6c5;line-height:1.25}.inventory{display:flex;gap:10px;flex:1;min-width:0}.inventory-slot{width:68px;height:67px;flex:none;border:2px solid #7a8f7877;border-radius:15px;background:linear-gradient(#0b293055,#071f2980);box-shadow:inset 0 2px 7px #061d2a55;position:relative;display:flex;align-items:center;justify-content:center}.inventory-slot.empty::before{content:'';width:20px;height:20px;border:1px solid #7a9a832a;transform:rotate(45deg);border-radius:4px}.inventory-slot>img{max-width:80%;max-height:85%;filter:drop-shadow(1px 2px 2px #041e29)}.inventory-slot.selected{border-color:#ffe4a0;background:#c9a54826;box-shadow:0 0 0 3px #ffe2a322,inset 0 0 12px #e6c56326}.inventory-slot small{position:absolute;top:-30px;white-space:nowrap;border-radius:7px;background:#12353feb;padding:4px 8px;font-size:12px;color:#fff1ca;display:none}.inventory-slot:hover small,.inventory-slot:focus-visible small{display:block}.inventory-tools{display:flex;gap:8px}.tool-btn{min-width:65px;max-width:125px;border:0;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 10px;color:#e4e8d0;background:#ffffff09;font-size:11px;position:relative}.tool-btn:hover{background:#ffffff14}.tool-btn>img{width:25px;height:26px}.badge{position:absolute;right:9px;top:1px;border-radius:8px;background:#eac477;color:#214951;min-width:17px;padding:1px 3px;font-size:10px;font-weight:900}.connection{position:absolute;z-index:7;right:27px;bottom:119px;font-size:10px;display:flex;gap:5px;align-items:center;color:#e9f1ce;text-shadow:0 1px 3px #153e3d}.save-dot{height:5px;width:5px;border-radius:50%;background:#b9e1a7}.mobile-summary{display:none}.hover-label{position:absolute;z-index:6;transform:translate(-50%,-100%);padding:8px 14px;border:1px solid #e9c57c;border-radius:11px;background:#123c46f5;color:#fff0c0;box-shadow:0 3px 12px #0b283855;white-space:nowrap;pointer-events:none;font-size:14px;font-weight:800}.speech{position:absolute;z-index:6;left:50%;bottom:15%;transform:translateX(-50%);background:#fff0d3f5;color:#2e4b4c;border:2px solid #bc8c4d;border-radius:16px;max-width:75%;padding:12px 18px;box-shadow:0 4px 0 #6b532c55;font-size:15px;line-height:1.45;pointer-events:none}.toasts{position:absolute;z-index:40;right:22px;top:85px;display:grid;gap:8px;max-width:min(330px,80vw);pointer-events:none}.toast{color:#fff0c4;background:#154a50f5;border:1px solid #e6bd73;border-radius:15px;padding:12px 15px;font-size:13px;box-shadow:0 5px 18px #071e3466;animation:toast-in .2s ease-out}.toast strong{display:block;color:#ffe0a0;margin-bottom:2px}@keyframes toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}dialog{padding:0;border:0;border-radius:24px;background:transparent;color:var(--ink);max-width:min(760px,94vw);max-height:85dvh;box-shadow:0 15px 70px #061d3288;overflow:visible}dialog::backdrop{background:#071f2c88;backdrop-filter:blur(3px)}.panel{background:linear-gradient(145deg,#fff5dc,#f6e3b6);border:3px solid #c99b59;border-radius:24px;padding:27px 30px;max-height:85dvh;overflow:auto;box-shadow:inset 0 0 0 4px #fff9eaaa}.panel-top{display:flex;align-items:flex-start;gap:16px;margin-bottom:15px}.panel-top h2{margin:0;color:#244c50;font-family:Georgia,'Songti SC',serif;font-size:27px;line-height:1.15;flex:1}.close-btn{background:#dcc19466;color:#46605c;border:1px solid #b9955e66;border-radius:50%;width:30px;height:30px;flex:none;font-size:22px;line-height:22px}.panel p{font-size:16px;line-height:1.65;margin:12px 0}.panel small{font-size:12px;color:#667469}.panel-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:21px}.panel-actions .btn{font-size:14px}.eyebrow.dark{color:#8e6e3d;margin:0 0 8px;letter-spacing:1.5px}.panel .quote{font-family:Georgia,'Songti SC',serif;font-size:19px;color:#40635f;border-left:3px solid #d5ad64;padding-left:16px;line-height:1.55}.intro-emblem{display:flex;justify-content:center;margin:5px}.intro-emblem>img{height:72px;width:72px}.intro .panel-top{text-align:center;align-items:center}.intro h2{font-size:30px}.intro .close-btn{display:none}dialog.dialogue{margin:auto auto 128px;max-width:min(780px,93vw);width:780px}.dialogue::backdrop{background:#05222d15;backdrop-filter:none}.dialogue .panel{padding:20px 24px;max-height:min(510px,61dvh)}.character-line{display:flex;align-items:center;gap:13px}.portrait{width:63px;height:67px;border:2px solid #bf9856;border-radius:50%;background:#d6e1c2;overflow:hidden;flex:none}.portrait canvas{width:100%;height:100%;object-fit:cover}.character-name{font-family:Georgia,'Songti SC',serif;font-size:24px;font-weight:800;color:#22535a}.character-role{font-size:12px;color:#7b805e;margin-top:3px}.character-line .close-btn{margin-left:auto}.dialogue-text{font-size:17px;line-height:1.55;margin:14px 0 8px;min-height:50px}.emotion{font-size:12px;font-style:italic;color:#8c7455;line-height:1.4;margin:5px 0}.topics{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:14px}.topic{border:1px solid #bca774;border-radius:11px;background:#fff8e4aa;color:#34575a;text-align:left;min-height:42px;padding:9px 12px;font-size:13px;line-height:1.4}.topic:hover{background:#f2d48b;border-color:#b28a4d}.topic.asked{color:#62736a;background:#e9dfbd66}.topic.active{border-color:#2b777a;background:#d8e5cf}.topic.new{box-shadow:inset 3px 0 #c39647}.journal-tabs{display:flex;gap:8px;margin:14px 0}.tab{background:#ebd7aa;color:#46605a;border:1px solid #b49e6a77;border-radius:10px;padding:9px 14px;font-size:13px;font-weight:800}.tab.active{background:#2e7377;color:#fff0ca;border-color:#22555d}.journal-list{display:grid;gap:12px}.journal-entry{background:#fff9e9aa;border:1px solid #d8c28e;border-radius:14px;padding:13px 15px}.journal-entry h3{margin:0;font-size:16px;color:#30585a}.journal-entry p{margin:6px 0 0;font-size:14px;line-height:1.5}.journal-entry small{display:block;text-transform:uppercase;letter-spacing:1px;font-size:10px;color:#947640;margin-bottom:4px}.item-preview{display:flex;justify-content:center;height:140px}.item-preview img{object-fit:contain;max-height:100%;max-width:130px}.item-detail .quote{font-size:17px}.panel .muted{color:#7d826a;font-size:13px}.targets{display:grid;grid-template-columns:1fr 1fr;gap:9px}.targets button{padding:12px;text-align:left;min-height:45px}.menu-options{display:grid;gap:10px}.menu-options button{width:100%}.travel-icon{display:flex;justify-content:center;margin:8px 0 18px}.travel-icon img{width:85px;height:80px}.ending{width:min(650px,94vw)}.ending h2{font-size:32px}.loading{position:absolute;inset:0;background:#102c37e8;z-index:50;display:flex;align-items:center;justify-content:center;gap:16px;font-weight:800}.loading img{height:55px}.room.entering{animation:enter-room .45s ease-out}@keyframes enter-room{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}.reduced-motion *{animation:none!important;transition:none!important}
@media(max-width:900px){.room-heading strong{font-size:17px}.topbar{left:10px;right:10px;gap:13px}.inventory-bar{left:10px;right:10px;gap:10px}.inventory-heading{width:90px}.inventory-heading strong{font-size:14px}.inventory-slot{width:60px;height:61px}.tool-btn{padding:6px;min-width:51px}.inventory-tools{gap:3px}.inventory{gap:7px}.top-actions{gap:5px}.brand-link{font-size:16px}.quest-ribbon{left:15px;top:83px;font-size:12px}.room-heading>span{font-size:10px}.languages .lang-btn{min-width:29px;padding:6px}.toasts{top:129px}.connection{right:20px}}
@media(max-height:550px) and (min-aspect-ratio:1/1){.topbar{top:5px;min-height:42px;padding:3px 9px;border-radius:14px}.topbar .brand-link>img{height:26px;width:23px}.room-heading>span{display:none}.room-heading strong{font-size:14px}.topbar .lang-btn{min-height:27px;padding:4px 6px;font-size:10px}.icon-btn{width:29px;height:29px;border-radius:9px}.icon-btn>img{width:19px;height:19px}.quest-ribbon{top:55px;padding:5px 8px;font-size:10px;max-width:48vw;left:12px}.quest-ribbon>img{height:17px;width:17px}.ribbon-help{height:21px;width:21px}.inventory-bar{bottom:7px;min-height:63px;padding:5px 10px;border-radius:15px}.inventory-slot{height:47px;width:49px;border-radius:10px}.inventory-heading strong{font-size:12px}.inventory-heading span{font-size:9px}.tool-btn{font-size:9px}.tool-btn img{width:20px;height:20px}.connection{bottom:76px;font-size:8px}.toasts{top:94px}.menu-card{max-height:96dvh;padding:17px 25px}.eyebrow{margin-top:15px}.menu-card h1{font-size:35px}.menu-subtitle{margin:8px 0;font-size:16px}.menu-ornament{display:none}.menu-story{margin:10px 0 15px;font-size:13px;line-height:1.45}.menu-actions{grid-template-columns:1fr 1fr}.menu-foot{margin-top:13px}.btn{min-height:40px;padding:9px 16px}.panel{max-height:89dvh;padding:19px 24px}.panel h2{font-size:23px}.panel p{font-size:14px}.intro-emblem{display:none}dialog.dialogue{margin:auto auto 78px;max-width:80vw}.dialogue .panel{max-height:calc(100dvh - 125px);padding:12px 17px}.dialogue-text{font-size:14px;margin:7px 0;min-height:0}.emotion{font-size:10px}.portrait{width:40px;height:42px}.character-name{font-size:18px}.character-role{font-size:10px}.topics{margin-top:7px;gap:5px}.topic{min-height:33px;font-size:11px;padding:6px 9px}.panel-top{margin-bottom:8px}.panel-actions{margin-top:13px}.item-preview{height:80px}.hover-label{font-size:12px;padding:5px 9px}.speech{font-size:12px;bottom:23%}.inventory-slot small{top:-24px;font-size:10px}}
@media(max-aspect-ratio:9/11){.landing{padding:12px;justify-content:center}.menu-card{padding:23px 24px}.menu-card h1{font-size:43px}.eyebrow{margin-top:26px}.menu-story{font-size:15px}.menu-top{gap:8px}.stage-holder{align-items:flex-start;padding-top:110px}.stage{width:100vw}.topbar{gap:9px;min-height:58px;padding:7px}.topbar .brand-link span{display:none}.room-heading strong{font-size:16px}.room-heading>span{font-size:10px}.brand-link>img{width:26px;height:30px}.top-actions{gap:4px}.topbar .lang-btn{min-width:25px;padding:5px;font-size:10px}.icon-btn{width:31px;height:32px}.icon-btn img{width:20px;height:20px}.languages{padding:2px}.quest-ribbon{top:79px;left:12px;right:12px;max-width:none;padding:6px 9px;border-radius:11px;font-size:11px}.quest-ribbon img{width:18px;height:18px}.ribbon-help{height:22px;width:22px;margin-left:auto}.mobile-summary{display:flex;position:absolute;top:calc(110px + 56.28vw + 12px);left:24px;right:24px;flex-direction:column;align-items:center;text-align:center;gap:10px;color:#d7e8d2;font-size:13px;line-height:1.5}.mobile-summary p{margin:0;max-width:310px}.mobile-summary .btn{font-size:12px;min-height:39px;padding:9px 15px}.inventory-bar{padding:9px 10px;bottom:12px;min-height:105px;gap:7px;flex-wrap:wrap}.inventory-heading{width:100%;flex-direction:row;align-items:center;justify-content:space-between}.inventory-heading strong{font-size:12px}.inventory-heading span{font-size:10px}.inventory{gap:6px;flex:1}.inventory-slot{height:49px;width:45px;border-radius:11px}.inventory-slot:nth-child(n+4){display:none}.tool-btn{font-size:9px;min-width:42px;padding:5px}.tool-btn img{width:22px;height:22px}.inventory-tools{gap:2px}.connection{bottom:125px;font-size:9px}.toasts{top:auto;bottom:133px;right:12px;max-width:85vw}.toast{font-size:11px;padding:8px 11px}.hover-label{font-size:11px;padding:5px 8px}.speech{font-size:11px;bottom:0;max-width:90%;padding:7px 10px}.panel{padding:22px 20px;border-radius:20px;max-height:85dvh}.panel h2{font-size:24px}.panel p{font-size:15px}.panel-actions .btn{font-size:13px;padding:11px 14px}.panel-actions{gap:8px}.topics{grid-template-columns:1fr}.topic{min-height:42px}.dialogue-text{font-size:15px}.character-name{font-size:22px}.character-role{font-size:11px}.portrait{width:51px;height:57px}dialog.dialogue{margin:auto auto 124px;width:94vw;max-width:94vw}.dialogue .panel{max-height:calc(100dvh - 155px);padding:17px}.journal-tabs{gap:5px}.tab{padding:8px 11px}.targets{grid-template-columns:1fr}.item-preview{height:115px}}

/* Clip decorative blur inside its scene; it must never enlarge the page. */
.room{overflow:hidden}.ribbon-help{display:inline-flex;align-items:center;justify-content:center;padding:2px}.ribbon-help img{width:20px;height:20px}

.lang-btn{white-space:nowrap}
@media(max-aspect-ratio:9/11){.room-heading{flex:1}.room-heading strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.room-heading>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inventory-heading>span{max-width:65%;text-align:right}.top-actions{flex:none}}
