#adventure.illustrated{display:flex;flex-direction:column;overflow:hidden;background:#121913;isolation:isolate;color:#e7dec0}
#adventure.illustrated[hidden]{display:none}
.illustrated-header{min-height:64px;flex-shrink:0;display:flex;align-items:center;gap:12px;padding:9px 14px;background:linear-gradient(110deg,#22271b,#121711);border:1px solid #8a794d;border-radius:4px;box-shadow:0 3px 18px #0008;position:relative;z-index:2}
.illustrated-brand{font-family:Georgia,serif;font-size:12px;line-height:1.05;color:#b8a66b;letter-spacing:.1em;flex-shrink:0;border-right:1px solid #766744;padding-right:12px}
.illustrated-header h1{font:600 clamp(16px,4vw,25px)/1.1 Georgia,serif;margin:0;min-width:0;text-wrap:balance}
.illustrated-wallet{margin-left:auto;display:flex;flex-direction:column;gap:4px;white-space:nowrap;font-size:13px;text-align:right}.illustrated-wallet b{color:#e5c36e}.illustrated-wallet span{color:#ace28b}.illustrated-wallet small{font-size:10px;color:#b5c8a6}
.illustrated-objective{display:flex;align-items:center;gap:8px;min-height:46px;padding:8px 12px;border-bottom:1px solid #716343;background:#22291eee;font-size:13px;flex-shrink:0}.illustrated-objective>span{color:#d6b467;font-size:20px}.illustrated-objective p{margin:0;line-height:1.3;flex:1;min-width:0}.illustrated-objective small{display:block;font:10px/1.3 sans-serif;color:#bba66d;letter-spacing:.05em}.illustrated-objective button{flex-shrink:0;border:1px solid #947c49;color:#f0d58f;background:#393622;border-radius:5px;min-height:36px;padding:5px 9px;font-size:12px}
.map-regions{display:flex;gap:0;background:#161d16;z-index:1;flex-shrink:0}.map-regions button{flex:1;min-width:0;min-height:38px;padding:5px 2px;border:0;border-bottom:2px solid transparent;color:#c5bd9f;background:none;font-size:11px}.map-regions button[aria-pressed=true]{color:#f6df9c;border-bottom-color:#d4b875;background:#353622}.map-regions button:disabled{opacity:.4;font-size:10px}
.illustrated-viewport{position:relative;display:grid;place-items:center;flex:1;min-height:0;overflow:hidden;background:radial-gradient(ellipse,#424d3a,#121813);container-type:size}
.illustration-plane{position:relative;aspect-ratio:3/4;width:min(100%,calc((100vh - 240px)*.75));max-height:100%;background-image:var(--scene-art);background-size:200% 200%;background-position:var(--tile);background-repeat:no-repeat;isolation:isolate;box-shadow:0 0 50px #0007}
@supports(width:1cqh){.illustration-plane{width:min(100cqw,75cqh)}}
.illustration-plane:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 35px #10170b55;z-index:0}
.map-route{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:1}.map-route path{stroke:#ffe3a0;stroke-width:.55;fill:none;stroke-linecap:round;stroke-dasharray:1 1.8;filter:drop-shadow(0 0 1px #ffe39a)}
.map-pin{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:48px;min-width:48px;max-width:43%;padding:4px 0;border:0;background:none;color:#f1e3b6;z-index:2;cursor:pointer;filter:drop-shadow(0 3px 4px #000)}
.pin-label{font:600 clamp(12px,2.7vw,17px)/1.05 Georgia,serif;background:linear-gradient(#282c20f5,#10170ff5);padding:6px 8px;border:1px solid #bb9f5b;border-radius:5px;text-wrap:balance;text-align:center;box-shadow:0 0 0 2px #171c1288;max-width:100%}.map-pin i{width:7px;height:7px;border:2px solid #d9b66b;border-radius:50%;background:#282719;box-shadow:0 0 8px #f6cb62;position:relative;margin-top:3px}.map-pin small{font-size:8px;letter-spacing:.05em;padding:3px 4px;color:#fff0bd;background:#202316e8;border-radius:3px;white-space:nowrap}.map-pin.is-locked .pin-label{color:#b6b7a4;border-color:#777967;background:#1d231cdb}.map-pin.is-locked i{border-color:#8d8f7e;background:#33392b;box-shadow:none}.map-pin.is-goal .pin-label{border-color:#ffdc78;color:#fff2c2;box-shadow:0 0 12px #f5c65688}.map-pin.is-here i{background:#ffe5a1}
.room-hotspot{position:absolute;transform:translate(-50%,-50%);z-index:2;min-height:44px;display:flex;align-items:center;gap:5px;justify-content:center;background:linear-gradient(#303322ed,#151c11f5);border:1px solid #b79b56;border-radius:7px;padding:6px 10px;color:#f1e3b6;box-shadow:0 3px 12px #0009,0 0 8px #c6a14d33;max-width:47%;font:600 clamp(12px,2.8vw,17px)/1.15 Georgia,serif;text-align:center}.room-hotspot>span{font:22px/1 Georgia,serif;color:#e4c573}.hotspot-exit{border-color:#edc874}.hotspot-rest{border-color:#9cad73}
.illustrated-hint{flex-shrink:0;background:#1d251a;color:#c7c2a8;padding:6px 12px;margin:0;font-size:11px;line-height:1.4;text-align:center;border-top:1px solid #75613a}
.illustrated-nav{flex-shrink:0;display:flex;background:linear-gradient(#2b301f,#121911);border-top:1px solid #ac9556;padding-bottom:env(safe-area-inset-bottom,0px);min-height:58px;z-index:4}.illustrated-nav button{flex:1;border:0;border-right:1px solid #76654388;padding:7px 3px;color:#ddd1aa;background:none;display:flex;align-items:center;justify-content:center;gap:7px;font:15px Georgia,serif}.illustrated-nav button:last-child{border:0}.illustrated-nav button>span{color:#c6a85f;font:23px Georgia,serif}.illustrated-nav button:last-child{flex:.65;font-size:12px}
.scene-toast{position:absolute;z-index:6;top:110px;left:12px;right:12px;border:1px solid #af9a61;background:#1c2919f5;box-shadow:0 6px 22px #0009;padding:10px 38px 10px 12px;border-radius:8px;font-size:13px;line-height:1.4}.scene-toast button{position:absolute;right:0;top:0;width:36px;height:36px;border:0;background:none;color:#d9c490;font-size:24px}
.scene-modal-layer{position:absolute;inset:64px 0 58px;z-index:10;display:flex;align-items:flex-end;isolation:isolate}.scene-modal-shade{position:absolute;inset:0;border:0;background:#050b08a6;backdrop-filter:blur(1px)}.scene-dialog{position:relative;width:100%;max-height:90%;display:flex;flex-direction:column;border:1px solid #b79a55;border-bottom:0;border-radius:20px 20px 0 0;background:radial-gradient(ellipse at top left,#303825,#121c15 70%);box-shadow:0 -10px 38px #000b;animation:dialogue-in .2s ease-out;outline:none;overflow:hidden}.dialogue-handle{width:36px;height:3px;background:#948766;flex-shrink:0;align-self:center;margin:8px 0 0;border-radius:9px}.scene-dialog>header{display:flex;align-items:center;gap:10px;padding:9px 14px 12px;flex-shrink:0;border-bottom:1px solid #77694388}.scene-dialog h2{font:600 25px/1.15 Georgia,serif;color:#edce88;margin:0 0 3px}.scene-dialog header small{font-size:11px;color:#b7bba1}.npc-medallion{display:grid;place-items:center;width:42px;height:42px;border:1px solid #9c8553;border-radius:50%;background:#343c28;color:#d9ba76;font:31px Georgia,serif;flex-shrink:0}.dialogue-close{margin-left:auto;color:#d5c8a7;align-self:center;background:none;border:0;min-width:44px;min-height:44px;font-size:30px}.dialogue-scroll{padding:14px 16px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin}.dialogue-scroll p{font-size:15px;line-height:1.55;margin:0 0 12px}.dialogue-end{min-height:48px;border:0;border-top:1px solid #78674066;background:#10190fa8;color:#d7c796;flex-shrink:0;font:16px Georgia,serif}.dialogue-scroll .world-scene,.dialogue-scroll>.world-prose{display:none}.dialogue-scroll .world-dialogue,.dialogue-scroll .world-objective{margin:0 0 12px;padding:0;border:0;background:none;box-shadow:none}.dialogue-scroll .world-dialogue>small{display:none}.dialogue-scroll .world-dialogue h3{font:600 18px Georgia,serif;margin:0 0 8px;color:#ddc58d}.dialogue-scroll .world-button{width:100%;display:block;text-align:left;min-height:46px;border:1px solid #81764c;background:linear-gradient(105deg,#424832,#242e20);border-radius:8px;margin:7px 0;padding:10px 12px;color:#eee3c2;font-size:14px;line-height:1.35}.dialogue-scroll .world-button:disabled{opacity:.45;cursor:default}.dialogue-scroll .world-code input{background:#111b12;color:#f2e8ca;border:1px solid #b39b5b;width:100%;font-size:19px;min-height:46px}.dialogue-scroll .world-inline{display:block}.dialogue-scroll .world-muted{font-size:12px}.dialogue-message{background:#43533388;border-left:3px solid #d5bd76;padding:10px;border-radius:3px;color:#e7eecb}.illustrated button:focus-visible{outline:3px solid #ffe3a2;outline-offset:3px}.illustrated button:hover:not(:disabled) .pin-label,.room-hotspot:hover{filter:brightness(1.2)}
@keyframes dialogue-in{from{transform:translateY(20px);opacity:.4}to{transform:none;opacity:1}}
@media(max-width:360px){.illustrated-header{padding:7px 9px;gap:8px;min-height:58px}.illustrated-brand{font-size:10px;padding-right:8px}.illustrated-header h1{font-size:17px}.illustrated-wallet{font-size:11px}.illustrated-nav button{font-size:13px;gap:4px}.illustrated-nav button>span{font-size:20px}.map-regions button{font-size:10px}.illustrated-objective{font-size:12px}.room-hotspot{padding:5px 7px}.scene-modal-layer{top:58px}.dialogue-scroll{padding:12px}.scene-dialog h2{font-size:23px}.dialogue-scroll p{font-size:14px}}
@media(prefers-reduced-motion:reduce){.scene-dialog{animation:none}.map-route{filter:none}}

.npc-medallion.has-portrait{background-image:var(--portrait-art);background-size:900% 1200%;background-position:var(--portrait-position)}
.room-hotspot .room-label{display:flex;gap:5px;align-items:center;justify-content:center;padding:7px 9px;border:1px solid #b79b56;border-radius:7px;background:linear-gradient(#303322ed,#151c11f5);box-shadow:0 3px 12px #0009;font:600 clamp(12px,2.8vw,17px)/1.15 Georgia,serif;color:#f1e3b6}
.room-label>span{font:22px Georgia,serif;color:#e4c573}
.room-hotspot{padding:0;border:0;background:none;box-shadow:none}
.hotspot-talk{width:38%;height:47%;max-width:38%}.hotspot-exit{width:35%;height:44%;max-width:35%}.hotspot-inspect{width:39%;height:18%;max-width:39%}.hotspot-rest{width:30%;height:20%;max-width:30%}

#adventure.illustrated .illustrated-objective p{margin:0;font-size:13px;line-height:1.3}#adventure.illustrated .illustrated-objective small{font-size:10px;line-height:1.3;display:block}#adventure.illustrated .illustrated-hint{font-size:11px;line-height:1.4;padding:6px 12px;margin:0}#adventure.illustrated .illustrated-wallet small{font-size:10px;color:#b5c8a6}#adventure.illustrated .map-pin small{font-size:8px;line-height:1.2}#adventure .scene-dialog h2{font-size:25px;line-height:1.15;margin:0 0 3px;color:#edce88}#adventure .scene-dialog .dialogue-scroll p{font-size:15px;line-height:1.55;margin:0 0 12px}#adventure .scene-dialog .world-dialogue h3{font-size:18px;margin:0 0 8px}#adventure .scene-dialog header small{font-size:11px;color:#b7bba1}
#adventure.illustrated .illustrated-objective .world-button{width:auto;margin:0;flex:0 0 auto;min-height:36px;padding:5px 9px;font-size:12px;line-height:1.2}
#adventure.illustrated .illustrated-objective{min-height:52px;max-height:90px}
.illustrated-header h1{font-size:clamp(18px,4.7vw,24px)}
@media(orientation:portrait) and (min-height:740px){@supports(width:1cqh){.room-plane{width:75cqh;max-width:none;height:100cqh;max-height:none}.room-hotspot.hotspot-inspect .room-label,.room-hotspot.hotspot-rest .room-label{transform:translateX(8px)}}}
.illustrated-viewport{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
@media(orientation:portrait) and (min-height:740px){.hotspot-exit .room-label{transform:translateX(-12px)}}

.scene-modal-layer{top:var(--world-header-height,64px)}.scene-optional{margin-top:18px;border-top:1px solid #80734b77;padding-top:12px}.scene-optional summary{min-height:44px;display:flex;align-items:center;color:#c6b880;font-size:13px;cursor:pointer}
@media(orientation:portrait) and (min-height:740px){.room-plane:has(.hotspot-talk) .hotspot-inspect .room-label{transform:translateX(50px)}.room-hotspot.hotspot-rest .room-label{transform:translateX(24px)}}

.room-warehouse .hotspot-inspect{height:35%;width:52%;max-width:52%}.room-warehouse .hotspot-inspect .room-label{position:absolute;top:0;transform:translateY(-110%)}
