/* LUMLINGS 2.0 — ACU Interactive
- 3D Jöle/Oyuncak UI + 9-Slice (border-image) bozulmayan paneller, kartlar ve kapsül barlar.
- Fredoka başlıklar + Nunito gövde. */

:root {
  --bg0: #120933; --bg1: #1e1254; --bg2: #2f1d7a; --bg3: #4b2eb8;
  --ink: #ffffff; --mut: #d8ceff; --dim: #9a8ed1;

  /* Açık pastel cam paneller (menu.webp / menu2.webp / nav.webp) içi yüksek kontrast paleti */
  --p-ink: #381b66;
  --p-mut: #6b4b9c;
  --p-dim: #8a6eb8;
  --p-card: rgba(255, 255, 255, 0.72);
  --p-card2: rgba(255, 255, 255, 0.88);
  --p-line: rgba(120, 74, 184, 0.2);
  --p-line2: rgba(235, 174, 48, 0.55);

  --line: rgba(255,255,255,.22); --line2: rgba(255,255,255,.36);
  --glass: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
  --gold1: #fff3b8; --gold2: #ffc83d; --gold3: #e88608; --goldInk: #472100;
  --gem1: #d4fbff; --gem2: #52d5ff; --gem3: #2c6bff; --gemInk: #051d54;
  --pink1: #ffaddb; --pink2: #ff5da9; --pink3: #d92275; --pinkInk: #fff;
  --mint1: #c9ffe4; --mint2: #44e6a4; --mint3: #10a670; --mintInk: #043322;
  --ok: #13a670; --ok-bright: #5ef2b6; --bad: #ff4f70; --violet: #b696ff;

  --disp: "Fredoka", ui-rounded, "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --ui: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sw: min(100vw, max(340px, min(540px, calc(100vh * .62))));
  --sat: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
  --sab: calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px)) + var(--banner-h, 0px));
  --banner-h: 0px;
  --ease: cubic-bezier(.2, .95, .3, 1.04);
}
@supports (height: 100dvh) { :root { --sw: min(100vw, max(340px, min(540px, calc(100dvh * .62)))); } }

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg0); color: var(--ink); font: 700 15px/1.35 var(--ui); overscroll-behavior: none; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; text-size-adjust: 100%; }
body { background: radial-gradient(125% 85% at 50% 0%, #4428a6 0%, #1c1054 55%, #0d062b 100%); }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
b { font-weight: 800; }
input { -webkit-user-select: text; user-select: text; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ui-img { display: block; width: 22px; height: 22px; flex: none; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(34, 12, 68, .28)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- sahne ---------- */
#stage { position: fixed; top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto; width: var(--sw); overflow: hidden; background: #22145c; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 100px rgba(175,125,255,.28); }
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---------- açılış ---------- */
#boot { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 14px; background: linear-gradient(180deg, rgba(42, 22, 108, .55), rgba(18, 9, 54, .78)), url('../bg/main.webp') center/cover no-repeat; transition: opacity .5s ease, visibility .5s; }
#boot.gone { opacity: 0; visibility: hidden; }
.boot-glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,130,205,.42), rgba(130,90,255,0) 70%); pointer-events: none; }
.boot-logo { display: grid; place-items: center; }
.boot-logo-img { width: clamp(220px, 66vw, 330px); height: auto; display: block; filter: drop-shadow(0 10px 26px rgba(68, 16, 108, .55)); }
.boot-sub { font: 800 12px/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: #fff0ff; text-shadow: 0 2px 8px rgba(30, 10, 68, .7); margin-top: -4px; }
.boot-bar { width: 142px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.26); overflow: hidden; margin-top: 6px; border: 1px solid rgba(255,255,255,.35); }
.boot-bar i { display: block; width: 42%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pink2), #ffe27a, #fff); animation: boot 1.05s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* ---------- ana menü ---------- */
.home { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; padding: calc(var(--sat) + 10px) 14px 0; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s; }
.home.active { opacity: 1; visibility: visible; }
.home > * { position: relative; z-index: 2; }
.home::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 175px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(28,14,78,.52), rgba(28,14,78,.14) 64%, rgba(28,14,78,0)); }
.home button, .home a { pointer-events: auto; }

.top { display: flex; align-items: center; gap: 7px; }
.chip-me { position: relative; width: 52px; height: 52px; flex: none; border-radius: 50%; transition: transform .15s var(--ease); }
.chip-me:active { transform: scale(.92); }
.ring { display: block; width: 52px; height: 52px; padding: 3px; border-radius: 50%; background: conic-gradient(var(--gold2) var(--p, 0%), rgba(255,255,255,.35) 0); box-shadow: 0 5px 16px rgba(38,14,82,.45), 0 0 0 2px rgba(255,228,130,.65); }
.chip-av { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #7d58e8, #2c1778); overflow: hidden; }
.chip-av .av { display: block; border: 0; background: none; }
.lvl-badge { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); min-width: 26px; height: 18px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; font: 700 11px var(--disp); color: var(--goldInk); background: linear-gradient(180deg, var(--gold1), var(--gold3)); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(45,18,86,.4); }

/* 9-slice nav.webp kapsül cüzdan */
.wallet { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.cur {
  display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 8px 0 11px;
  border: 1px solid transparent;
  border-image-source: url('../ui/nav.webp');
  border-image-slice: 24% 16% 24% 16% fill;
  border-image-width: 11px 22px 11px 22px;
  border-image-repeat: stretch;
  filter: drop-shadow(0 4px 10px rgba(34, 14, 76, .34));
  transition: transform .12s var(--ease);
}
.cur:active { transform: scale(.94); }
.cur .ui-img { width: 23px; height: 23px; }
.cur b { font: 700 14.5px var(--disp); letter-spacing: .01em; min-width: 18px; text-align: right; color: var(--p-ink); text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.cur.gold b { color: #6e3500; }
.cur.gem b { color: #0a3c85; }
.cur .plus { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold1), var(--gold3)); color: var(--goldInk); box-shadow: 0 2px 0 rgba(130,60,0,.45); }
.cur.gem .plus { background: linear-gradient(180deg, var(--gem1), var(--gem3)); color: var(--gemInk); box-shadow: 0 2px 0 rgba(10,40,140,.45); }
.cur .plus .ic { width: 13px; height: 13px; stroke-width: 3.2; color: inherit; }

/* 3D cam baloncuk butonlar (ayarlar, kapat vb.) */
.icon-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.1)); border: 1.5px solid rgba(255,255,255,.45); color: var(--ink); box-shadow: 0 3px 0 rgba(28,12,68,.35); transition: transform .12s var(--ease), filter .18s; }
.icon-btn:active { transform: translateY(1px) scale(.91); }
.icon-btn.bubble-btn { width: 48px; height: 48px; padding: 0; background: none; border: 0; box-shadow: none; }
.icon-btn.bubble-btn img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; filter: drop-shadow(0 4px 10px rgba(34, 12, 74, .42)); }

