/* Pamuk tasarımı, kahverengi ton. game.css'in üstüne biner: renkler, üst bar, kaynak şeridi, alt menü, paneller, düğmeler ve kartlar.
   Telefonda: alttan açılan panel + alt menü. Geniş ekranda: sağda 400 px panel + ortalanmış alt menü. */
:root {
	--ink: #2A2018; --muted: #6B5D50; --line: #E9E0D4; --ground: #F6F1EA; --surface2: #F1EADF;
	--brown: #8A5A2B; --brown-dark: #5E3C1B; --brown-soft: #F2E4D2; --brown-mid: #C9A57B;
	--gold-soft: #FFF1D6; --gold-ink: #8A5A00; --rust: #B5432A; --rust-soft: #FDEBE3; --green: #1E7A45; --green-soft: #DDF0E3;
	--pshadow: 0 1px 2px rgba(42, 32, 24, .07), 0 6px 18px rgba(42, 32, 24, .10);
	--bg: var(--ground); --bg2: #fff; --card: #fff; --card2: var(--surface2); --line2: var(--line);
	--txt: var(--ink); --mut: var(--muted); --gold: var(--brown); --gold2: var(--brown-mid);
	--ok: var(--green); --bad: var(--rust); --danger: var(--rust);
	--glass: #fff; --r: 14px; --serif: "Manrope", system-ui, sans-serif; --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--shadow: rgba(42, 32, 24, .18); --nav: 78px; --top: 60px;
}
body.game { font-family: var(--sans); background: var(--ground); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; letter-spacing: 0; }

