/* v0.13: the city is the primary surface; actions sit in a compact cream/gold dock. */
body[data-screen=city] .play-panel{left:50%;right:auto;transform:translateX(-50%);width:min(430px,45%);bottom:18px;overflow:visible}
body[data-screen=city][data-turn=CHOOSE_DIE] .play-panel{width:min(460px,48%)}
body[data-screen=city] .turn-card{border:1px solid #ddc47f;border-radius:21px;background:#fffbee;box-shadow:0 5px 18px #123c3526}
body[data-screen=city] .turn-top{padding:6px 14px 3px;font-size:10px;line-height:1.5}
body[data-screen=city] .turn-dots{display:none}
body[data-screen=city] .turn-content{padding:7px 12px}
body[data-screen=city] .turn-content:has(.roll-button){padding:4px 10px 8px}
body[data-screen=city] .roll-button{background:linear-gradient(#ffdc72,#edb22d 56%,#b3770b);border:2px solid #ffedac;border-radius:18px;box-shadow:inset 0 2px #fff7cd,0 3px 0 #a87a28;color:#fffef0;text-shadow:0 1px #875900;min-height:54px;font-size:24px}
body[data-screen=city] .roll-button:hover:not(:disabled){background:linear-gradient(#ffe697,#f1bf45,#bc851c)}
body[data-screen=city] .focus-row{padding:3px 13px 5px;font-size:9px;background:none;border:0}.focus-row b{font-size:11px}
body[data-screen=city][data-turn=CHOOSE_DIE] .turn-content>h2,body[data-screen=city][data-turn=CHOOSE_DIE] .focus-row{display:none}
.route-tools{margin-top:4px;text-align:left}.route-tools summary{list-style:none;display:flex;align-items:center;gap:9px;min-height:36px;cursor:pointer;font-size:11px;color:#537668;border-top:1px solid #e4dcc3;padding:5px 2px}.route-tools summary::-webkit-details-marker{display:none}.route-tools summary b{font-size:10px;flex:1;text-align:right;color:#087f72}.route-tools summary i{font-style:normal}.route-tools[open] summary i{transform:rotate(180deg)}
.route-tools-body{position:absolute;bottom:calc(100% + 8px);left:0;right:0;background:#fffbed;border:1px solid #d9c790;border-radius:17px;padding:12px;box-shadow:0 4px 18px #143d3526;max-height:min(320px,40svh);overflow:auto;z-index:12}.route-tools-body .chip{min-height:44px}.route-tools-body .secondary{width:100%;min-height:40px;margin-top:9px;font-size:12px}.route-tools-body .text-button{min-height:36px;font-size:12px}.route-tools-body .route-row{margin-top:8px}
body[data-screen=city] .city-metrics{max-width:310px;width:27%;padding:12px 4px;bottom:18px;left:18px;border-radius:17px;backdrop-filter:none;background:#fffbee}
body[data-screen=city] .city-metrics .icon{display:none}body[data-screen=city] .city-metrics span{font-size:9px}body[data-screen=city] .city-metrics b{font-size:18px}body[data-screen=city] .map-bottom{display:none}
body[data-screen=city] .map-toolbar,body[data-screen=city] .world-controls button,.rivals-hud{backdrop-filter:none}
/* Selection uses original lightweight model thumbnails, with real rule-derived prices. */
.modal-backdrop:has(.property-modal){justify-content:flex-end;padding:14px;background:linear-gradient(90deg,transparent 28%,#213c3524);backdrop-filter:none}
.property-modal{width:min(680px,52vw);max-width:none;max-height:calc(100dvh - 28px);padding:20px 20px 0;border:1px solid #d8bd70;border-radius:24px;background:#fffcf1;box-shadow:0 10px 30px #123c3524;overscroll-behavior:contain}
.property-modal .modal-header{position:sticky;top:-20px;z-index:3;background:#fffcf1;padding:12px 0;margin-top:-10px;margin-bottom:2px}.property-modal .modal-header h2{font-size:25px}.property-location{display:flex;align-items:center;gap:7px;color:#43756b;font-size:12px;margin-bottom:12px}.property-location .icon{width:18px;height:18px}
.business-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;overflow:auto;padding:2px 0 6px}.business-option.type-tab{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;white-space:normal;min-width:0;background:#fffdf4;border:1px solid #dfdfc9;border-radius:15px;padding:9px;color:#165b52;text-align:left}.business-option.type-tab.selected{background:linear-gradient(#eef5df,#fffdf3);border:2px solid #04a58c;padding:8px;color:#115e53}.business-option .building-render{height:130px;width:100%;object-fit:contain;display:block;filter:none}.business-option b{font-size:17px}.business-option small{display:block;color:#6c8176;font-size:10px;min-height:22px}.business-option.type-tab.selected small{color:#52866e}.business-option strong{font-size:20px;color:#0a6055}.business-income{font-size:11px;color:#168975}.business-check{position:absolute;right:8px;top:7px;border-radius:50%;min-width:22px;min-height:22px;background:#069f87;color:#fff;display:grid;place-items:center;font-size:13px}.business-check:empty{display:none}
.growth-track{margin:8px 0;border-radius:13px;background:#f3f2df;padding:10px 12px}.growth-track summary{cursor:pointer;min-height:30px;font-weight:600;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:8px}.growth-track summary span{font-size:10px;font-weight:400;color:#6e8274}.growth-models{display:flex;align-items:center;gap:7px;padding:10px 0}.growth-models>div{flex:1;text-align:center}.growth-models img{height:105px;width:100%;object-fit:contain;display:block}.growth-models b,.growth-models small{display:block;font-size:11px}.growth-models small{color:#708a78;font-size:10px}
.upgrade-preview{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:12px}.upgrade-preview img{width:40%;height:170px;object-fit:contain}.upgrade-preview>b{width:100%;text-align:center;font-size:19px}
.purchase-costs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;border:1px solid #dfdbc0;border-radius:13px;padding:12px 4px;gap:0;background:#fffdf4}.purchase-costs>div{padding:0 8px;border-right:1px solid #e4dfcc}.purchase-costs>div:last-child{border:0}.purchase-costs small{display:block;color:#6b8376;font-size:10px}.purchase-costs b{display:block;font-size:18px;margin-top:5px;color:#075e54}.purchase-costs .remaining b{color:#009a83}.purchase-costs .insufficient b{color:#b76536}
.property-actions{position:sticky;bottom:0;z-index:3;background:#fffcf1;display:flex;gap:9px;padding:12px 0 14px}.property-actions button{flex:1;min-width:0;min-height:46px;margin:0!important;font-size:14px!important}.property-actions .primary{background:linear-gradient(#ffe791,#ffc649);border:1px solid #caa14c;color:#234f42;border-radius:13px;box-shadow:inset 0 2px #fff3c4,0 3px 7px #9b752320}.property-actions .secondary{border:1px solid #c7d4c6;border-radius:13px}.property-modal .notice{margin:8px 0;padding:9px;font-size:12px}.property-modal .modal-note{font-size:10px;margin:0 0 10px}
@media(max-width:900px){
 .topbar{height:52px!important;padding:0 8px!important}.topbar .wordmark{font-size:17px;letter-spacing:-.5px}.wordmark span{font-size:6px!important;letter-spacing:1.5px!important}.top-stats{gap:6px!important}.topbar .wallet{padding:4px 7px;border-radius:18px;gap:5px}.wallet small{display:none}.wallet strong{font-size:17px}.coin-symbol{width:25px;height:25px;font-size:15px}.topbar .avatar{height:32px;width:32px;min-width:32px;box-shadow:0 0 0 1px #d4b75b}.level-medal{height:28px;width:24px;font-size:12px}.music-button{width:32px;min-width:32px;height:32px}.workspace{padding-bottom:calc(60px + env(safe-area-inset-bottom,0px))}.sidebar{height:calc(60px + env(safe-area-inset-bottom,0px));padding:0 4px env(safe-area-inset-bottom,0px);backdrop-filter:none;background:#fffbed}.sidebar .nav-item{gap:2px;padding:6px 2px;border-radius:10px}.sidebar .nav-item .icon{height:20px;width:20px}.sidebar .nav-item span{font-size:9px}
 body[data-screen=city] .map-wrap{height:calc(100svh - 112px - env(safe-area-inset-bottom,0px))!important;min-height:0!important}
 body[data-screen=city] .map-toolbar{top:8px;left:8px;right:auto;max-width:calc(100% - 16px);min-height:34px;padding:5px 9px;gap:7px;border-radius:18px;box-shadow:0 2px 8px #173b3520}.map-toolbar .map-title span{display:none}.map-toolbar .map-title>.icon{height:20px;width:20px}.map-toolbar .map-title b{font-size:12px}.map-toolbar .city-switch{padding:4px 7px;min-height:26px;font-size:10px}.map-toolbar [data-action=city-plan]{display:none}.map-toolbar .weather{display:none}
 body[data-screen=city] .rivals-hud{left:8px;top:50px;padding:4px 8px;border-radius:14px;gap:5px;min-height:32px}.rivals-hud .rival-faces img{width:22px;height:22px}.rivals-hud b{font-size:9px}.rivals-hud small{font-size:8px;margin-top:0}
 body[data-screen=city] .world-controls{top:50px;right:8px;left:auto;display:grid;grid-template-columns:repeat(2,32px);gap:4px}.world-controls button{width:32px!important;height:32px!important;min-height:32px;border-width:1px!important;font-size:18px!important;box-shadow:0 1px 4px #123b3520!important}
 body[data-screen=city] .city-metrics{display:none!important}
 body[data-screen=city] .play-panel,body[data-screen=city][data-turn=CHOOSE_DIE] .play-panel{left:8px;right:8px;bottom:8px;transform:none;width:auto;max-height:none;overflow:visible}
 body[data-screen=city] .turn-card{border-radius:18px;background:#fffbed;box-shadow:0 3px 12px #173b3526}.turn-card .turn-dots{display:none}body[data-screen=city] .turn-top{padding:5px 10px 2px;font-size:9px}body[data-screen=city] .turn-content{padding:4px 8px 6px}body[data-screen=city] .focus-row{padding:2px 10px 4px;font-size:8px}body[data-screen=city] .focus-row b{font-size:10px}
 body[data-screen=city][data-turn=CHOOSE_DIE] .turn-content{padding:4px 8px 3px}body[data-screen=city][data-turn=CHOOSE_DIE] .die-choice{grid-template-columns:30px minmax(0,1fr);gap:1px 5px;padding:5px;min-height:49px;border-radius:11px;min-width:0}body[data-screen=city][data-turn=CHOOSE_DIE] .die-choice .die{width:28px;height:28px;padding:5px;gap:2px;border-radius:8px;margin:0;box-shadow:0 2px 0 #c7b98a}body[data-screen=city][data-turn=CHOOSE_DIE] .die-choice b{font-size:10px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body[data-screen=city][data-turn=CHOOSE_DIE] .die-choice small{font-size:9px;line-height:1.3}.die-choice .icon{height:11px;width:11px}
 .route-tools{margin-top:2px}.route-tools summary{min-height:34px;font-size:10px;padding:3px 1px;gap:4px}.route-tools summary b{font-size:9px}.route-tools-body{max-height:34svh;padding:10px}.route-tools-body .branch-options{justify-content:flex-start}.route-tools-body .route-row{display:flex;justify-content:center}
 body[data-screen=city] .roll-button{min-height:48px;font-size:22px;border-radius:15px}body[data-screen=city] .roll-button .icon{width:25px;height:25px}body[data-screen=city] .turn-content:has(.roll-button){padding:4px 8px 7px}
 body[data-screen=city][data-turn=TILE_DECISION] .turn-content{display:flex!important;align-items:center;flex-wrap:wrap;gap:4px 7px;padding:5px 8px!important}body[data-screen=city][data-turn=TILE_DECISION] .turn-content h2{font-size:12px!important;flex:1 0 100%;margin:0!important}body[data-screen=city][data-turn=TILE_DECISION] .turn-content>p{display:none}body[data-screen=city][data-turn=TILE_DECISION] .turn-content>.primary,body[data-screen=city][data-turn=TILE_DECISION] .turn-content>.secondary{min-height:40px!important;flex:1;margin:0!important;font-size:12px!important;padding:7px!important}body[data-screen=city][data-turn=TILE_DECISION] .event-symbol{display:none}body[data-screen=city][data-turn=TILE_DECISION] .event-amount{font-size:16px;line-height:1.4}
 .movement-status,.roll-status{top:10px;font-size:12px;padding:7px 14px}
 .modal-backdrop:has(.property-modal){align-items:flex-end;padding:0;background:#153a3512}.property-modal{width:100%;max-height:62svh;border-radius:21px 21px 0 0;padding:10px 12px 0;box-shadow:0 -3px 15px #123b3526}.property-modal .modal-header{top:-10px;margin-top:-5px;padding:7px 0}.property-modal .modal-header h2{font-size:19px}.property-location{font-size:10px;margin-bottom:7px;gap:4px}.business-options{display:flex;gap:7px;scroll-snap-type:x proximity}.business-option.type-tab{flex:0 0 112px;padding:7px;scroll-snap-align:start;min-height:165px}.business-option.type-tab.selected{padding:6px}.business-option .building-render{height:75px;min-height:75px}.business-option b{font-size:13px}.business-option small{font-size:9px;min-height:17px}.business-option strong{font-size:16px}.business-income{font-size:9px}.business-check{min-width:18px;min-height:18px;font-size:10px;top:5px;right:5px}.growth-track{margin:5px 0;padding:5px 8px}.growth-track summary{font-size:11px;min-height:32px}.growth-models img{height:65px}.purchase-costs{padding:7px 0}.purchase-costs>div{padding:0 5px}.purchase-costs small{font-size:8px}.purchase-costs b{font-size:13px;margin-top:3px}.property-actions{padding:8px 0 10px;gap:6px}.property-actions button{min-height:44px!important;padding:7px 5px!important;font-size:11px!important}.property-modal .modal-note{font-size:8px}.upgrade-preview img{height:100px}.upgrade-preview>b{font-size:14px}
}
@media(max-width:360px){.topbar .wordmark{font-size:15px}.top-stats{gap:5px!important}.topbar .wallet{padding:3px 5px}.wallet strong{font-size:16px}.coin-symbol{width:23px;height:23px}.route-tools summary span{font-size:9px}}
@media(max-width:900px) and (orientation:landscape){body[data-screen=city] .play-panel,body[data-screen=city][data-turn=CHOOSE_DIE] .play-panel{left:50%;right:10px;bottom:6px}.rivals-hud{display:none!important}}

body[data-screen=city] .turn-card{overflow:visible}
body.property-open[data-screen=city] .map-toolbar,body.property-open[data-screen=city] .rivals-hud,body.property-open[data-screen=city] .world-controls,body.property-open[data-screen=city] .play-panel{visibility:hidden;pointer-events:none}
@media(max-width:900px){.route-tools summary{min-height:44px}}
/* Solid panels avoid costly backdrop captures above a live WebGL canvas. */
body[data-screen=city] .turn-card{backdrop-filter:none}
body.property-open[data-screen=city] .play-panel{display:none!important}
@media(max-width:900px){body[data-screen=city] .workspace{padding-bottom:calc(60px + env(safe-area-inset-bottom,0px))}}

.property-city-snapshot{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;z-index:1}
@media(min-width:901px){.modal-backdrop:has(.property-modal){padding-top:116px;align-items:flex-end}.property-modal{max-height:calc(100dvh - 130px)}}

.purchase-balance{display:none}@media(max-width:900px){.property-actions{flex-wrap:wrap}.purchase-balance{display:flex;justify-content:space-between;flex:1 0 100%;font-size:10px;color:#537b6a;line-height:1.5}.purchase-balance b{color:#008672}.purchase-balance .insufficient{color:#ac5934}}