.mid { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 2px 0 6px; }
.logo-wrap { text-align: center; margin-top: clamp(0px, .6vh, 6px); }
.logo { margin: 0 auto; display: grid; place-items: center; }
.logo-img { width: clamp(176px, min(58vw, 31vh), 258px); height: auto; display: block; filter: drop-shadow(0 8px 20px rgba(56, 16, 102, .48)); }
.tag { margin-top: 2px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #fff6ff; font-weight: 900; text-shadow: 0 2px 8px rgba(42,14,88,.78); }

.stats-strip { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.stats-strip .st {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(232,218,255,.82));
  border: 1.5px solid rgba(255, 212, 102, .75);
  box-shadow: 0 3px 10px rgba(38,14,86,.26);
  color: var(--p-ink);
}
.stats-strip small { font-size: 9.5px; color: var(--p-mut); font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.stats-strip b { font: 700 14.5px/1 var(--disp); color: var(--p-ink); }
.stats-strip .st-cr { padding: 0 7px 0 11px; } .stats-strip .st-cr i { display: inline-flex; }
.stats-strip .st-streak { color: #c84c00; padding: 0 10px 0 7px; } .stats-strip .st-streak .ic { width: 17px; height: 17px; stroke: #ff7a1f; fill: rgba(255,138,61,.55); }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 4px auto 0; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 13px; background: rgba(255,255,255,.84); color: var(--p-ink); border: 1.5px solid rgba(255,215,105,.7); box-shadow: 0 4px 12px rgba(34,12,74,.28); }
.pill .ic { width: 16px; height: 16px; }

/* süzülen hediye balonu (3D balloon.webp) */
.gift-balloon { position: absolute; right: 68px; top: 82px; z-index: 6; display: grid; justify-items: center; gap: 2px; padding: 0; background: none; border: 0; animation: floaty 2.6s ease-in-out infinite; }
.gift-balloon:active { transform: scale(.91); }
.gift-balloon .gb-ic { width: 52px; height: 52px; display: grid; place-items: center; }
.gift-balloon .gb-ic img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(255, 90, 165, .55)); }
.gift-balloon .gb-tag { padding: 2px 9px; border-radius: 999px; background: linear-gradient(180deg, var(--gold1), var(--gold2)); color: var(--goldInk); border: 1.5px solid #fff; font: 700 11.5px var(--disp); white-space: nowrap; box-shadow: 0 4px 10px rgba(56,18,90,.35); margin-top: -6px; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }

/* yan etkinlik kartları (sol 2 + sağ 2) */
.cards { position: absolute; left: -2px; right: -2px; top: 52%; transform: translateY(-50%); display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.cards-col { display: grid; gap: 10px; pointer-events: none; }
.card-mini {
  position: relative; width: 68px; display: grid; justify-items: center; gap: 2px; padding: 6px 3px 7px;
  border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(235,222,255,.84));
  border: 2px solid rgba(255, 206, 86, .88);
  box-shadow: 0 4px 0 rgba(168, 108, 12, .55), 0 8px 18px rgba(36, 12, 82, .32);
  color: var(--p-ink);
  transition: transform .14s var(--ease); pointer-events: auto;
}
.card-mini:active { transform: translateY(2px) scale(.94); }
.card-mini .ci { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: none; box-shadow: none; }
.card-mini .ci img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 7px rgba(46, 16, 86, .3)); }
.card-mini .ic { width: 24px; height: 24px; color: #5b28c4; }
.card-mini .ct { display: grid; gap: 0; min-width: 0; }
.card-mini b { font: 700 11px/1.1 var(--disp); letter-spacing: .01em; color: var(--p-ink); }
.card-mini small { font-size: 9.8px; color: var(--p-mut); font-weight: 800; line-height: 1.2; white-space: nowrap; }
.card-mini.ready { border-color: #ffe066; box-shadow: 0 0 16px rgba(255,214,72,.55), 0 4px 0 rgba(168,108,12,.55); }
.card-mini.ready small { color: #0e8f5b; }
.badge { position: absolute; top: -6px; right: -5px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font: 700 11px var(--disp); font-style: normal; color: #fff; background: linear-gradient(180deg, #ff7092, #e0214d); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(180,20,60,.45); animation: blink 1.6s ease-in-out infinite; }

/* interaktif maskot çubuğu */
.pet-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 148px);
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(242,226,255,.88));
  border: 2px solid rgba(255, 198, 92, .85);
  box-shadow: 0 4px 0 rgba(130, 74, 168, .32), 0 8px 20px rgba(34, 12, 74, .28);
  color: var(--p-ink);
  transition: transform .14s var(--ease);
}
.pet-chip:active { transform: scale(.93); }
.pet-chip.pop { animation: petPop .38s var(--ease); }
@keyframes petPop { 0% { transform: scale(1); } 45% { transform: scale(1.09); } 100% { transform: scale(1); } }
.pet-av { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #b294ff, #6842c8); }
.pet-av .av { border: 0; background: none; }
.pet-txt { display: grid; text-align: left; min-width: 0; }
.pet-txt b { font: 700 12px/1.15 var(--disp); color: var(--p-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pet-txt small { font-size: 10px; font-weight: 800; color: var(--p-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pet-heart { width: 22px; height: 22px; flex: none; display: grid; place-items: center; color: #ff5599; }
.pet-heart .ic { width: 17px; height: 17px; stroke: none; }
.pet-chip.gift-ready { border-color: var(--gold2); box-shadow: 0 0 18px rgba(255,200,61,.65), 0 4px 0 rgba(168,108,12,.45); }
.pet-chip.gift-ready .pet-txt small { color: #b55900; }

/* alt blok */
.bottom { margin: 0 -14px; padding: 20px 14px calc(var(--sab) + 10px); background: linear-gradient(0deg, rgba(36, 16, 86, .84) 0%, rgba(36, 16, 86, .52) 66%, rgba(36, 16, 86, 0)); display: grid; gap: 9px; }
.actions { display: grid; gap: 9px; }
.play {
  position: relative; overflow: visible; display: flex; align-items: center; gap: 12px; width: 100%; height: 74px; padding: 0 22px 0 10px; border-radius: 28px; color: #fff; text-align: left;
  background: linear-gradient(180deg, #ffaad8 0%, #ff58a4 48%, #d91e72 100%);
  border: 2.5px solid #ffe494;
  box-shadow: 0 2px 0 rgba(255,255,255,.68) inset, 0 -5px 0 rgba(135,12,76,.42) inset, 0 5px 0 #8a124c, 0 14px 34px rgba(255,76,158,.46);
  transition: transform .12s; animation: pulse 2.6s ease-in-out infinite;
}
.play:active { transform: translateY(3px) scale(.985); animation: none; }
.play::after { content: ""; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.32) 50%, transparent 65%); background-size: 260% 100%; animation: sheenBg 3.6s ease-in-out infinite; }
.play-ic { width: 62px; height: 62px; flex: none; display: grid; place-items: center; background: none; box-shadow: none; margin: -4px 0; }
.play-ic img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(96, 8, 52, .48)); }
.play-t { display: grid; gap: 0; position: relative; z-index: 1; }
.play-t b { font: 700 30px/1.05 var(--disp); letter-spacing: .05em; text-shadow: 0 2px 0 rgba(125,10,72,.7); }
.play-t small { margin-top: 2px; font-size: 12px; font-weight: 800; opacity: .94; }
@keyframes pulse { 0%, 100% { box-shadow: 0 2px 0 rgba(255,255,255,.68) inset, 0 -5px 0 rgba(135,12,76,.42) inset, 0 5px 0 #8a124c, 0 12px 32px rgba(255,76,158,.38); } 50% { box-shadow: 0 2px 0 rgba(255,255,255,.68) inset, 0 -5px 0 rgba(135,12,76,.42) inset, 0 5px 0 #8a124c, 0 15px 46px rgba(255,112,188,.68); } }
@keyframes sheenBg { 0%, 55% { background-position: 140% 0; } 100% { background-position: -80% 0; } }
@keyframes blink { 50% { transform: scale(1.18); } }

.row-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.row-modes.two { grid-template-columns: 1fr 1fr; }
.mode {
  display: flex; align-items: center; gap: 7px; min-height: 54px; padding: 6px 8px 6px 7px; border-radius: 20px; text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(235,224,255,.84));
  border: 2px solid rgba(255, 212, 102, .85);
  box-shadow: 0 4px 0 rgba(112, 66, 168, .35), 0 6px 14px rgba(24, 10, 66, .24);
  color: var(--p-ink);
  transition: transform .12s;
}
.mode:active { transform: translateY(2px) scale(.97); }
.xp-top b.up { color: #c46800; }
.mi { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(180deg, #987aff, #5432d9); color: #fff; box-shadow: 0 1.5px 0 rgba(255,255,255,.45) inset; }
.mode.blitz .mi { background: linear-gradient(180deg, #ffbe6b, #eb6a1a); color: #fff6e6; }
.mode.lucky .mi { background: linear-gradient(180deg, #63eda9, #13a86f); color: #053320; }
.mi .ic { width: 20px; height: 20px; }
.mi img { width: 32px; height: 32px; object-fit: contain; }
.mt { display: grid; gap: 0; min-width: 0; }
.mt b { font: 700 12.5px/1.15 var(--disp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--p-ink); }
.mt small { font-size: 10px; color: var(--p-mut); line-height: 1.2; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode.lucky small { color: #0d8f5d; }

.promos { display: grid; gap: 7px; }
.promo { display: flex; align-items: center; gap: 11px; padding: 7px 11px 7px 9px; border-radius: 18px; background: linear-gradient(100deg, rgba(132,78,242,.86), rgba(58,158,238,.82)); border: 1.5px solid rgba(255,224,140,.65); color: #fff; transition: transform .12s; }
.promo:active { transform: scale(.98); }
.pr-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #ffad6e, #d9275e); color: #fff; box-shadow: 0 4px 12px rgba(217,39,94,.4); }
.pr-t { display: grid; gap: 0; min-width: 0; flex: 1; }
.pr-t small { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #f0e6ff; font-weight: 800; }
.pr-t b { font: 700 15.5px/1.15 var(--disp); color: #fff; }
.pr-t em { font-style: normal; font-size: 11px; line-height: 1.25; color: #e8ecff; font-weight: 700; }
.pr-go { flex: none; padding: 7px 14px; border-radius: 999px; background: #fff; color: #381b66; font: 700 13px var(--disp); }
.promo.mini { margin-top: 2px; padding: 6px 10px; } .promo.mini .pr-ic { width: 30px; height: 30px; } .promo.mini .pr-ic .ic { width: 18px; height: 18px; }

/* 9-slice nav.webp alt navigasyon çubuğu */
.nav {
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  padding: 6px 14px 7px;
  border: 1px solid transparent;
  border-image-source: url('../ui/nav.webp');
  border-image-slice: 24% 16% 24% 16% fill;
  border-image-width: 14px 36px 14px 36px;
  border-image-repeat: stretch;
  filter: drop-shadow(0 8px 18px rgba(28, 10, 68, .42));
}
.nav button { position: relative; display: grid; justify-items: center; gap: 1px; padding: 4px 2px 2px; border-radius: 16px; color: var(--p-ink); font: 700 11.5px var(--disp); text-shadow: 0 1px 0 rgba(255,255,255,.75); transition: transform .12s var(--ease); }
.nav button:active { transform: scale(.9); }
.nav .nav-ic { width: 36px; height: 36px; object-fit: contain; display: block; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(42, 16, 86, .3)); }
.nav .ic { width: 26px; height: 26px; color: #5b28c4; }
.dot { position: absolute; top: 2px; left: calc(50% + 10px); width: 12px; height: 12px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; animation: blink 1.6s ease-in-out infinite; }

@media (max-height: 880px) { .promos { display: none; } }
@media (max-height: 750px) { .play { height: 66px; } .play-ic, .play-ic img { width: 54px; height: 54px; } .mode { min-height: 48px; } .tag { display: none; } .card-mini { padding: 5px 2px 5px; } .card-mini .ci, .card-mini .ci img { width: 38px; height: 38px; } .nav .nav-ic { width: 32px; height: 32px; } }
@media (max-height: 620px) { .row-modes .mt small { display: none; } .stats-strip { display: none; } .card-mini small { display: none; } .logo-img { width: 160px; } .pet-chip { display: none; } }

/* ---------- oyun içi (HUD) ---------- */
.hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; padding: calc(var(--sat) + 8px) 12px 0; }
.hud-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
.hud-top .icon-btn { pointer-events: auto; width: 44px; height: 44px; background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(232,220,255,.84)); border: 2px solid rgba(255,212,102,.85); color: var(--p-ink); box-shadow: 0 3px 0 rgba(120,76,18,.4), 0 6px 16px rgba(24,10,60,.3); }
.hud-score { text-align: center; line-height: 1; }
.hud-score b { display: block; font: 700 clamp(36px, 6.2vh, 52px)/1 var(--disp); color: #fff; text-shadow: 0 3px 0 rgba(62,18,118,.82), 0 0 24px rgba(255,190,235,.72); transition: transform .09s; }
.hud-score b.bump { transform: scale(1.14); }
.hud-meta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 3px; }
.hud-score small { font-size: 10.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #fff4ff; text-shadow: 0 2px 6px rgba(28,10,66,.85); }
.hud-timer { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; background: linear-gradient(180deg, rgba(255,150,70,.95), rgba(217,70,30,.95)); color: #fff; font: 700 13px var(--disp); border: 1.5px solid #ffe494; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.hud-timer .ic { width: 14px; height: 14px; }
.hud-timer em { font-style: normal; }
.hud-timer.low { background: linear-gradient(180deg, #ff6b85, #d91c40); animation: blink .7s ease-in-out infinite; }

.hud-row2 { position: absolute; left: 12px; top: calc(var(--sat) + 58px); display: grid; gap: 5px; justify-items: start; }
.hud-best { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,.84); border: 1.5px solid rgba(255,212,102,.8); color: var(--p-ink); box-shadow: 0 3px 10px rgba(24,10,60,.25); }
.hud-best small { font-size: 9.5px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--p-mut); }
.hud-best b { font: 700 12.5px var(--disp); color: var(--p-ink); }

.fever-pill { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 5px; row-gap: 2px; min-width: 112px; padding: 5px 10px 6px 8px; border-radius: 15px; background: rgba(30,14,82,.78); border: 1.5px solid rgba(255,220,120,.6); transition: transform .2s, box-shadow .2s; }
.fever-pill .ic { width: 15px; height: 15px; color: #ffe070; stroke: none; }
.fever-pill span { font: 700 10.5px/1 var(--disp); letter-spacing: .05em; text-transform: uppercase; color: #fff3c2; }
.fever-pill u { grid-column: 1 / -1; display: block; height: 6px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; text-decoration: none; }
.fever-pill u i { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, #ff7eb6, #ffe066, #66f5b4, #70b5ff); transition: width .16s linear; }
.fever-pill.on { border-color: #fff; background: linear-gradient(100deg, rgba(255,95,175,.92), rgba(255,190,65,.92)); box-shadow: 0 0 22px rgba(255,200,90,.82); animation: feverGlow .6s ease-in-out infinite alternate; }
.fever-pill.on span { color: #fff; }
.fever-pill.on u i { background: #fff; }
@keyframes feverGlow { from { transform: scale(1); } to { transform: scale(1.05); } }

.combo-pill { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 7px; row-gap: 2px; padding: 5px 11px 6px 9px; border-radius: 16px; background: linear-gradient(100deg, rgba(255,95,168,.88), rgba(255,175,60,.85)); border: 1.5px solid #fff2b8; box-shadow: 0 6px 20px rgba(255,100,160,.45); animation: pop .25s var(--ease); }
.combo-pill b { font: 700 22px/1 var(--disp); color: #fff; text-shadow: 0 2px 0 rgba(120,20,70,.65); }
.combo-pill span { font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #fff; line-height: 1.15; }
.combo-pill u { grid-column: 1 / -1; display: block; height: 4px; border-radius: 3px; background: rgba(0,0,0,.28); overflow: hidden; text-decoration: none; } .combo-pill u i { display: block; height: 100%; width: 100%; transform-origin: left; background: #fff; }

.order-pill { position: absolute; right: 12px; top: calc(var(--sat) + 114px); display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 17px; background: rgba(255,255,255,.88); border: 2px solid rgba(255,212,102,.85); color: var(--p-ink); box-shadow: 0 6px 18px rgba(28,12,68,.3); animation: pop .3s var(--ease); max-width: 198px; }
.order-pill.done { border-color: var(--ok-bright); background: linear-gradient(100deg, #42e3a2, #22b380); color: #fff; }
.ord-av { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(120,82,200,.14); }
.ord-av .av { border: 0; background: none; }
.ord-av .ic { width: 18px; height: 18px; color: #e89600; }
.ord-t { display: grid; min-width: 0; gap: 0; }
.ord-t b { font: 700 11px/1.15 var(--disp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-t small { font-size: 10px; font-weight: 800; color: var(--p-mut); }
.order-pill.done .ord-t small { color: #eafff5; }
.ord-rw { flex: none; padding: 2px 7px; border-radius: 99px; background: linear-gradient(180deg, var(--gold1), var(--gold2)); border: 1px solid #fff; font: 700 11px var(--disp); color: var(--goldInk); }

.discover { position: absolute; left: 50%; top: calc(var(--sat) + 122px); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 24px; background: linear-gradient(100deg, rgba(84,42,190,.96), rgba(210,64,165,.95)); border: 2px solid #ffe89e; box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 32px rgba(255,200,90,.45); animation: drop .55s var(--ease); white-space: nowrap; z-index: 6; }
.discover .dv-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #8b68f0, #341b8a); }
.discover .dv-t { display: grid; gap: 0; }
.discover small { font: 700 10.5px var(--disp); letter-spacing: .12em; color: var(--gold1); }
.discover b { font: 700 17.5px/1.15 var(--disp); color: #fff; }
.discover em { font-style: normal; font-size: 12px; font-weight: 800; color: #ffeeb0; }
@keyframes drop { from { transform: translate(-50%, -20px) scale(.9); opacity: 0; } }
.hint { position: absolute; left: 0; right: 0; bottom: 24%; display: grid; justify-items: center; gap: 4px; text-align: center; text-shadow: 0 2px 10px rgba(24,8,60,.88); }
.hint b { font: 700 22px var(--disp); letter-spacing: .02em; } .hint small { color: #f4eeff; font-weight: 800; font-size: 13.5px; }
.hint-hand { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(255,255,255,.92); position: relative; margin-bottom: 6px; animation: tap 1.2s ease-in-out infinite; }
.hint-hand::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: rgba(255,255,255,.92); }
@keyframes tap { 0%, 100% { transform: translateX(-26px) scale(1); opacity: .9; } 50% { transform: translateX(26px) scale(.84); opacity: .6; } }
.target-hint { position: absolute; left: 50%; top: calc(var(--sat) + 66px); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(34,16,92,.94); border: 2px solid var(--gold2); box-shadow: 0 8px 26px rgba(0,0,0,.45); pointer-events: auto; white-space: nowrap; z-index: 7; }
.target-hint b { font-size: 13px; font-weight: 800; color: var(--gold1); }
.target-hint .btn.ghost { color: #e2d6ff; }

/* 4'lü Güçlendirici Çubuğu (3D pop/shake/evolve/wild1 görselleri) */
.power-bar { position: absolute; left: 10px; right: 10px; bottom: calc(var(--sab) + 10px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; pointer-events: none; }
.pwb {
  pointer-events: auto; position: relative; display: grid; justify-items: center; align-content: center; gap: 1px;
  height: 66px; padding: 4px 4px 5px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(235,222,255,.84));
  border: 2px solid rgba(255, 210, 96, .88);
  box-shadow: 0 4px 0 rgba(164, 102, 12, .52), 0 8px 18px rgba(24, 10, 62, .35);
  color: var(--p-ink);
  transition: transform .12s var(--ease), opacity .2s;
}
.pwb:active { transform: translateY(2px) scale(.94); }
.pwb .pi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: none; box-shadow: none; }
.pwb .pi img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(42, 16, 86, .3)); }
.pwb .pl { font: 700 11px/1.1 var(--disp); color: var(--p-ink); }
.pwb .cnt { position: absolute; top: -6px; right: -4px; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font: 700 11.5px var(--disp); font-style: normal; color: #fff; background: linear-gradient(180deg, var(--pink2), var(--pink3)); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(130,15,65,.4); }
.pwb.empty .cnt { background: linear-gradient(180deg, var(--mint1), var(--mint3)); color: var(--mintInk); }
.pwb.empty .cnt::before { content: "+"; }
.pwb.active { border-color: #fff; box-shadow: 0 0 0 3px var(--gold2), 0 8px 22px rgba(255,200,60,.65); transform: translateY(-2px); }

/* ---------- üst katmanlar & 9-slice menu.webp pop-up çerçeveleri ---------- */
.overlay { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: calc(var(--sat) + 14px) 14px calc(var(--sab) + 14px); background: rgba(16, 8, 48, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }

.card, .modal-card, .res-card {
  position: relative;
  border: 1px solid transparent;
  border-image-source: url('../ui/menu.webp');
  border-image-slice: 24% 15% 13% 15% fill;
  border-image-width: 72px 24px 26px 24px;
  border-image-repeat: stretch;
  background: transparent;
  color: var(--p-ink);
  filter: drop-shadow(0 18px 34px rgba(18, 6, 52, .52));
}

.card { width: min(100%, 358px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 18px 26px 28px; text-align: center; animation: pop .35s var(--ease); }
@keyframes pop { from { transform: translateY(18px) scale(.94); opacity: 0; } }
.card h2 {
  font: 700 22px/1.1 var(--disp); letter-spacing: .02em; color: #fff;
  text-shadow: 0 2px 0 rgba(152, 24, 92, .85), 0 4px 10px rgba(96, 12, 62, .38);
  min-height: 46px; display: grid; place-items: center; margin-bottom: 6px; padding: 0 18px;
}
.card p { color: var(--p-mut); font-size: 13.5px; margin-top: -2px; font-weight: 800; }
.revive-card { padding-top: 72px; }
.revive-card h2 { color: var(--p-ink); text-shadow: none; min-height: auto; margin-bottom: 0; padding: 0; }

.tg-row { display: flex; gap: 8px; justify-content: center; }
.tg { display: flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; background: var(--p-card2); border: 1.5px solid var(--p-line2); color: var(--p-ink); font-weight: 800; font-size: 13px; box-shadow: 0 3px 0 rgba(120,74,184,.18); }
.tg.off { opacity: .5; text-decoration: line-through; background: rgba(255,255,255,.45); }
.rv-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #ff9d6e, #db275e); box-shadow: 0 8px 24px rgba(255,90,110,.5); }
.rv-icon .ic { width: 32px; height: 32px; stroke: #fff; fill: rgba(255,255,255,.32); }
.revive-card .btn { white-space: normal; line-height: 1.15; padding-top: 8px; padding-bottom: 8px; height: auto; min-height: 52px; }
.btn em { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.16); }

/* sonuç penceresi */
.res { display: flex; flex-direction: column; align-items: center; overflow-y: auto; }
.res-card { width: min(100%, 386px); flex: none; margin: auto; display: grid; gap: 10px; padding: 14px 26px 28px; animation: pop .4s var(--ease); }
.res-head { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-bottom: 4px; padding: 0 18px; }
.res-head small { font: 700 14px var(--disp); letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 rgba(145,22,88,.82); }
.badge-new { padding: 3px 10px; border-radius: 999px; font: 700 11.5px var(--disp); letter-spacing: .03em; color: var(--goldInk); background: linear-gradient(180deg, var(--gold1), var(--gold2)); border: 1.5px solid #fff; box-shadow: 0 3px 10px rgba(180,100,0,.35); animation: blink 1.2s ease-in-out infinite; }
.res-score { text-align: center; display: grid; gap: 0; }
.res-score small { font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--p-mut); }
.res-score b { font: 700 58px/1.05 var(--disp); background: linear-gradient(180deg, #ff58a6, #6c30d8); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(255,255,255,.85)); }
.res-cr { display: flex; justify-content: center; align-items: center; gap: 4px; min-height: 34px; margin-top: -2px; flex-wrap: wrap; }
.res-cr .av { border: 0; background: none; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.res-grid > div { display: grid; justify-items: center; gap: 2px; padding: 9px 2px 7px; border-radius: 16px; background: var(--p-card); border: 1.5px solid var(--p-line); }
.res-grid .ic { width: 19px; height: 19px; color: #e23686; } .res-grid b { font: 700 18px var(--disp); color: var(--p-ink); } .res-grid small { font-size: 10px; color: var(--p-mut); font-weight: 800; }
.earn { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 20px; background: linear-gradient(100deg, rgba(255,236,170,.72), rgba(215,244,255,.72)); border: 1.5px solid rgba(238,180,55,.65); }
.earn-l { display: grid; gap: 2px; } .earn-l small { font-size: 10.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #8c4b00; }
.earn-v { display: flex; gap: 12px; } .earn-v span { display: flex; align-items: center; gap: 5px; } .earn-v .ui-img { width: 22px; height: 22px; } .earn-v b { font: 700 21px var(--disp); color: var(--p-ink); }
.xp-block { display: grid; gap: 5px; } .xp-top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: var(--p-ink); } .xp-top span { color: #2b68d6; }
.xpbar { height: 8px; border-radius: 99px; background: rgba(94, 52, 160, .18); overflow: hidden; border: 1px solid rgba(255,255,255,.65); }
.xpbar.big { height: 11px; border-radius: 99px; }
.xpbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink2), #ffbe3d, #48e8a6); transition: width .9s var(--ease); }
.new-cr { display: grid; gap: 7px; padding: 10px 12px; border-radius: 18px; background: var(--p-card); border: 1.5px solid var(--p-line2); }
.new-cr > b { font: 700 12.5px var(--disp); letter-spacing: .08em; color: #b54596; text-align: center; }
.new-cr .row { display: flex; align-items: center; gap: 10px; } .new-cr .row .av { border: 0; background: none; } .new-cr .row .nm { flex: 1; font-weight: 800; font-size: 13.5px; text-align: left; color: var(--p-ink); } .new-cr .row em { font-style: normal; font: 700 12.5px var(--disp); color: #b56500; }
.res-rank { text-align: center; font-size: 13.5px; font-weight: 800; color: #2a5ed6; } .res-rank:empty { display: none; }
.note { font-size: 12.5px; color: var(--p-mut); font-weight: 700; } .note.c { text-align: center; }
.res-btns { display: grid; gap: 8px; }

/* ---------- düğmeler (3D dokunsal jöle) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 18px; border-radius: 18px; font: 700 15.5px var(--disp); transition: transform .12s, filter .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: translateY(2px) scale(.97); } .btn:disabled { opacity: .45; pointer-events: none; }
.btn.lg { min-height: 54px; font-size: 17.5px; border-radius: 20px; } .btn.sm { min-height: 38px; padding: 0 13px; font-size: 13.5px; border-radius: 14px; }
.btn.primary { color: var(--pinkInk); background: linear-gradient(180deg, var(--pink1), var(--pink2) 48%, var(--pink3)); border: 1.5px solid rgba(255,235,175,.7); box-shadow: 0 2px 0 rgba(255,255,255,.55) inset, 0 -3px 0 rgba(125,10,72,.45) inset, 0 4px 0 #8a124c, 0 8px 18px rgba(255,80,160,.3); text-shadow: 0 1px 0 rgba(125,10,72,.5); }
.btn.gold { color: var(--goldInk); background: linear-gradient(180deg, var(--gold1), var(--gold2) 48%, var(--gold3)); border: 1.5px solid #fff4cc; box-shadow: 0 2px 0 rgba(255,255,255,.65) inset, 0 -3px 0 rgba(155,75,0,.38) inset, 0 4px 0 #9e5300, 0 8px 16px rgba(255,175,30,.28); }
.btn.gem { color: var(--gemInk); background: linear-gradient(180deg, var(--gem1), var(--gem2) 48%, var(--gem3)); border: 1.5px solid #e6fbff; box-shadow: 0 2px 0 rgba(255,255,255,.65) inset, 0 -3px 0 rgba(10,45,155,.38) inset, 0 4px 0 #163b9e, 0 8px 16px rgba(60,145,255,.28); }
.btn.ad { color: var(--mintInk); background: linear-gradient(180deg, var(--mint1), var(--mint2) 48%, var(--mint3)); border: 1.5px solid #e4fff2; box-shadow: 0 2px 0 rgba(255,255,255,.65) inset, 0 -3px 0 rgba(0,95,65,.38) inset, 0 4px 0 #086b49, 0 8px 16px rgba(40,225,155,.28); }
.btn.secondary { background: var(--p-card2); color: var(--p-ink); border: 1.5px solid rgba(135, 88, 206, .28); box-shadow: 0 3px 0 rgba(88, 46, 148, .22); }
.btn.ghost { color: var(--p-mut); min-height: 38px; font-family: var(--ui); font-weight: 800; }
.btn.danger { background: linear-gradient(180deg, #ff7e8f, #d62840); color: #fff; box-shadow: 0 4px 0 #821022; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn .ic, .btn .ui-img { width: 20px; height: 20px; }
.btn-row .btn { padding: 0 10px; gap: 6px; font-size: 14.5px; }

/* ---------- sayfalar (9-slice menu.webp esnek çerçeveli) ---------- */
.sheet {
  position: fixed;
  top: calc(var(--sat) + 4px);
  bottom: calc(var(--sab) + 4px);
  left: 0; right: 0; margin: 0 auto;
  width: calc(var(--sw) - 8px);
  z-index: 20; display: flex; flex-direction: column;
  border: 1px solid transparent;
  border-image-source: url('../ui/menu.webp');
  border-image-slice: 24% 15% 13% 15% fill;
  border-image-width: 74px 20px 24px 20px;
  border-image-repeat: stretch;
  background: transparent;
  color: var(--p-ink);
  transform: translateY(105%); visibility: hidden;
  transition: transform .36s var(--ease), visibility 0s .36s;
}
.sheet.open {
  transform: none; visibility: visible;
  transition: transform .36s var(--ease), visibility 0s;
  box-shadow: 0 0 0 100vmax rgba(16, 8, 48, .66);
}
.sh-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 14px 20px 16px; min-height: 74px; }
.sh-head h2 {
  flex: 1; text-align: center; font: 700 22px/1.05 var(--disp); letter-spacing: .02em; color: #fff;
  text-shadow: 0 2px 0 rgba(152, 24, 92, .85), 0 4px 12px rgba(96, 12, 62, .35);
}
.sh-head .sp { width: 42px; flex: none; }
.sh-head .close-bubble { width: 42px; height: 42px; padding: 0; background: none; border: 0; box-shadow: none; }
.sh-head .close-bubble img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(56,14,72,.42)); }

.sh-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 22px 24px; -webkit-overflow-scrolling: touch; }
.mini-wallet { display: flex; gap: 5px; flex: none; }
.mini-wallet span { display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 9px 0 6px; border-radius: 999px; background: rgba(255,255,255,.88); border: 1.5px solid rgba(255,212,102,.85); color: var(--p-ink); box-shadow: 0 2px 6px rgba(42,16,86,.2); }
.mini-wallet .ui-img { width: 19px; height: 19px; }
.mini-wallet b { font: 700 13px var(--disp); color: var(--p-ink); }

.seg { flex: none; display: flex; gap: 4px; margin: 2px 20px 10px; padding: 4px; border-radius: 18px; background: rgba(255,255,255,.58); border: 1.5px solid rgba(255,255,255,.85); box-shadow: 0 3px 10px rgba(72,36,130,.12); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1; min-width: max-content; padding: 8px 12px; border-radius: 13px; font: 700 13.5px var(--disp); color: var(--p-mut); transition: background .2s, color .2s; white-space: nowrap; }
.seg button.on { color: #fff; background: linear-gradient(180deg, var(--pink2), var(--pink3)); box-shadow: 0 3px 10px rgba(255,80,160,.36); }
.empty { text-align: center; color: var(--p-mut); padding: 30px 10px; }
.list { display: grid; gap: 8px; margin-top: 12px; }

/* sıralama */
.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.lb li { display: grid; grid-template-columns: 32px 44px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; border-radius: 18px; background: var(--p-card); border: 1.5px solid var(--p-line); color: var(--p-ink); cursor: pointer; box-shadow: 0 3px 8px rgba(72,36,130,.08); }
.lb li.me { border-color: var(--gold2); background: linear-gradient(180deg, rgba(255,245,196,.92), rgba(255,228,150,.78)); }
.lb .rk { font: 700 17px var(--disp); text-align: center; color: var(--p-mut); }
.lb li:nth-child(1) .rk { color: #d48800; font-size: 21px; } .lb li:nth-child(2) .rk { color: #667599; font-size: 19px; } .lb li:nth-child(3) .rk { color: #c4682b; font-size: 19px; }
.lb .nm { display: grid; min-width: 0; } .lb .nm b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--p-ink); } .lb .nm small { color: var(--p-mut); font-size: 11px; font-weight: 800; }
.lb .sc { font: 700 18px var(--disp); color: #5b28c4; }
.lb-skel { height: 60px; border-radius: 18px; background: linear-gradient(100deg, rgba(255,255,255,.35) 30%, rgba(255,255,255,.78) 50%, rgba(255,255,255,.35) 70%); background-size: 220% 100%; animation: shimmer 1.2s linear infinite; list-style: none; }
@keyframes shimmer { to { background-position: -220% 0; } }
.lb-me { flex: none; display: flex; align-items: center; gap: 12px; margin: 0 20px 22px; padding: 11px 14px; border-radius: 20px; background: linear-gradient(100deg, rgba(255,244,195,.95), rgba(255,232,165,.88)); border: 2px solid var(--gold2); color: var(--p-ink); box-shadow: 0 6px 16px rgba(72,36,130,.15); }
.lb-me .rk { font: 700 21px var(--disp); color: #b86c00; } .lb-me .nm { flex: 1; font-weight: 800; font-size: 13.5px; } .lb-me .sc { font: 700 19px var(--disp); color: var(--p-ink); }
.av { display: inline-block; flex: none; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #a282f8, #5835ba); border: 1.5px solid rgba(255,255,255,.72); }
.av canvas { display: block; }
.chip-av .av { border: 0; background: none; }

/* albüm (9-slice menu2.webp kartları) */
.al-hero { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 22px; background: var(--p-card2); border: 1.5px solid var(--p-line2); box-shadow: 0 4px 12px rgba(72,36,130,.1); }
.al-hero .ah-t { flex: 1; min-width: 0; display: grid; gap: 4px; } .al-hero b { font: 700 18px var(--disp); color: var(--p-ink); } .al-hero small { color: var(--p-mut); font-size: 12px; font-weight: 800; }
.al-hero .xpbar { height: 8px; }
.al-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.al-cell {
  position: relative; display: grid; justify-items: center; align-content: space-between; gap: 2px;
  padding: 16px 8px 10px; min-height: 138px; text-align: center;
  border: 1px solid transparent;
  border-image-source: url('../ui/menu2.webp');
  border-image-slice: 20% 16% 22% 16% fill;
  border-image-width: 24px 16px 26px 16px;
  border-image-repeat: stretch;
  background: transparent;
  color: var(--p-ink);
  filter: drop-shadow(0 4px 8px rgba(72, 32, 118, .16));
}
.al-cell .av { border: 0; background: none; }
.al-cell .nm { font-size: 11.5px; font-weight: 800; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--p-ink); }
.al-cell small { font-size: 10px; color: var(--p-mut); font-weight: 900; }
.al-cell .rw { display: inline-flex; align-items: center; gap: 3px; font: 700 11px var(--disp); color: var(--goldInk); padding: 1px 6px; }
.al-cell .rw .ui-img { width: 14px; height: 14px; }
.al-cell.unk { opacity: .86; } .al-cell.unk .nm { letter-spacing: .16em; color: var(--p-dim); }
.al-cell.top { filter: drop-shadow(0 0 10px rgba(255, 200, 60, .65)); }

.al-bar, .sp-bar {
  flex: none; display: flex; align-items: center; gap: 12px;
  margin: 0 20px 22px; padding: 10px 14px; border-radius: 20px;
  background: var(--p-card2); border: 1.5px solid var(--p-line2);
  box-shadow: 0 6px 16px rgba(62, 24, 112, .16);
  color: var(--p-ink);
}
.al-bar .info, .sp-bar .info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.al-bar .info b, .sp-bar .info b { font: 700 16.5px var(--disp); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--p-ink); }
.al-bar .info small, .sp-bar .info small { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--p-mut); }
.al-bar .btn, .sp-bar .btn { min-width: 126px; }

/* mağaza (9-slice menu2.webp ürün kartları) */
.sp-stage { flex: none; position: relative; height: clamp(144px, 22vh, 195px); margin: 0 20px 10px; border-radius: 22px; overflow: hidden; border: 2px solid rgba(255,212,102,.82); background: #21125e; box-shadow: 0 6px 16px rgba(56,22,104,.22); }
.sp-stage canvas { width: 100%; height: 100%; display: block; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cell {
  position: relative; display: grid; justify-items: center; align-content: space-between; gap: 3px;
  padding: 14px 8px 10px; min-height: 144px; text-align: center;
  border: 1px solid transparent;
  border-image-source: url('../ui/menu2.webp');
  border-image-slice: 20% 16% 22% 16% fill;
  border-image-width: 24px 16px 26px 16px;
  border-image-repeat: stretch;
  background: transparent;
  color: var(--p-ink);
  transition: transform .12s var(--ease), filter .18s;
  filter: drop-shadow(0 4px 8px rgba(72, 32, 118, .15));
}
.cell:active { transform: scale(.95); }
.cell.sel { filter: drop-shadow(0 0 10px rgba(255, 92, 168, .75)); transform: translateY(-2px); }
.cell.on::after { content: ""; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 8'/%3E%3C/svg%3E") center/12px no-repeat; border: 2px solid #fff; }
.cell .vis { height: 78px; display: grid; place-items: center; } .cell .vis canvas { border-radius: 12px; display: block; box-shadow: 0 3px 8px rgba(48,18,86,.22); }
.cell .nm { font-size: 11.5px; font-weight: 800; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--p-ink); }
.cell .pr { display: inline-flex; align-items: center; gap: 3px; font: 700 12px var(--disp); color: var(--goldInk); }
.cell .pr .ui-img { width: 15px; height: 15px; }
.cell .pr.gem { color: #0a3c85; }
.cell .lk { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 900; color: var(--p-mut); } .cell .lk .ic { width: 12px; height: 12px; }
.cell.locked .vis { opacity: .48; filter: grayscale(.55); }
.cell .own { font-size: 10.5px; font-weight: 900; color: #0b7d50; }

.rar-common { color: #6e58a6; } .rar-rare { color: #1d6ee0; } .rar-epic { color: #8c2ee0; } .rar-legendary { color: #c46e00; }

/* güçlendirici kartları */
.pw-card { display: grid; grid-template-columns: 58px 1fr; gap: 11px; align-items: center; padding: 12px; margin-bottom: 10px; border-radius: 22px; background: var(--p-card2); border: 1.5px solid var(--p-line2); box-shadow: 0 4px 12px rgba(72,36,130,.1); color: var(--p-ink); }
.pw-card .pi { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,235,190,.65), rgba(235,212,255,.35)); border: 1.5px solid rgba(255,212,102,.55); }
.pw-card .pi img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(46,16,86,.28)); }
.pw-card .pt { display: grid; gap: 2px; min-width: 0; } .pw-card .pt b { font: 700 16px var(--disp); color: var(--p-ink); } .pw-card .pt small { color: var(--p-mut); font-size: 12px; font-weight: 700; line-height: 1.3; }
.pw-card .pt .own { display: inline-flex; align-items: center; gap: 5px; font: 700 12.5px var(--disp); color: #d42678; }
.pw-card .acts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ödüller + Yıldız Yolu */
.daily-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dday {
  position: relative; display: grid; justify-items: center; align-content: space-between; gap: 2px;
  padding: 13px 6px 9px; min-height: 102px; text-align: center;
  border: 1px solid transparent;
  border-image-source: url('../ui/menu2.webp');
  border-image-slice: 20% 16% 22% 16% fill;
  border-image-width: 22px 14px 24px 14px;
  border-image-repeat: stretch;
  background: transparent;
  color: var(--p-ink);
}
.dday small { font-size: 9.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--p-mut); }
.dday .ui-img { width: 28px; height: 28px; }
.dday .amt { font: 700 12.5px var(--disp); color: var(--goldInk); }
.dday.done { opacity: .55; } .dday.done .both { opacity: .18; }
.dday.done::after { content: ""; position: absolute; inset: 4px; border-radius: 16px; background: rgba(56,22,102,.32) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235ef2b6' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 8'/%3E%3C/svg%3E") center/28px no-repeat; }
.dday.now { filter: drop-shadow(0 0 12px rgba(255,200,60,.82)); animation: pulse2 2s ease-in-out infinite; }
@keyframes pulse2 { 50% { filter: drop-shadow(0 0 18px rgba(255,120,185,.95)); } }
.dday.big { grid-column: span 2; } .dday .both { display: flex; gap: 6px; align-items: center; justify-content: center; }
.claim-box { display: grid; gap: 8px; margin: 14px 0 6px; }
.streak-hero { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 20px; background: linear-gradient(100deg, rgba(255,232,190,.92), rgba(255,212,165,.85)); border: 1.5px solid rgba(255,165,75,.75); }
.streak-hero .ic { width: 34px; height: 34px; stroke: #eb6d15; fill: rgba(255,140,65,.5); } .streak-hero b { font: 700 27px var(--disp); color: #b54500; } .streak-hero span { font-weight: 800; color: #7a3500; font-size: 13.5px; }

.pass-hero { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 20px; background: linear-gradient(100deg, rgba(220,246,255,.92), rgba(235,222,255,.9)); border: 1.5px solid rgba(112,195,255,.72); color: var(--p-ink); }
.pass-hero .ui-img { width: 42px; height: 42px; }
.pass-hero .ic { width: 34px; height: 34px; color: #e59800; }
.pass-hero b { font: 700 18px var(--disp); display: block; color: var(--p-ink); }
.pass-hero small { color: var(--p-mut); font-size: 12px; font-weight: 700; }
.pass-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 9px; border-radius: 19px; background: var(--p-card); border: 1.5px solid var(--p-line); color: var(--p-ink); }
.pass-row.ready { border-color: var(--gold2); background: linear-gradient(100deg, rgba(255,244,195,.92), rgba(255,226,242,.88)); }
.pass-row.big { border-color: rgba(88,185,255,.7); }
.pass-lv { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font: 700 16px var(--disp); background: linear-gradient(180deg, #9272f5, #5734c4); color: #fff; }
.pass-row.ready .pass-lv { background: linear-gradient(180deg, var(--gold1), var(--gold3)); color: var(--goldInk); }
.pass-row .pt { display: grid; gap: 2px; min-width: 0; }
.pass-row .pt b { font: 700 14px var(--disp); color: var(--p-ink); }
.pass-row .pt small { color: var(--p-mut); font-size: 11.5px; font-weight: 700; }
.pass-row .acts { display: flex; gap: 6px; align-items: center; }

.mis { display: grid; gap: 8px; padding: 12px; border-radius: 20px; background: var(--p-card); border: 1.5px solid var(--p-line); margin-bottom: 10px; color: var(--p-ink); }
.mis.done { border-color: var(--ok); background: rgba(226,255,242,.85); }
.mis .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .mis .row > span:first-child { font-weight: 800; font-size: 14px; } .mis .row > span:last-child { font-size: 12px; font-weight: 800; color: var(--p-mut); white-space: nowrap; }
.mis .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rw-chip { display: inline-flex; align-items: center; gap: 4px; font: 700 14.5px var(--disp); color: var(--p-ink); } .rw-chip .ui-img { width: 19px; height: 19px; }
.mis .acts { display: flex; gap: 6px; }

.ach { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--p-card); border: 1.5px solid var(--p-line); margin-bottom: 10px; color: var(--p-ink); }
.ach.ready { border-color: var(--gold2); background: rgba(255,246,205,.9); box-shadow: 0 4px 14px rgba(255,195,55,.25); }
.ach .ai { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(180deg, #987aff, #5432d9); color: #fff; } .ach .ai .ic { width: 24px; height: 24px; }
.ach b { font: 700 15px var(--disp); color: var(--p-ink); } .ach .tiers { display: flex; gap: 3px; margin-top: 3px; } .ach .tiers i { width: 15px; height: 5px; border-radius: 99px; background: rgba(94,52,160,.2); } .ach .tiers i.on { background: var(--gold3); }
.ach small { display: block; color: var(--p-mut); font-size: 11.5px; font-weight: 700; margin: 3px 0 5px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; } .stat-grid > div { padding: 10px 12px; border-radius: 16px; background: var(--p-card); border: 1.5px solid var(--p-line); } .stat-grid dt { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--p-mut); } .stat-grid dd { margin: 2px 0 0; font: 700 19px var(--disp); color: var(--p-ink); }
.sect { margin: 18px 2px 8px; font-size: 11.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--p-mut); }

/* hazine */
.gift { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; border-radius: 22px; background: linear-gradient(100deg, rgba(220,248,255,.92), rgba(232,238,255,.88)); border: 1.5px solid rgba(82,190,255,.62); color: var(--p-ink); }
.gift.gold-gift { background: linear-gradient(100deg, rgba(255,244,196,.94), rgba(255,228,185,.88)); border-color: rgba(240,180,55,.68); }
.gift .gi { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.95); }
.gift .gi .ui-img { width: 38px; height: 38px; }
.gift .gt { flex: 1; min-width: 0; display: grid; gap: 1px; } .gift .gt b { font: 700 15.5px var(--disp); color: var(--p-ink); } .gift .gt small { color: var(--p-mut); font-size: 11.5px; font-weight: 700; }
.noads { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; background: var(--p-card); border: 1.5px solid var(--p-line); color: var(--p-ink); }
.noads .gt { flex: 1; display: grid; gap: 2px; } .noads .gt small { color: var(--p-mut); font-size: 12px; font-weight: 700; }
.tip { margin-top: 14px; text-align: center; color: var(--p-mut); font-size: 12px; }

/* hesap / ayarlar / profil */
.profile-top { display: flex; align-items: center; gap: 14px; } .profile-top h3 { font: 700 23px var(--disp); color: var(--p-ink); } .profile-top small { color: var(--p-mut); font-weight: 800; }
.form { display: grid; gap: 12px; } .field { display: grid; gap: 6px; } .field label { font-size: 12px; font-weight: 800; color: var(--p-mut); letter-spacing: .06em; text-transform: uppercase; }
.field .in { position: relative; } .field input { width: 100%; height: 50px; padding: 0 46px 0 16px; border-radius: 16px; background: rgba(255,255,255,.88); color: var(--p-ink); border: 1.5px solid rgba(135,88,206,.35); outline: none; font-size: 16px; } .field input:focus { border-color: var(--pink2); box-shadow: 0 0 0 3px rgba(255,95,168,.24); }
.field .eye { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; display: grid; place-items: center; color: var(--p-mut); } .hint2 { font-size: 12px; color: var(--p-mut); }
.form-err { padding: 10px 12px; border-radius: 14px; background: rgba(255,80,110,.16); border: 1.5px solid rgba(220,40,75,.55); color: #a81234; font-size: 13px; font-weight: 800; }
.perks { list-style: none; margin: 0 0 14px; padding: 12px 14px; border-radius: 18px; background: var(--p-card); border: 1.5px solid var(--p-line); display: grid; gap: 7px; }
.perks li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--p-ink); } .perks .ic { width: 18px; height: 18px; color: var(--ok); stroke-width: 3; }
.seg + .form, .seg + .perks { margin-top: 4px; } .sh-body > .seg { margin-left: 0; margin-right: 0; }
.row-set { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 10px; margin-bottom: 6px; border-radius: 16px; background: var(--p-card); border: 1px solid var(--p-line); color: var(--p-ink); }
.row-set > div:first-child { display: grid; gap: 1px; } .row-set small { color: var(--p-mut); font-size: 11.5px; font-weight: 700; } .row-set span { font-weight: 800; }
.sw { position: relative; width: 52px; height: 30px; flex: none; border-radius: 99px; background: rgba(108,72,168,.28); transition: background .2s; } .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 2px 6px rgba(42,16,86,.35); } .sw.on { background: linear-gradient(180deg, var(--pink2), var(--pink3)); } .sw.on::after { transform: translateX(22px); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 122px; height: 28px; background: none; }
input[type=range]::-webkit-slider-runnable-track { height: 7px; border-radius: 99px; background: rgba(108,72,168,.25); }
input[type=range]::-moz-range-track { height: 7px; border-radius: 99px; background: rgba(108,72,168,.25); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7.5px; border-radius: 50%; background: linear-gradient(180deg, var(--pink1), var(--pink3)); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(56,16,96,.4); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--pink2); border: 2px solid #fff; }
.mini-seg { display: flex; gap: 3px; padding: 3px; border-radius: 13px; background: rgba(108,72,168,.14); } .mini-seg button { padding: 7px 10px; border-radius: 10px; font: 700 12px var(--disp); color: var(--p-mut); } .mini-seg button.on { background: linear-gradient(180deg, var(--pink2), var(--pink3)); color: #fff; }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin: 18px 0 8px; } .links a { color: #5b28c4; font-size: 13px; font-weight: 800; } .ver { text-align: center; color: var(--p-mut); font-size: 12px; padding-bottom: 8px; line-height: 1.5; }
.set-promo { margin-top: 12px; }
.code { font: 700 20px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; padding: 14px; border-radius: 16px; background: #2c1662; border: 2px dashed var(--gold2); color: var(--gold1); text-align: center; -webkit-user-select: text; user-select: text; word-break: break-all; }
.chk { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; text-align: left; color: var(--p-ink); } .chk input { width: 22px; height: 22px; accent-color: var(--pink2); }

/* modal (9-slice menu.webp) */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 14px; }
.modal-bg { position: absolute; inset: 0; background: rgba(16, 8, 48, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .2s; }
.modal-card { width: min(100%, 368px); max-height: 90vh; overflow-y: auto; display: grid; gap: 11px; padding: 16px 26px 28px; animation: pop .3s var(--ease); }
.modal-card > h3 {
  font: 700 20px/1.1 var(--disp); text-align: center; color: #fff;
  text-shadow: 0 2px 0 rgba(152, 24, 92, .85), 0 4px 10px rgba(96, 12, 62, .38);
  min-height: 46px; display: grid; place-items: center; margin-bottom: 6px; padding: 0 18px;
}
.modal-card > p { color: var(--p-mut); font-size: 13.5px; text-align: center; font-weight: 700; }
.opts { display: grid; gap: 8px; } .opts button { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 16px; background: var(--p-card); border: 1px solid var(--p-line); font-weight: 800; text-align: left; color: var(--p-ink); } .opts button.danger { color: #c41c40; }

.toasts { position: fixed; left: 0; right: 0; top: calc(var(--sat) + 12px); z-index: 80; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { max-width: min(92vw, 420px); padding: 11px 18px; border-radius: 18px; background: rgba(42, 20, 112, .96); border: 2px solid rgba(255,220,130,.75); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px rgba(18,6,48,.48); animation: toast .35s var(--ease); text-align: center; }
.toast.ok { border-color: var(--ok-bright); } .toast.err { border-color: #ff6e88; } .toast.gold { border-color: var(--gold2); }
@keyframes toast { from { transform: translateY(-14px); opacity: 0; } }

/* sandık, kapsül, balon ve çark pencereleri */
.chest-modal { text-align: center; display: grid; gap: 10px; justify-items: center; width: 100%; }
.chest-art { position: relative; width: 118px; height: 112px; display: grid; place-items: center; }
.chest-art img { width: 108px; height: 108px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(72, 28, 120, .35)); }
.chest-art .ic { width: 92px; height: 92px; color: #e59610; stroke-width: 1.7; fill: rgba(255,175,65,.28); }
.chest-art.shake img, .chest-art.shake .ic { animation: shake .5s ease-in-out 2; }
.chest-art.open img, .chest-art.open .ic { animation: pop .4s var(--ease); }
@keyframes shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg) scale(1.06); } 40% { transform: rotate(11deg) scale(1.06); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
.stock-dots { display: flex; gap: 7px; justify-content: center; } .stock-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(94,52,160,.2); border: 1.5px solid rgba(255,255,255,.85); } .stock-dots i.on { background: linear-gradient(180deg, var(--gold1), var(--gold3)); box-shadow: 0 0 10px rgba(255,195,65,.8); }
.pity-bar { width: 100%; display: grid; gap: 4px; padding: 8px 12px; border-radius: 14px; background: var(--p-card); border: 1.5px solid var(--p-line2); }
.pity-bar small { font-size: 11px; font-weight: 800; color: #8c4b00; }
.reward-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.reward-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--p-card2); border: 1.5px solid var(--p-line2); font: 700 16px var(--disp); color: var(--p-ink); animation: pop .4s var(--ease) backwards; box-shadow: 0 3px 8px rgba(72,36,130,.12); }
.reward-chip .ui-img { width: 24px; height: 24px; }
.reward-chip .ic { width: 20px; height: 20px; }

.wheel-wrap { position: relative; width: 238px; height: 238px; margin: 4px auto 2px; }
.wheel-wrap::after { content: ""; position: absolute; left: 50%; top: -8px; width: 0; height: 0; transform: translateX(-50%); border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 26px solid #fff; filter: drop-shadow(0 3px 4px rgba(56,16,96,.5)); z-index: 3; }
.wheel-disc { position: absolute; inset: 0; border-radius: 50%; border: 6px solid #ffe494; box-shadow: 0 0 0 3px rgba(255,255,255,.65), 0 10px 30px rgba(56,18,108,.35); background: conic-gradient(#ff64ad 0 45deg, #8b6eff 0 90deg, #ffca42 0 135deg, #48e8a6 0 180deg, #ff64ad 0 225deg, #52d5ff 0 270deg, #ffca42 0 315deg, #8b6eff 0 360deg); transition: transform 4.2s cubic-bezier(.12, .7, .1, 1); }
.wheel-disc .seg-i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.wheel-disc .seg-i span { position: absolute; left: -26px; top: -98px; width: 52px; display: grid; justify-items: center; gap: 1px; color: #fff; text-shadow: 0 1px 3px rgba(42,12,72,.75); }
.wheel-disc .seg-i .ui-img { width: 24px; height: 24px; }
.wheel-disc .seg-i b { font: 700 13px var(--disp); }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #fff, #ffe49c); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(56,18,108,.4); z-index: 2; }

/* azaltılmış hareket & hover */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; } .wheel-disc { transition-duration: 1.2s !important; } }
@media (hover: hover) { .btn:hover, .mode:hover, .promo:hover, .icon-btn:hover, .cell:hover, .card-mini:hover, .pwb:hover, .pet-chip:hover, .nav button:hover { filter: brightness(1.06); } }
.btn.dim { opacity: .62; }

/* dar telefonlar (320–360 px) */
@media (max-width: 360px) {
  .top { gap: 4px; }
  .chip-me, .ring { width: 46px; height: 46px; }
  .cur { height: 36px; padding: 0 6px 0 9px; gap: 4px; border-image-width: 9px 18px 9px 18px; } .cur .ui-img { width: 19px; height: 19px; } .cur b { font-size: 13px; min-width: 14px; } .cur .plus { width: 20px; height: 20px; }
  .icon-btn.bubble-btn { width: 42px; height: 42px; }
  .sh-head { gap: 6px; padding: 12px 16px 14px; } .sh-head h2 { font-size: 19px; min-width: 0; }
  .mini-wallet { gap: 4px; } .mini-wallet span { padding: 0 7px 0 5px; height: 29px; gap: 3px; } .mini-wallet b { font-size: 12px; }
  .mode { gap: 5px; padding: 5px 6px 5px 5px; } .mi { width: 28px; height: 28px; } .mt b { font-size: 11.5px; } .mt small { font-size: 9.5px; }
  .cell .nm, .al-cell .nm { font-size: 11px; } .card-mini { width: 58px; } .card-mini .ci, .card-mini .ci img { width: 36px; height: 36px; } .pwb { height: 60px; } .pwb .pi, .pwb .pi img { width: 34px; height: 34px; } .pwb .pl { font-size: 10px; }
  .wheel-wrap { width: 214px; height: 214px; } .wheel-disc .seg-i span { top: -86px; }
}

/* === DÜZELTMELER: ORTALANMIŞ MENÜLER, KURDELE HİZASI, FERAH ANA MENÜ === */

/* 1) Kaydırma çubuğu altın çerçeveye binmesin */
.sh-body { scrollbar-width: none; }
.sh-body::-webkit-scrollbar { display: none; }

/* 2) Pembe kurdele içindeki başlıklar her sayfada tam ortada dursun */
.sh-head { position: relative; justify-content: space-between; padding: 12px 18px 14px; min-height: 68px; }
.sh-head h2 {
  position: absolute; left: 50%; top: 30px; transform: translate(-50%, -50%);
  max-width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none; margin: 0;
}
.mini-wallet span { height: 29px; padding: 0 8px 0 5px; gap: 3px; }
.mini-wallet .ui-img { width: 17px; height: 17px; }
.mini-wallet b { font-size: 12.5px; }

/* 3) Hesap, Ayarlar, Hazine ve Oyuncu sayfaları dikeyde tam ortalı ve boşluksuz olsun */
#sheet-account, #sheet-settings, #sheet-treasury, #sheet-player {
  top: 0; bottom: 0;
  margin: auto;
  height: fit-content;
  max-height: calc(100% - var(--sat) - var(--sab) - 24px);
  transform: translateY(22px) scale(.94);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .24s ease, visibility 0s .3s;
}
#sheet-account.open, #sheet-settings.open, #sheet-treasury.open, #sheet-player.open {
  transform: none;
  opacity: 1;
  transition: transform .3s var(--ease), opacity .24s ease, visibility 0s;
}
#sheet-account .sh-body, #sheet-settings .sh-body, #sheet-treasury .sh-body, #sheet-player .sh-body {
  padding: 6px 22px 24px;
}

/* 4) Ana menü biraz daha sade ve ferah (kavanoza daha fazla alan) */
.logo-img { width: clamp(156px, min(50vw, 25vh), 220px); }
.tag { font-size: 10.5px; }
.stats-strip { margin-top: 5px; }
.stats-strip .st { height: 27px; padding: 0 10px; }
.card-mini { width: 58px; padding: 5px 2px 6px; border-radius: 19px; gap: 1px; }
.card-mini .ci, .card-mini .ci img { width: 36px; height: 36px; }
.card-mini b { font-size: 10.5px; }
.card-mini small { font-size: 9px; }
.pet-chip { padding: 4px 10px 4px 5px; gap: 7px; }
.pet-av { width: 30px; height: 30px; }
.bottom { padding: 14px 14px calc(var(--sab) + 8px); gap: 7px; }
.actions { gap: 7px; }
.play { height: 62px; border-radius: 24px; padding: 0 18px 0 10px; gap: 10px; }
.play-ic, .play-ic img { width: 52px; height: 52px; }
.play-t b { font-size: 25px; }
.play-t small { font-size: 11px; }
.mode { min-height: 46px; padding: 5px 8px 5px 6px; border-radius: 17px; gap: 6px; }
.mi { width: 30px; height: 30px; border-radius: 10px; }
.mi .ic { width: 18px; height: 18px; }
.mi img { width: 28px; height: 28px; }
.mt b { font-size: 12px; }
.mt small { font-size: 9.5px; }
.promo { padding: 5px 10px 5px 8px; border-radius: 16px; gap: 9px; }
.pr-ic { width: 30px; height: 30px; }
.pr-t b { font-size: 14px; }
.pr-go { padding: 5px 12px; font-size: 12px; }
.nav { padding: 4px 12px 5px; }
.nav button { padding: 3px 2px 1px; font-size: 11px; }
.nav .nav-ic { width: 31px; height: 31px; }

/* 5) Mağaza önizleme sahnesi (dikey oyun ekranı sığsın) */
.sp-stage { height: clamp(188px, 27vh, 236px); }