/* A single landscape surface keeps the house, map and controls in the same space. */
.mobile-landscape{--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px)}
.portrait-landscape{--safe-top:env(safe-area-inset-right,0px);--safe-right:env(safe-area-inset-bottom,0px);--safe-bottom:env(safe-area-inset-left,0px);--safe-left:env(safe-area-inset-top,0px)}
.mobile-landscape .topbar{padding:calc(12px + var(--safe-top)) calc(14px + var(--safe-right)) 0 calc(14px + var(--safe-left));align-items:flex-start}
.mobile-landscape .brand{gap:10px;font-size:13px;letter-spacing:1.8px;max-width:calc(100% - 190px)}
.mobile-landscape .brand>span:last-child{display:block}
.mobile-landscape .brand small{font-size:11px;letter-spacing:.2px;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.mobile-landscape .brand .brand-icon{width:42px;height:42px;border-radius:50%;background:#173b32c9;border:1px solid #e9e2c27a;font-size:28px;flex-shrink:0}
.mobile-landscape .top-actions{gap:0}
.mobile-landscape .top-actions #mouse-mode,.mobile-landscape .top-actions #sound,.mobile-landscape .top-actions #gestures,.mobile-landscape .top-actions #portfolio{display:none}
.mobile-landscape .top-actions #help{width:44px;height:44px;border-radius:50%;padding:0;font-size:22px;background:#173b32de;border:1px solid #ede0b987}
.mobile-landscape .location{display:none}
.mobile-landscape .objectives{display:block;left:calc(14px + var(--safe-left));right:auto;top:calc(68px + var(--safe-top));padding:0;min-width:0;width:min(330px,calc(100% - 210px));border:0;background:none;backdrop-filter:none}
.mobile-landscape .objectives>span,.mobile-landscape .objectives>div,.mobile-landscape .objectives>#tour{display:none}
.mobile-landscape .objectives .visit-task{position:relative;border:1px solid #e9e2c25c;border-radius:28px;padding:11px 34px 11px 34px;min-height:44px;background:#173b32d9;box-shadow:0 2px 15px #06150c21}
.mobile-landscape .visit-task:before{content:'◆';position:absolute;left:13px;top:12px;color:#f0d6a0;font-size:15px}
.mobile-landscape .visit-task:after{content:'›';position:absolute;right:14px;top:7px;color:#f0d6a0;font-size:25px}
.mobile-landscape .objectives .visit-task strong{font-size:12px;font-weight:500;display:block;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:20px}
.mobile-landscape .objectives .visit-task>span,.mobile-landscape .visit-task p{display:none}
.mobile-landscape .minimap-wrap{display:block;top:calc(12px + var(--safe-top));right:calc(72px + var(--safe-right));bottom:auto;width:122px;height:142px;padding:5px;border-radius:13px;background:#173b32de;border:1px solid #f0d6a059;backdrop-filter:none}
.mobile-landscape .minimap-wrap #minimap{display:block;width:110px;height:110px;border-radius:8px}
.mobile-landscape .minimap-wrap>span{display:none}
.mobile-landscape .minimap-wrap #map-button{display:block;width:100%;min-height:23px;margin:0;padding:0;font-size:9px;letter-spacing:1px;background:transparent;color:#f0d6a0}
.mobile-landscape .touch-controls{display:flex;position:absolute;left:calc(18px + var(--safe-left));right:calc(18px + var(--safe-right));bottom:calc(35px + var(--safe-bottom));align-items:flex-end;justify-content:space-between;pointer-events:none;z-index:4}
.mobile-landscape .touch-controls>*{pointer-events:auto}
.mobile-landscape #joystick{width:112px;height:112px;border-radius:50%;background:#173b3266;border:1px solid #f8efd0c2;backdrop-filter:none}
.mobile-landscape #joystick-knob{left:34px;top:34px;width:44px;height:44px;background:#e8d49bc7;border:1px solid #fff0c6;box-shadow:0 2px 10px #05110c26}
.mobile-landscape .joystick-direction{display:block;position:absolute;color:#f5f1dc93;font-size:24px;line-height:1;pointer-events:none}
.mobile-landscape .joystick-direction.north{left:45px;top:6px}
.mobile-landscape .joystick-direction.south{left:45px;bottom:5px}
.mobile-landscape .joystick-direction.east{right:8px;top:41px}
.mobile-landscape .joystick-direction.west{left:8px;top:41px}
.mobile-landscape .touch-buttons{display:grid;grid-template-columns:60px 82px;grid-template-rows:48px 48px 82px;grid-template-areas:'aim drop' 'jump use' 'run action';gap:6px 10px;align-items:end;justify-items:center}
.mobile-landscape .touch-buttons button{display:flex;flex-direction:column;align-items:center;justify-content:center;width:48px;height:48px;min-width:44px;min-height:44px;padding:0;border-radius:50%;color:#f3dfad;background:#173b32d6;border:1px solid #eed9a18c;box-shadow:0 2px 10px #06170d29;touch-action:none;backdrop-filter:none}
.mobile-landscape .touch-buttons button:hover{transform:none}
.mobile-landscape .touch-buttons button:active{background:#315b42}
.mobile-landscape .touch-buttons #touch-aim[aria-pressed=true]{background:#ddc58b;color:#173b32}
.mobile-landscape .touch-buttons #touch-run{grid-area:run;width:60px;height:60px}
.mobile-landscape .touch-buttons #touch-jump{grid-area:jump}
.mobile-landscape .touch-buttons #touch-use{grid-area:use;background:#244b3ce6}
.mobile-landscape .touch-buttons #touch-aim{grid-area:aim}
.mobile-landscape .touch-buttons #touch-drop{grid-area:drop}
.mobile-landscape .touch-buttons #touch-action{grid-area:action;width:82px;height:82px;background:#173b32e6;border:2px solid #e6ca86;color:#f4dfad}
.mobile-landscape #touch-action .control-icon{width:32px;height:32px}
.mobile-landscape .control-label{font-size:9px;font-weight:500;line-height:1.15;margin-top:2px}
.mobile-landscape #touch-action .control-label{font-size:11px;margin-top:5px}
.mobile-landscape .controls,.mobile-landscape .interact{display:none}
.mobile-landscape .touch-hint{display:block;position:absolute;z-index:3;left:0;right:0;bottom:0;margin:0;padding:7px 12px calc(7px + var(--safe-bottom));text-align:center;font-size:9px;line-height:14px;color:#f0e3c1;background:#18332bd4;pointer-events:none}
.mobile-landscape .activity-panel{left:50%;right:auto;top:auto;bottom:calc(36px + var(--safe-bottom));transform:translateX(-50%);max-width:calc(100% - 360px);pointer-events:none}
.mobile-landscape .activity-panel .game-badge{min-width:0;max-width:250px;padding:8px 12px;border-radius:14px;background:#18332bd4;backdrop-filter:none}
.mobile-landscape .game-badge strong{font-size:18px;margin:3px 0;line-height:1.1}
.mobile-landscape .game-badge .tiny-label{font-size:7px;letter-spacing:.8px}
.mobile-landscape .activity-detail{font-size:8px;line-height:1.4;margin-top:4px}
.mobile-landscape #gesture-stop{pointer-events:auto}
.mobile-landscape .welcome{top:calc(66px + var(--safe-top));left:6%;right:30%;bottom:calc(12px + var(--safe-bottom));width:auto;padding:0;max-width:540px;overflow:auto}
.mobile-landscape .welcome h1{font-size:clamp(32px,10cqh,54px);line-height:1.06;margin:14px 0;letter-spacing:-1.8px}
.mobile-landscape .welcome p{font-size:12px;line-height:1.6;margin:0}
.mobile-landscape .welcome-actions{gap:20px;margin-top:17px;align-items:center}
.mobile-landscape .welcome-actions .primary{font-size:12px;min-height:44px;padding:12px 20px}
.mobile-landscape .welcome .eyebrow{font-size:7px;letter-spacing:1.7px}
.mobile-landscape .welcome-note{font-size:8px;margin-top:18px}
.mobile-landscape .arrival{display:none}
.mobile-landscape .dialogue{left:50%;bottom:calc(25px + var(--safe-bottom));transform:translateX(-50%);width:min(650px,calc(100% - 70px));max-height:calc(100cqh - 100px - var(--safe-top) - var(--safe-bottom));padding:15px;gap:12px;backdrop-filter:none}
.mobile-landscape .dialogue p{font-size:12px;line-height:1.6;margin:7px 0}
.mobile-landscape .dialogue .tiny-label{font-size:8px}
.mobile-landscape .dialogue .question-button{font-size:10px;min-height:44px;padding:9px 11px}
.mobile-landscape .dialogue .dialogue-actions{gap:12px;align-items:center;margin-top:12px}
.mobile-landscape.dialogue-open .objectives,.mobile-landscape.dialogue-open .minimap-wrap,.mobile-landscape.dialogue-open .touch-controls,.mobile-landscape.dialogue-open .touch-hint{display:none}
.mobile-landscape .invitation{left:50%;bottom:calc(18px + var(--safe-bottom));transform:translateX(-50%);width:min(520px,calc(100% - 64px));max-height:calc(100cqh - 90px - var(--safe-top) - var(--safe-bottom));padding:18px;backdrop-filter:none}
.mobile-landscape .invitation h2{font-size:21px;margin:10px 0}
.mobile-landscape .invitation p{font-size:12px;line-height:1.65}
.mobile-landscape .invitation small{display:none}
.mobile-landscape.in-invitation .touch-controls,.mobile-landscape.in-invitation .touch-hint{display:none}
.mobile-landscape .modal{padding:calc(12px + var(--safe-top)) calc(18px + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(18px + var(--safe-left));backdrop-filter:none}
.mobile-landscape .modal-card{max-height:calc(100cqh - 24px - var(--safe-top) - var(--safe-bottom));width:min(740px,100%);padding:22px}
.mobile-landscape .modal-card h2{font-size:24px;margin-bottom:20px}
.mobile-landscape .content-grid{grid-template-columns:1fr 1fr;gap:18px}
.mobile-landscape .toast{top:calc(112px + var(--safe-top));max-width:calc(100% - 280px);padding:9px 14px;font-size:10px;background:#173b32ef;backdrop-filter:none}
.mobile-landscape .journey{top:calc(122px + var(--safe-top));left:calc(16px + var(--safe-left));max-width:230px;padding:10px;backdrop-filter:none}
.mobile-landscape .journey p{font-size:10px}
.mobile-landscape .fatal{padding:24px}
.mobile-landscape .fatal h2{font-size:24px}
@container game (max-height:350px){
  .mobile-landscape .welcome h1{font-size:30px;margin:10px 0}
  .mobile-landscape .welcome-note{display:none}
  .mobile-landscape .minimap-wrap{width:102px;height:118px}
  .mobile-landscape .minimap-wrap #minimap{width:90px;height:90px}
  .mobile-landscape .toast{top:104px}
}
