/* =========================================================================
   TON Rig v2 — Dark cyber-luxury tema (glassmorphism + neon vurgular)
   ========================================================================= */
:root {
  --bg: #1b1236;
  --bg-2: #26194a;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-2: rgba(255, 255, 255, 0.16);
  --text: #f4f2ff;
  --muted: #b8aedb;
  --gold: #f7c948;
  --gold-2: #ff9f1c;
  --cyan: #3ee6ff;
  --violet: #9b7bff;
  --green: #2ee59d;
  --red: #ff5470;
  --radius: 18px;
  --radius-sm: 12px;
  /* Telegram tam ekran: sistem çentiği + Telegram'ın yüzen Kapat/menü düğmeleri (Bot API 8.0 değişkenleri) */
  --safe-top: max(env(safe-area-inset-top, 0px), calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), calc(var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px)));
  --dock-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans Thai", "Noto Sans Bengali", "Noto Sans Devanagari", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 500 14px/1.45 var(--font);
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}
input, button { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: .5; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
.cyan { color: var(--cyan); }
.green { color: var(--green); }
.red { color: var(--red); }
.muted { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.small { font-size: 12px; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  /* tanıtım sayfasındaki pastel çayır sahnesi + okunabilirlik için koyu geçiş */
  background:
    linear-gradient(180deg, rgba(27, 18, 54, .25) 0%, rgba(27, 18, 54, .40) 40%, rgba(27, 18, 54, .62) 75%, rgba(27, 18, 54, .82) 100%),
    url('../img/landing-scene.svg') center bottom / cover no-repeat,
    #1b1236;
}

/* ---------- Üst çubuk ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(var(--safe-top) + 10px) 14px 10px;
  background: linear-gradient(180deg, rgba(27, 18, 54, .92), rgba(27, 18, 54, .6));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.me-chip { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: start; }
.me-meta { display: flex; flex-direction: column; min-width: 0; }
.me-name { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.me-sub { font-size: 11px; color: var(--muted); }
.avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 0 18px rgba(139,92,246,.45);
}
.avatar img, .avatar svg { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 76px; height: 76px; font-size: 40px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.net-badge { font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px;
  color: #ffb347; background: rgba(255, 159, 28, .14); border: 1px solid rgba(255, 159, 28, .45); }
.balance-chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; border-radius: 999px;
  background: var(--glass-2); border: 1px solid var(--stroke-2); font-weight: 800;
}
.balance-chip .coin-ico { display: grid; }
.balance-chip .plus { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #251500; font-weight: 900; font-size: 15px; line-height: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--stroke); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Ekranlar ---------- */
.screens {
  position: fixed; inset: 0;
  padding: calc(var(--safe-top) + 74px) 14px calc(var(--safe-bottom) + var(--dock-h) + 24px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.screen { display: none; animation: fade .22s ease; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.screen-title { font-size: 19px; font-weight: 900; letter-spacing: .2px; margin-bottom: 6px; }
.section-title { font-size: 15px; font-weight: 900; margin: 22px 2px 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.card { border-radius: var(--radius); padding: 16px; margin-bottom: 14px; position: relative; }
.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 201, 72, .35), transparent 65%); pointer-events: none;
}
.hero-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); font-weight: 800; }
.hero-balance { font-size: 34px; font-weight: 900; line-height: 1.15; margin: 4px 0 12px; }
.hero-balance .num {
  background: linear-gradient(180deg, #fff6d6, var(--gold) 55%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 28px rgba(247, 201, 72, .25);
}
.hero-balance .sym { font-size: 14px; color: var(--muted); font-weight: 800; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.hero-stats > div { background: rgba(0,0,0,.22); border: 1px solid var(--stroke); border-radius: var(--radius-sm); padding: 8px 10px; min-width: 0; }
.hero-stats .k { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stats .v { display: block; font-weight: 900; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boost-banner {
  margin-bottom: 12px; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 800; font-size: 12.5px;
  background: linear-gradient(90deg, rgba(139,92,246,.35), rgba(62,230,255,.2)); border: 1px solid rgba(139,92,246,.6);
}
.claim-box { background: rgba(0,0,0,.25); border: 1px solid var(--stroke); border-radius: 16px; padding: 12px; }
.claim-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; color: var(--muted); font-size: 12.5px; }
.claim-head .num { font-size: 20px; }
.claim-foot { font-size: 11.5px; color: var(--muted); margin: 6px 0 10px; min-height: 16px; }
.bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--gold)); box-shadow: 0 0 12px rgba(62,230,255,.6); transition: width .6s ease; }
.bar.full i { background: linear-gradient(90deg, var(--gold-2), var(--red)); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 14px; font-weight: 900; letter-spacing: .3px;
  transition: transform .08s ease, filter .15s ease; position: relative; overflow: hidden;
}
.btn:active:not(:disabled) { transform: translateY(2px) scale(.99); }
.btn-lg { width: 100%; min-height: 52px; font-size: 15.5px; margin-top: 12px; }
.btn-gold { color: #2a1700; background: linear-gradient(180deg, #ffe58a, var(--gold) 50%, var(--gold-2)); box-shadow: 0 4px 0 #9a5a00, 0 10px 24px rgba(247,201,72,.25); }
.btn-cyan { color: #00222b; background: linear-gradient(180deg, #a5f6ff, var(--cyan)); box-shadow: 0 4px 0 #0b7e93, 0 10px 24px rgba(62,230,255,.2); }
.btn-green { color: #002515; background: linear-gradient(180deg, #a6ffd8, var(--green)); box-shadow: 0 4px 0 #0c8a58, 0 10px 24px rgba(46,229,157,.2); }
.btn-ghost { background: var(--glass-2); border: 1px solid var(--stroke-2); }
.btn-danger { background: rgba(255,84,112,.14); border: 1px solid rgba(255,84,112,.6); color: #ffb3c0; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 12.5px; border-radius: 10px; }
.btn.shine::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  animation: shine 2.6s ease-in-out infinite;
}
@keyframes shine { 60%, 100% { transform: translateX(120%); } }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.link { color: var(--cyan); font-weight: 800; font-size: 12px; }
.chip { padding: 6px 10px; border-radius: 10px; background: var(--glass-2); border: 1px solid var(--stroke-2); font-weight: 800; font-size: 12px; }
.chip.active { border-color: var(--gold); color: var(--gold); background: rgba(247,201,72,.1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pill { padding: 4px 10px; border-radius: 99px; background: rgba(62,230,255,.12); border: 1px solid rgba(62,230,255,.4); color: var(--cyan); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900; display: inline-grid; place-items: center; }

/* ---------- Segment ---------- */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); margin: 4px 0 12px; }
.seg { padding: 9px 8px; border-radius: 10px; font-weight: 800; color: var(--muted); font-size: 13px; }
.seg.active { background: var(--glass-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke-2); }
.sub { display: none; }
.sub.active { display: block; }

/* ---------- Liste öğeleri ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--stroke); text-align: start; width: 100%;
}
button.item:active { transform: scale(.99); }
.item .ico { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(0,0,0,.28); border: 1px solid var(--stroke); }
.item .ico svg { width: 44px; height: 44px; }
.item .body { flex: 1; min-width: 0; }
.item .title { font-weight: 900; font-size: 14.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item .sub-t { font-size: 12px; color: var(--muted); }
.item .end { text-align: end; flex: none; }
.item.locked { opacity: .55; }
.item.next-lock { border-style: dashed; border-color: rgba(247,201,72,.5); background: rgba(247,201,72,.05); }
.item.full { border-color: rgba(255,159,28,.6); box-shadow: 0 0 0 1px rgba(255,159,28,.25), 0 0 20px rgba(255,159,28,.15); }
.lvl { font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 99px; background: rgba(139,92,246,.22); color: #cdb8ff; border: 1px solid rgba(139,92,246,.5); }
.mini-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 6px; }
.mini-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--gold)); }
.empty { text-align: center; padding: 26px 16px; color: var(--muted); border: 1px dashed var(--stroke-2); border-radius: 16px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ---------- Mağaza ---------- */
.shop-cat { font-size: 13px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 16px 2px 10px; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shop-card { padding: 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.shop-card:active { transform: scale(.98); }
.shop-card .vis { width: 74px; height: 74px; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, rgba(62,230,255,.18), rgba(0,0,0,.25)); border: 1px solid var(--stroke); }
.shop-card .name { font-weight: 900; font-size: 13px; line-height: 1.25; min-height: 33px; }
.shop-card .meta { font-size: 11.5px; color: var(--muted); }
.shop-card .price { font-weight: 900; color: var(--gold); }
.owned { font-size: 11px; color: var(--cyan); font-weight: 800; }

/* ---------- Staking ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 14px; }
.tile { padding: 12px 6px; border-radius: 14px; text-align: center; background: var(--glass); border: 1px solid var(--stroke); }
.tile.active { border-color: var(--cyan); background: rgba(62,230,255,.08); box-shadow: 0 0 18px rgba(62,230,255,.18); }
.tile .d { font-weight: 900; font-size: 15px; }
.tile .a { font-size: 12px; color: var(--gold); font-weight: 800; }
.kv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.kv { background: rgba(0,0,0,.22); border: 1px solid var(--stroke); border-radius: var(--radius-sm); padding: 8px 10px; }
.kv .k, .stat .k { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.kv .v, .stat .v { display: block; font-weight: 900; }
.note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- Form ---------- */
.field { display: block; margin-top: 12px; }
.field-label { display: block; font-size: 12px; color: var(--muted); font-weight: 800; margin-bottom: 6px; }
.field input, .input-wrap input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; outline: none;
  background: rgba(0,0,0,.35); border: 1px solid var(--stroke-2); font-weight: 800; font-size: 16px;
  user-select: text; -webkit-user-select: text;
}
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(62,230,255,.15); }
.input-wrap { position: relative; display: block; }
.input-wrap .chip { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); }
.input-wrap input { padding-inline-end: 70px; }
.nick-status { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 800; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ---------- Görevler / seri ---------- */
.streak-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 4px; }
.streak-cell { border-radius: 10px; padding: 6px 2px; text-align: center; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); }
.streak-cell .d { font-size: 10px; color: var(--muted); font-weight: 800; }
.streak-cell .r { font-size: 11.5px; font-weight: 900; }
.streak-cell.done { background: rgba(46,229,157,.12); border-color: rgba(46,229,157,.5); }
.streak-cell.done .r { color: var(--green); }
.streak-cell.today { border-color: var(--gold); box-shadow: 0 0 14px rgba(247,201,72,.35); background: rgba(247,201,72,.1); }
.streak-cell.milestone .r { color: var(--gold); }
.task-reward { font-size: 12.5px; color: var(--gold); font-weight: 900; }

/* ---------- Arkadaşlar ---------- */
.ref-link { margin-top: 6px; padding: 12px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px dashed var(--stroke-2); font-size: 12.5px; word-break: break-all; user-select: all; -webkit-user-select: all; direction: ltr; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.stat { background: rgba(0,0,0,.22); border: 1px solid var(--stroke); border-radius: var(--radius-sm); padding: 10px 12px; }
.rank { width: 30px; text-align: center; font-weight: 900; color: var(--muted); flex: none; }
.rank.r1 { color: var(--gold); } .rank.r2 { color: #d9e2ff; } .rank.r3 { color: #ffb072; }
.item.me { border-color: rgba(62,230,255,.6); }

/* ---------- Kasa ---------- */
.wallet-box { padding: 12px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); margin-top: 8px; }
.wallet-status { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; margin-bottom: 10px; word-break: break-all; direction: ltr; }
.wallet-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 8px var(--red); }
.wallet-status.on .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.tc-btn { display: flex; justify-content: center; min-height: 40px; }
.rules { list-style: none; margin: 12px 0 0; display: grid; gap: 6px; }
.rules li { font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: rgba(247,201,72,.07); border: 1px solid rgba(247,201,72,.25); }
.receive { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); }
.receive .k { color: var(--muted); font-size: 12px; font-weight: 800; }
.receive .v { font-size: 18px; font-weight: 900; }
.status-pill { font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 99px; border: 1px solid; }
.status-pending { color: var(--gold); border-color: rgba(247,201,72,.5); }
.status-paid { color: var(--green); border-color: rgba(46,229,157,.5); }
.status-rejected { color: var(--red); border-color: rgba(255,84,112,.5); }

