*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;overflow:hidden;background:#101b33;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#fff;touch-action:none}
#gameShell{position:fixed;inset:0;overflow:hidden;background:linear-gradient(180deg,#7bf250 0 13%,#314e63 13% 100%);display:block}
#gameCanvas{position:absolute;inset:0;width:100vw;height:100vh;display:none;touch-action:none;z-index:1}
#gameCanvas.is-active{display:block}

.loading-screen{position:fixed;inset:0;z-index:30;display:none;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at 50% 22%,#2c76ff 0,#111c55 38%,#070b20 100%)}
.loading-screen.show{display:flex}
.loading-card{width:min(88vw,460px);text-align:center;border-radius:34px;padding:34px 24px;background:linear-gradient(180deg,rgba(29,48,110,.92),rgba(8,14,42,.96));box-shadow:0 30px 90px rgba(0,0,0,.52),inset 0 1px 0 rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.17)}
.loading-logo-wrap{min-height:110px;display:grid;place-items:center;margin-bottom:10px}
.loading-logo{max-width:min(320px,80vw);max-height:128px;object-fit:contain;filter:drop-shadow(0 10px 20px rgba(0,0,0,.45))}
.loading-title{font-size:clamp(34px,10vw,58px);line-height:.92;font-weight:1000;letter-spacing:-.07em;text-transform:uppercase;color:#fff;text-shadow:0 5px 0 #26316e,0 9px 0 #0c1134,0 16px 26px rgba(0,0,0,.45)}
.loading-subtitle{font-weight:900;color:#dbeafe;margin:8px 0 18px;text-shadow:0 2px 0 rgba(0,0,0,.25)}
.loading-track{height:24px;border-radius:999px;background:#0a112d;border:3px solid rgba(255,255,255,.24);box-shadow:inset 0 4px 9px rgba(0,0,0,.45);overflow:hidden}
.loading-bar{width:0%;height:100%;border-radius:999px;background:linear-gradient(180deg,#fff36d,#ffb100 55%,#ff6b00);box-shadow:0 0 18px rgba(255,202,0,.75);transition:width .22s ease}
.loading-percent{margin-top:10px;font-weight:950;color:#fff;font-size:18px;text-shadow:0 2px 0 rgba(0,0,0,.35)}

.lobby-screen{position:fixed;inset:0;display:none;z-index:20;overflow:hidden;background:#a8efff;touch-action:manipulation}
.lobby-screen.show{display:block}
.lobby-bg{position:absolute;inset:0;background:linear-gradient(180deg,#ffe24b 0 9%,#aaf6ff 9% 29%,#9cf266 29% 100%);background-size:cover;background-position:center;transform:scale(1.02)}
.lobby-bg::before{content:"";position:absolute;inset:9% 0 auto;height:26%;background:linear-gradient(180deg,rgba(255,255,255,.75),rgba(255,255,255,0));pointer-events:none}
.lobby-bg::after{content:"";position:absolute;left:-18%;right:-18%;top:35%;height:86%;background:radial-gradient(ellipse at 22% 20%,#67c954 0 13%,transparent 14%),radial-gradient(ellipse at 77% 18%,#59be55 0 12%,transparent 13%),linear-gradient(90deg,#79d65d 0 22%,#b77a4f 22% 27%,#86e85d 27% 73%,#b97b4f 73% 78%,#81da5d 78% 100%);opacity:.96;pointer-events:none}
.lobby-safe{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 14px calc(env(safe-area-inset-bottom) + 12px)}
.lobby-top{height:78px;display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:10px;padding-top:10px}
.lobby-top-minimal .lobby-title-box[hidden]{display:none!important}
.lobby-top-minimal .lobby-title-box{display:block}
.lobby-top-fill{min-width:0}
.round-menu{width:56px;height:56px;border-radius:50%;border:3px solid #7f6bb0;background:linear-gradient(180deg,#fff,#dad8ff);box-shadow:0 7px 0 #7d70aa,0 12px 24px rgba(0,0,0,.2);font-size:27px;color:#62518f;padding:0}
.lobby-title-box{text-align:center;min-width:0}
.lobby-logo{max-width:min(250px,58vw);max-height:76px;object-fit:contain;filter:drop-shadow(0 8px 10px rgba(0,0,0,.35));margin:0 auto;display:block}
.lobby-title{font-size:clamp(25px,7.2vw,42px);line-height:.96;font-weight:1000;letter-spacing:-.055em;text-transform:uppercase;color:#fff;text-shadow:0 4px 0 #7020aa,0 7px 0 #29115f,0 11px 20px rgba(0,0,0,.35)}
.lobby-subtitle{font-size:13px;font-weight:900;color:#31235f;background:rgba(255,255,255,.72);border-radius:99px;padding:4px 10px;display:inline-block;margin-top:5px}
.coin-pill{white-space:nowrap;min-width:76px;border-radius:22px;padding:10px 12px;text-align:center;font-weight:1000;color:#352066;background:linear-gradient(180deg,#fff5a8,#ffb928);border:3px solid #6d337f;box-shadow:0 5px 0 #5e2c78,0 12px 20px rgba(0,0,0,.18)}
.lobby-banner{min-height:86px;border-radius:26px;margin:2px 2px 8px;padding:15px 18px;display:flex;align-items:center;background:linear-gradient(100deg,#5b26d8,#0c8fed 44%,#f96bc5);border:4px solid #ffbf21;box-shadow:0 7px 0 #b06500,0 15px 28px rgba(49,23,106,.28);overflow:hidden;position:relative}
.lobby-banner::after{content:"";position:absolute;right:-24px;top:-18px;width:136px;height:136px;border-radius:50%;background:radial-gradient(circle,#fff 0 5%,#9eefff 6% 13%,#6c5bff 14% 20%,#ff8ce7 21% 28%,#fff 29% 32%,transparent 33%);opacity:.62}
.lobby-banner b{display:block;font-size:clamp(26px,7vw,38px);line-height:.9;text-transform:uppercase;text-shadow:0 4px 0 #32126d,0 7px 12px rgba(0,0,0,.45)}
.lobby-banner span{display:block;margin-top:8px;font-weight:950;color:#fff7ae;text-shadow:0 2px 0 rgba(0,0,0,.32)}
.lobby-map{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 0 118px}
.lobby-map::before{content:"";position:absolute;left:50%;top:14%;bottom:3%;width:min(32vw,170px);transform:translateX(-50%);border-radius:32px;background:linear-gradient(180deg,#d9fff8,#86d8d0 18%,#7dc5c1 55%,#a7a4a2);box-shadow:inset 0 0 0 6px rgba(255,255,255,.22),0 10px 30px rgba(0,0,0,.18)}
.map-glow{position:absolute;left:50%;top:32%;width:min(66vw,330px);height:min(66vw,330px);transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,rgba(116,211,255,.45),rgba(255,255,255,.08) 58%,transparent 70%);filter:blur(.5px)}
.stage-card{position:relative;z-index:2;width:min(48vw,220px);min-height:126px;border-radius:24px;padding:12px 12px 14px;text-align:center;background:linear-gradient(180deg,#4dc5ff,#2769e9);border:4px solid rgba(255,255,255,.7);box-shadow:0 14px 0 #184bb2,0 26px 36px rgba(0,0,0,.24)}
.castle-card{margin-bottom:32px;transform:translateY(-5px)}
.stage-level{position:absolute;right:-16px;top:-15px;background:#fff;border:3px solid rgba(0,0,0,.12);border-radius:17px;padding:6px 10px;color:#ff8a00;font-size:20px;font-weight:1000;text-shadow:0 2px 0 #5e266d;box-shadow:0 6px 10px rgba(0,0,0,.22)}
.stage-icon{font-size:54px;filter:drop-shadow(0 6px 4px rgba(0,0,0,.22));margin-top:12px}
.stage-name{font-weight:1000;font-size:17px;text-shadow:0 2px 0 rgba(0,0,0,.25)}
.upgrade-row{position:relative;z-index:3;width:100%;display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:10px;align-items:end;margin-top:4px}
.upgrade-card{min-height:120px;border-radius:20px;padding:10px 8px;text-align:center;background:linear-gradient(180deg,#fff6bd,#ffce66);border:4px solid #fff;box-shadow:0 8px 0 #b48439,0 18px 28px rgba(0,0,0,.23);color:#382757;font-weight:1000}
.upgrade-card.main-upgrade{transform:translateY(28px);background:linear-gradient(180deg,#eaf7ff,#81cbff);box-shadow:0 8px 0 #3675a5,0 18px 28px rgba(0,0,0,.24)}
.upgrade-icon{font-size:40px;margin-bottom:5px}
.upgrade-card b{display:block;min-height:34px;font-size:14px;line-height:1.12}
.upgrade-card button{margin-top:8px;width:100%;border:0;border-radius:14px;padding:9px 4px;background:linear-gradient(180deg,#9dff2f,#38cf0d);box-shadow:0 5px 0 #238f12;color:#102d0a;font-size:13px;font-weight:1000;text-transform:uppercase}
.lobby-bottom{position:absolute;left:0;right:0;bottom:0;padding:0 12px calc(env(safe-area-inset-bottom) + 12px);height:132px;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
.bottom-tabs{position:absolute;left:12px;right:12px;bottom:4px;height:74px;border-radius:24px 24px 0 0;background:linear-gradient(180deg,#8036ff,#5a12ce);border:3px solid rgba(45,0,116,.45);display:flex;align-items:center;justify-content:space-around;padding:0 16px;box-shadow:0 -7px 20px rgba(0,0,0,.18);pointer-events:auto}
.bottom-tabs span{font-size:29px;filter:drop-shadow(0 4px 3px rgba(0,0,0,.35))}
.battle-btn{position:relative;z-index:2;pointer-events:auto;width:min(58vw,280px);height:94px;border-radius:36px;border:5px solid #dcff85;background:linear-gradient(180deg,#b8ff28 0,#69df05 62%,#32a300 100%);box-shadow:0 11px 0 #268800,0 21px 34px rgba(0,0,0,.34);color:#164104;font-size:clamp(26px,8vw,38px);font-weight:1000;letter-spacing:-.035em;text-shadow:0 2px 0 rgba(255,255,255,.45);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:0}
.battle-icon{font-size:42px;line-height:.7;filter:drop-shadow(0 4px 3px rgba(0,0,0,.25))}
.battle-btn:active,.round-menu:active,.upgrade-card button:active{transform:translateY(4px);filter:brightness(.98)}

.overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(5,10,20,.52);backdrop-filter:blur(7px);z-index:25;padding:24px}
.overlay.show{display:flex}
.panel{width:min(88vw,430px);border-radius:30px;padding:30px 22px;text-align:center;background:linear-gradient(180deg,rgba(22,45,72,.98),rgba(10,24,42,.98));box-shadow:0 26px 64px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.18)}
.panel h1{margin:0 0 10px;font-size:34px;line-height:1.05;font-weight:950;letter-spacing:-.03em}
.panel p{margin:0 auto 22px;color:#d7e5ff;font-size:16px;line-height:1.45;max-width:330px}.panel-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
button{border:0;border-radius:21px;padding:16px 25px;font-size:18px;font-weight:950;color:#08244d;background:linear-gradient(180deg,#72e0ff,#2f8cff);box-shadow:0 10px 0 #1760c4,0 20px 36px rgba(0,142,255,.32);cursor:pointer;font-family:inherit}
button:active{transform:translateY(4px);box-shadow:0 6px 0 #1760c4,0 12px 24px rgba(0,142,255,.26)}
.secondary-btn{background:linear-gradient(180deg,#ffffff,#d8e0ff);box-shadow:0 10px 0 #7a85bd,0 20px 36px rgba(0,0,0,.18);color:#24345f}

@media (min-width:740px){
  .lobby-safe{width:min(430px,100vw);margin:0 auto;border-left:1px solid rgba(255,255,255,.18);border-right:1px solid rgba(0,0,0,.12);box-shadow:0 0 60px rgba(0,0,0,.18)}
  .lobby-top{height:82px}.lobby-map{padding-bottom:128px}.lobby-bottom{width:min(430px,100vw);left:50%;right:auto;transform:translateX(-50%)}
}
@media (max-height:690px){.lobby-top{height:72px}.lobby-banner{min-height:70px}.stage-card{min-height:102px}.stage-icon{font-size:42px}.upgrade-card{min-height:102px}.upgrade-icon{font-size:32px}.lobby-bottom{height:116px}.battle-btn{height:82px}}

/* Ana sayfa artık Sahne 1 mantığında çizilen ayrı bir canvas kullanır. */
.lobby-bg{z-index:0}
.lobby-scene-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1;display:block;pointer-events:none}
.lobby-safe{z-index:3;pointer-events:none}
.lobby-top,.lobby-banner,.lobby-bottom{pointer-events:auto}
.lobby-map{pointer-events:none;display:block;flex:1;min-height:0;padding:0 0 118px}
.lobby-map .map-glow,.lobby-map .stage-card,.lobby-map .upgrade-row{display:none!important}
.lobby-banner{margin-bottom:0}
@media (max-height:690px){.lobby-map{padding-bottom:116px}}


/* Lobi sahnesindeki eski dekoratif orta panel kapatıldı; artık orta alanı sadece canvas çizer. */
[hidden], .loading-logo[hidden], .lobby-logo[hidden]{display:none!important}
.lobby-map::before{display:none!important;content:none!important}
.lobby-banner.is-hidden{display:none!important}

.settings-overlay{position:fixed;inset:0;z-index:45;display:none;align-items:center;justify-content:center;background:rgba(8,10,32,.56);backdrop-filter:blur(8px);padding:18px}
.settings-overlay.show{display:flex}
.settings-panel{width:min(92vw,390px);border-radius:28px;background:linear-gradient(180deg,#fff,#e8e3ff);border:4px solid rgba(255,255,255,.92);box-shadow:0 18px 0 #7250b2,0 32px 60px rgba(0,0,0,.34);padding:18px;color:#31235f}
.settings-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.settings-head h2{margin:0;font-size:25px;line-height:1;font-weight:1000;text-transform:uppercase;color:#372069;text-shadow:0 2px 0 rgba(255,255,255,.9)}
.settings-close{width:42px;height:42px;border-radius:50%;padding:0;font-size:26px;line-height:1;background:linear-gradient(180deg,#fff,#d7d1ff);box-shadow:0 5px 0 #8a78be;color:#5b4293}
.sound-switch{display:flex;align-items:center;gap:10px;font-weight:1000;background:rgba(255,255,255,.72);border:2px solid rgba(91,66,147,.18);border-radius:18px;padding:12px;margin:8px 0 14px}
.sound-switch input{width:22px;height:22px;accent-color:#6ee000}
.volume-row{background:rgba(255,255,255,.62);border:2px solid rgba(91,66,147,.14);border-radius:18px;padding:11px 12px;margin-top:10px}
.volume-row label{display:flex;justify-content:space-between;gap:8px;font-weight:950;margin-bottom:8px;color:#3a2969}
.volume-row input[type=range]{width:100%;accent-color:#6ee000}
.settings-note{margin:12px 2px;color:#5d5480;font-size:13px;font-weight:750;line-height:1.35}
.settings-done{width:100%;margin-top:4px;border-radius:22px;background:linear-gradient(180deg,#b8ff28,#45d80a);box-shadow:0 8px 0 #2a9200;color:#173a08}

/* Kale güçlendirme sonuç ekranı */
.castle-result{margin:0 auto 20px;width:min(100%,330px);border-radius:24px;padding:14px 14px 13px;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.16)}
.castle-result-visual{height:106px;position:relative;display:grid;place-items:center;margin-top:-4px;margin-bottom:2px}
.castle-result-img{max-width:156px;max-height:118px;object-fit:contain;filter:drop-shadow(0 12px 18px rgba(0,0,0,.38)) drop-shadow(0 0 14px rgba(255,238,100,.34));transition:transform .25s ease}
.castle-result-img:not([hidden]) + .castle-result-fallback{display:none}
.castle-result-fallback{font-size:68px;filter:drop-shadow(0 10px 12px rgba(0,0,0,.3))}
.castle-result-level{display:inline-flex;align-items:center;justify-content:center;min-width:132px;border-radius:999px;padding:6px 12px;margin:0 auto 8px;background:linear-gradient(180deg,#fff7a6,#ffbf2c);border:2px solid rgba(102,47,125,.7);box-shadow:0 4px 0 rgba(76,33,102,.6);color:#3b266f;font-weight:1000;font-size:14px;text-transform:uppercase}
.castle-result-track{height:32px;border-radius:999px;background:#071026;border:3px solid rgba(255,255,255,.38);box-shadow:inset 0 4px 9px rgba(0,0,0,.55),0 2px 0 rgba(255,255,255,.08);overflow:hidden;position:relative}
.castle-result-fill{height:100%;width:0%;border-radius:999px;background:linear-gradient(180deg,#fff171,#61e114 55%,#209700);box-shadow:0 0 16px rgba(126,255,56,.58);transition:width .45s ease}
.castle-result-text{margin-top:-32px;height:32px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:1000;text-shadow:0 2px 0 rgba(0,0,0,.95),0 0 6px rgba(0,0,0,.72),0 0 2px rgba(0,0,0,.9);font-size:16px;letter-spacing:.35px;position:relative;z-index:2;-webkit-text-stroke:.45px rgba(8,12,40,.82)}
.castle-result-gain{margin-top:10px;color:#f3fff4;font-size:14px;font-weight:950;line-height:1.25;text-shadow:0 2px 0 rgba(0,0,0,.52),0 0 4px rgba(0,0,0,.35)}
@media(max-height:690px){.castle-result-visual{height:82px}.castle-result-img{max-height:94px}.castle-result-fallback{font-size:52px}.castle-result{margin-bottom:14px;padding:10px 12px}.castle-result-track{height:30px}.castle-result-text{margin-top:-30px;height:30px;font-size:15px}.panel{padding-top:22px;padding-bottom:22px}.panel h1{font-size:28px}.panel p{margin-bottom:12px}}


/* Lobi alt menü sadeleştirme: Savaş butonu altında eski nesneler yok, sağda Alışveriş solda Ödüller var. */
.bottom-tabs{display:none!important}
.lobby-bottom{height:136px;display:flex;align-items:flex-end;justify-content:center;padding:0 10px calc(env(safe-area-inset-bottom) + 10px)}
.bottom-actions{width:100%;max-width:430px;display:grid;grid-template-columns:minmax(62px,76px) minmax(166px,1fr) minmax(62px,76px);align-items:end;justify-items:center;gap:8px;pointer-events:none}
.bottom-actions .battle-btn{width:100%;max-width:260px;min-width:0;height:92px;border-radius:34px;pointer-events:auto}
.side-lobby-btn{position:relative;pointer-events:auto;width:clamp(62px,17vw,76px);height:clamp(64px,17vw,78px);border-radius:22px;border:4px solid rgba(255,255,255,.82);background:linear-gradient(180deg,#ffffff 0,#d9ccff 45%,#8b4cff 100%);box-shadow:0 8px 0 #5526b8,0 18px 26px rgba(30,0,95,.28);color:#2d1768;text-shadow:none;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-weight:1000;font-family:inherit}
.side-lobby-btn .side-icon{font-size:clamp(25px,7vw,32px);line-height:1;filter:drop-shadow(0 3px 2px rgba(0,0,0,.2))}

.hs-reward-ready-badge{position:absolute;right:-7px;top:-9px;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:linear-gradient(180deg,#ff5f76,#c30f2b);color:#fff;border:3px solid rgba(255,255,255,.92);box-shadow:0 3px 0 rgba(90,5,26,.65),0 6px 12px rgba(0,0,0,.28);font-size:12px;font-weight:1000;line-height:18px;display:grid;place-items:center;z-index:5;box-sizing:border-box;text-shadow:0 1px 0 rgba(0,0,0,.28)}
.side-lobby-btn .side-label{font-size:clamp(8px,2.45vw,11px);line-height:1;letter-spacing:-.04em;white-space:nowrap}
.shop-btn{background:linear-gradient(180deg,#fff6b6 0,#ffcf45 48%,#ff8b1d 100%);box-shadow:0 8px 0 #a75600,0 18px 26px rgba(80,30,0,.25);color:#4d2300}
.rewards-btn{background:linear-gradient(180deg,#fff 0,#e8efff 43%,#63b9ff 100%);box-shadow:0 8px 0 #1d6fc1,0 18px 26px rgba(0,66,130,.24);color:#123a74}
.side-lobby-btn:active{transform:translateY(4px);filter:brightness(.98)}

.feature-overlay{position:fixed;inset:0;z-index:46;display:none;align-items:center;justify-content:center;background:rgba(8,10,32,.56);backdrop-filter:blur(8px);padding:18px}
.feature-overlay.show{display:flex}
.feature-panel{position:relative;width:min(88vw,380px);border-radius:28px;background:linear-gradient(180deg,#ffffff,#e9edff);border:3px solid rgba(255,255,255,.85);box-shadow:0 20px 58px rgba(0,0,0,.38),0 8px 0 rgba(80,67,160,.42);padding:26px 20px 22px;text-align:center;color:#2d245f}
.feature-close{position:absolute;right:12px;top:10px;width:40px;height:40px;border-radius:50%;padding:0;font-size:28px;line-height:1;background:linear-gradient(180deg,#fff,#dad8ff);box-shadow:0 5px 0 #8b85bd;color:#33265d}
.feature-icon{font-size:54px;line-height:1;margin-bottom:8px;filter:drop-shadow(0 5px 4px rgba(0,0,0,.18))}
.feature-panel h2{margin:0 0 8px;font-size:30px;line-height:1;font-weight:1000;color:#30205f;text-transform:uppercase}
.feature-panel p{margin:0 auto 18px;max-width:295px;color:#4a5685;font-size:15px;line-height:1.42;font-weight:800}
.feature-ok{min-width:150px;border-radius:22px;background:linear-gradient(180deg,#9dff2f,#38cf0d);box-shadow:0 8px 0 #238f12;color:#102d0a}
@media (max-width:360px){.bottom-actions{grid-template-columns:60px minmax(150px,1fr) 60px;gap:6px}.bottom-actions .battle-btn{height:86px;font-size:26px}.battle-icon{font-size:36px}.side-lobby-btn{width:60px;height:64px;border-radius:19px}.side-lobby-btn .side-label{font-size:8px}}
@media (max-height:690px){.lobby-bottom{height:118px}.bottom-actions .battle-btn{height:78px}.side-lobby-btn{height:62px}.side-lobby-btn .side-icon{font-size:24px}}

/* Üyelikli / veritabanlı savaş paneli */
.mp-panel{position:relative;z-index:4;margin:0 2px 8px;border-radius:20px;padding:9px 10px;background:linear-gradient(180deg,rgba(10,24,52,.92),rgba(5,13,31,.92));border:2px solid rgba(255,214,91,.58);box-shadow:0 7px 0 rgba(17,41,87,.72),0 12px 24px rgba(0,0,0,.22);pointer-events:auto;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.45)}
.mp-user-line,.mp-target-line,.mp-stats-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.mp-user-line{font-size:15px;font-weight:1000}.mp-stats-line{margin-top:6px;justify-content:flex-start;flex-wrap:wrap;font-size:12px;font-weight:900;color:#e9f5ff}.mp-stats-line span{border-radius:99px;padding:4px 8px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.10)}.mp-target-line{margin-top:7px;font-size:12px;font-weight:900;color:#ffef9d}.mp-mini-btn,.mp-pick-btn{border:0;border-radius:12px;padding:7px 10px;font-size:12px;font-weight:1000;background:linear-gradient(180deg,#fff7a6,#ffbf2e);box-shadow:0 4px 0 #945b00;color:#3b2400}.mp-mini-btn{padding:5px 8px;background:linear-gradient(180deg,#ffffff,#d9e4ff);box-shadow:0 3px 0 #7a85bd;color:#26345f}.mp-pick-btn:active,.mp-mini-btn:active{transform:translateY(2px);box-shadow:0 2px 0 rgba(0,0,0,.42)}
.auth-overlay,.target-overlay{position:fixed;inset:0;z-index:160;display:none;align-items:center;justify-content:center;background:rgba(5,10,22,.72);backdrop-filter:blur(8px);padding:18px;touch-action:manipulation}.auth-overlay.show,.target-overlay.show{display:flex}.auth-card,.target-card{width:min(92vw,420px);max-height:92dvh;overflow:hidden;border-radius:30px;background:linear-gradient(180deg,#ffffff,#e8efff);border:4px solid rgba(255,255,255,.92);box-shadow:0 20px 0 #244c9f,0 34px 70px rgba(0,0,0,.42);padding:20px;color:#232b50;text-align:center}.auth-card h2,.target-card h2{margin:0 0 6px;font-size:30px;line-height:1;font-weight:1000;color:#183b7a}.auth-card p,.target-card p{margin:0 0 14px;color:#53617f;font-weight:800;font-size:14px;line-height:1.35}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.auth-tabs button{height:48px;border-radius:18px;font-size:18px;padding:0;color:#2b3561;background:linear-gradient(180deg,#fff,#d9e2ff);box-shadow:0 6px 0 #7a85bd}.auth-tabs button.active{color:#173b00;background:linear-gradient(180deg,#c8ff38,#54ee00);box-shadow:0 6px 0 #168300}.auth-form{display:grid;gap:10px;text-align:left}.auth-form label{font-size:13px;font-weight:1000;color:#33416c}.auth-form input,.target-search{width:100%;height:48px;border:2px solid rgba(24,59,122,.18);border-radius:16px;padding:0 13px;font-size:16px;font-weight:800;color:#14234d;background:#fff;outline:none}.auth-message{min-height:20px;text-align:center;font-size:13px;font-weight:900;color:#d32331}.auth-form button[type=submit]{height:54px;border-radius:20px;font-size:22px;background:linear-gradient(180deg,#9dff2f,#38cf0d);box-shadow:0 8px 0 #238f12;color:#102d0a}.target-card{padding:0;text-align:left;display:flex;flex-direction:column}.target-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:17px 17px 10px}.target-head h2{font-size:27px}.target-close{width:42px;height:42px;border-radius:16px;padding:0;font-size:30px;line-height:1;color:#fff;background:linear-gradient(180deg,#ff6870,#d8273a);box-shadow:0 5px 0 #8d1426}.target-search{margin:0 17px 10px;width:calc(100% - 34px)}.target-list{overflow:auto;padding:0 17px 17px;display:grid;gap:10px}.target-item{border:0;width:100%;padding:12px;border-radius:18px;background:linear-gradient(180deg,#17395d,#081a35);box-shadow:0 5px 0 rgba(0,0,0,.25);color:#fff;text-align:left;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.target-item b{display:block;font-size:16px}.target-item small{display:block;color:#d6e9ff;font-weight:800;margin-top:3px}.target-item span{font-weight:1000;color:#ffef9d}.network-shop{margin-top:10px;border-radius:20px;overflow:hidden;border:1px solid rgba(255,225,135,.28);background:rgba(4,18,36,.62)}.network-shop-title{padding:10px 12px;font-weight:1000;background:linear-gradient(180deg,rgba(117,72,255,.78),rgba(44,25,113,.88));color:#fff}.network-unit-row{display:grid;grid-template-columns:1fr 92px;gap:8px;align-items:center;padding:9px;border-top:1px solid rgba(255,255,255,.10);color:#fff}.network-unit-row b{font-size:13px}.network-unit-row small{display:block;color:#dcecff;font-size:11px;font-weight:800;margin-top:3px}.network-unit-row button{height:38px;border-radius:15px;font-size:15px;padding:0;background:linear-gradient(180deg,#fff7a6,#ffbf2e);box-shadow:0 5px 0 #945b00;color:#3b2400}
@media(max-height:760px){.mp-panel{padding:7px 9px}.auth-card,.target-card{border-radius:24px}.auth-form input,.target-search{height:44px}.auth-form button[type=submit]{height:50px}}

/* Güncelleme: modal açıkken asker bilgi kartı her zaman gizlenir ve rakip kale önizleme modal içinde kalır. */
body.hs-modal-open #ghostSelectLobbyBtn,
body.hs-modal-open #deployUnitLobbyBtn{display:none!important;pointer-events:none!important;visibility:hidden!important}
.auth-overlay,.target-overlay{z-index:260!important}.feature-overlay,.settings-overlay,.overlay{z-index:240}.target-card{position:relative}.target-list{max-height:34dvh}.target-preview{margin:0 17px 17px;border-radius:22px;background:linear-gradient(180deg,#13375d,#061a35);border:2px solid rgba(255,221,115,.48);box-shadow:0 8px 0 rgba(10,32,74,.76),0 16px 30px rgba(0,0,0,.22);color:#fff;overflow:hidden}.target-preview[hidden]{display:none!important}.target-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px 8px}.target-preview-title{min-width:0}.target-preview-title b{display:block;font-size:18px;font-weight:1000;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.target-preview-title small{display:block;margin-top:4px;color:#cfe5ff;font-weight:850;font-size:12px;line-height:1.2}.target-preview-badge{flex:0 0 auto;border-radius:16px;padding:8px 10px;text-align:center;color:#3d2400;background:linear-gradient(180deg,#fff7a6,#ffbf2e);box-shadow:0 5px 0 #945b00;font-weight:1000;line-height:1.05}.target-castle-view{position:relative;margin:2px 13px 10px;height:146px;border-radius:22px;overflow:hidden;background:linear-gradient(180deg,#8bed5d 0,#58cf4f 54%,#37a936 100%);box-shadow:inset 0 0 0 2px rgba(255,255,255,.28),inset 0 -20px 32px rgba(37,90,26,.35)}.target-castle-view:before{content:"";position:absolute;left:50%;top:26%;width:150px;height:190px;transform:translateX(-50%);background:linear-gradient(90deg,transparent 0 38%,rgba(233,179,83,.88) 39% 61%,transparent 62% 100%);opacity:.75}.target-castle-emoji{position:absolute;left:50%;top:14px;transform:translateX(-50%);font-size:78px;filter:drop-shadow(0 11px 10px rgba(0,0,0,.35));line-height:1}.target-castle-hp{position:absolute;left:18px;right:18px;bottom:14px;height:30px;border-radius:999px;background:#f8fbff;border:3px solid rgba(37,52,91,.30);box-shadow:0 4px 0 rgba(0,0,0,.25);overflow:hidden}.target-castle-hp-fill{height:100%;border-radius:999px;background:linear-gradient(180deg,#bbff35,#35d313 58%,#169600);width:0%}.target-castle-hp-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#17234c;font-size:13px;font-weight:1000;text-shadow:0 1px 0 rgba(255,255,255,.7)}.target-preview-actions{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:center;padding:0 13px 13px}.target-preview-info{font-size:12px;font-weight:900;color:#d7e8ff;line-height:1.25}.target-attack-btn{height:50px;min-width:136px;border:0;border-radius:20px;background:linear-gradient(180deg,#a7ff35,#37cf0b);box-shadow:0 7px 0 #1d8d0b;color:#113000;font-size:20px;font-weight:1000;font-family:inherit;text-shadow:0 1px 0 rgba(255,255,255,.45)}.target-attack-btn:active{transform:translateY(3px);box-shadow:0 4px 0 #1d8d0b}.target-item.is-selected{outline:3px solid rgba(255,227,94,.92);background:linear-gradient(180deg,#235887,#082047)}
@media(max-height:760px){.target-list{max-height:25dvh}.target-castle-view{height:122px}.target-castle-emoji{font-size:62px}.target-preview-actions{grid-template-columns:1fr}.target-attack-btn{width:100%}}

/* === Üyelikli savaş: düzgün birlik ikonları ve rakip kale sayfası === */
.opponent-page{height:100%;overflow:hidden;background:#77dd52;color:#fff}
.opponent-shell{position:fixed;inset:0;overflow:hidden;background:linear-gradient(180deg,#9bea57,#5acb48 46%,#2e9436)}
.opponent-bg{position:absolute;inset:-2%;background-size:cover;background-position:center;filter:saturate(1.08);transform:scale(1.03)}
.opponent-bg:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 16%,rgba(255,255,255,.18),transparent 38%),linear-gradient(180deg,rgba(47,115,23,.04),rgba(8,42,15,.24))}
.opponent-top{position:relative;z-index:8;display:flex;align-items:center;gap:10px;justify-content:space-between;padding:calc(env(safe-area-inset-top) + 12px) 14px 8px}
.opponent-back,.opponent-attack,.opponent-spy,.opponent-message-open{border:0;font-family:inherit;font-weight:1000;touch-action:manipulation}
.opponent-back{height:48px;border-radius:18px;padding:0 14px;background:linear-gradient(180deg,#fff,#dce8ff);box-shadow:0 5px 0 #7784b8;color:#243760;font-size:16px}
.opponent-coin{min-width:106px;text-align:center;border-radius:22px;padding:10px 12px;background:linear-gradient(180deg,#fff5a8,#ffbd2b);border:3px solid #713c88;box-shadow:0 5px 0 #5e2c78;color:#352066;font-size:18px;font-weight:1000}
.opponent-title{min-width:0;text-align:center;text-shadow:0 3px 0 rgba(0,0,0,.35)}
.opponent-title b{display:block;font-size:20px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.opponent-title small{font-size:12px;font-weight:900;color:#eaffd8}
.opponent-stage{position:relative;z-index:2;height:calc(100dvh - 82px - env(safe-area-inset-top));display:flex;align-items:stretch;justify-content:center;padding:4px 16px calc(env(safe-area-inset-bottom) + 14px)}
.opponent-island{position:relative;width:min(100%,430px);min-height:100%;overflow:hidden;background:transparent}
.opponent-scene-glow{position:absolute;left:50%;top:66px;width:min(94%,400px);height:72%;transform:translateX(-50%);border-radius:34px;background:linear-gradient(180deg,rgba(129,237,95,.18),rgba(63,173,66,.10));box-shadow:inset 0 0 0 2px rgba(255,255,255,.14),0 20px 32px rgba(0,0,0,.08);pointer-events:none}
.opponent-road{position:absolute;left:50%;top:190px;bottom:134px;width:min(78vw,360px);transform:translateX(-50%);background-size:contain;background-repeat:no-repeat;background-position:center top;opacity:1;z-index:2;filter:drop-shadow(0 10px 18px rgba(0,0,0,.22))}
.opponent-castle-area{position:absolute;left:50%;top:108px;width:min(94%,392px);height:176px;transform:translateX(-50%);background-size:contain;background-repeat:no-repeat;background-position:center top;opacity:.98;z-index:3;filter:drop-shadow(0 10px 14px rgba(0,0,0,.18))}
.opponent-card{position:absolute;left:14px;right:14px;top:10px;border-radius:24px;padding:13px 14px;background:linear-gradient(180deg,rgba(12,34,58,.95),rgba(5,20,39,.94));border:2px solid rgba(255,225,118,.55);box-shadow:0 6px 0 rgba(11,38,80,.78);z-index:7}
.opponent-card-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.opponent-name{min-width:0}.opponent-name b{display:block;font-size:22px;line-height:1.04;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.opponent-name small{display:block;margin-top:4px;font-size:12px;color:#cfe9ff;font-weight:900}
.opponent-castle-img{position:absolute;left:50%;top:196px;width:min(60vw,250px);max-height:215px;object-fit:contain;transform:translate(-50%,-50%);filter:drop-shadow(0 18px 16px rgba(0,0,0,.33));z-index:5}
.opponent-hp{position:absolute;left:50%;top:320px;width:min(82%,310px);height:34px;transform:translateX(-50%);border-radius:999px;background:#f9fcff;border:3px solid rgba(26,44,90,.35);box-shadow:0 5px 0 rgba(0,0,0,.28);overflow:hidden;z-index:6}
.opponent-hp-fill{height:100%;width:0;background:linear-gradient(180deg,#bbff35,#35d313 58%,#169600);border-radius:999px}
.opponent-hp-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#17234c;font-weight:1000;font-size:14px;text-shadow:0 1px 0 rgba(255,255,255,.7)}
.opponent-actions{position:absolute;left:14px;right:14px;bottom:18px;z-index:7;display:grid;gap:10px}
.opponent-action-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:stretch}
.opponent-message-open{height:54px;border-radius:22px;background:linear-gradient(180deg,#f4fbff,#9edaff);box-shadow:0 6px 0 #3d83aa;color:#123956;font-size:17px}
.opponent-message-open:disabled{opacity:.65}
.opponent-attack{height:74px;border-radius:30px;background:linear-gradient(180deg,#b4ff28,#4fe100 60%,#22a800);box-shadow:0 9px 0 #178100,0 14px 22px rgba(0,0,0,.22),inset 0 2px 0 rgba(255,255,255,.55);color:#173800;font-size:28px;text-shadow:0 2px 0 rgba(255,255,255,.45)}
.opponent-spy{height:54px;border-radius:22px;background:linear-gradient(180deg,#fff6a2,#ffba25);box-shadow:0 6px 0 #9c6100;color:#3e2600;font-size:17px}
.opponent-spy:disabled{opacity:.65}
.opponent-report{max-height:26dvh;overflow:auto;border-radius:20px;background:linear-gradient(180deg,rgba(8,30,55,.94),rgba(4,17,36,.95));border:1px solid rgba(184,224,255,.22);padding:10px;display:none;box-shadow:0 12px 20px rgba(0,0,0,.18)}
.opponent-report.show{display:block}
.opponent-power-line{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.opponent-chip{border-radius:99px;padding:6px 9px;background:rgba(255,255,255,.12);font-weight:1000;color:#e9f5ff}
.opponent-unit-row{display:flex;align-items:center;gap:9px;padding:8px 6px;border-top:1px solid rgba(255,255,255,.10)}
.opponent-unit-row:first-child{border-top:0}
.opponent-unit-row div{min-width:0}.opponent-unit-row b{display:block;font-size:13px}.opponent-unit-row small{display:block;color:#d9ecff;font-weight:850;font-size:11px;margin-top:2px}
.opponent-message{position:absolute;left:14px;right:14px;bottom:166px;z-index:8;border-radius:16px;padding:9px 10px;background:rgba(5,22,43,.88);color:#fff;font-weight:900;text-align:center;display:none}
.opponent-message.show{display:block}
.opponent-page .unit-mini{box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 3px 0 rgba(0,0,0,.24)}
@media(max-height:780px){
  .opponent-stage{height:calc(100dvh - 72px - env(safe-area-inset-top));padding-bottom:calc(env(safe-area-inset-bottom) + 8px)}
  .opponent-road{top:178px;bottom:122px;width:min(74vw,320px)}
  .opponent-castle-area{top:104px;height:154px;width:min(90%,360px)}
  .opponent-castle-img{top:184px;width:min(58vw,220px);max-height:190px}
  .opponent-hp{top:300px;height:30px}
  .opponent-attack{height:62px;font-size:24px}
  .opponent-spy,.opponent-message-open{height:48px}
  .opponent-report{max-height:24dvh}
  .opponent-message{bottom:150px}
}
.ad-opponent{z-index:10;width:min(100% - 24px,360px);margin:12px auto 0;max-height:120px;background:rgba(255,255,255,.10)}
@media (max-height:720px){.ad-lobby-top{max-height:70px}.ad-lobby-bottom{bottom:calc(env(safe-area-inset-bottom) + 114px);max-height:68px}}

/* === Üyelik: oyuncu ayarları, e-posta onayı, toprak/yiyecek paneli === */
.mp-user-actions{display:flex;gap:6px;align-items:center}.mp-economy-line{margin-top:6px}.mp-economy-line span{white-space:nowrap}.mp-economy-line .warn{color:#ffd34d;text-shadow:0 1px 0 rgba(0,0,0,.6)}.auth-help-link{display:block;margin-top:-4px;margin-bottom:6px;color:#d7ecff;text-align:right;font-size:12px;font-weight:900;text-decoration:none}.auth-help-link:hover{text-decoration:underline}
.account-page{min-height:100dvh;margin:0;background:linear-gradient(180deg,#8ee85d,#3baa41 55%,#176025);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#fff}.account-shell{min-height:100dvh;display:grid;place-items:center;padding:22px}.account-wide{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;align-items:start;place-items:stretch;max-width:980px;margin:0 auto}.account-card{width:min(420px,100%);margin:auto;border-radius:28px;padding:20px;background:linear-gradient(180deg,rgba(13,40,66,.96),rgba(4,18,36,.96));border:2px solid rgba(255,225,116,.58);box-shadow:0 12px 0 rgba(11,44,80,.45),0 24px 42px rgba(0,0,0,.24);box-sizing:border-box}.account-wide .account-card{width:100%;margin:0}.account-card h1,.account-card h2{margin:0 0 8px;font-weight:1000;text-shadow:0 3px 0 rgba(0,0,0,.42)}.account-card p{margin:0 0 14px;color:#d9efff;font-weight:800;line-height:1.35}.account-card label{display:block;margin:11px 0 0;color:#e9f8ff;font-size:13px;font-weight:950}.account-card input{width:100%;height:46px;margin-top:6px;border:0;border-radius:16px;padding:0 13px;background:#eef8ff;color:#102040;font:900 15px inherit;box-sizing:border-box;outline:none}.account-card input[type=file]{height:auto;padding:12px}.account-btn{width:100%;height:50px;margin-top:15px;border:0;border-radius:18px;background:linear-gradient(180deg,#b4ff33,#35d10d);box-shadow:0 7px 0 #188402;color:#183900;font:1000 16px inherit;text-decoration:none;display:grid;place-items:center;text-align:center}.account-link{display:block;margin-top:14px;color:#d9efff;text-align:center;font-weight:900;text-decoration:none}.account-status{border-radius:16px;padding:11px 12px;margin:12px 0;font-weight:950;line-height:1.3}.account-status.ok{background:rgba(29,126,48,.95);border:1px solid rgba(190,255,180,.35)}.account-status.err{background:rgba(141,25,42,.95);border:1px solid rgba(255,190,190,.35)}.profile-preview{display:flex;align-items:center;gap:12px;margin-top:12px;padding:12px;border-radius:20px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}.profile-preview img,.profile-empty{width:70px;height:70px;border-radius:22px;object-fit:cover;display:grid;place-items:center;background:linear-gradient(180deg,#fff7a6,#ffbd2b);font-size:34px;box-shadow:0 5px 0 rgba(0,0,0,.28)}.profile-preview b{display:block;font-size:18px}.profile-preview small{display:block;margin-top:4px;color:#d9efff;font-weight:850}
@media(max-width:520px){.mp-user-line{align-items:flex-start}.mp-user-actions{flex-direction:column;gap:5px}.account-shell{padding:14px}.account-card{border-radius:24px;padding:16px}}

/* SMTP düzeltmesi: şifremi unuttum linki artık belirgin görünür */
.auth-help-link{
  display:block!important;
  margin:2px 0 8px!important;
  padding:8px 10px!important;
  border-radius:14px!important;
  background:rgba(255,210,40,.16)!important;
  border:1px solid rgba(255,222,74,.52)!important;
  color:#ffe45a!important;
  text-align:center!important;
  font-size:13px!important;
  font-weight:1000!important;
  text-decoration:none!important;
  text-shadow:0 2px 0 rgba(0,0,0,.45)!important;
}
.auth-help-link:hover{background:rgba(255,210,40,.25)!important;text-decoration:none!important}

/* Şifremi unuttum linki beyaz kart üzerinde net görülsün */
.auth-help-link{
  color:#fff6a4!important;
  background:linear-gradient(180deg,#173b7a,#071b3a)!important;
  border:2px solid #ffcf32!important;
  box-shadow:0 5px 0 #081327,0 10px 18px rgba(0,0,0,.22)!important;
  text-shadow:0 2px 0 rgba(0,0,0,.75)!important;
}
.auth-help-link:hover{background:linear-gradient(180deg,#214f9c,#0b244b)!important;color:#fff!important}


/* === Rakip modalı: mobilde daha uzun ve rahat liste === */
.target-overlay.show{align-items:center!important;justify-content:center!important;padding:12px!important}
.target-card{width:min(94vw,470px)!important;height:min(86dvh,760px)!important;max-height:86dvh!important;min-height:min(640px,82dvh)!important;border-radius:30px!important}
.target-head{padding:20px 20px 12px!important;flex:0 0 auto}.target-head h2{font-size:clamp(28px,8vw,40px)!important;line-height:.96!important}.target-head p{font-size:clamp(14px,4vw,18px)!important;line-height:1.28!important;margin-top:8px!important}.target-close{width:58px!important;height:58px!important;border-radius:20px!important;font-size:40px!important;flex:0 0 auto!important}.target-search{height:58px!important;margin:0 20px 14px!important;width:calc(100% - 40px)!important;border-radius:22px!important;font-size:20px!important;flex:0 0 auto}.target-list{flex:1 1 auto!important;max-height:none!important;min-height:0!important;padding:0 20px 24px!important;gap:12px!important}.target-item{min-height:86px!important;border-radius:22px!important;padding:14px 16px!important}.target-item b{font-size:21px!important}.target-item small{font-size:15px!important;line-height:1.18!important}.target-item span{font-size:21px!important;line-height:1.12!important;text-align:right!important}
@media(max-height:760px){.target-card{height:88dvh!important;max-height:88dvh!important;min-height:0!important}.target-head{padding:16px 16px 9px!important}.target-head h2{font-size:30px!important}.target-head p{font-size:15px!important;margin-top:5px!important}.target-close{width:52px!important;height:52px!important}.target-search{height:52px!important;margin:0 16px 10px!important;width:calc(100% - 32px)!important}.target-list{padding:0 16px 18px!important}.target-item{min-height:78px!important}.target-item b{font-size:19px!important}.target-item small{font-size:14px!important}.target-item span{font-size:19px!important}}
@media(max-width:370px){.target-card{width:96vw!important}.target-head h2{font-size:27px!important}.target-close{width:48px!important;height:48px!important;font-size:34px!important}.target-item{grid-template-columns:1fr 92px!important;padding:12px!important}.target-item span{font-size:17px!important}}

/* === Profesyonel oyuncu ayarları sayfası === */
.player-settings-page{min-height:100dvh;margin:0;overflow-x:hidden;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#fff;background:linear-gradient(180deg,#8fe95b 0,#4cbb42 48%,#155d28 100%)}
.player-settings-page:before{content:"";position:fixed;inset:0;background:radial-gradient(circle at 16% 5%,rgba(255,255,255,.28),transparent 23%),radial-gradient(circle at 82% 15%,rgba(255,230,104,.24),transparent 20%),linear-gradient(180deg,rgba(4,20,42,.08),rgba(3,22,11,.42));pointer-events:none}
.ps-shell{position:relative;z-index:1;min-height:100dvh;box-sizing:border-box;width:min(100%,1040px);margin:0 auto;padding:calc(env(safe-area-inset-top) + 16px) 14px calc(env(safe-area-inset-bottom) + 24px)}
.ps-bg-orb{position:fixed;border-radius:999px;filter:blur(2px);opacity:.45;pointer-events:none}.ps-bg-orb-a{left:-80px;top:120px;width:210px;height:210px;background:rgba(255,255,255,.18)}.ps-bg-orb-b{right:-120px;bottom:90px;width:260px;height:260px;background:rgba(255,229,92,.18)}
.ps-topbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin-bottom:14px}.ps-back{height:52px;min-width:78px;display:grid;place-items:center;text-decoration:none;border-radius:20px;background:linear-gradient(180deg,#ffffff,#dfeaff);box-shadow:0 6px 0 #7584ba;color:#24365f;font-weight:1000;font-size:18px}.ps-top-title{min-width:0;text-align:center;text-shadow:0 3px 0 rgba(0,0,0,.28)}.ps-top-title b{display:block;font-size:22px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ps-top-title small{display:block;margin-top:4px;color:#e9ffdf;font-weight:900;font-size:12px}.ps-coin{height:52px;min-width:92px;box-sizing:border-box;display:grid;place-items:center;border-radius:20px;padding:0 12px;background:linear-gradient(180deg,#fff5a8,#ffbd2b);border:3px solid #713c88;box-shadow:0 6px 0 #5e2c78;color:#352066;font-weight:1000;font-size:17px}
.ps-hero{position:relative;display:flex;align-items:center;gap:14px;border-radius:30px;padding:18px;background:linear-gradient(180deg,rgba(12,34,58,.96),rgba(5,20,39,.96));border:2px solid rgba(255,225,118,.56);box-shadow:0 9px 0 rgba(11,38,80,.74),0 20px 34px rgba(0,0,0,.20);overflow:hidden}.ps-hero:after{content:"";position:absolute;right:-28px;top:-34px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.08)}.ps-avatar-wrap{position:relative;z-index:1;flex:0 0 auto}.ps-avatar{width:94px;height:94px;border-radius:28px;object-fit:cover;display:grid;place-items:center;background:linear-gradient(180deg,#fff7a6,#ffbd2b);border:4px solid rgba(255,255,255,.78);box-shadow:0 7px 0 rgba(0,0,0,.32);font-size:42px}.ps-avatar-empty{font-size:44px}.ps-hero-info{position:relative;z-index:1;min-width:0}.ps-hero h1{margin:0;color:#fff;font-size:clamp(28px,8vw,42px);line-height:1;font-weight:1000;text-shadow:0 3px 0 rgba(0,0,0,.42);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ps-username{margin-top:5px;color:#cfe9ff;font-weight:950;font-size:15px}.ps-badges{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.ps-badges span{border-radius:999px;padding:7px 10px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.10);font-size:12px;font-weight:1000;color:#eaf6ff}.ps-badges span.good{background:rgba(44,152,58,.28);color:#d9ffe0}.ps-badges span.warn{background:rgba(224,139,22,.25);color:#fff2bf}
.ps-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.ps-stats div{border-radius:22px;padding:13px 8px;text-align:center;background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(226,238,255,.95));box-shadow:0 6px 0 #244c9f;color:#17315d}.ps-stats b{display:block;font-size:22px;font-weight:1000;line-height:1}.ps-stats small{display:block;margin-top:5px;font-size:12px;font-weight:950;color:#59667d}.ps-status{border-radius:22px;margin:0 0 16px;padding:13px 15px;font-weight:1000;line-height:1.35;text-align:center;box-shadow:0 5px 0 rgba(0,0,0,.24)}.ps-status.ok{background:linear-gradient(180deg,#3acb57,#14752a);border:1px solid rgba(205,255,196,.45)}.ps-status.err{background:linear-gradient(180deg,#e34d61,#9c172c);border:1px solid rgba(255,205,205,.42)}
.ps-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ps-card{border-radius:28px;padding:18px;background:linear-gradient(180deg,rgba(13,40,66,.96),rgba(4,18,36,.96));border:2px solid rgba(255,225,116,.58);box-shadow:0 9px 0 rgba(11,44,80,.50),0 21px 36px rgba(0,0,0,.22);box-sizing:border-box}.ps-card-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.ps-card-head>span{width:50px;height:50px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(180deg,#fff7a6,#ffbd2b);box-shadow:0 5px 0 #945b00;font-size:25px;flex:0 0 auto}.ps-card h2{margin:0;color:#fff;font-size:21px;line-height:1;font-weight:1000;text-shadow:0 3px 0 rgba(0,0,0,.4)}.ps-card p{margin:4px 0 0;color:#d9efff;font-weight:850;font-size:12px;line-height:1.3}.ps-card label{display:block;margin:11px 0 0;color:#e9f8ff;font-size:13px;font-weight:1000}.ps-card input{width:100%;box-sizing:border-box;height:50px;margin-top:7px;border:2px solid rgba(255,255,255,.12);border-radius:18px;padding:0 14px;background:#eef8ff;color:#102040;font:900 15px inherit;outline:none}.ps-card input:focus{border-color:#ffe36e;box-shadow:0 0 0 3px rgba(255,227,110,.18)}.ps-card input[type=file]{height:auto;padding:12px;background:rgba(238,248,255,.96)}.ps-help{margin-top:9px;border-radius:16px;padding:9px 10px;background:rgba(255,255,255,.08);color:#d9efff;font-size:12px;font-weight:850;line-height:1.3}.ps-btn{width:100%;height:52px;margin-top:15px;border:0;border-radius:20px;background:linear-gradient(180deg,#b4ff33,#35d10d);box-shadow:0 7px 0 #188402;color:#183900;font:1000 17px inherit;text-decoration:none;display:grid;place-items:center;text-align:center}.ps-btn.secondary{background:linear-gradient(180deg,#fff6a2,#ffba25);box-shadow:0 7px 0 #9c6100;color:#3e2600}.ps-btn:active,.ps-back:active{transform:translateY(3px);filter:brightness(.98)}
@media(max-width:820px){.ps-grid{grid-template-columns:1fr}.ps-shell{padding-left:12px;padding-right:12px}.ps-card{border-radius:26px}}
@media(max-width:520px){.ps-topbar{grid-template-columns:auto 1fr;grid-template-areas:"back coin" "title title"}.ps-back{grid-area:back}.ps-coin{grid-area:coin;justify-self:end}.ps-top-title{grid-area:title}.ps-hero{border-radius:28px;padding:15px}.ps-avatar{width:82px;height:82px;border-radius:24px}.ps-stats{gap:7px}.ps-stats div{border-radius:18px;padding:11px 4px}.ps-stats b{font-size:19px}.ps-card{padding:16px}.ps-card-head>span{width:46px;height:46px}.ps-card h2{font-size:20px}}


/* === Oyuncu ayarları sayfası scroll düzeltmesi === */
html.player-settings-html,
html.player-settings-html body.player-settings-page{
  height:auto!important;
  min-height:100dvh!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  touch-action:pan-y!important;
}
html.player-settings-html body.player-settings-page{
  position:static!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:auto;
}
html.player-settings-html .ps-shell{
  min-height:auto!important;
  padding-bottom:calc(env(safe-area-inset-bottom) + 110px)!important;
}
html.player-settings-html .ps-grid{
  padding-bottom:36px;
}
html.player-settings-html input,
html.player-settings-html button,
html.player-settings-html a{
  touch-action:manipulation;
}


/* === Oyun menüsü modal düzeltmesi: ayar menüsü bozulmasın, ses ayarı ayrı açılsın === */
#settingsOverlay.settings-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:280!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:14px!important;
  background:rgba(8,14,25,.62)!important;
  backdrop-filter:blur(8px)!important;
  overflow:hidden!important;
  touch-action:none!important;
}
#settingsOverlay.settings-overlay.show{display:flex!important}
#settingsOverlay .settings-panel-menu{
  width:min(92vw,420px)!important;
  max-width:420px!important;
  max-height:min(86dvh,640px)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  border-radius:30px!important;
  padding:16px!important;
  background:linear-gradient(180deg,#102d4f 0%,#07182f 54%,#031022 100%)!important;
  color:#fff!important;
  border:3px solid rgba(255,223,113,.82)!important;
  box-shadow:0 13px 0 rgba(14,54,113,.86),0 28px 52px rgba(0,0,0,.44)!important;
}
#settingsOverlay .settings-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 12px!important;
  flex:0 0 auto!important;
}
#settingsOverlay .settings-head h2{
  margin:0!important;
  color:#ffe891!important;
  font-size:25px!important;
  line-height:1!important;
  font-weight:1000!important;
  text-transform:none!important;
  text-shadow:0 3px 0 rgba(0,0,0,.52)!important;
}
#settingsOverlay .settings-close{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  border-radius:18px!important;
  border:0!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  font-size:34px!important;
  line-height:1!important;
  color:#fff!important;
  background:linear-gradient(180deg,#ff6f7d,#d82238)!important;
  box-shadow:0 6px 0 #8e1426!important;
}
#settingsOverlay .settings-menu-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  margin:0!important;
  padding:0 0 4px!important;
  overflow:visible!important;
  flex:0 0 auto!important;
}
#settingsOverlay .settings-menu-btn{
  width:100%!important;
  min-height:70px!important;
  height:auto!important;
  box-sizing:border-box!important;
  border:0!important;
  border-radius:22px!important;
  padding:11px 13px!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:12px!important;
  row-gap:2px!important;
  align-items:center!important;
  justify-items:start!important;
  text-align:left!important;
  background:linear-gradient(180deg,#fff8b2,#ffc43b)!important;
  box-shadow:0 7px 0 #9b6100,0 12px 20px rgba(0,0,0,.18)!important;
  color:#372300!important;
  font-family:inherit!important;
  line-height:1.1!important;
  white-space:normal!important;
  touch-action:manipulation!important;
}
#settingsOverlay .settings-menu-btn>span{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  width:48px!important;
  height:48px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.55)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85)!important;
  font-size:25px!important;
  line-height:1!important;
}
#settingsOverlay .settings-menu-btn>b{
  grid-column:2!important;
  grid-row:1!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  color:inherit!important;
  font-size:20px!important;
  font-weight:1000!important;
  line-height:1.05!important;
  text-shadow:0 1px 0 rgba(255,255,255,.35)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#settingsOverlay .settings-menu-btn>small{
  grid-column:2!important;
  grid-row:2!important;
  display:block!important;
  margin:2px 0 0!important;
  padding:0!important;
  color:rgba(45,31,0,.78)!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1.2!important;
  white-space:normal!important;
}
#settingsOverlay .settings-menu-btn.danger{
  background:linear-gradient(180deg,#ff7f89,#d8273c)!important;
  box-shadow:0 7px 0 #8d1426,0 12px 20px rgba(0,0,0,.18)!important;
  color:#fff!important;
  text-shadow:0 1px 0 rgba(0,0,0,.40)!important;
}
#settingsOverlay .settings-menu-btn.danger>small{color:rgba(255,255,255,.84)!important}
#settingsOverlay .settings-audio-block{
  display:none!important;
  margin:0!important;
  min-height:0!important;
  max-height:calc(86dvh - 132px)!important;
  overflow:auto!important;
  -webkit-overflow-scrolling:touch!important;
  border-radius:22px!important;
  padding:12px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.06))!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12)!important;
  touch-action:pan-y!important;
}
#settingsOverlay .settings-panel-menu.audio-open .settings-menu-list{display:none!important}
#settingsOverlay .settings-panel-menu.audio-open .settings-audio-block{display:block!important;flex:1 1 auto!important}
#settingsOverlay .settings-section-title{font-size:19px!important;font-weight:1000!important;color:#fff0a6!important;margin:0 0 10px!important;text-shadow:0 2px 0 rgba(0,0,0,.40)!important}
#settingsOverlay .sound-switch,
#settingsOverlay .volume-row{
  background:rgba(255,255,255,.96)!important;
  color:#31235f!important;
  border:2px solid rgba(255,255,255,.32)!important;
  border-radius:18px!important;
}
#settingsOverlay .volume-row label{color:#31235f!important}
#settingsOverlay .settings-note{color:#d9efff!important;margin:12px 2px 0!important}
#settingsOverlay .settings-done{
  flex:0 0 auto!important;
  width:100%!important;
  height:52px!important;
  margin-top:12px!important;
  border-radius:21px!important;
  border:0!important;
  background:linear-gradient(180deg,#b8ff28,#45d80a)!important;
  box-shadow:0 7px 0 #2a9200!important;
  color:#173a08!important;
  font-weight:1000!important;
  font-size:18px!important;
}
#settingsOverlay .settings-panel-menu:not(.audio-open) .settings-done{display:none!important}
@media(max-width:380px){
  #settingsOverlay .settings-panel-menu{width:94vw!important;padding:14px!important;border-radius:26px!important}
  #settingsOverlay .settings-menu-btn{min-height:64px!important;padding:10px!important;grid-template-columns:43px minmax(0,1fr)!important;column-gap:10px!important}
  #settingsOverlay .settings-menu-btn>span{width:43px!important;height:43px!important;font-size:22px!important}
  #settingsOverlay .settings-menu-btn>b{font-size:18px!important}
  #settingsOverlay .settings-menu-btn>small{font-size:11px!important}
}

/* === Stratejik savaş bildirimi ve Dünya ikonu === */
.lobby-top{grid-template-columns:58px 1fr 54px auto!important}
.world-notify-btn{position:relative;width:52px;height:52px;border:3px solid #6d337f;border-radius:50%;padding:0;background:linear-gradient(180deg,#e8fbff,#81dcff 55%,#2e91d8);box-shadow:0 6px 0 #245f9f,0 11px 20px rgba(0,0,0,.20);font-size:25px;color:#12325e;display:flex;align-items:center;justify-content:center;pointer-events:auto;touch-action:manipulation}
.world-notify-btn span{line-height:1}.world-notify-btn i{position:absolute;right:4px;bottom:2px;font-style:normal;font-size:15px;filter:drop-shadow(0 1px 0 rgba(0,0,0,.22))}
.world-notify-btn:active{transform:translateY(3px);box-shadow:0 3px 0 #245f9f,0 8px 16px rgba(0,0,0,.18)}
.world-notify-btn b{position:absolute;right:-6px;top:-8px;min-width:22px;height:22px;border-radius:999px;padding:0 5px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fffb8d,#ffbf21);border:2px solid #9b130e;box-shadow:0 3px 0 #8d1426;color:#7a0000;font-size:12px;font-weight:1000;line-height:1}
.notification-overlay{position:fixed;inset:0;z-index:270;display:none;align-items:center;justify-content:center;background:rgba(5,10,22,.72);backdrop-filter:blur(8px);padding:18px;touch-action:manipulation}
.notification-overlay.show{display:flex}
.notification-panel{width:min(94vw,440px);max-height:88dvh;display:flex;flex-direction:column;border-radius:30px;background:linear-gradient(180deg,#f8fbff,#e6eeff);border:4px solid rgba(255,255,255,.92);box-shadow:0 20px 0 #244c9f,0 34px 70px rgba(0,0,0,.42);color:#20305b;overflow:hidden}
.notification-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:17px 17px 10px;background:linear-gradient(180deg,#17395d,#0b1f3d);color:#fff}
.notification-head h2{margin:0;font-size:28px;line-height:1;font-weight:1000;color:#fff0a6;text-shadow:0 2px 0 rgba(0,0,0,.45)}
.notification-head p{margin:5px 0 0;color:#d8ecff;font-size:13px;font-weight:850;line-height:1.25}
.notification-close{width:44px;height:44px;border:0;border-radius:16px;padding:0;font-size:30px;line-height:1;color:#fff;background:linear-gradient(180deg,#ff6870,#d8273a);box-shadow:0 5px 0 #8d1426}
.notification-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 14px 0;background:linear-gradient(180deg,#eaf2ff,#f8fbff)}
.notification-tabs button{height:42px;border:0;border-radius:16px;background:linear-gradient(180deg,#ffffff,#dfe9ff);box-shadow:0 4px 0 rgba(76,104,164,.32);color:#253b70;font-family:inherit;font-size:13px;font-weight:1000;letter-spacing:.4px}
.notification-tabs button.is-active{background:linear-gradient(180deg,#fff7a6,#ffbf2e);box-shadow:0 4px 0 #945b00;color:#3b2400}
.notification-list{overflow:auto;padding:13px 14px;display:grid;gap:10px;min-height:220px}
.notification-item{border:0;width:100%;border-radius:20px;padding:12px;background:linear-gradient(180deg,#ffffff,#e7f0ff);box-shadow:0 5px 0 rgba(53,78,133,.28);border:2px solid rgba(33,70,136,.12);text-align:left;color:#20305b;position:relative}
.notification-item.unread{border-color:rgba(255,196,36,.85);box-shadow:0 5px 0 rgba(155,95,0,.35),0 0 0 2px rgba(255,226,80,.28) inset}
.notification-item-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:1000;font-size:16px;line-height:1.15;color:#13285a}
.notification-item-title span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification-item-title small{flex:0 0 auto;color:#6c789a;font-size:11px;font-weight:850}
.notification-item p{margin:7px 0 0;font-size:13px;font-weight:800;line-height:1.33;color:#53617f;overflow-wrap:anywhere}
.message-thread-list[hidden]{display:none!important}.message-thread-item{width:100%;border:0;border-radius:20px;padding:11px;background:linear-gradient(180deg,#ffffff,#e7f0ff);box-shadow:0 5px 0 rgba(53,78,133,.28);border:2px solid rgba(33,70,136,.12);display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:10px;text-align:left;color:#20305b;font-family:inherit}.message-thread-item.unread{border-color:rgba(37,211,102,.82);box-shadow:0 5px 0 rgba(20,116,58,.30),0 0 0 2px rgba(37,211,102,.18) inset}.message-thread-avatar{width:52px;height:52px;border-radius:999px;background:linear-gradient(180deg,#e8fbff,#b8e8ff);display:grid;place-items:center;color:#075e54;font-weight:1000;position:relative;overflow:hidden}.message-thread-avatar img{width:100%;height:100%;object-fit:cover;display:block}.message-thread-avatar i{position:absolute;right:1px;bottom:1px;width:14px;height:14px;border-radius:999px;background:#25d366;border:3px solid #fff}.message-thread-main{min-width:0}.message-thread-main b{display:block;font-size:16px;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-thread-main small{display:block;margin-top:2px;color:#66789e;font-size:11px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-thread-main em{display:block;margin-top:5px;color:#53617f;font-size:13px;font-style:normal;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pm-thread-status{color:#4d679c;margin-right:5px;font-weight:1000}.pm-thread-status.is-read{color:#19a850}.message-thread-count{min-width:28px;height:28px;border-radius:999px;background:linear-gradient(180deg,#25d366,#15954a);box-shadow:0 3px 0 #0d6330;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:1000;padding:0 6px}
.notification-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.notification-actions button,.notification-clear{border:0;border-radius:14px;padding:9px 11px;font-family:inherit;font-weight:1000;background:linear-gradient(180deg,#fff7a6,#ffbf2e);box-shadow:0 4px 0 #945b00;color:#3b2400}.notification-actions .delete{background:linear-gradient(180deg,#ff8087,#d8273a);box-shadow:0 4px 0 #8d1426;color:#fff}
.notification-clear{margin:0 14px 14px;height:42px}.notification-empty{text-align:center;border-radius:20px;padding:24px 12px;background:rgba(255,255,255,.68);color:#53617f;font-weight:950}
.notification-battle{padding:10px}.notification-summary{width:100%;border:0;border-radius:18px;padding:12px 12px 11px;background:linear-gradient(180deg,#102f58,#071d38);box-shadow:0 5px 0 rgba(0,0,0,.28);color:#fff;text-align:left;font-family:inherit;display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center}.notification-summary small{font-size:11px;font-weight:900;color:#bde6ff;text-align:right;white-space:nowrap}.notification-battle-title{min-width:0;font-size:15px;font-weight:1000;color:#ffec91;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 2px 0 rgba(0,0,0,.25)}.notification-summary em{font-style:normal;font-size:12px;font-weight:950;color:#e9f7ff}.notification-summary b{justify-self:end;border-radius:999px;padding:6px 10px;background:linear-gradient(180deg,#fff4a1,#ffc42e);box-shadow:0 3px 0 #9a6200;color:#3b2400;font-size:11px;font-weight:1000}.notification-item.open .notification-summary{border-radius:18px 18px 12px 12px}.notification-detail{margin:10px 2px 2px;border-radius:18px;background:linear-gradient(180deg,#ffffff,#edf4ff);border:2px solid rgba(31,67,131,.11);overflow:hidden}.notification-detail-grid{display:grid;gap:0}.notification-detail-row{display:grid;grid-template-columns:30px minmax(92px,.9fr) minmax(0,1.2fr);align-items:center;gap:8px;padding:10px 11px;border-bottom:1px solid rgba(24,55,112,.10);font-size:12px;line-height:1.25}.notification-detail-row:last-child{border-bottom:0}.notification-detail-icon{width:28px;height:28px;border-radius:10px;display:grid;place-items:center;background:rgba(18,51,96,.08);font-size:16px}.notification-detail-row b{color:#1a356b;font-weight:1000}.notification-detail-row strong{color:#53617f;font-weight:950;text-align:right;overflow-wrap:anywhere}.notification-battle .notification-actions{padding:0 2px}.notification-battle.unread .notification-summary{box-shadow:0 5px 0 rgba(118,73,0,.38),0 0 0 2px rgba(255,220,55,.62) inset}
@media(max-width:370px){.lobby-top{grid-template-columns:54px 1fr 50px auto!important}.world-notify-btn{width:48px;height:48px;font-size:23px}.coin-pill{min-width:68px;padding-left:9px;padding-right:9px}.notification-head h2{font-size:25px}.notification-panel{border-radius:25px}}


/* Bildirim modalı açıkken yüzen asker/birlik kartları görünmesin; boş bildirimde temizle butonu saklansın. */
.notification-clear[hidden]{display:none!important}
body.hs-modal-open #ghostSelectLobbyBtn,
body.hs-modal-open #deployUnitLobbyBtn{display:none!important;visibility:hidden!important;pointer-events:none!important}
.notification-overlay.show ~ #ghostSelectLobbyBtn,
.notification-overlay.show ~ #deployUnitLobbyBtn{display:none!important}


/* === Modal açıkken yüzen asker/birlik kartlarını kesin gizle === */
body.hs-modal-open #ghostSelectLobbyBtn,
body.hs-modal-open #deployUnitLobbyBtn,
#settingsOverlay.show ~ #ghostSelectLobbyBtn,
#settingsOverlay.show ~ #deployUnitLobbyBtn,
#notificationOverlay.show ~ #ghostSelectLobbyBtn,
#notificationOverlay.show ~ #deployUnitLobbyBtn,
#targetOverlay.show ~ #ghostSelectLobbyBtn,
#targetOverlay.show ~ #deployUnitLobbyBtn,
#featureOverlay.show ~ #ghostSelectLobbyBtn,
#featureOverlay.show ~ #deployUnitLobbyBtn,
#authOverlay.show ~ #ghostSelectLobbyBtn,
#authOverlay.show ~ #deployUnitLobbyBtn{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  z-index:-1!important;
}
#settingsOverlay .settings-menu-btn{
  -webkit-tap-highlight-color:transparent!important;
  cursor:pointer!important;
}
#settingsOverlay .settings-panel-menu.audio-open .settings-head h2::after{
  content:' / Ses';
  color:#d9efff;
  font-size:.78em;
}

/* === Alışveriş sekmeli market düzeltmesi === */
.hs-shop-token{display:flex;align-items:center;justify-content:center;gap:5px;border-radius:14px;padding:7px 4px;background:linear-gradient(180deg,#fff9bf,#ffd849 58%,#f0a51d);color:#2d195f;font-weight:1000;box-shadow:inset 0 2px 0 rgba(255,255,255,.72),0 3px 0 rgba(83,45,134,.52);min-width:0}
.hs-shop-token span{font-size:18px;line-height:1}.hs-shop-token b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hs-shop-gold{background:linear-gradient(180deg,#fff1ba,#ffc64a 58%,#e89212);color:#352005}.hs-shop-food{background:linear-gradient(180deg,#e7ffbd,#87ef30 58%,#39b800);color:#173800}
.feature-overlay.show .feature-panel{touch-action:manipulation}.feature-overlay.show #featureText{overscroll-behavior:contain}
@media(max-width:430px){.hs-shop-token{padding:6px 3px}.hs-shop-token b{font-size:13px}}


/* === Market sabit üst alan + kontrollü kaydırma === */
.hs-shop-root-fixed{height:100%;min-height:0;}
.hs-shop-fixed-head{position:relative;z-index:2;}
.hs-shop-scroll-body{scrollbar-width:thin;}
.hs-shop-scroll-body::-webkit-scrollbar{width:6px;}
.hs-shop-scroll-body::-webkit-scrollbar-thumb{background:rgba(24,55,105,.35);border-radius:999px;}
.hs-food-sell-card input:focus{box-shadow:0 0 0 3px rgba(255,234,120,.25);}
.feature-overlay.show #featureText{overflow:hidden!important;}
.feature-overlay.show #shopPowerList .network-shop{max-height:none!important;}
@media(max-height:760px){
  .feature-overlay.show #featureText{max-height:min(66dvh,520px)!important;}
}
@media(max-width:430px){
  .hs-food-sell-card{padding:8px!important;}
  .hs-shop-tabs button{height:40px!important;font-size:16px!important;}
}


/* === Market ürün listesi kaydırma kesin düzeltme === */
.feature-overlay.show #featureText:has(#shopPowerList){
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  height:auto!important;
  overflow:hidden!important;
  touch-action:pan-y!important;
}
#shopPowerList{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  touch-action:pan-y!important;
}
#shopPowerList .hs-shop-fixed-head,
#shopPowerList .hs-shop-tabs{
  flex:0 0 auto!important;
}
#shopPowerList .hs-shop-scroll-body{
  flex:1 1 auto!important;
  min-height:130px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  touch-action:pan-y!important;
  pointer-events:auto!important;
  display:grid!important;
  align-content:start!important;
  padding-bottom:18px!important;
}
#shopPowerList .hs-shop-scroll-body .network-unit-row{
  flex:0 0 auto!important;
}
@media(max-height:740px){
  .feature-overlay.show .feature-panel:has(#shopPowerList){height:calc(100dvh - 12px)!important;padding:10px!important;}
  #shopPowerList .hs-shop-scroll-body{min-height:110px!important;}
}


/* Kayıt/giriş formu ayrımı: kullanıcı adı ve e-posta net görünür. */
.auth-form label span{display:block;margin-bottom:5px}
.auth-field-hint{display:block;margin:5px 4px 0;color:#5b6887;font-size:11px;font-weight:850;line-height:1.25}
.auth-form label[hidden]{display:none!important}
.auth-form input:required{box-shadow:inset 0 0 0 1px rgba(255,210,64,.12)}
@media(max-width:420px){.auth-field-hint{font-size:10.5px}.auth-card{padding:17px}.auth-form{gap:9px}}

/* Güncelleme: Ana savaş paneli SV/istatistik alanları - taşma engelli profesyonel görünüm */
.mp-panel{
  border-radius:22px!important;
  padding:10px 12px!important;
  background:linear-gradient(180deg,rgba(13,32,58,.96),rgba(5,14,31,.96))!important;
  border:2px solid rgba(255,218,103,.70)!important;
  box-shadow:0 7px 0 rgba(15,46,84,.78),0 14px 25px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.12)!important;
}
.mp-user-line-fixed{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px!important}
#mpUserName{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(14px,4vw,18px);line-height:1.1;text-shadow:0 2px 0 rgba(0,0,0,.55)}
.mp-stats-line{display:grid!important;grid-template-columns:1.42fr .62fr .62fr;gap:7px!important;align-items:center;margin-top:8px!important;font-size:clamp(10px,3.1vw,12px)!important;color:#eef8ff!important}
.mp-economy-line{grid-template-columns:.56fr .92fr 1.18fr!important;margin-top:7px!important}
.mp-stats-line span{min-width:0;height:28px;display:flex!important;align-items:center;justify-content:center;gap:4px;border-radius:999px!important;padding:4px 7px!important;background:linear-gradient(180deg,rgba(255,255,255,.17),rgba(255,255,255,.08))!important;border:1px solid rgba(255,255,255,.13)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 2px 0 rgba(0,0,0,.20);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-stats-line b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(10px,3vw,12px);line-height:1.05;letter-spacing:-.1px}
#mpCastleText{font-size:clamp(9.5px,2.9vw,12px);letter-spacing:-.25px}
.mp-target-line{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px!important;align-items:center;margin-top:9px!important;color:#ffef9d!important}
#mpTargetText{min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:clamp(11px,3.2vw,13px);line-height:1.15;text-shadow:0 2px 0 rgba(0,0,0,.50)}
.mp-pick-btn{height:42px;min-width:92px;border-radius:17px!important;padding:8px 12px!important;font-size:clamp(12px,3.4vw,14px)!important;background:linear-gradient(180deg,#fff5a6,#ffc739 55%,#f0a813)!important;box-shadow:0 5px 0 #8d5600,0 8px 14px rgba(0,0,0,.22)!important;color:#3b2400!important;text-shadow:0 1px 0 rgba(255,255,255,.55)}
@media(max-width:390px){
  .mp-panel{padding:9px 10px!important;border-radius:20px!important}
  .mp-stats-line{gap:5px!important;grid-template-columns:1.36fr .60fr .60fr!important}
  .mp-stats-line span{height:27px;padding:3px 6px!important}
  .mp-economy-line{grid-template-columns:.52fr .88fr 1.14fr!important}
  .mp-pick-btn{min-width:86px;height:40px;padding:7px 10px!important}
}


/* Güncelleme: SV asker stokları ve asker satma alanı */
#shopPowerList .hs-sv-stock-note{
  color:#f6fff0!important;
  background:linear-gradient(180deg,#123f66,#082340 62%,#06162d)!important;
  border:1px solid rgba(142,255,163,.55)!important;
  box-shadow:0 5px 0 rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.12)!important;
  text-shadow:0 2px 0 rgba(0,0,0,.55)!important;
}
#shopPowerList .hs-unit-shop-v2 .network-unit-row{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
}
.hs-sv-unit-mini{
  width:42px!important;
  height:42px!important;
  border-radius:15px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  padding:0!important;
}
.hs-sv-unit-mini > *{
  transform:scale(.72)!important;
  transform-origin:center!important;
}
@media(max-width:390px){
  #shopPowerList .hs-unit-shop-v2 .network-unit-row{gap:6px!important;padding:9px!important}
  #shopPowerList .hs-unit-shop-v2 button{min-width:68px!important}
}

/* Güncelleme: bildirim rozeti dünya ikonunun üzerinde her zaman okunabilir kalsın. */
.world-notify-btn{overflow:visible!important;isolation:isolate!important;}
.world-notify-btn.has-unread{animation:hsNotifyPulse 1.35s ease-in-out infinite;}
.world-notify-btn b#notificationBadge{position:absolute!important;right:-8px!important;top:-9px!important;z-index:5!important;min-width:24px!important;height:24px!important;padding:0 6px!important;display:flex;align-items:center;justify-content:center;border-radius:999px!important;background:linear-gradient(180deg,#fff58d 0%,#ffc22b 64%,#ff8a00 100%)!important;border:2px solid #8b0b12!important;box-shadow:0 3px 0 #6d0710,0 0 0 2px rgba(255,255,255,.32),0 0 14px rgba(255,207,46,.70)!important;color:#780000!important;font-size:12px!important;font-weight:1000!important;line-height:1!important;text-shadow:0 1px 0 rgba(255,255,255,.60)!important;pointer-events:none!important;}
.world-notify-btn b#notificationBadge[hidden]{display:none!important;}
@keyframes hsNotifyPulse{0%,100%{filter:none;transform:translateY(0)}50%{filter:brightness(1.12);transform:translateY(-1px)}}

/* Güncelleme: savaş sonucu kazanım metinleri tek satıra sıkışmaz; profesyonel rozetler halinde kırılır. */
.castle-result-gain{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:5px 6px!important;max-height:none!important;}
.hs-result-chip{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:24px;padding:4px 8px;border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.07));border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 2px 0 rgba(0,0,0,.24);font-size:clamp(10.5px,3.2vw,13px);font-weight:1000;line-height:1.05;white-space:normal;text-align:center;color:#f6fbff;text-shadow:0 2px 0 rgba(0,0,0,.58);}
.hs-result-chip.army{background:linear-gradient(180deg,rgba(118,255,80,.28),rgba(32,142,26,.15));border-color:rgba(149,255,119,.42)}
.hs-result-chip.gold{background:linear-gradient(180deg,rgba(255,226,79,.32),rgba(195,119,12,.18));border-color:rgba(255,222,89,.52);color:#fff4b0}
.hs-result-chip.land{background:linear-gradient(180deg,rgba(97,202,255,.30),rgba(18,83,145,.18));border-color:rgba(111,217,255,.48);color:#dff8ff}
.hs-result-chip.crate{background:linear-gradient(180deg,rgba(255,166,75,.26),rgba(126,68,20,.17));border-color:rgba(255,181,97,.44)}
.hs-result-chip.pending{background:linear-gradient(180deg,rgba(145,194,255,.22),rgba(50,76,121,.16));border-color:rgba(170,212,255,.34);color:#ddecff}
.hs-result-chip.error,.hs-result-chip.warning{background:linear-gradient(180deg,rgba(255,99,113,.24),rgba(124,31,48,.16));border-color:rgba(255,120,136,.45);color:#ffe5e8}
.hs-result-chip.muted{opacity:.78}

/* Güncelleme: ana sayfadaki ASKER TİPİ kartı sabit görünür, panel yüksekliği değişince zıplamaz. */
#ghostSelectLobbyBtn{will-change:auto!important;transition:opacity .16s ease,filter .16s ease!important;}

/* Güncelleme: ASKER TİPİ kartı artık sayfanın üstüne bindirilen floating nesne değildir.
   Oyuncu bilgi panelindeki kendi yuvasında durur, Rakip Seç / Savaş butonu / kale üstüne taşmaz. */
.mp-user-line-fixed{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(128px,154px)!important;
  align-items:center!important;
  gap:8px!important;
}
#mpUnitSlot{
  position:relative!important;
  z-index:2!important;
  min-width:0!important;
  max-width:154px!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  pointer-events:auto!important;
}
#mpUnitSlot #ghostSelectLobbyBtn,
#ghostSelectLobbyBtn.ghost-select-panel-btn{
  position:relative!important;
  inset:auto!important;
  right:auto!important;
  top:auto!important;
  left:auto!important;
  bottom:auto!important;
  width:100%!important;
  max-width:154px!important;
  min-width:0!important;
  height:50px!important;
  margin:0!important;
  transform:none!important;
  z-index:2!important;
  box-sizing:border-box!important;
}
#mpUnitSlot #ghostSelectLobbyBtn b{font-size:9.5px!important}
#mpUnitSlot #ghostSelectLobbyBtn span span{font-size:11.6px!important}
@media(max-width:390px){
  .mp-user-line-fixed{grid-template-columns:minmax(0,1fr) minmax(118px,142px)!important;gap:6px!important}
  #mpUnitSlot{max-width:142px!important}
  #mpUnitSlot #ghostSelectLobbyBtn,#ghostSelectLobbyBtn.ghost-select-panel-btn{height:48px!important;max-width:142px!important;padding:5px 8px 5px 6px!important;gap:6px!important}
  #mpUnitSlot #ghostSelectLobbyBtn b{font-size:9px!important}
  #mpUnitSlot #ghostSelectLobbyBtn span span{font-size:10.8px!important}
}
@media(max-width:350px){
  .mp-user-line-fixed{grid-template-columns:minmax(0,1fr)!important}
  #mpUnitSlot{max-width:none!important;justify-content:stretch!important;margin-top:6px!important}
  #mpUnitSlot #ghostSelectLobbyBtn,#ghostSelectLobbyBtn.ghost-select-panel-btn{max-width:none!important;height:46px!important}
}


/* Sonuç ekranı: üst satır ikon+başlık, alt satır net değer */
.castle-result-gain{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  width:100%;
  max-width:100%;
}
.hs-result-chip{
  width:100%;
  min-width:0;
  min-height:48px;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:3px!important;
  padding:7px 8px!important;
  border-radius:15px!important;
  line-height:1.04!important;
  text-align:left!important;
  white-space:normal!important;
  overflow:hidden;
}
.hs-result-chip-head{
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
}
.hs-result-chip-icon{
  flex:0 0 25px;
  width:25px;
  height:25px;
  border-radius:10px;
  display:grid;
  place-items:center;
  font-size:15px;
  background:rgba(255,255,255,.20);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 2px 0 rgba(0,0,0,.16);
}
.hs-result-chip-body{display:contents!important;}
.hs-result-chip-title{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:clamp(10.5px,3.15vw,12.5px);
  font-weight:1000;
}
.hs-result-chip-value{
  display:block;
  min-width:0;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  word-break:normal;
  overflow-wrap:anywhere;
  font-size:clamp(9.5px,2.85vw,11.5px);
  font-weight:950;
  opacity:.94;
  padding-left:31px;
}
.hs-result-chip.victory{background:linear-gradient(180deg,rgba(121,255,122,.30),rgba(17,122,46,.18));border-color:rgba(139,255,134,.50);color:#edfff1}
.hs-result-chip.damage{background:linear-gradient(180deg,rgba(255,155,76,.28),rgba(150,55,17,.16));border-color:rgba(255,172,98,.45);color:#fff1df}
@media(max-width:360px){
  .castle-result-gain{gap:5px!important}
  .hs-result-chip{min-height:46px;padding:6px 6px!important;gap:2px!important}
  .hs-result-chip-head{gap:5px}
  .hs-result-chip-icon{width:22px;height:22px;flex-basis:22px;font-size:13px;border-radius:8px}
  .hs-result-chip-value{padding-left:27px;font-size:9.4px}
}


/* 2026-05-26: Ödüller/Market çarpı düğmesi mobilde kesin tıklanabilir olsun */
.feature-overlay.show .feature-close,
.feature-overlay.show #featureCloseBtn{
  z-index:30!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  cursor:pointer!important;
}
.feature-overlay.show .feature-ok,
.feature-overlay.show #featureOkBtn{
  pointer-events:auto!important;
  touch-action:manipulation!important;
}
.world-notify-btn b#notificationBadge:not([hidden]){
  display:flex!important;
}

/* 2026-05-26: Savaş sonucu profesyonel mobil oyun özeti */
.castle-result-gain{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  width:100%!important;
  max-width:100%!important;
}
.hs-result-chip{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  min-height:50px!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:31px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  column-gap:7px!important;
  row-gap:1px!important;
  padding:7px 8px!important;
  border-radius:17px!important;
  line-height:1.02!important;
  text-align:left!important;
  white-space:normal!important;
  overflow:visible!important;
  border:1.5px solid rgba(255,255,255,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 4px 0 rgba(0,0,0,.20),0 8px 13px rgba(0,0,0,.22)!important;
}
.hs-result-chip::after{
  content:"";
  position:absolute;
  inset:1px 1px auto 1px;
  height:42%;
  border-radius:16px 16px 10px 10px;
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,0));
  pointer-events:none;
}
.hs-result-chip-head{display:contents!important;min-width:0!important;}
.hs-result-chip-icon{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  width:31px!important;
  height:31px!important;
  flex:0 0 31px!important;
  border-radius:13px!important;
  display:grid!important;
  place-items:center!important;
  font-size:17px!important;
  background:radial-gradient(circle at 35% 24%,rgba(255,255,255,.42),rgba(255,255,255,.13) 46%,rgba(0,0,0,.18) 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.38),0 2px 0 rgba(0,0,0,.18),0 0 0 1px rgba(255,255,255,.12)!important;
  z-index:1!important;
}
.hs-result-chip-title{
  grid-column:2!important;
  grid-row:1!important;
  display:block!important;
  min-width:0!important;
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  font-size:clamp(10.3px,2.85vw,12px)!important;
  font-weight:1000!important;
  line-height:1.02!important;
  letter-spacing:.1px!important;
  z-index:1!important;
}
.hs-result-chip-value{
  grid-column:2!important;
  grid-row:2!important;
  display:block!important;
  min-width:0!important;
  padding-left:0!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  font-size:clamp(9.3px,2.65vw,11px)!important;
  font-weight:950!important;
  line-height:1.04!important;
  opacity:.96!important;
  z-index:1!important;
}
.hs-result-chip.outcome{
  grid-column:1 / -1!important;
  min-height:54px!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  padding:8px 10px!important;
  border-radius:20px!important;
}
.hs-result-chip.outcome .hs-result-chip-icon{width:38px!important;height:38px!important;flex-basis:38px!important;border-radius:16px!important;font-size:21px!important;}
.hs-result-chip.outcome .hs-result-chip-title{font-size:clamp(13px,3.65vw,16px)!important;letter-spacing:.35px!important;text-transform:uppercase!important;}
.hs-result-chip.outcome .hs-result-chip-value{font-size:clamp(10.5px,3vw,12.5px)!important;}
.hs-result-chip.error{
  grid-column:1 / -1!important;
  min-height:50px!important;
  grid-template-columns:34px minmax(0,1fr)!important;
}
.hs-result-chip.error .hs-result-chip-title{font-size:clamp(12px,3.25vw,14px)!important;}
.hs-result-chip.error .hs-result-chip-value{font-size:clamp(10.5px,2.95vw,12px)!important;}
.hs-result-chip.victory{background:linear-gradient(180deg,rgba(64,207,111,.82),rgba(21,125,57,.76))!important;border-color:rgba(172,255,169,.54)!important;color:#f2fff0!important;}
.hs-result-chip.warning{background:linear-gradient(180deg,rgba(255,172,91,.74),rgba(149,64,20,.70))!important;border-color:rgba(255,204,119,.48)!important;color:#fff5e7!important;}
.hs-result-chip.army{background:linear-gradient(180deg,rgba(71,177,109,.76),rgba(24,91,67,.74))!important;border-color:rgba(147,255,177,.36)!important;color:#eefef3!important;}
.hs-result-chip.crate{background:linear-gradient(180deg,rgba(128,128,132,.70),rgba(54,54,58,.72))!important;border-color:rgba(255,190,112,.36)!important;color:#fff4e7!important;}
.hs-result-chip.gold{background:linear-gradient(180deg,rgba(255,214,80,.82),rgba(184,107,17,.76))!important;border-color:rgba(255,240,139,.55)!important;color:#fff9d7!important;}
.hs-result-chip.land{background:linear-gradient(180deg,rgba(77,192,255,.76),rgba(27,96,160,.74))!important;border-color:rgba(134,223,255,.46)!important;color:#effbff!important;}
.hs-result-chip.damage{background:linear-gradient(180deg,rgba(255,135,79,.78),rgba(150,47,24,.74))!important;border-color:rgba(255,177,119,.42)!important;color:#fff1e7!important;}
.hs-result-chip.pending{background:linear-gradient(180deg,rgba(112,157,224,.72),rgba(45,72,123,.72))!important;border-color:rgba(174,214,255,.34)!important;color:#eef6ff!important;}
.hs-result-chip.muted{opacity:.78!important;filter:saturate(.8)!important;}
@media(max-width:370px){
  .castle-result-gain{gap:6px!important;}
  .hs-result-chip{grid-template-columns:28px minmax(0,1fr)!important;min-height:48px!important;padding:6px 7px!important;column-gap:6px!important;}
  .hs-result-chip-icon{width:28px!important;height:28px!important;flex-basis:28px!important;border-radius:12px!important;font-size:15px!important;}
  .hs-result-chip-title{font-size:10px!important;}
  .hs-result-chip-value{font-size:9px!important;}
  .hs-result-chip.outcome{grid-template-columns:34px minmax(0,1fr)!important;min-height:52px!important;}
  .hs-result-chip.outcome .hs-result-chip-icon{width:34px!important;height:34px!important;flex-basis:34px!important;font-size:19px!important;}
}

/* Giriş öncesi oyuncu sıralamaları */
.auth-card{
  width:min(94vw,500px);
  max-height:92dvh;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.auth-card::-webkit-scrollbar{width:6px}.auth-card::-webkit-scrollbar-thumb{background:rgba(24,59,122,.22);border-radius:999px}
.auth-leaderboards{
  margin-top:16px;
  display:grid;
  gap:12px;
  text-align:left;
}
.auth-leaderboards-title{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:10px;
  align-items:center;
  padding:11px 12px;
  border-radius:20px;
  background:linear-gradient(180deg,#123d78,#061c42);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.12),0 6px 0 rgba(9,36,87,.42);
  color:#fff;
}
.auth-leaderboards-title>span{
  width:44px;height:44px;border-radius:16px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#fff7ad,#ffbf33);
  box-shadow:0 4px 0 #9c5b00;
  font-size:24px;
}
.auth-leaderboards-title b{display:block;font-size:18px;line-height:1.05;font-weight:1000;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.32)}
.auth-leaderboards-title small{display:block;margin-top:4px;color:#cfe3ff;font-size:11px;font-weight:850;line-height:1.25}
.auth-board{
  border-radius:22px;
  background:linear-gradient(180deg,#f7fbff,#dceaff);
  border:2px solid rgba(24,59,122,.14);
  box-shadow:0 6px 0 rgba(39,82,159,.18),0 12px 24px rgba(9,34,73,.12);
  overflow:hidden;
}
.auth-board-head{
  display:grid;
  grid-template-columns:38px 1fr auto;
  gap:8px;
  align-items:center;
  padding:10px 12px;
  color:#173b7c;
  background:linear-gradient(180deg,#ffffff,#d9e6ff);
  border-bottom:1px solid rgba(24,59,122,.12);
}
.auth-board-head>span{
  width:38px;height:38px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#eff8ff,#b9d7ff);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.85),0 3px 0 rgba(37,82,148,.20);
  font-size:22px;
}
.auth-board-head b{font-size:17px;font-weight:1000;line-height:1;color:#15346e;text-shadow:0 1px 0 #fff}
.auth-board-head small{justify-self:end;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:1000;color:#3c2500;background:linear-gradient(180deg,#fff5a1,#ffc33a);box-shadow:0 3px 0 #9a5c00}
.auth-board-list{display:grid;gap:7px;padding:10px;max-height:270px;overflow:auto;-webkit-overflow-scrolling:touch}
.auth-board-list::-webkit-scrollbar{width:5px}.auth-board-list::-webkit-scrollbar-thumb{background:rgba(24,59,122,.2);border-radius:999px}
.auth-rank-item{
  display:grid;
  grid-template-columns:30px 44px minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  min-height:56px;
  padding:7px 8px;
  border-radius:18px;
  background:linear-gradient(180deg,#17395f,#071d3d);
  color:#fff;
  box-shadow:0 4px 0 rgba(0,0,0,.22),inset 0 0 0 1px rgba(255,255,255,.08);
}
.auth-rank-item.rank-1{background:linear-gradient(180deg,#8d5b00,#402300);box-shadow:0 4px 0 rgba(90,45,0,.38),inset 0 0 0 2px rgba(255,220,93,.28)}
.auth-rank-item.rank-2{background:linear-gradient(180deg,#596a84,#243246)}
.auth-rank-item.rank-3{background:linear-gradient(180deg,#7a4b28,#372011)}
.auth-rank-no{
  width:30px;height:30px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  color:#3b2600;background:linear-gradient(180deg,#fff6ad,#ffca3d);box-shadow:0 3px 0 #8f5600;font-size:15px;font-weight:1000;
}
.auth-rank-avatar{
  width:44px;height:44px;border-radius:16px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto;
  background:linear-gradient(180deg,#b9faff,#409dff);
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.5),0 3px 0 rgba(0,0,0,.18);
  color:#07306b;font-weight:1000;font-size:19px;text-shadow:0 1px 0 rgba(255,255,255,.55);
}
.auth-rank-avatar img{width:100%;height:100%;object-fit:cover;display:block}.auth-rank-avatar.no-img{background:linear-gradient(180deg,#d7fff1,#52e07e)}
.auth-rank-info{min-width:0}.auth-rank-info b{display:block;font-size:14px;line-height:1.05;font-weight:1000;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 2px 0 rgba(0,0,0,.32)}
.auth-rank-info small{display:block;margin-top:4px;font-size:11px;line-height:1;color:#cfe5ff;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.auth-rank-value{min-width:68px;text-align:center;border-radius:15px;padding:6px 8px;color:#3b2400;background:linear-gradient(180deg,#fff7a8,#ffc43f);box-shadow:0 3px 0 #925600;font-weight:1000;line-height:1}
.auth-rank-value span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.3px}.auth-rank-value b{display:block;margin-top:2px;font-size:15px;color:#301d00}
.auth-board-loading,.auth-board-empty{padding:14px;text-align:center;color:#53617f;font-weight:1000;font-size:13px}
@media(max-width:420px){
  .auth-card{width:94vw;padding:16px;max-height:90dvh}
  .auth-leaderboards{margin-top:13px;gap:10px}
  .auth-leaderboards-title{grid-template-columns:38px 1fr;padding:10px;border-radius:18px}.auth-leaderboards-title>span{width:38px;height:38px;font-size:21px}.auth-leaderboards-title b{font-size:16px}.auth-leaderboards-title small{font-size:10px}
  .auth-board-head{grid-template-columns:34px 1fr auto;padding:9px 10px}.auth-board-head>span{width:34px;height:34px;font-size:20px}.auth-board-head b{font-size:15px}.auth-board-head small{font-size:10px;padding:5px 7px}
  .auth-board-list{padding:8px;gap:6px;max-height:238px}
  .auth-rank-item{grid-template-columns:26px 39px minmax(0,1fr) 58px;gap:7px;min-height:52px;padding:6px;border-radius:16px}
  .auth-rank-no{width:26px;height:26px;border-radius:10px;font-size:13px}.auth-rank-avatar{width:39px;height:39px;border-radius:14px;font-size:17px}.auth-rank-info b{font-size:13px}.auth-rank-info small{font-size:10px}.auth-rank-value{min-width:58px;padding:6px 5px;border-radius:13px}.auth-rank-value b{font-size:13px}.auth-rank-value span{font-size:8px}
}


/* === Giriş/Kayıt ekranı profesyonel düzen düzeltmesi === */
.auth-card{width:min(94vw,460px)!important;padding:18px 18px 20px!important}
.auth-card>h2{font-size:clamp(28px,8vw,40px)!important;line-height:.98!important}
.auth-card>p{margin-bottom:12px!important;font-size:14px!important;line-height:1.35!important}
.auth-tabs{gap:12px!important;margin-bottom:14px!important}
.auth-tabs button{height:56px!important;border-radius:22px!important;font-size:clamp(20px,5vw,24px)!important;font-weight:1000!important}
.auth-form{gap:11px!important}
.auth-form label span{display:block;margin-bottom:5px;font-size:12px;font-weight:1000;color:#2d3e6f}
.auth-form input{height:56px!important;border-radius:18px!important;padding:0 16px!important;font-size:17px!important;font-weight:900!important}
.auth-field-hint{display:block;margin-top:6px;font-size:12px;line-height:1.25;color:#64739a;font-weight:850}
.auth-action-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:2px}
.auth-help-link,.auth-resend-btn{height:52px;border-radius:18px;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;font:1000 15px/1.1 inherit;padding:0 10px;border:0;cursor:pointer}
.auth-help-link{color:#fff;background:linear-gradient(180deg,#184d9e,#0a2a63);box-shadow:0 6px 0 #071c43}
.auth-resend-btn{color:#3e2a00;background:linear-gradient(180deg,#fff6a5,#ffc637);box-shadow:0 6px 0 #9d6000}
.auth-form button[type=submit]{height:60px!important;border-radius:22px!important;font-size:clamp(20px,5.6vw,28px)!important;font-weight:1000!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#authMessage{min-height:18px!important;margin-top:2px!important}
.auth-card.is-register #authActionRow{display:none!important}
.auth-card.is-register .auth-leaderboards{margin-top:14px!important}
@media(max-width:430px){
  .auth-card{width:95vw!important;padding:16px!important}
  .auth-tabs button{height:54px!important;font-size:20px!important}
  .auth-form input{height:54px!important;font-size:16px!important}
  .auth-action-row{grid-template-columns:1fr 1fr;gap:8px}
  .auth-help-link,.auth-resend-btn{height:48px;font-size:13px;padding:0 8px}
  .auth-form button[type=submit]{height:58px!important;font-size:20px!important}
}

/* === Rakip kale listesi daha profesyonel kart görünümü === */
.target-list{padding-top:2px!important}
.target-item{grid-template-columns:56px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;min-height:92px!important;padding:14px 16px!important;border-radius:24px!important;background:linear-gradient(180deg,#153760,#071c3b)!important;box-shadow:0 6px 0 rgba(7,28,67,.9),0 14px 24px rgba(0,0,0,.18)!important;border:1px solid rgba(255,255,255,.08)!important}
.target-item:hover{filter:brightness(1.02)}
.target-item.is-selected{outline:none!important;border:2px solid rgba(179,255,75,.92)!important;background:linear-gradient(180deg,#1f4774,#0a2447)!important;box-shadow:0 6px 0 rgba(10,34,71,.92),0 0 0 3px rgba(179,255,75,.18)!important}
.target-item-avatar{width:56px;height:56px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#f5fbff,#b5d3ff);box-shadow:inset 0 0 0 3px rgba(255,255,255,.65),0 4px 0 rgba(7,28,67,.38);color:#123a76;font-size:22px;font-weight:1000;overflow:hidden;flex:0 0 auto}
.target-item-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.target-item-main{min-width:0;display:grid;gap:4px}
.target-item-name{display:block;font-size:22px!important;line-height:1.02!important;font-weight:1000;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 2px 0 rgba(0,0,0,.32)}
.target-item-meta{display:block;font-size:13px!important;line-height:1.2!important;color:#cfe4ff!important;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.target-item-stats{display:flex;gap:7px;flex-wrap:wrap;margin-top:2px}
.target-stat-chip{border-radius:999px;padding:5px 8px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.08);font-size:11px;font-weight:1000;color:#eef7ff;line-height:1}
.target-item-side{justify-self:end;display:grid;gap:8px;min-width:98px}
.target-kale-badge,.target-hp-badge{border-radius:16px;padding:8px 10px;text-align:center;font-weight:1000;line-height:1.05}
.target-kale-badge{color:#3d2400;background:linear-gradient(180deg,#fff6aa,#ffc635);box-shadow:0 4px 0 #9b5f00}
.target-hp-badge{color:#18345f;background:linear-gradient(180deg,#eff7ff,#d3e6ff);box-shadow:0 4px 0 #7d97be}
.target-kale-badge small,.target-hp-badge small{display:block;font-size:10px;font-weight:1000;opacity:.9;margin-top:3px}
.target-kale-badge b,.target-hp-badge b{display:block;font-size:16px;font-weight:1000}
@media(max-width:430px){
  .target-item{grid-template-columns:50px minmax(0,1fr) 90px!important;gap:10px!important;min-height:84px!important;padding:12px!important;border-radius:20px!important}
  .target-item-avatar{width:50px;height:50px;border-radius:16px;font-size:20px}
  .target-item-name{font-size:19px!important}
  .target-item-meta{font-size:12px!important}
  .target-item-side{min-width:90px;gap:6px}
  .target-kale-badge,.target-hp-badge{padding:7px 8px;border-radius:14px}
  .target-kale-badge b,.target-hp-badge b{font-size:14px}
}


/* === Rakip kaleler modalı profesyonel görünüm düzeltmesi === */
.target-list .target-item{display:grid!important;grid-template-columns:64px minmax(0,1fr) 112px!important;align-items:center!important;gap:14px!important;min-height:128px!important;padding:16px 16px!important;border-radius:24px!important;background:linear-gradient(180deg,#153760,#061a37)!important;box-shadow:0 6px 0 rgba(8,27,60,.95),0 14px 28px rgba(0,0,0,.16)!important;border:1px solid rgba(255,255,255,.08)!important;overflow:hidden}
.target-list .target-item.is-selected{border:2px solid rgba(179,255,75,.9)!important;box-shadow:0 6px 0 rgba(8,27,60,.95),0 0 0 3px rgba(179,255,75,.16)!important}
.target-list .target-item-avatar{width:64px!important;height:64px!important;border-radius:20px!important;background:linear-gradient(180deg,#f4f9ff,#cfe1ff)!important;color:#153c7a!important;box-shadow:inset 0 0 0 3px rgba(255,255,255,.72),0 4px 0 rgba(10,36,77,.34)!important;font-size:30px!important;font-weight:1000!important}
.target-list .target-item-main{min-width:0!important;display:grid!important;grid-template-rows:auto auto auto!important;gap:7px!important;align-self:center}
.target-list .target-item-name{display:block!important;font-size:24px!important;line-height:1!important;font-weight:1000!important;color:#ffffff!important;text-shadow:0 2px 0 rgba(0,0,0,.22)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.target-list .target-item-meta{display:block!important;font-size:14px!important;line-height:1.2!important;font-weight:850!important;color:#dceaff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.target-list .target-item-stats{display:flex!important;flex-direction:column!important;gap:7px!important;align-items:flex-start!important;min-width:0!important}
.target-list .target-stat-chip{display:flex!important;align-items:center!important;gap:8px!important;min-height:34px!important;padding:0 12px!important;border-radius:999px!important;background:rgba(255,255,255,.09)!important;border:1px solid rgba(255,255,255,.08)!important;color:#eef6ff!important;max-width:100%}
.target-list .target-stat-icon{flex:0 0 auto;font-size:16px;line-height:1}
.target-list .target-stat-text{font-size:12px!important;font-weight:900!important;color:#dce9ff!important;white-space:nowrap!important}
.target-list .target-stat-value{margin-left:auto!important;font-size:18px!important;line-height:1!important;font-weight:1000!important;color:#fff0a6!important;white-space:nowrap!important}
.target-list .target-item-side{display:grid!important;gap:9px!important;align-self:stretch!important;min-width:112px!important;justify-self:end!important}
.target-list .target-info-badge{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;text-align:center!important;min-height:42px!important;padding:8px 10px!important;border-radius:18px!important;overflow:hidden!important}
.target-list .target-info-badge-gold{background:linear-gradient(180deg,#fff0a3,#ffc93d)!important;box-shadow:0 4px 0 #a76800!important}
.target-list .target-info-badge-light{background:linear-gradient(180deg,#f7fbff,#d8e7ff)!important;box-shadow:0 4px 0 #7f97bb!important}
.target-list .target-info-label{display:block!important;font-size:11px!important;line-height:1.05!important;font-weight:1000!important;opacity:.92!important;white-space:nowrap!important;color:#4d5e7f!important}
.target-list .target-info-badge-gold .target-info-label{color:#6b4400!important}
.target-list .target-info-value{display:block!important;margin-top:4px!important;font-size:21px!important;line-height:1!important;font-weight:1000!important;white-space:nowrap!important;color:#173766!important}
.target-list .target-info-badge-gold .target-info-value{color:#402600!important}
@media(max-width:430px){
  .target-list .target-item{grid-template-columns:58px minmax(0,1fr) 100px!important;gap:12px!important;min-height:120px!important;padding:14px 14px!important;border-radius:22px!important}
  .target-list .target-item-avatar{width:58px!important;height:58px!important;border-radius:18px!important;font-size:28px!important}
  .target-list .target-item-name{font-size:22px!important}
  .target-list .target-item-meta{font-size:13px!important}
  .target-list .target-item-side{min-width:100px!important;gap:8px!important}
  .target-list .target-info-value{font-size:19px!important}
  .target-list .target-stat-chip{padding:0 10px!important;min-height:32px!important}
  .target-list .target-stat-value{font-size:17px!important}
}


/* === Rakip Kaleler sade/profesyonel liste düzeni === */
.target-list .target-item{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 124px!important;
  align-items:center!important;
  gap:14px!important;
  min-height:92px!important;
  padding:14px 16px!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,#153b67 0%,#071b39 100%)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 6px 0 rgba(6,25,57,.96),0 14px 26px rgba(0,0,0,.18)!important;
  overflow:hidden!important;
}
.target-list .target-item.is-selected{
  border:2px solid rgba(178,255,68,.95)!important;
  box-shadow:0 6px 0 rgba(6,25,57,.96),0 0 0 3px rgba(178,255,68,.16)!important;
}
.target-simple-left{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  align-items:center!important;
  gap:14px!important;
  min-width:0!important;
}
.target-list .target-item-avatar{
  width:64px!important;
  height:64px!important;
  border-radius:20px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:linear-gradient(180deg,#f8fbff,#c9ddff)!important;
  color:#113e7c!important;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.76),0 4px 0 rgba(5,26,60,.38)!important;
  font-size:30px!important;
  font-weight:1000!important;
  overflow:hidden!important;
}
.target-list .target-item-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.target-list .target-item-main{
  display:block!important;
  min-width:0!important;
}
.target-list .target-item-name{
  display:block!important;
  margin:0!important;
  color:#ffffff!important;
  font-size:clamp(22px,5.4vw,28px)!important;
  line-height:1.02!important;
  font-weight:1000!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-shadow:0 2px 0 rgba(0,0,0,.28)!important;
}
.target-list .target-item-meta{
  display:block!important;
  margin-top:7px!important;
  color:#dcecff!important;
  font-size:14px!important;
  line-height:1.15!important;
  font-weight:850!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.target-list .target-item-stats,.target-list .target-item-side,.target-list .target-stat-chip,.target-list .target-info-badge{display:none!important}
.target-fight-btn{
  width:124px!important;
  height:58px!important;
  border:0!important;
  border-radius:22px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 10px!important;
  background:linear-gradient(180deg,#b9ff37 0%,#59e900 58%,#24b900 100%)!important;
  box-shadow:0 7px 0 #168100,0 12px 18px rgba(0,0,0,.18),inset 0 2px 0 rgba(255,255,255,.55)!important;
  color:#143800!important;
  font-family:inherit!important;
  font-size:22px!important;
  line-height:1!important;
  font-weight:1000!important;
  text-shadow:0 1px 0 rgba(255,255,255,.45)!important;
}
.target-fight-btn:active{transform:translateY(3px)!important;box-shadow:0 4px 0 #168100,0 8px 14px rgba(0,0,0,.18)!important}
@media(max-width:430px){
  .target-list .target-item{grid-template-columns:minmax(0,1fr) 106px!important;gap:10px!important;min-height:86px!important;padding:12px 13px!important;border-radius:22px!important}
  .target-simple-left{grid-template-columns:56px minmax(0,1fr)!important;gap:12px!important}
  .target-list .target-item-avatar{width:56px!important;height:56px!important;border-radius:18px!important;font-size:26px!important}
  .target-list .target-item-name{font-size:23px!important}
  .target-list .target-item-meta{font-size:13px!important;margin-top:6px!important}
  .target-fight-btn{width:106px!important;height:54px!important;border-radius:20px!important;font-size:19px!important}
}
@media(max-width:365px){
  .target-list .target-item{grid-template-columns:minmax(0,1fr) 94px!important;padding:11px!important}
  .target-simple-left{grid-template-columns:50px minmax(0,1fr)!important;gap:10px!important}
  .target-list .target-item-avatar{width:50px!important;height:50px!important;border-radius:16px!important;font-size:23px!important}
  .target-list .target-item-name{font-size:20px!important}
  .target-fight-btn{width:94px!important;height:50px!important;font-size:17px!important}
}


/* === Rakip kaleler kart yüksekliği düzeltmesi === */
.target-list{display:flex!important;flex-direction:column!important;align-content:flex-start!important;justify-content:flex-start!important}
.target-list .target-item{align-self:stretch!important;min-height:84px!important;height:auto!important}
@media(max-width:430px){.target-list .target-item{min-height:80px!important}}


/* Giriş ekranı üst marka alanı: logo varsa logo, yoksa oyun adı görünür. */
.auth-brand-display{display:grid;place-items:center;min-height:52px;margin:0 0 8px;text-align:center}
.auth-logo{display:block;max-width:min(260px,74vw);max-height:86px;object-fit:contain;margin:0 auto;filter:drop-shadow(0 8px 12px rgba(0,0,0,.22))}
.auth-brand-display h2{margin:0;font-size:clamp(28px,8vw,40px);line-height:.98;font-weight:1000;color:#183b7a;text-shadow:0 1px 0 rgba(255,255,255,.7)}
.auth-logo[hidden]{display:none!important}

/* Güncelleme: oyun ana sayfasında logo yüklüyken yıldız/altın alanı kaymasın.
   Logo varsa üst alan profesyonel bir başlık gibi çalışır; ayar ve dünya ikonları
   köşelerde kalır, cüzdan rozeti logonun altında ortalanır. Logo yoksa eski düzen korunur. */
.lobby-top{grid-template-columns:58px minmax(0,1fr) 52px auto!important;}
.lobby-top-fill{display:none!important;}
.lobby-screen.has-lobby-logo .lobby-top,
.lobby-top.has-lobby-logo{
  position:relative!important;
  display:block!important;
  height:132px!important;
  min-height:132px!important;
  padding-top:8px!important;
  margin:0 0 6px!important;
  overflow:visible!important;
}
.lobby-screen.has-lobby-logo .round-menu,
.lobby-top.has-lobby-logo .round-menu{
  position:absolute!important;
  left:0!important;
  top:8px!important;
  z-index:6!important;
}
.lobby-screen.has-lobby-logo .world-notify-btn,
.lobby-top.has-lobby-logo .world-notify-btn{
  position:absolute!important;
  right:0!important;
  top:8px!important;
  z-index:6!important;
}
.lobby-screen.has-lobby-logo .lobby-title-box,
.lobby-top.has-lobby-logo .lobby-title-box{
  position:absolute!important;
  left:64px!important;
  right:64px!important;
  top:0!important;
  min-height:84px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  pointer-events:none!important;
  z-index:4!important;
}
.lobby-screen.has-lobby-logo .lobby-logo,
.lobby-top.has-lobby-logo .lobby-logo{
  max-width:min(292px,64vw)!important;
  max-height:86px!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain!important;
  margin:0 auto!important;
  display:block!important;
  filter:drop-shadow(0 8px 10px rgba(0,0,0,.38))!important;
}
.lobby-screen.has-lobby-logo .coin-pill,
.lobby-top.has-lobby-logo .coin-pill{
  position:absolute!important;
  left:50%!important;
  top:86px!important;
  transform:translateX(-50%)!important;
  z-index:7!important;
  width:auto!important;
  min-width:190px!important;
  max-width:min(280px,calc(100vw - 132px))!important;
  min-height:40px!important;
  padding:5px 8px!important;
  border-radius:20px!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.lobby-screen.has-lobby-logo #lobbyCoinText,
.lobby-top.has-lobby-logo #lobbyCoinText{
  gap:6px!important;
  font-size:clamp(14px,3.7vw,18px)!important;
  max-width:100%!important;
}
.lobby-screen.has-lobby-logo #lobbyCoinText .wallet-balance-chip,
.lobby-top.has-lobby-logo #lobbyCoinText .wallet-balance-chip{
  min-height:28px!important;
  padding:3px 7px!important;
  gap:5px!important;
}
.lobby-screen.has-lobby-logo #lobbyCoinText .wallet-balance-icon,
.lobby-top.has-lobby-logo #lobbyCoinText .wallet-balance-icon{
  width:22px!important;
  height:22px!important;
  font-size:15px!important;
}
.lobby-screen.has-lobby-logo #lobbyCoinText .wallet-balance-chip b,
.lobby-top.has-lobby-logo #lobbyCoinText .wallet-balance-chip b{
  font-size:clamp(14px,3.7vw,18px)!important;
}
@media(max-width:370px){
  .lobby-screen.has-lobby-logo .lobby-top,
  .lobby-top.has-lobby-logo{height:122px!important;min-height:122px!important;margin-bottom:4px!important;}
  .lobby-screen.has-lobby-logo .lobby-title-box,
  .lobby-top.has-lobby-logo .lobby-title-box{left:58px!important;right:58px!important;min-height:76px!important;}
  .lobby-screen.has-lobby-logo .lobby-logo,
  .lobby-top.has-lobby-logo .lobby-logo{max-width:min(250px,61vw)!important;max-height:76px!important;}
  .lobby-screen.has-lobby-logo .coin-pill,
  .lobby-top.has-lobby-logo .coin-pill{top:78px!important;min-width:174px!important;max-width:calc(100vw - 124px)!important;min-height:38px!important;padding:4px 7px!important;}
}
@media(max-height:690px){
  .lobby-screen.has-lobby-logo .lobby-top,
  .lobby-top.has-lobby-logo{height:118px!important;min-height:118px!important;margin-bottom:3px!important;}
  .lobby-screen.has-lobby-logo .lobby-title-box,
  .lobby-top.has-lobby-logo .lobby-title-box{min-height:72px!important;}
  .lobby-screen.has-lobby-logo .lobby-logo,
  .lobby-top.has-lobby-logo .lobby-logo{max-height:72px!important;}
  .lobby-screen.has-lobby-logo .coin-pill,
  .lobby-top.has-lobby-logo .coin-pill{top:74px!important;min-height:37px!important;}
}

/* === Giriş ekranı sabit footer ve yasal/iletişim sayfaları === */
.auth-overlay{position:fixed!important;padding:16px 16px calc(72px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important;}
.auth-overlay .auth-card{max-height:calc(100dvh - 108px)!important;}
.auth-footer-links{
  position:absolute;
  left:50%;
  bottom:calc(10px + env(safe-area-inset-bottom));
  transform:translateX(-50%);
  width:min(94vw,760px);
  min-height:42px;
  padding:7px 10px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px 12px;
  flex-wrap:wrap;
  background:linear-gradient(180deg,rgba(9,31,66,.90),rgba(4,14,36,.94));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 8px 22px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.06);
  z-index:4;
  text-align:center;
}
.auth-footer-links a{
  color:#f3f8ff;
  text-decoration:none;
  font-size:12px;
  line-height:1.1;
  font-weight:1000;
  padding:7px 8px;
  border-radius:12px;
  background:rgba(255,255,255,.07);
  text-shadow:0 2px 0 rgba(0,0,0,.24);
}
.auth-footer-links a:active,.auth-footer-links a:hover{background:rgba(255,215,75,.18);color:#fff2a8;}
@media(max-width:430px){
  .auth-overlay{padding:12px 10px calc(70px + env(safe-area-inset-bottom))!important;}
  .auth-overlay .auth-card{max-height:calc(100dvh - 98px)!important;}
  .auth-footer-links{width:96vw;bottom:calc(7px + env(safe-area-inset-bottom));gap:5px;padding:6px;border-radius:16px;}
  .auth-footer-links a{font-size:10.5px;padding:6px 5px;border-radius:10px;}
}

.legal-body{
  min-height:100dvh;
  margin:0;
  padding:18px 12px 28px;
  box-sizing:border-box;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  background:radial-gradient(circle at top,#2875ff 0,#173774 34%,#06132d 78%,#020817 100%);
  color:#102141;
  font-family:inherit;
  overflow:auto;
}
.legal-shell{width:min(940px,100%);display:grid;gap:14px;}
.legal-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:22px;background:rgba(6,18,43,.82);border:1px solid rgba(255,255,255,.12);box-shadow:0 12px 32px rgba(0,0,0,.24);color:#fff;}
.legal-brand{display:flex;align-items:center;gap:10px;min-width:0;}
.legal-brand img{max-width:190px;max-height:58px;object-fit:contain;filter:drop-shadow(0 7px 12px rgba(0,0,0,.32));}
.legal-brand b{font-size:24px;font-weight:1000;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 3px 0 rgba(0,0,0,.28);}
.legal-back{flex:0 0 auto;border:0;text-decoration:none;border-radius:16px;padding:11px 13px;color:#102300;background:linear-gradient(180deg,#bdff34,#4ee300);box-shadow:0 5px 0 #168600;font-weight:1000;}
.legal-card{border-radius:26px;padding:20px;background:linear-gradient(180deg,#ffffff,#e9f0ff);border:3px solid rgba(255,255,255,.92);box-shadow:0 12px 0 #244c9f,0 30px 60px rgba(0,0,0,.35);}
.legal-card h1{margin:0 0 8px;color:#183b7a;font-size:clamp(28px,6vw,42px);line-height:1;font-weight:1000;text-shadow:0 1px 0 #fff;}
.legal-card .legal-note{margin:0 0 14px;color:#566681;font-weight:850;line-height:1.45;}
.legal-section{margin:14px 0 0;padding:14px;border-radius:20px;background:rgba(22,61,122,.06);border:1px solid rgba(24,59,122,.12);}
.legal-section h2{margin:0 0 8px;color:#173b7c;font-size:19px;line-height:1.1;font-weight:1000;}
.legal-section p,.legal-section li{color:#26375d;font-weight:760;line-height:1.55;font-size:15px;}
.legal-section p{margin:0 0 9px}.legal-section p:last-child{margin-bottom:0}.legal-section ul{margin:0;padding-left:20px;}
.legal-form{display:grid;gap:12px;margin-top:14px;text-align:left;}
.legal-form label{display:grid;gap:6px;color:#2d3e6f;font-weight:1000;}
.legal-form input,.legal-form textarea{width:100%;box-sizing:border-box;border:2px solid rgba(24,59,122,.18);border-radius:18px;background:#fff;color:#14234d;font:900 15px/1.3 inherit;padding:13px 14px;outline:none;}
.legal-form textarea{min-height:150px;resize:vertical;}
.legal-form .hp-field{position:absolute;left:-9999px;opacity:0;pointer-events:none;}
.legal-submit{border:0;border-radius:22px;min-height:58px;padding:0 18px;background:linear-gradient(180deg,#9dff2f,#38cf0d);box-shadow:0 7px 0 #238f12;color:#102d0a;font-size:20px;font-weight:1000;cursor:pointer;}
.legal-alert{border-radius:18px;padding:12px 14px;font-weight:950;line-height:1.35;margin:0 0 12px;}
.legal-alert.ok{color:#123b0b;background:#dbffd2;border:1px solid #8ae36b;}
.legal-alert.err{color:#76141d;background:#ffe1e6;border:1px solid #ff9aaa;}
.legal-mini-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.legal-mini-links a{color:#143d7c;text-decoration:none;font-weight:1000;background:rgba(24,59,122,.08);border-radius:999px;padding:8px 10px;}
@media(max-width:560px){
  .legal-body{padding:10px 8px 22px}.legal-topbar{border-radius:19px;padding:10px}.legal-brand img{max-width:160px;max-height:48px}.legal-brand b{font-size:20px}.legal-back{font-size:13px;padding:10px}.legal-card{border-radius:22px;padding:16px;box-shadow:0 9px 0 #244c9f,0 22px 44px rgba(0,0,0,.32)}.legal-section{padding:12px}.legal-section p,.legal-section li{font-size:14px}.legal-form input,.legal-form textarea{border-radius:16px;font-size:14px}.legal-submit{min-height:54px;font-size:18px}
}
.legal-body{touch-action:auto!important;-webkit-overflow-scrolling:touch;}

/* === Rakip modalı: savaş butonu, filtre ve online göstergesi === */
.target-filter-row{
  margin:0 17px 10px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
.target-filter-select{
  width:100%!important;
  min-height:46px!important;
  border:2px solid rgba(24,59,122,.18)!important;
  border-radius:16px!important;
  padding:0 38px 0 13px!important;
  background:#fff!important;
  color:#14234d!important;
  font:900 14px inherit!important;
  outline:none!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 4px 0 rgba(125,151,190,.22)!important;
}
.target-list .target-item{cursor:default!important}
.target-list .target-item-avatar{position:relative!important;overflow:visible!important}
.target-list .target-item-avatar img,
.target-list .target-item-avatar-img{border-radius:inherit!important;overflow:hidden!important}
.target-avatar-initial{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;border-radius:inherit!important;line-height:1!important}
.target-online-dot{
  position:absolute!important;
  right:-1px!important;
  bottom:-1px!important;
  width:15px!important;
  height:15px!important;
  border-radius:999px!important;
  background:#25d366!important;
  border:3px solid #f8fbff!important;
  box-shadow:0 2px 0 rgba(0,0,0,.25),0 0 0 2px rgba(13,70,38,.18)!important;
  z-index:5!important;
  pointer-events:none!important;
}
.target-filter-meta{
  display:block!important;
  margin-top:5px!important;
  color:#fff2a8!important;
  font-size:12px!important;
  line-height:1.18!important;
  font-weight:950!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.target-fight-btn{cursor:pointer!important}
.target-fight-btn:disabled{opacity:.72!important;filter:saturate(.8)!important;cursor:wait!important}
@media(max-width:430px){
  .target-filter-row{margin:0 17px 9px!important}
  .target-filter-select{min-height:44px!important;font-size:13px!important;border-radius:15px!important}
  .target-filter-meta{font-size:11px!important;margin-top:4px!important}
}

/* Mesaj ikonu / engellenenler / mobil mesaj ekranı düzeltmeleri */
.world-notify-btn.message-only span{font-size:29px!important;line-height:1!important;filter:drop-shadow(0 2px 0 rgba(255,255,255,.35));}
.world-notify-btn.message-only i{display:none!important;}
.world-notify-btn.message-only{background:linear-gradient(180deg,#ffffff 0%,#dff2ff 42%,#66c7ff 100%)!important;box-shadow:0 6px 0 #245f9f,0 11px 20px rgba(0,0,0,.20)!important;}

#settingsOverlay .settings-menu-btn.blocked-open>span{background:linear-gradient(180deg,#fff1f1,#ffd0d0)!important;color:#8b1826!important;}

.opponent-action-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;}
.opponent-spy,.opponent-message-open{min-width:0!important;white-space:normal!important;line-height:1.08!important;text-align:center!important;padding:0 8px!important;font-size:clamp(12px,3.25vw,16px)!important;overflow:hidden!important;}
.opponent-spy{word-break:normal!important;}

#hsPrivateMessageOverlay .pm-delete{-webkit-appearance:none!important;appearance:none!important;background:transparent!important;box-shadow:none!important;outline:none!important;border:0!important;-webkit-tap-highlight-color:transparent!important;color:#9a4a4a!important;position:relative!important;z-index:2!important;min-width:0!important;height:auto!important;}
#hsPrivateMessageOverlay .pm-delete:focus,#hsPrivateMessageOverlay .pm-delete:active{background:transparent!important;box-shadow:none!important;outline:none!important;filter:none!important;transform:none!important;}
#hsPrivateMessageOverlay .pm-avatar{overflow:visible!important;}
#hsPrivateMessageOverlay .pm-avatar img{border-radius:999px!important;overflow:hidden!important;}
#hsPrivateMessageOverlay .pm-avatar .target-online-dot{right:-2px!important;bottom:-2px!important;width:15px!important;height:15px!important;border-color:#075e54!important;z-index:8!important;}


/* Bildirim/Mesaj sekme rozetleri ve online ikon görünürlüğü düzeltmesi */
.notification-tabs button{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;overflow:visible!important;}
.notification-tabs button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.notification-tab-badge{position:absolute!important;right:8px!important;top:-7px!important;min-width:22px!important;height:22px!important;padding:0 6px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(180deg,#fffb8d,#ffbf21)!important;border:2px solid #9b130e!important;box-shadow:0 3px 0 #8d1426!important;color:#7a0000!important;font-size:11px!important;font-weight:1000!important;line-height:1!important;z-index:4!important;}
.notification-tab-badge[hidden]{display:none!important;}
.message-thread-avatar{overflow:visible!important;}
.message-thread-avatar img{border-radius:999px!important;overflow:hidden!important;}
.message-thread-avatar i{right:0!important;bottom:0!important;width:14px!important;height:14px!important;border:3px solid #f8fbff!important;box-sizing:border-box!important;z-index:5!important;}
#hsPrivateMessageOverlay .pm-avatar .target-online-dot{right:0!important;bottom:0!important;width:14px!important;height:14px!important;border-width:3px!important;box-sizing:border-box!important;}

/* === Revizyon: okunabilir avatar, mesaj/ittifak liste ve küçük UI düzeltmeleri === */
.target-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 17px 10px}.target-tabs button{height:44px;border:0;border-radius:17px;background:linear-gradient(180deg,#ffffff,#dfe9ff);box-shadow:0 4px 0 rgba(76,104,164,.32);color:#253b70;font:1000 13px inherit;letter-spacing:.35px}.target-tabs button.is-active{background:linear-gradient(180deg,#fff7a6,#ffbf2e);box-shadow:0 4px 0 #945b00;color:#3b2400}.target-list[hidden],.alliance-list[hidden]{display:none!important}.target-list .target-item{overflow:visible!important}.target-list .target-item-avatar{color:#0b2f70!important;text-shadow:none!important}.target-avatar-initial{color:#0b2f70!important;text-shadow:none!important;font-weight:1000!important;letter-spacing:0!important}.target-online-dot{right:1px!important;bottom:1px!important;width:16px!important;height:16px!important;border-width:3px!important;box-sizing:border-box!important}.target-load-more{width:100%;min-height:48px;border:0;border-radius:18px;background:linear-gradient(180deg,#f7fbff,#d2e4ff);box-shadow:0 5px 0 #7d97be;color:#18345f;font:1000 14px inherit;margin:4px 0 10px}.alliance-item .target-item-name{color:#fff!important}.opponent-message-open{font-size:clamp(15px,4.35vw,19px)!important}.opponent-spy{font-size:clamp(12px,3.55vw,16px)!important}.message-thread-item{grid-template-columns:52px 1fr auto!important}.message-thread-actions{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:6px;min-width:42px}.message-thread-delete{height:26px;border:0;border-radius:10px;background:linear-gradient(180deg,#ffe6e6,#ffb7b7);box-shadow:0 3px 0 #9b4650;color:#84222c;font:1000 11px inherit;padding:0 8px;-webkit-tap-highlight-color:transparent}.message-thread-more{width:100%;min-height:44px;border:0;border-radius:16px;background:linear-gradient(180deg,#f7fbff,#d2e4ff);box-shadow:0 5px 0 #7d97be;color:#18345f;font:1000 13px inherit}.message-thread-avatar{overflow:visible!important}.message-thread-avatar i{right:1px!important;bottom:1px!important}.pm-back{white-space:nowrap!important}.world-notify-btn.message-only span{font-size:31px!important}
@media(max-width:430px){.target-tabs{margin:7px 17px 9px;gap:8px}.target-tabs button{height:42px;font-size:12px}.opponent-message-open{font-size:clamp(16px,4.6vw,18px)!important}.message-thread-delete{height:24px;font-size:10px;padding:0 7px}.target-online-dot{right:0!important;bottom:0!important}}

/* === Hamburger menü ve Ayarlar alt modalı === */
#settingsBtn.round-menu{
  font-size:32px!important;
  font-weight:1000!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
}
#accountSettingsOverlay.settings-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:282!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:14px!important;
  background:rgba(8,14,25,.62)!important;
  backdrop-filter:blur(8px)!important;
  overflow:hidden!important;
  touch-action:none!important;
}
#accountSettingsOverlay.settings-overlay.show{display:flex!important}
#accountSettingsOverlay .settings-panel-menu{
  width:min(92vw,420px)!important;
  max-width:420px!important;
  max-height:min(86dvh,640px)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  border-radius:30px!important;
  padding:16px!important;
  background:linear-gradient(180deg,#102d4f 0%,#07182f 54%,#031022 100%)!important;
  color:#fff!important;
  border:3px solid rgba(255,223,113,.82)!important;
  box-shadow:0 13px 0 rgba(14,54,113,.86),0 28px 52px rgba(0,0,0,.44)!important;
}
#accountSettingsOverlay .settings-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 12px!important;
  flex:0 0 auto!important;
}
#accountSettingsOverlay .settings-head h2{
  margin:0!important;
  color:#ffe891!important;
  font-size:25px!important;
  line-height:1!important;
  font-weight:1000!important;
  text-transform:none!important;
  text-shadow:0 3px 0 rgba(0,0,0,.52)!important;
}
#accountSettingsOverlay .settings-close{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  border-radius:18px!important;
  border:0!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  font-size:34px!important;
  line-height:1!important;
  color:#fff!important;
  background:linear-gradient(180deg,#ff6f7d,#d82238)!important;
  box-shadow:0 6px 0 #8e1426!important;
}
#accountSettingsOverlay .settings-menu-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  margin:0!important;
  padding:0 0 4px!important;
  overflow:visible!important;
  flex:0 0 auto!important;
}
#accountSettingsOverlay .settings-menu-btn{
  width:100%!important;
  min-height:70px!important;
  height:auto!important;
  box-sizing:border-box!important;
  border:0!important;
  border-radius:22px!important;
  padding:11px 13px!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:12px!important;
  row-gap:2px!important;
  align-items:center!important;
  justify-items:start!important;
  text-align:left!important;
  background:linear-gradient(180deg,#fff8b2,#ffc43b)!important;
  box-shadow:0 7px 0 #9b6100,0 12px 20px rgba(0,0,0,.18)!important;
  color:#372300!important;
  font-family:inherit!important;
  line-height:1.1!important;
  white-space:normal!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
  cursor:pointer!important;
}
#accountSettingsOverlay .settings-menu-btn>span{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  width:48px!important;
  height:48px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.55)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85)!important;
  font-size:25px!important;
  line-height:1!important;
}
#accountSettingsOverlay .settings-menu-btn>b{
  grid-column:2!important;
  grid-row:1!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  color:inherit!important;
  font-size:20px!important;
  font-weight:1000!important;
  line-height:1.05!important;
  text-shadow:0 1px 0 rgba(255,255,255,.35)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#accountSettingsOverlay .settings-menu-btn>small{
  grid-column:2!important;
  grid-row:2!important;
  display:block!important;
  margin:2px 0 0!important;
  padding:0!important;
  color:rgba(45,31,0,.78)!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1.2!important;
  white-space:normal!important;
}
#accountSettingsOverlay .account-settings-back{
  display:block!important;
  flex:0 0 auto!important;
  width:100%!important;
  height:52px!important;
  margin-top:12px!important;
  border-radius:21px!important;
  border:0!important;
  background:linear-gradient(180deg,#d9f1ff,#8fcfff)!important;
  box-shadow:0 7px 0 #2d75aa!important;
  color:#0b3156!important;
  font-weight:1000!important;
  font-size:18px!important;
}
#accountSettingsOverlay.show ~ #ghostSelectLobbyBtn,
#accountSettingsOverlay.show ~ #deployUnitLobbyBtn{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  z-index:-1!important;
}
@media(max-width:380px){
  #accountSettingsOverlay .settings-panel-menu{width:94vw!important;padding:14px!important;border-radius:26px!important}
  #accountSettingsOverlay .settings-menu-btn{min-height:64px!important;padding:10px!important;grid-template-columns:43px minmax(0,1fr)!important;column-gap:10px!important}
  #accountSettingsOverlay .settings-menu-btn>span{width:43px!important;height:43px!important;font-size:22px!important}
  #accountSettingsOverlay .settings-menu-btn>b{font-size:18px!important}
  #accountSettingsOverlay .settings-menu-btn>small{font-size:11px!important}
}

/* İttifak savaş uyarısı ve ayrı ittifak filtresi */
#targetAllianceFilter[hidden], #targetFilter[hidden]{display:none!important;}
#hsAllianceNoWarModal{position:fixed;inset:0;z-index:1000005;display:none;align-items:center;justify-content:center;background:rgba(5,12,29,.66);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);padding:18px;}
#hsAllianceNoWarModal.show{display:flex;}
#hsAllianceNoWarModal .hs-alliance-war-card{width:min(390px,92vw);border-radius:28px;background:linear-gradient(180deg,#ffffff,#edf5ff);border:3px solid rgba(255,255,255,.95);box-shadow:0 18px 46px rgba(0,0,0,.42),0 8px 0 rgba(29,70,145,.35);padding:20px;text-align:center;color:#18345f;}
#hsAllianceNoWarModal .hs-alliance-war-card h3{margin:0 0 8px;font-size:26px;font-weight:1000;color:#12366e;}
#hsAllianceNoWarModal .hs-alliance-war-card p{margin:0 0 18px;font-size:15px;font-weight:850;line-height:1.35;color:#53617f;}
#hsAllianceNoWarModal .hs-alliance-war-card button{width:100%;height:54px;border:0;border-radius:20px;background:linear-gradient(180deg,#c8ff38,#54ee00);box-shadow:0 6px 0 #168300;color:#173b00;font:1000 20px/1 inherit;}
.alliance-list .target-fight-btn[data-action="cancel"]{background:linear-gradient(180deg,#ffe98f,#ffb928);box-shadow:0 6px 0 #b87500;color:#2c2100;}
.alliance-list .target-fight-btn[data-action="warn"]{background:linear-gradient(180deg,#f7fbff,#c7dbff);box-shadow:0 6px 0 #7893bd;color:#18345f;}


/* === Yönetilebilir Ödüller Modalı === */
.hs-rewards-root{width:100%;max-width:390px;margin:0 auto;max-height:min(66dvh,560px);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:2px 3px 10px;box-sizing:border-box}
.hs-rewards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
.hs-rewards-summary{margin:0 0 10px;padding:11px 13px;border-radius:18px;background:linear-gradient(180deg,#eaf6ff,#cfe8ff);border:1px solid rgba(64,111,165,.22);box-shadow:0 5px 0 rgba(45,72,118,.16);color:#173c72;font-weight:1000;text-align:center;line-height:1.25}.hs-rewards-summary.is-ready{background:linear-gradient(180deg,#fff4aa,#ffd349);color:#3d2700}.hs-rewards-summary b{font-size:1.15em}
.hs-rewards-empty{border-radius:22px;background:linear-gradient(180deg,#14395f,#07182e);border:1px solid rgba(255,222,116,.24);padding:18px;color:#fff;font-weight:1000;text-align:center;line-height:1.35}
.hs-reward-card{position:relative;min-height:184px;border:2px solid rgba(255,222,116,.70);border-radius:22px;background:linear-gradient(180deg,#1f5e96,#092345);box-shadow:0 8px 0 rgba(0,0,0,.30),0 16px 25px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.18);padding:9px 8px 12px;color:#fff;font-family:inherit;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;overflow:hidden;touch-action:manipulation}
.hs-reward-card.is-locked,.hs-reward-card.is-claimed{filter:saturate(.72);opacity:.84}
.hs-reward-badge{position:absolute;top:7px;right:7px;border-radius:999px;background:linear-gradient(180deg,#fff1a6,#e9b325);color:#3a2300;font-size:9px;font-weight:1000;line-height:1;padding:5px 6px;box-shadow:0 2px 0 rgba(79,46,0,.35);z-index:2}
.hs-reward-card.is-locked .hs-reward-badge,.hs-reward-card.is-claimed .hs-reward-badge{background:linear-gradient(180deg,#e6eefb,#9dacbf);color:#18263a}
.hs-reward-img,.hs-reward-fallback{width:72px;height:72px;flex:0 0 72px;border-radius:20px;object-fit:cover;background:linear-gradient(180deg,#ffe889,#ec9d25);border:2px solid rgba(255,255,255,.55);box-shadow:0 5px 0 rgba(0,0,0,.24);display:grid;place-items:center;font-size:36px;margin-top:5px}
.hs-reward-name{font-size:13px;font-weight:1000;line-height:1.08;max-width:100%;min-height:28px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 2px 0 rgba(0,0,0,.38)}
.hs-reward-amount{font-size:12px;font-weight:1000;color:#fff5a4;line-height:1.12;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.hs-reward-cond,.hs-reward-progress,.hs-reward-deadline{font-size:10px;font-weight:850;color:#d8f2ff;line-height:1.15;display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-reward-progress{color:#baff83}.hs-reward-deadline{color:#ffe59b}
.hs-reward-lock{position:absolute;left:8px;top:8px;width:25px;height:25px;border-radius:999px;background:rgba(0,0,0,.42);display:grid;place-items:center;font-size:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.hs-reward-lock.is-open{background:rgba(44,205,54,.35)}
.hs-reward-detail-overlay{position:fixed;inset:0;background:rgba(0,0,0,.62);z-index:420;display:none;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.hs-reward-detail-overlay.show{display:flex}
.hs-reward-detail-card{position:relative;width:min(92vw,390px);max-height:86dvh;overflow-y:auto;border-radius:28px;background:linear-gradient(180deg,#174b7c,#06172f);border:2px solid rgba(255,222,116,.82);box-shadow:0 18px 48px rgba(0,0,0,.55),0 8px 0 rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.15);padding:18px 14px 16px;color:#fff;text-align:center;font-family:inherit;box-sizing:border-box}
.hs-reward-detail-close{position:absolute;right:10px;top:10px;width:38px;height:38px;border:0;border-radius:14px;background:linear-gradient(180deg,#ff6570,#c6152f);color:#fff;font-size:26px;font-weight:1000;line-height:1;box-shadow:0 4px 0 rgba(92,8,25,.75)}
.hs-reward-detail-media{display:grid;place-items:center;margin:4px 0 9px}.hs-reward-detail-media .hs-reward-img,.hs-reward-detail-media .hs-reward-fallback{width:112px;height:112px;flex-basis:112px;border-radius:28px;font-size:54px}
.hs-reward-detail-card h3{margin:4px 38px 8px;font-size:24px;line-height:1.05;text-shadow:0 3px 0 rgba(0,0,0,.38)}
.hs-reward-detail-desc{margin:0 0 12px;color:#def2ff;font-size:13px;font-weight:800;line-height:1.35}.hs-reward-detail-info{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:7px 0;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.11);text-align:left}.hs-reward-detail-info b{color:#fff5a4;font-size:12px;font-weight:1000}.hs-reward-detail-info span{font-size:13px;font-weight:950;color:#fff;text-align:right}.hs-reward-claim-btn{width:100%;height:54px;margin-top:12px;border:0;border-radius:19px;background:linear-gradient(180deg,#caff48,#50e500);box-shadow:0 6px 0 #178300;color:#153900;font:1000 17px inherit}.hs-reward-claim-btn:disabled{background:linear-gradient(180deg,#d8e2ef,#8795a6);box-shadow:0 6px 0 #4b5765;color:#273243}
@media (max-width:360px){.hs-rewards-grid{gap:8px}.hs-reward-card{min-height:176px;padding-left:6px;padding-right:6px}.hs-reward-img,.hs-reward-fallback{width:64px;height:64px;flex-basis:64px}.hs-reward-name{font-size:12px}.hs-reward-amount{font-size:11px}}

/* Ödül detay kapatma butonu ve ödül/market modal güvenliği */
.hs-reward-detail-overlay{z-index:520}
.hs-reward-detail-card{overflow:visible;padding-top:22px}
.hs-reward-detail-close{
  right:14px!important;
  top:14px!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  min-height:52px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:18px!important;
  font-size:34px!important;
  line-height:1!important;
  padding:0!important;
  z-index:8!important;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
}
.hs-reward-detail-close:active{transform:translateY(3px) scale(.98)}
@media (max-width:420px){
  .hs-reward-detail-card{width:min(92vw,390px);padding-top:20px}
  .hs-reward-detail-close{right:12px!important;top:12px!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;font-size:31px!important}
}
.hs-reward-detail-card{overflow-y:auto!important;overflow-x:hidden!important}

/* === Mobil ana sayfa / giriş ekranı profesyonel yerleşim ===
   İçerikler korunur; sadece giriş, kayıt ve Top 10 alanlarının mobil yerleşimi düzenlenir. */
.auth-overlay.show{
  display:block!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  align-items:initial!important;
  justify-content:initial!important;
  padding:calc(env(safe-area-inset-top) + 10px) 10px calc(env(safe-area-inset-bottom) + 16px)!important;
  box-sizing:border-box!important;
  background:
    radial-gradient(circle at 50% -8%,rgba(86,156,255,.40),transparent 34%),
    radial-gradient(circle at 12% 18%,rgba(255,213,70,.16),transparent 28%),
    linear-gradient(180deg,rgba(4,16,46,.88),rgba(5,11,28,.96))!important;
}
.auth-overlay.show .auth-card{
  width:min(100%,430px)!important;
  max-height:none!important;
  overflow:visible!important;
  margin:0 auto 12px!important;
  padding:12px 12px 14px!important;
  border-radius:30px!important;
  box-sizing:border-box!important;
  text-align:center!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(232,241,255,.96))!important;
  border:3px solid rgba(255,255,255,.94)!important;
  box-shadow:0 12px 0 rgba(29,76,158,.70),0 24px 56px rgba(0,0,0,.34)!important;
}
.auth-overlay.show .auth-brand-display{
  min-height:auto!important;
  margin:0 0 10px!important;
  padding:12px 10px 10px!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,rgba(16,54,111,.96),rgba(5,22,55,.96))!important;
  border:1px solid rgba(255,255,255,.15)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 6px 16px rgba(0,0,0,.18)!important;
}
.auth-overlay.show .auth-logo{
  max-width:min(270px,82vw)!important;
  max-height:88px!important;
  filter:drop-shadow(0 8px 12px rgba(0,0,0,.32))!important;
}
.auth-overlay.show .auth-brand-display h2{
  color:#fff!important;
  text-shadow:0 3px 0 rgba(0,0,0,.24)!important;
}
.auth-overlay.show .auth-card>p{
  margin:2px 4px 12px!important;
  color:#485a7d!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1.35!important;
}
.auth-overlay.show .auth-tabs{
  position:sticky!important;
  top:calc(env(safe-area-inset-top) + 8px)!important;
  z-index:8!important;
  gap:9px!important;
  margin:0 0 12px!important;
  padding:6px!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,rgba(11,36,80,.12),rgba(11,36,80,.06))!important;
  box-shadow:inset 0 0 0 1px rgba(24,59,122,.08)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
}
.auth-overlay.show .auth-tabs button{
  height:50px!important;
  border-radius:19px!important;
  font-size:18px!important;
  letter-spacing:.2px!important;
}
.auth-overlay.show .auth-form{
  margin:0!important;
  padding:12px!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,#ffffff,#edf4ff)!important;
  border:1px solid rgba(24,59,122,.12)!important;
  box-shadow:0 7px 0 rgba(41,86,166,.16),0 14px 28px rgba(9,34,73,.11)!important;
}
.auth-overlay.show .auth-form label{
  margin:0!important;
}
.auth-overlay.show .auth-form label span{
  margin-bottom:5px!important;
  padding-left:2px!important;
  color:#273a70!important;
  font-size:12px!important;
  letter-spacing:.15px!important;
}
.auth-overlay.show .auth-form input{
  height:52px!important;
  border-radius:18px!important;
  background:#fdfefe!important;
  border-color:rgba(24,59,122,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86),0 3px 10px rgba(8,32,76,.06)!important;
}
.auth-overlay.show .auth-form button[type=submit]{
  height:56px!important;
  margin-top:2px!important;
  border-radius:21px!important;
}
.auth-overlay.show .auth-action-row{
  margin-top:8px!important;
}
.auth-overlay.show .auth-leaderboards{
  margin-top:14px!important;
  gap:12px!important;
  padding:0!important;
}
.auth-overlay.show .auth-leaderboards-title{
  border-radius:24px!important;
  padding:12px!important;
  background:linear-gradient(180deg,#174f9a,#071e4a)!important;
  box-shadow:0 7px 0 rgba(9,36,87,.55),0 14px 26px rgba(7,28,66,.18)!important;
}
.auth-overlay.show .auth-board{
  border-radius:24px!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,#ffffff,#e6f0ff)!important;
  box-shadow:0 7px 0 rgba(39,82,159,.18),0 16px 28px rgba(9,34,73,.13)!important;
}
.auth-overlay.show .auth-board-head{
  padding:11px 12px!important;
  background:linear-gradient(180deg,#fff,#e3edff)!important;
}
.auth-overlay.show .auth-board-list{
  max-height:none!important;
  overflow:visible!important;
  padding:10px!important;
  gap:8px!important;
}
.auth-overlay.show .auth-rank-item{
  min-height:58px!important;
  border-radius:19px!important;
  padding:8px!important;
}
.auth-overlay.show .auth-rank-value{
  min-width:62px!important;
}
.auth-overlay.show .auth-footer-links{
  position:relative!important;
  left:auto!important;
  bottom:auto!important;
  transform:none!important;
  width:min(100%,430px)!important;
  margin:12px auto 0!important;
  box-sizing:border-box!important;
}
@media(max-width:430px){
  .auth-overlay.show{padding-left:8px!important;padding-right:8px!important;}
  .auth-overlay.show .auth-card{width:100%!important;border-radius:26px!important;padding:10px!important;}
  .auth-overlay.show .auth-brand-display{border-radius:22px!important;padding:10px 8px!important;}
  .auth-overlay.show .auth-tabs{top:calc(env(safe-area-inset-top) + 6px)!important;}
  .auth-overlay.show .auth-tabs button{height:48px!important;font-size:17px!important;}
  .auth-overlay.show .auth-form{padding:10px!important;border-radius:22px!important;}
  .auth-overlay.show .auth-form input{height:50px!important;font-size:15.5px!important;}
  .auth-overlay.show .auth-rank-item{grid-template-columns:26px 38px minmax(0,1fr) 58px!important;}
  .auth-overlay.show .auth-rank-value{min-width:58px!important;}
}


/* === Mobil ana sayfa giriş/kayıt buton sabitlenme düzeltmesi === */
@media (max-width: 768px){
  #authModeTabs,
  .auth-mode-tabs,
  .login-register-tabs,
  .auth-tabs,
  .home-auth-tabs,
  .mp-auth-tabs{
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    transform: none !important;
    margin: 14px auto 16px !important;
  }

  #authModeTabs.is-sticky,
  .auth-mode-tabs.is-sticky,
  .login-register-tabs.is-sticky,
  .auth-tabs.is-sticky,
  .home-auth-tabs.is-sticky,
  .mp-auth-tabs.is-sticky{
    position: static !important;
  }

  .auth-panel,
  .login-panel,
  .register-panel,
  .home-auth-panel,
  .mp-auth-panel{
    overflow: visible !important;
  }

  .leaderboard-panel,
  .home-leaderboard,
  .top-list-panel,
  .top10-panel{
    position: relative;
    z-index: 1;
  }
}


/* === Giriş/Kayıt sekmeleri sticky kesin kapatma düzeltmesi === */
@media (max-width: 768px){
  .auth-overlay.show .auth-tabs,
  .auth-overlay.show #authTabs,
  .auth-overlay.show #authModeTabs,
  .auth-overlay.show .auth-mode-tabs,
  .auth-overlay.show .login-register-tabs,
  .auth-overlay.show .home-auth-tabs,
  .auth-card .auth-tabs{
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    inset: auto !important;
    z-index: 2 !important;
    transform: none !important;
    margin: 0 0 12px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .auth-overlay.show .auth-tabs.is-sticky,
  .auth-overlay.show #authTabs.is-sticky,
  .auth-overlay.show #authModeTabs.is-sticky{
    position: static !important;
  }
}

