@import url('./inventory-window.css?v=20261028-1');
/* The default game HUD; ?hud=classique retains the legacy layout; no permanent strip around the painting. */
#game[data-hud=modern]{--shelf:0px;background:#101713;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
#game[data-hud=modern] .world-frame{inset:0!important;border:0;border-radius:0;background:transparent}
#game[data-hud=modern] .stage-wrap{inset:0;overflow:auto;scrollbar-width:none;touch-action:pan-x pan-y}
#game[data-hud=modern] .stage-wrap::-webkit-scrollbar{display:none}
#game[data-hud=modern] .stage{position:relative;top:0;transform:none;left:0;min-width:100%;min-height:100%;width:max(100vw,calc(100dvh * 1.776833156));height:max(100dvh,calc(100vw / 1.776833156));aspect-ratio:auto;background-size:100% 100%}
#game[data-hud=modern] .stage-wrap.panning{cursor:grabbing}
#game[data-hud=modern] .place-label{top:25px;left:30px;max-width:calc(100% - 245px);padding:0;text-shadow:0 2px 14px #000,0 1px 3px #000}
#game[data-hud=modern] .place-label h1{font-size:25px;line-height:1.15;margin:0 0 5px;font-weight:500;letter-spacing:.01em}
#game[data-hud=modern] .phase{font:11px/1.3 ui-sans-serif,system-ui;letter-spacing:.03em;color:#e4e3d8;opacity:.85}
#game[data-hud=modern] .commands{display:flex;gap:2px;padding:3px;background:#101b21c9;border:1px solid #ffffff24;border-radius:12px;backdrop-filter:blur(14px)}
#game[data-hud=modern] .commands button{border:0;border-radius:8px;background-color:transparent;color:#efeee6;box-shadow:none;margin:0}
#game[data-hud=modern] .commands button:hover,#game[data-hud=modern] .commands button:focus-visible{background-color:#ffffff15}
#game[data-hud=modern] .commands .hud-icon{width:35px;height:35px;min-height:35px;background-size:23px}
#game[data-hud=modern] #options{font:12px/1 ui-sans-serif,system-ui;padding:0 12px}
#game[data-hud=modern] .exits .hud-exit{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:10px;background:#13202b80;box-shadow:none;backdrop-filter:blur(10px);overflow:visible;color:#f6f8fb;opacity:.92}
#game[data-hud=modern] .hud-exit:before{content:none}
#game[data-hud=modern] .hud-exit-label{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);white-space:nowrap;padding:7px 10px;background:#122027ef;border:1px solid #ffffff25;border-radius:7px;font:12px/1.3 ui-sans-serif,system-ui;opacity:0;pointer-events:none;transition:opacity .15s}
#game[data-hud=modern] .hud-exit:hover,#game[data-hud=modern] .hud-exit:focus-visible{opacity:1;background:#152025d9}
#game[data-hud=modern] .hud-exit:hover .hud-exit-label,#game[data-hud=modern] .hud-exit:focus-visible .hud-exit-label{opacity:1}
#game[data-hud=modern] .hud-dock{position:absolute;z-index:34;left:50%;bottom:18px;transform:translateX(-50%);display:flex;align-items:center;gap:3px;padding:5px;background:#101b21de;border:1px solid #ffffff25;border-radius:14px;backdrop-filter:blur(18px);box-shadow:0 8px 25px #0004}
#game[data-hud=modern] .hud-dock button{position:relative;inset:auto;transform:none;width:auto;height:43px;min-height:43px;display:flex;align-items:center;gap:9px;padding:0 14px;margin:0;border:0;border-radius:9px;background:none;color:#eeeee6;font:13px/1 ui-sans-serif,system-ui;text-shadow:none}
#game[data-hud=modern] .hud-dock button:hover,#game[data-hud=modern] .hud-dock button:focus-visible,#game[data-hud=modern] .hud-dock button[aria-expanded=true]{background:#ffffff14}
#game[data-hud=modern] .hud-dock svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
#game[data-hud=modern] .hud-count{font-size:10px;padding:3px 5px;border-radius:5px;color:#e3eaf0;background:#ffffff12}
#game .hud-selection{position:absolute;z-index:34;bottom:140px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 10px;max-width:calc(100% - 30px);border-radius:8px;background:#142027ed;color:#f2e6cb;font:12px/1.35 system-ui;pointer-events:auto}
#game[data-hud=modern] .inventory{left:50%!important;right:auto!important;bottom:83px!important;transform:translateX(-50%);width:min(1000px,calc(100% - 48px));height:150px;padding:15px 18px!important;border:1px solid #e4d1a448;border-radius:15px;background:#172229f5;background-image:none!important;box-shadow:0 10px 45px #0008;gap:9px;z-index:33;backdrop-filter:blur(20px)}
#game[data-hud=modern] .inventory[hidden]{display:none!important}
#game[data-hud=modern] .inventory .item{grid-template-rows:64px minmax(0,1fr);gap:5px;border:1px solid transparent;border-radius:8px}
#game[data-hud=modern] .inventory .item:hover,#game[data-hud=modern] .inventory .item:focus-visible,#game[data-hud=modern] .inventory .selected .item{border-color:#cdb58269;background:#ffffff07}
#game[data-hud=modern] .inventory .inventory-art{height:62px;max-height:62px}
#game[data-hud=modern] .inventory .item-name{font:11px/1.3 ui-sans-serif,system-ui;color:#ece9df;text-shadow:none}
#game[data-hud=modern] .inventory .examine{right:0;top:0;width:24px;height:24px;background-size:21px}
#game[data-hud=modern] .inventory-page{bottom:5px;right:22px;font:10px/1 ui-sans-serif,system-ui}
#game[data-hud=modern] .save-state{bottom:22px;right:23px;font:9px/1 ui-sans-serif,system-ui;color:#fff9;max-width:140px;text-shadow:0 1px 4px #000}
#game[data-hud=modern] .pan-controls{top:auto;bottom:21px;left:24px;right:auto;gap:5px}
#game[data-hud=modern] .pan-controls button{height:34px;width:34px;border-radius:50%;background:#101b21a6;border:1px solid #ffffff25}
#game[data-hud=modern] .verb-line{bottom:84px;left:50%;right:auto;width:max-content;transform:translateX(-50%);font:13px/1.35 ui-sans-serif,system-ui;max-width:min(680px,85vw);padding:6px 11px;border-radius:7px;background:#132026d9;color:#efecdf;text-align:center}
#game[data-hud=modern] .verb-line:empty{display:none}
#game[data-hud=modern]:not(.ending-screen) .inspector{left:50%;right:auto;top:auto;bottom:89px;width:min(820px,calc(100% - 42px));transform:translateX(-50%);max-height:43dvh;border:1px solid #ffffff2b;border-radius:14px;background:#111f28f5;box-shadow:0 15px 50px #0006;z-index:35;padding:22px 28px;backdrop-filter:blur(18px)}
#game[data-hud=modern][data-bag-open=true]:not(.ending-screen) .inspector{bottom:243px;max-height:calc(100dvh - 330px)}
#game[data-hud=modern] .panel-copy{font:15px/1.65 ui-sans-serif,system-ui;color:#f0ede2}
#game[data-hud=modern] .inspector h2{font:500 23px/1.3 Georgia,serif;margin-bottom:9px}
#game[data-hud=modern] .inspector .choice{font:13px/1.5 ui-sans-serif,system-ui;border-radius:7px;padding:10px 12px}
#game[data-hud=modern]:not(.ending-screen) .inspector.item-open,#game[data-hud=modern]:not(.ending-screen) .inspector.puzzle-open,#game[data-hud=modern]:not(.ending-screen) .inspector.comparison-open{top:80px;bottom:89px;width:min(1050px,calc(100% - 42px));max-height:none}
@media(max-width:650px){#game[data-hud=modern] .place-label{left:15px;top:20px;max-width:calc(100% - 165px)}#game[data-hud=modern] .place-label h1{font-size:20px}#game[data-hud=modern] .commands{right:10px;top:13px}#game[data-hud=modern] .commands .hud-icon{width:30px;height:32px;min-height:32px;background-size:20px}#game[data-hud=modern] #options{padding:0 9px;font-size:11px}#game[data-hud=modern] .hud-dock{bottom:14px}#game[data-hud=modern] .hud-dock button{height:40px;min-height:40px;padding:0 12px;gap:6px;font-size:12px}#game[data-hud=modern] .save-state{display:none}#game[data-hud=modern] .inventory{width:calc(100% - 20px);bottom:76px!important;height:153px;padding:13px 12px!important}#game[data-hud=modern] .inventory .item{grid-template-rows:59px minmax(0,1fr)}#game[data-hud=modern] .inventory .item-name{font-size:11px}#game[data-hud=modern] .pan-controls{bottom:75px;left:12px}#game[data-hud=modern] .verb-line{bottom:72px}#game[data-hud=modern]:not(.ending-screen) .inspector{width:calc(100% - 20px);bottom:77px;padding:20px 17px;max-height:48dvh}#game[data-hud=modern][data-bag-open=true]:not(.ending-screen) .inspector{bottom:239px;max-height:calc(100dvh - 316px)}}
@media(max-height:520px) and (orientation:landscape){#game[data-hud=modern] .hud-dock{bottom:10px}#game[data-hud=modern] .hud-dock button{height:34px;min-height:34px}#game[data-hud=modern] .inventory{bottom:65px!important;height:120px}#game[data-hud=modern] .inventory .item{grid-template-rows:44px minmax(0,1fr)}#game[data-hud=modern] .inventory .inventory-art{height:43px;max-height:43px}#game[data-hud=modern] .place-label{top:16px}#game[data-hud=modern] .place-label h1{font-size:21px}#game[data-hud=modern]:not(.ending-screen) .inspector{bottom:65px;max-height:calc(100dvh - 135px)}#game[data-hud=modern][data-bag-open=true]:not(.ending-screen) .inspector{bottom:195px;max-height:calc(100dvh - 255px)}}
@media(prefers-reduced-motion:no-preference){#game[data-hud=modern] .inventory:not([hidden]){animation:hud-drawer .18s ease-out}@keyframes hud-drawer{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}}

#game[data-hud=modern] .game-head{top:18px;right:22px;left:auto}
#game[data-hud=modern] .hud-exit[data-armed=true] .hud-exit-label{opacity:1}
#game[data-hud=modern] .hud-exit[data-armed=true]{opacity:1;background:#152025ef}
@media(max-width:650px){#game[data-hud=modern] .game-head{top:13px;right:10px}}

#game[data-hud=modern] .hud-exit svg{width:23px;height:23px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#game[data-hud=modern] .commands .hud-icon,#game[data-hud=modern] .bag-control,#game[data-hud=modern] .inventory .examine{display:grid;place-items:center;background-image:none!important;color:#ecf0f5;filter:none}
#game[data-hud=modern] .commands svg,#game[data-hud=modern] .bag-control svg,#game[data-hud=modern] .inventory .examine svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#game[data-hud=modern] .inventory .examine{background-color:#15212a;border-radius:6px}
#game[data-hud=modern] .inventory .examine:hover{background-color:#30414f}
#game[data-hud=modern] .inventory .examine svg{width:17px;height:17px}
#game[data-hud=modern] .bag-next{transform:none}
#game[data-hud=modern] .hud-sound{position:relative}
#game[data-hud=modern] .hud-sound[data-muted=true]::after{width:23px;height:1.5px;background:#edf1f5;left:50%;top:50%}

/* Approved physical objects, exported at 128 px with their original alpha. */
#game[data-hud=modern] .hud-dock .hud-object-icon{display:block;flex:0 0 38px;width:38px;height:38px;object-fit:contain;pointer-events:none;user-select:none}
#game[data-hud=modern] .hud-dock:has(.hud-object-icon) button{height:48px;min-height:48px;gap:7px;padding:0 12px}
#game[data-hud=modern] .hud-dock button:focus-visible{outline:2px solid #e7c88c;outline-offset:2px}
@media(max-width:650px){
 #game[data-hud=modern] .hud-dock:has(.hud-object-icon){width:min(310px,calc(100% - 96px));box-sizing:border-box}
 #game[data-hud=modern] .hud-dock:has(.hud-object-icon) button{flex:1;min-width:0;height:50px;min-height:50px;display:flex;flex-direction:column;justify-content:center;gap:1px;padding:1px 5px;font-size:11px}
 #game[data-hud=modern] .hud-dock .hud-object-icon{width:31px;height:31px;flex-basis:31px}
 #game[data-hud=modern] .hud-dock:has(.hud-object-icon) .hud-count{position:absolute;top:3px;right:4px;padding:2px 4px;font-size:9px}
}
@media(max-height:520px) and (orientation:landscape){
 #game[data-hud=modern] .hud-dock:has(.hud-object-icon) button{height:36px;min-height:36px;flex-direction:row}
 #game[data-hud=modern] .hud-dock .hud-object-icon{width:30px;height:30px;flex-basis:30px}
}

/* Approved on 27 October: readable place names and one fine, matching chevron. */
#game[data-hud=modern] .exits{inset:0!important;display:block;pointer-events:none}
#game[data-hud=modern] .exits[hidden]{display:none!important}
#game[data-hud=modern] .exits .hud-exit{position:absolute;transform:translate(-50%,-50%);width:max-content;height:auto;min-width:0;min-height:44px;max-width:calc(100vw - 16px);padding:8px 10px;border:0;border-radius:0;background:transparent;backdrop-filter:none;box-shadow:none;filter:none;color:#f3e6cd;opacity:1;font:16px/1.3 Georgia,serif;text-shadow:0 1px 4px #000,0 0 12px #000}
#game[data-hud=modern] .exits .hud-exit:hover,#game[data-hud=modern] .exits .hud-exit:focus-visible,#game[data-hud=modern] .exits .hud-exit[data-armed=true],#game[data-hud=modern] .exits .hud-exit.passage-hovered{color:#fff8e9;background:#17130b47;opacity:1}
#game[data-hud=modern] .exits .hud-exit .hud-exit-label{display:block;position:static;transform:none!important;white-space:nowrap;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;opacity:1;color:inherit;font:inherit;text-shadow:inherit;pointer-events:none;transition:none}
#game[data-hud=modern] .passage-caption{display:inline-flex;align-items:center;gap:7px}
#game[data-hud=modern] .passage-direction{display:inline-block;font:normal 20px/1 Georgia,serif;color:inherit;text-shadow:inherit}
#game[data-hud=modern] .passage-direction[data-travel=left]{transform:rotate(180deg)}
#game[data-hud=modern] .passage-direction[data-travel=forward]{transform:rotate(-90deg)}
#game[data-hud=modern] .passage-direction[data-travel=back]{transform:rotate(90deg)}
#game[data-hud=modern] .hud-exit-label small{display:block;margin-top:2px;font:italic 12px/1.3 Georgia,serif;color:inherit;opacity:.9}
#game[data-hud=modern] .exits .passage-opening-target{position:absolute;transform:none;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;z-index:-1}
#game[data-hud=modern] .exits .passage-opening-target:hover{background:#ffdd8512}
#game[data-hud=modern] .pan-controls:not([hidden]){position:absolute;display:flex;gap:7px;justify-content:flex-start;left:15px;right:auto;top:auto;bottom:105px;pointer-events:none;z-index:12}
#game[data-hud=modern] .pan-controls::before{content:'Regard';position:absolute;left:0;right:0;top:-12px;text-align:center;color:#ead9b4;font:10px/1 Georgia,serif;text-shadow:0 1px 4px #000}
#game[data-hud=modern] .pan-controls[hidden]{display:none!important}
#game[data-hud=modern] .pan-controls button{pointer-events:auto;height:32px;width:32px;min-height:32px;padding:0;border:0;border-radius:0;background:transparent;color:#ead9b4;font:25px/1 Georgia,serif;box-shadow:none;text-shadow:0 2px 5px #000}
#game[data-hud=modern] .pan-controls button:hover,#game[data-hud=modern] .pan-controls button:focus-visible{color:#fff0cc;background:transparent}

/* The held object belongs to the dock; the target gets a separate, unobscured line. */
#game[data-hud=modern]{--hud-inventory-height:150px;--hud-dock-clearance:83px;--hud-inventory-clearance:0px}
#game[data-hud=modern][data-bag-open=true]{--hud-inventory-clearance:calc(var(--hud-inventory-height) + 10px)}
#game[data-hud=modern] .hud-dock{display:grid;grid-template-columns:repeat(3,auto);max-width:calc(100% - 24px)}
#game[data-hud=modern] .hud-dock .hud-selection{position:static;grid-column:1/-1;transform:none;max-width:none;min-width:0;padding:0 5px 4px;background:none;border-bottom:1px solid #ffffff20;border-radius:0}
#game[data-hud=modern] .hud-held-name{min-width:0;white-space:normal;overflow-wrap:normal;text-align:left;color:#f2e6cb}
#game[data-hud=modern] .hud-dock:has(.hud-object-icon) .hud-clear-item,#game[data-hud=modern] .hud-dock .hud-clear-item{flex:none;display:block;width:auto;height:40px;min-height:40px;padding:0 10px;font:12px/1.3 system-ui;color:#f5e7cc;background:#ffffff0d;border:1px solid #ffffff25}
#game[data-hud=modern] .inventory{bottom:var(--hud-dock-clearance)!important}
#game[data-hud=modern] .verb-line{bottom:calc(var(--hud-dock-clearance) + var(--hud-inventory-clearance));display:block;z-index:34;pointer-events:none}
#game[data-hud=modern] .verb-line:empty{display:none}
#game[data-hud=modern]:not(.ending-screen) .inspector:not(.observation-open){bottom:calc(var(--hud-dock-clearance) + var(--hud-inventory-clearance))}
@media(max-width:650px){#game[data-hud=modern]{--hud-inventory-height:153px}#game[data-hud=modern] .hud-dock .hud-selection{gap:6px;font-size:11px}#game[data-hud=modern] .hud-dock .hud-clear-item{min-height:44px}}
@media(max-height:520px) and (orientation:landscape){#game[data-hud=modern]{--hud-inventory-height:120px}}

.scene-transition-cover{position:absolute;inset:0;background-size:100% 100%;background-repeat:no-repeat;z-index:20;pointer-events:none}
#game .scene-load-status{position:absolute;z-index:36;top:80px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100% - 32px);padding:10px 14px;border:1px solid #d7c39545;border-radius:10px;background:#101b21f2;color:#f1e6d0;font:13px/1.45 system-ui;box-shadow:0 3px 18px #0005}
#game .scene-load-status button{font:inherit;flex:none}
@media(max-width:650px){#game .scene-load-status{flex-direction:column;top:90px;text-align:center}}
#game[data-hud=modern] .pan-controls button:disabled{visibility:hidden}
#game .puzzle-assistance .fine:not([hidden]){display:block}
.save-recovery{position:absolute;inset:0;z-index:100;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;padding:clamp(24px,8vw,100px);overflow:auto;background:linear-gradient(90deg,#101c24f5,#101c24e3 58%,#101c2477),var(--recovery-art,none) center/cover,#101c24;color:#f3e7d0;backdrop-filter:blur(12px)}
.save-recovery h2{font:500 clamp(24px,3vw,36px)/1.2 Georgia,serif;margin:0}.save-recovery p{max-width:650px;line-height:1.7}.save-recovery button{max-width:100%;text-align:left;flex:none}.save-recovery a{color:#e9cf9b;text-underline-offset:4px;margin:8px 0}
@media(max-height:520px) and (orientation:landscape){#game .puzzle-open .puzzle-assistance{grid-column:2}}
@media(min-width:900px) and (min-height:600px){#game[data-hud=modern]:not(.ending-screen) .inspector.dialogue-open[data-placement=top]{top:92px;bottom:auto}}
@media(max-width:650px){#game[data-hud=modern] .exits .hud-exit{font-size:14px;padding:7px 8px}#game[data-hud=modern] .hud-exit-label small{font-size:11px}}

.recovery-alternatives{max-width:700px;padding:10px 0}.recovery-alternatives summary{cursor:pointer;color:#e9cf9b}.recovery-alternatives button{display:block;margin-top:8px}
.inventory-guide{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 28px);overflow:auto;padding:clamp(18px,3vw,30px);border:1px solid #b6a27c66;border-radius:14px;background:linear-gradient(135deg,#243034,#121d23);color:#f3e7d0}
.inventory-guide h2{font-size:clamp(22px,3vw,30px);margin:0 0 14px}.inventory-guide-sample{display:flex;align-items:center;gap:20px;margin-bottom:12px}.inventory-guide-art{display:block;flex:none;width:100px;height:85px;background-repeat:no-repeat;background-size:contain;background-position:center;object-fit:contain}.inventory-guide-sample p{font-size:18px}.inventory-guide-gestures{display:grid;grid-template-columns:130px 1fr;gap:10px 18px;line-height:1.55}.inventory-guide-gestures dt{color:#e9cf9b;font-weight:600}.inventory-guide-gestures dd{margin:0}.inventory-guide-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 12px}.inventory-guide>button{margin-top:12px}
@media(max-width:500px){.inventory-guide-gestures{grid-template-columns:1fr;gap:4px}.inventory-guide-gestures dd{margin-bottom:10px}.inventory-guide-art{width:75px;height:65px}}
