/* The city itself is the menu. No old rectangular place cards remain here. */
html body .city-experience.is-lobby{display:block;padding:0;max-width:1600px}
html body .city-experience.is-lobby .room-lobby{display:block;position:absolute;inset:58px 0 68px;padding:0;margin:0;min-height:0;overflow:hidden;z-index:0}
.city-panorama{position:absolute;inset:0;display:block;pointer-events:none}
.city-panorama img{display:block;width:100%;height:100%;object-fit:fill}
.city-light{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#0d172342,transparent 22%,transparent 88%,#0b142b30)}
html body .city-experience.is-lobby .palace-header{position:absolute;inset:0 0 auto;height:58px;margin:0;z-index:8}
html body .city-experience.is-lobby .palace-upper{position:absolute;inset:68px 22px auto;margin:0;padding:0;z-index:5;pointer-events:none}
html body .city-experience.is-lobby .palace-upper>button{pointer-events:auto}
html body .city-experience.is-lobby .palace-footer{position:absolute;inset:auto 0 0;height:68px;margin:0;z-index:6}
html body .city-experience.is-lobby :is(.room-location,.palace-scene,.residence-regalia,.palace-office-ornament){display:none!important}
html body .city-experience.is-lobby .room-guide,html body .city-experience.is-lobby .palace-authority{z-index:6}
html body .city-experience.is-lobby .room-door.city-building{position:absolute;left:var(--site-x);top:var(--site-y);width:var(--site-w);height:var(--site-h);transform:translate(-50%,-50%);max-width:none;min-width:0;min-height:44px;margin:0;padding:0;display:block;border:0!important;border-radius:0;background:transparent;box-shadow:none!important;overflow:visible;isolation:auto;z-index:2}
html body .city-experience.is-lobby .room-door.city-building:after{display:none}
.city-plaque{position:absolute;left:50%;top:24%;transform:translate(-50%,-50%);min-width:150px;display:grid;gap:5px;padding:10px 18px;border:3px double #dbc18b;background:linear-gradient(135deg,#111e2cf2,#091521ee);box-shadow:inset 0 0 0 3px #0b101a,0 4px 10px #0009;color:#f5e4bb;text-align:center}
html body .city-building .city-plaque strong{font:600 23px/1.2 var(--serif);letter-spacing:1px;white-space:nowrap;width:auto;align-self:auto}
.city-plaque strong i{font:500 21px/1 var(--serif);color:#e2c891;margin-right:6px}
html body .city-building .city-plaque small{font:500 13px/1.3 var(--serif);color:#e6d2ad;align-self:auto}
.city-door-light{position:absolute;inset:17% 15% 8%;opacity:0;border-bottom:2px solid #a4d9ff;box-shadow:0 12px 20px -15px #a4d9ff;pointer-events:none}
.city-building:focus-visible .city-door-light{opacity:1}
.city-building:focus-visible .city-plaque{outline:2px solid #a4d9ff;outline-offset:4px}
.city-standard{position:absolute;display:grid;place-items:center;pointer-events:none;z-index:1;width:30px;height:74px;padding-bottom:9px;background:linear-gradient(90deg,var(--standard),var(--standard-light),var(--standard));border:2px solid #cfb379;clip-path:polygon(0 0,100% 0,100% 86%,50% 100%,0 86%);font:500 27px/1 var(--serif);color:#f5e4b9;text-shadow:1px 2px 2px #0008;box-shadow:3px 4px 5px #0006}
.city-back{position:absolute;right:24px;top:234px;z-index:7;min-height:40px;padding:7px 16px;border:3px double #bfa16b;background:#101e30eb;color:#f6e7c9;font:600 14px/1.2 var(--serif)}
.city-experience.is-lobby .city-back{display:none}
/* Interior action rooms keep the same header/HUD/footer frame as the city. */
@media(min-width:701px){
 html body .city-experience:not(.is-lobby):not(.is-room-result):not([data-facility=map]):not([data-facility=archive]){grid-template-columns:minmax(0,1fr);grid-template-rows:58px 182px 48px minmax(0,1fr) 68px;padding:0;gap:0}
 html body .city-experience:not(.is-lobby):not(.is-room-result):not([data-facility=map]):not([data-facility=archive]) .palace-upper{grid-column:1;margin:0 22px;padding-top:10px}
 html body .city-experience:not(.is-lobby):not(.is-room-result):not([data-facility=map]):not([data-facility=archive]) :is(.palace-header,.palace-footer){margin:0;grid-column:1}
 html body .city-experience:not(.is-lobby):not(.is-room-result):not([data-facility=map]):not([data-facility=archive]) .room-location{grid-column:1;justify-content:center}
 html body .city-experience:not(.is-lobby):not(.is-room-result):not([data-facility=map]):not([data-facility=archive]) .palace-rooms{display:flex!important}
 html body .city-experience:not(.is-lobby):not(.is-room-result):not([data-facility=map]):not([data-facility=archive]) .palace-desk{grid-column:1;width:min(1040px,92%);padding:0 12px}
 html body .city-experience .palace-command:not([data-management]){--order-width:min(280px,calc((100cqw - 56px)/3),calc(100cqh * .65));height:calc(var(--order-width)/.65);padding:17px 15px 32px;grid-template-rows:minmax(48px,1fr) 38px 25px 20px 18px 18px!important;gap:5px}
 html body .city-experience .palace-command:not([data-management]) .palace-command-art{min-height:0}
 html body .city-experience .palace-command:not([data-management])>.palace-command-art{grid-row:1}
 html body .city-experience .palace-command:not([data-management])>strong{grid-row:2}
 html body .city-experience .palace-command:not([data-management])>.palace-command-rate{grid-row:3}
 html body .city-experience .palace-command:not([data-management])>.command-paths{grid-row:4}
 html body .city-experience .palace-command:not([data-management])>.palace-command-growth{grid-row:5}
 html body .city-experience .palace-command:not([data-management])>small{grid-row:6}
}
@media(min-width:701px) and (max-height:760px){
 html body .city-experience:not(.is-lobby):not(.is-room-result):not([data-facility=map]):not([data-facility=archive]){grid-template-rows:50px 170px 34px minmax(0,1fr) 54px}
 .city-back{top:202px;min-height:30px;padding:4px 12px}
 html body .city-experience.is-lobby .palace-header{height:50px}
 html body .city-experience.is-lobby .palace-upper{top:60px}
 html body .city-experience.is-lobby .room-lobby{top:50px;bottom:54px}
 html body .city-experience.is-lobby .palace-footer{height:54px}
 .city-plaque{min-width:130px;padding:7px 11px}
 html body .city-building .city-plaque strong{font-size:19px}
}
@media(max-width:700px){
 html body .city-experience.is-lobby .palace-header{height:44px;padding:0 10px}
 html body .city-experience.is-lobby .palace-upper{inset:51px 10px auto;display:block}
 html body .city-experience.is-lobby .palace-upper>.room-guide{top:10px;right:12px}
 html body .city-experience.is-lobby .room-lobby{inset:44px 0 54px}
 html body .city-experience.is-lobby .palace-footer{height:54px;padding:5px 8px}
 html body .city-experience.is-lobby .palace-story{display:none}
 html body .city-experience.is-lobby .room-door.city-building{width:46%;height:22%;left:var(--mobile-x,var(--site-x));top:var(--mobile-y,var(--site-y))}
 .city-building.door-court{--mobile-x:50%;--mobile-y:30%}
 .city-building.door-military{--mobile-x:24%;--mobile-y:51%}
 .city-building.door-guests{--mobile-x:77%;--mobile-y:51%}
 .city-building.door-archive{--mobile-x:24%;--mobile-y:79%}
 .city-building.door-map{--mobile-x:77%;--mobile-y:79%}
 .city-plaque{top:24%;min-width:100px;max-width:150px;padding:7px 9px;gap:3px;border-width:3px}
 html body .city-building .city-plaque strong{font-size:17px;letter-spacing:0}
 .city-plaque strong i{font-size:15px;margin-right:3px}
 html body .city-building .city-plaque small{font-size:11px}
 .city-standard{width:17px;height:46px;font-size:17px;border-width:1px}
 .city-back{top:auto;right:9px;bottom:110px;min-height:28px;font-size:11px;padding:4px 7px}
 .city-experience:not(.is-lobby) .city-back{display:none}
}

.city-relocation{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);z-index:4;display:grid;gap:3px;min-width:160px;min-height:48px;padding:8px 18px;border:1px solid #c9a665;background:#101f2ee8;color:#f5dfb4;text-align:center}.city-relocation small{font-size:12px;color:#c4d5e0}.city-back{left:24px;right:auto}
@media(max-width:700px) and (orientation:portrait){.city-relocation{bottom:4px;padding:4px 12px;min-height:42px}.city-relocation strong{font-size:14px}.city-relocation small{font-size:11px}}

.city-outside-toggle{position:absolute;right:22px;bottom:18px;z-index:4;min-height:44px;padding:10px 20px;border:1px solid #bfa66f;background:#142638eb;color:#f3dfbb;font-size:17px}.city-outskirts-places{display:none}.is-outskirts .city-building,.is-outskirts .city-standard,.is-outskirts .city-smoke-source,.is-outskirts .city-lantern-glow{display:none!important}.is-outskirts .city-outskirts-places{position:absolute;inset:30% 10% 22%;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:24px;z-index:3}.city-outskirts-places h2{width:100%;text-align:center;font-size:30px;text-shadow:0 2px 7px #000}.city-outskirts-places button{display:grid;place-items:center;gap:12px;width:220px;height:150px;border:2px solid #bb9b5f;background:#13283ce8;color:#f7e4bc;box-shadow:inset 0 0 0 5px #192a39,inset 0 0 0 6px #8c784f}.city-outskirts-places i{font-size:30px}.city-outskirts-places strong{font-size:22px}.city-outskirts-places small{font-size:14px;color:#c6d7e1}.is-outskirts .city-panorama img{object-fit:cover}
@media(max-width:700px) and (orientation:portrait){.city-relocation{left:8px;transform:none;min-width:150px}.city-outside-toggle{right:8px;bottom:4px;min-height:48px;padding:7px 12px;font-size:15px}.is-outskirts .city-outskirts-places{inset:32% 5% 15%;gap:14px}.city-outskirts-places button{width:44%;height:145px;gap:5px}.city-outskirts-places h2{font-size:23px}.city-outskirts-places strong{font-size:18px}}

.palace-sheet:has(.residence-picker){width:min(620px,calc(100vw - 24px))!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px)!important}.palace-sheet:has(.residence-picker) .palace-sheet-body{padding:16px!important;min-height:0}.residence-picker{display:grid;gap:12px}.residence-picker>p{margin:0;line-height:1.5}.residence-picker label{display:flex;align-items:center;gap:14px;color:#efd9ad}.residence-picker select{flex:1;min-width:0;min-height:44px;background:#132a3e;color:#fff0ce;border:1px solid #a98e5e;font-size:18px;padding:7px 12px}.residence-picker-art{display:block;width:100%;height:150px;object-fit:cover;border:1px solid #927c57}.residence-picker-benefits{padding:12px;background:#20384a;border-left:3px solid #bba16a;line-height:1.6;font-size:16px;color:#e0ecf2}.residence-picker-cost{font-size:17px;color:#e0bc8c}.residence-picker-reason{font-size:14px;color:#c4ced9}.residence-picker .palace-confirm{width:100%;min-height:46px}@media(max-width:700px){.residence-picker{gap:9px}.residence-picker-art{height:110px}.residence-picker-benefits{font-size:14px;padding:10px}.residence-picker-cost{font-size:15px}}
/* Keep the court sign below the HUD; reserve real rows for outdoor labels. */
@media(min-width:701px){
 html body .city-experience.is-lobby .door-court .city-plaque{top:70%}
}
html body .city-experience .city-outskirts-places button{
 box-sizing:border-box;padding:16px 12px;grid-template-rows:34px 30px 22px;
 align-content:center;justify-items:center;gap:8px;min-width:0;
}
html body .city-experience .city-outskirts-places button :is(i,strong,small){
 position:static;display:block;margin:0;padding:0;width:auto;height:auto;
 min-height:0;max-width:100%;transform:none;white-space:nowrap;line-height:1.3;
}
html body .city-experience .city-outskirts-places button i{font-size:28px}
html body .city-experience .city-outskirts-places button strong{font-size:21px}
html body .city-experience .city-outskirts-places button small{font-size:14px}
@media(max-width:700px){
 html body .city-experience .city-outskirts-places button{padding:14px 8px;grid-template-rows:30px 26px 20px;gap:7px}
 html body .city-experience .city-outskirts-places button strong{font-size:17px}
 html body .city-experience .city-outskirts-places button small{font-size:12px}
}
.city-building.door-court .city-plaque{transform:translate(-50%,calc(-50% + var(--hud-offset,0px)))}
.city-home{position:absolute;left:51%;top:69%;transform:translate(-50%,-50%);z-index:3;display:grid;grid-template-columns:32px auto;align-items:center;gap:3px 8px;padding:10px 16px;border:3px double #d0b47a;background:#142535ee;color:#f8e6c4;min-height:58px;text-align:center}.city-home i{grid-row:1/3;font:26px/1 var(--serif)}.city-home strong{font:600 19px/1.3 var(--serif);white-space:nowrap}.city-home small{font:13px/1.3 var(--serif);color:#d5c4a5}.is-outskirts .city-home{display:none}.home-unavailable{padding:24px;background:#142535e8;border:1px solid #b99b65;font-size:18px}
@media(max-width:700px){.city-home{top:58%;left:50%;padding:7px 12px;min-height:48px}.city-home strong{font-size:15px}.city-home small{font-size:11px}.city-home i{font-size:22px}}
/* Every interior keeps the facility navigation, including action rooms. */
@media(min-width:701px){
 html body .city-experience:not(.is-lobby):not(.is-room-result):not([data-facility=map]):not([data-facility=archive]){grid-template-columns:124px minmax(0,1fr)}
 html body .city-experience:not(.is-lobby):not(.is-room-result):not([data-facility=map]):not([data-facility=archive]) .palace-upper{grid-column:1/-1}
 html body .city-experience:not(.is-lobby):not(.is-room-result):not([data-facility=map]):not([data-facility=archive]) :is(.palace-header,.palace-footer){grid-column:1/-1}
 html body .city-experience:not(.is-lobby):not(.is-room-result):not([data-facility=map]):not([data-facility=archive]) :is(.room-location,.palace-desk){grid-column:2}
 html body .city-experience:not(.is-lobby):not(.is-room-result) .palace-rooms{display:flex!important;grid-column:1;grid-row:4;align-self:center;gap:6px;padding:0 8px}
 html body .city-experience:not(.is-lobby):not(.is-room-result) .palace-room{min-height:48px;height:auto;padding:5px 7px}
 html body .city-experience:not(.is-lobby) .city-back{display:none}
}


/* Fixed facility tiles: identical dimensions in every interior. */
@media(min-width:701px){
 html body .city-experience:not(.is-lobby):not(.is-room-result),
 html body .city-experience:not(.is-lobby):not(.is-room-result):not([data-facility=map]):not([data-facility=archive]){grid-template-columns:176px minmax(0,1fr)}
 html body .city-experience:not(.is-lobby):not(.is-room-result) .palace-rooms{
  --facility-height:clamp(58px,8vh,76px);position:absolute;inset:230px auto 76px 26px;
  width:140px;height:auto!important;margin:0;padding:0!important;display:flex!important;
  flex-direction:column;justify-content:center;align-items:stretch;gap:6px;transform:none;z-index:7;
 }
 html body .city-experience:not(.is-lobby):not(.is-room-result) .palace-rooms>button{
  box-sizing:border-box;position:relative;inset:auto!important;transform:none!important;
  flex:0 0 var(--facility-height);width:140px!important;min-width:140px!important;max-width:140px!important;
  height:var(--facility-height)!important;min-height:var(--facility-height)!important;max-height:var(--facility-height)!important;
  margin:0!important;padding:9px 11px!important;display:grid;grid-template-columns:28px minmax(0,1fr);
  align-items:center;justify-content:center;gap:8px;
 }
 html body .city-experience:not(.is-lobby):not(.is-room-result) .palace-rooms>button strong{font-size:17px;line-height:1.3;white-space:nowrap}
 html body .city-experience:not(.is-lobby):not(.is-room-result) .palace-rooms>button small{font-size:11px;line-height:1.3;white-space:nowrap}
}
@media(min-width:701px){html body .city-experience:not(.is-lobby):not(.is-room-result) .palace-rooms{grid-area:auto!important;align-self:auto!important;justify-self:auto!important}}