/* ---- üst bar ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: calc(var(--top) + env(safe-area-inset-top)); min-height: 0; padding: env(safe-area-inset-top) 16px 0; background: #fff; border-bottom: 1px solid var(--line); color: var(--ink); z-index: 8; position: relative; flex: none; }
.tb-l { min-width: 0; }
.tb-t1 { font-size: 17px; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-t2 { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topinfo { flex: none; display: flex; align-items: center; gap: 8px; color: var(--ink); overflow: visible; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.pill .ic { width: 18px; height: 18px; }
.gclock { display: none; }

/* ---- kaynak şeridi: telefonda üst barın altında 4 sütun; köyde haritanın üstünde yüzer çipler ---- */
.rstrip { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-bottom: 1px solid var(--line); padding: 0 8px; height: 44px; flex: none; z-index: 7; position: relative; }
.rstrip:empty { display: none; }
.rstrip .res { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 0; min-width: 0; }
.rstrip .res + .res { border-left: 1px solid var(--line); }
.rstrip .res .ic { width: 18px; height: 18px; }
.rstrip .res .rv { display: flex; flex-direction: row; align-items: baseline; gap: 4px; }
.rstrip .res b { font-size: 13px; font-weight: 800; color: var(--ink); }
.rstrip .res small { display: none; font-size: 11.5px; font-weight: 600; color: var(--green); }
body.pg-village .rstrip { position: absolute; left: 12px; right: 12px; top: calc(var(--top) + 12px + env(safe-area-inset-top)); height: auto; background: transparent; border: 0; padding: 0; gap: 6px; pointer-events: none; z-index: 4; }
body.pg-village .rstrip .res { background: #fff; border-radius: 999px; box-shadow: var(--pshadow); height: 36px; padding: 0 8px; border: 0; pointer-events: auto; }
body.pg-village .rstrip .res + .res { border: 0; }

/* ---- alt menü ---- */
.botnav { display: grid; grid-template-columns: repeat(6, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); z-index: 12; position: relative; flex: none; }
.botnav a { height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 0; }
.botnav a [data-icon], .botnav a .ico { display: inline-flex; }
.botnav a .ic { width: 22px; height: 22px; box-sizing: content-box; padding: 3px 14px; border-radius: 10px; }
.botnav a em { font-style: normal; }
.botnav a.on { color: var(--brown); font-weight: 800; }
.botnav a.on .ic { background: var(--brown-soft); }
.botnav a.on::before { display: none; }
.botnav a.alert { color: var(--rust); }
.botnav a .bdg { position: absolute; top: 2px; left: auto; right: calc(50% - 24px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--rust); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.botnav a .bdg[hidden] { display: none; }

/* ---- hareketler butonu (her sayfada, sağ altta) ---- */
.mvfab { position: fixed; right: 14px; bottom: calc(var(--nav) + 14px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--brown); color: #fff; box-shadow: 0 6px 18px rgba(42, 32, 24, .35); display: flex; align-items: center; justify-content: center; z-index: 30; cursor: pointer; padding: 0; transition: bottom .2s ease-out; }
.mvfab[hidden] { display: none; }
.mvfab .ic { width: 26px; height: 26px; }
.mvfab .bdg { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--rust); border: 2px solid #fff; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.mvfab .bdg:empty { display: none; }
.mvfab.alert { animation: pulse 1.4s infinite; }
.mvpanel { position: fixed; left: 0; right: 0; bottom: calc(var(--nav) + env(safe-area-inset-bottom)); top: calc(var(--top) + 60px); background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(42, 32, 24, .16); z-index: 31; display: flex; flex-direction: column; padding: 8px 16px 0; }
.mvpanel[hidden] { display: none; }
.mvpanel .grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; flex: none; }
.mvpanel .mvscroll { flex: 1; min-height: 0; overflow: auto; padding-bottom: 16px; }
.sh { display: flex; align-items: center; gap: 12px; position: relative; }
.sh h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.sh p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.xb { margin-left: auto; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--surface2); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; padding: 0; }
.seg { display: flex; gap: 6px; overflow: auto; margin: 12px 0 10px; }
.seg .chip { cursor: pointer; flex: none; }
.sec { margin: 14px 0 6px; font-size: 13px; font-weight: 800; }
.sec.bad { color: var(--rust); }
.mrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; margin-bottom: 8px; }
.mrow.red .mico { background: var(--rust-soft); color: var(--rust); }
.mrow .mico { width: 44px; height: 44px; border-radius: 12px; background: var(--brown-soft); color: var(--brown); display: flex; align-items: center; justify-content: center; flex: none; }
.mrow .mico .ic { width: 24px; height: 24px; }
.mrow .mt { flex: 1; min-width: 0; }
.mrow .mt b { font-size: 14.5px; font-weight: 800; display: block; }
.mrow .mt small { display: block; font-size: 12px; color: var(--muted); }
.mrow .mr { text-align: right; }
.mrow .mr b { font-size: 15px; font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
.mrow.red .mr b { color: var(--rust); }
.mrow .mr small { font-size: 12px; color: var(--muted); }
.mbar { height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; margin-top: 6px; }
.mbar i { display: block; height: 100%; background: var(--brown); }
.mrow.red .mbar i { background: var(--rust); }
.mempty { color: var(--muted); font-size: 13px; padding: 10px 2px; }

/* ---- çipler ve yüzen düğmeler ---- */
.chip { height: 36px; padding: 0 11px; border-radius: 999px; background: #fff; border: 0; box-shadow: var(--pshadow); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; backdrop-filter: none; }
.chip .ic { width: 16px; height: 16px; color: var(--brown); }
.chip.on { background: var(--brown); color: #fff; }
.chip.on .ic { color: #fff; }
.chip.ok { color: var(--green); }
.chip.warn { color: var(--rust); border: 0; }
.chip.alert { color: var(--rust); border: 0; }
.chip.hint { color: var(--brown-dark); border: 0; }
.fab { width: 44px; height: 44px; border-radius: 12px; border: 0; background: #fff; box-shadow: var(--pshadow); color: var(--ink); backdrop-filter: none; }
.fab .ic { width: 22px; height: 22px; }
.rcol { right: 12px; top: calc(12px + 36px + 12px); gap: 8px; }
.rcol .chip.idlebtn { background: var(--brown); color: #fff; animation: none; border: 0; font-weight: 800; }
.rcol .chip.idlebtn .ic { color: #fff; }
.hud .chip { box-shadow: var(--pshadow); }

/* ---- sahne ---- */
.scene { background: #CFE0A2; }

/* ---- paneller: telefonda alttan çekmece ---- */
.panel { background: #fff; border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(42, 32, 24, .16); max-height: 66%; z-index: 20; }
.panel::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 4px; }
.phead { padding: 6px 60px 6px 16px; gap: 12px; }
.pthumb { background: var(--brown-soft); border-radius: 14px; }
.ptxt h3 { font-size: 18px; color: var(--ink); font-weight: 800; }
.ptxt p { font-size: 12.5px; color: var(--muted); }
.pclose { right: 14px; top: 8px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--surface2); }
.panel .scroll { padding: 2px 16px 12px; }
.pfoot { background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.sect { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 8px 0; }
.sect h4 { color: var(--ink); font-size: 13px; }
.ucard, .acard { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.uimg, .bpic { background: var(--brown-soft); }
.uimg.wimg { color: var(--brown); }
.stat { background: var(--surface2); }
.qrow { background: var(--surface2); }
/* eğitim kuyruğu: yan yana kare kutular, sabit yükseklik */
.qgrid { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; height: 76px; align-items: center; scrollbar-width: thin; padding: 2px 0; }
.qgrid .qempty { margin: 0; }
.qtile { position: relative; flex: none; width: 68px; height: 68px; border-radius: 14px; background: var(--surface2); border: 1.5px solid transparent; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qtile.run { border-color: var(--brown-mid); background: var(--brown-soft); }
.qtile .qpic { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -6px; }
.qtile .qpic .qimg { width: 40px; height: 44px; object-fit: contain; }
.qtile .qpic > .ic { width: 28px; height: 28px; color: var(--brown); }
.qtile .qup { position: absolute; right: -4px; bottom: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.qtile .qup .ic { width: 11px; height: 11px; }
.qtile .qcnt { position: absolute; left: 5px; top: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--brown-dark); color: #fff; font: 800 11px/18px var(--sans); text-align: center; }
.qtile .qx { position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.85); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.qtile .qx .ic { width: 10px; height: 10px; }
/* nüfus dolu: birlik hazır ama evlerde yer yok */
.qtile.held { border-color: #d08a2e; background: #fff1dc; }
.qtile.held .qbar i { background: #d08a2e; }
.qtile .qheld { display: flex; align-items: center; justify-content: center; gap: 2px; color: #a8601a; font-weight: 800; font-size: 9.5px; white-space: nowrap; }
.qtile .qheld .ic { width: 10px; height: 10px; }
.arsthelp { margin: -4px 0 10px; }
.arst { border: 1.5px dashed #d6c7ae; box-shadow: none; }
/* köy paneli: başka köylerden gelip meydanda bekleyen birlikler */
.sttitle { margin: 18px 0 4px; font-size: 16px; font-weight: 800; }
.stgrp { border: 1.5px dashed #9cc9c4; background: #f1f8f7; border-radius: 14px; padding: 10px 12px; margin: 6px 0 10px; }
.stgh { display: flex; align-items: center; gap: 8px; }
.stgh b { flex: 1; min-width: 0; font-size: 14px; }
.stgh .btn { display: inline-flex; align-items: center; gap: 4px; }
.stgh .btn .ic { width: 14px; height: 14px; }
.stdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.stchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stchip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 3px; border-radius: 999px; background: #fff; border: 1px solid #cfe5e2; font-size: 12.5px; }
.stchip img { width: 22px; height: 24px; object-fit: contain; }
.stchip span { color: var(--muted); }
/* köy adı: kalemle değiştirilir */
.arname { flex: 1; min-width: 0; }
.arnrow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.arnrow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arpen { flex: none; opacity: .55; }
.arvill:hover .arpen, .arpen:focus-visible { opacity: 1; }
.arnedit { display: flex; align-items: center; gap: 6px; max-width: 420px; }
.arnedit .tin { flex: 1; min-width: 0; height: 36px; }
.arnedit .btn { width: 38px; height: 36px; padding: 0; justify-content: center; flex: none; }
/* aynı hedefe başka köyden kart ekle */
.armore { width: 100%; justify-content: center; gap: 6px; border: 1.5px dashed var(--line); color: var(--brown); margin-top: 2px; }
.armore:hover { border-color: var(--brown-mid); background: var(--surface2); }
.armore .ic { width: 16px; height: 16px; }
.arnfrom { color: var(--brown-mid) !important; font-weight: 700; }
.qtile .qx:hover { color: var(--rust); }
.qtile .qtm { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 800 10px var(--sans); color: var(--brown-dark); font-variant-numeric: tabular-nums; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.qtile .qbar { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 4px; border-radius: 2px; background: rgba(90,58,30,.15); overflow: hidden; }
.qtile .qbar i { display: block; height: 100%; width: 0; background: var(--brown); border-radius: 2px; transition: width 1s linear; }
.slot.on { background: var(--brown-soft); border-color: var(--brown-mid); }
.pips i.on { background: var(--brown); border-color: var(--brown); }
.pbar { background: var(--surface2); }
.pbar i, .bar i { background: var(--brown); }
.upcell { background: var(--surface2); }
.note { border-radius: 12px; padding: 9px 12px; font-size: 12.5px; background: var(--surface2); color: var(--muted); margin: 8px 0; }

/* ---- düğmeler ---- */
.btn { height: 46px; min-height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 14.5px; font-family: var(--sans); }
.btn.pri { background: var(--brown); border: 0; color: #fff; font-weight: 800; }
.btn.soft { background: var(--brown-soft); border: 0; color: var(--brown-dark); font-weight: 800; }
.btn.danger { background: var(--rust); border: 0; color: #fff; }
.btn.sm { height: 36px; min-height: 36px; font-size: 13px; padding: 0 12px; border-radius: 11px; }
.btn.sq { width: 44px; padding: 0; }
.btn.sq.sm { width: 36px; }
.btn.ghost { background: transparent; }
.cbtn { height: 44px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-family: var(--sans); font-weight: 700; }
.cbtn.pri { background: var(--brown); border: 0; color: #fff; font-weight: 800; }
.tin { background: #fff; border: 1px solid var(--line); border-radius: 14px; height: 46px; padding: 0 14px; font-family: var(--sans); font-weight: 600; }
.tin:focus { outline: 2px solid var(--brown-mid); }
.tin.num { height: 36px; border-radius: 10px; }
.tin.sm { height: 36px; }
.tag { border-radius: 8px; padding: 3px 9px; font-size: 11.5px; font-weight: 800; background: var(--brown-soft); color: var(--brown-dark); white-space: nowrap; display: inline-block; }
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.warn { background: var(--rust-soft); color: #7A3B1E; }

/* ---- inşa şeridi, koç, işçi seçimi ---- */
.tray { background: none; padding-bottom: 12px; }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--pshadow); }
.bcard.sel { border-color: var(--brown); box-shadow: 0 0 0 2px var(--brown-mid); }
.bcard b { font-family: var(--sans); font-weight: 800; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.tcard b { font-family: var(--sans); }
.tcard.site { border-color: var(--brown-mid); }
.coach { background: #fff; border: 0; border-radius: 18px; box-shadow: var(--pshadow); }
.ctext b { font-family: var(--sans); color: var(--brown); font-weight: 800; }
.wrow { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.wrow.site { border-color: var(--brown-mid); }
.wrow .wtxt b { font-family: var(--sans); font-weight: 800; font-size: 14.5px; }
.wrow .wtxt small { font-size: 12px; }
.wnote { border-radius: 12px; padding: 9px 12px; font-size: 12.5px; background: var(--surface2); color: var(--muted); margin: 8px 0; }
.selbox { border-color: var(--brown); background: rgba(138, 90, 43, .16); }
.holdring { border-color: var(--brown); }

/* ---- düz sayfalar: raporlar, hesap, dünyalar ---- */
.plain { padding: 16px 14px 28px; max-width: 640px; }
.plain.wide { max-width: 1000px; }
.plain h2 { color: var(--ink); font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.plain h4 { color: var(--ink); }
.rhead h2 { color: var(--ink); }
.rrow { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.rrow.unread { border-left: 4px solid var(--rust); }
.rrow.k1 b, .rrow.k3 b, .rrow.k8 b, .rrow.k5 b { color: var(--green); }
.rrow.k2 b, .rrow.k4 b, .rrow.k9 b, .rrow.k10 b, .rrow.k6 b { color: var(--rust); }
.rdetail { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--pshadow); }
.rbanner.win { background: var(--green-soft); border: 0; color: var(--green); }
.rbanner.lose { background: var(--rust-soft); border: 0; color: var(--rust); }
.rbanner.info { background: var(--surface2); color: var(--brown-dark); }
.rbanner h2 { color: var(--ink); }
.rtbl th { color: var(--muted); }
.wcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--pshadow); }
.wcard.cur { border: 2px solid var(--brown); box-shadow: var(--pshadow); }
.whead b { font-family: var(--sans); color: var(--ink); }
.wspeed { background: var(--brown-soft); color: var(--brown-dark); }
.afrm { background: #fff; border-radius: 18px; }
.rtabs { display: flex; gap: 0; background: var(--surface2); border-radius: 14px; padding: 4px; margin: 0 0 12px; }
.rtabs button { flex: 1; text-align: center; padding: 9px 0; border-radius: 11px; font-weight: 800; font-size: 13.5px; color: var(--muted); border: 0; background: transparent; cursor: pointer; font-family: var(--sans); }
.rtabs button.on { background: #fff; color: var(--ink); box-shadow: var(--pshadow); }
.rtabs .tag { margin-left: 4px; }

/* ---- saldırı planları ---- */
.plans { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--pshadow); padding: 12px; }
.pcard .sh h3 { font-size: 15px; }
.pcard .pt { display: flex; gap: 14px; font-size: 12.5px; font-weight: 700; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.pcard .acts { display: flex; gap: 8px; margin-top: 8px; }
.pcard .acts .btn { flex: 1; }
.pform { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--pshadow); padding: 14px; margin-top: 10px; }
.prow { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; margin-bottom: 8px; }
.prow .pn { flex: 1; min-width: 0; }
.prow .pn b { font-size: 14.5px; font-weight: 800; display: block; }
.prow .pn small { font-size: 12px; color: var(--muted); }
.step { display: flex; align-items: center; gap: 6px; }
.step button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 800; font-size: 17px; color: var(--ink); cursor: pointer; padding: 0; }
.step input { width: 48px; height: 34px; border: 1px solid var(--line); border-radius: 10px; text-align: center; font: 800 15px var(--sans); }
.ptimes { display: flex; gap: 8px; }
.ptimes input, .ptimes select { flex: 1; min-width: 0; }
.pplan { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.pplan th { text-align: left; font-size: 11.5px; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.pplan td { padding: 7px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.pplan td:not(:first-child), .pplan th:not(:first-child) { text-align: right; }
.pswitch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; }
.pswitch label { flex: 1; font-weight: 800; font-size: 14px; }
.pswitch small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.pbtns { display: flex; gap: 8px; margin-top: 12px; padding-right: 0; }
.pbtns .btn { flex: 1; }

/* ---- dünya haritası ---- */
.lg { background: #fff; border: 0; box-shadow: var(--pshadow); }
.radar { background: #fff; border: 0; border-radius: 16px; box-shadow: var(--pshadow); }
.coords b { font-family: var(--sans); color: var(--brown-dark); }
.fact { background: #fff; }
.fact .ic { color: var(--brown); }

/* ---- giriş ---- */
.auth-page { background: var(--ground); }
.logo { background: var(--brown); border-radius: 20px; font-family: var(--sans); }
.auth-name { color: var(--ink); font-family: var(--sans); }

.toast { background: rgba(42, 32, 24, .94); border: 0; bottom: calc(var(--nav) + 90px); }

/* ---- geniş ekran: sağ panel, ortalanmış alt menü ---- */
@media (min-width: 900px) {
	:root { --top: 64px; }
	.topbar { padding-left: 20px; padding-right: 20px; }
	.rstrip, body.pg-village .rstrip { position: absolute; top: 0; left: 280px; right: 300px; height: 64px; width: auto; display: flex; justify-content: center; gap: 12px; background: transparent; border: 0; padding: 0; z-index: 9; pointer-events: none; align-items: center; }
	.rstrip .res, body.pg-village .rstrip .res { height: auto; padding: 7px 12px; background: var(--surface2); border-radius: 12px; box-shadow: none; border: 0; gap: 10px; font-weight: 800; flex: 0 0 auto; }
	.rstrip .res + .res { border: 0; }
	.rstrip .res b { font-size: 14px; }
	.rstrip .res small { display: inline; }
	.botnav { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 640px; border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; padding-bottom: 8px; }
	.botnav a { flex-direction: column; max-width: none; padding: 0; font-size: 11.5px; }
	body.game { padding-bottom: 0; }
	.stage { padding-bottom: 0; }
	body.pg-village .stage, body.pg-world .stage { }
	.mvfab { right: 24px; bottom: 18px; width: 60px; height: 60px; }
	.mvpanel { left: auto; right: 16px; top: 80px; bottom: 92px; width: 400px; border-radius: 20px; box-shadow: var(--pshadow); padding-top: 16px; }
	.mvpanel .grip { display: none; }
	.panel { left: auto; top: 80px; right: 16px; bottom: 92px; width: 400px; max-height: none; border: 0; border-radius: 20px; box-shadow: var(--pshadow); }
	.panel::before { display: none; }
	.has-panel .rcol { right: 432px; }
	.has-panel .coach:not([hidden]) { right: 432px; }
	.coach { bottom: 92px; }
	.rcol { top: 80px; }
	.toast { bottom: 100px; }
	.plain { padding-bottom: 100px; }
	.plain .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
	.stage { padding-bottom: 0; }
	.coach { bottom: 12px; }
}
@media (max-width: 380px) {
	.rstrip .res b { font-size: 12px; }
	.botnav a { font-size: 10.5px; }
}

/* ---- İnşa paneli (sağ çekmece / alt sayfa) ---- */
#tray { position: fixed; left: 0; right: 0; top: auto; bottom: calc(var(--nav) + env(safe-area-inset-bottom)); max-height: 56%; display: block; overflow: auto; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(42, 32, 24, .16); padding: 14px 16px 16px; z-index: 20; gap: 0; scroll-snap-type: none; }
#tray[hidden] { display: none; }
#tray .thead { display: flex; align-items: center; gap: 12px; }
#tray .ptxt { flex: 1; min-width: 0; }
#tray .tclose { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--surface2); color: var(--ink); display: grid; place-items: center; flex: none; cursor: pointer; padding: 0; }
#tray .tseg { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0 10px; }
#tray .tchip { height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 700 13px var(--sans); color: var(--ink); white-space: nowrap; cursor: pointer; flex: none; }
#tray .tchip.on { background: var(--brown); border-color: var(--brown); color: #fff; }
#tray .tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#tray .bcard { width: auto; flex: none; padding: 10px; gap: 6px; border-radius: 18px; touch-action: pan-y; cursor: grab; }
#tray .bpic { height: 52px; border-radius: 12px; background: var(--brown-soft); }
#tray .bcard b { font-size: 14px; margin: 0; }
#tray .bcard .lim { font-size: 11.5px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
#tray .trayhint { display: none; }
.tray.dragging, #tray.dragging { opacity: .28; }

/* ---- işçi paneli ---- */
.pbadge { width: 44px; height: 44px; border-radius: 14px; background: var(--brown); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; flex: none; }
.tsec { margin: 14px 0 6px; font-size: 13px; font-weight: 800; }
.trow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; margin-bottom: 8px; }
.trow .tico { width: 44px; height: 44px; border-radius: 12px; background: var(--brown-soft); display: grid; place-items: center; flex: none; overflow: hidden; }
.trow .wthumb { width: 40px; height: 36px; object-fit: contain; }
.trow .ttx { flex: 1; min-width: 0; }
.trow .ttx b { display: block; font: 800 14.5px var(--sans); }
.trow .ttx small { display: block; font-size: 12px; color: var(--muted); }
.trow .tbar { height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; margin-top: 6px; }
.trow .tbar i { display: block; height: 100%; background: var(--brown); }
.trow .btn { flex: none; }
.panel .note { border-radius: 12px; padding: 9px 12px; font-size: 12.5px; background: var(--surface2); color: var(--muted); margin: 8px 0; }
.panel .btn.full { width: 100%; }
.panel .wact { display: flex; gap: 8px; margin-top: 12px; }
.panel .wact .btn { flex: 1; }
@media (min-width: 900px) {
	#tray { left: auto; right: 16px; top: 80px; bottom: 92px; width: 400px; max-height: none; border-radius: 20px; box-shadow: var(--pshadow); padding: 16px; }
	#tray .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	#tray .bpic { height: 56px; }
	.has-tray .rcol { right: 432px; }
	.panel.compact { top: 80px; bottom: 92px; }
}

/* ---- üst bar: geri oku, koruma hapı, geniş ekranda kaynak çipleri üst barda ---- */
.tb-l { display: flex; align-items: center; gap: 10px; }
.tb-l .tb-tx { min-width: 0; }
.tb-back { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--surface2); color: var(--ink); display: grid; place-items: center; flex: none; cursor: pointer; padding: 0; }
.tb-back .ic { transform: rotate(-90deg); width: 20px; height: 20px; }
.pill .pwd { display: none; }
.pill .pwd + span, .pill > span:last-child { font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
	.pill .pwd { display: inline; margin-right: -2px; }
	body .topbar .rstrip { position: static; flex: 1; justify-content: flex-end; height: auto; width: auto; margin: 0 4px 0 12px; padding: 0; background: transparent; border: 0; pointer-events: auto; z-index: auto; display: flex; gap: 12px; }
	body .topbar .rstrip:empty { display: none; }
	.tb-t1 { font-weight: 600; font-size: 15px; }
	.tb-t2 { font-size: 15px; color: var(--ink); }
	.tb-l { align-items: flex-start; }
}

/* ---- Raporlar: sol liste + sağ ayrıntı ---- */
.card { background: #fff; border-radius: 22px; box-shadow: var(--pshadow); }
.rsplit { display: block; padding: 12px 14px 110px; max-width: none; }
.rsplit .rleft, .rsplit .rright { padding: 14px; }
.rsplit[data-m="l"] .rright { display: none; }
.rsplit[data-m="r"] .rleft { display: none; }
.rsplit .rleft { background: transparent; box-shadow: none; padding: 0; }
.rsplit .rright { background: transparent; box-shadow: none; padding: 0; }
.rtabs { margin: 0 0 12px; background: var(--surface2); border-radius: 14px; padding: 4px; display: flex; }
.rtabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.rcnt { font-style: normal; background: var(--rust-soft); color: var(--rust); border-radius: 9px; font-size: 11.5px; font-weight: 800; padding: 1px 7px; }
.rlist { display: flex; flex-direction: column; gap: 8px; margin-top: 0; }
.rall { align-self: flex-end; }
.rrow2 { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-align: left; font-family: var(--sans); color: var(--ink); cursor: pointer; width: 100%; }
.rrow2.sel { background: var(--brown-soft); border-color: var(--brown); border-width: 2px; padding: 9px 11px; }
.rico { width: 44px; height: 44px; border-radius: 12px; background: var(--brown-soft); color: var(--brown); display: grid; place-items: center; flex: none; }
.rrow2.sel .rico { background: transparent; }
.lose .rico { background: var(--rust-soft); color: var(--rust); }
.rico .ic { width: 24px; height: 24px; }
.rtx { flex: 1; min-width: 0; }
.rtx b { display: block; font-size: 14.5px; font-weight: 800; }
.rtx small { display: block; font-size: 12px; color: var(--muted); }
.rdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rust); margin-left: 6px; vertical-align: middle; }
.rtm { display: none; }
.rdetail { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; }
.rbanner { border-radius: 18px; padding: 14px 16px; margin: 0 0 10px; gap: 12px; }
.rbanner h2 { font-size: 20px; margin: 0; }
.rbanner p { color: var(--muted); }
.rbanner .ic { width: 30px; height: 30px; }
.rcols { display: block; }
.rsec { margin: 10px 0; }
.rsec h4 { font-size: 14px; font-weight: 800; margin: 12px 0 4px; color: var(--ink); }
.rtbl th { text-align: right; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.rtbl th:first-child { text-align: left; }
.rtbl td { font-weight: 600; padding: 8px 6px; }
.rtbl .xt { display: none; }
.rdetail .btns { display: flex; gap: 8px; margin-top: 14px; }
.rdetail .btns .btn { flex: 1; }
.plans { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--pshadow); padding: 12px; }
.psh { display: flex; align-items: center; gap: 12px; }
.pcard .pt { display: flex; gap: 14px; font-size: 13px; font-weight: 800; margin: 12px 0 0; font-variant-numeric: tabular-nums; }
.pcard .tbar, .tbar { height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; margin-top: 8px; }
.pcard .tbar i { display: block; height: 100%; background: var(--brown); }
.pnote { border-radius: 12px; padding: 9px 12px; font-size: 12.5px; background: var(--surface2); color: var(--muted); margin: 10px 0 0; }
.pbtns2 { display: flex; gap: 8px; margin-top: 10px; }
.pbtns2 .btn { flex: 1; }
.rleft > .btn.pri.full { margin-bottom: 4px; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; }
.pform { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; }
.ptarget { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pav { width: 44px; height: 44px; border-radius: 50%; background: var(--brown-soft); color: var(--brown); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.rright .trow { margin-bottom: 8px; }
.rright .tico { font-weight: 800; color: var(--brown); font-size: 16px; }
.rright .step { margin-left: auto; }
.rright .step span { min-width: 30px; text-align: center; font-weight: 800; }
.rright .step input { display: none; }
.ptimes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ptimes .tin { margin: 0; }
.pswitch { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; margin: 10px 0 0; background: #fff; text-align: left; font-family: var(--sans); cursor: pointer; color: var(--ink); }
.pswitch b { display: block; font-size: 14.5px; font-weight: 800; }
.pswitch small { color: var(--muted); font-weight: 600; font-size: 12px; }
@media (min-width: 900px) {
	.rsplit { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 22px; padding: 22px 30px 110px; align-items: start; }
	.rsplit[data-m] .rright, .rsplit[data-m] .rleft { display: block; }
	.rsplit .rleft, .rsplit .rright { background: #fff; box-shadow: var(--pshadow); border-radius: 22px; padding: 14px; min-height: calc(100vh - 64px - 92px - 44px); }
	.rsplit .rleft { padding: 14px; }
	.rrow2 .rtm { display: none; }
	.rtbl .xt { display: table-cell; }
	.rcols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
	.rdetail .btns .btn { flex: 0 0 auto; min-width: 156px; }
	.rright .step { margin-left: auto; }
	.ptimes { max-width: 520px; }
	.ptimes.two { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
	.rrow2 .rtx small { white-space: normal; }
}

#reports.rsplit { max-width: none; margin: 0; }
.rsplit .rright { min-width: 0; }

.ptfind { display: flex; gap: 10px; }
.ptfind .tin { flex: 1; min-width: 0; margin: 0; }
.rtm { color: var(--muted); font-size: 12px; font-weight: 600; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rdot2 { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }
@media (max-width: 899px) {
	.rrow2 .rtm { display: flex; }
	.rrow2 .rago, .rrow2 .rdot { display: none; }
	.pg-reports .topinfo, .pg-account .topinfo, .pg-worlds .topinfo { display: none; }
}
@media (min-width: 900px) { .rrow2 .rtm { display: none; } }

/* ---- Hesap ve Dünyalar ---- */
.acc, .wlist { max-width: none; padding: 14px 14px 110px; }
.acc .acol { display: flex; flex-direction: column; gap: 10px; }
.acc .acol.wide { display: none; }
.rowcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--pshadow); color: var(--ink); font-family: var(--sans); text-align: left; width: 100%; }
.rowcard.me { border: 0; padding: 14px; }
.rowcard.logout { justify-content: center; color: var(--rust); font-weight: 800; font-size: 14.5px; box-shadow: none; height: 46px; cursor: pointer; }
.rowcard.link { text-decoration: none; }
.pav.big { width: 48px; height: 48px; font-size: 20px; }
.me .rtx b { font-size: 16px; }
.wgrid2 { display: flex; flex-direction: column; gap: 10px; }
.wcard2 { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--pshadow); }
.wcard2.cur { border: 2px solid var(--brown); padding: 9px 11px; }
.wcard2 .wtop { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.wcard2 .btn { flex: none; height: 40px; min-height: 40px; padding: 0 14px; border-radius: 12px; font-weight: 800; }
@media (min-width: 900px) {
	.acc { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; padding: 22px 30px 110px; align-items: start; }
	.acc .acol.wide { display: block; }
	.acc .acol.wide h2 { font-size: 22px; margin: 0; }
	.acc .acol.wide p { margin: 4px 0 14px; }
	.acc .worldrow { display: none; }
	.wgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
	.wcard2 { flex-direction: column; align-items: stretch; padding: 14px; }
	.wcard2.cur { padding: 13px; }
	.wcard2 .btn { width: 100%; height: 36px; }
	.wlist { padding: 22px 30px; }
}
.pav { flex: none; }

/* ---- Dünya haritası ---- */
body.pg-world .hud { top: 12px; left: 12px; right: auto; }
body.pg-world .hud .chips { gap: 8px; }
body.pg-world .hud .chip { height: 36px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--ink); font: 800 13px var(--sans); border: 0; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--pshadow); cursor: pointer; }
body.pg-world .hud .chip .ic { width: 16px; height: 16px; color: var(--brown); }
body.pg-world .hud .chip.on { background: var(--brown); color: #fff; }
body.pg-world .hud .chip.on .ic { color: #fff; }
.wav { width: 44px; height: 44px; border-radius: 14px; background: var(--brown); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; flex: none; }
.wtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 4px; }
.wtiles > div { background: var(--surface2); border-radius: 12px; padding: 10px 6px; text-align: center; font-size: 12px; color: var(--muted); }
.wtiles b { display: block; font-size: 17px; color: var(--ink); font-weight: 800; }
.wprot { border-radius: 12px; padding: 9px 12px; font-size: 12.5px; background: var(--green-soft); color: var(--green); margin: 8px 0; font-weight: 700; }
.wbtns { display: flex; gap: 8px; margin-top: 12px; }
.wbtns .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wunits { display: block; }
.stn { width: 44px; height: 34px; border: 0; background: transparent; text-align: center; font: 800 15px var(--sans); color: var(--ink); padding: 0; -moz-appearance: textfield; }
.stn::-webkit-outer-spin-button, .stn::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#panel .trow { margin-bottom: 8px; }
#panel .trow .step { margin-left: auto; display: flex; align-items: center; gap: 4px; }
#panel .trow .step button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 800; font-size: 17px; color: var(--ink); padding: 0; }
#panel .pfoot.actions { display: flex; gap: 8px; padding: 10px 16px 16px; }
#panel .pfoot.actions .btn { flex: 1; }
#panel .pnote { border-radius: 12px; padding: 9px 12px; font-size: 12.5px; background: var(--surface2); color: var(--muted); margin: 8px 0; }

body.pg-world .hud { right: 64px; }
body.pg-world .hud .chip { padding: 0 10px; gap: 5px; font-size: 12.5px; }
@media (min-width: 900px) {
	.scene .panel, .scene .panel.compact { top: 16px; bottom: 92px; }
	.rcol, .fabs { top: 16px; }
	body.pg-world .hud { top: 16px; right: auto; }
	.has-panel .fabs, .has-tray .fabs { right: 432px; display: flex; }
}

/* ---- Ordu sayfası ---- */
.panel.armypage { position: fixed; left: 0; right: 0; top: calc(var(--top) + 44px + env(safe-area-inset-top)); bottom: calc(var(--nav) + env(safe-area-inset-bottom)); width: auto; max-height: none; border-radius: 0; background: var(--ground); box-shadow: none; overflow: auto; transform: none; z-index: 15; padding: 0; }
.panel.armypage::before { display: none; }
/* tam sayfa ordu panelinde alt menü görünür kalır */
body.army-open .botnav { z-index: 17; }
.apage { padding: 14px 14px 110px; }
.apage .ahd, .apage .asub { display: none; }
.atiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 6px; }
.atiles > div { background: var(--surface2); border-radius: 12px; padding: 12px 6px; text-align: center; font-size: 12px; color: var(--muted); }
.atiles b { display: block; font-size: 20px; color: var(--ink); font-weight: 800; }
.agrid { display: flex; flex-direction: column; gap: 8px; }
.acard2 { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.acard2 .apic { width: 44px; height: 44px; border-radius: 12px; background: var(--brown-soft); display: grid; place-items: center; flex: none; overflow: hidden; }
.acard2 .aimg { width: 38px; height: 38px; object-fit: contain; }
.acard2 .atx { flex: 1; min-width: 0; }
.acard2 .atx b { display: block; font: 800 14.5px var(--sans); }
.acard2 .atx small { font-size: 12px; color: var(--muted); }
.acard2 .acnt { order: 3; }
.acols { display: flex; flex-direction: column; gap: 4px; }
.acol.card { background: transparent; box-shadow: none; padding: 0; }
.acol .sec { margin-top: 16px; }
.atrain { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
@media (min-width: 900px) {
	.panel.armypage { top: var(--top); bottom: 0; }
	.apage { padding: 24px 28px 110px; }
	.apage .ahd { display: block; font-size: 22px; font-weight: 800; margin: 0; }
	.apage .asub { display: block; margin: 4px 0 16px; color: var(--muted); }
	.atiles { display: none; }
	.apage > .sec { display: none; }
	.agrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
	.acard2 { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; border: 0; border-radius: 18px; box-shadow: var(--pshadow); }
	.acard2 .apic { width: auto; height: 64px; border-radius: 12px; }
	.acard2 .aimg { height: 56px; width: auto; }
	.acard2 .acnt { order: 0; align-self: flex-start; }
	.acols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 20px; }
	.acol.card { background: #fff; box-shadow: var(--pshadow); border-radius: 22px; padding: 14px; min-height: 280px; }
	.acol .sec { margin-top: 0; }
	.atrain { display: none; }
}

@media (max-width: 899px) {
	body.pg-village.army-open .rstrip { left: 0; right: 0; top: calc(var(--top) + env(safe-area-inset-top)); height: 44px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 8px; gap: 0; z-index: 16; display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: auto; }
	body.pg-village.army-open .rstrip .res { background: transparent; border-radius: 0; box-shadow: none; height: auto; padding: 0; justify-content: center; }
	body.pg-village.army-open .rstrip .res + .res { border-left: 1px solid var(--line); }
}
@media (max-width: 899px) { .atrain { margin-right: 70px; width: auto; } }

/* katılım kartı: renk seçimi varsa kart alt alta dizilir */
.wcard2:has(.swatches) { flex-direction: column; align-items: stretch; }
.wcard2:has(.swatches) .btn { width: 100%; }
.wcard2 > small.muted { display: block; margin: 2px 0 -4px; }

/* alt menüyle çakışma: düz sayfaların sonu menünün altında kalmasın */
@media (min-width: 900px) { body:not(.pg-village):not(.pg-world) .stage { padding-bottom: 96px; } }
/* ordu: alttaki düğmeler sağdaki hareket düğmesinin altında kalmasın */
@media (max-width: 899px) { .abtns { padding-right: 70px; } }
.abtns { display: flex; gap: 8px; }
.abtns .btn { flex: 1; }

/* ---- Dünya: radar (sol alt), koordinat, kopyalama ---- */
body.pg-world .radar { position: absolute; left: 12px; bottom: 12px; z-index: 6; width: 284px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 0; border-radius: 18px; box-shadow: var(--pshadow); backdrop-filter: none; }
/* alt menü ortada 820px; ekran dar ise radar menünün üstünde durur */
@media (min-width: 900px) { body.pg-world .radar { bottom: 92px; } }
@media (min-width: 1440px) { body.pg-world .radar { bottom: 16px; } }
.radar .coords b { white-space: nowrap; }
body.pg-world .radar .rcv { width: 264px; height: 264px; border-radius: 12px; border: 1px solid var(--line); background: #efe6cf; }
body.pg-world .has-panel .radar { display: flex; }
@media (max-width: 899px) { body.pg-world .has-panel .radar { display: none; } body.pg-world .radar { width: 172px; padding: 8px; gap: 6px; } body.pg-world .radar .rcv { width: 156px; height: 156px; } }
.radar .rleg { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.radar .rleg span { display: inline-flex; align-items: center; gap: 4px; }
.radar .rleg i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.radar .rleg em { font-style: normal; }
@media (max-width: 899px) { .radar .rleg { font-size: 10px; gap: 2px 6px; } .radar .rleg i { width: 7px; height: 7px; } }
.radar .coords { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.radar .coords b { font: 800 16px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.radar .cbtns { display: flex; gap: 4px; }
.radar .cbtns .btn.sq.sm { width: 30px; height: 30px; min-height: 30px; padding: 0; border-radius: 9px; display: grid; place-items: center; background: var(--surface2); border: 0; color: var(--brown); }
.radar .cbtns .btn .ic { width: 16px; height: 16px; }
.radar small.muted { font-size: 11.5px; }
.radar .cgo .tin { width: 100%; height: 32px; border-radius: 10px; font-size: 13px; padding: 0 10px; }
@media (max-width: 899px) { .radar .cbtns .btn.sq.sm { width: 26px; height: 26px; min-height: 26px; } .radar .coords b { font-size: 13px; } .radar .cgo, .radar small.muted { display: none; } .radar .cbtns { gap: 3px; } }
.wcoord { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 8px 10px; border-radius: 12px; background: var(--surface2); }
.wcoord .ic { width: 16px; height: 16px; color: var(--brown); }
.wcoord b { font: 800 15px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.wcoord .tag { font-size: 12px; color: var(--muted); font-weight: 700; }
.wcoord .btn { margin-left: auto; width: 30px; height: 30px; min-height: 30px; padding: 0; display: grid; place-items: center; border-radius: 9px; }
.wbtns { display: flex; gap: 8px; margin-top: 8px; }
.wbtns .btn { flex: 1; }

/* ---- alt menü: 8 bölüm ---- */
.botnav { grid-template-columns: repeat(8, 1fr); padding-left: 2px; padding-right: 2px; }
@media (max-width: 899px) { .botnav a { font-size: 10px; letter-spacing: -.1px; } .botnav a .ic { padding: 3px 7px; width: 21px; height: 21px; } .botnav a em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } }
@media (min-width: 900px) { .botnav { width: 820px; } }

/* ---- ortak: sekme şeridi, kartlar ---- */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface2); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg .btn, .seg button { flex: 0 0 auto; height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: 700 13px var(--sans); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; position: relative; }
.seg button .ic { width: 16px; height: 16px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(42,32,24,.12); }
.seg button .bdg { position: static; min-width: 18px; height: 18px; border-radius: 9px; background: var(--rust); color: #fff; font: 800 11px var(--sans); font-style: normal; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.small { font-size: 12.5px; }
.tag.bad { background: #fde3dc; color: #a33a22; }
.tag.ok { background: #dff3e2; color: #2f7a3e; }
.tag.warn { background: #fff1d6; color: #9a6410; }
.linkbtn { background: none; border: 0; padding: 0 4px; color: var(--brown); font: 700 12px var(--sans); cursor: pointer; }
.opx { width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--surface2); color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.opx .ic { width: 14px; height: 14px; }
.opx:hover { color: var(--rust); }

/* ---- saldırı planlayıcı ---- */
.plain.wide.oppage { max-width: 1240px; }
.opcols { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 899px) { .opcols { grid-template-columns: 1fr; } }
.opcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.opcard { background: #fff; border-radius: 18px; box-shadow: var(--pshadow); padding: 14px 16px; }
.opcard h3 { margin: 0 0 10px; font: 800 16px var(--sans); color: var(--ink); }
.opgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opf { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.opf.wide { grid-column: 1 / -1; }
.opf .tin { height: 38px; }
.opchk { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); grid-column: 1 / -1; }
.opchk input { width: 18px; height: 18px; accent-color: var(--brown); }
.opPaste { width: 100%; resize: vertical; min-height: 56px; padding: 8px 10px; font: 600 14px var(--sans); }
.opbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.opbar .btn { display: inline-flex; align-items: center; gap: 6px; }
.opbar .btn .ic { width: 15px; height: 15px; }
.opchips { display: flex; flex-wrap: wrap; gap: 6px; }
.opchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--surface2); font-size: 12.5px; max-width: 100%; }
.opchip b { font-variant-numeric: tabular-nums; }
.opchip span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.opchip.empty { opacity: .6; }
.opchip .opx { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.ophd { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ophd h3 { margin: 0; }
.oprows { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.oprow { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.oprtop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.oprtop .rtx { flex: 1; min-width: 140px; }
.oprtop .rtx small { color: var(--muted); }
.opn { width: 26px; height: 26px; border-radius: 50%; background: var(--brown); color: #fff; display: grid; place-items: center; font: 800 12px var(--sans); flex: none; }
.opfrom { height: 34px; max-width: 220px; font-size: 13px; }
.opunits { display: flex; flex-wrap: wrap; gap: 8px; }
.opu { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 10px; background: var(--surface2); }
.opu img { width: 26px; height: 26px; object-fit: contain; }
.opu .tin { width: 64px; height: 30px; padding: 0 6px; font-size: 13px; text-align: right; }
.opu small { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.opmax { border: 0; background: #fff; border-radius: 6px; font: 800 10.5px var(--sans); color: var(--brown); padding: 4px 6px; cursor: pointer; }
.optime { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12.5px; color: var(--muted); }
.optime .tag { margin-left: auto; }
.opcd { font-weight: 800; color: var(--brown); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.operr { color: #a33a22; font-size: 12.5px; font-weight: 700; }
.opfoot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.opsum { flex: 1; font-size: 13px; font-weight: 700; color: var(--ink); }
.opfoot .btn { display: inline-flex; gap: 6px; align-items: center; min-width: 180px; justify-content: center; }
.opgroup { border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; margin-bottom: 8px; }
.opgh { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.opgh b { flex: 1; font-size: 14px; }
.opw { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line); }
.opw > .ic { width: 16px; height: 16px; color: var(--brown); flex: none; }
.opw .rtx { flex: 1; min-width: 0; }
.opw .rtx b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opw .rtx small { color: var(--muted); font-size: 11.5px; }

/* ---- sıralama ---- */
.plain.wide.rkpage { max-width: 1080px; }
.rktop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rksearch { flex: 1; min-width: 160px; height: 40px; }
.rklive { display: inline-flex; align-items: center; gap: 6px; font: 800 12px var(--sans); color: #2f7a3e; }
.rklive i { width: 8px; height: 8px; border-radius: 50%; background: #3fae55; box-shadow: 0 0 0 0 rgba(63,174,85,.5); }
.rklive.pulse i { animation: rkp .6s ease-out; }
@keyframes rkp { from { box-shadow: 0 0 0 0 rgba(63,174,85,.6); } to { box-shadow: 0 0 0 10px rgba(63,174,85,0); } }
.rkmecard { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--pshadow); margin-bottom: 12px; flex-wrap: wrap; }
.rkbig { font: 800 26px var(--sans); color: var(--brown); min-width: 64px; }
.rkmecard .rtx { flex: 1; min-width: 140px; }
.rkmecard .rtx small { color: var(--muted); }
.rkbars { display: flex; height: 10px; border-radius: 6px; overflow: hidden; width: 220px; max-width: 100%; background: var(--surface2); }
.rkseg { height: 100%; }
.rktable { background: #fff; border-radius: 18px; box-shadow: var(--pshadow); overflow: hidden; }
.rkrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) 64px repeat(4, 96px); align-items: center; gap: 6px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.rkrow.rkhd { border-top: 0; background: var(--surface2); font: 800 12px var(--sans); color: var(--muted); }
.rkrow.me { background: #fff6e2; }
.rkrow.moved { animation: rkm 1.4s ease-out; }
@keyframes rkm { from { background: #fff1c2; } }
.rkpl { font: 800 14px var(--sans); color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.rkpl.top1 { color: #c9961a; } .rkpl.top2 { color: #8d96a0; } .rkpl.top3 { color: #b0703a; }
.rkpl i { font-size: 9px; font-style: normal; } .rkpl i.up { color: #2f9a48; } .rkpl i.down { color: #c0452e; }
.rkname { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rkname b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rktag { font-style: normal; font-weight: 800; color: var(--brown); font-size: 12px; }
.rkdot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.rkn, .rkv { text-align: right; font-variant-numeric: tabular-nums; }
.rkv.on { font-weight: 800; color: var(--ink); }
.rkcol { border: 0; background: none; font: 800 12px var(--sans); color: var(--muted); display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; cursor: pointer; padding: 0; }
.rkcol .ic { width: 14px; height: 14px; }
.rkcol.on { color: var(--brown); }
.rkarr { font-style: normal; font-size: 9px; }
.rkhelp { margin-top: 10px; }
@media (max-width: 699px) {
	.rkrow { grid-template-columns: 40px minmax(0, 1fr) 72px; padding: 9px 10px; }
	.rkrow .rkn, .rkrow > .rkv:not(.on), .rkrow > .rkcol:not(.on) { display: none; }
	.rkcol span { display: inline; }
}

/* ---- klan ---- */
.plain.wide.clpage { max-width: 1120px; }
.clgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 899px) { .clgrid { grid-template-columns: 1fr; } }
.clcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.clcard { background: #fff; border-radius: 18px; box-shadow: var(--pshadow); padding: 14px 16px; }
.clcard h3 { margin: 0 0 10px; font: 800 16px var(--sans); color: var(--ink); }
.clcard h4 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.clform { display: flex; flex-direction: column; gap: 8px; }
.clform .tin { width: 100%; }
.clform textarea.tin { padding: 8px 10px; resize: vertical; font: 500 14px var(--sans); }
.clinline { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.clinline .tin { flex: 1; min-width: 120px; height: 36px; }
.clrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.clrow:first-of-type { border-top: 0; }
.clrow .rtx { flex: 1; min-width: 0; }
.clrow .rtx small { color: var(--muted); }
.clrow.flash { animation: rkm 2s ease-out; border-radius: 10px; }
.cldesc { margin: 4px 0 0; font-size: 13px; color: var(--ink); white-space: pre-wrap; }
.clplace { width: 28px; font: 800 14px var(--sans); color: var(--muted); text-align: center; }
.clhero { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; box-shadow: var(--pshadow); padding: 14px 16px; margin-bottom: 10px; }
.clhero .rtx { flex: 1; min-width: 0; }
.clhero .rtx b { font: 800 19px var(--sans); }
.clhero .rtx small { color: var(--muted); }
.clhero .btn { display: inline-flex; gap: 6px; align-items: center; }
.clbadge { width: 56px; height: 64px; flex: none; background: var(--brown); color: #fff; clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); display: grid; place-items: center; font: 800 15px var(--sans); letter-spacing: .5px; padding-bottom: 8px; }
.clann { display: flex; gap: 10px; align-items: flex-start; background: #fff6e2; border: 1px solid #f1dfb2; border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; white-space: pre-wrap; }
.clann .ic { width: 18px; height: 18px; color: var(--brown); flex: none; margin-top: 2px; }
.cltabs { margin-bottom: 12px; }
.clpostf { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 8px; }
.clpostf textarea { flex: 1; padding: 8px 10px; resize: vertical; font: 500 14px var(--sans); }
.clpostf .btn { display: inline-flex; gap: 6px; align-items: center; }
.clpost { padding: 10px 0; border-top: 1px solid var(--line); }
.clpost.pinned { background: #fffaf0; margin: 0 -16px; padding: 10px 16px; }
.clpost.sys { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); font-style: italic; padding: 6px 0; }
.clph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clph small { margin-right: auto; }
.clpost p { margin: 4px 0 0; white-space: pre-wrap; font-size: 14px; }
.clstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.clstats > div { background: var(--surface2); border-radius: 12px; padding: 10px; text-align: center; font-size: 12px; color: var(--muted); }
.clstats b { display: block; font-size: 17px; color: var(--ink); }
.cldanger .btn { width: 100%; color: #a33a22; }
.cltable { display: flex; flex-direction: column; }
.clmrow { display: grid; grid-template-columns: minmax(0, 1.4fr) 150px 70px 90px minmax(0, 1.3fr); gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.clmrow.clhd { border-top: 0; font: 800 12px var(--sans); color: var(--muted); }
.clmrow.me { background: #fff6e2; border-radius: 10px; }
.clmrow .num { text-align: right; font-variant-numeric: tabular-nums; }
.clmrow .tin { height: 32px; font-size: 13px; width: 100%; }
.clmn { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.clmn small { width: 100%; padding-left: 16px; }
.clacts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 699px) { .clmrow { grid-template-columns: minmax(0, 1fr) 120px; } .clmrow > .num, .clmrow.clhd > :nth-child(3), .clmrow.clhd > :nth-child(4), .clmrow.clhd > :nth-child(5) { display: none; } .clmrow .clacts { grid-column: 1 / -1; justify-content: flex-start; } }
.clscroll { overflow-x: auto; }
.clperm { min-width: 860px; }
.clprow { display: grid; grid-template-columns: 170px repeat(10, 1fr) 64px 110px; gap: 4px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.clprow.clhd { border-top: 0; font: 800 10.5px var(--sans); color: var(--muted); }
.clpc { text-align: center; }
.clpc input { width: 18px; height: 18px; accent-color: var(--brown); }
.clpc .tin { height: 30px; padding: 0 4px; }
.clpn { display: flex; flex-direction: column; gap: 2px; }
.clpn .tin { height: 32px; font-size: 13px; }
.clvote { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.clvote.st1 { border-color: #bfe3c6; } .clvote.st2, .clvote.st3 { opacity: .7; }
.clvh { display: flex; align-items: flex-start; gap: 8px; }
.clvh > .ic { width: 18px; height: 18px; color: var(--brown); flex: none; margin-top: 2px; }
.clvh .rtx { flex: 1; min-width: 0; }
.clvh .rtx small { color: var(--muted); }
.clvbar { position: relative; height: 10px; border-radius: 6px; background: var(--surface2); margin: 8px 0 6px; display: flex; overflow: hidden; }
.clvbar i.y { background: #3fae55; } .clvbar i.n { background: #d9583e; margin-left: auto; }
.clvbar .half { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--ink); opacity: .5; }
.clvf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.clvf small:first-child { margin-right: auto; }
.tag.rel1 { background: #d6f6f6; color: #007a7a; } .tag.rel2 { background: #f6dde2; color: #8b1a2e; } .tag.rel3 { background: #fde3dc; color: #a33a22; }
@media (max-width: 899px) {
	.opcols { display: flex; flex-direction: column; }
	.opcol { display: contents; }
	.opcol > .ophead { order: 1; } .opcol > .optargets { order: 2; } .opcol > .oprowscard { order: 3; } .opcol > .opwaitcard { order: 4; }
	.opu .tin { width: 52px; } .opu img { width: 22px; height: 22px; }
	.opfrom { max-width: none; flex: 1; }
}
.abtns .btn { white-space: nowrap; min-width: 0; height: 44px; padding: 0 10px; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .abtns .btn .ic { width: 16px; height: 16px; flex: none; }
.abtns { align-items: center; margin-top: 12px; } .abtns .btn { margin: 0 !important; width: auto; flex: 1 1 0; }

/* rapor: köy gücü */
.loyal { background: #fff; border-radius: 14px; padding: 10px 14px; margin: 10px 0; box-shadow: var(--pshadow); display: flex; flex-direction: column; gap: 6px; }
.loybar { height: 10px; border-radius: 6px; background: var(--surface2); display: flex; overflow: hidden; }
.loybar i { background: #c9962a; } .loybar i.gone { background: #d9583e; opacity: .55; }

/* ---- ordu sayfası (/Army): askerlerim · saldır · hareketler ---- */
.plain.wide.arpage { max-width: 1080px; }
.artop { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.arsec[hidden] { display: none; }
.seg button .bdg[hidden] { display: none; }
.arsec { display: flex; flex-direction: column; gap: 14px; }
.arh { margin: 6px 0 -4px; font: 800 15px var(--sans); color: var(--ink); }
.artiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.artile { background: #fff; border-radius: 16px; box-shadow: var(--pshadow); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.artile b { font: 800 22px var(--sans); font-variant-numeric: tabular-nums; }
.artile span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.artypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.artype { background: #fff; border-radius: 16px; box-shadow: var(--pshadow); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.arpic { width: 52px; height: 52px; border-radius: 12px; background: var(--brown-soft); display: grid; place-items: center; flex: none; }
.arimg { width: 44px; height: 44px; object-fit: contain; }
.artx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.artx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artx small { color: var(--muted); font-size: 12px; }
.arcnt { font: 800 18px var(--sans); color: var(--brown-dark); font-variant-numeric: tabular-nums; }
.arempty { background: #fff; border-radius: 16px; box-shadow: var(--pshadow); padding: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.arempty p { margin: 0; flex: 1; min-width: 200px; }
.arempty .btn, .arvbtns .btn, .araddrow .btn, .arnone .btn { display: inline-flex; align-items: center; gap: 6px; }
.arvills { display: flex; flex-direction: column; gap: 10px; }
.arvill { background: #fff; border-radius: 16px; box-shadow: var(--pshadow); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.arvhd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.arvbtns { display: flex; gap: 6px; }
.archips { display: flex; flex-wrap: wrap; gap: 6px; }
.archip { display: inline-flex; align-items: center; gap: 5px; background: var(--surface2); border-radius: 999px; padding: 3px 10px 3px 4px; font-size: 12.5px; }
.archip b { font-variant-numeric: tabular-nums; }
.archip span { color: var(--muted); }
.arthumb { width: 24px; height: 24px; object-fit: contain; }
.arnote { margin: 0; font-size: 12.5px; color: var(--muted); }
.arcard { background: #fff; border-radius: 18px; box-shadow: var(--pshadow); padding: 14px 16px; }
.arcard h3 { margin: 0 0 10px; font: 800 16px var(--sans); color: var(--ink); }
.arcard h3.bad { color: var(--rust); }
.araddrow { display: flex; gap: 8px; flex-wrap: wrap; }
.araddrow .tin { flex: 1; min-width: 140px; height: 42px; font: 700 16px var(--sans); }
.artargets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.artgt { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 12px; background: var(--surface2); font-size: 13px; max-width: 100%; }
.artgt small { color: var(--muted); }
.artgt .opx { width: 24px; height: 24px; background: #fff; }
.arrows { display: flex; flex-direction: column; gap: 10px; }
.arrow { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.arrhd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.arfrom { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.arfrom .tin { height: 34px; max-width: 260px; font-size: 13px; }
.arquick { display: flex; gap: 6px; flex-wrap: wrap; }
.arunits { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.arunit { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 12px; background: var(--surface2); border: 1.5px solid transparent; }
.arunit.on { border-color: var(--brown-mid); background: var(--brown-soft); }
.arun { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.arun b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arun small { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.arunit .tin { width: 70px; height: 32px; padding: 0 6px; font-size: 14px; text-align: right; flex: none; }
.arnone { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.arstat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.arstat em { font-style: normal; font-weight: 800; color: var(--brown); }
.arstat .tag { font-style: normal; }
.armode { margin: 0 0 8px; }
.arat { display: flex; gap: 8px; margin-bottom: 6px; }
.arat[hidden] { display: none; }
.arat .tin { height: 40px; }
.argo { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; font-size: 15px; margin-top: 10px; }
.argo.dim { opacity: .55; }
.arsum { margin: 6px 0 0; text-align: center; }
.aradv { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.aradv summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.aradvin { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.armv { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.armv .mico { width: 32px; height: 32px; border-radius: 10px; background: var(--brown-soft); color: var(--brown); display: grid; place-items: center; flex: none; }
.armv.red .mico { background: var(--rust-soft); color: var(--rust); }
.armv .mico .ic { width: 16px; height: 16px; }
.arcd { font-weight: 800; color: var(--brown); font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.mvnew { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 10px; flex: none; }
@media (max-width: 699px) {
	.artiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.arvbtns { width: 100%; }
	.arvbtns .btn { flex: 1; justify-content: center; }
	.arunits { grid-template-columns: 1fr; }
	.arrhd .artx { flex: 1 1 0; }
	.arrhd .opx { order: 2; }
	.arfrom { order: 3; flex: 1 1 100%; }
	.arfrom .tin { flex: 1; max-width: none; }
}

/* ---- ordu > saldır: solda hedef listesi, sağda her saldırıya kare kart ---- */
.plain.wide.arpage { max-width: 1320px; }
.arsec.aratk { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
.arsec.aratk[hidden] { display: none; }   /* sekme gizliyken görünmesin (grid, hidden'ı eziyordu) */
.arleft { position: sticky; top: 12px; }
.araddrow .btn { width: 44px; height: 42px; padding: 0; justify-content: center; flex: none; }
.araddrow .btn .ic { width: 18px; height: 18px; }
.arlist { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 8px; }
.arli { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.arli:hover { border-color: var(--brown-mid); }
.arli.off { opacity: .6; cursor: default; }
.arli.ready { background: var(--green-soft); border-color: transparent; }
.arli .tag { flex: none; }
/* klan saldırıları: arkadaşların planına katılma */
.arclan { margin-top: 12px; }
.arclan h3 { display: flex; align-items: center; gap: 8px; }
.arclan h3 svg { width: 18px; height: 18px; color: var(--brown-mid); }
.arcp { cursor: default; align-items: flex-start; }
.arcp .btn { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 4px; }
.arcp .btn svg { width: 14px; height: 14px; }
.arwho { display: flex; align-items: center; gap: 4px; }
.arwho svg { width: 13px; height: 13px; flex: none; }
.arwho span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arcd { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brown-mid) !important; }
.arjoin { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #eef4ea; color: #2f6b3a; font-size: 12.5px; font-weight: 600; }
.arjoin svg { width: 14px; height: 14px; flex: none; }
.arvi { width: 36px; height: 36px; border-radius: 11px; background: var(--brown-soft); color: var(--brown); display: grid; place-items: center; flex: none; }
.arvi .ic { width: 18px; height: 18px; }
.arvi.barb { background: #ebe7e0; color: #6f6a62; }
.arvi.eye { background: #e6eefb; color: #2f5fa0; }
.arcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.arac { display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent; transition: border-color .3s; }
.arac.ready { border-color: var(--green-soft); }
.arac.flash { border-color: var(--brown-mid); }
.arach { display: flex; align-items: center; gap: 10px; }
.arac .arkind { margin: 0; align-self: flex-start; }
.arac .arfrom { flex-wrap: nowrap; }
.arac .arfrom .tin { flex: 1; max-width: none; }
.arac .arunits { grid-template-columns: 1fr; }
.artime { display: flex; align-items: center; gap: 6px; }
.artime .artl { font-size: 12px; font-weight: 700; color: var(--muted); flex: none; }
.artime .tin { flex: 1; min-width: 0; height: 38px; }
.arbtns { display: flex; gap: 8px; }
.arbtns .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; }
.arbtns .btn.dim { opacity: .55; }
.arready { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.arready > div { background: var(--surface2); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.arready small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.arready b { font: 800 18px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.arnote.ready { color: var(--green); font-weight: 700; }
.arhint { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.arhint .ic { width: 28px; height: 28px; color: var(--brown-mid); }
.arhint p { margin: 0; }
@media (max-width: 899px) {
	.arsec.aratk { grid-template-columns: 1fr; }
	.arleft { position: static; }
	.arcards { grid-template-columns: 1fr; }
}

/* ---- dünya: sıralama paneli (masaüstünde sağda, telefonda pencere) ---- */
.rankp { position: absolute; top: 16px; right: 16px; bottom: 92px; width: 380px; z-index: 15; background: #fff; border-radius: 20px; box-shadow: var(--pshadow); display: flex; flex-direction: column; padding: 14px 14px 0; gap: 10px; }
.rankp[hidden], .rankback[hidden] { display: none; }
.rkph { display: flex; align-items: center; gap: 10px; }
.rkph .rtx { flex: 1; display: flex; align-items: center; gap: 10px; }
.rkph h3 { margin: 0; font: 800 18px var(--sans); }
.rankp .seg { margin: 0; }
.rankp .rkq { height: 38px; }
.rkme2 { display: flex; align-items: center; gap: 12px; margin: 0 -14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff8e8, #fff1d6); border-radius: 0 0 20px 20px; }
.rkme2 .rkmebig { width: 52px; height: 52px; border-radius: 16px; background: var(--brown); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; box-shadow: 0 4px 10px rgba(90, 58, 30, .25); }
.rkme2 .rkmebig small { font-size: 9.5px; font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: .4px; }
.rkme2 .rkmebig b { font: 800 20px/1 var(--sans); }
.rkme2 .rkmetx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rkme2 .rkmetx b { font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rkme2 .rkmetx small { font-size: 12px; color: var(--gold-ink); font-weight: 700; }
.rkme2 .rkmept { text-align: right; }
.rkme2 .rkmept b { display: block; font: 800 20px var(--sans); color: var(--brown-dark); font-variant-numeric: tabular-nums; }
.rkme2 .rkmept small { font-size: 11px; color: var(--muted); font-weight: 700; }
.rkme2[hidden] { display: none; }
.rklist { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -14px; padding: 0 10px 6px; }
.rkr { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) 62px 62px; align-items: center; gap: 8px; padding: 8px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.rklist .rkr:last-child { border-bottom: 0; }
.rkr:hover { background: var(--surface2); }
.rkr.me { background: var(--gold-soft); }
.rkr.sel { background: #e3f2fd; box-shadow: inset 3px 0 0 #1da1f2; }
.rkhd2 { cursor: default; padding: 4px 8px 8px; border-bottom: 2px solid var(--line); font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.rkhd2:hover { background: none; }
.rkr .rkn { font: 800 13px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.rklist .rkr .rkn { width: 30px; height: 30px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; }
.rklist .rkr.top1 .rkn { background: linear-gradient(160deg, #ffe07a, #e0a91c); color: #5a3a00; box-shadow: 0 2px 6px rgba(224, 169, 28, .45); }
.rklist .rkr.top2 .rkn { background: linear-gradient(160deg, #eef1f4, #b8c0c8); color: #3c444c; }
.rklist .rkr.top3 .rkn { background: linear-gradient(160deg, #f3c9a0, #c4834a); color: #4a2a10; }
.rkr .rknm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rkr .rknm b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rkr .rknm small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.rkr .rkdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.rkr .rktag { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--brown); flex: none; }
.rkr .rkpt { font: 800 13px var(--sans); font-variant-numeric: tabular-nums; text-align: right; }
.rkr .rkvc { font: 700 12.5px var(--sans); font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); white-space: nowrap; }
.rkhd2 .rkvc, .rkhd2 .rkpt { font-size: 11px; font-weight: 800; color: var(--muted); }
.rkr.up { animation: rkUp 1.6s ease-out; } .rkr.down { animation: rkDown 1.6s ease-out; }
@keyframes rkUp { 0% { background: #dff3e2; } 100% { background: transparent; } }
@keyframes rkDown { 0% { background: #fde3dc; } 100% { background: transparent; } }
.markchip { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; box-shadow: var(--pshadow); padding: 5px 6px 5px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.markchip[hidden] { display: none; }
.markchip > i { width: 12px; height: 12px; border-radius: 50%; border: 3px solid #1da1f2; }
.markchip .opx { width: 26px; height: 26px; border-radius: 50%; }
@media (min-width: 900px) {
	body.pg-world .has-rank .fabs { right: 412px; }
	body.pg-world .has-rank.has-panel .fabs { right: 432px; }
}
@media (max-width: 899px) {
	.rankback { display: none !important; }
	/* alçak pencere: üstte harita görünür, tıklanan yer orada işaretlenir */
	.rankp { position: fixed; left: 0; right: 0; top: 46%; bottom: calc(var(--nav) + env(safe-area-inset-bottom)); width: auto; border-radius: 22px 22px 0 0; z-index: 41; box-shadow: 0 -8px 30px rgba(42, 32, 24, .18); }
	.rkme2 { border-radius: 0; padding-bottom: 12px; }
	/* telefonda sıkı başlık: liste daha çok satır gösterir */
	.rankp { top: 42%; gap: 8px; padding-top: 10px; }
	.rkph h3 { font-size: 16px; }
	.rkph .pclose { width: 34px; height: 34px; }
	.rankp .seg button { height: 32px; }
	.rankp .rkq { height: 34px; }
	.rankp .rkhd2 { display: none; }
	.rklist .rkr { padding: 7px 8px; }
	.rklist .rkr .rkn { width: 26px; height: 26px; }
	.rkme2 { padding: 8px 14px; }
	.rkme2 .rkmebig { width: 44px; height: 44px; border-radius: 13px; }
	.rkme2 .rkmebig b { font-size: 17px; }
	.markchip { top: 64px; max-width: calc(100% - 24px); }
}

/* ---- rapor ayrıntısı (yeni): başlık, özet kutuları, taraf kartları, yağma kartı ---- */
.rv2 { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rhero { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; color: #fff; box-shadow: var(--pshadow); }
.rhero.win { background: linear-gradient(135deg, #2f8f55, #1e6b3f); }
.rhero.lose { background: linear-gradient(135deg, #c4523a, #8f2f1f); }
.rhero.info { background: linear-gradient(135deg, #8a5a2b, #5e3c1b); }
.rhico { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.rhico .ic { width: 26px; height: 26px; color: #fff; }
.rhtx { min-width: 0; flex: 1; }
.rhtx h2 { margin: 0; font: 800 21px var(--sans); color: #fff; }
.rhtx p { margin: 2px 0 6px; color: rgba(255,255,255,.88); font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rhmeta { display: flex; flex-wrap: wrap; gap: 6px; }
.rhmeta span { background: rgba(255,255,255,.16); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; }
.rconq { display: flex; align-items: center; gap: 10px; background: var(--gold-soft); color: var(--gold-ink); border-radius: 14px; padding: 10px 14px; }
.rconq .ic { width: 20px; height: 20px; }
.rtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.rtile { background: #fff; border-radius: 16px; box-shadow: var(--pshadow); padding: 10px 14px; display: flex; flex-direction: column; gap: 1px; border-top: 4px solid var(--line); }
.rtile span { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.rtile b { font: 800 20px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.rtile small { font-size: 12px; color: var(--muted); font-weight: 600; }
.rtile.att { border-top-color: #2f6fb0; } .rtile.def { border-top-color: #c4523a; } .rtile.loot { border-top-color: #c9962a; } .rtile.loy { border-top-color: #7b57c4; }
.rcard { background: #fff; border-radius: 18px; box-shadow: var(--pshadow); padding: 12px 14px; min-width: 0; }
.rch { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.rch > .ic { width: 18px; height: 18px; color: var(--brown); }
.rch > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rch small { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.rch b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rch .rtot { font: 800 15px var(--sans); color: var(--brown-dark); font-variant-numeric: tabular-nums; }
.rdotc { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.rside.att .rdotc { background: #2f6fb0; } .rside.def .rdotc { background: #c4523a; }
.rsides { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.rurow { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.rurow:last-child { border-bottom: 0; }
.rupic { width: 34px; height: 38px; object-fit: contain; flex: none; background: var(--brown-soft); border-radius: 10px; padding: 2px; }
.rumid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rutop { display: flex; align-items: baseline; gap: 8px; }
.rutop > b { flex: 1; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.runums { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.runums b { font-size: 13.5px; } .runums b.ok { color: var(--green); } .runums b.bad { color: var(--rust); }
.rubar { height: 6px; border-radius: 3px; background: var(--surface2); display: flex; overflow: hidden; }
.rubar i { background: #3f9a5f; } .rubar i.dead { background: #d9583e; opacity: .75; }
.rulost { width: 48px; text-align: right; font: 800 13px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.rulost.bad { color: var(--rust); }
.rlgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 6px; }
.rlres { background: var(--surface2); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rltop { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.rltop .ic { width: 18px; height: 18px; }
.rlres > b { font: 800 18px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.rlres > b.ok { color: var(--green); }
.rlres small { font-size: 11px; color: var(--muted); }
.rlbar { height: 5px; border-radius: 3px; background: rgba(90,58,30,.12); overflow: hidden; }
.rlbar i { display: block; height: 100%; background: #c9962a; }
.rlbar.wide { height: 8px; margin-top: 6px; }
.rcap { margin-top: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.loyal2 .loybar { height: 12px; margin: 6px 0; }
.loyal2 small { display: block; }
.rinfo { display: flex; flex-wrap: wrap; gap: 8px; }
.rchip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; box-shadow: var(--pshadow); padding: 6px 12px; font-size: 12.5px; font-weight: 700; }
.rchip .ic { width: 15px; height: 15px; color: var(--brown); }
.rchip.bad { color: var(--rust); } .rchip.bad .ic { color: var(--rust); }
.rv2 .btns { margin-top: 2px; }
.rv2 .btns .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
@media (max-width: 699px) {
	.rhero { padding: 14px; gap: 12px; border-radius: 18px; }
	.rhico { width: 40px; height: 40px; }
	.rhtx h2 { font-size: 18px; }
	.rtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.rtiles .rtile:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.rtile b { font-size: 17px; }
	.rsides { grid-template-columns: 1fr; }
	.rlgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* ---- rapor: sıkı görünüm (12 birlik türü de sığsın) ---- */
.rv2 { gap: 10px; }
.rhero { padding: 10px 14px; gap: 12px; border-radius: 16px; }
.rhico { width: 38px; height: 38px; }
.rhico .ic { width: 20px; height: 20px; }
.rhtx h2 { font-size: 17px; }
.rhtx p { margin: 1px 0 4px; font-size: 12.5px; }
.rhmeta span { font-size: 11px; padding: 1px 8px; }
.rtiles { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.rtile { padding: 7px 11px; border-radius: 13px; border-top-width: 3px; }
.rtile span { font-size: 10.5px; }
.rtile b { font-size: 16px; }
.rtile small { font-size: 11px; }
.rcard { padding: 10px 12px; border-radius: 16px; }
.rch { padding-bottom: 6px; margin-bottom: 8px; }
.rch b { font-size: 14px; }
.rsides { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; align-items: start; }
.rugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.rut { position: relative; display: flex; align-items: center; gap: 6px; background: var(--surface2); border-radius: 10px; padding: 5px 6px 9px; min-width: 0; }
.rut.wiped { background: #fbe9e4; }
.rut .rupic { width: 26px; height: 30px; border-radius: 7px; padding: 1px; background: #fff; }
.rutx { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.rutx small { font-size: 10.5px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rutn { display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rutn b { font: 800 14px var(--sans); color: var(--ink); }
.rutn span { font-size: 11px; color: var(--muted); }
.rutn em { margin-left: auto; font-style: normal; font: 800 11px var(--sans); color: var(--rust); }
.rut .rubar { position: absolute; left: 6px; right: 6px; bottom: 3px; height: 3px; }
.rlgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-top: 0; }
.rlres { padding: 7px 8px; border-radius: 11px; gap: 3px; }
.rltop { font-size: 11px; }
.rltop .ic { width: 15px; height: 15px; }
.rlres > b { font-size: 15px; }
.rlres small { font-size: 10px; }
.rcap { margin-top: 8px; font-size: 11.5px; }
.rlbar.wide { height: 6px; }
.rinfo { gap: 6px; }
.rchip { padding: 4px 10px; font-size: 11.5px; }
@media (max-width: 699px) {
	.rhero { padding: 10px 12px; }
	.rhtx h2 { font-size: 16px; }
	.rtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
	.rtiles .rtile:last-child:nth-child(odd) { grid-column: auto; }
	.rtile { padding: 6px 8px; }
	.rtile b { font-size: 14px; }
	.rtile span, .rtile small { font-size: 9.5px; }
	.rugrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
	.rut { flex-direction: column; align-items: stretch; gap: 2px; padding: 5px 5px 8px; text-align: center; }
	.rut .rupic { align-self: center; width: 24px; height: 28px; }
	.rutn { justify-content: center; }
	.rutn em { margin-left: 3px; }
	.rlgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
	.rlres { padding: 6px; }
	.rlres > b { font-size: 13px; }
	.rlres small { display: none; }
	.rltop span { display: none; }
}

/* raporlar: sekme çubuğu kaldırıldı (planlar Ordu sayfasında) */
.rtabs[hidden] { display: none !important; }

/* ordu > saldır: asker sayısı için − / + */
.arstep { display: flex; align-items: center; gap: 4px; flex: none; }
.arstep .tin { width: 60px !important; height: 34px; text-align: center !important; padding: 0 4px; -moz-appearance: textfield; }
.arstep .tin::-webkit-outer-spin-button, .arstep .tin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.arsb { width: 32px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--brown-dark); font: 800 18px/1 var(--sans); padding: 0; cursor: pointer; touch-action: manipulation; user-select: none; }
.arsb:hover { background: var(--brown-soft); }
.arsb:active { transform: scale(.94); }

/* ---- köy değiştirici (üst bar) ---- */
.vsw { position: relative; flex: none; }
.vswb { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); color: var(--brown-dark); font: 800 13px var(--sans); cursor: pointer; max-width: 200px; }
.vswb:hover, .vsw.open .vswb { background: var(--brown-soft); border-color: var(--brown-mid); }
.vswb .ic { width: 18px; height: 18px; color: var(--brown); flex: none; }
.vswn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vswc { font-style: normal; min-width: 18px; height: 18px; border-radius: 9px; background: var(--brown); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; flex: none; }
.vswa { font-style: normal; font-size: 11px; color: var(--muted); flex: none; }
.vswm { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: 260px; max-height: 60vh; overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 12px 32px rgba(42, 32, 24, .22); padding: 6px; }
.vswm[hidden] { display: none; }
.vswh { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; padding: 6px 8px 4px; }
.vswi { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 12px; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.vswi:hover { background: var(--surface2); }
.vswi.on { background: var(--brown-soft); }
.vswic { width: 32px; height: 32px; border-radius: 10px; background: var(--surface2); display: grid; place-items: center; flex: none; }
.vswi.on .vswic { background: var(--brown); }
.vswic .ic { width: 16px; height: 16px; color: var(--brown); }
.vswi.on .vswic .ic { color: #fff; }
.vswt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vswt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vswt small { font-size: 11.5px; color: var(--muted); }
.vswok { font-style: normal; font-weight: 800; color: var(--brown); }
@media (max-width: 699px) {
	.vswb { height: 34px; padding: 0 8px; max-width: 120px; }
	.vswm { width: min(280px, calc(100vw - 24px)); }
}
/* masaüstü: sol blok ortadaki kaynak şeridine taşmasın */
@media (min-width: 900px) { .topbar .tb-l { max-width: calc(50vw - 330px); } .topbar .tb-l .tb-tx { min-width: 0; overflow: hidden; } .vswb { max-width: 170px; } }
/* hedef listesinde +: aynı hedefe başka köyden de saldırı */
.arli .aradd { background: var(--brown); color: #fff; flex: none; }
.arli .aradd:hover { background: var(--brown-dark); }
.arli.ready .aradd { background: #2f7a45; }
/* ---- ordu > genel bakış: bütün köylerim tek listede (asker, nüfus, durum) ---- */
.ovtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ovtile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 0; border-radius: 18px; box-shadow: var(--pshadow); text-align: left; font: inherit; color: var(--ink); }
button.ovtile { cursor: pointer; }
.ovti { width: 40px; height: 40px; border-radius: 12px; background: var(--brown-soft); color: var(--brown); display: grid; place-items: center; flex: none; }
.ovti .ic { width: 20px; height: 20px; }
.ovtile b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.ovtile div span { font-size: 12.5px; color: var(--muted); }
.ovtile.bad { background: var(--rust-soft); }
.ovtile.bad .ovti { background: var(--rust); color: #fff; }
.ovtile.bad b, .ovtile.bad div span { color: var(--rust); }
.ovbox { margin-bottom: 16px; }
.ovbox h3 { margin: 0 0 6px; }
.ovr { display: grid; grid-template-columns: minmax(0, 1.6fr) 120px minmax(140px, 1fr) minmax(150px, 1fr); align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.ovr:last-child { border-bottom: 0; }
.ovhead { font-size: 11.5px; font-weight: 800; color: var(--muted); border-bottom: 2px solid var(--line); padding-top: 2px; }
.ovr.danger { box-shadow: inset 3px 0 0 var(--rust); }
.ovn { display: flex; align-items: center; gap: 6px; }
.ovn .ic { width: 16px; height: 16px; color: var(--brown-mid); }
.ovn b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ovpop b { font-size: 13px; font-variant-numeric: tabular-nums; }
.ovbar { display: block; height: 5px; border-radius: 3px; background: var(--line); margin-top: 4px; overflow: hidden; max-width: 160px; }
.ovbar i { display: block; height: 100%; background: var(--brown-mid); border-radius: 3px; }
.ovpop.full b { color: var(--rust); }
.ovpop.full .ovbar i { background: var(--rust); }
.ovst { display: flex; flex-wrap: wrap; gap: 4px; }
.ovst .tag { font-style: normal; font-size: 11.5px; }
.ovst .tag.bad { background: var(--rust); color: #fff; }
.ovst .tag.warn { background: #ffe7c7; color: #9a5a12; }
.ovst .tag.soft { background: var(--surface2); color: var(--muted); }
.ovst2 { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ovst2:last-child { border-bottom: 0; }
.ovroute { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ovstop { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ovstop > div { min-width: 0; display: flex; flex-direction: column; }
.ovstop small { font-size: 11px; color: var(--muted); font-weight: 700; }
.ovstop b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovstop em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.ovsi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ovsi .ic { width: 17px; height: 17px; }
.ovstop.at .ovsi { background: #e3f3f1; color: #2f8f88; }
.ovstop.home .ovsi { background: var(--brown-soft); color: var(--brown); }
.ovarrow { color: var(--brown-mid); flex: none; transform: scaleX(-1); }
.ovarrow .ic { width: 18px; height: 18px; }
.ovwd { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ovwd .ic { width: 15px; height: 15px; }
@media (max-width: 760px) {
	.ovtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.ovhead { display: none; }
	.ovr { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 4px; }
	.ovr .ovpop { grid-column: 1; }
	.ovr .ovst { grid-column: 2; justify-content: flex-end; }
	.ovr .ovn { justify-self: end; }
	.ovst2 { flex-direction: column; align-items: stretch; }
	.ovwd { justify-content: center; }
}
/* ---- Hesap sayfası: ortalanmış, üstte oyuncu kartı, altta iki sütun ---- */
.acc2 { max-width: 1120px; margin: 0 auto; padding: 22px 24px 120px; display: flex; flex-direction: column; gap: 18px; }
.acchero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 18px 20px; background: #fff; border-radius: 22px; box-shadow: var(--pshadow); }
.accav { width: 64px; height: 64px; border-radius: 20px; background: var(--brown); color: #fff; display: grid; place-items: center; font: 800 28px var(--sans); }
.accnm { display: flex; align-items: center; gap: 8px; }
.accnm b { font-size: 20px; font-weight: 800; }
.acchtx small { color: var(--muted); font-size: 13px; }
.accstats { display: flex; gap: 8px; }
.accstat { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: var(--surface2); min-width: 0; }
.accstat b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; }
.accstat small { display: block; font-size: 11px; color: var(--muted); }
.accsi { width: 32px; height: 32px; border-radius: 10px; background: var(--brown-soft); color: var(--brown); display: grid; place-items: center; flex: none; }
.accstat .accsi { background: #fff; }
.accsi .ic { width: 16px; height: 16px; }
.accacts { display: flex; gap: 8px; }
.accacts .btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; text-decoration: none; }
.accacts .btn .ic { width: 15px; height: 15px; }
.acclogout { color: var(--rust); }
.acccols { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
.acccol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.acccard { background: #fff; border-radius: 18px; box-shadow: var(--pshadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.acctx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acctx b { font-size: 15px; font-weight: 800; }
.acctx small { font-size: 12.5px; color: var(--muted); }
.accsw { display: grid; grid-template-columns: repeat(5, 36px); gap: 10px; }
.accsw .sw { margin: 0; }
.accwrow { display: none; }
.accdanger { border: 1px solid #f1d2c7; box-shadow: none; background: #fffaf7; }
.accbad { background: #fff; color: var(--rust); border: 1px solid #efc4b6; height: 40px; font-weight: 800; }
.accbad:hover { background: var(--rust-soft); }
.accwh h2 { font-size: 20px; margin: 2px 0 0; }
.accwh p { margin: 2px 0 12px; }
.acc2 .wgrid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.acc2 .wcard2 { flex-direction: column; align-items: stretch; padding: 14px; }
.acc2 .wcard2.cur { padding: 13px; }
.acc2 .wcard2 .btn { width: 100%; height: 38px; }
@media (max-width: 1000px) {
	.acchero { grid-template-columns: auto minmax(0, 1fr) auto; }
	.accstats { grid-column: 1 / -1; grid-row: 2; }
	.accstat { flex: 1; }
}
@media (max-width: 899px) {
	.acc2 { padding: 14px 14px 110px; gap: 12px; }
	.acchero { grid-template-columns: auto minmax(0, 1fr); padding: 14px; gap: 12px; }
	.accav { width: 52px; height: 52px; font-size: 22px; border-radius: 16px; }
	.accnm b { font-size: 17px; }
	.accacts { grid-column: 1 / -1; }
	.accacts .btn { flex: 1; justify-content: center; }
	.accstat { padding: 7px 8px; gap: 6px; }
	.accstat .accsi { width: 26px; height: 26px; }
	.acccols { grid-template-columns: 1fr; gap: 12px; }
	.accworlds { display: none; }
	.accwrow { display: flex; flex-direction: row; align-items: center; }
	.accwrow .acctx { flex: 1; }
	.accsw { grid-template-columns: repeat(5, 1fr); justify-items: center; }
}
/* ---- Pazar: erzak gönderme ---- */
.mkt { display: flex; flex-direction: column; gap: 12px; }
.mkbox { background: var(--surface2); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mkbox h4 { margin: 0; font-size: 13.5px; font-weight: 800; }
.mkrow { display: flex; gap: 6px; }
.mkrow .tin { flex: 1; min-width: 0; height: 40px; background: #fff; }
.mkrow .btn { width: 44px; height: 40px; padding: 0; justify-content: center; flex: none; }
.mkchips { display: flex; flex-wrap: wrap; gap: 6px; }
.mkchip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 700 12.5px var(--sans); color: var(--ink); cursor: pointer; }
.mkchip .ic { width: 13px; height: 13px; color: var(--brown); }
.mkchip:hover, .mkchip.on { border-color: var(--brown-mid); background: var(--brown-soft); }
.mkinfo { display: flex; align-items: center; gap: 8px; min-height: 34px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.mkinfo .tag { flex: none; font-style: normal; }
.mktx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mktx b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mktx small { font-size: 12px; color: var(--muted); }
.mkres { display: grid; grid-template-columns: 28px 64px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.mkri { width: 28px; height: 28px; border-radius: 8px; background: #fff; display: grid; place-items: center; }
.mkri .ic { width: 16px; height: 16px; }
.mkrn { font-size: 13px; font-weight: 700; }
.mkres .tin { height: 36px; background: #fff; text-align: right; min-width: 0; }
.mktot { font-size: 12.5px; font-weight: 800; color: var(--brown); text-align: right; min-height: 16px; }
.mksend { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mksend .ic { width: 16px; height: 16px; }
.mktr { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px 10px; }
.mkti { width: 30px; height: 30px; border-radius: 9px; background: var(--brown-soft); color: var(--brown); display: grid; place-items: center; flex: none; }
.mkti .ic { width: 15px; height: 15px; }
.mktr.in .mkti { background: var(--green-soft); color: var(--green); }
.mkgoods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.mkgoods span { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; }
.mkgoods .ic { width: 13px; height: 13px; }
.mktr .cd { font: 800 12.5px var(--sans); color: var(--brown); font-variant-numeric: tabular-nums; flex: none; }

/* ---------------------------------------------------------------- seviye sistemi: yükseltme yuvaları, seviye kartı, Binalar listesi */
#hres .res.full b { color: #b3362c; }
#hres .rstore .rv small { color: var(--muted, #8a7458); }
.upq { width: 188px; background: rgba(255, 250, 238, .94); border: 1px solid rgba(120, 84, 40, .22); border-radius: 14px; padding: 7px; box-shadow: 0 3px 12px rgba(60, 40, 20, .18); display: flex; flex-direction: column; gap: 5px; }
.upqh { font: 700 11px system-ui, sans-serif; color: #7a5a32; letter-spacing: .02em; padding: 0 3px; }
.upqs { position: relative; display: flex; align-items: center; gap: 7px; padding: 5px 7px 8px; border-radius: 10px; border: 1px solid rgba(120, 84, 40, .18); background: #fdf6e6; color: #4a3220; font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.upqs.empty { border-style: dashed; background: transparent; color: #9a8466; font: 600 12px system-ui, sans-serif; padding: 7px; justify-content: center; }
.upqs.empty .ico { width: 16px; height: 16px; }
.upqi { width: 34px; height: 28px; object-fit: contain; flex: none; }
.upqt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.upqt b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upqt small { font: 700 11px system-ui, sans-serif; color: #a0662a; font-variant-numeric: tabular-nums; }
.upqb { position: absolute; left: 7px; right: 7px; bottom: 3px; height: 3px; border-radius: 2px; background: rgba(120, 84, 40, .15); overflow: hidden; }
.upqb i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e9b957, #c98f2f); transition: width .9s linear; }
@media (max-width: 720px) { .upq { width: 150px; } .upqi { width: 28px; } }

.lvup { padding: 12px; }
.lvtop { display: flex; align-items: center; gap: 12px; }
.lvnum { display: flex; align-items: baseline; gap: 3px; background: linear-gradient(#6b4a2a, #4a3220); color: #ffe9a8; border-radius: 12px; padding: 6px 11px; }
.lvnum b { font: 700 24px Georgia, serif; }
.lvnum small { font: 600 12px system-ui, sans-serif; opacity: .8; }
.lvtx { display: flex; flex-direction: column; gap: 2px; }
.lvtx b { font-size: 15px; }
.lveff { font: 600 13px system-ui, sans-serif; color: #5d7a2e; }
.lveff.up { margin: 0 0 6px; }
.lvbar { height: 6px; border-radius: 4px; background: rgba(120, 84, 40, .14); overflow: hidden; margin: 10px 0 6px; }
.lvbar i { display: block; height: 100%; background: linear-gradient(90deg, #c9a24a, #e9c45a); }
.lvrun { display: flex; align-items: center; gap: 7px; font-weight: 600; margin-top: 8px; }
.lvrun .cd { margin-left: auto; font-variant-numeric: tabular-nums; color: #a0662a; font-weight: 700; }
.lvnext { border-top: 1px dashed rgba(120, 84, 40, .25); margin-top: 8px; padding-top: 8px; }
.lvcost { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.lvup .tag.ok { display: inline-block; margin-top: 6px; }

.blist { display: flex; flex-direction: column; gap: 6px; }
.brow { display: flex; align-items: center; gap: 6px; }
.bopen { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 12px; border: 1px solid rgba(120, 84, 40, .18); background: linear-gradient(#fdf8ec, #f3e7cd); color: #4a3220; font: inherit; text-align: left; cursor: pointer; }
.brow.zero .bopen { background: #f6efe0; border-style: dashed; }
.bthumb { width: 46px; height: 38px; object-fit: contain; flex: none; }
.btx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.btx b { font-size: 14px; }
.btx small { font-size: 12px; color: #8a7458; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.btx small .cd { color: #a0662a; font-weight: 700; }
.btx .costs { font-size: 12px; }
.blv { flex: none; min-width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f3e2b0; border: 1px solid rgba(120, 84, 40, .25); font: 700 13px system-ui, sans-serif; }
.blv.max { background: #e9c45a; }
.bup { flex: none; width: 40px; padding: 0; }

/* ---------------------------------------------------------------- dünya haritası: halka menü */
.wring { position: absolute; width: 0; height: 0; z-index: 4; pointer-events: none; }
.wring .wrb { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid #fff6dc; background: #6b4a2a; color: #fff6dc; display: grid; place-items: center; cursor: pointer; pointer-events: auto; box-shadow: 0 3px 10px rgba(40, 24, 8, .35); padding: 0; animation: wrin .18s ease-out both; }
.wring .wrb.pri { background: #b3362c; }
.wring .wrb .ico { width: 20px; height: 20px; }
.wring .wrb em { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 3px; white-space: nowrap; font: 700 11px system-ui, sans-serif; font-style: normal; color: #3a2a18; background: rgba(255, 250, 238, .95); border-radius: 6px; padding: 1px 6px; opacity: 0; transition: opacity .12s; pointer-events: none; }
.wring .wrb:hover em, .wring .wrb:focus-visible em { opacity: 1; }
.wring .wrb:hover { transform: scale(1.08); }
.wring .wrcard { position: absolute; left: 0; top: 34px; transform: translateX(-50%); min-width: 170px; max-width: 260px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(120, 84, 40, .3); background: rgba(255, 250, 238, .97); color: #3a2a18; text-align: left; font: inherit; cursor: pointer; pointer-events: auto; box-shadow: 0 4px 14px rgba(40, 24, 8, .25); }
.wring .wrcard i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.wring .wrcard b { font-size: 13px; }
.wring .wrcard small { flex-basis: 100%; font-size: 11px; color: #7a6448; }
@keyframes wrin { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Dünya: büyük harita penceresi, radar düğmesi, başlangıç yönü ---- */
.radar .bigbtn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-height: 32px; border-radius: 10px; font-size: 13px; }
.radar .bigbtn .ic { width: 16px; height: 16px; }
.bigmap { position: fixed; inset: 0; z-index: 60; background: rgba(30,22,12,.55); display: grid; place-items: center; padding: 16px; }
.bigmap .bmbox { background: #fff; border-radius: 20px; box-shadow: var(--pshadow); width: min(1180px, 100%); height: min(860px, 100%); display: flex; flex-direction: column; overflow: hidden; }
.bigmap .bmhead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bigmap .bmhead b { font: 800 17px var(--sans); color: var(--ink); }
.bigmap .bmhead small { flex: 1; }
.bigmap .bmbody { flex: 1; min-height: 0; display: flex; gap: 14px; padding: 14px; }
.bigmap .bmhold { flex: 1; min-width: 0; min-height: 0; display: grid; place-items: center; }
.bigmap .bmcv { display: block; border-radius: 14px; touch-action: none; cursor: crosshair; background: #566c32; }
.bigmap .bmside { width: 236px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.bigmap .bmt { font: 800 14px var(--sans); color: var(--ink); margin-bottom: 2px; }
.bigmap .bmclan { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: var(--surface2); font-size: 13px; }
.bigmap .bmclan span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bigmap .bmclan.sm { background: none; padding: 3px 9px; grid-template-columns: 14px 1fr; color: var(--muted); font-weight: 700; font-size: 12px; }
.bigmap .bmclan i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
@media (max-width: 899px) {
  .bigmap { padding: 0; }
  .bigmap .bmbox { border-radius: 0; height: 100%; }
  .bigmap .bmbody { flex-direction: column; padding: 8px; }
  .bigmap .bmhold { flex: none; height: min(calc(100vw - 16px), 62vh); }
  .bigmap .bmside { width: auto; flex: 1; }
}
.chips.dirs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.bigmap .pclose { position: static; flex: none; display: grid; place-items: center; }
.radar .rleg i, .bigmap .bmclan i { box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.areset { margin-top: 28px; padding-top: 18px; border-top: 2px dashed rgba(180,70,40,.35); }
/* ---- Köy: toplanma alanı (meydan) paneli: bina panelleri gibi yanda ---- */
.phead .picon { width: 56px; height: 56px; display: grid; place-items: center; flex: none; color: var(--brown); }
.phead .picon .ic { width: 28px; height: 28px; }
#panel .sect .trow:last-child { margin-bottom: 0; }
#panel .trow .acnt { flex: none; margin-left: auto; }
.abtns.rbtns { margin: 12px 0 16px; padding-right: 0; }
.abtns.rbtns .btn { display: flex; align-items: center; justify-content: center; gap: 6px; }
@media (max-width: 899px) { .atbl td.aspd { display: flex; flex-wrap: wrap; gap: 4px; } }
