/* blob.tr — arayüz stilleri. Açık tema varsayılan, body.dark ile koyu tema. */
:root {
  --brand: #6c3bff;
  --brand-2: #ff3d7f;
  --brand-3: #b23bff;
  --grad: linear-gradient(135deg, #6c3bff 0%, #b23bff 52%, #ff3d7f 100%);
  --grad-soft: linear-gradient(135deg, rgba(108, 59, 255, .12), rgba(255, 61, 127, .12));
  --tr-red: #e30a17;
  --coin: #ffb800;
  --ok: #12b76a;
  --warn: #f79009;
  --err: #f04438;
  --panel: #ffffff;
  --panel-2: #f5f2ff;
  --panel-3: #ece7ff;
  --ink: #1b1340;
  --ink-2: #5b5677;
  --ink-3: #8c87a8;
  --line: #e7e2f7;
  --link: #6c3bff;
  --sb-thumb: rgba(108, 59, 255, .32);
  --sb-thumb-h: rgba(108, 59, 255, .58);
  --shadow: 0 12px 34px rgba(27, 19, 64, .18), 0 2px 6px rgba(27, 19, 64, .08);
  --radius: 18px;
  --top-off: 0px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
body.dark {
  --panel: #17142b;
  --panel-2: #201c3a;
  --panel-3: #2a2550;
  --ink: #f1eeff;
  --ink-2: #b4aed6;
  --ink-3: #8a84ae;
  --line: #2e2954;
  --link: #b9a2ff;
  --sb-thumb: rgba(185, 162, 255, .3);
  --sb-thumb-h: rgba(185, 162, 255, .55);
  --shadow: 0 12px 34px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
/* sayfa hiçbir cihazda kaymaz/esnemez (telefonda çekip yenileme, lastik bant kayması yok); kaydırma panellerin içinde */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Telefonda hep yatay (util.js updateView): cihaz dik tutulurken <body> 90° döndürülür; içindeki sabit konumlu her şey
   döndürülmüş gövdeye göre yerleşir. --vw/--vh sanal görünümün yüzdesi, --safe-* güvenli alanların sanal karşılığı. */
:root { --vw: 1vw; --vh: 1vh; --hs: 1;
  --safe-l: env(safe-area-inset-left); --safe-r: env(safe-area-inset-right); --safe-t: env(safe-area-inset-top); --safe-b: env(safe-area-inset-bottom); }
html.rot90 { --safe-l: env(safe-area-inset-top); --safe-r: env(safe-area-inset-bottom); --safe-t: env(safe-area-inset-right); --safe-b: env(safe-area-inset-left); }
html.rot270 { --safe-l: env(safe-area-inset-bottom); --safe-r: env(safe-area-inset-top); --safe-t: env(safe-area-inset-left); --safe-b: env(safe-area-inset-right); }
html.rot body { position: fixed; left: 0; top: 0; width: var(--W); height: var(--H); transform-origin: 0 0; }
html.rot90 body { transform: translateX(var(--DW)) rotate(90deg); }
html.rot270 body { transform: translateY(var(--DH)) rotate(-90deg); }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #f4f6fb; font-family: var(--font); color: var(--ink); -webkit-tap-highlight-color: transparent; }
/* oyun arayüzü: yazılar ve simgeler fareyle seçilip maviye boyanmaz; yazı alanları ve özel mesajlar seçilebilir */
body { -webkit-user-select: none; user-select: none; }
input, textarea, [contenteditable], .msg .mt { -webkit-user-select: text; user-select: text; }
body.dark { background: #0d0b1a; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
a { color: var(--link); }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { display: inline-block; padding: 1px 6px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px; font-size: 11px; font-weight: 800; color: var(--ink-2); font-family: inherit; line-height: 1.35; }
.muted { color: var(--ink-3); }
.lnk { font-weight: 900; color: inherit; }
.lnk:hover { color: var(--brand); text-decoration: underline; }

/* kaydırma çubukları: oyunun temasına uygun ince, yuvarlak çubuk (Firefox'ta standart özellikler) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--sb-thumb-h); }
::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) { * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; } }

/* ekrandaki boyu render.js piksel olarak atar (çizim boyuyla birebir); bu yalnızca ilk karenin yedeği */
#game { position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---------- MENÜ ---------- */
#menu-overlay {
  position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(108, 59, 255, .10), rgba(20, 10, 50, .38));
  transition: opacity .18s ease;
}
#menu-overlay.hide { opacity: 0; pointer-events: none; }
/* Sütun genişlikleri sabit; her dinamik alanın (sayaç, açıklama, liste) yüksekliği de sabit.
   Böylece mod/sunucu seçimi ya da canlı sayaçlar menünün boyutunu ve ölçeğini asla değiştirmez. */
#menu { display: flex; gap: 12px; align-items: stretch; transform-origin: center center; }
.col { width: 300px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.col-m { width: 330px; }
.col > .panel:last-child { flex: 1 0 auto; }
.panel {
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; position: relative;
  border: 1px solid var(--line); min-width: 0;
}
.panel h3 { margin: 0 0 10px; font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 7px; letter-spacing: -.2px; white-space: nowrap; }
.panel h3 .ic { width: 18px; height: 18px; color: var(--brand); }
body.dark .panel h3 .ic { color: #b9a2ff; }
.p-main { display: flex; flex-direction: column; align-items: stretch; padding: 18px 22px 14px; }

/* profil */
.prof-top { display: flex; align-items: center; gap: 9px; }
.prof-star { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; transition: transform .15s; }
.prof-star:hover { transform: scale(1.08) rotate(-4deg); }
.prof-name { flex: 1; min-width: 0; font-size: 20px; font-weight: 900; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-name:hover { color: var(--brand); }
body.dark .prof-name:hover { color: #c9b6ff; }
.xpbar { margin-top: 8px; height: 18px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.xpbar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad); border-radius: 9px; transition: width .4s ease; }
.xpbar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); white-space: nowrap; font-variant-numeric: tabular-nums; }
body.dark .xpbar span { text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.prof-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.pill { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px 0 8px; border-radius: 17px; background: var(--panel-2); border: 1px solid var(--line); flex: 1; min-width: 0; font-weight: 900; position: relative; }
.pill b { flex: 1; min-width: 0; text-align: left; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill .plus { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 16px; line-height: 1; flex: none; }
.pill.coin.boosted { border-color: #ffb800; box-shadow: 0 0 0 2px rgba(255, 184, 0, .25); }
.pill.coin.boosted::after { content: '×2'; position: absolute; top: -7px; left: 22px; height: 15px; padding: 0 5px; border-radius: 8px; font-size: 10px; font-weight: 900; line-height: 15px; color: #3b2500; background: linear-gradient(135deg, #ffe27a, #ffb800); box-shadow: 0 2px 6px rgba(255, 150, 0, .4); }
/* coin ve XP simgeleri yazı değil görsel: fareyle seçilemez, her boyutta keskin (vektör) */
.coin-ic { width: 20px; height: 20px; border-radius: 50%; background: url(/img/coin.svg) center / contain no-repeat; flex: none; position: relative; display: inline-block; }
.xp-ic { display: inline-block; height: 19px; aspect-ratio: 28 / 19; background: url(/img/xp.svg) center / contain no-repeat; flex: none; }

/* çarpan kutuları: aktifken alttan renkli dalgalar yükselir; ×3'te daha hızlı, daha parlak, ışıltılı */
.boost { position: relative; overflow: hidden; width: 48px; height: 34px; flex: none; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transition: transform .15s, box-shadow .2s; isolation: isolate; }
.boost span { position: relative; z-index: 2; font-size: 10px; font-weight: 900; color: var(--ink-3); }
.boost b { position: relative; z-index: 2; font-size: 13px; font-weight: 900; color: var(--ink-3); }
.boost .bw { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; transition: opacity .3s; }
.boost .bw::before, .boost .bw::after {
  content: ''; position: absolute; left: 0; bottom: -1px; width: 200%; height: var(--wh, 58%); background: var(--w1);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'><path d='M0 7 Q12.5 0 25 7 T50 7 T75 7 T100 7 V20 H0Z'/></svg>") 0 0 / 50% 100% repeat-x;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'><path d='M0 7 Q12.5 0 25 7 T50 7 T75 7 T100 7 V20 H0Z'/></svg>") 0 0 / 50% 100% repeat-x;
  animation: bWave var(--ws, 2.8s) linear infinite;
}
.boost .bw::after { background: var(--w2); height: calc(var(--wh, 58%) - 16%); animation-duration: calc(var(--ws, 2.8s) * .68); animation-direction: reverse; opacity: .9; }
.boost.on { border-color: transparent; background: var(--wb); box-shadow: 0 4px 14px -4px var(--w1); }
.boost.on .bw { opacity: 1; }
.boost.on span, .boost.on b { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.boost[data-m="2"] { --wb: #2a1673; --w1: rgba(124, 77, 255, .95); --w2: rgba(47, 128, 255, .9); --ws: 3s; --wh: 60%; }
.boost.mass[data-m="2"] { --wb: #5c1033; --w1: rgba(255, 61, 127, .95); --w2: rgba(255, 122, 0, .9); }
.boost[data-m="3"] { --wb: #3a1460; --w1: rgba(255, 184, 0, .98); --w2: rgba(255, 61, 127, .95); --ws: 1.35s; --wh: 74%; animation: bGlow 1.4s ease-in-out infinite; }
.boost.mass[data-m="3"] { --wb: #4a0b14; --w1: rgba(255, 210, 63, .98); --w2: rgba(227, 10, 23, .95); }
.boost[data-m="3"]::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) -60px 0 / 60px 100% no-repeat; animation: bShine 1.6s ease-in-out infinite; }
@keyframes bWave { to { transform: translateX(-50%); } }
@keyframes bGlow { 0%, 100% { box-shadow: 0 4px 14px -4px var(--w1); } 50% { box-shadow: 0 0 16px 2px var(--w1); } }
@keyframes bShine { 0%, 40% { background-position: -60px 0; } 100% { background-position: 60px 0; } }
.boost:hover, .pill:hover { transform: translateY(-1px); }

/* ana panel */
.icon-btn { position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); transition: color .15s, border-color .15s; }
.icon-btn .ic { width: 22px; height: 22px; fill: rgba(108, 59, 255, .1); stroke-width: 1.8; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.settings-btn:hover .ic { animation: gearSpin 2.2s linear infinite; }
body.dark .icon-btn:hover { color: #c9b6ff; border-color: #8f6bff; }
@keyframes gearSpin { to { transform: rotate(360deg); } }
.social-badge { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 15px; background: #5865f2; color: #fff; text-decoration: none; font-size: 12px; font-weight: 800; }
.social-badge .ic { width: 15px; height: 15px; }
/* dil seçici: oyna panelinin sağ üstü (ayarlar dişlisinin karşısı); Discord rozeti onun soluna kayar */
.p-main .social-badge { right: 58px; top: 16px; }
.lang-pick { position: absolute; top: 12px; right: 12px; z-index: 6; }
.lang-btn { position: static; }
.lang-btn img { width: 26px; height: 18px; border-radius: 3px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); pointer-events: none; }
.lang-menu { position: absolute; top: 44px; right: 0; width: 158px; padding: 5px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(20, 10, 60, .24); display: flex; flex-direction: column; gap: 2px; transform-origin: 100% 0; animation: langIn .14s ease-out; }
.lang-menu[hidden] { display: none; }
@keyframes langIn { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
.lang-menu button { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; font-size: 14px; font-weight: 800; color: var(--ink); text-align: left; }
.lang-menu button:hover, .lang-menu button[aria-selected="true"] { background: var(--panel-2); }
.lang-menu button img { width: 24px; height: 16px; border-radius: 2px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); pointer-events: none; }
.lang-menu button span { flex: 1; }
.lang-menu .ic { width: 16px; height: 16px; color: var(--brand); visibility: hidden; }
.lang-menu button[aria-selected="true"] .ic { visibility: visible; }
body.dark .lang-menu .ic { color: #b9a2ff; }
.logo { margin: 6px 0 10px; display: flex; align-items: center; justify-content: center; height: 56px; user-select: none; }
.logo img { height: 52px; width: auto; display: block; filter: drop-shadow(0 6px 14px rgba(108, 59, 255, .22)); }
.nick-row { display: flex; gap: 8px; align-items: center; }
.skin-btn { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--panel-3); background: var(--panel-2); position: relative; overflow: hidden; flex: none; display: grid; place-items: center; transition: transform .15s, border-color .15s; }
.skin-btn:hover { transform: scale(1.06); border-color: var(--brand); }
.skin-btn img, .skin-btn canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.skin-btn.has-skin img { display: block; }
.skin-btn.has-fx img { display: none; }
.skin-btn.has-fx canvas { display: block; background: #0b0820; }
.skin-btn.has-skin span { display: none; }
.skin-btn span { font-size: 11px; font-weight: 900; color: var(--ink-2); }
#nick { flex: 1; min-width: 0; height: 48px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel-2); padding: 0 14px; font-size: 18px; font-weight: 800; outline: none; transition: border-color .15s, background .15s; }
#nick:focus { border-color: var(--brand); background: var(--panel); }
.btn-play {
  margin-top: 12px; height: 54px; border-radius: 16px; color: #fff; font-size: 24px; font-weight: 900; letter-spacing: 2px;
  background: var(--grad); background-size: 160% 160%; box-shadow: 0 8px 22px rgba(108, 59, 255, .45), inset 0 -4px 0 rgba(0, 0, 0, .15);
  display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; overflow: hidden; transition: transform .12s, box-shadow .12s, background-position .4s;
}
.btn-play .ic { width: 22px; height: 22px; fill: #fff; stroke: none; }
.btn-play:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 12px 28px rgba(255, 61, 127, .45), inset 0 -4px 0 rgba(0, 0, 0, .15); }
.btn-play:active { transform: translateY(1px); }
.btn-play::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); animation: shine 3.2s ease-in-out infinite; }
.btn-play:disabled { filter: grayscale(.6); opacity: .7; cursor: wait; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.main-row { display: flex; gap: 8px; margin-top: 8px; }
.btn-ghost { flex: 1; height: 38px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 800; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; transition: color .15s, border-color .15s; }
.btn-ghost .ic { width: 17px; height: 17px; }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); }
body.dark .btn-ghost:hover { color: #c9b6ff; border-color: #8f6bff; }
.auth-row { display: flex; gap: 8px; margin-top: 8px; }
.btn-auth { flex: 1; height: 38px; border-radius: 12px; font-weight: 900; color: #fff; background: #1b1340; font-size: 14px; transition: transform .12s; display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; }
body.dark .btn-auth { background: #3a3470; }
.btn-auth.alt { background: var(--tr-red); }
.btn-auth .ic { width: 16px; height: 16px; }
.btn-auth:hover { transform: translateY(-1px); }
.btn-auth .badge-n { position: absolute; top: -7px; right: -5px; box-shadow: 0 0 0 2px var(--panel); }
.hint { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* modlar: 3 eşit sütun, ikon üstte yazı altta — uzun adlar taşmaz, kısalır */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mode { height: 54px; min-width: 0; border-radius: 12px; background: var(--panel-2); border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 4px; color: var(--ink-3); transition: transform .12s, background .15s, color .15s; }
.mode svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; flex: none; }
.mode span { max-width: 100%; font-size: 11px; font-weight: 900; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode:hover { transform: translateY(-2px); color: var(--brand); }
.mode.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(108, 59, 255, .35); }
.mode-desc { margin: 10px 0 0; font-size: 12.5px; line-height: 17px; height: 34px; overflow: hidden; color: var(--ink-2); font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ödüller */
.offer-row { display: flex; gap: 8px; }
.offer { flex: 1 1 0; min-width: 0; height: 52px; border-radius: 14px; color: #fff; display: flex; align-items: center; padding: 0 12px; position: relative; overflow: hidden; text-align: left; transition: transform .12s; }
.offer .ic { position: absolute; right: -7px; bottom: -9px; width: 46px; height: 46px; opacity: .24; stroke-width: 2.4; }
.offer:hover { transform: translateY(-2px); }
.of-txt { position: relative; display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.of-txt b { font-size: 13.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.of-txt small { font-size: 11.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .28); }
.offer.gift { background: linear-gradient(135deg, #ffb800, #ff7a00); box-shadow: 0 6px 14px rgba(255, 140, 0, .35); }
.offer.gift.claimed { background: var(--panel-2); color: var(--ink-2); box-shadow: none; cursor: default; border: 1px solid var(--line); }
.offer.gift.claimed .of-txt b, .offer.gift.claimed .of-txt small { color: var(--ink-2); text-shadow: none; }
.offer.gift.claimed:hover { transform: none; }
.offer.gift.pulse { animation: pulse 1.6s ease-in-out infinite; }
.offer.quest { background: linear-gradient(135deg, #12b76a, #0b9f8f); box-shadow: 0 6px 14px rgba(18, 183, 106, .3); }
.offer.quest.ready { animation: pulse 1.6s ease-in-out infinite; }
/* koyu temada yeşil üzerinde beyaz yazı daha belirgin: zemin koyulaşır, alt yazı kalınlaşır */
body.dark .offer.quest { background: linear-gradient(135deg, #0c8a52, #08766b); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
body.dark .offer.quest .of-txt small { color: #e6fff3; }
body.dark .offer.gift.claimed .of-txt small { color: #cfc8f2; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* sunucular: liste yüksekliği sabit (3 satır), fazlası kaydırılır */
.online-total { margin-left: auto; font-size: 12px; font-weight: 900; color: var(--ok); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; letter-spacing: 0; padding: 2px 0; }
.online-total:hover { color: #0b8a50; text-decoration-thickness: 2px; }
body.dark .online-total { color: #3ee08f; }
/* kaydırma çubuğu yeri her zaman ayrılır (panel kenar boşluğunda): sunucu sayısı değişince satırlar genişleyip daralmaz */
.server-list { display: flex; flex-direction: column; gap: 6px; height: 126px; overflow-y: auto; scrollbar-gutter: stable; margin-right: -16px; padding-right: 6px; }
.srv { flex: none; display: flex; align-items: center; gap: 8px; height: 38px; border-radius: 12px; padding: 0 12px; background: var(--panel-2); border: 2px solid transparent; font-weight: 800; font-size: 14px; text-align: left; transition: border-color .12s; }
.srv:hover { border-color: var(--line); }
.srv.active { border-color: var(--brand); background: var(--grad-soft); }
.srv .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(18, 183, 106, .2); flex: none; }
.srv.off .dot { background: var(--err); box-shadow: 0 0 0 3px rgba(240, 68, 56, .2); }
.srv .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv .tm { display: none; align-items: center; justify-content: center; flex: none; height: 20px; padding: 0 7px; border-radius: 10px; background: rgba(108, 59, 255, .1); color: var(--brand); font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums; }
.srv .tm.on { display: inline-flex; }
.srv .tm i { font-style: normal; }
body.dark .srv .tm { background: rgba(185, 162, 255, .14); color: #c9b6ff; }
.srv.live .bar { display: none; }
.srv .tm.live { display: inline-flex; gap: 4px; padding: 0 7px 0 6px; background: rgba(240, 68, 56, .12); color: #d92d20; font-size: 10px; letter-spacing: .1px; }
.srv .tm.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: livePulse 1.2s ease-in-out infinite; }
body.dark .srv .tm.live { background: rgba(255, 90, 90, .16); color: #ff8f8f; }
@keyframes livePulse { 50% { opacity: .25; } }
.srv .cnt { flex: none; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.srv .bar { width: 28px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; flex: none; }
.srv .bar i { display: block; height: 100%; background: var(--grad); }

/* market / sıralama / envanter / skinlerim kutucukları ve iksirler */
.p-shop { display: flex; flex-direction: column; }
.nav-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.nt { position: relative; display: flex; align-items: center; gap: 9px; height: 44px; min-width: 0; padding: 0 9px 0 6px; border-radius: 13px; background: var(--panel-2); border: 1px solid var(--line); text-align: left; transition: transform .12s, border-color .15s, box-shadow .15s; }
.nt:hover { transform: translateY(-1px); border-color: var(--nt-c); box-shadow: 0 8px 18px -10px var(--nt-c); }
.nt-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; background: var(--nt-c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16); }
.nt-ic .ic { width: 18px; height: 18px; }
.nt-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.nt-t b { font-size: 13.5px; font-weight: 900; }
.nt-t small { font-size: 10.5px; font-weight: 800; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-shop { --nt-c: #6c3bff; } .nt-rank { --nt-c: #ff6a3d; } .nt-inv { --nt-c: #0e9f96; } .nt-skin { --nt-c: #2f80ff; }
.nt-badge { position: absolute; top: -7px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand-2); color: #fff; font-size: 11px; font-weight: 900; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--panel); animation: popIn .25s ease; }
.potion-box { flex: 1 0 auto; display: flex; flex-direction: column; }
.potion-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 8px; }
.potion-head b { font-size: 14.5px; font-weight: 900; }
.info-pill { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px 0 7px; border-radius: 13px; background: var(--grad-soft); border: 1px solid var(--line); font-size: 11.5px; font-weight: 900; color: var(--brand); transition: transform .12s, border-color .12s; white-space: nowrap; }
.info-pill .ic { width: 15px; height: 15px; }
.info-pill:hover { transform: translateY(-1px); border-color: var(--brand); }
body.dark .info-pill { color: #d4c6ff; background: rgba(140, 105, 255, .18); border-color: #4a3f86; }
body.dark .info-pill:hover { border-color: #b9a2ff; }
.potions { flex: 1 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.potion-hint { margin: 8px 0 0; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 11.5px; line-height: 15px; text-align: center; color: var(--ink-3); font-weight: 800; overflow: hidden; }

/* tanıtım */
.p-promo { display: flex; flex-direction: column; }
.mini-lb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; height: 180px; overflow: hidden; }
.mini-lb li { flex: none; display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 10px; background: var(--panel-2); font-weight: 800; font-size: 13.5px; }
.mini-lb li.click { cursor: pointer; transition: background .12s; }
.mini-lb li.click:hover { background: var(--panel-3); }
.mini-lb li.muted { justify-content: center; color: var(--ink-3); }
.mini-lb li.ph { opacity: .5; }
.mini-lb li.ph .nm { color: var(--ink-3); font-weight: 700; }
.mini-lb .rk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--panel-3); flex: none; }
.mini-lb li:nth-child(1) .rk { background: linear-gradient(#ffe27a, #f5b400); color: #5a3e00; }
.mini-lb li:nth-child(2) .rk { background: linear-gradient(#f1f3f8, #b9c0cf); color: #3d4350; }
.mini-lb li:nth-child(3) .rk { background: linear-gradient(#ffd0a8, #d9853b); color: #5a2e00; }
.mini-lb img, .av { width: 22px; height: 22px; border-radius: 50%; background: var(--panel-3); flex: none; object-fit: cover; }
.av.none, .sk.none, .pd-av .av.none, .fr-av .av.none { display: grid; place-items: center; color: var(--ink-3); background: var(--panel-3); }
.av.none .ic { width: 62%; height: 62%; }
.mini-lb .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-lb .v { font-size: 12px; color: var(--brand); white-space: nowrap; }
body.dark .mini-lb .v { color: #c9b6ff; }
.link-btn { display: block; margin: auto auto 0; padding-top: 8px; font-size: 12.5px; font-weight: 900; color: var(--brand); }
body.dark .link-btn { color: #c9b6ff; }
.ad-slot { margin-top: 10px; min-height: 90px; border-radius: 12px; overflow: hidden; }

/* topluluk: logo + "Topluluğu", köşede yüzen blob süsleri, degrade çerçeveli ipucu balonu (kutu boyu sabit) */
.p-community { display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(120% 70% at 100% 0%, rgba(255, 61, 127, .1), transparent 60%), radial-gradient(100% 70% at 0% 100%, rgba(108, 59, 255, .1), transparent 60%), var(--panel); }
.p-community::before, .p-community::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.p-community::before { width: 84px; height: 84px; right: -24px; top: -30px; background: var(--grad); opacity: .16; animation: commFloat 7s ease-in-out infinite; }
.p-community::after { width: 18px; height: 18px; right: 52px; top: 9px; background: var(--brand-2); opacity: .22; animation: commFloat 5s ease-in-out infinite reverse; }
@keyframes commFloat { 50% { transform: translate(-4px, 5px) scale(1.08); } }
.comm-head { position: relative; display: flex; align-items: center; gap: 4px; height: 28px; }
.comm-logo { height: 26px; width: auto; display: block; flex: none; }
.comm-logo.dk, body.dark .comm-logo.lt { display: none; }
body.dark .comm-logo.dk { display: block; }
.comm-t { position: relative; top: 1px; font-size: 20px; line-height: 1; font-weight: 900; letter-spacing: -.3px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.comm-tip { position: relative; margin: 18px 4px 12px; padding: 14px 12px 9px; border-radius: 14px; border: 1.5px solid transparent; background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--grad) border-box; flex: 1 1 0; min-height: 62px; display: flex; align-items: center; justify-content: center; }
.tip { margin: 0; font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1.4; text-align: center; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tip.in { animation: tipIn .45s ease; }
@keyframes tipIn { from { opacity: 0; transform: translateY(3px); } }
.tip-chip { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 10px 0 8px; border-radius: 10px; background: var(--grad); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .8px; white-space: nowrap; box-shadow: 0 4px 10px rgba(108, 59, 255, .35), 0 0 0 3px var(--panel); }
.tip-chip .ic { width: 11px; height: 11px; stroke-width: 2.4; }
.comm-actions { display: flex; gap: 7px; }
.btn-comm { height: 40px; border-radius: 12px; color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 5px; text-decoration: none; font-size: 12.5px; padding: 0 9px; flex: none; transition: transform .12s, filter .12s; }
.btn-comm:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-comm .ic { width: 17px; height: 17px; }
.btn-comm.ig { background: radial-gradient(circle at 25% 110%, #ffd776 0%, #fd5d3a 38%, #d8297f 62%, #7a35d6 100%); box-shadow: 0 6px 14px -6px rgba(216, 41, 127, .7); }
.btn-comm.ig.compact { width: 40px; padding: 0; }
.btn-comm.ig.compact span { display: none; }
.btn-comm.dc { background: #5865f2; width: 40px; padding: 0; }
.btn-comm.alt { flex: 1; min-width: 0; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
.btn-comm.alt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-comm.alt .ic { color: var(--brand); }
body.dark .btn-comm.alt .ic { color: #b9a2ff; }

#menu-footer { margin-top: 14px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
#menu-footer a { color: #fff; text-decoration: none; }
#menu-footer a:hover { text-decoration: underline; }

/* ---------- SEVİYE YILDIZLARI ---------- */
.lvl-star { position: relative; width: var(--sz, 46px); height: var(--sz, 46px); flex: none; display: grid; place-items: center; isolation: isolate; }
.lvl-star > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .22)); z-index: 1; }
.lvl-star > b { position: relative; z-index: 3; margin-top: calc(var(--sz, 46px) * .09); font-size: calc(var(--sz, 46px) * .33); font-weight: 900; line-height: 1; color: #fff; letter-spacing: -.4px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 var(--st-t), 0 0 4px var(--st-t); }
.lvl-star > b.l3 { font-size: calc(var(--sz, 46px) * .26); }
.st-sweep { animation: stSweep 3.6s ease-in-out infinite; }
.st-glow { position: absolute; inset: -24%; border-radius: 50%; background: radial-gradient(circle, var(--st-g) 0%, transparent 66%); animation: stGlow 2.4s ease-in-out infinite; z-index: 0; }
.st-rays { position: absolute; inset: -42%; border-radius: 50%; z-index: 0; background: repeating-conic-gradient(from 0deg, var(--st-g) 0deg 7deg, transparent 7deg 30deg); -webkit-mask: radial-gradient(circle, #000 24%, transparent 70%); mask: radial-gradient(circle, #000 24%, transparent 70%); animation: stSpin 12s linear infinite; }
.fx-prism .st-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 95, 109, .9) 0deg 6deg, transparent 6deg 20deg, rgba(255, 214, 90, .9) 20deg 26deg, transparent 26deg 40deg, rgba(85, 239, 196, .9) 40deg 46deg, transparent 46deg 60deg, rgba(116, 185, 255, .9) 60deg 66deg, transparent 66deg 80deg, rgba(196, 140, 255, .9) 80deg 86deg, transparent 86deg 100deg); animation-duration: 7s; }
.fx-prism > svg { animation: stHue 5s linear infinite; }
.fx-immortal .st-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 200, 60, .85) 0deg 5deg, transparent 5deg 18deg); animation-duration: 6s; }
.st-flame { position: absolute; inset: -15%; border-radius: 50%; z-index: 0; background: conic-gradient(from 0deg, rgba(255, 90, 0, 0), rgba(255, 140, 0, .95), rgba(255, 220, 70, .95), rgba(255, 90, 0, 0) 35%, rgba(255, 160, 0, .9) 55%, rgba(255, 60, 0, 0) 70%, rgba(255, 200, 40, .9) 88%, rgba(255, 90, 0, 0)); -webkit-mask: radial-gradient(circle, transparent 49%, #000 55%, #000 63%, transparent 70%); mask: radial-gradient(circle, transparent 49%, #000 55%, #000 63%, transparent 70%); animation: stSpin 2.2s linear infinite; }
.st-orb { position: absolute; inset: -14%; z-index: 2; animation: stSpin 3.6s linear infinite; }
.st-orb i { position: absolute; width: 15%; height: 15%; border-radius: 50%; background: radial-gradient(circle, #fff 0, #ffc107 45%, rgba(255, 120, 0, 0) 72%); }
.st-orb i:nth-child(1) { left: 42%; top: 0; } .st-orb i:nth-child(2) { right: 3%; bottom: 17%; } .st-orb i:nth-child(3) { left: 3%; bottom: 17%; }
.st-sp { position: absolute; z-index: 2; width: calc(var(--sz, 46px) * .22); height: calc(var(--sz, 46px) * .22); background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: stTw 1.9s ease-in-out infinite; }
.st-sp.s1 { right: -4%; top: 0; }
.st-sp.s2 { left: -8%; top: 36%; width: calc(var(--sz, 46px) * .16); height: calc(var(--sz, 46px) * .16); animation-delay: .6s; }
.st-sp.s3 { right: 4%; bottom: -4%; width: calc(var(--sz, 46px) * .17); height: calc(var(--sz, 46px) * .17); animation-delay: 1.2s; }
@keyframes stSweep { 0%, 55% { transform: translateX(0); } 100% { transform: translateX(78px); } }
@keyframes stSpin { to { transform: rotate(360deg); } }
@keyframes stGlow { 0%, 100% { transform: scale(.82); opacity: .55; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes stTw { 0%, 100% { transform: scale(.3) rotate(0deg); opacity: .2; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes stHue { from { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .22)) hue-rotate(0deg); } to { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .22)) hue-rotate(360deg); } }
/* yıldız + seviye rakamı. Rakam yıldızla ortalı durur ve kutunun taban çizgisi rakamın taban çizgisidir:
   yazı satırında (sohbet, isim satırları) seviye rakamı isimle tam aynı hizaya oturur. */
.mini-star { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 11px; font-weight: 900; color: var(--st-c); vertical-align: baseline; line-height: 1; }
.mini-star svg { width: 15px; height: 15px; overflow: visible; }
.mini-star b { font-weight: 900; font-variant-numeric: tabular-nums; align-self: baseline; margin-top: 2px; }
.nm > .mini-star { margin-right: 5px; }
.mini-star.guest { color: var(--ink-3); width: 26px; justify-content: center; }

/* iksir slotları */
.potion { position: relative; min-width: 0; min-height: 136px; border-radius: 14px; background: var(--panel-2); border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 3px; padding: 7px 5px 6px; text-align: center; }
.potion .p-name { font-size: 11px; font-weight: 900; color: var(--ink-2); line-height: 1.1; height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.potion .p-time { font-size: 12px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.potion .empty-ico { width: 34px; height: 34px; color: var(--ink-3); opacity: .5; }
/* iksir slotu her durumda aynı boyda (boş 136px): dolu slot eskiden 146px olup satırı ve menüyü büyütüyordu */
.potions .potion { height: 136px; min-height: 0; }
.potions .potion .p-art { width: 41px; height: 48px; }
.potions .potion .p-time { line-height: 12px; }
.potion.filled { border-style: solid; background: radial-gradient(circle at 50% 45%, var(--pc-soft), transparent 68%), var(--panel-2); }
.r-common { --pc: #22c55e; --pc-soft: rgba(34, 197, 94, .17); }
.r-rare { --pc: #0ea5e9; --pc-soft: rgba(14, 165, 233, .17); }
.r-epic { --pc: #a855f7; --pc-soft: rgba(168, 85, 247, .2); }
.r-legendary { --pc: #f59e0b; --pc-soft: rgba(245, 158, 11, .22); }
.r-premium { --pc: #6c3bff; --pc-soft: rgba(108, 59, 255, .2); }
.potion.r-common { border-color: #4ade80; } .potion.r-rare { border-color: #38bdf8; } .potion.r-epic { border-color: #b77bff; } .potion.r-legendary { border-color: #f5b400; }
.potion .btn-p { width: 100%; height: 26px; border-radius: 9px; font-size: 11px; font-weight: 900; color: #fff; background: var(--grad); flex: none; }
.potion .btn-p.ready { background: linear-gradient(135deg, #12b76a, #0bb39f); animation: pulse 1.4s infinite; }
.potion .btn-p.rush { background: #1b1340; }
body.dark .potion .btn-p.rush { background: #3a3470; }
.potion .btn-p:disabled { background: var(--line); color: var(--ink-3); cursor: default; animation: none; }

/* iksir şişesi (SVG): sıvı dalgası, içte kabarcıklar, ağızdan taşan köpükler */
.p-art { position: relative; display: block; width: 46px; height: 54px; flex: none; color: var(--ink-2); }
.p-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.p-art .wave { transform: translateX(0); }
.p-art .ib { opacity: 0; }
.brewing .p-art .wave, .ready .p-art .wave, .prod .p-art .wave, .slot .p-art .wave { animation: pWave 2.2s linear infinite; }
.brewing .p-art .ib, .ready .p-art .ib, .prod .p-art .ib { animation: pInner 1.9s ease-in infinite; }
.brewing .p-art .wave.w2, .ready .p-art .wave.w2, .prod .p-art .wave.w2, .slot .p-art .wave.w2 { animation-duration: 3.3s; }
.ready .p-art { animation: pBob 1.8s ease-in-out infinite; filter: drop-shadow(0 0 7px var(--pc)); }
.p-art .spark, .it-art .spark { transform-box: fill-box; transform-origin: center; animation: pTwinkle 1.8s ease-in-out infinite; }
@keyframes pWave { to { transform: translateX(24px); } }
@keyframes pInner { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-19px); opacity: 0; } }
@keyframes pBob { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-2px) rotate(-3deg); } 70% { transform: translateY(-1px) rotate(3deg); } }
@keyframes pTwinkle { 0%, 100% { transform: scale(.5); opacity: .3; } 50% { transform: scale(1.1); opacity: 1; } }
.p-bub { position: absolute; left: 50%; top: 3px; width: 0; height: 0; pointer-events: none; }
.p-bub i { position: absolute; left: var(--x); bottom: 0; width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95), var(--pc) 62%); box-shadow: 0 0 4px var(--pc); animation: pBub var(--t, 1.9s) ease-out infinite; animation-delay: var(--d); }
@keyframes pBub { 0% { transform: translate(0, 4px) scale(.3); opacity: 0; } 18% { opacity: .95; } 100% { transform: translate(var(--dx), var(--rise, -30px)) scale(1); opacity: 0; } }

/* iksir rehberi */
.pg-odds { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.pg-odds span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 900; }
.pg-odds span i { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); }
.pg-card { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: radial-gradient(circle at 34px 50%, var(--pc-soft), transparent 90px), var(--panel-2); }
.pg-card + .pg-card { margin-top: 8px; }
.pg-card .p-art { width: 50px; height: 58px; }
.pg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.pg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.pg-nm { font-size: 15.5px; font-weight: 900; margin-right: 3px; }
.pg-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); font-size: 11.5px; font-weight: 900; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pg-tag .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.pg-tag .coin-ic { width: 14px; height: 14px; }
.pg-gets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pg-get { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.pg-get b { font-weight: 900; font-variant-numeric: tabular-nums; }
.pg-get .coin-ic { width: 20px; height: 20px; }
.pg-get .xp-ic { height: 18px; }
.pg-chances { display: flex; flex-wrap: wrap; gap: 5px; }
.pg-ch { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 7px; background: var(--grad-soft); font-size: 11.5px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.pg-ch .ic { width: 13px; height: 13px; color: var(--brand); stroke-width: 2.4; }
.pg-ch b { color: var(--ink); font-weight: 900; margin-left: 1px; }
.pg-ch.prem .ic { color: #ff3d7f; }
.pg-ch.off { opacity: .5; background: var(--panel); }
body.dark .pg-ch .ic { color: #b9a2ff; }
.pg-rules { margin: 14px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.55; font-weight: 700; color: var(--ink-2); }
.pg-rules li + li { margin-top: 3px; }
.pg-rules b { color: var(--ink); }
.pg-rules .coin-ic { width: 16px; height: 16px; vertical-align: -3px; }
.pg-rules .xp-ic { height: 15px; vertical-align: -3px; }

/* iksir açılış gösterisi */
.modal-back.ps-back { background: radial-gradient(circle at 50% 42%, rgba(60, 30, 140, .55), rgba(8, 4, 24, .88)); backdrop-filter: blur(3px); }
.modal.ps-modal { width: min(560px, 100%); background: none; border: 0; box-shadow: none; overflow: visible; animation: none; max-height: none; }
.ps-modal .modal-body { padding: 0; overflow: visible; }
.ps { position: relative; display: flex; flex-direction: column; align-items: center; color: #fff; text-align: center; user-select: none; }
.ps-title { font-size: 22px; font-weight: 900; letter-spacing: .3px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); min-height: 30px; }
.ps-title small { display: block; font-size: 13px; font-weight: 800; opacity: .75; margin-top: 2px; }
.ps-stage { position: relative; width: min(540px, calc(94 * var(--vw))); min-height: 270px; display: grid; place-items: center; cursor: pointer; }
.ps-stage > .ps-bottle, .ps-stage > .ps-rewards { grid-area: 1 / 1; }
/* parlama ve ışınlar büyürken alttaki düğmelerin tıklamasını yutmasın */
.ps-glow { position: absolute; left: 50%; top: 50%; width: 250px; height: 250px; margin: -125px 0 0 -125px; border-radius: 50%; background: radial-gradient(circle, var(--pc) 0%, transparent 62%); opacity: .45; animation: psGlow 2.5s ease-in forwards; pointer-events: none; }
.ps-rays { position: absolute; left: 50%; top: 50%; width: 600px; height: 600px; margin: -300px 0 0 -300px; pointer-events: none; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .16) 0 9deg, transparent 9deg 24deg); -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%); mask-image: radial-gradient(circle, #000 18%, transparent 66%); opacity: 0; animation: psSpin 14s linear infinite; }
.ps-bottle { position: relative; width: 168px; height: 198px; transform-origin: 50% 85%; animation: psShake 2.5s cubic-bezier(.3, 0, .7, 1) forwards; }
.ps.done .ps-bottle { pointer-events: none; }
.ps-bottle .p-art { width: 100%; height: 100%; filter: drop-shadow(0 0 18px var(--pc)); }
.ps-bottle .p-bub { top: 10px; }
.ps-bottle .p-bub i { --rise: -110px; }
.ps.burst .ps-bottle { animation: psPop .38s ease-out forwards; }
.ps.burst .ps-rays { opacity: 1; transition: opacity .3s; }
.ps.burst .ps-glow { animation: psFlare .9s ease-out forwards; }
.ps-flash { position: fixed; inset: 0; background: radial-gradient(circle at 50% 45%, #fff, rgba(255, 255, 255, .5) 30%, transparent 70%); opacity: 0; pointer-events: none; }
.ps.burst .ps-flash { animation: psFlash .7s ease-out; }
.ps-rewards { position: relative; width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; pointer-events: none; }
.ps.done .ps-rewards { pointer-events: auto; }
.ps-card { width: 150px; min-height: 150px; padding: 14px 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .96); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); opacity: 0; transform: scale(.3) translateY(30px); }
body.dark .ps-card { background: rgba(30, 26, 60, .97); }
.ps.done .ps-card { animation: psCard .55s cubic-bezier(.2, 1.6, .4, 1) forwards; animation-delay: var(--d); }
.ps-card .big { font-size: 26px; font-weight: 900; line-height: 1; }
.ps-card .lab { font-size: 12px; font-weight: 900; color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; }
.ps-card .ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff; }
.ps-card .ico.coin { background: url(/img/coin.svg) center / contain no-repeat; }
.ps-card .ico.xp { border-radius: 0; }
.ps-card .ico.xp img { width: 64px; height: 64px; display: block; }
.ps-card .ico.boost { background: linear-gradient(135deg, #ff3d7f, #ff7a00); }
.ps-card .ico .ic { width: 28px; height: 28px; }
.ps-card.skin { width: 190px; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, #6c3bff, #22d3ff, #ff3d7f) border-box; border: 3px solid transparent; }
.ps-card.skin img, .ps-card.skin canvas { width: 96px; height: 96px; border-radius: 50%; }
.ps-card.skin .lab { color: var(--brand); }
.ps-card.skin .big { font-size: 18px; text-align: center; }
.ps-card.jp { box-shadow: 0 0 0 3px #ffd23f, 0 14px 40px rgba(255, 190, 0, .45); }
.ps-note { margin-top: 12px; min-height: 20px; max-width: 520px; font-size: 13.5px; font-weight: 800; opacity: 0; }
.ps.done .ps-note { opacity: .9; transition: opacity .4s .6s; }
.ps-actions { position: relative; z-index: 5; display: flex; gap: 8px; margin-top: 10px; opacity: 0; pointer-events: none; }
.ps.done .ps-actions { opacity: 1; pointer-events: auto; transition: opacity .3s .7s; }
.ps-actions .btn { min-width: 150px; height: 46px; font-size: 16px; }
.ps-skip { margin-top: 6px; font-size: 12px; font-weight: 800; opacity: .55; }
.ps.done .ps-skip { display: none; }
@keyframes psShake {
  0% { transform: scale(.6) rotate(0); opacity: 0; }
  10% { transform: scale(1) rotate(0); opacity: 1; }
  20% { transform: rotate(-4deg); } 26% { transform: rotate(4deg); } 32% { transform: rotate(-5deg); } 38% { transform: rotate(5deg); }
  44% { transform: rotate(-7deg) translateX(-3px); } 50% { transform: rotate(7deg) translateX(3px); } 56% { transform: rotate(-9deg) translateX(-4px); }
  62% { transform: rotate(9deg) translateX(4px); } 68% { transform: rotate(-11deg) translateX(-5px) scale(1.03); } 74% { transform: rotate(11deg) translateX(5px) scale(1.05); }
  80% { transform: rotate(-13deg) translateX(-6px) scale(1.07); } 86% { transform: rotate(13deg) translateX(6px) scale(1.09); } 92% { transform: rotate(-8deg) scale(1.12); }
  100% { transform: rotate(0) scale(1.16); }
}
@keyframes psPop { to { transform: scale(1.7); opacity: 0; filter: brightness(2.5); } }
@keyframes psGlow { from { opacity: .2; transform: scale(.7); } to { opacity: .85; transform: scale(1.15); } }
@keyframes psFlare { 0% { opacity: 1; transform: scale(1.2); } 100% { opacity: .5; transform: scale(2.4); } }
@keyframes psFlash { 0% { opacity: 0; } 15% { opacity: .95; } 100% { opacity: 0; } }
@keyframes psSpin { to { transform: rotate(360deg); } }
@keyframes psCard { to { opacity: 1; transform: none; } }
.confetti-fx { position: fixed; inset: 0; width: calc(100 * var(--vw)); height: calc(100 * var(--vh)); pointer-events: none; z-index: 90; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }
#stats-pill {
  position: absolute; top: 12px; left: 12px; width: 244px; display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 14px; border-radius: 14px;
  background: var(--panel); box-shadow: var(--shadow); border: 1px solid var(--line); font-weight: 900;
}
#stats-pill > div { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.sp-label { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); }
#stats-pill b { font-size: 19px; white-space: nowrap; }
#stats-pill.spec .sp-label { color: var(--brand); }
#hud-mass { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-perf { font-size: 11px; color: var(--ink-3); font-weight: 800; padding-left: 10px; border-left: 1px solid var(--line); white-space: nowrap; }

#minion-panel {
  position: absolute; top: 74px; left: 12px; width: 244px; padding: 10px 12px 11px; border-radius: 16px; color: #fff;
  background: linear-gradient(160deg, #0f5c4a 0%, #12876a 60%, #1aa37f 100%);
  box-shadow: 0 12px 30px rgba(10, 80, 60, .4), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.mp-head { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .8px; white-space: nowrap; }
.mp-head b { font-weight: 900; }
.mp-head span { margin-left: auto; font-weight: 900; opacity: .9; font-variant-numeric: tabular-nums; }
.mp-toggle { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .18); color: #fff; display: grid; place-items: center; flex: none; transition: background .15s; }
.mp-toggle:hover { background: rgba(255, 255, 255, .3); }
.mp-toggle .ic { width: 15px; height: 15px; stroke-width: 2.6; transition: transform .2s; }
#minion-panel.collapsed .mp-toggle .ic { transform: rotate(180deg); }
#minion-panel.collapsed .mp-more { display: none; }
#minion-panel.collapsed .mp-sub { margin-bottom: 0; }
.mp-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.mp-sub em { flex: none; font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: .3px; padding: 2px 8px; border-radius: 8px; background: rgba(255, 255, 255, .2); }
.mp-sub em.collect { background: #ffd23f; color: #3a2a00; }
.mp-sub em.feed { background: #7ee8ff; color: #06344a; }
.mp-sub em.frozen { background: #ff5a6e; }
.mp-sub span { min-width: 0; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.mp-sub span b { font-size: 14px; font-variant-numeric: tabular-nums; }
.mp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.mp-grid span { height: 22px; min-width: 0; overflow: hidden; border-radius: 7px; background: rgba(0, 0, 0, .22); display: grid; place-items: center; font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums; }
.mp-grid span.dead { opacity: .35; }
.mp-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; margin-top: 8px; font-size: 11.5px; font-weight: 800; }
.mp-keys span { display: flex; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-keys span.wide { grid-column: span 2; }
.mp-keys kbd { flex: none; background: rgba(255, 255, 255, .92); color: #0f5c4a; border: 0; margin-right: 5px; min-width: 22px; text-align: center; max-width: 64px; overflow: hidden; text-overflow: ellipsis; }

/* oyun içi skor tablosu: koyu, opak, sade satırlar; marka kırmızısı başlık etiketi */
.lb {
  position: absolute; top: 12px; right: 12px; width: 236px; border-radius: 12px; overflow: hidden; color: #f2f0ff;
  background: #151229; box-shadow: 0 10px 26px rgba(8, 5, 25, .42), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.lb-head { display: flex; align-items: stretch; height: 32px; background: #1f1a3d; }
.lb-title { display: flex; align-items: center; padding: 0 18px 0 11px; background: var(--tr-red); font-size: 12.5px; font-weight: 900; letter-spacing: 1.6px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.lb-head em .lr-t::before { content: '·'; margin: 0 5px; }
.lb-head em { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; padding: 0 11px 0 6px; font-style: normal; font-size: 11.5px; font-weight: 800; color: #aba4d9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
/* ilk satır başlığa yapışık: 1. sıradaki oyuncunun renkli satırı ile başlık arasında boşluk kalmaz */
#lb-list { list-style: none; margin: 0; padding: 0 0 4px; }
.lb-row { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 0; font-weight: 800; font-size: 13.5px; }
.lb-row .rk { width: 28px; flex: none; text-align: right; font-size: 12.5px; font-weight: 900; color: #7d76a8; font-variant-numeric: tabular-nums; }
.lb-row.r1 .rk { color: #ffcf33; } .lb-row.r2 .rk { color: #d3d8e4; } .lb-row.r3 .rk { color: #ff9b5c; }
.lb-row.r1 .nm { color: #ffe07a; }
.lb-row .av { width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .12); flex: none; object-fit: cover; }
.lb-row .av.none { visibility: hidden; }
.lb-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .ms { font-size: 12px; font-weight: 800; color: #9a93c7; font-variant-numeric: tabular-nums; }
.lb-row.me { background: rgba(255, 61, 127, .17); box-shadow: inset 3px 0 0 #ff3d7f; }
.lb-row.me .nm { color: #fff; }
.lb-row.me .ms { color: #ffc2d6; }
.lb-row.spec { background: rgba(108, 59, 255, .25); box-shadow: inset 3px 0 0 #8f6bff; }
.lb-row.t1 .nm { color: #ff8f9a; } .lb-row.t2 .nm { color: #7dffad; } .lb-row.t3 .nm { color: #8fc1ff; }
#lb-me { border-top: 1px solid rgba(255, 255, 255, .08); }
#lb-pie { display: block; width: 116px; height: 116px; margin: 10px auto 2px; }
.lb-foot { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 11px; font-size: 11px; font-weight: 800; color: #8a83b8; border-top: 1px solid rgba(255, 255, 255, .07); }
.lb-foot b { color: #e9e6ff; font-variant-numeric: tabular-nums; }
.lb-brand { height: 15px; width: auto; display: block; opacity: .9; }

#minimap-wrap { position: absolute; right: 12px; bottom: 12px; width: 190px; height: 190px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 2px solid rgba(255, 255, 255, .25); }
#minimap { width: 100%; height: 100%; display: block; }

/* sohbet: kapalıyken mesajlar birkaç saniye görünür, sonra üstten aşağı sırayla solar; Enter ile geçmiş açılır */
#chat { position: absolute; left: 12px; bottom: 12px; width: min(440px, calc(60 * var(--vw))); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
#chat-log { display: flex; flex-direction: column; gap: 3px; max-height: 236px; overflow: hidden; padding: 4px; border-radius: 14px; transition: background .2s; overscroll-behavior: contain; }
.cm { flex: none; align-self: flex-start; max-width: 100%; padding: 4px 10px; border-radius: 10px; background: rgba(18, 12, 46, .72); color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.35; word-wrap: break-word; animation: cmIn .2s ease; transition: opacity .55s ease, transform .55s ease, background .12s; }
.cm b { font-weight: 900; }
.cm .cm-u { font-weight: 900; }
.cm .cm-n { color: rgba(255, 255, 255, .62); font-weight: 700; margin-left: 4px; }
.cm .cm-c { margin-left: 1px; }
.cm .mini-star { margin-right: 5px; }
.cm .mini-star b { color: #fff; }
.cm.click { pointer-events: auto; cursor: pointer; }
.cm.click:hover { background: rgba(48, 34, 108, .9); }
.cm .badge { display: inline-block; font-size: 9.5px; font-weight: 900; padding: 1px 5px; border-radius: 5px; margin-right: 5px; vertical-align: 1px; }
.cm .badge.admin { background: var(--tr-red); } .cm .badge.mod { background: #2f80ff; } .cm .badge.vip { background: linear-gradient(135deg, #ffb800, #ff7a00); color: #3b2500; }
/* duyuru tipi (seviye tebriği, yetkili duyurusu, tur kazananı): altın zemin, koyu yazı, başta kırmızı DUYURU rozeti */
.cm.sys { display: flex; align-items: flex-start; gap: 7px; padding: 4px 11px 4px 5px; background: linear-gradient(90deg, #ffd84f, #ffb21c); color: #2b1800; box-shadow: 0 3px 12px rgba(255, 168, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .45); }
.cm-ann { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 18px; margin-top: .5px; padding: 0 7px 0 5px; border-radius: 6px; background: var(--tr-red); color: #fff; font-size: 10.5px; font-weight: 900; letter-spacing: .6px; line-height: 1; }
.cm-ann .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.cm-at { min-width: 0; font-weight: 800; }
.toast.bc { background: linear-gradient(90deg, #ffd84f, #ffb21c); color: #2b1800; border: 0; box-shadow: 0 10px 28px rgba(255, 168, 0, .35); }
.toast.bc .cm-ann { height: 20px; font-size: 11px; }
.cm.note { display: flex; align-items: center; gap: 4px; }
.cm.note .ic { width: 15px; height: 15px; }
.cm.note.friend { background: rgba(10, 90, 60, .85); }
.cm.note.dm, .cm.note.freq { background: rgba(92, 48, 214, .88); }
.cm.note.warn { background: rgba(247, 144, 9, .95); color: #2b1600; }
.dot-on { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2bd96b; box-shadow: 0 0 0 3px rgba(43, 217, 107, .28); flex: none; }
.cm.gone { opacity: 0; transform: translateY(-4px); pointer-events: none; }
/* Enter ile açılınca geçmiş solarak değil anında görünür */
#chat.snap .cm { transition: none; animation: none; }
@keyframes cmIn { from { opacity: 0; transform: translateY(6px); } }
#chat.open #chat-log { overflow-y: auto; pointer-events: auto; max-height: 280px; background: rgba(10, 7, 26, .55); }
#chat-input { pointer-events: auto; height: 40px; border-radius: 12px; border: 2px solid var(--brand); background: rgba(18, 12, 46, .9); color: #fff; padding: 0 12px; font-weight: 700; outline: none; display: none; }
#chat.open #chat-input { display: block; }
#chat.hidden-chat #chat-log { display: none; }

/* üstte ortalı sabit çubuklar */
#hud-top { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 2; }
#hud-top > * { pointer-events: auto; }
#br-bar { padding: 9px 18px; border-radius: 14px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #ff3d7f, #ff7a00); box-shadow: 0 8px 22px rgba(255, 61, 127, .4); font-size: 15px; text-align: center; white-space: nowrap; }
#br-bar small { display: block; font-size: 11.5px; opacity: .9; font-weight: 800; }
#br-bar.warn { background: linear-gradient(135deg, #e30a17, #ff3d7f); animation: brWarn 1s ease-in-out infinite; }
@keyframes brWarn { 50% { box-shadow: 0 8px 30px rgba(227, 10, 23, .75); transform: scale(1.02); } }
#afk-bar { display: flex; align-items: center; gap: 9px; max-width: min(760px, calc(92 * var(--vw))); padding: 10px 16px; border-radius: 13px; background: rgba(247, 144, 9, .97); color: #2b1600; font-weight: 900; font-size: 13.5px; line-height: 1.3; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); animation: popIn .25s ease; transition: background .3s, color .3s, opacity .6s, transform .6s; }
#afk-bar .ic { width: 18px; height: 18px; stroke-width: 2.4; }
#afk-bar.back { background: rgba(18, 183, 106, .97); color: #fff; }
#afk-bar.fade { opacity: 0; transform: translateY(-10px); }
/* izleme modu çubuğu: solda/sağda oyuncu değiştirme, ortada izlenen oyuncu */
#spec-bar { display: flex; flex-direction: column; align-items: center; width: min(580px, calc(94 * var(--vw))); padding: 8px 14px 9px; border-radius: 16px; color: #f2f0ff; background: #151229; box-shadow: 0 12px 30px rgba(8, 5, 25, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); animation: popIn .25s ease; }
.sb-row { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin: 7px 0 5px; }
.sb-arrow { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #e7e2ff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16); transition: background .15s, transform .12s, box-shadow .15s, color .15s; }
.sb-arrow:hover { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(108, 59, 255, .55); transform: scale(1.08); }
.sb-arrow:active { transform: scale(.9); }
.sb-arrow .ic { width: 20px; height: 20px; stroke-width: 2.8; }
#spec-bar kbd { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); }
.sb-mid { padding: 8px 12px 9px; text-align: center; min-width: 0; }
.sb-title { font-size: 13px; font-weight: 800; color: #d9d4ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-title b { color: #fff; background: var(--tr-red); padding: 1px 8px 2px; border-radius: 6px; margin-right: 2px; letter-spacing: .3px; }
.sb-who { flex: 0 1 auto; min-width: 250px; max-width: 440px; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 30px; font-weight: 900; white-space: nowrap; overflow: hidden; }
.sb-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.sb-av.none { background: rgba(255, 255, 255, .14); }
.sb-nm { font-size: 16px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.sb-user { font-size: 12.5px; color: #aba4d9; font-weight: 800; }
.sb-stat { display: inline-flex; align-items: center; font-size: 12px; color: #ffd166; font-weight: 900; padding: 2px 8px; border-radius: 8px; background: rgba(255, 209, 102, .12); }
.sb-stat i { font-style: normal; color: #fff; margin-right: 6px; }
.sb-hint { font-size: 11.5px; color: #8f88bd; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-sep { margin: 0 7px; }
#touch-ctl { position: absolute; right: 18px; bottom: 220px; display: flex; flex-direction: column; gap: 14px; }
#touch-ctl button { width: 74px; height: 74px; border-radius: 50%; background: rgba(108, 59, 255, .78); color: #fff; font-weight: 900; font-size: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); border: 3px solid rgba(255, 255, 255, .4); }
#touch-ctl #t-eject { background: rgba(255, 61, 127, .78); }

/* ---------- BİLDİRİMLER ---------- */
#toasts { position: fixed; top: calc(10px + var(--top-off)); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { padding: 9px 16px; border-radius: 14px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); font-weight: 800; font-size: 14px; border: 1px solid var(--line); animation: toastIn .25s cubic-bezier(.2, 1.4, .4, 1); display: flex; align-items: center; gap: 8px; max-width: min(620px, calc(92 * var(--vw))); line-height: 1.35; }
.toast.ok { border-left: 5px solid var(--ok); } .toast.warn { border-left: 5px solid var(--warn); } .toast.err { border-left: 5px solid var(--err); }
.toast.reward { background: var(--grad); color: #fff; border: 0; }
.toast.reward .sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .4); margin: 0 4px; }
/* oyun içi kazanç (coin + XP): arka plan yok, sadece simgeler ve sayılar; her zeminde okunsun diye koyu kontur */
.toast.gain { background: none; box-shadow: none; border: 0; padding: 4px 6px; gap: 6px; color: #fff; font-size: 16px; font-weight: 900; text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 3px rgba(0, 0, 0, .45); }
.toast.gain .coin-ic { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.toast.gain .xp-ic { height: 21px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.toast.gain .sep { width: 10px; }
.toast.level { background: linear-gradient(135deg, #ffb800, #ff3d7f); color: #fff; border: 0; font-size: 15px; }
.toast .ts { display: flex; flex-direction: column; line-height: 1.25; }
.toast .ts small { font-size: 12px; font-weight: 800; opacity: .85; }
.toast .ic { width: 18px; height: 18px; flex: none; }
.toast .t-act { pointer-events: auto; flex: none; margin-left: 4px; height: 28px; padding: 0 11px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 900; }
.toast:has(.t-act) { pointer-events: auto; }
.toast.out { opacity: 0; transform: translateY(-8px); transition: all .28s; }
.toast.side { position: fixed; z-index: 61; animation: sideIn .3s cubic-bezier(.2, 1.3, .4, 1); pointer-events: none; }
.toast.side.out { transform: translateX(10px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.9); } }
@keyframes sideIn { from { opacity: 0; transform: translateX(14px) scale(.94); } }
.toast.level-card { padding: 10px 20px 10px 12px; gap: 12px; background: linear-gradient(135deg, #2a1663, #6c3bff 55%, #ff3d7f); color: #fff; border: 0; box-shadow: 0 16px 38px rgba(80, 30, 180, .45); animation: lvlIn .55s cubic-bezier(.2, 1.5, .4, 1); }
.lc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lc-txt b { font-size: 19px; font-weight: 900; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-txt b em { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 8px; background: rgba(255, 255, 255, .22); }
.lc-txt span { font-size: 13px; font-weight: 800; opacity: .93; }
@keyframes lvlIn { from { opacity: 0; transform: translateY(-20px) scale(.8); } }
#conn-state { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 70; padding: 8px 16px; border-radius: 12px; background: #1b1340; color: #fff; font-weight: 800; font-size: 13px; }

/* ---------- MODALLAR ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(15, 8, 40, .55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .15s ease; backdrop-filter: blur(2px); }
.modal-back.closing { animation: fadeOut .15s ease forwards; pointer-events: none; }
.modal-back.closing .modal { animation: popOut .15s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: min(calc(86 * var(--vh)), 760px); max-height: min(calc(86 * var(--vh)), 760px); display: flex; flex-direction: column; background: var(--panel); border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); border: 1px solid var(--line); animation: popIn .22s cubic-bezier(.2, 1.3, .4, 1); overflow: hidden; }
.modal.pop-origin { animation: popOrigin .34s cubic-bezier(.18, 1.2, .34, 1); }
.modal.wide { width: min(880px, 100%); }
.modal.mid { width: min(640px, 100%); }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(10px); } }
@keyframes popOrigin { from { opacity: 0; transform: scale(.3); filter: blur(3px); } 60% { opacity: 1; } }
@keyframes popOut { to { opacity: 0; transform: scale(.96); } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; flex-wrap: wrap; }
.modal-head h2 { margin: 0; font-size: 21px; font-weight: 900; flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.modal-head h2 .ic { color: var(--brand); width: 22px; height: 22px; }
body.dark .modal-head h2 .ic { color: #b9a2ff; }
.mh-sub { font-size: 12px; font-weight: 800; color: var(--ink-3); margin-left: 2px; align-self: center; }
.modal-x { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); background: var(--panel-2); flex: none; }
.modal-x:hover { color: var(--err); }
.modal-body { padding: 4px 18px 18px; overflow: auto; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 800; font-size: 13px; }
.tabs { display: flex; gap: 6px; padding: 0 18px 10px; flex-wrap: wrap; }
.tab { height: 36px; padding: 0 14px; border-radius: 11px; font-weight: 900; font-size: 13.5px; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; }
.tab .ic { width: 16px; height: 16px; }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { height: 28px; padding: 0 11px; border-radius: 9px; font-size: 12px; font-weight: 900; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); }
.chip.active { background: var(--ink); color: var(--panel); }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); gap: 2px; }
.seg button { height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; font-weight: 900; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 4px rgba(27, 19, 64, .16); }
body.dark .seg button.on { background: var(--panel-3); }
.badge-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand-2); color: #fff; font-size: 11px; font-weight: 900; font-style: normal; display: inline-grid; place-items: center; line-height: 1; }
.info-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--line); margin-bottom: 14px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); line-height: 1.45; }
.info-box > .ic { width: 22px; height: 22px; color: var(--brand); }
.info-box > span { flex: 1; min-width: 0; }
.info-box b { color: var(--ink); }
.info-box .btn { flex: none; }
body.dark .info-box > .ic { color: #b9a2ff; }

.btn { height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 900; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: transform .12s, filter .12s, background .15s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn .ic { width: 17px; height: 17px; }
.btn.primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(108, 59, 255, .3); }
.btn.green { background: linear-gradient(135deg, #12b76a, #0bb39f); color: #fff; border: 0; }
.btn.danger { background: var(--err); color: #fff; border: 0; }
.btn.ghost { background: transparent; }
.btn.small { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn.small .ic { width: 15px; height: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn .coin-ic { width: 16px; height: 16px; }
.shake { animation: shake .42s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

.form { display: flex; flex-direction: column; gap: 10px; }
.form label { font-size: 12.5px; font-weight: 900; color: var(--ink-2); display: flex; flex-direction: column; gap: 5px; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 800; line-height: 1.4; }
.form input, .form select, .form textarea, .inp { height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel-2); padding: 0 12px; font-weight: 700; outline: none; font-size: 15px; color: var(--ink); }
.form input:focus, .inp:focus { border-color: var(--brand); }
.form .err, .err-msg { color: var(--err); font-weight: 800; font-size: 13px; min-height: 18px; }
.form .note { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.invite-banner { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.invite-banner b { color: var(--ink); font-size: 14px; }

/* giriş / kayıt penceresi */
.modal.auth-modal { width: min(430px, 100%); position: relative; }
.auth-modal .modal-head { position: absolute; top: 0; right: 0; z-index: 3; padding: 12px; }
.auth-modal .modal-head h2 { display: none; }
.auth-modal .modal-x { background: rgba(255, 255, 255, .55); }
body.dark .auth-modal .modal-x { background: rgba(255, 255, 255, .08); }
.auth-modal .modal-body { padding: 0; }
.au-hero { position: relative; overflow: hidden; padding: 28px 24px 18px; text-align: center;
  background: radial-gradient(90% 120% at 0% 0%, rgba(108, 59, 255, .2), transparent 60%), radial-gradient(80% 120% at 100% 0%, rgba(255, 61, 127, .18), transparent 60%), var(--panel); }
.au-hero::before, .au-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; animation: commFloat 7s ease-in-out infinite; }
.au-hero::before { width: 110px; height: 110px; left: -38px; top: -46px; background: var(--grad); opacity: .2; }
.au-hero::after { width: 26px; height: 26px; right: 70px; top: 18px; background: var(--brand-2); opacity: .25; animation-duration: 5s; animation-direction: reverse; }
.au-logo { position: relative; height: 46px; width: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(108, 59, 255, .25)); }
.au-logo.dk, body.dark .au-logo.lt { display: none; }
body.dark .au-logo.dk { display: block; }
.au-sub { position: relative; margin: 10px 0 0; font-size: 13.5px; font-weight: 800; color: var(--ink-2); line-height: 1.4; }
.au-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 24px; padding: 4px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.au-seg > i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--grad); box-shadow: 0 6px 16px -6px rgba(108, 59, 255, .7); transition: transform .3s cubic-bezier(.2, 1.2, .4, 1); }
.au-seg.reg > i { transform: translateX(100%); }
.au-seg button { position: relative; z-index: 1; height: 38px; border-radius: 10px; font-size: 14px; font-weight: 900; color: var(--ink-2); transition: color .2s; }
.au-seg button.on { color: #fff; }
.au-body { padding: 16px 24px 20px; }
.au-form { display: flex; flex-direction: column; gap: 11px; animation: tipIn .3s ease; }
.au-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.au-l { font-size: 12.5px; font-weight: 900; color: var(--ink-2); }
.au-in { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 6px 0 13px; border-radius: 13px; border: 2px solid var(--line); background: var(--panel-2); transition: border-color .15s, background .15s, box-shadow .15s; cursor: text; }
.au-in:focus-within { border-color: var(--brand); background: var(--panel); box-shadow: 0 0 0 4px rgba(108, 59, 255, .12); }
.au-in > .ic { width: 18px; height: 18px; color: var(--ink-3); transition: color .15s; }
.au-in:focus-within > .ic { color: var(--brand); }
body.dark .au-in:focus-within > .ic { color: #b9a2ff; }
.au-in input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: none; font-size: 15px; font-weight: 700; color: var(--ink); }
.au-in input::placeholder { color: var(--ink-3); font-weight: 700; opacity: .8; }
.au-eye { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); transition: color .15s, background .15s; }
.au-eye .ic { width: 18px; height: 18px; }
.au-eye:hover { color: var(--brand); background: var(--panel-3); }
.au-eye.on { color: var(--brand); }
body.dark .au-eye:hover, body.dark .au-eye.on { color: #c9b6ff; }
.au-note { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.au-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* hediye kutucukları içeriğine göre genişler (uzun "Seviye ödülleri" sığar); yalnızca doğrudan çocuklar kutucuk, içteki coin simgesi değil */
.au-perks { display: flex; flex-wrap: wrap; gap: 6px; }
.au-perks > span { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 9px; border-radius: 11px; background: var(--grad-soft); border: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.au-perks .ic { width: 16px; height: 16px; color: var(--brand); }
body.dark .au-perks .ic { color: #b9a2ff; }
.au-perks .coin-ic { width: 17px; height: 17px; }
.au-perks b { font-weight: 900; }
.au-check { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.au-check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 7px; border: 2px solid var(--line); background: var(--panel-2) center / 13px no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s; }
.au-check input:checked { border-color: transparent; background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.au-check input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.au-check a { font-weight: 900; }
.au-form .err { color: var(--err); font-weight: 800; font-size: 13px; min-height: 18px; margin: -2px 0 -4px; }
.au-go { height: 48px; font-size: 16px; border-radius: 14px; }
.au-go .ic { width: 18px; height: 18px; }
.au-switch { margin: 2px 0 0; text-align: center; font-size: 13px; font-weight: 800; color: var(--ink-3); }
.au-switch button { font-weight: 900; color: var(--brand); }
.au-switch button:hover { text-decoration: underline; }
body.dark .au-switch button { color: #c9b6ff; }

/* onay penceresi: kısa, ortalı, düğmeler normal boyda */
.modal.confirm { width: min(380px, 100%); border-radius: 20px; }
.confirm .modal-body { padding: 22px 22px 18px; }
.cf { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cf-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 10px; background: var(--grad-soft); color: var(--brand); }
.cf-ic .ic { width: 26px; height: 26px; }
.cf-ic.warn { background: rgba(247, 144, 9, .15); color: var(--warn); }
.cf-ic.coin { background: rgba(255, 184, 0, .16); }
.cf-ic .coin-ic { width: 30px; height: 30px; }
.cf-title { font-size: 18px; font-weight: 900; }
.cf-text { margin: 6px 0 14px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); font-weight: 700; }
.cf-cost { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 900; margin: -4px 0 14px; }
.cf-cost b { font-size: 16px; }
.cf-cost small { color: var(--ink-3); font-weight: 800; }
.cf-btns { display: flex; gap: 8px; width: 100%; }
.cf-btns .btn { flex: 1; height: 40px; font-size: 14.5px; }

/* skin kartları */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.card { border-radius: 16px; background: var(--panel-2); border: 2px solid var(--line); padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; transition: transform .12s, border-color .15s; }
.card .sk { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); background: var(--panel-3); }
.card .sk.none .ic { width: 46px; height: 46px; }
.card .nm { font-weight: 900; font-size: 13.5px; }
.card .rar { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; padding: 2px 7px; border-radius: 6px; color: #fff; }
.rar { display: inline-block; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; padding: 2px 7px; border-radius: 6px; color: #fff; }
.rar.common { background: #8c98a8; } .rar.rare { background: #2f80ff; } .rar.epic { background: #9b3bff; } .rar.legendary { background: linear-gradient(135deg, #ffb800, #ff6a00); }
.card.r-legendary { border-color: #ffb800; } .card.r-epic { border-color: #b98bff; }
.rar.premium { background: linear-gradient(90deg, #6c3bff, #22d3ff, #ff3d7f, #6c3bff); background-size: 300% 100%; animation: shimmer 4s linear infinite; }
.card.r-premium { border-color: transparent; background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, linear-gradient(135deg, #6c3bff, #22d3ff, #ff3d7f) border-box; box-shadow: 0 8px 26px rgba(108, 59, 255, .28); }
/* Millî (Ay Yıldız): bayrak kırmızısı çerçeve ve ışıltı — en üst kategori */
.rar.milli { background: linear-gradient(90deg, #c8000f, #ff3b44, #c8000f); background-size: 200% 100%; animation: shimmer 3.2s linear infinite; box-shadow: 0 2px 8px rgba(227, 10, 23, .35); }
.card.r-milli { border-color: transparent; background: radial-gradient(circle at 50% 30%, rgba(227, 10, 23, .12), transparent 70%), linear-gradient(var(--panel-2), var(--panel-2)) padding-box, linear-gradient(135deg, #e30a17, #ff6b72, #e30a17) border-box; box-shadow: 0 8px 26px rgba(227, 10, 23, .25); }
.r-milli { --pc: #e30a17; --pc-soft: rgba(227, 10, 23, .18); }
.card .sk.fxc { width: 112px; height: 112px; margin: -14px 0; border-radius: 0; box-shadow: none; background: none; }
.fx-note { font-size: 10.5px; font-weight: 800; color: var(--brand); margin-top: -2px; }
body.dark .fx-note { color: #c9b6ff; }
@keyframes shimmer { to { background-position: 300% 0; } }
.card .price { display: flex; align-items: center; gap: 5px; font-weight: 900; font-size: 14px; }
.card .price .ic { width: 15px; height: 15px; }
.card .btn { width: 100%; }
.card.owned::before { content: '✓'; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.card.equipped { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108, 59, 255, .2); }
.card.pick { cursor: pointer; }
/* market skin kartları sabit boyutta: en uzun kart (efektli premium) kadar baştan yer ayrılır; filtre değişince
   (Tümü ↔ Millî…) hiçbir kart uzayıp kısalmaz. Fiyat ve düğme her kartta en altta hizalı durur. */
.shop-skins .card { height: 244px; }
.shop-skins .card .nm { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-skins .card .price { margin-top: auto; }
.card.pick:hover { transform: translateY(-2px); border-color: var(--brand); }
.card.lvl .rar::after { content: ' · seviye'; }
html[lang="en"] .card.lvl .rar::after { content: ' · level'; }
.lv-tag { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 6px; background: var(--ink); color: var(--panel); }
.eq-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 900; color: var(--brand); }
.eq-tag .ic { width: 14px; height: 14px; }
body.dark .eq-tag { color: #c9b6ff; }
.sk-group + .sk-group { margin-top: 16px; }
.sk-group h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.sk-group h4 small { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.sk-group h4 .rar { font-size: 11px; padding: 3px 9px; }

/* ---------- MARKET (sepet) ---------- */
.modal.shop-modal { height: min(calc(86 * var(--vh)), 760px); }
.shop-modal .modal-body { padding: 0; overflow: hidden; display: flex; flex: 1; min-height: 0; }
.shop-headx { display: flex; align-items: center; gap: 8px; }
.shop-bal { flex: none; height: 34px; padding: 0 6px 0 8px; }
.cart-toggle { display: none; position: relative; width: 38px; height: 36px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); place-items: center; }
.cart-toggle .cnt { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--brand-2); color: #fff; font-size: 10.5px; font-weight: 900; font-style: normal; display: none; place-items: center; }
.cart-toggle.has .cnt { display: grid; }
.shop-layout { display: flex; flex: 1; min-height: 0; width: 100%; }
/* kaydırma çubuğunun yeri her zaman ayrılır: çubuk gelip gidince kutular ve kartlar genişleyip daralmaz */
.shop-main { flex: 1; min-width: 0; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; padding: 4px 8px 18px 18px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.prod { position: relative; display: flex; flex-direction: column; padding: 10px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); transition: transform .15s, box-shadow .2s, border-color .15s; }
.prod:hover { transform: translateY(-2px); border-color: var(--pc, var(--brand)); box-shadow: 0 12px 26px -14px var(--pc, var(--brand)); }
/* görsel üstte, süre rozeti altta kendi şeridinde: rozet görselin üstüne binmez */
.prod-art { position: relative; height: 136px; padding-bottom: 30px; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, var(--pc-soft, rgba(108, 59, 255, .2)), transparent 70%), var(--panel); margin-bottom: 9px; overflow: hidden; }
.prod.pack .prod-art { height: 108px; padding-bottom: 0; background: radial-gradient(circle at 50% 56%, var(--pc-soft), transparent 70%), var(--panel); }
.prod-art .it-art { width: 80px; height: 80px; animation: floaty 3.4s ease-in-out infinite; }
.prod-art .p-art { width: 64px; height: 76px; animation: floaty 3.4s ease-in-out infinite; filter: drop-shadow(0 6px 10px var(--pc-soft)); }
.prod:hover .prod-art .it-art img, .prod:hover .prod-art .p-art svg { transform: scale(1.07); }
.prod-art svg, .prod-art img { transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes floaty { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-4px); } }
.it-art { position: relative; display: block; flex: none; }
.it-art svg, .it-art img { width: 100%; height: 100%; overflow: visible; display: block; }
img { -webkit-user-drag: none; }
.prod-badge { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px 0 6px; border-radius: 8px; background: rgba(20, 14, 48, .78); color: #fff; font-size: 10.5px; font-weight: 900; }
.prod-badge .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.prod-nm { font-size: 14.5px; font-weight: 900; display: flex; align-items: center; gap: 5px; }
.prod-desc { margin: 3px 0 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1.35; min-height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* fiyat üstte, düğme altta tam genişlik: dar kartta da "Sepete ekle" / "Sepette 3" kutudan taşmaz */
.prod-foot { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
.prod-foot .btn { width: 100%; min-width: 0; }
.prod-foot .price { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; font-size: 15px; white-space: nowrap; }
.prod-foot .price.tl { font-size: 15.5px; }
.b-xp2 { --pc: #7c4dff; --pc-soft: rgba(124, 77, 255, .24); } .b-xp3 { --pc: #c084fc; --pc-soft: rgba(255, 196, 60, .26); }
.b-mass2, .b-mass3 { --pc: #ff3d7f; --pc-soft: rgba(255, 61, 127, .22); } .b-coin2 { --pc: #ffb800; --pc-soft: rgba(255, 184, 0, .26); }
.prod.pack { --pc: #ffb800; --pc-soft: rgba(255, 184, 0, .24); }
.prod.pack .tag { position: absolute; top: -8px; right: 10px; z-index: 2; font-size: 10.5px; font-weight: 900; padding: 2px 8px; border-radius: 7px; background: var(--tr-red); color: #fff; }
.prod.pack .prod-nm { font-size: 17px; }
.prod.pack .prod-nm span { font-size: 12px; color: var(--ink-3); }
.add-cart { flex: none; }
.add-cart.in { background: var(--grad-soft); color: var(--brand); border-color: var(--brand); }
body.dark .add-cart.in { color: #d4c6ff; border-color: #8f6bff; }
.add-cart.pop { animation: addPop .38s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes addPop { 40% { transform: scale(1.12); } }
.active-boosts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ab { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 10px; background: var(--grad-soft); font-weight: 900; font-size: 12.5px; color: var(--brand); font-variant-numeric: tabular-nums; }
.ab .ic { width: 14px; height: 14px; }
body.dark .ab { color: #d4c6ff; }
.cart-panel { width: 288px; flex: none; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--panel-2); min-height: 0; }
.cart-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.cart-head b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 900; }
.cart-head b .ic { width: 18px; height: 18px; color: var(--brand); }
.cart-head .cnt { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.link-x { margin-left: auto; font-size: 12px; font-weight: 900; color: var(--ink-3); }
.link-x:hover { color: var(--err); }
.link-x.coins { margin: 0 auto; color: var(--brand); }
.cart-list { flex: 1; overflow-y: auto; scrollbar-gutter: stable; padding: 4px 2px 10px 10px; min-height: 0; }
/* sepet boşken kaydırma çubuğu çıkmaz; ürün eklenip liste dolunca kaydırma açılır */
.cart-list.empty { overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.cart-line { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "art main x" "art step sum"; gap: 5px 9px; align-items: center; padding: 9px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 6px; animation: cmIn .2s ease; }
.cart-line .cl-art { grid-area: art; width: 40px; height: 40px; align-self: center; }
.cart-line img.cl-art, .cart-line canvas.cl-art { border-radius: 50%; object-fit: cover; }
.cart-line .p-art.cl-art { width: 34px; height: 40px; }
.cl-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; }
.cl-main b { font-size: 13px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-main small { display: flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; color: var(--ink-3); white-space: nowrap; }
.cl-main small .coin-ic { width: 12px; height: 12px; }
.stepper, .cl-one { grid-area: step; }
.stepper { display: inline-flex; align-items: center; justify-self: start; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; height: 26px; background: var(--panel-2); }
.stepper button { width: 26px; height: 26px; display: grid; place-items: center; color: var(--ink-2); }
.stepper button:hover:not(:disabled) { background: var(--grad-soft); color: var(--brand); }
.stepper button .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.stepper span { min-width: 26px; text-align: center; font-weight: 900; font-size: 13px; font-variant-numeric: tabular-nums; }
.cl-one { font-size: 11px; font-weight: 800; color: var(--ink-3); }
.cl-sum { grid-area: sum; justify-self: end; font-size: 13.5px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cl-x { grid-area: x; justify-self: end; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--ink-3); }
.cl-x:hover { color: var(--err); background: rgba(240, 68, 56, .1); }
.cl-x .ic { width: 14px; height: 14px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 14px; min-height: 0; color: var(--ink-3); font-size: 12.5px; font-weight: 700; }
.cart-empty .ic { width: 38px; height: 38px; color: var(--brand); opacity: .45; }
.cart-empty b { color: var(--ink); font-size: 14.5px; }
.cart-foot { padding: 12px 14px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; background: var(--panel); }
.cf-row { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 15.5px; }
.cf-row b { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.cf-row.sm { font-size: 12.5px; color: var(--ink-2); font-weight: 800; }
.cf-row.bad { color: var(--err); }
.buy-btn { height: 44px; font-size: 15.5px; margin-top: 4px; }
.buy-btn.short { filter: saturate(.75); }
.cart-confirm { display: flex; flex-direction: column; gap: 8px; padding: 10px; margin-top: 4px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--brand); font-size: 13px; font-weight: 800; text-align: center; animation: popIn .2s ease; }
.cart-confirm b { font-size: 15px; }
.cc-btns { display: flex; gap: 6px; }
.cc-btns .btn { flex: 1; }
.cart-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px; margin-bottom: 4px; border-radius: 12px; background: rgba(18, 183, 106, .1); border: 1px solid rgba(18, 183, 106, .45); font-size: 12px; font-weight: 700; color: var(--ink-2); animation: popIn .25s ease; }
.cart-done > .ic { width: 26px; height: 26px; color: var(--ok); stroke-width: 2.6; }
.cart-done b { color: var(--ok); font-size: 14px; }
.cd-btns { display: flex; gap: 6px; margin-top: 4px; }

/* envanter */
.inv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.slot { position: relative; min-height: 158px; border-radius: 14px; border: 2px dashed var(--line); background: var(--panel-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 6px 7px; text-align: center; }
.slot.full { border-style: solid; border-color: var(--pc, var(--line)); background: radial-gradient(circle at 50% 32%, var(--pc-soft, transparent), transparent 70%), var(--panel-2); }
.slot .it-art { width: 54px; height: 54px; }
.slot .p-art { width: 44px; height: 52px; }
.slot b { font-size: 12px; font-weight: 900; line-height: 1.15; }
.slot small { font-size: 10.5px; color: var(--ink-3); font-weight: 800; }
.slot .qty { position: absolute; top: 6px; right: 8px; font-size: 12.5px; font-weight: 900; color: var(--brand); }
body.dark .slot .qty { color: #c9b6ff; }
.slot .btn { margin-top: auto; width: 100%; height: 28px; font-size: 11.5px; padding: 0 6px; }
.slot.locked { color: var(--ink-3); opacity: .8; border-style: solid; background: repeating-linear-gradient(135deg, var(--panel-2) 0 8px, transparent 8px 16px); }
.slot.locked .ic { width: 22px; height: 22px; }
.slot.locked span, .slot.empty span { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.inv-foot { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.inv-foot .ic { width: 16px; height: 16px; color: var(--brand); }

/* ---------- SEVİYE YOLU ---------- */
.modal.lr-modal { height: min(calc(86 * var(--vh)), 760px); }
.lr-modal .modal-body { display: flex; flex-direction: column; overflow: hidden; flex: 1; min-height: 0; padding-bottom: 0; }
.lr { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.lr-head { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border-radius: 18px; background: radial-gradient(circle at 44px 50%, var(--st-g), transparent 170px), var(--panel-2); border: 1px solid var(--line); }
.lr-hmain { flex: 1; min-width: 0; }
.lr-lv { font-size: 20px; font-weight: 900; display: flex; align-items: baseline; gap: 8px; }
.lr-lv span { font-size: 13px; color: var(--st-c); font-weight: 900; }
.lr-hmain .xpbar { margin: 6px 0 5px; }
.lr-hmain small { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.lr-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.45; font-weight: 700; color: var(--ink-2); margin: 10px 2px; }
.lr-note .ic { width: 16px; height: 16px; color: var(--brand); margin-top: 1px; }
.lr-list { position: relative; flex: 1; overflow-y: auto; min-height: 0; padding: 2px 6px 16px 2px; }
.lr-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; margin-bottom: 5px; background: var(--panel-2); border: 1px solid var(--line); }
.lr-row.done { opacity: .6; }
.lr-row.cur { opacity: 1; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108, 59, 255, .18); background: var(--grad-soft); }
.lr-row.tier { padding: 10px; background: radial-gradient(circle at 34px 50%, var(--st-g), transparent 150px), var(--panel-2); border-color: var(--st-c); }
.lr-row.tier.done { opacity: .75; }
.lr-star { width: 48px; display: grid; place-items: center; flex: none; }
.lr-main { flex: 1; min-width: 0; }
.lr-tier { display: block; font-size: 13.5px; font-weight: 900; color: var(--st-c); margin-bottom: 5px; }
.lr-rw { display: flex; flex-wrap: wrap; gap: 5px; }
.rw { display: inline-flex; align-items: center; gap: 5px; height: 27px; padding: 0 9px 0 5px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; font-weight: 800; white-space: nowrap; }
.rw.coin { font-weight: 900; }
.rw .coin-ic { width: 17px; height: 17px; }
.rw .it-art { width: 21px; height: 21px; }
.rw .p-art { width: 17px; height: 21px; }
.rw-sk { width: 21px; height: 21px; border-radius: 50%; object-fit: cover; }
.rw .ic { width: 16px; height: 16px; color: var(--brand); }
.rw-slot .ic { color: #0e9f96; }
.rw.muted { color: var(--ink-3); }
.lr-row .st { flex: none; font-size: 11.5px; font-weight: 900; color: var(--ink-3); min-width: 56px; text-align: right; font-variant-numeric: tabular-nums; }
.lr-row .st.cur { color: var(--brand); }
.lr-row .st.done .ic { color: var(--ok); width: 18px; height: 18px; stroke-width: 2.6; }

/* ---------- SIRALAMA ---------- */
.modal.lb-modal { height: min(calc(88 * var(--vh)), 780px); }
.lb-modal .modal-body { display: flex; flex-direction: column; overflow: hidden; flex: 1; min-height: 0; }
.lb-wrap { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.lb-side, .lb-main { display: contents; }
.lb-wrap .lb-rules { order: 1; }
.lb-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lbm { height: 54px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 900; color: var(--ink-2); transition: transform .12s, color .15s; }
.lbm:hover { transform: translateY(-1px); color: var(--ink); }
.lbm .ic { width: 19px; height: 19px; }
.lbm.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(108, 59, 255, .3); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; margin: 14px 8px 8px; height: 222px; flex: none; }
.pd { display: flex; flex-direction: column; align-items: center; min-width: 0; position: relative; }
.pd1 { --ring: linear-gradient(135deg, #ffe27a, #f5b400); --glow: rgba(245, 180, 0, .55); --base: linear-gradient(#ffd75e, #eea200); --bh: 76px; }
.pd2 { --ring: linear-gradient(135deg, #f4f6fb, #a9b2c4); --glow: rgba(150, 160, 185, .5); --base: linear-gradient(#e7ebf3, #b2bacb); --bh: 56px; }
.pd3 { --ring: linear-gradient(135deg, #ffd0a8, #d9853b); --glow: rgba(217, 133, 59, .5); --base: linear-gradient(#f6c08f, #cf7b33); --bh: 42px; }
.pd-crown { position: absolute; top: -26px; color: #f5b400; animation: pBob 2.4s ease-in-out infinite; }
.pd-crown .ic { width: 28px; height: 28px; fill: #ffd23f; stroke: #c98a00; }
/* skin üstüne gelince ana menüdeki skin düğmesiyle aynı efekt: hafif büyür, çevresi marka rengiyle parlar */
.pd-av { border-radius: 50%; padding: 3px; background: var(--ring); box-shadow: 0 8px 22px -6px var(--glow); }
.pd-av .av { width: 58px; height: 58px; display: block; border-radius: 50%; object-fit: cover; }
.pd1 .pd-av .av { width: 76px; height: 76px; }
/* sıralama avatarları: dıştaki halka ve iç çerçeve yerinde sabit kalır; üstüne gelince yalnızca içindeki skin %5 büyür.
   İç çerçeve resmin üstüne çizilen bir halkadır (büyüyen resim onu örtemez), clip-path resmi çemberin dışına taşırmaz. */
.av-clip { position: relative; display: block; flex: none; border-radius: 50%; overflow: hidden; clip-path: circle(50%); }
.av-clip > img.av, .av-clip > canvas.av { display: block; }
.av-clip > .av { transition: transform .2s ease; }
.pd-av .av-clip::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--panel); pointer-events: none; }
button.pd-av:hover .av-clip > .av, .lb-r:hover .av-clip > .av { transform: scale(1.05); }
.pd-nm { margin-top: 7px; display: block; max-width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 900; font-size: 13.5px; }
.pd-nm .mini-star { margin-right: 4px; }
.pd-nm:hover span { color: var(--brand); }
.pd-v { min-height: 18px; font-size: 12.5px; font-weight: 900; color: var(--brand); margin: 2px 0 6px; white-space: nowrap; }
body.dark .pd-v { color: #c9b6ff; }
.pd-base { width: 100%; height: var(--bh); border-radius: 12px 12px 5px 5px; background: var(--base); display: grid; place-items: center; font-size: 24px; font-weight: 900; color: rgba(40, 20, 0, .42); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12), 0 8px 18px -10px var(--glow); }
.pd.empty { opacity: .45; }
.pd.me .pd-nm span { color: var(--brand-2); }
.lb-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; margin: 2px -10px 0 0; }
.lb-r { display: flex; align-items: center; gap: 9px; width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; text-align: left; font-weight: 800; font-size: 14px; }
.lb-r:nth-child(odd) { background: var(--panel-2); }
.lb-r:hover { background: var(--grad-soft); }
.lb-r.me { background: var(--grad-soft); box-shadow: inset 3px 0 0 var(--brand); }
.lb-r .rk { width: 28px; text-align: center; color: var(--ink-3); font-weight: 900; font-size: 13px; font-variant-numeric: tabular-nums; }
.lb-r .av { width: 26px; height: 26px; }
.lb-r .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-r .v { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lb-empty { text-align: center; padding: 18px 10px; font-weight: 700; }
.lb-mine { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px; margin-top: 6px; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 900; flex: none; }
.lb-mine .rk { min-width: 38px; }
.lb-mine .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-mine .av { width: 26px; height: 26px; }
.lb-mine .mini-star b { color: #fff; }
.lb-rules { flex: none; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.4; font-weight: 700; color: var(--ink-2); }
.lb-rules > div { display: flex; gap: 8px; align-items: flex-start; }
.lb-rules .ic { width: 16px; height: 16px; color: var(--brand); margin-top: 1px; }
.lb-rules b { color: var(--ink); }

/* ---------- GÖREVLER ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.qrow { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--panel-2); border: 2px solid var(--line); }
.qrow.done { border-color: var(--ok); }
.qrow.claimed { opacity: .7; }
.qrow .q-ico { width: 44px; height: 44px; border-radius: 13px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.qrow.done .q-ico { background: linear-gradient(135deg, #12b76a, #0bb39f); }
.qrow .q-main { flex: 1; min-width: 0; }
.qrow .q-main > b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; margin: 6px 0 3px; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 5px; }
.qrow.done .progress i { background: linear-gradient(90deg, #12b76a, #0bb39f); }
.qrow small { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 800; }
.qrow .q-note { color: var(--warn); margin-top: 2px; }
.q-claim { flex: none; }
.q-done { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 900; color: var(--ok); flex: none; }
.q-done .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.q-prog { flex: none; font-size: 13px; font-weight: 900; color: var(--ink-3); min-width: 40px; text-align: right; }
.q-reset { text-align: center; font-weight: 800; font-size: 12.5px; color: var(--ink-3); margin: 4px 0 0; font-variant-numeric: tabular-nums; }

/* ---------- AYARLAR ---------- */
.modal.set-modal { width: min(780px, 100%); height: min(calc(86 * var(--vh)), 640px); }
.set-modal .modal-body { display: flex; flex: 1; min-height: 0; overflow: hidden; padding: 0; }
.settings { display: flex; flex: 1; min-height: 0; }
.set-side { width: 210px; flex: none; padding: 4px 12px 16px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.set-search { height: 38px; width: 100%; border-radius: 11px; border: 2px solid var(--line); background: var(--panel-2); padding: 0 12px; font-weight: 800; outline: none; font-size: 13.5px; }
.set-search:focus { border-color: var(--brand); }
.set-nav { display: flex; flex-direction: column; gap: 3px; }
.sn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 11px; font-weight: 900; font-size: 14px; color: var(--ink-2); text-align: left; transition: background .12s, color .12s; }
.sn .ic { width: 18px; height: 18px; }
.sn:hover { background: var(--panel-2); color: var(--ink); }
.sn.on { background: var(--grad-soft); color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
body.dark .sn.on { color: #d4c6ff; }
.set-side .btn.ghost { margin-top: auto; justify-content: flex-start; }
.set-main { flex: 1; min-width: 0; overflow-y: auto; scrollbar-gutter: stable; padding: 4px 8px 18px 16px; }
.set-head { margin: 4px 0 10px; min-height: 22px; }
.set-head b { font-size: 16px; font-weight: 900; display: flex; flex-direction: column; gap: 3px; }
.set-head small { font-size: 12px; color: var(--brand); font-weight: 800; }
body.dark .set-head small { color: #c9b6ff; }
.set-sub { margin: 16px 0 7px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); }
.set-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); margin-bottom: 6px; font-weight: 800; font-size: 14px; }
.set-row .sr-l { flex: 1; min-width: 0; }
.set-row small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 700; margin-top: 1px; }
.set-empty { text-align: center; padding: 20px; font-weight: 700; }
.switch { width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(18px); }
/* açılır liste (Ayarlar > Görüntü > Grafik kalitesi) */
.dd { position: relative; flex: none; }
.dd-btn { height: 34px; min-width: 136px; display: flex; align-items: center; gap: 8px; padding: 0 7px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 800; font-size: 13.5px; transition: border-color .15s, box-shadow .15s; }
.dd-btn:hover, .dd.open .dd-btn { border-color: var(--brand); }
.dd.open .dd-btn, .dd-btn:focus-visible { box-shadow: 0 0 0 3px rgba(108, 59, 255, .18); outline: none; }
.dd-v { flex: 1; text-align: left; white-space: nowrap; }
.dd-ar { width: 16px; height: 16px; color: var(--ink-3); stroke-width: 2.4; transition: transform .22s cubic-bezier(.2, 1.2, .4, 1), color .15s; }
.dd.open .dd-ar { transform: rotate(180deg); color: var(--brand); }
.dd-list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; min-width: 100%; padding: 5px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px) scale(.97); transform-origin: top right;
  transition: opacity .14s ease, transform .16s ease, visibility 0s linear .16s; }
.dd.up .dd-list { top: auto; bottom: calc(100% + 6px); transform-origin: bottom right; transform: translateY(6px) scale(.97); }
.dd.open .dd-list { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .16s ease, transform .22s cubic-bezier(.2, 1.3, .4, 1), visibility 0s; }
.dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; padding: 0 10px; border-radius: 8px; font-weight: 800; font-size: 13.5px; color: var(--ink-2); text-align: left; white-space: nowrap; transition: background .12s, color .12s; }
.dd-opt.hi { background: var(--panel-2); color: var(--ink); }
.dd-opt.on { color: var(--brand); }
body.dark .dd-opt.on, body.dark .dd.open .dd-ar { color: #c9b6ff; }
.dd-ck { width: 15px; height: 15px; stroke-width: 2.6; opacity: 0; }
.dd-opt.on .dd-ck { opacity: 1; }
.vol { display: inline-flex; align-items: center; gap: 8px; }
.set-range { width: 150px; accent-color: var(--brand); cursor: pointer; flex: none; }
.set-range-val { min-width: 40px; text-align: right; font-size: 12.5px; color: var(--ink-2); }
.keybtn { min-width: 74px; height: 32px; border-radius: 9px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--panel); font-weight: 900; font-size: 12.5px; padding: 0 10px; }
.keybtn:hover { border-color: var(--brand); }
.keybtn.wait { border-color: var(--brand); color: var(--brand); animation: pulse 1s infinite; }
.sync-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(18, 183, 106, .14); color: var(--ok); flex: none; }
.sync-ic.off { background: var(--panel-3); color: var(--ink-3); }
.sync-ic .ic { width: 17px; height: 17px; stroke-width: 2.6; }

/* ---------- ÖLÜM EKRANI ---------- */
.death-top { text-align: center; margin-bottom: 14px; }
.death-top .big { font-size: 30px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.death-top p { margin: 4px 0 0; color: var(--ink-2); font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 12px 8px; border-radius: 14px; background: var(--panel-2); text-align: center; }
.stat b { display: block; font-size: 20px; font-weight: 900; }
.stat span { font-size: 11px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; }
.reward-line { margin: 14px 0; padding: 12px; border-radius: 14px; background: var(--grad-soft); text-align: center; font-weight: 900; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.reward-line .rv { display: inline-flex; align-items: center; gap: 7px; font-size: 19px; font-variant-numeric: tabular-nums; }
.reward-line .rv .coin-ic { width: 22px; height: 22px; }
.reward-line .rv .xp-ic { height: 22px; }
.rv-note { width: 100%; font-size: 13px; color: var(--brand); }
body.dark .rv-note { color: #c9b6ff; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; height: 48px; font-size: 16px; }
/* ölüm penceresinin üstündeki not: pencerenin içinde, onun 6 px üstüne sabitli — pencereyle birlikte açılır ve kayar */
.modal.death { position: relative; overflow: visible; }
.death-note { position: absolute; left: -1px; right: -1px; bottom: calc(100% + 7px); z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; background: linear-gradient(160deg, #0f5c4a, #12876a 60%, #1aa37f); color: #fff; font-weight: 800; font-size: 13.5px; line-height: 1.35; box-shadow: 0 10px 26px rgba(10, 80, 60, .4); }
.death-note .ic { width: 20px; height: 20px; flex: none; }
/* telefon tasarımının parçaları: masaüstünde yerleşime karışmaz */
.death-main, .death-side { display: contents; }
.death-ic, .ds-label { display: none; }

/* ---------- METİN SAYFALARI (Kurallar, Gizlilik, KVKK) ---------- */
.prose { font-size: 14px; line-height: 1.55; color: var(--ink-2); font-weight: 600; }
.prose h4 { color: var(--ink); margin: 14px 0 4px; }
.doc-modal .modal-body { padding-top: 0; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; font-weight: 800; color: var(--ink-3); margin-bottom: 10px; }
.doc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.doc-meta .ic { width: 14px; height: 14px; }
.doc-lead { font-size: 14px; line-height: 1.6; font-weight: 700; color: var(--ink); padding: 12px 14px; border-radius: 14px; background: var(--grad-soft); border-left: 4px solid var(--brand); margin: 0 0 6px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: 0; z-index: 1; padding: 10px 0; background: var(--panel); border-bottom: 1px solid var(--line); }
.doc-toc button { height: 26px; padding: 0 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); font-size: 11.5px; font-weight: 800; color: var(--ink-2); }
.doc-toc button:hover { color: var(--brand); border-color: var(--brand); }
.doc-sec { scroll-margin-top: 60px; }
.doc-sec h4 { margin: 18px 0 6px; font-size: 15px; font-weight: 900; color: var(--ink); }
.doc-sec p, .doc-sec li { font-size: 13.5px; line-height: 1.62; color: var(--ink-2); font-weight: 600; margin: 0; }
.doc-sec ul { margin: 0; padding-left: 20px; }
.doc-sec li + li { margin-top: 5px; }
.doc-sec li::marker { color: var(--brand); }
.doc-foot { margin: 20px 0 0; font-size: 12px; color: var(--ink-3); font-weight: 700; text-align: center; }
.ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ctl h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); }
.ctl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; background: var(--panel-2); margin-bottom: 5px; font-weight: 800; font-size: 13px; }
.ctl-row kbd { flex: none; }
.ctl > .btn { grid-column: span 2; }

/* ---------- SOSYAL: arkadaşlar, özel mesajlar ---------- */
.modal.fr-modal { height: min(calc(86 * var(--vh)), 680px); }
.fr-modal .modal-body { display: flex; flex: 1; min-height: 0; overflow: hidden; padding: 0; }
.fr { display: flex; flex: 1; min-height: 0; width: 100%; }
.fr-side { width: 310px; flex: none; display: flex; flex-direction: column; gap: 10px; padding: 4px 12px 14px 18px; border-right: 1px solid var(--line); min-height: 0; }
/* arkadaş ekle: alan ve düğme tek kutuda */
.fr-add { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 4px 0 11px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel-2); transition: border-color .15s, background .15s; }
.fr-add:focus-within { border-color: var(--brand); background: var(--panel); }
.fr-add-ic { width: 17px; height: 17px; color: var(--ink-3); }
.fr-add:focus-within .fr-add-ic { color: var(--brand); }
.fr-add input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: none; font-weight: 700; font-size: 14px; color: var(--ink); }
.fr-add input::placeholder { color: var(--ink-3); }
.fr-add-btn { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px 0 9px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 900; box-shadow: 0 4px 12px -4px rgba(108, 59, 255, .6); transition: opacity .15s, transform .12s, filter .15s; }
.fr-add-btn .ic { width: 16px; height: 16px; }
.fr-add-btn:hover:not(:disabled) { transform: translateY(-1px); }
.fr-add-btn:disabled { opacity: 1; filter: grayscale(1); background: var(--panel-3); color: var(--ink-3); box-shadow: none; }
.fr-tabs { display: flex; }
.fr-tabs button { flex: 1; justify-content: center; }
.fr-tabs .badge-n { min-width: 18px; height: 18px; font-size: 10.5px; }
.fr-list { flex: 1; overflow-y: auto; scrollbar-gutter: stable; min-height: 0; margin-right: -12px; padding-right: 2px; }
.fr-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; text-align: left; transition: background .12s; }
.fr-row:hover { background: var(--panel-2); }
.fr-row.on { background: var(--grad-soft); box-shadow: inset 3px 0 0 var(--brand); }
.fr-av { position: relative; flex: none; display: block; }
.fr-av .av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.fr-av .st-dot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: #9a94b8; border: 2.5px solid var(--panel); }
.fr-row.online .st-dot, .fr-av.online .st-dot { background: #22c55e; }
.fr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fr-txt b { display: flex; align-items: baseline; gap: 5px; font-size: 14px; font-weight: 900; min-width: 0; }
.fr-txt b span, .fr-txt b .lnk { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-txt small { font-size: 11.5px; font-weight: 800; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-row.online .fr-txt small, .ch-head .fr-av.online + .fr-txt small { color: var(--ok); }
.fr-h { margin: 10px 4px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); }
.fr-acts { display: flex; gap: 5px; flex: none; }
.fr-acts .btn { height: 30px; padding: 0 9px; }
.fr-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 12px; color: var(--ink-3); font-weight: 700; font-size: 13px; line-height: 1.45; }
.fr-empty .ic { width: 36px; height: 36px; color: var(--brand); opacity: .55; }
.fr-empty b { color: var(--ink); font-size: 15px; }
.fr-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.fr-chat-empty { margin: auto; max-width: 340px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; color: var(--ink-3); font-size: 13px; font-weight: 700; line-height: 1.5; padding: 20px; }
.fr-chat-empty .ic { width: 46px; height: 46px; color: var(--brand); opacity: .5; }
.fr-chat-empty b { color: var(--ink); font-size: 16px; }
.ch-head { display: flex; align-items: center; gap: 10px; padding: 4px 16px 12px; border-bottom: 1px solid var(--line); }
.ch-head .fr-txt b { font-size: 15.5px; }
.ch-back { display: none; width: 34px; height: 34px; border-radius: 10px; place-items: center; background: var(--panel-2); flex: none; }
.ch-msgs { flex: 1; overflow-y: auto; scrollbar-gutter: stable; min-height: 0; padding: 12px 6px 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.msg { align-self: flex-start; max-width: 76%; padding: 7px 11px 5px; border-radius: 15px 15px 15px 5px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; font-weight: 700; line-height: 1.4; word-wrap: break-word; animation: cmIn .18s ease; }
.msg.mine { align-self: flex-end; background: var(--grad); color: #fff; border: 0; border-radius: 15px 15px 5px 15px; }
.msg .mt { white-space: pre-wrap; }
.msg small { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 10.5px; font-weight: 800; opacity: .72; margin-top: 2px; }
.msg .rd { display: inline-flex; opacity: .65; }
.msg .rd .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.msg .rd.on { opacity: 1; color: #c6ffe0; }
.ch-day { align-self: center; font-size: 11px; font-weight: 900; color: var(--ink-3); padding: 3px 10px; border-radius: 8px; background: var(--panel-2); margin: 10px 0 4px; }
.ch-more { align-self: center; height: 28px; padding: 0 12px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }
.ch-none { margin: auto; color: var(--ink-3); font-weight: 700; font-size: 13px; }
.ch-send { display: flex; gap: 8px; padding: 10px 16px 16px; border-top: 1px solid var(--line); }
.ch-send .inp { flex: 1; min-width: 0; height: 44px; }
.ch-send .btn { width: 48px; height: 44px; padding: 0; }

/* profil */
.modal.pf-modal { width: min(690px, 100%); }
.pf-hero { display: flex; gap: 18px; padding: 16px; border-radius: 20px; background: radial-gradient(circle at 64px 50%, var(--st-g), transparent 230px), linear-gradient(135deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); }
.pf-av { position: relative; flex: none; width: 98px; height: 98px; }
.pf-sk { width: 98px; height: 98px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); border: 3px solid var(--panel); background: var(--panel-3); }
canvas.pf-sk { border: 0; box-shadow: none; background: none; }
.pf-sk.none { display: grid; place-items: center; color: var(--ink-3); }
.pf-sk.none .ic { width: 50px; height: 50px; }
.pf-av .lvl-star { position: absolute; right: -12px; bottom: -8px; }
.pf-id { flex: 1; min-width: 0; }
.pf-id h3 { margin: 2px 0 0; font-size: 24px; font-weight: 900; display: flex; align-items: center; gap: 8px; min-width: 0; }
.pf-id h3 > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-chip { flex: none; font-size: 10px; font-weight: 900; padding: 3px 7px; border-radius: 6px; color: #fff; letter-spacing: .4px; }
.role-chip.admin { background: var(--tr-red); } .role-chip.mod { background: #2f80ff; } .role-chip.vip { background: linear-gradient(135deg, #ffb800, #ff7a00); color: #3b2500; }
.pf-on { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: var(--ink-3); margin-top: 3px; }
.pf-on i { width: 9px; height: 9px; border-radius: 50%; background: #9a94b8; }
.pf-on.on { color: var(--ok); }
.pf-on.on i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .22); }
.pf-lv { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin-top: 8px; font-size: 13px; font-weight: 800; }
.pf-lv b { font-size: 15px; font-weight: 900; }
.pf-lv span:not(.muted) { color: var(--st-c); font-weight: 900; }
.pf-id .xpbar { margin-top: 5px; height: 16px; }
.pf-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.pf-rel { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 900; color: var(--ok); }
.pf-rel .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.pf-rel.sm { font-size: 11.5px; }
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 2px; }
.pf-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); min-width: 0; }
.pf-stat .ic { grid-row: span 2; width: 22px; height: 22px; color: var(--brand); }
body.dark .pf-stat .ic { color: #b9a2ff; }
.pf-stat b { font-size: 16px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-stat span { font-size: 10.5px; font-weight: 900; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; }
.pf-sec { margin-top: 16px; }
.pf-sec h4 { margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; font-weight: 900; }
.pf-sec h4 small { font-size: 11.5px; color: var(--ink-3); font-weight: 800; }
.pf-none { margin: 0; font-size: 12.5px; font-weight: 700; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-x { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 8px; border-radius: 15px; background: linear-gradient(135deg, var(--b1), var(--b2)); color: #fff; font-size: 12px; font-weight: 900; box-shadow: 0 5px 14px -6px var(--b1); cursor: help; }
.badge-x .ic { width: 16px; height: 16px; }
.pf-ach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ach { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.ach:not(.got) { opacity: .66; }
.ach.max { border-color: #f5b400; }
.ach-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-3); color: var(--ink-3); flex: none; }
.ach-ic .ic { width: 18px; height: 18px; }
.ach.got .ach-ic { background: var(--grad); color: #fff; }
.ach.max .ach-ic { background: linear-gradient(135deg, #ffd23f, #ff8a00); }
.ach-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ach-t b { font-size: 13px; font-weight: 900; }
.ach-t small { font-size: 11px; font-weight: 800; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach-bar { display: block; height: 5px; border-radius: 3px; background: var(--line); margin-top: 4px; overflow: hidden; }
.ach-bar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.ach-n { font-size: 11.5px; font-weight: 900; color: var(--ink-3); flex: none; }
.pf-acc-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-pw { margin-top: 10px; max-width: 360px; }

/* çevrimiçi oyuncular */
.modal.ol-modal { height: min(calc(86 * var(--vh)), 640px); }
.ol-modal .modal-body { display: flex; flex-direction: column; overflow: hidden; flex: 1; min-height: 0; }
.ol { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ol-top { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.ol-top .inp { flex: 1; min-width: 160px; height: 36px; font-size: 14px; }
.ol-list { flex: 1; overflow-y: auto; scrollbar-gutter: stable; min-height: 0; margin-right: -10px; }
.ol-row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 12px; }
.ol-row:nth-child(odd) { background: var(--panel-2); }
.ol-row.fr { box-shadow: inset 3px 0 0 var(--ok); }
.ol-row .av { width: 34px; height: 34px; }
.ol-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ol-nm b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-nm small { font-size: 11.5px; color: var(--ink-3); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-room { flex: none; font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 7px; background: var(--panel-3); color: var(--ink-2); white-space: nowrap; }
.ol-room.cur { background: var(--grad-soft); color: var(--brand); }
body.dark .ol-room.cur { color: #d4c6ff; }
.ol-st { flex: none; width: 50px; text-align: right; font-size: 12px; font-weight: 900; color: var(--ink-3); }
.ol-acts { display: flex; gap: 5px; align-items: center; flex: none; }
.ol-note { display: flex; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--ink-3); margin: 8px 0 0; }
.ol-note .ic { width: 15px; height: 15px; }

/* sohbet mesajı menüsü */
.ctx { position: fixed; z-index: 75; min-width: 220px; max-width: 290px; padding: 6px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); animation: popIn .16s ease; }
.ctx-h { display: flex; align-items: baseline; gap: 6px; padding: 6px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 14px; min-width: 0; }
.ctx-h b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-h small { color: var(--ink-3); font-weight: 800; white-space: nowrap; }
.ctx-b { display: flex; align-items: center; gap: 9px; width: 100%; height: 36px; padding: 0 10px; border-radius: 9px; font-weight: 800; font-size: 13.5px; text-align: left; }
.ctx-b:hover { background: var(--panel-2); }
.ctx-b .ic { width: 17px; height: 17px; color: var(--brand); }
body.dark .ctx-b .ic { color: #b9a2ff; }
.ctx-b.warn .ic { color: var(--err); }
.ctx-b.reason { height: 32px; padding-left: 14px; font-size: 13px; }
.ctx-b.reason:hover { color: var(--err); }
.ctx-sub { padding: 6px 10px; font-size: 12px; font-weight: 800; color: var(--ink-3); }

/* ---------- DUYARLI ---------- */
/* dar ekran ya da yan çevrilmiş telefon (kısa ekran): menü tek sütun, kendi içinde kayar */
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  #menu-overlay { justify-content: flex-start; overflow-y: auto; padding: 14px 12px 30px; }
  #menu { flex-direction: column; width: 100%; max-width: 420px; transform: none !important; margin: 0 !important; }
  .col { display: contents; }
  .p-main { order: 0; } .p-profile { order: 1; } .p-modes { order: 2; } .p-servers { order: 3; }
  .p-offers { order: 4; } .p-shop { order: 5; } .p-promo { order: 6; } .p-community { order: 7; }
  .lb { width: 184px; }
  .lb-row { font-size: 12.5px; height: 23px; }
  #minimap-wrap { width: 120px; height: 120px; }
  #chat { width: calc(70 * var(--vw)); bottom: 140px; }
  #stats-pill, #minion-panel { width: 200px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .au-hero { padding: 22px 18px 14px; }
  .au-seg { margin: 0 18px; }
  .au-body { padding: 14px 18px 18px; }
  .au-two { grid-template-columns: minmax(0, 1fr); }
  .au-perks > span { padding: 0 6px; gap: 4px; font-size: 11.5px; }
  .pg-get { font-size: 13px; padding: 0 8px; gap: 6px; }
  .ps-card { width: 132px; min-height: 132px; }
  .cart-toggle { display: grid; }
  .cart-panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 3; width: min(320px, 92%); box-shadow: -10px 0 30px rgba(0, 0, 0, .25); transform: translateX(105%); transition: transform .25s ease; }
  .shop-layout { position: relative; }
  .shop-layout.cart-open .cart-panel { transform: none; }
  .inv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings { flex-direction: column; }
  .set-side { width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 4px 14px 10px; }
  .set-nav { flex-direction: row; overflow-x: auto; }
  .sn { flex: none; height: 34px; }
  .set-side .btn.ghost { display: none; }
  .fr-side { width: 100%; border-right: 0; }
  .fr-chat { display: none; }
  .fr.chatting .fr-side { display: none; }
  .fr.chatting .fr-chat { display: flex; }
  .ch-back { display: grid; }
  .pf-hero { flex-direction: column; align-items: center; text-align: center; }
  .pf-lv, .pf-acts, .pf-on, .pf-id h3 { justify-content: center; }
  .pf-stats, .pf-ach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .podium { height: 196px; }
  .pd1 .pd-av .av { width: 62px; height: 62px; }
  .pd-av .av { width: 48px; height: 48px; }
  .lb-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ctl { grid-template-columns: 1fr; }
  .ctl > .btn { grid-column: auto; }
  .ol-room { display: none; }
  .sb-arrow { width: 30px; height: 30px; }
  .sb-row { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- VIP: sürekli renk değiştiren (RGB) isim ve rozet — adın göründüğü her yerde ---------- */
@keyframes vipFlow { to { background-position: 300% 0; } }
.vip-tag { display: inline-flex; align-items: center; justify-content: center; flex: none; height: 16px; padding: 0 5px; border-radius: 5px; font-size: 9.5px; font-weight: 900; letter-spacing: .6px; line-height: 1; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .45); background: linear-gradient(90deg, #ff3b4e, #ff9f1a, #ffd23f, #2bd96b, #21b8ff, #7a5cff, #ff3dcb, #ff3b4e) 0 0 / 300% 100%; animation: vipFlow 3s linear infinite; vertical-align: 1px; box-shadow: 0 1px 5px rgba(122, 92, 255, .4); }
.vip-tag[hidden] { display: none; }
.vip-name { background: linear-gradient(90deg, #ff3b4e, #ff9f1a, #e8c500, #22c55e, #1fb2ff, #7a5cff, #ff3dcb, #ff3b4e) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; animation: vipFlow 3s linear infinite; }
.prof-top .vip-tag { height: 21px; padding: 0 7px; border-radius: 7px; font-size: 11px; margin: 0 -3px 0 -2px; }
.cm .vip-tag { margin-right: 5px; }
.lb-row .nm .vip-tag { height: 14px; font-size: 8.5px; padding: 0 4px; margin-right: 5px; vertical-align: 2px; }
.mini-lb .nm .vip-tag, .fr-txt .vip-tag, .ol-nm .vip-tag { margin: 0 4px 0 1px; }

/* skor tablosu: kayıtlı oyuncunun adına tıklayınca profil */
.lb-row.click { cursor: pointer; }
.lb-row.click:hover { background: rgba(255, 255, 255, .09); }
.lb-row.click:hover .nm { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }

/* ---------- mini harita: takım arkadaşı / arkadaş bilgisi ---------- */
#hud > .mm-tip { position: fixed; z-index: 30; min-width: 150px; max-width: 250px; padding: 8px 11px 9px; border-radius: 12px; background: rgba(21, 18, 41, .96); color: #f2f0ff; box-shadow: 0 10px 26px rgba(8, 5, 25, .5), inset 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: none; font-weight: 800; font-size: 12px; }
.mm-tip[hidden] { display: none; }
.mm-tip .mt-h { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 900; white-space: nowrap; }
.mm-tip .mt-u { overflow: hidden; text-overflow: ellipsis; }
.mm-tip .mt-n { color: #aba4d9; font-size: 11.5px; margin-top: 2px; }
.mm-tip .mt-m { margin-top: 3px; color: #ffd166; }
.mm-tip .mt-m b { color: #fff; }
.mm-tip .mt-k { margin-top: 6px; display: inline-block; font-size: 10.5px; font-weight: 900; padding: 2px 8px; border-radius: 7px; }
.mm-tip .mt-k.fr { background: rgba(255, 210, 63, .18); color: #ffd23f; }
.mm-tip .mt-k.tm { background: rgba(108, 59, 255, .3); color: #d6c9ff; }

/* ---------- oyundan atılma ---------- */
.modal.kick-modal { width: min(420px, 100%); }
.kick { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 4px 2px; }
.kick-ic { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff7a00, #ff3d7f); box-shadow: 0 12px 28px -8px rgba(255, 61, 127, .6); margin-bottom: 12px; animation: kickIn .5s cubic-bezier(.2, 1.4, .4, 1); }
.kick.admin .kick-ic { background: linear-gradient(135deg, #e30a17, #b23bff); box-shadow: 0 12px 28px -8px rgba(227, 10, 23, .55); }
.kick-ic .ic { width: 34px; height: 34px; stroke-width: 2.2; }
@keyframes kickIn { from { transform: scale(.4) rotate(-18deg); opacity: 0; } }
.kick-t { font-size: 22px; font-weight: 900; }
.kick-r { display: flex; align-items: flex-start; gap: 8px; width: 100%; margin: 12px 0 0; padding: 11px 13px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); text-align: left; font-weight: 800; font-size: 14px; line-height: 1.4; }
.kick-r .ic { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 1px; }
.kick.admin .kick-r .ic { color: var(--tr-red); }
.kick-s { margin: 10px 0 14px; font-size: 13px; font-weight: 700; color: var(--ink-3); line-height: 1.45; }
.kick-btns { display: flex; gap: 8px; width: 100%; }
.kick-btns .btn { flex: 1; height: 42px; font-size: 14.5px; }

/* ---------- yasak ekranı ---------- */
.modal-back.ban-back { background: radial-gradient(circle at 50% 35%, rgba(130, 8, 30, .55), rgba(8, 4, 20, .93)); backdrop-filter: blur(6px); }
.modal.ban-modal { width: min(460px, 100%); border-color: rgba(227, 10, 23, .35); }
.ban { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 4px 2px; }
.ban-ic { position: relative; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, #ff5a66, #b3000c); box-shadow: 0 0 0 8px rgba(227, 10, 23, .14), 0 14px 32px -8px rgba(227, 10, 23, .7); margin-bottom: 16px; }
.ban-ic .ic { width: 38px; height: 38px; stroke-width: 2.2; }
.ban-ic::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(227, 10, 23, .5); animation: banPulse 2s ease-out infinite; }
@keyframes banPulse { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.ban-t { font-size: 23px; font-weight: 900; }
.ban-s { margin: 6px 0 14px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); line-height: 1.45; }
.ban-card { width: 100%; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); padding: 2px 14px; text-align: left; }
.ban-row { display: flex; align-items: center; gap: 9px; min-height: 42px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.ban-row:last-child { border-bottom: 0; }
.ban-row .ic { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.ban-row > span:not(.ban-left) { color: var(--ink-3); font-weight: 800; }
.ban-row > b, .ban-row .ban-left { margin-left: auto; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ban-row .ban-left { color: var(--tr-red); }
.ban-forever { color: #fff; background: var(--tr-red); padding: 3px 11px; border-radius: 8px; letter-spacing: .4px; }
.ban-over { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--ok); font-weight: 900; }
.ban-over .ic { width: 18px; height: 18px; }
.ban-help { margin: 14px 0 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); line-height: 1.45; }
.ban-help b { color: var(--ink-2); }
.ban-btns { display: flex; gap: 8px; width: 100%; }
.ban-btns .btn { flex: 1; height: 42px; }

/* ---------- Battle Royale bitiş ekranı ---------- */
.br-end .bre-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.bre-medal { width: 86px; height: 86px; flex: none; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; background: linear-gradient(135deg, #6c3bff, #b23bff); box-shadow: 0 12px 28px -8px rgba(108, 59, 255, .6); animation: medalPop .55s cubic-bezier(.2, 1.5, .4, 1); }
.bre-medal .ic { width: 22px; height: 22px; stroke-width: 2.4; }
.bre-medal b { font-size: 29px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.br-end.br-podium .bre-medal { background: linear-gradient(135deg, #ff9f1a, #ff3d7f); box-shadow: 0 12px 28px -8px rgba(255, 61, 127, .6); }
.br-end.win .bre-medal { background: linear-gradient(135deg, #ffe27a, #f5b400 55%, #ff9f1a); color: #4a3000; box-shadow: 0 0 0 6px rgba(255, 210, 63, .22), 0 14px 32px -8px rgba(245, 180, 0, .75); }
.br-end.win .bre-medal .ic { fill: #fff3b0; }
@keyframes medalPop { from { transform: scale(.3) rotate(-15deg); opacity: 0; } }
.bre-txt { min-width: 0; text-align: left; }
.bre-txt small { font-size: 11px; font-weight: 900; letter-spacing: 1.8px; color: var(--tr-red); }
.bre-title { font-size: 28px; font-weight: 900; line-height: 1.12; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.br-end.win .bre-title { background: linear-gradient(90deg, #f5b400, #ff7a00, #ff3d7f); -webkit-background-clip: text; background-clip: text; }
.bre-txt p { margin: 4px 0 0; color: var(--ink-2); font-weight: 800; font-size: 13.5px; line-height: 1.4; }
.bre-earn { margin: 14px 0 -6px; text-align: center; font-size: 11px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); }
.pf-id h3 .vip-tag { height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; }
.pd-nm .vip-tag, .lb-r .nm .vip-tag { margin: 0 4px 0 1px; }

/* ---------- TELEFON / TABLET (body.touch: parmak birincil girdi) ----------
   Tablet: köşelerde skor, liderler, mini harita, BÖL/W; sol alt köşe menü + sohbet, yanında joystick.
   Telefon her zaman yatay çizilir (html.phl, aşağıda). */
.t-aux { display: none; }
body.touch #hud { touch-action: none; }
body.touch button { touch-action: manipulation; }
.touch-only { display: none; }
body.touch .touch-only { display: block; }
body.touch .kb-only { display: none; }
body.touch .t-aux { position: absolute; bottom: calc(10px + var(--safe-b)); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: rgba(21, 18, 41, .82); box-shadow: 0 6px 16px rgba(0, 0, 0, .28), inset 0 0 0 1.5px rgba(255, 255, 255, .14); transition: transform .1s, background .15s; }
body.touch .t-aux .ic { width: 21px; height: 21px; stroke-width: 2.4; }
body.touch .t-aux:active { transform: scale(.9); }
body.touch { --joy: 116px; --joy-x: calc(72px + var(--safe-l)); --joy-y: calc(30px + var(--safe-b)); }
body.touch #t-menu { left: calc(10px + var(--safe-l)); bottom: calc(10px + var(--safe-b)); }
body.touch #t-layout { left: calc(10px + var(--safe-l)); bottom: calc(60px + var(--safe-b)); }
body.touch #t-chat { left: calc(10px + var(--safe-l)); bottom: calc(110px + var(--safe-b)); }
body.touch #t-chat.on { background: var(--brand); }
body.touch #stats-pill { top: calc(10px + var(--safe-t)); left: calc(10px + var(--safe-l)); width: auto; max-width: calc(calc(100 * var(--vw)) - min(196px, calc(45 * var(--vw))) - 30px); min-height: 42px; flex-wrap: wrap; justify-content: flex-start; gap: 1px 14px; padding: 5px 12px; border-radius: 13px; }
body.touch #stats-pill b { font-size: 16px; }
body.touch .sp-label { font-size: 9px; letter-spacing: .6px; }
body.touch .sp-perf { font-size: 10px; padding-left: 0; border-left: 0; align-self: center; }
body.touch #minion-panel { top: calc(60px + var(--safe-t)); left: calc(10px + var(--safe-l)); width: min(244px, calc(calc(100 * var(--vw)) - min(196px, calc(45 * var(--vw))) - 30px)); }
body.touch .mp-keys { display: none; }
body.touch .lb { top: calc(10px + var(--safe-t)); right: calc(10px + var(--safe-r)); width: min(196px, calc(45 * var(--vw))); border-radius: 11px; }
body.touch .lb-head { height: 27px; }
body.touch .lb-title { padding: 0 14px 0 9px; font-size: 11px; letter-spacing: 1.2px; }
body.touch .lb-head em { font-size: 10.5px; padding: 0 8px 0 4px; }
body.touch .lb-row { height: 21px; gap: 5px; padding-right: 8px; font-size: 12px; }
body.touch .lb-row .rk { width: 22px; font-size: 11px; }
body.touch .lb-row .av { width: 15px; height: 15px; }
body.touch .lb-row .ms { font-size: 11px; }
body.touch .lb-foot { height: 23px; padding: 0 8px; font-size: 10.5px; }
body.touch .lb-brand { height: 12px; }
body.touch #lb-pie { width: 84px; height: 84px; margin: 6px auto 0; }
body.touch #minimap-wrap { right: calc(10px + var(--safe-r)); bottom: calc(10px + var(--safe-b)); width: 104px; height: 104px; border-radius: 13px; }
body.touch #touch-ctl { right: calc(16px + var(--safe-r)); bottom: calc(130px + var(--safe-b)); gap: 12px; align-items: center; }
body.touch #touch-ctl button { width: 60px; height: 60px; font-size: 15px; touch-action: none; transition: transform .08s; }
body.touch #touch-ctl #t-split { width: 70px; height: 70px; }
body.touch #touch-ctl button:active { transform: scale(.92); }
body.touch #chat { left: calc(10px + var(--safe-l)); bottom: calc(var(--joy-y) + var(--joy) + 14px); width: min(440px, calc(calc(100 * var(--vw)) - 134px)); }
body.touch #chat-log { max-height: 148px; }
body.touch #chat.open #chat-log { max-height: min(calc(40 * var(--vh)), 260px); touch-action: pan-x pan-y; }
body.touch #chat-input { font-size: 16px; } /* 16px altı yazı alanına dokununca iOS sayfayı yakınlaştırırdı */
body.touch .cm { font-size: 12.5px; padding: 3px 9px; }
body.touch #hud-top { top: calc(10px + var(--safe-t)); max-width: calc(calc(100 * var(--vw)) - 20px); }
body.touch #br-bar { font-size: 13.5px; padding: 7px 14px; white-space: normal; }
body.touch #spec-bar { width: min(560px, calc(calc(100 * var(--vw)) - 20px)); padding: 6px 10px 7px; }
body.touch .sb-who { min-width: 0; flex: 1; }
body.touch .sb-nm { font-size: 14.5px; }
body.touch .sb-hint { font-size: 11px; }
/* (.vland) */
  :where(.vland) body.touch .lb { width: 184px; }
  :where(.vland) body.touch .lb-row { height: 17px; font-size: 11.5px; }
  :where(.vland) body.touch .lb-foot { height: 21px; }
  :where(.vland) body.touch #lb-pie { width: 60px; height: 60px; margin: 4px auto 0; }
  :where(.vland) body.touch #stats-pill { max-width: calc(calc(100 * var(--vw)) - 214px); }
  :where(.vland) body.touch #minimap-wrap { width: 84px; height: 84px; }
  :where(.vland) body.touch #touch-ctl { flex-direction: row; align-items: flex-end; right: calc(108px + var(--safe-r)); bottom: calc(12px + var(--safe-b)); }
  :where(.vland) body.touch #touch-ctl button { width: 58px; height: 58px; }
  :where(.vland) body.touch #touch-ctl #t-split { width: 68px; height: 68px; }
  :where(.vland) body.touch { --joy: 108px; }
  :where(.vland) body.touch #chat { left: calc(var(--joy-x) + var(--joy) + 12px); bottom: calc(var(--joy-y) + 52px); width: min(400px, calc(calc(100 * var(--vw)) - var(--joy-x) - var(--joy) - 262px)); min-width: 190px; }
  :where(.vland) body.touch #chat-log { max-height: min(120px, calc(calc(100 * var(--vh)) - 250px)); }
  :where(.vland) body.touch #chat.open #chat-log { max-height: min(150px, calc(34 * var(--vh))); }
  /* ekranın ortası (oyuncunun hücresi) iki yandaki tablonun arasında kalsın */
  :where(.vland) body.touch #hud-top { max-width: calc(calc(100 * var(--vw)) - 420px); min-width: 300px; }
  :where(.vland) body.touch #spec-bar { width: max(300px, calc(calc(100 * var(--vw)) - 420px)); }

/* (.vh430) */

/* çok kısa yatay ekran (ör. 568×320): liderlerde ilk 7 sıra, mini haritayla çakışmasın */
/* (.vh340) */


/* Yan dönük telefon: ana menü iki sütun (solda Oyna + profil, sağda mod + sunucular); sayfa dikey kayar */
.lcol:empty { display: none; }
/* (.lmenu) */
  :where(.lmenu) #menu-overlay { padding: 10px calc(12px + var(--safe-r)) 22px calc(12px + var(--safe-l)); }
  :where(.lmenu) #menu.land { flex-direction: row; align-items: flex-start; max-width: 860px; gap: 10px; }
  :where(.lmenu) #menu.land .lcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
  :where(.lmenu) #menu.land .p-main { padding: 12px 18px 12px; }
  :where(.lmenu) #menu.land .logo { height: 44px; margin: 0 0 8px; }
  :where(.lmenu) #menu.land .logo img { height: 40px; }
  :where(.lmenu) #menu-footer { margin-top: 10px; }


/* Kısa yatay ekran (yan dönük telefon): ölüm / Battle Royale bitiş penceresi iki sütun — solda başlık ve
   istatistikler, sağda ödül ve düğmeler; minyon notu pencerenin içine, en üste iner. Hiçbir şey ekran dışına taşmaz. */
/* (.vshort) */
  :where(.vshort) .modal-back { padding: 8px calc(10px + var(--safe-r)) 8px calc(10px + var(--safe-l)); }
  :where(.vshort) .modal { max-height: calc(calc(100 * var(--vh)) - 16px); max-height: calc(calc(100 * var(--vh)) - 16px); }
  /* tüm pencereler: başlık ve sekmeler daha az yer kaplar, içerik alanı büyür */
  :where(.vshort) .modal-head { padding: 10px 14px 6px; }
  :where(.vshort) .modal-head h2 { font-size: 18px; }
  :where(.vshort) .modal-x { width: 32px; height: 32px; border-radius: 10px; }
  :where(.vshort) .tabs { padding: 0 14px 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  :where(.vshort) .tab { height: 32px; flex: none; }
  :where(.vshort) .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
  :where(.vshort) .chip { flex: none; }
  :where(.vshort) .info-box { padding: 8px 12px; margin-bottom: 10px; font-size: 12.5px; line-height: 1.35; }
  :where(.vshort) .modal-body { padding: 2px 14px 14px; }
  :where(.vshort) .modal.death { width: min(700px, 100%); }
  :where(.vshort) .modal.death .modal-body { padding: 12px 14px 14px; }
  :where(.vshort) .death-note { grid-area: note; position: static; margin: 0 0 10px; padding: 7px 12px; font-size: 12.5px; border-radius: 12px; box-shadow: none; }
  :where(.vshort) .death-note .ic { width: 17px; height: 17px; }
  :where(.vshort) .death-body, :where(.vshort) .br-end { display: grid; grid-template-columns: minmax(0, 1fr) 210px; column-gap: 14px; }
  :where(.vshort) .death-body { grid-template-areas: "note note" "top rew" "stats btn"; }
  :where(.vshort) .br-end { grid-template-areas: "note note" "top earn" "top rew" "stats btn"; }
  :where(.vshort) .death-top { grid-area: top; margin: 0 0 8px; text-align: left; align-self: center; }
  :where(.vshort) .death-top .big { font-size: 24px; line-height: 1.1; }
  :where(.vshort) .death-top p { font-size: 13px; margin-top: 2px; }
  :where(.vshort) .death-body .stat-grid, :where(.vshort) .br-end .stat-grid { grid-area: stats; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-self: end; }
  :where(.vshort) .death .stat { padding: 7px 4px; border-radius: 11px; }
  :where(.vshort) .death .stat b { font-size: 16px; }
  :where(.vshort) .death .stat span { font-size: 9.5px; letter-spacing: .2px; }
  :where(.vshort) .death .reward-line { grid-area: rew; margin: 0 0 8px; padding: 8px; min-height: 0; gap: 4px 12px; font-size: 12.5px; }
  :where(.vshort) .death .reward-line .rv { font-size: 17px; }
  :where(.vshort) .death .reward-line > span:not(.rv) { font-size: 12px; line-height: 1.3; }
  :where(.vshort) .death .reward-line .btn.small { height: 30px; padding: 0 12px; font-size: 12.5px; }
  :where(.vshort) .death .btn-row { grid-area: btn; flex-direction: column; justify-content: flex-end; gap: 6px; }
  :where(.vshort) .death .btn-row .btn { flex: none; height: 42px; font-size: 15px; }
  :where(.vshort) .br-end .bre-top { grid-area: top; gap: 12px; margin: 0 0 8px; }
  :where(.vshort) .bre-medal { width: 58px; height: 58px; border-radius: 17px; }
  :where(.vshort) .bre-medal .ic { width: 17px; height: 17px; }
  :where(.vshort) .bre-medal b { font-size: 21px; }
  :where(.vshort) .bre-title { font-size: 21px; }
  :where(.vshort) .bre-txt p { font-size: 12px; line-height: 1.3; }
  :where(.vshort) .bre-earn { grid-area: earn; margin: 0 0 4px; align-self: end; }
  :where(.vshort) .br-end .btn-row .btn { height: 38px; }

/* (.vh340) */
  :where(.vh340) .bre-earn { display: none; }
  :where(.vh340) .br-end { grid-template-areas: "note note" "top rew" "stats btn"; }
  :where(.vh340) .death .stat { padding: 5px 4px; }
  :where(.vh340) .death-note { margin-bottom: 8px; padding: 6px 10px; }
  :where(.vh340) .modal.death .modal-body { padding: 8px 12px 10px; }
  :where(.vh340) .death .stat-grid { gap: 5px; }
  :where(.vh340) .death .stat b { font-size: 15px; }
  :where(.vh340) .bre-medal { width: 50px; height: 50px; border-radius: 15px; }
  :where(.vh340) .bre-title { font-size: 19px; }
  :where(.vh340) .death .btn-row .btn, :where(.vh340) .br-end .btn-row .btn { height: 36px; }



/* Joystick: başparmağın oturduğu yere sabit; yalnızca tabanın ve çevresindeki 26 px'lik payın içi dokunuşu yakalar.
   Ekranın geri kalanındaki parmaklar yakınlaştırma (iki parmak) içindir. */
body.touch #joy-zone { display: block; position: absolute; left: calc(var(--joy-x) - 26px); bottom: calc(var(--joy-y) - 26px); width: calc(var(--joy) + 52px); height: calc(var(--joy) + 52px); border-radius: 50%; touch-action: none; -webkit-user-select: none; user-select: none; }
#joy { position: absolute; left: 26px; bottom: 26px; width: var(--joy); height: var(--joy); border-radius: 50%; pointer-events: none; opacity: .62; transition: opacity .15s;
  background: radial-gradient(circle, rgba(21, 18, 41, .12) 0 38%, rgba(21, 18, 41, .34) 70%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .38), 0 6px 18px rgba(0, 0, 0, .16); }
#joy.on { opacity: 1; }
#joy-knob { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; margin: -23% 0 0 -23%; border-radius: 50%;
  background: linear-gradient(145deg, #9a6bff, #6c3bff); box-shadow: 0 4px 12px rgba(40, 10, 120, .45), inset 0 0 0 2px rgba(255, 255, 255, .5); }
#joy:not(.on) #joy-knob { transition: transform .14s ease-out; }

/* Minyonlar! modu (dokunmatik): MOD / BOT BÖL / BOT W */
body.touch #minion-ctl { position: absolute; display: flex; flex-direction: column; gap: 10px; right: calc(27px + var(--safe-r)); bottom: calc(284px + var(--safe-b)); }
body.touch #minion-ctl[hidden] { display: none; }
#minion-ctl button { width: 48px; height: 48px; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #fff; touch-action: none; transition: transform .08s;
  background: rgba(18, 135, 106, .82); box-shadow: 0 6px 16px rgba(0, 0, 0, .26), inset 0 0 0 2px rgba(255, 255, 255, .3); }
#minion-ctl button:active { transform: scale(.9); }
#minion-ctl small { font-size: 8.5px; font-weight: 900; letter-spacing: .6px; opacity: .8; line-height: 1; }
#minion-ctl b { font-size: 12.5px; font-weight: 900; line-height: 1.05; }
#minion-ctl #tm-mode { background: rgba(21, 18, 41, .84); }
#minion-ctl #tm-mode b { font-size: 10.5px; }
#minion-ctl #tm-mode.feed { background: rgba(14, 116, 144, .88); }
#minion-ctl #tm-mode.collect { background: rgba(180, 110, 10, .88); }
#minion-ctl #tm-mode.frozen { background: rgba(120, 120, 140, .88); }
:where(.vland) body.touch #minion-ctl { flex-direction: row; gap: 6px; right: calc(254px + var(--safe-r)); bottom: calc(12px + var(--safe-b)); }
:where(.vland) #minion-ctl button { width: 44px; height: 44px; border-radius: 14px; }

/* ---------- YAN DÖNÜK TELEFON (html.phl) ----------
   Ölçüler iPhone 17 yatay (874×402) için; --hs ile küçük ekranda her kutu kendi köşesinden aynı oranda küçülür.
   Sol üst: kütle/sıra kutusu, hemen altında aynı genişlikte minyon paneli. Sağ üst: küçük liderler tablosu, hemen
   altında mini harita (JS yerleştirir). Sağ alt (sağ başparmak): BÖL köşede, W solunda, minyon düğmeleri onların
   sol üstünde. Sol alt köşe: menü + sohbet; joystick başparmağın oturduğu yerde. Üst çubuklar iki kutunun arasında. */
html.phl body.touch { --joy: calc(108px * var(--hs)); --joy-x: max(calc((22px + var(--safe-l)) * 1.5), calc(var(--safe-l) + 62px * var(--hs))); --joy-y: calc(30px * var(--hs) + var(--safe-b)); }
html.phl body.touch #stats-pill { top: calc(8px + var(--safe-t)); left: calc(10px + var(--safe-l)); width: 196px; max-width: none; height: 40px; min-height: 0; flex-wrap: nowrap; justify-content: space-between; gap: 8px; padding: 0 11px; border-radius: 12px; transform: scale(var(--hs)); transform-origin: 0 0; }
html.phl body.touch #stats-pill b { font-size: 15px; }
html.phl body.touch .sp-label { font-size: 8.5px; letter-spacing: .5px; }
html.phl body.touch .sp-perf { font-size: 9.5px; padding-left: 8px; border-left: 1px solid var(--line); }
html.phl body.touch #minion-panel { left: calc(10px + var(--safe-l)); width: 196px; padding: 6px 8px 7px; border-radius: 12px; transform: scale(var(--hs)); transform-origin: 0 0; }
html.phl body.touch .mp-head { font-size: 11px; gap: 6px; letter-spacing: .5px; }
html.phl body.touch .mp-toggle { width: 18px; height: 18px; border-radius: 6px; }
html.phl body.touch .mp-toggle .ic { width: 12px; height: 12px; }
html.phl body.touch .mp-sub { margin: 4px 0 5px; font-size: 10px; gap: 6px; }
html.phl body.touch .mp-sub em { font-size: 9px; padding: 1px 6px; border-radius: 6px; }
html.phl body.touch .mp-sub span b { font-size: 11.5px; }
html.phl body.touch .mp-grid { gap: 3px; }
html.phl body.touch .mp-grid span { height: 16px; border-radius: 5px; font-size: 9.5px; }
html.phl body.touch .lb { top: calc(8px + var(--safe-t)); right: calc(10px + var(--safe-r)); width: 150px; border-radius: 10px; transform: scale(var(--hs)); transform-origin: 100% 0; }
html.phl body.touch .lb-head { height: 22px; }
html.phl body.touch .lb-title { padding: 0 10px 0 8px; font-size: 9.5px; letter-spacing: 1px; }
html.phl body.touch .lb-head em { font-size: 9px; padding: 0 6px 0 3px; }
html.phl body.touch .lb-row { height: 14px; gap: 4px; padding-right: 6px; font-size: 10px; }
html.phl body.touch .lb-row .rk { width: 18px; font-size: 9.5px; }
html.phl body.touch .lb-row .av { width: 11px; height: 11px; }
html.phl body.touch .lb-row .ms { font-size: 9.5px; }
html.phl body.touch .lb-foot { height: 18px; padding: 0 7px; font-size: 9px; }
html.phl body.touch .lb-brand { height: 10px; }
html.phl body.touch #lb-pie { width: 48px; height: 48px; margin: 3px auto 0; }
html.phl body.touch #lb-pie:not([hidden]) ~ #lb-list .lb-row:nth-child(n+7) { display: none; }
html.phl body.touch #minimap-wrap { right: calc(10px + var(--safe-r)); bottom: auto; width: 76px; height: 76px; border-radius: 11px; transform: scale(var(--hs)); transform-origin: 100% 0; }
html.phl body.touch #touch-ctl { right: calc(14px + var(--safe-r)); bottom: calc(14px + var(--safe-b)); flex-direction: row; align-items: flex-end; gap: 12px; transform: scale(var(--hs)); transform-origin: 100% 100%; }
html.phl body.touch #touch-ctl button { width: 58px; height: 58px; font-size: 15px; }
html.phl body.touch #touch-ctl #t-split { width: 68px; height: 68px; }
html.phl body.touch #minion-ctl { flex-direction: row; gap: 6px; right: calc(14px + var(--safe-r) + 80px * var(--hs)); bottom: calc(14px + var(--safe-b) + 68px * var(--hs)); transform: scale(var(--hs)); transform-origin: 100% 100%; }
html.phl #minion-ctl button { width: 44px; height: 44px; border-radius: 14px; }
html.phl body.touch .t-aux { transform: scale(var(--hs)); transform-origin: 0 100%; }
html.phl body.touch .t-aux:active { transform: scale(calc(var(--hs) * .9)); }
html.phl body.touch #t-menu { left: calc(10px + var(--safe-l)); bottom: calc(10px + var(--safe-b)); }
html.phl body.touch #t-layout { left: calc(10px + var(--safe-l)); bottom: calc(10px + var(--safe-b) + 50px * var(--hs)); }
html.phl body.touch #t-chat { left: calc(10px + var(--safe-l)); bottom: calc(10px + var(--safe-b) + 100px * var(--hs)); }
html.phl body.touch #chat { left: calc(var(--joy-x) + var(--joy) + 14px); bottom: calc(10px + var(--safe-b)); width: max(170px, min(380px, calc(var(--W) - var(--joy-x) - var(--joy) - 40px - var(--safe-r) - 224px * var(--hs)))); min-width: 0; }
html.phl body.touch #chat-log { max-height: calc(108px * var(--hs)); }
html.phl body.touch #chat.open #chat-log { max-height: calc(130px * var(--hs)); }
html.phl body.touch .cm { font-size: 11px; padding: 2px 8px; }
html.phl body.touch #hud-top { top: calc(8px + var(--safe-t)); min-width: 0; transform: translateX(-50%) scale(var(--hs)); transform-origin: 50% 0; }
html.phl body.touch #hud-top > * { max-width: 100%; box-sizing: border-box; }
html.phl body.touch #afk-bar, html.phl body.touch #br-bar { font-size: 12px; padding: 7px 12px; white-space: normal; text-align: center; justify-content: center; }
html.phl body.touch #spec-bar { width: 100%; }
html.phl body.touch #toasts { top: calc(8px + var(--safe-t) + var(--top-off)); transform: translateX(-50%) scale(var(--hs)); transform-origin: 50% 0; }
html.phl body.touch .toast { max-width: 100%; font-size: 12.5px; padding: 7px 12px; }

/* yan dönük telefon menüsü: iPhone 17'deki genişlikte (726 px) çizilir, JS ekrana göre ölçekler (--mk, --mm) */
:where(.lmenu) #menu.land { width: 726px; max-width: none; flex: none; }
html.lmenu #menu.land { transform: scale(var(--mk, 1)) !important; margin: var(--mm, 0) !important; }

/* ---------- Telefon: ölüm / Battle Royale bitiş ekranı (html.phl) ----------
   iPhone 17 yatay için tasarlandı; zoom: --hs ile küçük telefonda bütün pencere aynı oranda küçülür.
   Sol: simge + başlık, 3×2 istatistik, altta ince minyon notu. Sağ: renkli sütun — kazanç ve büyük düğmeler. */
html.phl .modal-back:has(.modal.death) { padding: 8px calc(10px + var(--safe-r)) 8px calc(10px + var(--safe-l)); }
html.phl .modal.death { zoom: var(--hs); width: min(720px, calc((100 * var(--vw) - 24px - var(--safe-l) - var(--safe-r)) / var(--hs))); max-height: calc((100 * var(--vh) - 16px) / var(--hs)); border-radius: 22px; overflow: hidden; }
html.phl .modal.death .modal-body { padding: 0; overflow: hidden; }
html.phl .death-body, html.phl .br-end { margin: 0; display: flex; align-items: stretch; }
html.phl .death-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html.phl .death-top, html.phl .br-end .bre-top { grid-area: top; display: flex; align-items: center; gap: 12px; margin: 0; padding: 18px 18px 12px; text-align: left; }
html.phl .death-ic { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 16px; color: #fff; background: var(--grad); box-shadow: 0 8px 20px -6px rgba(108, 59, 255, .55); }
html.phl .death-ic .ic { width: 28px; height: 28px; stroke-width: 2.2; }
html.phl .death-tt { min-width: 0; }
html.phl .death-top .big { font-size: 28px; line-height: 1.05; }
html.phl .death-top p { margin: 3px 0 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.phl .bre-medal { width: 56px; height: 56px; border-radius: 17px; }
html.phl .bre-medal .ic { width: 17px; height: 17px; }
html.phl .bre-medal b { font-size: 20px; }
html.phl .bre-title { font-size: 22px; }
html.phl .bre-txt p { font-size: 12.5px; line-height: 1.3; }
html.phl .death-body .stat-grid, html.phl .br-end .stat-grid { margin: auto 0 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0 18px; }
html.phl .death .stat { padding: 9px 4px 8px; border-radius: 13px; }
html.phl .death .stat b { font-size: 18px; }
html.phl .death .stat span { font-size: 9.5px; letter-spacing: .3px; }
html.phl .death-note { position: static; display: flex; align-items: center; gap: 8px; margin: 0 18px 16px; padding: 8px 11px; border-radius: 12px; font-size: 11.5px; line-height: 1.3; color: #0c6b53; background: rgba(18, 135, 106, .1); box-shadow: inset 0 0 0 1px rgba(18, 135, 106, .28); }
html.phl .death-note .ic { width: 17px; height: 17px; color: #12876a; }
html.phl body.dark .death-note { color: #8ff0cf; background: rgba(26, 163, 127, .14); box-shadow: inset 0 0 0 1px rgba(26, 163, 127, .35); }
html.phl body.dark .death-note .ic { color: #5fe0b4; }
html.phl .death-side { flex: none; width: 236px; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 14px; color: #fff; background: linear-gradient(165deg, #7b4bff 0%, #6c3bff 45%, #c03bd8 100%); }
html.phl .ds-label, html.phl .death-side .bre-earn { display: block; margin: 0; text-align: center; font-size: 10.5px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
html.phl .death-side .reward-line { margin: 0; padding: 12px 10px; min-height: 64px; border-radius: 15px; flex-direction: column; gap: 6px; color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); font-size: 12px; }
html.phl .death-side .reward-line .rv { font-size: 22px; }
html.phl .death-side .reward-line .muted { color: rgba(255, 255, 255, .8); }
html.phl .death-side .reward-line .rv-note { color: #ffe9a8; font-size: 11.5px; }
html.phl .death-side .reward-line .btn.small { background: #fff; color: #5b2ee6; box-shadow: none; }
html.phl .death-side .btn-row { margin-top: auto; flex-direction: column; gap: 8px; }
html.phl .death-side .btn-row .btn { flex: none; height: 46px; font-size: 15.5px; border-radius: 14px; }
html.phl .death-side .btn-row .btn.primary { order: -1; height: 52px; font-size: 17px; color: #5b2ee6; background: #fff; box-shadow: 0 8px 20px -6px rgba(20, 0, 70, .45); }
html.phl .death-side .btn-row .btn:not(.primary) { color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .32); }
html.phl .br-end .death-side { gap: 8px; }
html.phl .br-end .death-side .btn-row { gap: 6px; }
html.phl .br-end .death-side .btn-row .btn { height: 38px; font-size: 14px; }
html.phl .br-end .death-side .btn-row .btn.primary { height: 44px; font-size: 15px; }
html.phl .death-side .reward-line > span:not(.rv) { font-size: 11.5px; line-height: 1.3; }

/* "Büyük ekranda oynayalım mı?" (telefon) */
.modal.fs-modal { width: min(520px, 100%); }
html.phl .modal.fs-modal { zoom: var(--hs); }
.fs-modal .modal-body { padding: 0; }
.fs-ask { display: flex; gap: 16px; align-items: flex-start; padding: 20px 20px 18px; }
.fs-ic { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 24px -8px rgba(108, 59, 255, .6); }
.fs-ic .ic { width: 30px; height: 30px; stroke-width: 2.3; }
.fs-txt { flex: 1; min-width: 0; }
.fs-txt > b { display: block; font-size: 20px; font-weight: 900; line-height: 1.2; }
.fs-txt > p { margin: 6px 0 0; font-size: 13.5px; font-weight: 700; color: var(--ink-2); line-height: 1.45; }
.fs-steps { margin: 10px 0 0; padding-left: 20px; font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.6; }
.fs-steps b { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.fs-steps .ic { width: 16px; height: 16px; color: var(--brand); }
.fs-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fs-btns .btn { height: 42px; }
.fs-btns .btn.primary { flex: 1 1 auto; }

/* Telefon liderler başlığı: sunucu adı ve kalan süre alt alta — "DENEYSEL-1" gibi uzun adlar da tam sığar */
html.phl body.touch .lb-head { height: 25px; }
html.phl body.touch .lb-head em { flex-direction: column; align-items: flex-end; justify-content: center; gap: 1px; padding: 0 7px 0 2px; line-height: 1.05; }
html.phl body.touch .lb-head em .lr-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 9px; color: #cfc9f5; }
html.phl body.touch .lb-head em .lr-t { font-size: 8.5px; font-variant-numeric: tabular-nums; color: #8f88c2; }
html.phl body.touch .lb-head em .lr-t::before { content: none; }
/* telefon liderler satırı (14 px): VIP rozeti satırın içinde kalır */
html.phl body.touch .lb-row .nm .vip-tag { height: 10px; padding: 0 3px; margin-right: 3px; border-radius: 3px; font-size: 6.5px; letter-spacing: .3px; vertical-align: 1px; text-shadow: none; }

/* ---------- Dokunmatik tuş düzeni ----------
   html.hud-custom: kayıtlı düzen — her öğe satır içi left/top ile konumlanır, --k ile sol üst köşesinden ölçeklenir;
   BÖL/W ve minyon düğmelerinin kapları display: contents olur (düğmeler tek tek taşınır).
   html.hud-editing: düzenleyici açık — gizli öğeler de görünür, öğeler kesik çizgiyle işaretlenir. */
html.hud-custom body.touch #touch-ctl:not([hidden]), html.hud-custom body.touch #minion-ctl:not([hidden]) { display: contents !important; }
html.hud-custom body.touch [data-hud] { position: absolute !important; right: auto !important; bottom: auto !important; margin: 0 !important; transform: scale(var(--k, 1)) !important; transform-origin: 0 0 !important; }
html.hud-custom body.touch button[data-hud]:active { transform: scale(calc(var(--k, 1) * .9)) !important; }
html.hud-editing body.touch #touch-ctl[hidden], html.hud-editing body.touch #minion-ctl[hidden] { display: flex !important; }
html.hud-custom.hud-editing body.touch #touch-ctl, html.hud-custom.hud-editing body.touch #minion-ctl { display: contents !important; }
html.hud-editing body.touch #minion-panel[hidden], html.hud-editing body.touch #joy-zone[hidden], html.hud-editing body.touch #minimap-wrap[hidden] { display: block !important; }
html.hud-editing #game { filter: brightness(.5) saturate(.7); }
html.hud-editing body.touch [data-hud], html.hud-editing body.touch [data-hud] * { pointer-events: auto !important; }
html.hud-editing body.touch [data-hud] { outline: 2px dashed rgba(255, 255, 255, .85); outline-offset: 2px; }
html.hud-editing body.touch [data-hud].he-on { outline: 3px solid #ffd23f; outline-offset: 3px; z-index: 8; }
html.hud-editing body.touch div[data-hud]::after, html.hud-editing body.touch aside[data-hud]::after { content: attr(data-hud-label); position: absolute; left: 0; top: 0; z-index: 9; padding: 2px 7px; border-radius: 0 0 8px 0; background: rgba(108, 59, 255, .92); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .3px; pointer-events: none; transform: scale(calc(1 / var(--k, 1))); transform-origin: 0 0; white-space: nowrap; }
html.hud-editing body.touch #chat { min-width: 180px; min-height: 60px; border-radius: 12px; background: rgba(21, 18, 41, .35); }
html.hud-editing body.touch #joy { opacity: 1; }
#hud-edit { position: absolute; left: 50%; top: 50%; z-index: 30; transform: translate(-50%, -50%) scale(var(--hs)); }
.he-bar { width: 300px; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 13px; border-radius: 18px; color: #fff; background: rgba(21, 18, 41, .94); box-shadow: 0 16px 40px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.he-head { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 900; }
.he-head .ic { width: 18px; height: 18px; color: #b9a2ff; }
.he-hint { margin: 0; font-size: 11.5px; font-weight: 700; line-height: 1.35; color: rgba(255, 255, 255, .72); }
.he-sel { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
#he-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 900; }
.he-step { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #fff; background: rgba(255, 255, 255, .14); }
.he-step .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.he-step:disabled { opacity: .35; }
#he-val { min-width: 44px; text-align: center; font-style: normal; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.he-btns { display: flex; gap: 6px; }
.he-btns .btn { flex: 1; height: 36px; padding: 0 8px; }
.he-bar .btn:not(.primary) { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); }

/* iPhone Safari: "yukarı kaydır" katmanı ve kaydırılabilir sayfa (kaydırınca Safari çubukları gizlenir) */
html.ios-scroll:not(.rot) { height: auto; overflow-x: hidden; overflow-y: auto; }
html.ios-scroll:not(.rot) body { height: auto; overflow: visible; min-height: calc(100vh + 180px); min-height: calc(100lvh + 180px); }
#ios-swipe { position: fixed; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 8, 32, .74); touch-action: pan-y; }
.isw-box { max-width: 330px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #fff; pointer-events: none; }
.isw-box b { font-size: 20px; font-weight: 900; }
.isw-box p { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.isw-box .btn { pointer-events: auto; color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); }
.isw-hand .ic { width: 64px; height: 64px; stroke-width: 1.6; color: #b9a2ff; animation: iswUp 1.5s ease-in-out infinite; }
@keyframes iswUp { 0% { transform: translateY(26px); opacity: 0; } 25%, 70% { opacity: 1; } 100% { transform: translateY(-30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .isw-hand .ic { animation: none; } }

/* Bilgisayar: "uygulama olarak yükle" bandı (menünün altında, sağ alt köşe) */
#install-bar { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: min(360px, calc(100 * var(--vw) - 36px)); display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(20, 10, 60, .28); animation: popIn .25s cubic-bezier(.2, 1.3, .4, 1); }
#install-bar img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.ib-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.ib-txt b { font-size: 14px; font-weight: 900; }
.ib-txt span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ib-btns { display: flex; gap: 6px; margin-top: 8px; }
.ib-btns .btn { flex: 1; }

/* Telefon ölüm ekranı: sol sütun tam genişlikte; gri kutulardaki değer ve etiketler sola yaslı */
html.phl .death-top, html.phl .br-end .bre-top, html.phl .death-body .stat-grid, html.phl .br-end .stat-grid { align-self: stretch; }
html.phl .death .stat { text-align: left; padding: 9px 11px 8px; }
html.phl .death .stat b { line-height: 1.15; }
html.phl .death .stat span { display: block; }

/* ---------- Kısa yatay ekran (telefon ve alçak pencere): sıralama penceresi (html.vshort) ----------
   Ekranın tamamını kullanır (telefonda zoom: --hs). Solda ölçüt sekmeleri, küçük kürsü ve kurallar; sağda tam boy kayan liste. */
html.vshort .modal.lb-modal { width: min(860px, 100%); height: calc(100 * var(--vh) - 16px); max-height: none; }
html.phl .modal.lb-modal { zoom: var(--hs); width: min(860px, calc((100 * var(--vw) - 24px - var(--safe-l) - var(--safe-r)) / var(--hs))); height: calc((100 * var(--vh) - 16px) / var(--hs)); max-height: none; }
html.vshort .lb-modal .modal-head { padding: 10px 14px 6px; }
html.vshort .lb-modal .modal-body { padding: 2px 14px 12px; }
html.vshort .lb-wrap { flex-direction: row; gap: 14px; }
html.vshort .lb-side { display: flex; flex-direction: column; width: 300px; flex: none; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
html.vshort .lb-main { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
html.vshort .lb-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
html.vshort .lbm { height: 46px; gap: 2px; font-size: 10px; border-radius: 11px; }
html.vshort .lbm .ic { width: 16px; height: 16px; }
html.vshort .podium { flex: 1 1 auto; height: auto; min-height: 150px; max-height: 200px; margin: 30px 2px 4px; gap: 8px; }
html.vshort .pd1 { --bh: 50px; } html.phl .pd2 { --bh: 36px; } html.phl .pd3 { --bh: 26px; }
html.vshort .pd-av .av { width: 42px; height: 42px; }
html.vshort .pd1 .pd-av .av { width: 54px; height: 54px; }
html.vshort .pd-crown { top: -22px; }
html.vshort .pd-crown .ic { width: 22px; height: 22px; }
html.vshort .pd-nm { margin-top: 5px; font-size: 12px; }
html.vshort .pd-v { min-height: 15px; font-size: 11px; margin: 1px 0 4px; }
html.vshort .pd-base { font-size: 18px; }
html.vshort .lb-wrap .lb-rules { order: 0; margin-top: 8px; padding: 7px 10px; gap: 4px; font-size: 10.5px; line-height: 1.35; }
html.vshort .lb-rules .ic { width: 14px; height: 14px; }
html.vshort .lb-scroll { flex: 1; min-height: 0; margin: 0 -6px 0 0; padding-right: 2px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; border-radius: 12px; background: var(--panel-2); }
html.vshort .lb-r { height: 38px; padding: 0 10px; font-size: 13px; border-radius: 9px; }
html.vshort .lb-r .av { width: 24px; height: 24px; }
html.vshort .lb-mine { height: 40px; margin-top: 6px; }
html.vshort .lb-modal .seg button { height: 26px; padding: 0 9px; font-size: 12px; }

/* telefonda (yatay) kurulum bandı: altta ortada, ekran ölçeğiyle (--hs) */
html.phl #install-bar { left: 50%; right: auto; bottom: calc(10px + var(--safe-b)); width: 440px; align-items: center; transform: translateX(-50%) scale(var(--hs)); transform-origin: 50% 100%; animation: ibUp .3s ease-out; }
html.phl .ib-btns { margin-top: 6px; }
@keyframes ibUp { from { opacity: 0; transform: translateX(-50%) translateY(18px) scale(var(--hs)); } }

/* Telefon: ana menüde sabit "Uygulamayı yükle" düğmesi (uygulama olarak açıldıysa gizli) */
.app-dl { display: none; }
body.touch .app-dl { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; margin-top: 10px; padding: 0 14px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #12b76a, #0bb39f); box-shadow: 0 6px 16px rgba(11, 150, 120, .3); text-align: left; transition: transform .1s; }
body.touch .app-dl:active { transform: scale(.97); }
body.touch .app-dl .ic { width: 20px; height: 20px; stroke-width: 2.4; flex: none; }
body.touch .app-dl span { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
body.touch .app-dl b { font-size: 14px; font-weight: 900; }
body.touch .app-dl small { font-size: 10.5px; font-weight: 800; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.standalone body.touch .app-dl { display: none; }
