/* HD interiors and integrated Native commerce. All selectors are scoped. */
.world-layout #city.living-city-panel{top:84px;width:min(1320px,calc(100vw - 40px));max-height:calc(100dvh - 110px);border-radius:22px;background:linear-gradient(145deg,#182936f7,#0d1a24fc);box-shadow:0 28px 110px #0009;border-color:#ccb27a68}
/* Location dialogs own focus. Keep the background navigation from covering
   their controls across the isolated world-stage stacking context. */
body.world-layout:has(#city.living-city-panel:not([hidden]),#dungeon.living-dungeon:not([hidden]):not(.exploring)) .pixel-pilot-toolbar{visibility:hidden;pointer-events:none}
.world-layout #city .living-city-header{padding:18px 26px;background:linear-gradient(100deg,#1e3543c9,#12232e);border-color:#b7a67736}
.world-layout #city .living-city-header h2{font-size:calc(28px * var(--game-text-scale,1));letter-spacing:-.03em}
.world-layout #city .living-city-workspace{grid-template-columns:minmax(0,1.32fr) minmax(350px,.9fr)}
.world-layout #city .living-city-scene{align-self:stretch;background:radial-gradient(ellipse at 50% 30%,#263f46,#10212b 75%);border-color:#b7a67730;min-height:0}
.world-layout #city .living-city-scene canvas{image-rendering:auto;aspect-ratio:16/9;height:auto;width:100%}
.world-layout #city .living-city-caption{font-size:calc(12px * var(--game-text-scale,1));color:#a8bdc5;border-color:#ccb27a26;padding:10px 22px;letter-spacing:.025em}
.world-layout #city .living-city-actions{max-height:calc(100dvh - 190px);padding:20px 24px 24px;background:linear-gradient(135deg,#142733aa,#0f1d27cc);scrollbar-color:#83928a #13232c}
.world-layout #city .living-city-actions>p:first-child{color:#e8d2a4;font-size:calc(13px * var(--game-text-scale,1));padding:9px 12px;border:1px solid #c8b17d30;background:#d9b87309;border-radius:9px}
.world-layout #city .living-city-actions button{border-color:#a9b5ae40;border-radius:10px;background:linear-gradient(135deg,#253c48,#1b303c);padding:12px 14px;font:500 calc(13px * var(--game-text-scale,1))/1.45 system-ui,sans-serif;color:#eee9dc;box-shadow:inset 0 1px #ffffff06}
.world-layout #city .living-city-actions button:hover:not(:disabled){background:linear-gradient(135deg,#354e5a,#263e4b);border-color:#dfc38a}
.world-layout #city .living-city-actions button:disabled{opacity:.45}
.world-layout #city .city-commerce-eyebrow{margin:16px 0 10px;font:600 calc(10px * var(--game-text-scale,1))/1.4 system-ui,sans-serif;letter-spacing:.15em;text-transform:uppercase;color:#c9b383}
.world-layout #city .city-offers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:22px}
.world-layout #city .city-offers .city-offer{margin:0;padding:0;overflow:hidden;display:flex;flex-direction:column;min-height:0;text-align:left;background:#172a35}
.world-layout #city .city-offer.is-previewed{border-color:#d9bd82;box-shadow:0 0 0 1px #d9bd8233,0 5px 16px #0003}
.world-layout #city .city-offer-art{display:block;width:100%;height:auto;aspect-ratio:1.65;object-fit:cover;image-rendering:auto;filter:saturate(.95)}
.world-layout #city .city-offer-content{display:flex;flex-direction:column;padding:10px 12px;gap:5px;flex:1}
.world-layout #city .city-offer-name{font:500 calc(14px * var(--game-text-scale,1))/1.25 Georgia,serif;overflow-wrap:anywhere;color:#f1ddba}
.world-layout #city .city-offer-price{font-size:calc(11px * var(--game-text-scale,1));color:#bdc8ca;margin-top:auto}
.world-layout #city .city-commerce-preview{padding:0 20px 18px;border-top:1px solid #c8b17d24;background:linear-gradient(145deg,#192e37,#11232d);min-width:0}
.world-layout #city .city-commerce-preview[hidden]{display:none}
.world-layout #city .city-commerce-preview>summary{cursor:pointer;list-style:disclosure-closed;min-height:26px;padding-top:4px}
.world-layout #city .city-commerce-preview[open]>summary{list-style:disclosure-open}
.world-layout #city .city-commerce-sheet .card-sheet{display:grid;grid-template-columns:minmax(100px,.9fr) minmax(0,1fr);column-gap:18px;row-gap:8px;background:transparent;border:0;padding:0;border-radius:0;color:#e8e8df;font-family:system-ui,sans-serif;box-shadow:none}
.world-layout #city .city-commerce-sheet .card-sheet-top{grid-column:1/-1;border-bottom:1px solid #c8b17d33;padding:0 0 10px;align-items:center;margin:0}
.world-layout #city .city-commerce-sheet .card-sheet-name{font:500 calc(22px * var(--game-text-scale,1))/1.15 Georgia,serif;color:#f0d5a5;margin:0;letter-spacing:-.015em}
.world-layout #city .city-commerce-sheet .card-sheet-art{grid-column:1;grid-row:2/span 6;width:100%;height:auto;object-fit:contain;align-self:start;border-radius:8px;border:1px solid #c6b48650;image-rendering:auto}
.world-layout #city .city-commerce-sheet :is(.card-sheet-typeText,.card-sheet-rulesText,.card-sheet-flavorText,.card-sheet-stats){grid-column:2;margin:0;font-size:calc(12px * var(--game-text-scale,1));line-height:1.65;overflow-wrap:anywhere}
.world-layout #city .city-commerce-sheet .card-sheet-typeText{color:#c4ad82;font-weight:600}
.world-layout #city .city-commerce-sheet .card-sheet-flavorText{color:#9eb2ba;font-style:italic;font-size:calc(11px * var(--game-text-scale,1))}
.world-layout #city .city-commerce-sheet .card-sheet-cost-note{font-size:calc(10px * var(--game-text-scale,1));color:#a8b9bc}
.world-layout #city .city-commerce-sheet .card-sheet-expand{margin:12px 0 0;display:inline-block;width:auto;min-height:36px;padding:8px 12px;font-size:calc(11px * var(--game-text-scale,1));background:#233a46;border-color:#afbbaf44;color:#d8dfd9;border-radius:8px}
.world-layout #city .city-commerce-price{font:500 calc(12px * var(--game-text-scale,1))/1.5 system-ui,sans-serif;margin:12px 0 0;color:#d8bd8c}
.world-layout #city.city-commerce-confirm .city-commerce-preview{padding:0 0 18px;background:transparent;border:0}
.world-layout #city.city-commerce-confirm .city-commerce-eyebrow{margin-top:0}
.world-layout #city .living-city-actions .city-commerce-primary{background:linear-gradient(115deg,#e8c78e,#c9a36b);border-color:#eed7ab;color:#13212b;font-weight:700;text-align:center;box-shadow:0 5px 18px #0003}
.world-layout #city .living-city-actions .city-commerce-primary:hover:not(:disabled){background:linear-gradient(115deg,#f2d6a3,#dcba80)}
.world-layout #city .living-city-actions .city-commerce-primary:disabled{opacity:.5;color:#13212b}
@media(max-width:1000px){.world-layout #city.living-city-panel{top:84px;width:calc(100vw - 24px);max-height:calc(100dvh - 100px)}.world-layout #city .living-city-workspace{grid-template-columns:minmax(0,1fr) minmax(310px,1fr)}.world-layout #city .living-city-actions{padding:16px}.world-layout #city .city-commerce-preview{padding:0 16px 16px}.world-layout #city .city-commerce-sheet .card-sheet{column-gap:12px;grid-template-columns:minmax(90px,.8fr) minmax(0,1fr)}.world-layout #city .city-commerce-sheet .card-sheet-name{font-size:calc(20px * var(--game-text-scale,1))}}
@media(max-width:700px){.world-layout #city.living-city-panel{top:84px;width:calc(100vw - 16px);max-height:calc(100dvh - 100px);border-radius:14px;overflow:auto}.world-layout #city .living-city-header{padding:14px 18px}.world-layout #city .living-city-header h2{font-size:calc(24px * var(--game-text-scale,1))}.world-layout #city .living-city-workspace{display:flex;flex-direction:column;overflow:visible}.world-layout #city .living-city-scene canvas{height:auto;min-height:0;aspect-ratio:16/9}.world-layout #city .living-city-actions{max-height:none;overflow:visible;padding:14px 16px}.world-layout #city .living-city-caption{padding:8px 16px}.world-layout #city .city-offers{gap:9px;margin-bottom:16px}.world-layout #city .city-commerce-sheet .card-sheet-art{max-height:220px}.world-layout #city .city-commerce-price{font-size:calc(11px * var(--game-text-scale,1))}.world-layout #city.city-commerce-confirm .living-city-scene canvas{max-height:23dvh;object-fit:contain}}
@media(prefers-reduced-motion:reduce){.world-layout #city *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:700px){.world-layout #city .city-commerce-preview>summary{margin-bottom:0;padding:3px 0 0}.world-layout #city .city-commerce-preview>summary::after{display:block;content:attr(data-preview-name);font:500 calc(15px * var(--game-text-scale,1))/1.4 Georgia,serif;color:#e9d2aa;text-transform:none;letter-spacing:0;margin:8px 0 0}.world-layout #city .city-commerce-preview[open]>summary{margin-bottom:14px}}
@media(max-width:650px){body.world-layout:has(#world-card-drawer:not([hidden])) #city.living-city-panel{max-height:calc(65dvh - 120px)}}