/* ---------- Ayarlar ---------- */
.lang-list { display: grid; gap: 6px; max-height: 60vh; overflow-y: auto; }
.lang-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--stroke); text-align: start; width: 100%; }
.lang-row img { width: 24px; height: 17px; border-radius: 3px; object-fit: cover; flex: none; }
.lang-row .n { flex: 1; font-weight: 800; }
.lang-row .s { font-size: 11.5px; color: var(--muted); }
.lang-row.active { border-color: var(--cyan); background: rgba(62,230,255,.08); }
.prose p { margin-bottom: 10px; color: #d8d5ee; }

/* ---------- Dock ---------- */
.dock {
  position: fixed; left: 10px; right: 10px; bottom: calc(var(--safe-bottom) + 10px); z-index: 20;
  height: var(--dock-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  border-radius: 22px; padding: 0 6px;
  background: rgba(16, 13, 32, .82); border: 1px solid var(--stroke-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.dock-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 800; color: var(--muted); padding: 6px 0; }
.dock-item .ico { display: grid; place-items: center; height: 28px; filter: grayscale(.5) opacity(.75); transition: transform .15s ease, filter .15s ease; }
.dock-item.active { color: var(--text); }
.dock-item.active .ico { filter: none; transform: translateY(-2px); }
.dock-item .dot { position: absolute; top: 4px; inset-inline-end: 22%; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.dock-item.center .ico {
  width: 60px; height: 60px; margin-top: -30px; border-radius: 20px; filter: none;
  background: linear-gradient(180deg, #ffe58a, var(--gold) 55%, var(--gold-2));
  box-shadow: 0 5px 0 #9a5a00, 0 0 0 4px rgba(7,6,15,.9), 0 12px 28px rgba(247,201,72,.35);
}
.dock-item.center.active .ico { transform: translateY(-2px) scale(1.04); }
.dock-item .lbl { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; letter-spacing: .02em; font-size: 10px; }
#dock-rewards[aria-expanded=true] { color: var(--text); }
#dock-rewards[aria-expanded=true] .ico { filter: none; transform: translateY(-2px); }

/* ---------- Rewards açılır menüsü ---------- */
.rewards-pop-backdrop { position: fixed; inset: 0; z-index: 19; background: rgba(3,2,8,.35); animation: bd .15s ease; }
.rewards-pop {
  position: absolute; bottom: calc(var(--safe-bottom) + var(--dock-h) + 22px); inset-inline-start: 10px;
  width: min(62vw, 230px); padding: 8px; border-radius: 20px; display: flex; flex-direction: column; gap: 6px;
  background: rgba(20, 16, 40, .96); border: 1px solid var(--stroke-2); box-shadow: 0 16px 40px rgba(0,0,0,.55);
  transform-origin: bottom center; animation: rp-up .18s cubic-bezier(.2,.9,.3,1.2);
}
.rewards-pop::after {   /* Rewards butonunu gösteren ok */
  content: ''; position: absolute; bottom: -7px; inset-inline-start: calc(20% + 10px); width: 14px; height: 14px;
  background: rgba(20, 16, 40, .96); border-inline-end: 1px solid var(--stroke-2); border-bottom: 1px solid var(--stroke-2); transform: rotate(45deg);
}
[dir=rtl] .rewards-pop::after { transform: rotate(-45deg); }
@keyframes rp-up { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.rp-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; font-weight: 800; font-size: 15px; text-align: start; color: var(--text); background: var(--glass); border: 1px solid var(--stroke); }
.rp-item:active { background: var(--glass-2); transform: scale(.98); }
.rp-item.active { border-color: var(--gold); background: rgba(247,201,72,.1); }
.rp-item .ico { display: grid; place-items: center; width: 30px; }
.rp-item .dot { position: absolute; top: 10px; inset-inline-end: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }

/* ---------- Drawer ---------- */
.drawer-backdrop, .sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(3,2,8,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: bd .2s ease; }
@keyframes bd { from { opacity: 0; } }
.drawer {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(82vw, 320px);
  padding: calc(var(--safe-top) + 14px) 14px 14px; border-radius: 0; border-inline-end: 0;
  display: flex; flex-direction: column; gap: 8px; background: rgba(14, 12, 28, .95); animation: slideIn .22s ease;
}
[dir=ltr] .drawer { border-radius: 22px 0 0 22px; }
[dir=rtl] .drawer { border-radius: 0 22px 22px 0; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 17px; margin-bottom: 8px; }
.drawer-item { text-align: start; padding: 14px; border-radius: 14px; font-weight: 800; background: var(--glass); border: 1px solid var(--stroke); }
.drawer-item:active { background: var(--glass-2); }

/* ---------- Bottom sheet ---------- */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto;
  padding: 10px 16px calc(var(--safe-bottom) + 18px); border-radius: 26px 26px 0 0;
  background: rgba(16, 13, 32, .97); animation: up .25s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes up { from { transform: translateY(40%); opacity: .4; } }
.sheet-grip { width: 42px; height: 5px; border-radius: 99px; background: var(--stroke-2); margin: 0 auto 10px; }
.sheet-x { position: absolute; top: 10px; inset-inline-end: 12px; width: 34px; height: 34px; }
.sheet-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; padding-inline-end: 40px; }
.sheet-head .ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(0,0,0,.3); border: 1px solid var(--stroke); flex: none; }
.sheet-head h3 { font-size: 18px; font-weight: 900; }
.req-list { display: grid; gap: 8px; margin: 10px 0; }
.req { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); }
.req .mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; flex: none; background: rgba(255,84,112,.18); color: var(--red); }
.req.met .mark { background: rgba(46,229,157,.18); color: var(--green); }
.req .t { flex: 1; font-weight: 800; font-size: 13px; }
.req .p { font-size: 12px; color: var(--muted); font-weight: 700; line-height: 1.35; display: inline-block; margin-top: 2px; }
.req .btn-sm { flex: none; }
/* ---------- Kar efekti (body.snowy — admin: snow_effect) ---------- */
#snow { position: fixed; inset: 0; z-index: 18; pointer-events: none; }
/* Kar örtüsü: kartın üst köşeleriyle AYNI yuvarlaklıkta düz bant (köşeleri izler) + damla damla alt kenar
   + buz sarkıtları. Damlalar ve sarkıtlar köşelerden --cap-inset kadar içeride kalır → kenarlarda kesik görünmez. */
/* Kar örtüsü = kartla aynı yuvarlaklıkta bir kutunun KALIN ÜST ÇERÇEVESİ: ortada kalın, köşelerde kartın
   eğrisini izleyerek incelir ve yanlarda sıfıra iner → kesik/taşan uç yok. Damlalar + buz sarkıtları
   çerçevenin hemen altında, köşelerden --cap-inset kadar içeride. */
body.snowy .dock::after, body.snowy .hero::after, body.snowy .buy-promo::after {
  --cap-r: 22px; --cap-inset: 22px; --cap-t: 10px;
  content: ''; position: absolute; top: -7px; left: -1px; right: -1px; height: calc(var(--cap-r) + var(--cap-t) + 14px);
  z-index: 2; pointer-events: none; box-sizing: border-box; padding: 0 var(--cap-inset);
  border-top: var(--cap-t) solid #f7fbff;
  border-radius: calc(var(--cap-r) + 1px) calc(var(--cap-r) + 1px) 0 0;
  background:
    url('../img/icicles.svg') repeat-x 0 1px / 96px 14px,
    radial-gradient(circle at 50% 0, #f7fbff 5.5px, transparent 6px) repeat-x 0 -1px / 15px 7px;
  background-clip: content-box; background-origin: content-box;
  filter: drop-shadow(0 2px 2px rgba(110, 170, 255, .3));
}
body.snowy .dock-item.center { z-index: 3; }   /* orta kazma butonu karın üstünde kalsın */
/* ana kart overflow:hidden — örtü kartın içinde, köşe yuvarlaklığı kartla aynı */
body.snowy .hero::after { --cap-r: var(--radius); --cap-inset: 18px; --cap-t: 9px; top: 0; left: 0; right: 0; }

/* ---------- Cüzdan: TRG Al kartı ---------- */
.buy-promo {
  position: relative; display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; padding: 16px 14px;
  border-radius: 22px; color: #3a1500; cursor: pointer;
  background: linear-gradient(100deg, #ffe27a 0%, #ffb547 45%, #ff7a59 80%, #ff5f8f 100%);
  box-shadow: 0 6px 0 #b4471f, 0 14px 30px rgba(255,122,89,.35), inset 0 2px 0 rgba(255,255,255,.55);
}
.buy-promo:active { transform: translateY(3px); box-shadow: 0 3px 0 #b4471f, 0 8px 20px rgba(255,122,89,.3), inset 0 2px 0 rgba(255,255,255,.55); }
.buy-promo .bp-ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(255,255,255,.35); box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.buy-promo .bp-text { flex: 1; min-width: 0; }
.buy-promo .bp-title { font-size: 22px; font-weight: 900; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.buy-promo .bp-sub { font-size: 13px; font-weight: 800; opacity: .8; margin-top: 3px; }
.buy-promo .bp-btn {
  flex: none; padding: 10px 16px; border-radius: 14px; font-weight: 900; font-size: 14px; color: #3a1d00;
  background: linear-gradient(180deg, #fff3a8, #ffd23f); box-shadow: 0 4px 0 #b07a00, inset 0 1px 0 #fff;
}

/* ---------- Tanıtım sayfası (Telegram dışı) — poster hero + zengin içerik ---------- */
html:has(body.landing-mode) { height: auto; scroll-behavior: smooth; }
body.landing-mode { overflow-y: auto; height: auto; min-height: 100%; overscroll-behavior: auto; background: #1b1236; }
body.landing-mode .topbar, body.landing-mode .screens, body.landing-mode .dock, body.landing-mode .bg-glow { display: none !important; }
@keyframes land-float { 50% { transform: translateY(-10px); } }
@keyframes ph-spin { to { transform: rotate(360deg); } }
.landing { --p-gold: #ffc94d; --p-aqua: #ff9ec7; --p-cyan: #3ee6ff; --p-violet: #a78bfa; --p-card: rgba(38,25,74,.8); --p-line: rgba(255,255,255,.1); position: relative; z-index: 1; color: #eaf6ff; }
.landing a { color: inherit; }
/* hero */
.ph { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.ph-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.ph-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(27,18,54,0) 0%, rgba(27,18,54,.4) 60%, rgba(27,18,54,.8) 100%), linear-gradient(180deg, rgba(27,18,54,.3), transparent 28%, transparent 70%, #1b1236 100%); }
.ph-bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 18px; padding: calc(var(--safe-top) + 16px) 22px 0; max-width: 1200px; width: 100%; margin: 0 auto; }
.ph-brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; text-decoration: none; } .ph-brand img { border-radius: 50%; } .ph-brand b { color: var(--p-gold); }
.ph-nav { display: flex; gap: 20px; margin-inline-start: auto; } .ph-nav a { text-decoration: none; font-weight: 700; font-size: 14px; color: #cdeeff; } .ph-nav a:hover { color: var(--p-gold); }
.ph-mini { padding: 9px 16px; border-radius: 999px; font-weight: 900; font-size: 13px; text-decoration: none; color: #1b1236 !important; background: linear-gradient(180deg, #fff1a8, var(--p-gold)); box-shadow: 0 3px 0 #a86a00; }
.ph-center { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px 20px 120px; }
.ph-logo { position: relative; width: 170px; height: 170px; margin-bottom: 16px; animation: land-float 4.5s ease-in-out infinite; }
.ph-logo img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px rgba(255,201,77,.85), 0 0 60px rgba(45,255,194,.45), 0 30px 60px rgba(0,0,0,.55); }
.ph-ring { position: absolute; inset: -34px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(45,255,194,.55), transparent 30%, rgba(255,201,77,.55), transparent 60%, rgba(62,230,255,.55), transparent 90%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%, #000 70%, transparent 72%); mask: radial-gradient(circle, transparent 58%, #000 60%, #000 70%, transparent 72%); animation: ph-spin 9s linear infinite; }
.ph-title { font-size: clamp(54px, 12vw, 116px); font-weight: 900; line-height: .92; letter-spacing: .02em; text-shadow: 0 6px 0 rgba(0,0,0,.35), 0 0 40px rgba(45,255,194,.25); }
.ph-title span { background: linear-gradient(180deg, #fff6c8, var(--p-gold) 55%, #ff9a1f); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
.ph-tag { margin-top: 12px; font-size: clamp(18px, 4vw, 26px); font-weight: 900; color: #e8fbff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.ph-sub { max-width: 620px; margin-top: 10px; font-size: 16px; line-height: 1.6; color: #b9d6ea; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.ph-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.ph-play { display: inline-flex; align-items: center; gap: 12px; padding: 17px 30px; border-radius: 20px; font-size: 18px; font-weight: 900; color: #fff !important; text-decoration: none;
  background: linear-gradient(180deg, #3cc0f0, #1a90c4); box-shadow: 0 7px 0 #0d5f86, 0 18px 40px rgba(42,171,238,.45), inset 0 2px 0 rgba(255,255,255,.35); transition: transform .12s ease; }
.ph-play:active { transform: translateY(4px); box-shadow: 0 3px 0 #0d5f86; } .ph-play svg { width: 22px; height: 22px; }
.ph-play.sm { padding: 13px 22px; font-size: 15px; margin-top: 8px; }
.ph-ghost { display: inline-flex; align-items: center; padding: 16px 24px; border-radius: 20px; font-weight: 900; font-size: 16px; text-decoration: none; color: #eaf6ff; background: rgba(27,18,54,.55); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); cursor: pointer; }
.ph-ghost.sm { padding: 9px 14px; font-size: 13px; border-radius: 12px; } .ph-ghost.gold { color: #1b1236 !important; background: linear-gradient(180deg, #fff1a8, var(--p-gold)); border-color: transparent; }
.ph-stats { display: flex; gap: 34px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.ph-stats div { display: flex; flex-direction: column; align-items: center; } .ph-stats b { font-size: 28px; font-weight: 900; color: var(--p-gold); text-shadow: 0 3px 0 rgba(0,0,0,.35); } .ph-stats span { font-size: 13px; color: #b9d6ea; font-weight: 700; }
.ph-down { position: absolute; z-index: 2; bottom: calc(var(--safe-bottom) + 14px); left: 50%; transform: translateX(-50%); font-size: 30px; color: #cdeeff; text-decoration: none; animation: land-float 2s ease-in-out infinite; }
/* bilgi bandı */
.pticker { overflow: hidden; padding: 14px 0; background: linear-gradient(90deg, rgba(45,255,194,.08), rgba(255,201,77,.08)); border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); }
.pticker-track { display: flex; width: max-content; animation: pticker 45s linear infinite; }
.pticker span { padding: 0 28px; white-space: nowrap; font-weight: 800; font-size: 14px; color: #d6f1ff; } .pticker span::after { content: '✦'; margin-left: 28px; color: var(--p-gold); }
@keyframes pticker { to { transform: translateX(-50%); } } [dir=rtl] .pticker-track { animation-direction: reverse; }
/* gövde */
.pwrap { max-width: 1160px; margin: 0 auto; padding: 0 18px; }
.psec { padding-top: 150px; scroll-margin-top: 30px; }
.peye { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--p-aqua); } .peye.c { display: block; text-align: center; }
.ph2 { text-align: center; font-size: clamp(28px, 4.4vw, 44px); font-weight: 900; margin: 10px 0 34px; line-height: 1.15; } .ph2.left { text-align: start; margin-bottom: 16px; }
.ptag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--p-gold); background: rgba(255,201,77,.1); border: 1px solid rgba(255,201,77,.35); }
/* canlı kartlar */
.pm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.pm-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, rgba(14,48,78,.9), rgba(6,22,40,.92)); border: 1px solid var(--p-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 34px rgba(0,0,0,.35); }
.pm-card::before { content: ''; position: absolute; top: 0; right: 0; width: 65%; height: 2px; background: linear-gradient(90deg, transparent, var(--p-cyan)); }
.pm-card .k { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #9fd8ff; }
.pm-card b { font-size: clamp(24px, 3vw, 32px); font-weight: 900; font-variant-numeric: tabular-nums; } .pm-card .s { font-size: 12.5px; color: #8fb3cc; font-weight: 700; }
/* oyun hakkında */
.pabout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.pabout-text p { color: #c9e2f2; line-height: 1.75; margin: 0 0 14px; font-size: 16px; }
.pabout-art img { width: 100%; border-radius: 26px; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px var(--p-line); transform: rotate(1.5deg); }
/* nasıl çalışır */
.psteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.pstep { position: relative; padding: 26px 20px 22px; border-radius: 24px; background: var(--p-card); border: 1px solid var(--p-line); text-align: center; }
.pstep-n { position: absolute; top: 14px; inset-inline-start: 16px; font-size: 34px; font-weight: 900; color: rgba(255,201,77,.22); line-height: 1; }
.pstep-ico { width: 92px; height: 92px; margin: 6px auto 14px; display: grid; place-items: center; border-radius: 26px; background: radial-gradient(circle, rgba(62,230,255,.22), transparent 70%); animation: land-float 4s ease-in-out infinite; }
.pstep:nth-child(2) .pstep-ico { animation-delay: .4s; } .pstep:nth-child(3) .pstep-ico { animation-delay: .8s; } .pstep:nth-child(4) .pstep-ico { animation-delay: 1.2s; }
.pstep h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; } .pstep p { font-size: 14.5px; color: #b9d6ea; line-height: 1.55; }
/* özellikler */
.pfeat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pfeat-card { position: relative; padding: 24px 22px; border-radius: 24px; background: var(--p-card); border: 1px solid var(--p-line); overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.pfeat-card:hover { transform: translateY(-4px); border-color: rgba(255,201,77,.45); }
.pfeat-card::before { content: ''; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(circle, var(--tone-a), transparent 70%); }
.pfeat-card.gold { --tone-a: rgba(255,201,77,.22); } .pfeat-card.cyan { --tone-a: rgba(62,230,255,.22); } .pfeat-card.aqua { --tone-a: rgba(45,255,194,.2); }
.pfeat-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.pfeat-ico { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid var(--p-line); }
.pfeat-card h3 { position: relative; font-size: 19px; font-weight: 900; margin-bottom: 8px; } .pfeat-card p { position: relative; font-size: 14.5px; color: #b9d6ea; line-height: 1.6; }
/* token */
.ptoken { display: grid; grid-template-columns: .9fr 1fr 1.2fr; gap: 24px; align-items: center; }
.ptoken-coin { position: relative; display: grid; place-items: center; min-height: 300px; }
.ptoken-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,201,77,.4), rgba(45,255,194,.15) 55%, transparent 70%); filter: blur(10px); animation: ptoken-pulse 4s ease-in-out infinite; }
.ptoken-coin img { position: relative; width: 230px; height: 230px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px rgba(255,201,77,.85), 0 30px 60px rgba(0,0,0,.5); animation: ptoken-float 3.6s ease-in-out infinite; }
.ptoken-sym { position: absolute; bottom: 4px; padding: 7px 16px; border-radius: 999px; font-weight: 900; color: #2a1700; background: linear-gradient(180deg, #fff1a8, var(--p-gold)); box-shadow: 0 4px 0 #a86a00; animation: ptoken-float 3.6s ease-in-out infinite .25s; }
@keyframes ptoken-float { 50% { transform: translateY(-18px); } } @keyframes ptoken-pulse { 50% { transform: scale(1.08); opacity: .8; } }
.ptoken-alloc { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pdonut { position: relative; width: 210px; height: 210px; border-radius: 50%; background: conic-gradient(#3ee6ff 0 50%, #2dffc2 50% 70%, #ffc94d 70% 90%, #a78bfa 90% 100%); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.pdonut span { position: absolute; inset: 34px; border-radius: 50%; background: #071b30; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pdonut b { font-size: 30px; font-weight: 900; } .pdonut small { color: #8fb3cc; font-weight: 800; }
.plegend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .plegend li { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; color: #d6f1ff; } .plegend i { width: 12px; height: 12px; border-radius: 4px; }
.ptoken-spec { padding: 8px 20px; border-radius: 24px; background: var(--p-card); border: 1px solid var(--p-line); }
.ptoken-spec > div { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--p-line); } .ptoken-spec > div:last-child { border-bottom: 0; }
.ptoken-spec span { color: #8fb3cc; font-weight: 700; } .ptoken-spec b { text-align: end; }
.pca { flex-direction: column; } .pca code { display: block; padding: 11px 12px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--p-line); font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #bff6ff; word-break: break-all; }
.pca-btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* yol haritası: zaman çizelgesi */
.proad { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 24px; }
.proad::before { content: ''; position: absolute; top: 9px; left: 4%; right: 4%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--p-aqua) 0 30%, var(--p-gold) 30% 52%, rgba(255,255,255,.15) 52%); }
.proad-item { position: relative; padding: 24px 20px; border-radius: 22px; background: var(--p-card); border: 1px solid var(--p-line); }
.proad-dot { position: absolute; top: -22px; left: 22px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.2); border: 3px solid #1b1236; }
.proad-item.road_done .proad-dot { background: var(--p-aqua); box-shadow: 0 0 12px var(--p-aqua); } .proad-item.road_now .proad-dot { background: var(--p-gold); box-shadow: 0 0 14px var(--p-gold); animation: land-float 1.6s ease-in-out infinite; }
.proad-item.road_done .ptag { color: var(--p-aqua); background: rgba(45,255,194,.1); border-color: rgba(45,255,194,.4); }
.proad-item.road_now { border-color: rgba(255,201,77,.5); } .proad-item.road_next .ptag { color: #9fd8ff; background: rgba(62,230,255,.08); border-color: rgba(62,230,255,.3); }
.proad-item h3 { font-size: 19px; font-weight: 900; margin: 12px 0 10px; } .proad-item ul { margin: 0; padding-inline-start: 18px; color: #b9d6ea; font-size: 14px; line-height: 1.75; }
/* SSS */
.pfaq { display: grid; gap: 10px; max-width: 840px; margin: 0 auto; }
.pfaq details { border-radius: 18px; padding: 0 20px; background: var(--p-card); border: 1px solid var(--p-line); }
.pfaq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; font-size: 16px; display: flex; justify-content: space-between; gap: 12px; }
.pfaq summary::after { content: '+'; color: var(--p-gold); font-size: 22px; line-height: 1; transition: transform .2s ease; } .pfaq details[open] summary::after { transform: rotate(45deg); }
.pfaq summary::-webkit-details-marker { display: none; } .pfaq p { padding: 0 0 18px; color: #b9d6ea; line-height: 1.65; }
/* kapanış */
.pcta { position: relative; margin-top: 150px; min-height: 460px; display: grid; place-items: center; overflow: hidden; text-align: center; }
.pcta-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 80%; opacity: .9; }
.pcta::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #1b1236, rgba(27,18,54,.35) 35%, rgba(27,18,54,.5) 75%, #1b1236); }
.pcta-in { position: relative; z-index: 2; padding: 40px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pcta-logo { border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,201,77,.85), 0 0 40px rgba(45,255,194,.4); animation: land-float 4s ease-in-out infinite; }
.pcta h2 { font-size: clamp(30px, 6vw, 50px); font-weight: 900; text-shadow: 0 4px 16px rgba(0,0,0,.6); }
/* alt bilgi */
.pfoot { max-width: 1160px; margin: 0 auto; padding: 26px 18px calc(var(--safe-bottom) + 30px); text-align: center; border-top: 1px solid var(--p-line); color: #7f9fb6; font-size: 13px; }
.pfoot-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.pfoot-links { display: flex; gap: 22px; } .pfoot-links a { color: #cdeeff; font-weight: 800; text-decoration: none; } .pfoot .small { font-size: 11.5px; margin-top: 6px; }
/* kar örtüsü: kartlarda */
.pm-card, .pstep, .pfeat-card, .proad-item, .ptoken-spec { position: relative; }
body.snowy .pm-card, body.snowy .pfeat-card { overflow: visible; }
body.snowy .pm-card::after, body.snowy .pstep::after, body.snowy .pfeat-card::after, body.snowy .proad-item::after, body.snowy .ptoken-spec::after {
  --cap-r: 22px; content: ''; position: absolute; top: -7px; left: -1px; right: -1px; height: 48px; z-index: 2; pointer-events: none; box-sizing: border-box; padding: 0 24px;
  border-top: 10px solid #f7fbff; border-radius: calc(var(--cap-r) + 2px) calc(var(--cap-r) + 2px) 0 0;
  background: url('../img/icicles.svg') repeat-x 0 1px / 96px 14px, radial-gradient(circle at 50% 0, #f7fbff 5.5px, transparent 6px) repeat-x 0 -1px / 15px 7px;
  background-clip: content-box; background-origin: content-box; filter: drop-shadow(0 2px 2px rgba(110,170,255,.3)); }
body.snowy .pm-card::after { --cap-r: 20px; } body.snowy .pstep::after, body.snowy .pfeat-card::after { --cap-r: 24px; }
body.snowy .pm-card, body.snowy .pstep, body.snowy .pfeat-card, body.snowy .proad-item { padding-top: 32px; }
body.snowy .pfeat-card::before { top: -50px; }
@media (max-width: 960px) {
  .ph-nav { display: none; } .ph-mini { margin-inline-start: auto; }
  .pm { grid-template-columns: 1fr 1fr; } .psteps { grid-template-columns: 1fr 1fr; } .pfeat { grid-template-columns: 1fr 1fr; }
  .pabout { grid-template-columns: 1fr; } .pabout-art { order: -1; } .ptoken { grid-template-columns: 1fr; } .proad { grid-template-columns: 1fr 1fr; row-gap: 40px; } .proad::before { display: none; }
  .psec { padding-top: 100px; }
}
@media (max-width: 600px) {
  .ph-center { padding-bottom: 90px; } .ph-logo { width: 140px; height: 140px; } .ph-stats { gap: 22px; } .ph-btns a { width: 100%; justify-content: center; }
  .psteps, .pfeat, .proad { grid-template-columns: 1fr; } .psec { padding-top: 80px; } .ph2 { margin-bottom: 24px; }
  .pfoot-top { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ph-ring, .ph-logo, .pstep-ico, .ph-down, .pticker-track, .ptoken-coin img, .ptoken-sym, .ptoken-glow, .pcta-logo { animation: none; } }
/* ---------- Mini oyun ---------- */
.game-card { padding: 18px; border-radius: 22px; text-align: center; }
.game-hero { position: relative; height: 92px; margin-bottom: 6px; font-size: 52px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.game-hero span { animation: land-float 3s ease-in-out infinite; } .game-hero .g2 { font-size: 60px; animation-delay: .4s; } .game-hero .g3 { animation-delay: .8s; }
.game-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0; }
.game-chips span { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--glass); border: 1px solid var(--stroke-2); }
.game-ov { position: fixed; inset: 0; z-index: 70; background: radial-gradient(circle at 50% 20%, #3a2580, #1b1236 70%); display: flex; flex-direction: column; touch-action: none; }
.game-ov[hidden] { display: none; }
.game-top { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-top) + 12px) 14px 8px; font-weight: 900; }
.game-score { flex: 1; text-align: center; font-size: 28px; color: var(--gold); font-variant-numeric: tabular-nums; }
.game-lives { font-size: 16px; } .game-time { min-width: 44px; text-align: center; padding: 6px 10px; border-radius: 12px; background: var(--glass); border: 1px solid var(--stroke-2); }
#game-canvas { flex: 1; width: 100%; display: block; }
.game-hint { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 90px); text-align: center; color: var(--muted); font-weight: 800; pointer-events: none; }
.game-hint[hidden] { display: none; }
body.gaming #snow { display: none; }
.game-result { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.gr-ico { font-size: 52px; } .game-result h3 { font-size: 22px; font-weight: 900; margin: 0; }
.gr-row { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); font-weight: 800; }

/* ---------- Ses anahtarı ---------- */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); font-weight: 800; }
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.15); position: relative; cursor: pointer; transition: background .2s ease; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.switch:checked { background: var(--green); } .switch:checked::after { transform: translateX(20px); }

/* ---------- Cüzdan doğrulama kartı ---------- */
.verify-card { margin-top: 18px; padding: 16px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, rgba(62,230,255,.08), rgba(122,60,255,.06)); }
.vc-head { display: flex; align-items: center; gap: 12px; }
.vc-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: rgba(62,230,255,.12); border: 1px solid rgba(62,230,255,.35); }
.vc-head h3 { font-size: 18px; font-weight: 900; margin: 0 0 2px; } .vc-head p { margin: 0; font-size: 13px; }
.vc-step { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--stroke); }
.vc-step.done { border-color: rgba(46,229,157,.45); background: rgba(46,229,157,.07); }
.vc-check { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; background: rgba(255,255,255,.06); }
.vc-step.done .vc-check { background: rgba(46,229,157,.2); color: var(--green); }
.vc-st { font-size: 13.5px; line-height: 1.35; } .vc-st span { color: var(--muted); font-size: 12px; }
.vc-gift { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 0; font-weight: 800; color: #d8d5ee; }
.vc-done { text-align: center; padding: 12px; border-radius: 14px; font-weight: 900; color: var(--green); background: rgba(46,229,157,.1); border: 1px solid rgba(46,229,157,.4); }
.vc-note { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); text-align: center; }

/* ---------- Kazım için cüzdan şartı ---------- */
/* Başlık → altında açıklama → altında tam genişlik "Cüzdan Bağla" */
.need-wallet { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 4px 0 10px; padding: 14px; border-radius: 16px; text-align: center;
  background: rgba(62,230,255,.08); border: 1px dashed rgba(62,230,255,.55); animation: nw-pulse 2.4s ease-in-out infinite; }
.need-wallet[hidden] { display: none; }
.need-wallet .nw-title { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 900; }
.need-wallet .nw-ico { font-size: 20px; }
.need-wallet .nw-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.need-wallet .btn { width: 100%; margin-top: 2px; }
@keyframes nw-pulse { 50% { box-shadow: 0 0 0 3px rgba(62,230,255,.15); } }

/* ---------- Otomatik toplama ---------- */
.autoclaim-row {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 14px;
  background: rgba(62,230,255,.07); border: 1px solid rgba(62,230,255,.35); color: var(--text); font-weight: 800; text-align: start;
}
.autoclaim-row:active { transform: scale(.99); }
.autoclaim-row.on { background: rgba(46,229,157,.1); border-color: rgba(46,229,157,.5); }
.autoclaim-row .ac-ico { font-size: 18px; }
.autoclaim-row .ac-t { flex: 1; font-size: 14px; }
.autoclaim-row .ac-s { font-size: 12px; color: var(--muted); }
.autoclaim-row.on .ac-s { color: var(--green); }
.note.green { color: var(--green); padding: 10px 12px; border-radius: 12px; background: rgba(46,229,157,.08); border: 1px solid rgba(46,229,157,.35); }
.ac-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 10px; }
.ac-plan { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke-2); font-weight: 900; }
.ac-plan .d { font-size: 13px; color: var(--muted); }
.ac-plan .p { font-size: 18px; color: var(--gold); }
.ac-plan .per { font-size: 11px; color: var(--muted); font-weight: 700; }
.ac-plan.sel { border-color: var(--gold); background: rgba(247,201,72,.1); }

/* ---------- Geçmiş ---------- */
.hist-item .amt.plus { color: var(--green); }
.hist-item .amt.minus { color: var(--red); }
.hist-item .amt.zero { color: var(--muted); }

/* ---------- Nasıl oynanır turu ---------- */
.tour { position: fixed; inset: 0; z-index: 55; }
.tour-spot {
  position: fixed; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(4, 3, 12, .78), 0 0 0 3px var(--gold), 0 0 28px rgba(247,201,72,.55);
  transition: all .28s cubic-bezier(.2,.8,.2,1);
}
.tour-spot.none { top: 50% !important; left: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgba(4, 3, 12, .82); }
.tour-card {
  position: fixed; left: 14px; right: 14px; max-width: 420px; margin: 0 auto; padding: 16px; border-radius: 20px;
  background: rgba(22, 17, 44, .97); border: 1px solid var(--stroke-2); box-shadow: 0 18px 44px rgba(0,0,0,.6);
  transition: top .28s cubic-bezier(.2,.8,.2,1), bottom .28s cubic-bezier(.2,.8,.2,1); animation: fade .25s ease;
}
.tour-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tour-step { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .06em; }
.tour-skip { font-size: 13px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 4px 2px; }
.tour-title { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.tour-text { font-size: 14.5px; line-height: 1.5; color: #d8d5ee; }
.tour-dots { display: flex; gap: 5px; justify-content: center; margin: 14px 0 12px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--stroke-2); transition: all .2s ease; }
.tour-dots i.on { width: 18px; background: var(--gold); }
.tour-actions { display: flex; justify-content: space-between; gap: 10px; }
.tour-actions .btn-gold { flex: 1; }
.tour-actions #tour-prev[hidden] + .btn-gold { flex: 1; }
.tour-logo { display: block; margin: 0 auto 10px; border-radius: 18px; }

/* ---------- About TRG ---------- */
.about-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.about-logo { flex: none; border-radius: 18px; box-shadow: 0 8px 24px rgba(47,212,255,.25); }
.about-hero .screen-title { margin-bottom: 4px; }

/* ---------- Davet ödülü (arkadaş kartında Topla) ---------- */
.ref-item { flex-direction: column; align-items: stretch; gap: 10px; }
.ref-row { display: flex; align-items: center; gap: 12px; }
.ref-claim { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(247,201,72,.08); border: 1px dashed rgba(247,201,72,.45); }
.ref-lock { margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,84,112,.08); border: 1px solid rgba(255,84,112,.35); }

/* ---------- DEX (STON.fi) ---------- */
.dex-box { margin-top: 6px; }
.or-sep { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--stroke-2); }
.dex-btn { border-color: rgba(62,230,255,.45); color: #bff6ff; }

.req.flash { animation: req-flash 1.1s ease 2; }
@keyframes req-flash { 0%, 100% { box-shadow: none; } 40% { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(247,201,72,.45); } }
#withdraw-amount:disabled { opacity: .45; }
.burn-note { font-size: 12px; font-weight: 800; padding: 8px 10px; border-radius: 10px; color: #ffc2a8; background: rgba(255,120,60,.1); border: 1px solid rgba(255,120,60,.35); margin: 10px 0; }
.qty { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0; }
.qty button { width: 40px; height: 40px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--stroke-2); font-size: 20px; font-weight: 900; }
.qty .num { font-size: 22px; font-weight: 900; min-width: 40px; text-align: center; }
.avatar-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0 4px; }
.avatar-picker .avatar { cursor: pointer; opacity: .6; }
.avatar-picker .avatar.active { opacity: 1; box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(247,201,72,.5); }

/* ---------- Toast & splash ---------- */
.toasts { position: fixed; z-index: 60; left: 12px; right: 12px; top: calc(var(--safe-top) + 70px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  padding: 12px 14px; border-radius: 14px; font-weight: 800; font-size: 13.5px; pointer-events: auto;
  background: rgba(20, 17, 40, .96); border: 1px solid var(--stroke-2); box-shadow: 0 10px 26px rgba(0,0,0,.5);
  animation: toast .25s ease;
}
.toast.success { border-color: rgba(46,229,157,.6); }
.toast.error { border-color: rgba(255,84,112,.7); }
@keyframes toast { from { transform: translateY(-10px); opacity: 0; } }
.splash { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--bg); color: var(--muted); font-weight: 800; transition: opacity .3s ease; }
.splash.hide { opacity: 0; pointer-events: none; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255,255,255,.1); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-gain { position: fixed; z-index: 70; pointer-events: none; font-weight: 900; color: var(--gold); font-size: 20px; text-shadow: 0 0 12px rgba(247,201,72,.7); animation: rise 1.2s ease forwards; }
@keyframes rise { to { transform: translateY(-70px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 560px) {
  .screens { max-width: 520px; margin: 0 auto; }
  .dock { max-width: 500px; margin: 0 auto; }
}
/* ---------- TRG lansman geri sayımı ---------- */
.launch-card { margin-bottom: 12px; padding: 14px 14px 12px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(135deg, rgba(247,201,72,.16), rgba(62,230,255,.10)); border: 1px solid rgba(247,201,72,.55);
  box-shadow: 0 0 24px rgba(247,201,72,.12) inset; }
.launch-card[hidden] { display: none; }
.lc-head { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.lc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: lcpulse 1.4s infinite; }
@keyframes lcpulse { 50% { opacity: .35; } }
.lc-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 8px; }
.lc-unit { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px;
  background: rgba(0,0,0,.32); border: 1px solid var(--stroke); }
.lc-unit b { font-size: 24px; font-weight: 900; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.lc-unit small { font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lc-desc { margin: 0; font-size: 12.5px; line-height: 1.45; color: #d8d5ee; }

/* ---------- Oyun kuralları ---------- */
.rules { position: fixed; inset: 0; z-index: 70; display: flex; padding: calc(var(--safe-top) + 12px) 12px calc(var(--safe-bottom) + 12px);
  background: rgba(4, 3, 12, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rules[hidden] { display: none; }
.rules-card { display: flex; flex-direction: column; width: 100%; max-width: 560px; margin: 0 auto; min-height: 0;
  border-radius: var(--radius); padding: 14px; background: rgba(14, 12, 28, .96); border: 1px solid var(--stroke-2); }
.rules-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rules-head img { border-radius: 9px; flex: none; }
.rules-title { flex: 1; font-size: 19px; font-weight: 900; }
.rules-close[hidden] { display: none; }
.rules-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px;
  border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--stroke); font-size: 14px; line-height: 1.5; color: #dcd9f0; }
.rules-intro { font-weight: 800; color: var(--text); margin-bottom: 10px; }
.rules-body h3 { font-size: 15px; font-weight: 900; color: var(--text); margin: 14px 0 6px; }
.rules-body ul { padding-inline-start: 18px; display: grid; gap: 6px; }
.rules-foot { display: grid; gap: 10px; margin-top: 12px; }
.rules-foot[hidden] { display: none; }
.rules-agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: #dcd9f0; cursor: pointer; }
.rules-agree input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--gold); }
#rules-accept:disabled { opacity: .55; filter: grayscale(.4); }

/* ---------- Mini oyun liderlik tablosu ---------- */
.game-lb { margin-top: 14px; padding: 14px; }
.game-lb .section-title { margin: 0 0 10px; }
.lb-me { margin-top: 10px; padding: 10px 12px; border-radius: 12px; text-align: center; font-weight: 800; font-size: 13px;
  background: rgba(247,201,72,.1); border: 1px solid rgba(247,201,72,.4); color: var(--gold); }
.lb-me[hidden] { display: none; }

/* ---------- İşlem bekleme penceresi ---------- */
.txwait { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(4,3,12,.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s ease; }
.txwait-card { width: 100%; max-width: 340px; padding: 24px 20px 18px; border-radius: var(--radius); text-align: center;
  background: rgba(14,12,28,.97); border: 1px solid var(--stroke-2); display: grid; gap: 10px; justify-items: center; }
.txwait-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(62,230,255,.1); border: 1px solid rgba(62,230,255,.4); }
.txwait-ico .spinner { width: 34px; height: 34px; }
.txwait-ico.ok { background: rgba(46,229,157,.15); border-color: rgba(46,229,157,.6); color: var(--green); font-size: 34px; font-weight: 900; animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.1); } 100% { transform: none; } }
.txwait-title { font-size: 18px; font-weight: 900; }
.txwait-desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
