/* Lezzet Sokağı — portal (sade, oyun başlatıcı görünümü) */
:root {
  --p-bg: #f2f2f7;
  --p-card: #ffffff;
  --p-card2: #f6f6f9;
  --p-ink: #1c1c1e;
  --p-ink2: #6c6c72;
  --p-ink3: #aeaeb4;
  --p-sep: rgba(60, 60, 67, .12);
  --p-fill: rgba(120, 120, 128, .12);
  --p-accent: #d65a2e;
  --p-accent-2: #b8461f;
  --p-accent-ink: #fff;
  --p-green: #2fa45a;
  --p-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .05);
  --p-bar: rgba(20, 20, 22, .9);
  --p-bar-ink: #f5f5f7;
  --p-radius: 18px;
  --p-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gut: 16px;
  --tab-h: 58px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  color-scheme: light;
}
[data-theme="dark"] {
  --p-bg: #000000;
  --p-card: #1c1c1e;
  --p-card2: #2c2c2e;
  --p-ink: #f5f5f7;
  --p-ink2: #98989f;
  --p-ink3: #5e5e64;
  --p-sep: rgba(84, 84, 88, .55);
  --p-fill: rgba(120, 120, 128, .24);
  --p-accent: #ff7f50;
  --p-accent-2: #e8673a;
  --p-accent-ink: #1a0b05;
  --p-green: #34c759;
  --p-shadow: none;
  --p-bar: rgba(22, 22, 24, .86);
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--p-bg); }
body { font-family: var(--p-font); background: var(--p-bg); color: var(--p-ink); overscroll-behavior-y: none; letter-spacing: -.005em; }
input { -webkit-user-select: text; user-select: text; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
svg { display: block; }

.app { min-height: 100%; display: flex; flex-direction: column; }
main {
  flex: 1; width: 100%; max-width: 1000px; margin: 0 auto;
  padding: 0 calc(var(--gut) + var(--sar)) calc(var(--tab-h) + var(--sab) + 32px) calc(var(--gut) + var(--sal));
}
.card { background: var(--p-card); border-radius: var(--p-radius); box-shadow: var(--p-shadow); }

/* ---------- Üst çubuk (koyu cam; iOS durum çubuğu yazısı beyaz kalır) ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--p-bar); color: var(--p-bar-ink);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  padding: calc(var(--sat) + 8px) calc(var(--gut) + var(--sar)) 8px calc(var(--gut) + var(--sal));
}
.bar-in { max-width: 968px; margin: 0 auto; display: flex; align-items: center; gap: 10px; min-height: 40px; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-txt { font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.coin-pill {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums;
}
.coin-pill.bump { animation: bump .5s ease; }
@keyframes bump { 35% { transform: scale(1.1); } }
.coin {
  width: 18px; height: 18px; border-radius: 50%; flex: none; display: inline-block;
  background: radial-gradient(circle at 34% 30%, #fff1b8 0 14%, transparent 15%), linear-gradient(150deg, #ffd25e, #e2a11b);
  box-shadow: inset 0 0 0 1.5px rgba(160, 100, 0, .35), inset 0 -1.5px 0 rgba(120, 70, 0, .25);
}
.bar-btn, .me {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .1); color: var(--p-bar-ink); transition: transform .12s;
}
.bar-btn svg { width: 18px; height: 18px; }
.me { background: none; }
.bar-btn:active, .me:active { transform: scale(.9); }

/* ---------- Avatar ---------- */
.ava {
  --size: 34px; --gap: #1c1c1e;
  width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: inline-block;
}
.ava > span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; position: relative;
  background: var(--ava-bg); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.ava > span.ph { background: #8e8e93 center / cover no-repeat; }
.ava svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.ava[data-frame] { padding: 2.5px; position: relative; }
.ava[data-frame]::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--frame); }
.ava[data-frame] > span { box-shadow: 0 0 0 2px var(--gap), inset 0 1px 0 rgba(255, 255, 255, .25); }
main .ava { --gap: var(--p-card); }
.ava.big { --size: 56px; }
.ava.xl { --size: 76px; padding: 3px; }
.ava.sm { --size: 46px; }
.ava[data-frame="gold"] { --frame: conic-gradient(from 200deg, #fff0b3, #d69a1c, #ffe08a, #b47a0c, #fff0b3); }
.ava[data-frame="sakura"] { --frame: conic-gradient(from 120deg, #ffd1e1, #ea6d9a, #ffc2d6, #d94f82, #ffd1e1); }
.ava[data-frame="bambu"] { --frame: conic-gradient(from 60deg, #b9e48e, #3f8f2c, #a5d873, #2f7322, #b9e48e); }
.ava[data-frame="gumus"] { --frame: conic-gradient(from 30deg, #ffffff, #9aa3ad, #e9edf1, #6f7882, #ffffff); }
/* hareketli çerçeveler */
.ava[data-frame="gokkusagi"] { --frame: conic-gradient(#ff5f6d, #ffc371, #47e891, #3fa9f5, #a66cff, #ff5f6d); }
.ava[data-frame="gokkusagi"]::before { animation: ava-spin 3s linear infinite; }
.ava[data-frame="neon"] { --frame: conic-gradient(#00e5ff, #7c4dff, #ff3dcb, #00e5ff); }
.ava[data-frame="neon"]::before { animation: ava-spin 4s linear infinite, ava-neon 1.4s ease-in-out infinite alternate; }
.ava[data-frame="ates"] { --frame: conic-gradient(#ffd000, #ff6a00, #ff2d00, #ff8a00, #ffd000); }
.ava[data-frame="ates"]::before { animation: ava-spin 2.4s linear infinite, ava-fire .8s ease-in-out infinite alternate; }
.ava[data-frame="sampiyon"] { --frame: conic-gradient(#fff7d1, #d4a017, #ffffff, #b8860b, #fff7d1); }
.ava[data-frame="sampiyon"]::before { animation: ava-spin 5s linear infinite, ava-gold 2s ease-in-out infinite alternate; }
.ava[data-frame="efsane"] { --frame: conic-gradient(#ffd877, #ff7ab6, #8f7bff, #5ee7ff, #ffd877); }
.ava[data-frame="efsane"]::before { animation: ava-spin 2.5s linear infinite, ava-neon 1.6s ease-in-out infinite alternate; }
@keyframes ava-spin { to { transform: rotate(360deg); } }
@keyframes ava-neon { from { box-shadow: 0 0 3px rgba(124, 77, 255, .6); } to { box-shadow: 0 0 12px rgba(0, 229, 255, .85); } }
@keyframes ava-fire { from { box-shadow: 0 0 5px rgba(255, 106, 0, .65); } to { box-shadow: 0 -2px 14px rgba(255, 60, 0, .9); } }
@keyframes ava-gold { from { box-shadow: 0 0 2px rgba(212, 160, 23, .5); } to { box-shadow: 0 0 10px rgba(255, 215, 90, .9); } }

/* unvan rozeti */
.t-badge {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; height: 18px; padding: 0 7px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--p-accent) 22%, transparent); color: color-mix(in srgb, var(--p-accent) 70%, #fff);
}
.t-badge.big { height: 24px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; color: var(--p-accent); background: color-mix(in srgb, var(--p-accent) 14%, transparent); }
.t-badge.gold { background: linear-gradient(135deg, #ffe08a, #c98a12); color: #3d2500; }
.t-badge.legend { background: linear-gradient(135deg, #ff9ad0, #8f7bff 55%, #5ee7ff); color: #fff; }
.t-badge.empty { background: var(--p-fill); color: var(--p-ink2); font-weight: 600; }

/* ---------- Büyük başlık ---------- */
.lt { padding: 22px 2px 14px; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; color: var(--p-ink2); text-transform: uppercase; letter-spacing: .04em; }
.lt h1 { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 10px; }
.sec-head h2 { font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.sec-head small { font-size: 14px; color: var(--p-ink2); font-weight: 500; }

/* ---------- Öne çıkan (devam et) ---------- */
.home-top { display: grid; gap: 12px; }
.feature {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff; display: flex; align-items: center; gap: 16px;
  padding: 18px; min-height: 132px; background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 30px -10px var(--c2);
}
.feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .22), transparent 55%), radial-gradient(80% 80% at 100% 120%, rgba(0, 0, 0, .25), transparent 60%);
}
.feature .app-ic { width: 84px; border-radius: 20px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .15); position: relative; }
.f-txt { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.f-txt small { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.f-txt b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.f-txt span { font-size: 14px; opacity: .85; font-weight: 500; }
.f-btn {
  position: relative; align-self: flex-start; margin-top: 10px; height: 34px; padding: 0 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .95); color: var(--c2); font-weight: 700; font-size: 14px;
}
.f-btn svg { width: 12px; height: 12px; }
.feature:active { transform: scale(.985); }
.feature { transition: transform .15s; }

/* ---------- Başarım özeti (ana sayfa) ---------- */
.ach-sum { display: flex; flex-direction: column; gap: 10px; padding: 16px; transition: transform .15s; }
.ach-sum:active { transform: scale(.985); }
.as-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.as-top b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.as-top span { font-size: 14px; color: var(--p-ink2); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.as-top svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.as-mid { display: flex; align-items: center; gap: 14px; }
.as-pts { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.as-pts small { font-size: 14px; font-weight: 600; color: var(--p-ink2); margin-left: 3px; letter-spacing: 0; }
.as-medals { display: flex; margin-left: auto; }
.as-medals .ach-medal { --s: 34px; margin-left: -8px; box-shadow: 0 0 0 2.5px var(--p-card), inset 0 1px 0 rgba(255, 255, 255, .35); }
.bar-track { height: 6px; border-radius: 99px; background: var(--p-fill); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--p-accent); transition: width .4s; }
.as-foot { font-size: 13px; color: var(--p-ink2); font-weight: 500; }

/* ---------- Oyun ızgarası ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 10px; align-items: start; }
.tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; min-width: 0; position: relative; }
.app-ic {
  width: min(100%, 72px); aspect-ratio: 1; border-radius: 22.5%; overflow: hidden; position: relative; flex: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 6px 14px rgba(0, 0, 0, .12);
  transition: transform .15s cubic-bezier(.3, 1.5, .6, 1);
}
.app-ic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
[data-theme="dark"] .app-ic { box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.app-ic svg { width: 100%; height: 100%; }
.tile:active .app-ic { transform: scale(.9); }
.t-name {
  font-size: 12.5px; font-weight: 600; line-height: 1.2; max-width: 100%; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.t-sub { font-size: 11.5px; font-weight: 500; color: var(--p-ink2); margin-top: -4px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.t-sub.new { color: var(--p-accent); font-weight: 600; }
.tile.locked .t-name { color: var(--p-ink2); }
.tile.locked .app-ic { opacity: .9; }

/* ---------- Başarımlar ---------- */
.score { padding: 18px; display: grid; gap: 14px; }
.sc-top { display: flex; align-items: center; gap: 16px; }
.ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--p-accent) calc(var(--p) * 1%), var(--p-fill) 0); }
.ring > span { width: 62px; height: 62px; border-radius: 50%; background: var(--p-card); display: grid; place-items: center; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-txt b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sc-txt b small { font-size: 15px; font-weight: 600; color: var(--p-ink2); letter-spacing: 0; margin-left: 3px; }
.sc-txt span { font-size: 14px; color: var(--p-ink2); font-weight: 500; }
.rar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rar > div { background: var(--p-card2); border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.rar .ach-medal { --s: 28px; }
.rar b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rar small { font-size: 11px; color: var(--p-ink2); font-weight: 600; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 16px calc(-1 * var(--gut)) 2px; padding: 2px var(--gut) 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px;
  background: var(--p-card); color: var(--p-ink); font-size: 14px; font-weight: 600; box-shadow: var(--p-shadow), inset 0 0 0 1px var(--p-sep);
}
.chip.txt { padding: 0 16px; }
.chip .app-ic { width: 24px; border-radius: 7px; box-shadow: none; }
.chip.on { background: var(--p-ink); color: var(--p-bg); box-shadow: none; }

.a-group { margin-top: 22px; }
.a-head { display: flex; align-items: center; gap: 12px; margin: 0 2px 10px; }
.a-head .app-ic { width: 38px; border-radius: 10px; }
.a-head .ah-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.a-head b { font-size: 19px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-head small { font-size: 13px; color: var(--p-ink2); font-weight: 500; }
.a-head .ah-bar { width: 72px; flex: none; }
.a-row { display: flex; align-items: center; gap: 13px; padding: 13px 14px; min-height: 76px; }
.a-row + .a-row { border-top: 1px solid var(--p-sep); }
.a-row .ach-medal { --s: 48px; }
.a-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.a-txt b { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.a-txt > small { font-size: 13px; color: var(--p-ink2); font-weight: 450; line-height: 1.3; }
.a-prog { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.a-prog .bar-track { flex: 1; height: 5px; }
.a-prog span { font-size: 12px; font-weight: 600; color: var(--p-ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-date { font-size: 12px; font-weight: 600; color: var(--p-green); margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.a-date svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.a-pts { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 52px; }
.a-pts b { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.a-pts b small { font-size: 11px; font-weight: 600; color: var(--p-ink2); margin-left: 2px; }
.a-pts span { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.a-row:not(.on) .a-txt b { color: var(--p-ink2); }
.a-row:not(.on) .a-pts b { color: var(--p-ink3); }
.rc-common { color: #a8683c; } .rc-rare { color: #3a6fe0; } .rc-epic { color: #7d4ee0; } .rc-legendary { color: #c08a12; }
[data-theme="dark"] .rc-common { color: #d9a072; } [data-theme="dark"] .rc-rare { color: #7fb0ff; }
[data-theme="dark"] .rc-epic { color: #b892ff; } [data-theme="dark"] .rc-legendary { color: #ffcf5c; }

/* ---------- Dükkan ---------- */
.preview { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.pv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-txt b { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-txt small { font-size: 13px; color: var(--p-ink2); font-weight: 450; line-height: 1.3; }
.pv-coins { display: flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.s-item { padding: 14px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.s-item .ava { --size: 56px; }
.s-item .swatch { width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.s-item b { font-size: 13.5px; font-weight: 600; line-height: 1.2; flex: 1; display: flex; align-items: center; }
.s-btn {
  width: 100%; height: 34px; border-radius: 999px; font-weight: 650; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: var(--p-fill); color: var(--p-accent); transition: transform .1s, opacity .2s; font-variant-numeric: tabular-nums;
}
.s-btn:active { transform: scale(.95); }
.s-btn.buy { background: var(--p-accent); color: var(--p-accent-ink); }
.s-btn.on { background: transparent; color: var(--p-green); box-shadow: inset 0 0 0 1.5px currentColor; }
.s-btn.poor { opacity: .5; }
.s-btn .coin { width: 15px; height: 15px; }

/* ---------- Profil ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; padding: 16px; }
.name-field { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.name-field small { font-size: 13px; font-weight: 600; color: var(--p-ink2); }
.name-field input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; font-size: 18px; font-weight: 650; letter-spacing: -.01em;
  background: var(--p-card2); border: 1.5px solid transparent; outline: none; transition: border-color .15s;
}
.name-field input:focus { border-color: var(--p-accent); }
.ava-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 4px; padding: 10px; }
.ava-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 14px; position: relative; }
.ava-opt small { font-size: 12px; font-weight: 600; color: var(--p-ink2); }
.ava-opt.sel { background: var(--p-card2); }
.ava-opt.sel small { color: var(--p-ink); }
.ava-opt.sel .ava { box-shadow: 0 0 0 2.5px var(--p-card2), 0 0 0 4.5px var(--p-accent); border-radius: 50%; }
.ava-opt.lock .ava { opacity: .4; filter: grayscale(.7); }
.ava-opt .lk { position: absolute; top: 6px; right: calc(50% - 30px); width: 20px; height: 20px; border-radius: 50%; background: var(--p-ink); color: var(--p-bg); display: grid; place-items: center; }
.ava-opt .lk svg { width: 11px; height: 11px; fill: currentColor; }

.list { overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 62px; }
.row + .row { border-top: 1px solid var(--p-sep); }
.row .app-ic { width: 46px; border-radius: 11px; }
.r-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.r-txt b { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.r-txt small { font-size: 13px; font-weight: 450; color: var(--p-ink2); }
.r-txt .bar-track { margin-top: 6px; height: 5px; }
.r-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.r-ach { font-size: 12.5px; font-weight: 600; color: var(--p-accent); display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; }
.r-ach svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.play-btn { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--p-fill); color: var(--p-accent); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; }
.play-btn:active { transform: scale(.94); }
.toggle { cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { flex: none; width: 51px; height: 31px; border-radius: 99px; background: var(--p-fill); position: relative; transition: background .2s; }
[data-theme="dark"] .toggle i { background: #39393d; }
.toggle i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .25s cubic-bezier(.3, 1.3, .6, 1);
}
.toggle input:checked + i { background: var(--p-green); }
.toggle input:checked + i::after { transform: translateX(20px); }
.toggle input:focus-visible + i { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 13px 14px; border-radius: 14px; background: var(--p-fill); color: var(--p-ink2); }
.note svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--p-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note p { font-size: 13.5px; font-weight: 450; line-height: 1.45; }
.note b { color: var(--p-ink); font-weight: 650; }
.ver { text-align: center; color: var(--p-ink3); font-size: 12px; font-weight: 500; margin-top: 20px; }

/* ---------- Alt menü ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center;
  padding: 4px calc(6px + var(--sar)) calc(4px + var(--sab)) calc(6px + var(--sal));
  background: color-mix(in srgb, var(--p-card) 82%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  border-top: .5px solid var(--p-sep);
}
.tabbar a {
  flex: 1; max-width: 170px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--p-ink3); font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
}
[data-theme="dark"] .tabbar a { color: #8e8e93; }
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; transition: transform .15s; }
.tabbar a.on, [data-theme="dark"] .tabbar a.on { color: var(--p-accent); }
.tabbar a.on svg { fill: color-mix(in srgb, currentColor 18%, transparent); }
.tabbar a:active svg { transform: scale(.88); }

/* ---------- Bildirim ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--sab) + 16px); z-index: 50;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px);
  padding: 11px 18px; border-radius: 999px; background: rgba(28, 28, 30, .94); color: #f5f5f7;
  font-weight: 600; font-size: 14px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transition: opacity .2s, transform .3s cubic-bezier(.3, 1.3, .6, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.view.enter { animation: viewIn .3s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Üst çubuk: oyuncu ---------- */
.ava.xl:not([data-frame]) { padding: 0; }
.bar .me { width: auto; height: auto; padding: 0; }
.bar .ava { --size: 38px; }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 2px 0; color: var(--p-bar-ink); }
.who b { font-size: 16px; font-weight: 700; letter-spacing: -.015em; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.who:active b { opacity: .7; }

/* ---------- Tema renkleri (vurgu) ---------- */
[data-accent="okyanus"] { --p-accent: #2f6fe4; --p-accent-2: #1f55c0; }
[data-accent="orman"] { --p-accent: #1f9254; --p-accent-2: #16753f; }
[data-accent="mor"] { --p-accent: #7a4fe0; --p-accent-2: #5f37c4; }
[data-accent="pembe"] { --p-accent: #df3f78; --p-accent-2: #c22a60; }
[data-accent="grafit"] { --p-accent: #3a3a40; --p-accent-2: #1c1c1e; }
[data-accent="altin"] { --p-accent: #b8820e; --p-accent-2: #94690a; }
[data-theme="dark"][data-accent="okyanus"] { --p-accent: #5b9dff; }
[data-theme="dark"][data-accent="orman"] { --p-accent: #3ccf7a; }
[data-theme="dark"][data-accent="mor"] { --p-accent: #a989ff; }
[data-theme="dark"][data-accent="pembe"] { --p-accent: #ff6f9e; }
[data-theme="dark"][data-accent="grafit"] { --p-accent: #d1d1d6; --p-accent-ink: #1c1c1e; }
[data-theme="dark"][data-accent="altin"] { --p-accent: #ffc53d; }

/* ---------- Profil kartı (afiş + avatar) ---------- */
.profile-card { overflow: hidden; }
.banner { height: 92px; background: var(--banner, linear-gradient(135deg, #4a4a52, #1f1f24)); position: relative; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .18)); }
.pc-body { display: flex; align-items: flex-end; gap: 14px; padding: 10px 16px 0; position: relative; }
.pc-ava { position: relative; flex: none; margin-top: -52px; }
.pc-ava .ava { box-shadow: 0 0 0 4px var(--p-card); border-radius: 50%; }
.cam {
  position: absolute; right: -4px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--p-accent); color: var(--p-accent-ink); box-shadow: 0 0 0 3px var(--p-card);
}
.cam svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cam:active { transform: scale(.92); }
.pc-body .name-field { padding-bottom: 2px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 16px; flex-wrap: wrap; }
.pc-actions { display: flex; gap: 8px; }
.mini-btn {
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 650;
  background: var(--p-accent); color: var(--p-accent-ink); display: inline-flex; align-items: center; justify-content: center;
}
.mini-btn.ghost { background: var(--p-fill); color: var(--p-ink); }
.mini-btn:active { transform: scale(.95); }
/* dükkan önizleme kartı */
.sp-body { display: flex; align-items: flex-end; gap: 14px; padding: 10px 16px 16px; position: relative; }
.sp-body > .ava { margin-top: -46px; }
.sp-body .ava { box-shadow: 0 0 0 4px var(--p-card); border-radius: 50%; }
.sp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding-bottom: 2px; }
.sp-txt b { font-size: 18px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-coins { display: flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; padding-bottom: 4px; }

/* ---------- Dükkan ögeleri ---------- */
.shop-sec-desc { font-size: 13.5px; color: var(--p-ink2); margin: -4px 2px 12px; }
.s-item { position: relative; }
.s-item .bsw { width: 100%; height: 56px; border-radius: 12px; background: var(--banner); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.s-item .acc { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); color: #fff; }
.s-item .acc svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s-item .tpv { height: 56px; display: grid; place-items: center; width: 100%; }
.s-item small.req { font-size: 11.5px; color: var(--p-ink2); line-height: 1.25; margin-top: -4px; }
.s-tag {
  position: absolute; top: 8px; left: 8px; height: 18px; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 750;
  letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center;
}
.s-tag.anim { background: color-mix(in srgb, var(--p-accent) 16%, transparent); color: var(--p-accent); }
.s-tag.excl { background: linear-gradient(135deg, #ffd877, #c98210); color: #3d2500; }
.s-btn.lockd { background: var(--p-fill); color: var(--p-ink2); }
.s-btn.lockd svg { width: 12px; height: 12px; fill: currentColor; }

/* ---------- Ad değiştirme penceresi ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .4); padding: 16px calc(16px + var(--sar)) calc(16px + var(--sab)) calc(16px + var(--sal));
  animation: fadeIn .2s ease;
}
.sheet-card {
  width: 100%; max-width: 420px; background: var(--p-card); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3); animation: sheetUp .3s cubic-bezier(.2, 1.1, .3, 1);
}
.sheet-card b { font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.sheet-card small { font-size: 13px; color: var(--p-ink2); }
.sheet-card input {
  margin-top: 6px; height: 48px; padding: 0 14px; border-radius: 12px; font-size: 18px; font-weight: 650;
  background: var(--p-card2); border: 1.5px solid var(--p-accent); outline: none;
}
.sheet-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.sheet-btns .mini-btn { height: 40px; padding: 0 18px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 720px) { .sheet { align-items: center; } }

/* ---------- Günlük görevler ---------- */
.daily { margin-top: 12px; padding: 16px 16px 12px; }
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.dl-head b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.dl-head small { font-size: 13px; color: var(--p-ink2); font-weight: 500; }
.streak { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--p-fill); font-size: 13px; font-weight: 650; color: var(--p-ink); }
.streak svg { width: 14px; height: 14px; fill: #ff8a3d; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.dl-row + .dl-row { border-top: 1px solid var(--p-sep); }
.dl-row .app-ic { width: 38px; border-radius: 10px; }
.dl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-txt b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.dl-prog { display: flex; align-items: center; gap: 8px; }
.dl-prog .bar-track { flex: 1; height: 5px; }
.dl-prog span { font-size: 12px; font-weight: 600; color: var(--p-ink2); font-variant-numeric: tabular-nums; }
.dl-rw { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dl-rw .coin { width: 16px; height: 16px; }
.dl-row.done .dl-txt b { color: var(--p-ink2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--p-ink2) 50%, transparent); }
.dl-row.done .bar-track i { background: var(--p-green); }
.dl-ok { width: 26px; height: 26px; border-radius: 50%; background: var(--p-green); color: #fff; display: grid; place-items: center; flex: none; }
.dl-ok svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--p-card2); font-size: 13px; font-weight: 600; color: var(--p-ink2); }
.dl-foot b { color: var(--p-ink); display: inline-flex; align-items: center; gap: 5px; }
.dl-foot.got { color: var(--p-green); }

/* ---------- Günlük giriş ödülü ---------- */
#loginSheet { align-items: center; }
.login-card { max-width: 400px; gap: 14px; text-align: center; align-items: stretch; }
.lg-head { display: flex; flex-direction: column; gap: 4px; }
.lg-head b { font-size: 22px; }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.day {
  position: relative; border-radius: 14px; padding: 9px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--p-card2); font-size: 12px; font-weight: 600; color: var(--p-ink2); font-variant-numeric: tabular-nums;
}
.day b { font-size: 15px; font-weight: 750; color: var(--p-ink); display: inline-flex; align-items: center; gap: 4px; }
.day .coin { width: 20px; height: 20px; }
.day.d7 { grid-column: span 2; background: linear-gradient(135deg, color-mix(in srgb, #ffc94d 30%, var(--p-card2)), var(--p-card2)); }
.day.d7 svg { width: 44px; height: 34px; }
.day.got { opacity: .55; }
.day.got::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--p-green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.day.today { box-shadow: inset 0 0 0 2px var(--p-accent); color: var(--p-accent); background: color-mix(in srgb, var(--p-accent) 10%, var(--p-card)); }
.day.today.claimed { animation: dayPop .6s ease; }
@keyframes dayPop { 40% { transform: scale(1.1); } }
.lg-btn { height: 48px; font-size: 16px; font-weight: 700; display: inline-flex; gap: 6px; }
.lg-btn .coin { width: 18px; height: 18px; }
.lg-note { font-size: 12px; color: var(--p-ink2); }

/* ---------- Tablet ---------- */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  :root { --gut: 28px; --tab-h: 60px; }
  .lt { padding-top: 30px; }
  .lt h1 { font-size: 40px; }
  .home-top { grid-template-columns: 1.55fr 1fr; align-items: stretch; }
  .feature { min-height: 168px; padding: 22px; }
  .feature .app-ic { width: 104px; border-radius: 24px; }
  .f-txt b { font-size: 26px; }
  .grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 26px 12px; }
  .app-ic { width: min(100%, 84px); }
  .t-name { font-size: 13.5px; }
  .t-sub { font-size: 12px; }
  .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabbar a { flex-direction: row; gap: 7px; font-size: 13.5px; height: 52px; }
  .tabbar svg { width: 23px; height: 23px; }
  .chips { margin: 18px 0 2px; padding: 2px 0 4px; flex-wrap: wrap; }
  #v-profil, #v-basarimlar { max-width: 720px; margin: 0 auto; }
}
@media (min-width: 1000px) {
  .grid { gap: 30px 20px; }
  .app-ic { width: min(100%, 92px); }
}

/* ---------- Hesap / bulut kayıt ---------- */
.acc-row { align-items: flex-start; }
.acc-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--p-fill); display: grid; place-items: center; }
.acc-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--p-ink2); stroke-width: 1.8; stroke-linejoin: round; }
.acc-ic.on { background: var(--p-accent); }
.acc-ic.on svg { stroke: var(--p-accent-ink); fill: color-mix(in srgb, var(--p-accent-ink) 25%, transparent); }
.acc-ic.warn { background: #d9822b; }
.acc-btns { min-height: 0; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.acc-btns .mini-btn { height: 38px; padding: 0 16px; }
.acc-card { gap: 10px; }
.acc-tabs { display: flex; background: var(--p-fill); border-radius: 10px; padding: 3px; margin-bottom: 4px; }
.acc-tab { flex: 1; height: 34px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--p-ink2); }
.acc-tab.on { background: var(--p-card); color: var(--p-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.acc-field { display: flex; flex-direction: column; gap: 2px; }
.acc-field span { font-size: 12.5px; font-weight: 600; color: var(--p-ink2); }
.acc-field input { margin-top: 2px; font-size: 16px; font-weight: 550; border-color: var(--p-sep); }
.acc-field input:focus { border-color: var(--p-accent); }
.sheet-card .acc-err { color: #d23b3b; font-weight: 600; min-height: 1em; }
.sheet-card .acc-hint { color: var(--p-ink3); }
.acc-card .mini-btn:disabled { opacity: .55; }
.pick-opt { text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--p-fill); display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.pick-opt:active { transform: scale(.98); }
.pick-opt b { font-size: 16px; }
.po-coins { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
