/* Mobil düzen iyileştirmeleri (Beta 0.0.1) — yalnızca dar ekranlarda */
@media(max-width:600px){
body[data-game=true] .game-navigation.package-navigation{height:auto!important;min-height:0!important;overflow:visible!important;flex-wrap:wrap;gap:4px;margin:0 -4px 8px;padding:4px 0;justify-content:center}
body[data-game=true] .game-navigation.package-navigation>a,body[data-game=true] .game-navigation.package-navigation .package-menu>summary{font-size:11.5px!important;height:32px!important;min-height:32px!important;padding:0 7px!important;gap:4px!important;white-space:nowrap;flex:0 0 auto!important}
body[data-game=true] .game-navigation.package-navigation .nav-icon,body[data-game=true] .game-navigation.package-navigation svg{width:14px!important;height:14px!important}
body[data-game=true] .game-navigation.package-navigation .nav-notification-stack{flex-direction:row;gap:3px}
body[data-game=true] .game-navigation.package-navigation .nav-notification-stack a{width:32px!important;height:32px!important;min-height:0!important;padding:0!important}
body[data-game=true] .resource-status-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
body[data-game=true] .resource-status-row>.quest-launcher{order:1;flex:0 0 auto}
body[data-game=true] .resource-status-row>.package-village-strip{order:2;flex:1 1 0!important;width:auto!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px}
body[data-game=true] .resource-status-row>.status-tools{order:3;flex:0 0 auto;margin:0}
body[data-game=true] .resource-status-row>.status-tools .status-tool{width:auto!important;height:30px!important;min-height:0!important;padding:3px!important}
body[data-game=true] .resource-status-row>.status-tools{order:5!important;flex:1 0 100%!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:0!important;width:100%!important}
body[data-game=true] .resource-status-row>.status-tools img,body[data-game=true] .resource-status-row>.status-tools svg{width:20px!important;height:20px!important}
body[data-game=true] .resource-status-row>.resources{order:4;flex:1 0 100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.5fr);margin:0}
body[data-game=true] .resource-status-row>.resources .resource{min-height:36px;padding:4px 3px;gap:3px;font-size:11px;justify-content:center;flex-wrap:nowrap}
body[data-game=true] .resource-status-row>.resources .resource-symbol{width:16px;height:16px;flex:0 0 16px}
body[data-game=true] .resource-status-row>.resources .resource-stock-content{white-space:nowrap;font-size:11px}
.overview-sidebar .resource-production>div{flex-wrap:wrap}
.overview-sidebar .resource-production dd{flex:1 0 100%;white-space:normal;text-align:right;font-size:10.5px}
.overview-sidebar .resource-production dd>span{white-space:nowrap}
}

/* Alt sekme çubuğu ve tam ekran köy görünümü (yalnızca mobil) */
.mob-tabs{display:none!important}
input.mob-menu-toggle,body input.mob-menu-toggle{display:none!important;position:absolute;width:0;height:0;opacity:0;pointer-events:none;margin:0;padding:0;border:0}
@media(max-width:600px){
body[data-game=true]{padding-bottom:calc(62px + env(safe-area-inset-bottom,0px))}
.mob-menu-toggle{display:none!important}
body .mob-tabs{display:flex!important;position:fixed;left:0;right:0;width:auto;bottom:0;z-index:80;height:calc(58px + env(safe-area-inset-bottom,0px));padding:0 0 env(safe-area-inset-bottom,0px);background:#3a1d12;border-top:1px solid #6b4426;box-shadow:0 -2px 8px #0008}
.mob-tabs>a,.mob-tabs>label{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;position:relative;color:#b9a58a;font-size:11px;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mob-tabs>a[aria-current=page],.mob-menu-toggle:checked~.mob-tabs .mob-tab-menu{color:#fff}
.mob-tabs .mob-ic{width:26px;height:26px;display:grid;place-items:center}
.mob-tabs .mob-ic svg{width:24px;height:24px;stroke:currentColor}
.mob-tabs .mob-badge{position:absolute;top:4px;left:calc(50% + 6px);min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#b3141c;color:#fff;font-size:10px;line-height:17px;text-align:center;font-weight:700}
/* üst menü: alt çubuktaki Menü ile açılan tam ekran sayfa */
body[data-game=true] .game-navigation.package-navigation{display:none!important}
.mob-menu-toggle:checked~.game-navigation.package-navigation{display:flex!important;position:fixed;left:0;right:0;top:0;bottom:calc(58px + env(safe-area-inset-bottom,0px));z-index:70;margin:0!important;padding:14px 10px!important;overflow-y:auto!important;align-content:flex-start;background:#2a130d}
.mob-menu-toggle:checked~.game-navigation.package-navigation>a,.mob-menu-toggle:checked~.game-navigation.package-navigation>.package-menu{flex:1 1 calc(50% - 6px)!important;min-width:0}
.mob-menu-toggle:checked~.game-navigation.package-navigation>.nav-notification-stack{flex:1 1 100%;justify-content:flex-start}
.mob-menu-toggle:checked~.game-navigation.package-navigation .package-menu>summary{width:100%;box-sizing:border-box;justify-content:flex-start}
/* köy ekranı: sahne kenardan kenara, altında Üretim ve Birimler */
body[data-page=village] .quick-navigation,body[data-page=village] .resource-sync,body[data-page=village] .village-toolbar,body[data-page=village] .scene-help,body[data-page=village] .last-login,body[data-page=village] footer,body[data-page=village] .resource-status-row>.status-tools,body[data-page=village] .resource-status-row>.quest-launcher{display:none!important}
body[data-page=village] .resource-status-row{margin-bottom:6px}
body[data-page=village] .overview-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px;margin:0}
body[data-page=village] .overview-sidebar{width:auto!important;max-width:none!important;float:none!important}
body[data-page=village] .village-overview{width:auto!important;margin:0;padding:0;border:0;background:none;border-radius:0}
body[data-page=village] .village-overview .village-scene.native-scene{width:100%;margin:0;border-radius:0;aspect-ratio:1/1.04!important;max-height:none!important;height:auto!important}
body[data-page=village] .overview-layout{padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
}
