#dialogue-content [hidden]{display:none!important}
:root{color-scheme:dark;--navy:#062d58;--ink:#072748;--blue:#1264bb;--cyan:#8be1f7;--paper:#fffdf2;--line:#163b60}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#062a4d;font-family:Arial,Helvetica,sans-serif;color:var(--paper)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #ffcf63;outline-offset:4px}button:disabled{cursor:wait;opacity:.5}[hidden]{display:none!important}#game{position:relative;width:100%;height:100%;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at center,#15436a,#031c37)}#scene{position:absolute;inset:0;width:100%;height:100%;touch-action:none;outline:none}.masthead{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:28px;padding:22px 30px 45px;background:linear-gradient(#03294af2,#03294a88 70%,transparent);pointer-events:none}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:white;white-space:nowrap;pointer-events:auto}.brand-mark{font-size:27px;font-weight:900;font-style:italic;letter-spacing:-5px;border:2px solid #89d5ec;border-radius:50%;width:54px;height:42px;display:grid;place-content:center;padding-right:6px;transform:rotate(-8deg)}.brand-mark span{color:#80dcf8}.brand>span:last-child{font-weight:800;letter-spacing:-.5px;font-size:19px}.brand>span:last-child>span{color:#8fdff5}.brand small{display:block;font-size:7px;letter-spacing:1.7px;margin-top:4px;font-weight:600}.scene-title{border-left:1px solid #8bc9e14d;padding-left:26px}.scene-title>span,.eyebrow{font-size:10px;font-weight:800;letter-spacing:2.1px;color:#8edff2}h1{font-size:20px;font-weight:600;letter-spacing:-.5px;margin:5px 0 0}.help-button{pointer-events:auto;margin-left:auto;border:1px solid #8ac6de88;border-radius:50%;background:#07305bcc;color:white;width:37px;height:37px;font-weight:800;font-size:18px}.help-button:hover{background:#176bb4}.location{position:absolute;right:30px;bottom:27px;font-size:8px;letter-spacing:1.7px;display:flex;align-items:center;gap:8px;padding:9px 12px;background:#042d58dc;border-radius:4px}.live-dot{width:5px;height:5px;background:#9ce8f7;border-radius:50%}#minimap-wrap{position:absolute;bottom:27px;left:30px;width:153px;border:1px solid #87d1ea66;background:#04284fdf;padding:10px 10px 8px;border-radius:7px;box-shadow:0 7px 22px #00172e40;pointer-events:none}.map-label{font-size:8px;letter-spacing:1.3px;color:#c2eafa;font-weight:700;display:flex;justify-content:space-between}.map-label span{font-size:8px;color:#6cb3d8}#minimap{width:130px;height:85px;display:block}.map-key{font-size:6px;letter-spacing:1px;display:flex;align-items:center;gap:4px;color:#acd3e5}.map-key i,.map-key b{width:4px;height:4px;background:#fff3be;border-radius:50%;display:inline-block}.map-key b{background:#65d1ef;margin-left:6px}.walk-hint{position:absolute;bottom:32px;left:50%;transform:translateX(-50%);font-size:10px;background:#042d58e0;padding:10px 16px;border:1px solid #8acde44a;border-radius:30px;white-space:nowrap;color:#bed9eb;pointer-events:none}.walk-hint span{color:#fff;font-size:10px;letter-spacing:1.5px}.walk-hint i{margin:0 8px;font-style:normal;color:#6ea3c7}#interaction{position:absolute;left:50%;bottom:100px;transform:translateX(-50%);display:flex;align-items:center;gap:9px;background:var(--paper);color:var(--ink);padding:9px 15px;border:2px solid var(--ink);border-radius:6px;box-shadow:3px 4px 0 #02244188;font-size:12px;font-weight:700;white-space:nowrap}.keycap{display:inline-grid;place-content:center;width:24px;height:24px;border:1.5px solid #1a537f;border-radius:4px;background:#d6edf5;font-weight:800}#interact-button{display:none;background:none;border:0;color:var(--ink);font-weight:800}#dialogue{position:absolute;width:min(410px,calc(100vw - 30px));background:var(--paper);color:var(--ink);border:2.5px solid var(--ink);border-radius:10px;padding:17px 18px 11px;box-shadow:5px 6px 0 #0727475e;z-index:5;max-height:calc(100dvh - 150px);overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}#dialogue:after{content:"";position:absolute;bottom:-12px;left:36px;width:19px;height:19px;background:var(--paper);border-right:2.5px solid var(--ink);border-bottom:2.5px solid var(--ink);transform:rotate(45deg)}.bubble-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #b4cbd5;padding-bottom:9px;margin-bottom:11px}.bubble-head>span{font-size:10px;letter-spacing:1.3px;font-weight:800;text-transform:uppercase;color:#105f9f}.bubble-head button{border:0;background:#dfedf0;border-radius:50%;width:24px;height:24px;color:#1a4168;font-size:19px;line-height:1}#dialogue h2{font-size:23px;line-height:1.1;margin:4px 0 12px;letter-spacing:-.8px}#dialogue p{font-size:12px;line-height:1.5;margin:0 0 12px}#dialogue .caption{font-size:10px;line-height:1.5;color:#587181}.choice{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:1px solid #9bbdce;background:#e7f0f2;color:var(--ink);border-radius:5px;padding:10px 11px;margin:6px 0;font-size:11px;line-height:1.3;transition:background .15s,transform .15s}.choice:hover{background:#d0eaf3;transform:translateX(2px);border-color:#2476b1}.choice strong{flex:none;font-size:9px;color:#2074aa;background:#fff;border-radius:3px;padding:3px 5px}.choice.selected{background:#c9e6ef;border-color:#1461a1}.action-link{display:flex;justify-content:space-between;align-items:center;text-decoration:none;color:white;background:#1164a6;border:1px solid #074777;border-radius:5px;padding:12px 13px;margin:9px 0;font-size:11px;font-weight:700;line-height:1.35}.action-link:hover{background:#084d8b}.text-button{background:none;border:0;color:#166aa5;padding:6px 0;font-size:10px;text-decoration:underline}.bubble-footer{display:flex;justify-content:space-between;gap:7px;margin-top:11px;padding-top:8px;border-top:1px solid #c5d5db;color:#6b8290;font-size:6px;letter-spacing:.7px}.summary-bit{border-left:2px solid #6ec6df;padding-left:10px;margin:10px 0}.summary-bit b{display:block;font-size:11px;margin-bottom:3px}.summary-bit p{font-size:11px!important}.veil{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:24px;background:#03294780;backdrop-filter:blur(4px)}.splash-card,.help-card{width:min(535px,100%);padding:37px 40px 27px;border:1px solid #9dddf376;background:linear-gradient(140deg,#073b6bf5,#082a4cf7);border-radius:12px;box-shadow:0 20px 70px #001b3580}.splash-card h2,.help-card h2{font-size:40px;line-height:1.07;letter-spacing:-1.6px;font-weight:700;margin:20px 0 18px}.splash-card>p,.help-card p{font-size:13px;color:#c1deec;line-height:1.7}.splash-bottom{margin:25px 0 18px;display:flex;align-items:center;gap:15px}.splash-bottom>span{font-size:10px;color:#9ccde2;flex:1}.splash-card button,.help-card>button{border:1px solid #a5e7f5;background:#a6e4f0;color:#063358;border-radius:5px;font-size:12px;font-weight:800;padding:14px 18px}.splash-card button span{margin-left:15px}.splash-card small{display:block;border-top:1px solid #77abc93b;padding-top:15px;color:#83acc4;font-size:9px;line-height:1.6}.help-card h2{font-size:32px;margin-top:14px}.help-card .editorial-note{font-size:10px;color:#8fb5ca;border-top:1px solid #497c9c66;padding-top:16px}.help-card>button{margin-top:10px}#toast{position:absolute;top:105px;left:50%;transform:translateX(-50%);padding:10px 16px;border:1px solid #74c7e3;background:#072e55ed;border-radius:5px;font-size:11px;text-align:center;max-width:90%;z-index:6}#touch-controls{display:none;position:absolute;bottom:23px;right:20px;grid-template-columns:repeat(3,39px);grid-template-rows:repeat(2,39px);gap:5px}#touch-controls button{touch-action:none;background:#073568cc;border:1px solid #91cce9a8;color:white;border-radius:7px;font-size:20px}#touch-controls button[data-dir=up]{grid-column:2}#touch-controls button[data-dir=left]{grid-row:2;grid-column:1}#touch-controls button[data-dir=down]{grid-row:2;grid-column:2}#touch-controls button[data-dir=right]{grid-row:2;grid-column:3}#destination{pointer-events:none;position:absolute;width:20px;height:10px;border:2px solid #d5f6ff;border-radius:50%;transform:translate(-50%,-50%);opacity:0}noscript{position:absolute;inset:40% 20%;z-index:99;background:white;color:#072748;padding:30px}noscript a{color:#1264bb}@media(pointer:coarse){#touch-controls{display:grid}.walk-hint{display:none}.location{display:none}#interaction-label,#interaction .keycap{display:none}#interact-button{display:block;padding:6px 10px}#interaction{bottom:115px}}@media(max-width:760px){.masthead{padding:17px 17px 35px;gap:18px}.brand>span:last-child{display:none}.brand-mark{width:45px;height:36px;font-size:24px}.scene-title{padding-left:16px}.scene-title>span{font-size:7px;letter-spacing:1.4px}h1{font-size:16px}.help-button{width:31px;height:31px}.location{display:none}#minimap-wrap{left:17px;bottom:20px;width:115px;padding:8px}#minimap{width:96px;height:63px}.map-label{font-size:6px}.map-key{font-size:5px;gap:3px}.walk-hint{font-size:8px;bottom:24px;left:auto;right:17px;transform:none;padding:9px}.walk-hint span{font-size:8px}#dialogue{max-height:calc(100dvh - 120px);padding:13px 14px 10px}.splash-card,.help-card{padding:27px}.splash-card h2{font-size:33px}.splash-card .eyebrow,.help-card .eyebrow{font-size:8px}.splash-card>p,.help-card p{font-size:12px}.splash-bottom{align-items:flex-start;flex-direction:column;gap:12px}.splash-card small{font-size:8px}#toast{top:90px;font-size:10px}}@media(max-height:570px){.masthead{padding-top:12px}#minimap-wrap{bottom:16px}.splash-card,.help-card{padding:20px 27px;max-height:94dvh;overflow:auto}.splash-card h2{font-size:29px;margin:12px 0}.splash-card>p{font-size:11px}.splash-bottom{margin:14px 0}#dialogue{max-height:calc(100dvh - 95px)}.walk-hint{bottom:18px}}

/* Six-room navigation and compact activities. */
.route-compass{position:absolute;top:126px;left:31px;display:flex;align-items:center;gap:11px;max-width:330px;border:1px solid #91c8dc70;border-radius:7px;background:#072e56e8;color:#e7f5f5;padding:12px 15px;text-align:left;box-shadow:0 4px 14px #021f3c40}.route-compass>span:first-child{font-size:25px;color:#f6d889;width:29px;text-align:center}.route-compass b{display:block;font-size:12px;line-height:1.35}.route-compass small{display:block;font-size:10px;line-height:1.5;color:#b4d1df;margin-top:4px}.route-compass:hover{background:#154a75}#minimap-wrap{width:211px;pointer-events:auto}#minimap{width:190px;height:100px;cursor:pointer;touch-action:manipulation}.map-label{font-size:8px}.map-key{font-size:6px;line-height:1.4}.map-label span{font-size:7px;letter-spacing:.6px}.location{font-size:9px}.credits{border-top:1px solid #547e99;padding-top:13px;margin-top:13px;color:#b4d0df;font-size:10px}.credits summary{cursor:pointer}.credits p{font-size:10px}.help-card{max-height:90dvh;overflow:auto}.bubble-head>span{line-height:1.4}#dialogue{max-width:410px}#dialogue h2{font-size:22px}#dialogue p{font-size:14px;line-height:1.55}.choice{font-size:12px;padding:11px}.bubble-footer{font-size:7px}.text-button{margin-right:12px;font-size:11px}.keycap{width:29px}#interaction-label{max-width:65vw;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.route-compass{top:91px;left:17px;max-width:275px;padding:9px 11px}.route-compass b{font-size:11px}.route-compass small{font-size:9px}.route-compass>span:first-child{font-size:22px}#minimap-wrap{width:165px;left:16px;bottom:17px}#minimap{width:147px;height:78px}.map-label{font-size:7px}.map-key{font-size:5px}#dialogue p{font-size:13px}.choice{font-size:12px}.walk-hint{bottom:145px;right:17px;font-size:8px}.scene-title{max-width:calc(100vw - 120px)}h1{font-size:14px;line-height:1.2}.scene-title>span{font-size:7px}#interaction{bottom:142px;max-width:94vw;white-space:normal;text-align:center}.route-compass{max-width:calc(100vw - 34px)}.help-card{padding:23px}.location{display:none}}
@media(max-height:570px){.route-compass{top:84px;left:18px;padding:7px 10px;max-width:290px}.route-compass small{display:none}#minimap-wrap{width:150px;padding:7px}#minimap{width:134px;height:71px}#interaction{bottom:48px}.masthead{padding-bottom:25px}#dialogue{max-height:calc(100dvh - 100px)}.walk-hint{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

#minimap-wrap{width:260px}#minimap{width:238px;height:126px}.map-key{font-size:7px}.map-label{font-size:9px}@media(max-width:760px){#minimap-wrap{width:190px}#minimap{width:172px;height:91px}.map-key{font-size:6px}.map-label{font-size:8px}}@media(max-height:570px){#minimap-wrap{width:175px}#minimap{width:159px;height:84px}}



/* Full-screen JuegoConSentido shell: game canvas between a compact header and footer. */
html,body{width:100%;height:100%;min-width:320px;min-height:0;overflow:hidden;background:#071b36}
body{display:block;padding:0}
#game{display:grid;grid-template-rows:76px minmax(0,1fr) 118px;gap:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;background:#092b4c}
.cabinet-header{position:relative;z-index:2;grid-row:1;display:grid;grid-template-columns:minmax(130px,180px) minmax(150px,.8fr) minmax(280px,1.5fr) auto;align-items:center;gap:clamp(12px,2vw,28px);min-width:0;padding:8px clamp(16px,2.3vw,34px);background:#08294a;border-bottom:1px solid #79cbe144}
.cabinet-brand{display:flex;align-items:center;justify-content:flex-start;min-width:0;text-decoration:none}
.cabinet-brand img{display:block;width:min(100%,164px);max-height:56px;object-fit:contain}
.cabinet-location{min-width:0;padding-left:15px;border-left:1px solid #80cbe355;color:#f2f5ff}
.cabinet-location>span:first-child,.route-eyebrow{display:block;margin:0 0 4px;color:#8edff2;font-size:9px;font-weight:900;letter-spacing:1.2px}
.cabinet-location h1{overflow:hidden;margin:0;color:#fff;font-size:clamp(14px,1.35vw,19px);font-weight:800;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
.route-compass{position:static;display:flex;align-items:center;gap:10px;width:100%;min-width:0;max-width:none;margin:0;padding:4px 0 4px 14px;border:0;border-left:1px solid #80cbe355;border-radius:0;background:transparent;color:#eff9ff;text-align:left;box-shadow:none}
.route-compass>span:first-child{flex:none;width:23px;color:#ffd54f;font-size:21px;text-align:center}
.route-compass b{display:block;overflow:hidden;color:#fff;font-size:13px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.route-compass small{display:block;margin-top:2px;color:#c5ddec;font-size:10px;line-height:1.25}
.route-compass .route-eyebrow{margin:0;color:#8edff2;font-size:8px;letter-spacing:1px}
.route-compass:hover{background:#16376180}
.cabinet-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;white-space:nowrap}
.help-button,.exit-button{display:inline-flex;align-items:center;justify-content:center;height:36px;min-width:38px;margin:0;padding:0 12px;border:1px solid #8ac6de88;border-radius:5px;background:#0b355c;color:white;font-size:13px;font-weight:800;text-decoration:none}
.help-button{font-size:17px}.help-button:hover,.exit-button:hover{background:#176bb4}
.arcade-screen{position:relative;z-index:1;grid-row:2;left:auto;top:auto;right:auto;bottom:auto;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;border:0;border-radius:0;background:transparent;box-shadow:none}
#scene{position:absolute;z-index:0;inset:0;width:100%;height:100%;touch-action:none;outline:none}
#goal,#location{display:none!important}
#interaction{z-index:2;bottom:16px}#dialogue{z-index:5;max-height:calc(100% - 24px);overflow:auto}#toast{top:12px;z-index:6}.veil{z-index:10}.splash-card,.help-card{max-height:calc(100% - 16px);overflow:auto}
.cabinet-footer{position:relative;z-index:2;grid-row:3;display:flex;align-items:center;justify-content:space-between;min-width:0;min-height:0;padding:8px clamp(16px,2.3vw,34px);border:0;border-top:1px solid #79cbe144;border-radius:0;background:#08294a;box-shadow:none;pointer-events:auto}
#minimap-wrap{position:relative;left:auto;right:auto;top:auto;bottom:auto;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:2px;width:190px;height:102px;max-width:48%;padding:3px 5px;border:0;border-radius:0;background:transparent;box-shadow:none;pointer-events:auto}
.map-label{display:flex;justify-content:space-between;color:#d6ecf7;font-size:8px;line-height:1.1;font-weight:800;letter-spacing:.6px}.map-label span{color:#a8cce0;font-size:7px;letter-spacing:.2px}
#minimap{display:block;width:100%;height:100%;min-height:0;cursor:pointer;touch-action:manipulation;aspect-ratio:360/190}.map-key{color:#aacadd;font-size:6px;line-height:1.1;letter-spacing:.4px;text-align:left}
.cabinet-control-panel{position:relative;right:auto;bottom:auto;display:flex;align-items:center;justify-content:flex-end;gap:16px;width:auto;height:auto;min-width:0;pointer-events:auto}
.cabinet-instructions{display:flex;flex-direction:column;align-items:flex-end;gap:4px;color:#d9e8f5;font-size:11px;line-height:1.25;text-align:right;text-shadow:none}.cabinet-instructions strong{color:#8edff2;font-size:9px;letter-spacing:1px}.cabinet-instructions small{color:#9fbed2;font-size:9px}
#touch-controls{position:relative;inset:auto;display:none;grid-template-columns:repeat(3,29px);grid-template-rows:repeat(2,26px);gap:2px;justify-content:center;align-content:center;margin:0}
#touch-controls button{width:29px;height:26px;border:1px solid #91cce9a8;border-radius:5px;background:#0d3a67;color:#fff;font-size:15px;box-shadow:none;touch-action:none}
#touch-controls button[data-dir=up]{grid-column:2}#touch-controls button[data-dir=left]{grid-row:2;grid-column:1}#touch-controls button[data-dir=down]{grid-row:2;grid-column:2}#touch-controls button[data-dir=right]{grid-row:2;grid-column:3}
@media(pointer:coarse){#touch-controls{display:grid}.cabinet-instructions{max-width:120px;font-size:9px}.cabinet-instructions small{font-size:8px}#interaction-label,#interaction .keycap{display:none}#interact-button{display:block;padding:5px 8px}#interaction{bottom:10px}}
@media(max-width:760px){#game{grid-template-rows:84px minmax(0,1fr) 92px}.cabinet-header{grid-template-columns:minmax(72px,100px) minmax(90px,1fr) auto;grid-template-areas:"brand location actions" "brand objective actions";gap:2px 9px;padding:6px 12px}.cabinet-brand{grid-area:brand}.cabinet-brand img{width:92px;max-height:64px}.cabinet-location{grid-area:location;padding:0;border:0}.cabinet-location>span:first-child{font-size:6px;margin-bottom:2px}.cabinet-location h1{font-size:12px}.route-compass{grid-area:objective;gap:5px;padding:0;border:0}.route-compass>span:first-child{width:15px;font-size:14px}.route-compass .route-eyebrow{font-size:6px}.route-compass b{font-size:8px}.route-compass small{font-size:7px;margin-top:0}.cabinet-actions{grid-area:actions;gap:5px}.help-button,.exit-button{height:29px;min-width:28px;padding:0 7px;font-size:10px}.help-button{font-size:13px}.cabinet-footer{padding:5px 12px}#minimap-wrap{width:130px;height:72px;max-width:44%;padding:2px}.map-label{font-size:6px}.map-label span{font-size:5px}.map-key{font-size:5px}.cabinet-control-panel{gap:7px}.cabinet-instructions{max-width:110px;font-size:8px}.cabinet-instructions strong{font-size:7px}.cabinet-instructions small{font-size:7px}#touch-controls{grid-template-columns:repeat(3,25px);grid-template-rows:repeat(2,22px)}#touch-controls button{width:25px;height:22px;font-size:12px}#interaction{bottom:7px}#dialogue{max-height:calc(100% - 12px);width:calc(100% - 12px);padding:10px 11px 8px}#dialogue p{font-size:12px}.choice{font-size:11px;padding:9px}.veil{padding:10px}.splash-card,.help-card{padding:18px}.splash-card h2{font-size:27px;margin:11px 0}.splash-card>p,.help-card p{font-size:11px;line-height:1.45}.splash-bottom{flex-direction:column;align-items:flex-start;gap:8px;margin:12px 0}.splash-card button,.help-card>button{padding:10px 12px}.help-card h2{font-size:23px}#toast{top:8px;font-size:9px}}
@media(max-width:370px){#game{grid-template-rows:80px minmax(0,1fr) 88px}.cabinet-header{grid-template-columns:66px minmax(75px,1fr) auto;gap:2px 6px;padding-inline:8px}.cabinet-brand img{width:66px}.cabinet-location h1{font-size:10px}.route-compass b{font-size:7px}.route-compass small{font-size:6px}.help-button,.exit-button{height:26px;min-width:25px;padding-inline:5px;font-size:9px}.cabinet-footer{padding-inline:8px}#minimap-wrap{width:115px;height:65px}.cabinet-instructions{max-width:92px;font-size:7px}.cabinet-instructions small{font-size:6px}#touch-controls{grid-template-columns:repeat(3,22px);grid-template-rows:repeat(2,20px)}#touch-controls button{width:22px;height:20px;font-size:11px}}
@media(max-height:600px) and (min-width:761px){#game{grid-template-rows:60px minmax(0,1fr) 88px}.cabinet-header{padding-block:4px}.cabinet-brand img{max-height:48px}#minimap-wrap{height:76px}.cabinet-footer{padding-block:4px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}}


/* Full-screen playfield with translucent header and footer overlays. */
html,body{width:100%;height:100%;min-width:320px;overflow:hidden}
#game{position:relative;display:block;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;overflow:hidden}
.arcade-screen{position:absolute;z-index:0;inset:0;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;border:0;border-radius:0;background:transparent;box-shadow:none}
#scene{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.cabinet-header{position:absolute;z-index:8;top:0;left:0;right:0;display:grid;grid-template-columns:minmax(130px,180px) minmax(150px,.8fr) minmax(280px,1.5fr) auto;align-items:center;gap:clamp(12px,2vw,28px);min-height:82px;padding:8px clamp(16px,2.3vw,34px) 18px;background:linear-gradient(180deg,rgba(8,41,74,.96),rgba(8,41,74,.78) 67%,transparent);pointer-events:none}
.cabinet-brand,.cabinet-location,.cabinet-actions,.route-compass{pointer-events:auto}
.cabinet-footer{position:absolute;z-index:8;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;width:100%;height:120px;padding:18px clamp(16px,2.3vw,34px) 8px;border:0;border-radius:0;background:linear-gradient(0deg,rgba(8,41,74,.97),rgba(8,41,74,.78) 67%,transparent);box-shadow:none;pointer-events:none}
#minimap-wrap{position:relative;left:auto;right:auto;top:auto;bottom:auto;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:2px;width:190px;height:102px;max-width:48%;padding:3px 5px;border:0;border-radius:0;background:transparent;box-shadow:none;pointer-events:auto}
#minimap{display:block;width:100%;height:100%;min-height:0;cursor:pointer;touch-action:manipulation;aspect-ratio:360/190}.map-label{display:flex;justify-content:space-between;color:#d6ecf7;font-size:8px;line-height:1.1;font-weight:800;letter-spacing:.6px}.map-label span{color:#a8cce0;font-size:7px}.map-key{color:#aacadd;font-size:6px;line-height:1.1;letter-spacing:.4px;text-align:left}
.cabinet-control-panel{position:relative;right:auto;bottom:auto;display:flex;align-items:center;justify-content:flex-end;gap:16px;width:auto;height:auto;min-width:0;pointer-events:auto}.cabinet-instructions{display:flex;flex-direction:column;align-items:flex-end;gap:4px;color:#d9e8f5;font-size:11px;line-height:1.25;text-align:right;text-shadow:0 1px 2px #00152b}.cabinet-instructions strong{color:#8edff2;font-size:9px;letter-spacing:1px}.cabinet-instructions small{color:#b3cfdf;font-size:9px}
#touch-controls{position:relative;inset:auto;display:none;grid-template-columns:repeat(3,29px);grid-template-rows:repeat(2,26px);gap:2px;justify-content:center;align-content:center;margin:0;pointer-events:auto}#touch-controls button{width:29px;height:26px;border:1px solid #91cce9a8;border-radius:5px;background:#0d3a67;color:#fff;font-size:15px;box-shadow:none;touch-action:none}#touch-controls button[data-dir=up]{grid-column:2}#touch-controls button[data-dir=left]{grid-row:2;grid-column:1}#touch-controls button[data-dir=down]{grid-row:2;grid-column:2}#touch-controls button[data-dir=right]{grid-row:2;grid-column:3}
#dialogue{max-height:min(calc(100% - 160px),calc(100dvh - 160px));overflow:auto}#interaction{z-index:2}#toast{z-index:6}
@media(pointer:coarse){#touch-controls{display:grid}.cabinet-instructions{max-width:120px;font-size:9px}.cabinet-instructions small{font-size:8px}#interaction-label,#interaction .keycap{display:none}#interact-button{display:block;padding:5px 8px}}
@media(max-width:760px){.cabinet-header{grid-template-columns:minmax(74px,96px) minmax(90px,1fr) auto;grid-template-areas:"brand location actions" "brand objective actions";gap:2px 9px;min-height:90px;padding:6px 12px 18px}.cabinet-brand{grid-area:brand}.cabinet-brand img{width:92px;max-height:64px}.cabinet-location{grid-area:location;padding:0;border:0}.cabinet-location>span:first-child{font-size:6px;margin-bottom:2px}.cabinet-location h1{font-size:12px}.route-compass{grid-area:objective;gap:5px;padding:0;border:0}.route-compass>span:first-child{width:15px;font-size:14px}.route-compass .route-eyebrow{font-size:6px}.route-compass b{font-size:8px}.route-compass small{font-size:7px;margin-top:0}.cabinet-actions{grid-area:actions;gap:5px}.help-button,.exit-button{height:29px;min-width:28px;padding:0 7px;font-size:10px}.help-button{font-size:13px}.cabinet-footer{height:100px;padding:18px 12px 5px}#minimap-wrap{width:130px;height:72px;max-width:44%;padding:2px}.map-label{font-size:6px}.map-label span{font-size:5px}.map-key{font-size:5px}.cabinet-control-panel{gap:7px}.cabinet-instructions{max-width:110px;font-size:8px}.cabinet-instructions strong{font-size:7px}.cabinet-instructions small{font-size:7px}#touch-controls{grid-template-columns:repeat(3,25px);grid-template-rows:repeat(2,22px)}#touch-controls button{width:25px;height:22px;font-size:12px}#dialogue{max-height:calc(100% - 190px);width:calc(100% - 16px);padding:10px 11px 8px}#dialogue p{font-size:12px}.choice{font-size:11px;padding:9px}.veil{padding:10px}.splash-card,.help-card{max-height:calc(100% - 20px);padding:18px}.splash-card h2{font-size:27px;margin:11px 0}.splash-card>p,.help-card p{font-size:11px;line-height:1.45}.splash-bottom{flex-direction:column;align-items:flex-start;gap:8px;margin:12px 0}.splash-card button,.help-card>button{padding:10px 12px}.help-card h2{font-size:23px}#toast{top:8px;font-size:9px}}
@media(max-width:370px){.cabinet-header{grid-template-columns:66px minmax(75px,1fr) auto;gap:2px 6px;padding-inline:8px}.cabinet-brand img{width:66px}.cabinet-location h1{font-size:10px}.route-compass b{font-size:7px}.route-compass small{font-size:6px}.help-button,.exit-button{height:26px;min-width:25px;padding-inline:5px;font-size:9px}.cabinet-footer{padding-inline:8px}#minimap-wrap{width:115px;height:65px}.cabinet-instructions{max-width:92px;font-size:7px}.cabinet-instructions small{font-size:6px}#touch-controls{grid-template-columns:repeat(3,22px);grid-template-rows:repeat(2,20px)}#touch-controls button{width:22px;height:20px;font-size:11px}}
@media(max-height:600px) and (min-width:761px){.cabinet-header{min-height:62px;padding-block:4px 14px}.cabinet-brand img{max-height:48px}.cabinet-footer{height:94px;padding-top:14px}#minimap-wrap{height:76px}#dialogue{max-height:calc(100% - 140px)}}
@media(max-height:500px){#dialogue{max-height:calc(100% - 100px)}.cabinet-footer{height:74px}#minimap-wrap{height:60px;width:112px}.map-key{display:none}.cabinet-header{min-height:56px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}}
