/* Anadolu köy haritası (tek parça resim, bina başına 3 seviyeli görsel). Eski sahne kurallarından bağımsızdır. */
.village-overview{max-width:640px}
body[data-game=true]:not(.vc) .village-overview:has(.map-scene),body[data-game=true] .village-overview:has(.map-scene){max-width:none!important}
.map-scene{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;background:#2b2518;border-radius:0 0 12px 12px;line-height:0;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.map-scene.is-zoomed{touch-action:none;cursor:grab}.map-scene.is-drag{cursor:grabbing}
.ms-world{position:absolute;left:0;top:0;width:100%;aspect-ratio:1/1;container-type:inline-size;transform-origin:0 0;will-change:transform}
.ms-ground{position:absolute;inset:0;background:url(koy/L0.webp) 0 0/100% 100% no-repeat}
.ms-rg{position:absolute;background-repeat:no-repeat;background-size:100cqw 100cqw;background-position:calc(var(--l)*-1cqw) calc(var(--t)*-1cqw);-webkit-mask-image:radial-gradient(ellipse closest-side,#000 82%,transparent 100%);mask-image:radial-gradient(ellipse closest-side,#000 82%,transparent 100%);pointer-events:none}
.ms-rg-locked{filter:grayscale(.85) brightness(.75);opacity:.85}
.map-scene[data-scene-period="night"] .ms-ground,.map-scene[data-scene-period="night"] .ms-rg{filter:brightness(.55) saturate(.8) hue-rotate(-10deg)}
.map-scene[data-scene-period="night"] .ms-rg-locked{filter:grayscale(.85) brightness(.45)}
.ms-spot{-webkit-user-drag:none;position:absolute;transform:translate(-50%,-50%);display:block;background:none;border:0;padding:0;margin:0;color:inherit;font:inherit;cursor:pointer;border-radius:50%;-webkit-tap-highlight-color:transparent}
.ms-spot:hover,.ms-spot:focus-visible,.ms-spot.is-label-open{outline:2px solid rgba(244,223,156,.85);outline-offset:-2px;background:rgba(244,223,156,.12)}
.ms-spot.ms-empty:hover{background:rgba(244,223,156,.18);outline-style:dashed}
.ms-label{position:absolute;left:50%;bottom:6%;transform:translateX(-50%) scale(calc(1/var(--z,1)));transform-origin:50% 100%;display:flex;flex-direction:column;align-items:center;gap:2px;pointer-events:none;white-space:nowrap}
.ms-lv{display:grid;place-items:center;min-width:16px;height:17px;padding:0 4px;font:700 10px/1 "Segoe UI",system-ui,sans-serif;color:#fff;background:#1c254b;border:1px solid #d6dcf0;border-radius:4px;opacity:.94;box-shadow:0 1px 2px rgba(0,0,0,.5)}
.ms-empty .ms-lv{background:#7a5a2a;border-color:#f4e5b8}
.ms-name{display:none;position:absolute;left:50%;bottom:calc(100% + 4px);transform:translateX(-50%);padding:3px 8px;font:600 11px/1.2 "Segoe UI",system-ui,sans-serif;color:#302613;background:#f4e5b8;border:1px solid #7a5a2a;border-radius:5px;box-shadow:0 2px 6px rgba(0,0,0,.4)}
.ms-spot:hover .ms-name,.ms-spot:focus-visible .ms-name,.ms-spot.is-label-open .ms-name,body.pref-spotnames .ms-name{display:block}
body.pref-spotnames .ms-name{position:static;transform:none;font-size:10px;padding:2px 5px;pointer-events:none}
body.pref-nolevels .ms-lv{display:none}
.ms-tower{left:12%;top:95%;width:11%;height:6%;border-radius:6px;z-index:5}
.ms-tower .ms-label{bottom:0}
.ms-locked .academy-lock{top:42%}
.ms-spot .spot-timer{display:block;margin-top:1px;padding:1px 4px;font:600 9px/1.1 "Segoe UI",system-ui,sans-serif;color:#fff;background:rgba(0,0,0,.65);border-radius:3px}
@media(max-width:760px){.ms-lv{min-width:13px;height:14px;font-size:8px;padding:0 3px}.ms-name{font-size:10px}}

/* Bölge ve dokunma alanı konumları (1024 resim üzerinden üretilmiştir) */
.ms-l1{background-image:url(koy/L1.webp)}.ms-l2{background-image:url(koy/L2.webp)}.ms-l3{background-image:url(koy/L3.webp)}
.ms-rg-hq{left:34.546%;top:-3.052%;width:30.518%;height:25.635%;--l:34.546;--t:-3.052}
.ms-s-hq{left:49.805%;top:9.766%;width:20.752%;height:17.432%;z-index:20}
.ms-rg-academy{left:26.611%;top:13.672%;width:21.973%;height:22.461%;--l:26.611;--t:13.672}
.ms-s-academy{left:37.598%;top:24.902%;width:14.941%;height:15.273%;z-index:35}
.ms-rg-hide{left:49.316%;top:17.822%;width:24.414%;height:20.02%;--l:49.316;--t:17.822}
.ms-s-hide{left:61.523%;top:27.832%;width:16.602%;height:13.613%;z-index:38}
.ms-rg-market{left:17.578%;top:30.518%;width:26.367%;height:15.137%;--l:17.578;--t:30.518}
.ms-s-market{left:30.762%;top:38.086%;width:17.93%;height:10.293%;z-index:49}
.ms-rg-barracks{left:56.152%;top:31.494%;width:21.484%;height:15.137%;--l:56.152;--t:31.494}
.ms-s-barracks{left:66.895%;top:39.062%;width:14.609%;height:10.293%;z-index:50}
.ms-rg-statue{left:38.208%;top:29.492%;width:23.193%;height:29.297%;--l:38.208;--t:29.492}
.ms-s-statue{left:49.805%;top:44.141%;width:15.771%;height:19.922%;z-index:55}
.ms-rg-smith{left:22.461%;top:41.504%;width:27.344%;height:17.578%;--l:22.461;--t:41.504}
.ms-s-smith{left:36.133%;top:50.293%;width:18.594%;height:11.953%;z-index:61}
.ms-rg-stable{left:52.49%;top:43.213%;width:20.02%;height:15.137%;--l:52.49;--t:43.213}
.ms-s-stable{left:62.5%;top:50.781%;width:13.613%;height:10.293%;z-index:62}
.ms-rg-store{left:28.442%;top:52.734%;width:23.193%;height:14.648%;--l:28.442;--t:52.734}
.ms-s-store{left:40.039%;top:60.059%;width:15.771%;height:9.961%;z-index:71}
.ms-rg-workshop{left:48.828%;top:53.223%;width:22.461%;height:13.672%;--l:48.828;--t:53.223}
.ms-s-workshop{left:60.059%;top:60.059%;width:15.273%;height:9.297%;z-index:71}
.ms-rg-rally{left:69.336%;top:31.982%;width:34.18%;height:24.902%;--l:69.336;--t:31.982}
.ms-s-rally{left:86.426%;top:44.434%;width:23.242%;height:16.934%;z-index:55}
.ms-rg-wall{left:37.354%;top:78.125%;width:23.926%;height:21.484%;--l:37.354;--t:78.125}
.ms-s-wall{left:49.316%;top:88.867%;width:16.27%;height:14.609%;z-index:101}
.ms-rg-wood{left:9.277%;top:4.639%;width:22.461%;height:15.137%;--l:9.277;--t:4.639}
.ms-s-wood{left:20.508%;top:12.207%;width:15.273%;height:10.293%;z-index:22}
.ms-rg-stone{left:79.59%;top:3.418%;width:24.414%;height:13.672%;--l:79.59;--t:3.418}
.ms-s-stone{left:91.797%;top:10.254%;width:16.602%;height:9.297%;z-index:20}
.ms-rg-iron{left:16.602%;top:71.045%;width:22.461%;height:15.137%;--l:16.602;--t:71.045}
.ms-s-iron{left:27.832%;top:78.613%;width:15.273%;height:10.293%;z-index:90}
.ms-rg-farm{left:68.848%;top:63.965%;width:34.18%;height:20.508%;--l:68.848;--t:63.965}
.ms-s-farm{left:85.938%;top:74.219%;width:23.242%;height:13.945%;z-index:86}

/* Oyun seçenekleri > Az grafik: gece efekti kapanır, ışıklar açık kalır. */
body.pref-lowgfx .map-scene[data-scene-period="night"] .ms-ground,body.pref-lowgfx .map-scene[data-scene-period="night"] .ms-rg{filter:none}
body.pref-lowgfx .map-scene[data-scene-period="night"] .ms-rg-locked{filter:grayscale(.85) brightness(.75)}

/* Yakınlaştır / uzaklaştır düğmeleri ve tam ekran */
.ms-ctl{position:absolute;right:8px;top:8px;z-index:200;display:flex;flex-direction:column;gap:4px;line-height:1}
.ms-ctl button{width:34px;height:34px;display:grid;place-items:center;padding:0;font:700 18px/1 "Segoe UI",system-ui,sans-serif;color:#302613;background:#f4e5b8;border:1px solid #7a5a2a;border-radius:8px;box-shadow:0 2px 5px rgba(0,0,0,.4);cursor:pointer}
.ms-ctl button:hover{background:#e9d8a6}.ms-ctl button:active{transform:translateY(1px)}
.map-scene:fullscreen,.map-scene.ms-full{position:fixed;inset:0;z-index:9999;width:100vw;height:100vh;aspect-ratio:auto;border-radius:0;background:#14100a}
.map-scene:fullscreen .ms-ctl,.map-scene.ms-full .ms-ctl{top:calc(10px + env(safe-area-inset-top,0px));right:calc(10px + env(safe-area-inset-right,0px))}
@media(prefers-reduced-motion:no-preference){.ms-world.ms-smooth{transition:transform .18s ease-out}}

/* Mobil uygulama: köy ekranı boydan boya; harita kalan tüm alanı doldurur, sayfa kaydırması yoktur. */
html.app-mode body .village-overview:has(.map-scene){display:flex!important;flex-direction:column;overflow:hidden!important}
html.app-mode body .village-overview .map-scene{flex:1 1 auto;height:100%;min-height:0;aspect-ratio:auto;border-radius:0;touch-action:none}
html.app-mode body .village-overview .ms-ctl{top:calc(10px + env(safe-area-inset-top,0px));right:calc(10px + env(safe-area-inset-right,0px))}
