/* Domiki v1.15.0.4 — compact mobile toolbar + metro 2D/3D polish */
@media (max-width:700px){
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.metro-controls,
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.sunny-controls{
   grid-template-columns:46px minmax(76px,.95fr) 36px 36px 36px!important;
   grid-template-rows:38px!important;
   flex:0 0 40px!important;min-height:40px!important;max-height:40px!important;
   padding:2px 5px!important;gap:4px!important;
 }
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.metro-controls select,
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.sunny-controls select{
   height:38px!important;min-height:38px!important;padding:2px 2px!important;font-size:11.5px!important;border-radius:9px!important;
 }
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.metro-controls #metroLots,
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.sunny-controls #sunnyLots,
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.metro-controls #metroHelp,
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.sunny-controls #sunnyHelp,
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .compact-more-btn{
   width:36px!important;min-width:36px!important;height:38px!important;min-height:38px!important;border-radius:9px!important;
 }
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings{
   padding:3px 5px 4px!important;gap:3px!important;
 }
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .compact-map-controls{
   min-height:32px!important;height:32px!important;flex:0 0 32px!important;gap:4px!important;
 }
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .compact-map-controls label{
   font-size:11px!important;line-height:1!important;letter-spacing:.01em!important;
 }
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings #livingQuality{
   width:92px!important;max-width:92px!important;height:32px!important;min-height:32px!important;max-height:32px!important;padding:2px 5px!important;font-size:11px!important;
 }
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock{
   display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;
   width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;align-items:stretch!important;
 }
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock>button,
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock>.compact-map-help{
   min-width:0!important;height:38px!important;min-height:38px!important;max-height:38px!important;
 }
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock>button{
   width:100%!important;padding:2px 3px!important;font-size:9px!important;line-height:1.02!important;border-radius:10px!important;
 }
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock>button span,
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock>#tractorShortcut #tractorShortcutText,
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock>#collectAllMapCoins span{font-size:inherit!important;line-height:inherit!important;}
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock>.compact-map-help{display:flex!important;min-width:0!important;}
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock>.compact-map-help button{width:100%!important;height:38px!important;min-width:0!important;min-height:38px!important;font-size:16px!important;}
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock>#metroSectorsOpen{
   display:flex!important;align-items:center!important;justify-content:center!important;white-space:normal!important;overflow-wrap:anywhere!important;
   background:#e6efdf!important;color:#315b49!important;border:1px solid #abc2ae!important;font-weight:800!important;
 }
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings>.metro-sector-inline,
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings>#metroSectorsOpen:not(.inside-dock){margin:0!important}
}
@media (max-width:390px){
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.metro-controls,
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.sunny-controls{grid-template-columns:44px minmax(68px,.92fr) 34px 34px 34px!important;padding-inline:4px!important}
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.metro-controls select,
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.sunny-controls select{font-size:11px!important}
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings #livingQuality{width:86px!important;max-width:86px!important;font-size:10.5px!important}
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock{gap:3px!important}
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock>button,
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock>.compact-map-help{height:36px!important;min-height:36px!important;max-height:36px!important}
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock>button{font-size:8.6px!important;padding:2px!important}
 html.gesture-map-ui body.mobile-game[data-mobile-tab="city"] .city.card>.living-settings .domiki-action-dock>.compact-map-help button{height:36px!important;min-height:36px!important}
}

/* 2D Metro performance mode: activated dynamically during pan/zoom or far zoom-out. */
html.metro-map432 body #mapWorld{transform-origin:0 0}
/* Deliberately no per-plot translateZ(0): it exhausted GPU layers on 432 lots. */
html.metro-map432.metro-2d-fast body #mapWorld,html.metro-map432.metro-2d-fast body #mapWorld *{transition:none!important}
html.metro-map432.metro-2d-fast body #mapWorld .plot.occupied svg,
html.metro-map432.metro-2d-fast body #mapWorld .plot.occupied,
html.metro-map432.metro-2d-fast body #mapWorld .plot.locked,
html.metro-map432.metro-2d-fast body #mapWorld .plot .plot-type,
html.metro-map432.metro-2d-fast body #mapWorld .plot .collect-coin,
html.metro-map432.metro-2d-fast body #mapWorld .plot small,
html.metro-map432.metro-2d-fast body #mapWorld .plot .empty-lot>span{filter:none!important;box-shadow:none!important;text-shadow:none!important}
html.metro-map432.metro-2d-fast body #mapWorld .plot{outline-offset:-1px!important}
html.metro-map432.metro-2d-fast body #mapWorld>.living-city-layer,
html.metro-map432.metro-2d-fast body #mapWorld .living-road-network,
html.metro-map432.metro-2d-fast body .living-road-layer{display:none!important}
