:root {
  --bg: #0b0816;
  --bg-2: #160f30;
  --card: rgba(255, 255, 255, 0.055);
  --card-2: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f2ff;
  --muted: #a49cc4;
  --primary: #8b5cf6;
  --primary-2: #ec4899;
  --gold: #fbbf24;
  --green: #22c55e;
  --radius: 20px;
  --gutter: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: radial-gradient(ellipse at top, var(--bg-2), var(--bg) 65%) fixed, var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
}

button { font-family: inherit; color: inherit; touch-action: manipulation; }

.hidden { display: none !important; }

.grad-text {
  background: linear-gradient(90deg, var(--gold), var(--primary-2), var(--primary), var(--gold));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 6s linear infinite;
}
@keyframes gradShift { to { background-position: 300% 0; } }

/* ---------- Arka plan efektleri ---------- */
#fx-bg { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.orbs { position: fixed; inset: 0; pointer-events: none; z-index: -2; overflow: hidden; }
.orbs i {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  animation: float 22s ease-in-out infinite alternate;
}
.orbs i:nth-child(1) { background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 60%); top: -30vmax; left: -25vmax; }
.orbs i:nth-child(2) { background: radial-gradient(circle, rgba(236, 72, 153, .16), transparent 60%); bottom: -35vmax; right: -30vmax; animation-delay: -8s; }
.orbs i:nth-child(3) { background: radial-gradient(circle, rgba(251, 191, 36, .08), transparent 60%); top: 30%; left: 30%; width: 50vmax; height: 50vmax; animation-delay: -14s; }
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vmax, 4vmax) scale(1.08); }
  100% { transform: translate(-4vmax, 7vmax) scale(.95); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg);
  transition: opacity .5s ease, visibility .5s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader { grid-auto-flow: row; align-content: center; gap: 18px; }
.loader-text { opacity: 0; color: var(--muted); font-size: 14px; text-align: center; padding: 0 24px; transition: opacity .3s; }
.loader.waiting .loader-text { opacity: 1; }
.loader-wheel {
  width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(#7c3aed 0 45deg, #2563eb 0 90deg, #334155 0 135deg, #db2777 0 180deg, #0891b2 0 225deg, #475569 0 270deg, #ea580c 0 315deg, #eab308 0 360deg);
  border: 4px solid var(--gold);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Giriş animasyonu ---------- */
.reveal { animation: reveal .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(10px + var(--safe-top)) var(--gutter) 14px;
  background: linear-gradient(180deg, rgba(11, 8, 22, .95), rgba(11, 8, 22, .7) 70%, transparent);
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  max-width: 1168px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: 3px; font-size: 17px; }
.brand-mark { color: var(--gold); font-size: 20px; text-shadow: 0 0 16px var(--gold); animation: glint 3s ease-in-out infinite; }
@keyframes glint { 50% { transform: rotate(180deg) scale(1.15); text-shadow: 0 0 26px var(--gold); } }
.top-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }

.icon-btn {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card); font-size: 17px; cursor: pointer;
}
.icon-btn:active { transform: scale(.92); }

.user-chip {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
}
.avatar {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.user-meta { min-width: 0; }
.user-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.vip-badge {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 1px 7px; border-radius: 6px;
}
.vip-bronze { background: #7c4a2d; color: #ffd8bf; }
.vip-silver { background: #64748b; color: #f1f5f9; }
.vip-gold { background: linear-gradient(90deg, #b45309, #fbbf24); color: #1c1100; }
.vip-platinum { background: linear-gradient(90deg, #67e8f9, #a78bfa); color: #0b0816; }

/* ---------- Görünümler ---------- */
.view {
  max-width: 1200px; margin: 0 auto;
  padding: 6px var(--gutter) calc(40px + var(--safe-bottom));
}

/* ---------- Hero (kompakt) ---------- */
.hero-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 14px 14px 18px; border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 72, 153, .22), transparent 55%),
    linear-gradient(120deg, #221748, #170f30);
  border: 1px solid rgba(255, 255, 255, .1);
}
.hero-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .06) 50%, transparent 65%);
  transform: translateX(-100%); animation: sweep 6s ease-in-out infinite 1s;
}
@keyframes sweep { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hero-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.greet { color: var(--muted); font-size: 12px; font-weight: 500; }
.hero-text h1 {
  font-size: 19px; font-weight: 800; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reset-timer { font-size: 12px; color: var(--muted); margin-top: 2px; }
.reset-timer b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.hero-right { display: flex; align-items: center; gap: 10px; flex: none; }
.spin-orb { position: relative; width: 58px; aspect-ratio: 1; flex: none; }
.spin-orb svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-bg { fill: rgba(0, 0, 0, .25); stroke: rgba(255, 255, 255, .08); stroke-width: 10; }
.ring-fg {
  fill: none; stroke: url(#ringGrad); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 326.73; stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
.ring-fg.empty { opacity: 0; }
.orb-inner { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.orb-inner strong { font-size: 20px; font-weight: 900; color: var(--gold); }
.orb-inner small { font-size: 9px; color: var(--muted); margin-top: 1px; }

/* ---------- Butonlar ---------- */
.btn {
  font-weight: 800; font-size: 16px; letter-spacing: .3px;
  min-height: 52px; padding: 14px 20px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--card); cursor: pointer;
  transition: transform .15s, filter .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { border: none; background: linear-gradient(90deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 30px -10px rgba(236, 72, 153, .8); }
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::before {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); animation: btnShine 2.8s ease-in-out infinite;
}
@keyframes btnShine { 0%, 50% { left: -60%; } 100% { left: 130%; } }
.btn.muted { background: var(--card); box-shadow: none; }
.btn.muted::before { display: none; }

/* ---------- Kazanan bandı ---------- */
.ticker {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding: 10px 0 10px 14px; border-radius: 14px; overflow: hidden;
  background: var(--card-2); border: 1px solid var(--border);
}
.ticker-label { flex: none; font-size: 13px; font-weight: 700; color: var(--gold); }
.ticker-label span { display: none; }
.ticker-viewport {
  flex: 1; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 28px; width: max-content; animation: marquee var(--dur, 30s) linear infinite; }
.ticker-track span { white-space: nowrap; font-size: 13px; color: var(--muted); }
.ticker-track b { color: var(--text); font-weight: 600; }
.ticker-track em { color: var(--gold); font-style: normal; font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bakiye uyarısı ---------- */
.balance-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px;
  padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(251, 191, 36, .16), rgba(245, 158, 11, .05)), var(--card);
  border: 1px solid rgba(251, 191, 36, .45);
}
.bb-icon { flex: none; font-size: 26px; }
.bb-text { flex: 1 1 220px; min-width: 0; }
.bb-text > b { color: var(--gold); font-size: 15px; font-weight: 800; }
.bb-text p { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.bb-text p b { color: var(--text); }

/* ---------- Yatırım görevi (adım adım) ---------- */
.mission {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(139, 92, 246, .16), rgba(236, 72, 153, .06) 55%, transparent), var(--card);
  border: 1px solid var(--border);
}
.mission::before {
  content: ''; position: absolute; width: 160px; height: 160px; right: -60px; top: -70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, .2), transparent 70%); pointer-events: none;
}
.mission-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mission-icon {
  width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, rgba(251, 191, 36, .38), rgba(236, 72, 153, .3));
  box-shadow: 0 6px 18px -8px rgba(251, 191, 36, .7);
}
.mission-title { flex: 1; min-width: 0; }
.mission-title h4 { font-size: 16px; font-weight: 800; line-height: 1.2; }
.mission-title p { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.35; }
.mission-count {
  flex: none; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800;
  color: var(--muted); background: rgba(255, 255, 255, .08); font-variant-numeric: tabular-nums;
}

/* Adımlar: dikey yol; tamamlanan adımlar yeşil, sıradaki parlar, sonrakiler kilitli */
.m-path { list-style: none; display: grid; margin: 0; padding: 0; }
.m-node { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 16px; }
.m-node:last-child { padding-bottom: 0; }
.m-node::before {
  content: ''; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .1);
}
.m-node:last-child::before { display: none; }
.m-node[data-state="done"]::before { background: linear-gradient(var(--green), rgba(34, 197, 94, .25)); }
.m-dot {
  position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; color: var(--muted);
  background: #1b1430; border: 2px solid rgba(255, 255, 255, .14);
}
.m-dot i { font-style: normal; }
.m-node[data-state="done"] .m-dot { background: var(--green); border-color: var(--green); color: #052e12; }
.m-node[data-state="done"] .m-dot i { font-size: 0; }
.m-node[data-state="done"] .m-dot i::after { content: '✓'; font-size: 15px; }
.m-node[data-state="current"] .m-dot {
  color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 4px rgba(236, 72, 153, .18), 0 0 18px rgba(236, 72, 153, .55);
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse { 50% { box-shadow: 0 0 0 7px rgba(236, 72, 153, .07), 0 0 26px rgba(236, 72, 153, .7); } }
.m-body { min-width: 0; display: grid; gap: 6px; padding-top: 4px; }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.m-game { min-width: 0; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-status { flex: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-status b { color: var(--text); font-size: 14px; font-weight: 800; }
.m-sub { font-size: 12px; color: var(--muted); }
.m-hint { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.m-hint b { color: var(--gold); font-weight: 800; }
.m-node[data-state="locked"] .m-game, .m-node[data-state="locked"] .m-sub { opacity: .55; }
.m-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px;
  font-size: 12px; font-weight: 800; line-height: 18px; white-space: nowrap; border: 1px solid transparent;
}
.m-chip.ok { color: var(--green); background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .4); }
.m-chip.gold { color: var(--gold); background: rgba(251, 191, 36, .14); border-color: rgba(251, 191, 36, .45); }
.m-chip.lock { color: var(--muted); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.m-note { font-size: 11.5px; color: var(--muted); line-height: 1.45; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
a.btn { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text); text-decoration: none; }
.mission-cta { min-height: 46px; padding: 10px 14px; font-size: 15px; border-radius: 13px; }
.mission-cta i { font-style: normal; transition: transform .2s; }
.mission.done { background: linear-gradient(160deg, rgba(34, 197, 94, .14), transparent 60%), var(--card); }
.mission.done .mission-count { color: #052e12; background: var(--green); }
.progress { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress .bar {
  position: relative; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
}
.progress .bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  animation: barShine 2s linear infinite;
}
@keyframes barShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- Oyun kartları ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 2px 12px; }
.section-head h3 { font-size: 20px; font-weight: 800; }
.section-head span { color: var(--muted); font-size: 13px; }

.games { display: grid; gap: 12px; }
.game-card {
  position: relative; overflow: hidden; text-align: left; width: 100%;
  display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center;
  padding: 12px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  transform-style: preserve-3d;
}
button.game-card { cursor: pointer; }
button.game-card:active { transform: scale(.98); }
.game-card.locked { opacity: .62; }
.game-card.locked .game-art { filter: grayscale(.5); }

.game-art {
  position: relative; height: 112px; border-radius: 16px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at center, #3a2780, #120c26 75%);
}
.scratch-art { background: radial-gradient(circle at center, #1d5c5a, #0c2026 75%); }
.box-art { background: radial-gradient(circle at center, #6b1f55, #260c1e 75%); }

.mini-wheel {
  height: 74%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(#7c3aed 0 45deg, #2563eb 0 90deg, #334155 0 135deg, #db2777 0 180deg, #0891b2 0 225deg, #475569 0 270deg, #ea580c 0 315deg, #eab308 0 360deg);
  border: 4px solid var(--gold);
  box-shadow: 0 0 24px rgba(251, 191, 36, .45);
  animation: spin 10s linear infinite;
}
.mini-pointer {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; background: #fde68a; clip-path: polygon(0 0, 100% 0, 50% 100%);
}
button.game-card:hover .mini-wheel { animation-duration: 1.4s; }

.ticket {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 8px; border-radius: 10px;
  background: linear-gradient(135deg, #fde68a, #f59e0b); transform: rotate(-6deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}
.ticket i {
  width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center;
  font-style: normal; font-weight: 900; font-size: 12px; color: #6b4b00;
  background: linear-gradient(110deg, #cbd5e1 30%, #f8fafc 50%, #cbd5e1 70%); background-size: 200% 100%;
  animation: foil 2.2s linear infinite;
}
@keyframes foil { to { background-position: -200% 0; } }

.gift { font-size: 54px; animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-10px) rotate(-6deg); } 60% { transform: translateY(0) rotate(4deg); } }
.spark { position: absolute; color: var(--gold); font-size: 12px; animation: twinkle 1.6s ease-in-out infinite; }
.s1 { top: 18%; left: 22%; } .s2 { top: 26%; right: 18%; animation-delay: .5s; } .s3 { bottom: 20%; left: 30%; animation-delay: 1s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.2); } }

.game-info h4 { font-size: 18px; font-weight: 800; }
.game-info p { color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.35; }
.play-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-weight: 800; font-size: 14px; color: var(--gold);
}
.play-link i { font-style: normal; transition: transform .2s; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

.game-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 800;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .5); color: var(--text);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s;
}
/* Oynanabilir hak */
.game-badge[data-tone="ok"] { background: rgba(22, 163, 74, .32); border-color: rgba(74, 222, 128, .75); color: #bbf7d0; box-shadow: 0 0 14px rgba(34, 197, 94, .4); }
/* Hak yok */
.game-badge[data-tone="none"] { background: rgba(220, 38, 38, .26); border-color: rgba(248, 113, 113, .65); color: #fecaca; }
/* Hak var ama bakiye engeli (bakiye uyarısıyla aynı renk) */
.game-badge[data-tone="lock"] { background: rgba(245, 158, 11, .24); border-color: rgba(251, 191, 36, .65); color: #fde68a; }
.game-badge.soon { background: rgba(0, 0, 0, .55); color: var(--text); box-shadow: none; }

.shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .12), transparent 45%);
}

/* ---------- Çark görünümü ---------- */
.game-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.game-header h2 { font-size: 18px; font-weight: 800; }
.back-btn {
  min-height: 40px; padding: 0 14px; border-radius: 99px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); font-size: 14px; font-weight: 600;
}
.spins-chip {
  min-height: 40px; padding: 0 14px; border-radius: 99px; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg, rgba(139, 92, 246, .35), rgba(236, 72, 153, .3));
  border: 1px solid rgba(236, 72, 153, .4); font-size: 14px;
}
.spins-chip b { color: var(--gold); font-size: 17px; }
.spins-chip.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.18); } }

.game-layout { display: grid; gap: 18px; }
.game-stage { display: flex; flex-direction: column; align-items: center; padding-top: 14px; }

.wheel-wrap {
  position: relative; width: min(90vw, 62svh, 560px); aspect-ratio: 1;
  border-radius: 50%; padding: 5%;
  background: radial-gradient(circle, #3b2a10 60%, #1a1206);
  box-shadow: 0 0 0 5px #fbbf24, 0 0 0 9px #92400e, 0 0 70px rgba(251, 191, 36, .3), inset 0 0 30px rgba(0, 0, 0, .8);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: box-shadow .4s;
}
.wheel-wrap.win-flash { animation: winFlash 1.2s ease-out; }
@keyframes winFlash {
  30% { box-shadow: 0 0 0 5px #fff7d6, 0 0 0 9px #fbbf24, 0 0 130px rgba(251, 191, 36, .9), inset 0 0 30px rgba(0, 0, 0, .8); }
}
/* Dönen kare canvas köşeleri sayfayı taşırmasın diye yuvarlak kutuda kırpılır */
.wheel-disc { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
#wheel {
  width: 100%; height: 100%; display: block; border-radius: 50%;
  will-change: transform; pointer-events: none;
}
.bulbs { position: absolute; inset: 0; pointer-events: none; }
.bulb {
  position: absolute; width: 2.4%; aspect-ratio: 1; border-radius: 50%;
  background: #fff7d6; box-shadow: 0 0 8px 2px #fde68a;
  transform: translate(-50%, -50%);
  animation: blink 1s infinite alternate;
}
.bulb:nth-child(even) { animation-delay: .5s; }
@keyframes blink { from { opacity: 1; } to { opacity: .25; box-shadow: none; } }

.pointer {
  position: absolute; top: -3%; left: 50%; z-index: 3;
  width: 10%; aspect-ratio: .8; transform: translateX(-50%); transform-origin: 50% 20%;
  background: linear-gradient(180deg, #fff7d6, #f59e0b 60%, #b45309);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6));
}
.pointer.tick { animation: tick .12s ease-out; }
@keyframes tick { 40% { transform: translateX(-50%) rotate(-16deg); } }

.hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 24%; aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  border: 5px solid #fde68a;
  background: radial-gradient(circle at 35% 30%, #f472b6, #9333ea 70%);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .35), 0 8px 30px rgba(147, 51, 234, .7);
  display: grid; place-items: center;
  transition: transform .15s, filter .2s;
}
.hub span { font-weight: 900; font-size: clamp(14px, 4.2vw, 24px); letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.hub:active:not(:disabled) { transform: translate(-50%, -50%) scale(.92); }
.hub:disabled { cursor: not-allowed; filter: grayscale(.7) brightness(.75); }
.hub.pulse:not(:disabled) { animation: pulse 1.6s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(0, 0, 0, .35), 0 0 0 0 rgba(236, 72, 153, .7); }
  50% { box-shadow: 0 0 0 5px rgba(0, 0, 0, .35), 0 0 0 20px rgba(236, 72, 153, 0); }
}
.game-hint { margin-top: 18px; color: var(--muted); font-size: 13px; text-align: center; min-height: 18px; }
.game-hint b { color: var(--gold); }

.game-side { display: grid; gap: 12px; }
.side-card { padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
.side-card small { color: var(--muted); font-size: 13px; }
.side-card h4 { margin-bottom: 10px; font-size: 16px; }
.big-number { font-size: 48px; font-weight: 900; color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; }
.breakdown { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.breakdown span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.history { list-style: none; display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.history li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 14px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04);
}
.history li time { color: var(--muted); font-size: 12px; flex: none; }
.history li.empty { color: var(--muted); justify-content: center; }
.history li.win b { color: var(--gold); }
.history li .pay { margin-left: auto; margin-right: 8px; font-style: normal; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.history li .pay-paid { color: #86efac; }
.history li .pay-pending { color: #fcd34d; }
.history li .pay-rejected, .history li .pay-cancelled { color: #fca5a5; }
.history li.new { animation: reveal .5s both; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  padding: var(--gutter); padding-bottom: calc(var(--gutter) + var(--safe-bottom));
  background: rgba(5, 3, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .3s;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal-card {
  position: relative; overflow: hidden; text-align: center;
  padding: 34px 24px 24px; max-width: 380px; width: 100%; border-radius: 26px;
  background: linear-gradient(160deg, #2a1d55, #150f2c);
  border: 1px solid rgba(255, 255, 255, .14);
  animation: pop .55s cubic-bezier(.2, 1.6, .4, 1);
}
.modal-card > * { position: relative; }
.modal-card.jackpot { background: linear-gradient(160deg, #5a3d08, #1f1503); border-color: rgba(251, 191, 36, .6); }
.modal-card.lose .rays { display: none; }
@keyframes pop { from { transform: scale(.6) translateY(30px); opacity: 0; } }
.rays {
  position: absolute !important; top: -40%; left: 50%; width: 520px; height: 520px; margin-left: -260px;
  background: repeating-conic-gradient(rgba(251, 191, 36, .13) 0 10deg, transparent 10deg 20deg);
  mask-image: radial-gradient(circle, #000 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%);
  animation: spin 18s linear infinite;
}
.modal-emoji { font-size: 68px; animation: emojiPop .8s cubic-bezier(.2, 1.8, .4, 1) .1s both; }
@keyframes emojiPop { from { transform: scale(0) rotate(-30deg); } }
.modal-card h2 { margin-top: 6px; font-size: 22px; }
.prize-text { font-size: clamp(30px, 9vw, 40px); font-weight: 900; margin: 8px 0; line-height: 1.15; }
.modal-card p { color: var(--muted); margin-bottom: 20px; font-size: 14px; }
.modal-card .btn { width: 100%; }

/* ---------- Hata / toast ---------- */
.view-error { min-height: 100dvh; display: grid; place-items: center; padding: var(--gutter); }
.error-card { padding: 32px 24px; text-align: center; max-width: 420px; border-radius: 24px; background: var(--card); border: 1px solid var(--border); }
.error-icon { font-size: 52px; }
.error-card h2 { margin: 10px 0 6px; }
.error-card p { color: var(--muted); }
.error-card #err-retry { margin: 20px auto 0; }
.test-users { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 14px; }
.test-users span { color: var(--muted); width: 100%; }
.test-users a { color: var(--text); text-decoration: none; padding: 8px 14px; border-radius: 10px; background: rgba(139, 92, 246, .3); }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + var(--safe-bottom)); z-index: 60;
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 14px; text-align: center; font-size: 14px;
  background: #3b1020; border: 1px solid #be185d;
  animation: toastIn .35s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 55; }

/* ---------- Küçük buton / link ---------- */
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 14px; border-radius: 12px; white-space: nowrap; }
.link-btn { background: none; border: none; color: var(--gold); font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 0; }

/* ---------- Çark: sekmeli bilgi kartı ---------- */
.info-card { padding: 6px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.tab {
  min-height: 40px; border: none; border-radius: 10px; background: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s;
}
.tab.active { background: linear-gradient(90deg, rgba(139, 92, 246, .5), rgba(236, 72, 153, .4)); color: var(--text); }
.tab-panel { padding: 12px 10px 10px; animation: fadeIn .3s; }
.panel-note { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

.prize-list { display: grid; gap: 6px; }
.prize-item { border-radius: 12px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.prize-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; font-size: 14px; font-weight: 600;
}
.prize-item summary::-webkit-details-marker { display: none; }
.prize-item summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .2s; }
.prize-item[open] summary::after { transform: rotate(180deg); }
.prize-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; }
.prize-tag { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--gold); color: #1c1100; }
.prize-item ul { margin: 0 12px 12px 34px; display: grid; gap: 5px; font-size: 13px; color: var(--muted); }

.earn-list { display: grid; gap: 10px; }
.earn-item { display: flex; gap: 12px; align-items: flex-start; }
.earn-item .step-icon { flex: none; margin: 0; width: 36px; height: 36px; font-size: 17px; }
.earn-item b { display: block; font-size: 14px; margin-bottom: 2px; }
.earn-item p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.earn-mine {
  margin-top: 4px; padding: 10px 12px; border-radius: 12px; font-size: 13px;
  background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .3);
}
.earn-mine b { color: var(--green); }

.terms-list { padding-left: 20px; display: grid; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.terms-list li::marker { color: var(--gold); font-weight: 700; }

/* ---------- Sonuç modalı: şartlar ---------- */
.m-terms { text-align: left; margin: -6px 0 18px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.m-terms summary { cursor: pointer; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.m-terms ul { padding: 0 14px 12px 30px; display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }

/* ---------- Alt panel (sheet) ---------- */
.sheet-modal { place-items: end center; padding: 0; }
.sheet {
  width: 100%; max-width: 560px; max-height: 85dvh; display: flex; flex-direction: column;
  border-radius: 24px 24px 0 0; background: linear-gradient(180deg, #221748, #120c26);
  border: 1px solid var(--border); border-bottom: none;
  padding-bottom: var(--safe-bottom);
  animation: sheetUp .4s cubic-bezier(.2, .9, .3, 1);
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; }
.sheet-head h3 { font-size: 18px; }
.sheet-body { overflow-y: auto; padding: 0 18px 22px; }
.sheet-body h4 { margin: 14px 0 10px; font-size: 15px; }
@media (min-width: 640px) {
  .sheet-modal { place-items: center; padding: var(--gutter); }
  .sheet { border-radius: 24px; border-bottom: 1px solid var(--border); animation: pop .4s cubic-bezier(.2, 1.4, .4, 1); }
}

/* ---------- Çark ışıkları: dönerken sırayla yanar ---------- */
.spinning .bulb { animation: chase .8s linear infinite; animation-delay: calc(var(--n) * -33ms); }
@keyframes chase { 0%, 20% { opacity: 1; box-shadow: 0 0 10px 3px #fde68a; } 45%, 100% { opacity: .2; box-shadow: none; } }
.win-flash .bulb { animation: blink .14s 10 alternate; }

/* ---------- Ortak: ikon kutusu, kurallar, sekme ekleri ---------- */
.step-icon {
  width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .35), rgba(236, 72, 153, .3));
}
.rules-grid { display: grid; gap: 10px; }
.rule-notes { grid-column: 1 / -1; }
.rule-row {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border);
}
.rule-row h5 { font-size: 15px; margin-bottom: 6px; }
.rule-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rule-chips span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.panel-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin: 2px 0 10px; }
.how-list { padding-left: 20px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; line-height: 1.45; }
.stage-actions { display: flex; gap: 10px; margin-top: 18px; width: min(92vw, 420px); }
.stage-actions .btn { flex: 1; }

/* ---------- Ortak çizim boyutları ---------- */
.prize-sym { width: 24px; height: 24px; flex: none; }
.prize-sym svg, .ticket i svg, .modal-emoji svg { width: 100%; height: 100%; display: block; }
.modal-emoji:has(svg) { width: 104px; height: 104px; margin: 0 auto; }
#fx-burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 56; }

/* ================= KAZI KAZAN (Meyve Kazan) ================= */
.sc-scene {
  position: relative; overflow: hidden; width: 100%; max-width: 560px;
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0 0; border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(236, 72, 153, .22), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(139, 92, 246, .25), transparent 70%);
}
/* Sahne ışıkları */
.sc-beams { position: absolute; inset: 0; pointer-events: none; }
.sc-beams i {
  position: absolute; top: -12%; left: 50%; width: 70%; height: 125%; margin-left: -35%;
  transform-origin: 50% 0;
  background: linear-gradient(to bottom, rgba(253, 230, 138, .2), rgba(253, 230, 138, 0) 75%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  animation: beam 7s ease-in-out infinite alternate;
}
.sc-beams i:nth-child(2) { animation-delay: -3.5s; background: linear-gradient(to bottom, rgba(244, 114, 182, .18), rgba(244, 114, 182, 0) 75%); }
@keyframes beam { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
/* Arka planda süzülen meyveler */
.sc-rain { position: absolute; inset: 0; pointer-events: none; }
.sc-rain span { position: absolute; top: -60px; animation: fruitFall linear infinite; filter: blur(.5px); }
.sc-rain span svg { width: 100%; height: 100%; }
@keyframes fruitFall { to { transform: translateY(var(--fall, 700px)) rotate(var(--rot, 1turn)); } }
/* Neon tabela */
.sc-neon {
  position: relative; z-index: 1; margin-bottom: 14px;
  font-size: clamp(22px, 7vw, 30px); font-weight: 900; letter-spacing: 4px; color: #fff0f7;
  text-shadow: 0 0 4px #fff, 0 0 10px #f472b6, 0 0 22px #ec4899, 0 0 42px #db2777;
  animation: neon 4s infinite;
}
.sc-neon b { color: #fff7d6; text-shadow: 0 0 4px #fff, 0 0 10px #fde047, 0 0 22px #f59e0b, 0 0 42px #d97706; }
@keyframes neon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .55; } }

/* Kart: iki yüz üst üste, 3D çevirme */
.sc-flip { position: relative; z-index: 1; display: grid; }
.sc-face { grid-area: 1 / 1; }
.sc-flip.back .sc-front, .sc-flip.front .sc-back { visibility: hidden; }
.sc-flip.flip-out { animation: flipOut .26s ease-in forwards; }
.sc-flip.flip-in { animation: flipIn .42s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes flipOut { to { transform: perspective(1000px) rotateY(90deg) scale(.96); } }
@keyframes flipIn { from { transform: perspective(1000px) rotateY(-90deg) scale(.96); } }

.sc-front, .sc-back {
  width: min(86vw, 380px); border-radius: 22px; position: relative; overflow: hidden;
  box-shadow: 0 0 0 3px #fbbf24, 0 0 0 6px #92400e, 0 0 0 7px rgba(251, 191, 36, .45),
    0 0 50px rgba(236, 72, 153, .35), 0 34px 50px -22px #000;
}
.sc-front {
  padding: 12px 12px 10px;
  background: radial-gradient(circle at 50% -10%, #7c3aed, #2e1065 55%, #1a0b3d);
}
.sc-front::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .14) 50%, transparent 62%);
  transform: translateX(-100%); animation: sweep 6s ease-in-out infinite 2s;
}
.sc-front.celebrate { animation: celebrate .5s ease-in-out 3; }
@keyframes celebrate { 25% { transform: rotate(-1.5deg) scale(1.02); } 75% { transform: rotate(1.5deg) scale(1.02); } }

.sc-header { text-align: center; margin: 2px 0 10px; }
.sc-title {
  display: block; font-size: clamp(24px, 7.5vw, 30px); font-weight: 900; letter-spacing: 2px; line-height: 1.1;
  background: linear-gradient(180deg, #fffbeb, #fde047 45%, #f59e0b 55%, #b45309);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #7c2d12) drop-shadow(0 0 10px rgba(251, 191, 36, .45));
}
.sc-sub { font-size: 12.5px; font-weight: 600; color: #e9d5ff; }

.sc-area {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #fffaf0, #fde9c9);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .35), 0 0 0 2px rgba(251, 191, 36, .7);
}
.sc-grid {
  position: absolute; inset: 0; padding: 8px; gap: 7px;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
}
.sc-cell {
  display: grid; place-items: center; border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, #ffffff, #fde7c4 78%);
  box-shadow: inset 0 -3px 0 rgba(180, 120, 40, .22), inset 0 2px 0 #fff, 0 1px 2px rgba(120, 70, 20, .2);
  transition: opacity .4s, filter .4s, background .3s;
}
.sc-cell svg { width: 80%; height: 80%; }
.sc-cell.open svg { animation: cellPop .5s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes cellPop { from { transform: scale(.55) rotate(-8deg); } }
.sc-cell.win {
  background: radial-gradient(circle at 50% 40%, #fffbeb, #fbbf24);
  box-shadow: 0 0 0 3px #f59e0b, 0 0 26px rgba(251, 191, 36, .95);
  animation: cellWin .6s ease-in-out infinite alternate; position: relative; z-index: 1;
}
@keyframes cellWin { to { transform: scale(1.07); } }
.sc-cell.dim { opacity: .38; filter: grayscale(.75); }
.sc-cell.dim-soft { filter: saturate(.55) brightness(.95); }

#sc-foil { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; touch-action: none; transition: opacity .7s ease; }
.sc-area.playing:not(.touch) #sc-foil { cursor: none; }
#sc-foil.cleared { opacity: 0; pointer-events: none; }
.sc-coin {
  position: absolute; left: 0; top: 0; z-index: 4; width: 54px; height: 54px; pointer-events: none;
  opacity: 0; transition: opacity .15s; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5));
}
.sc-coin.show { opacity: 1; }
.sc-coin svg { width: 100%; height: 100%; }
.sc-footer {
  display: flex; justify-content: space-between; margin-top: 9px; padding: 0 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #c4b5fd;
}

/* Kartın arka yüzü */
.sc-back {
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background:
    radial-gradient(circle at 50% 40%, rgba(236, 72, 153, .45), transparent 60%),
    repeating-linear-gradient(45deg, #3b0764 0 16px, #4c1d95 16px 32px);
}
.sc-back-art { display: flex; align-items: flex-end; margin-bottom: 4px; }
.sc-back-art span { width: 72px; height: 72px; animation: bob 2.6s ease-in-out infinite; }
.sc-back-art span:nth-child(2) { width: 110px; height: 110px; margin: 0 -10px; animation-delay: -.8s; }
.sc-back-art span:nth-child(3) { animation-delay: -1.6s; }
.sc-back-art svg { width: 100%; height: 100%; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(4deg); } }
.sc-back-title {
  font-size: 48px; font-weight: 900; line-height: .95; text-align: center; letter-spacing: 2px;
  background: linear-gradient(180deg, #fffbeb, #fde047 45%, #f59e0b 55%, #b45309);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #7c2d12) drop-shadow(0 0 16px rgba(251, 191, 36, .5));
}
.sc-back-sub {
  margin-top: 8px; padding: 6px 16px; border-radius: 99px; font-size: 13px; font-weight: 700;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(253, 230, 138, .4); color: #fde68a;
  animation: pulseSoft 1.6s ease-in-out infinite;
}
@keyframes pulseSoft { 50% { transform: scale(1.05); box-shadow: 0 0 18px rgba(253, 230, 138, .35); } }

.sc-pedestal {
  width: 78%; height: 34px; margin-top: -6px;
  background: radial-gradient(ellipse at 50% 30%, rgba(236, 72, 153, .5), transparent 70%);
}

/* Ödül tablosu */
.paytable {
  width: min(92vw, 420px); margin-top: 20px; padding: 14px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border); display: grid; gap: 6px;
}
.paytable h5 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.pt-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.pt-fruits { display: flex; flex: none; }
.pt-fruits svg { width: 30px; height: 30px; margin-right: -8px; }
.pt-name { font-size: 12.5px; color: var(--muted); margin-left: 8px; }
.pt-row b { margin-left: auto; font-size: 14px; white-space: nowrap; }
.pt-row.jp { background: linear-gradient(90deg, rgba(251, 191, 36, .25), rgba(251, 191, 36, .04)); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .5); }
.pt-row.jp b { color: var(--gold); }

/* ================= SÜRPRİZ KUTU ================= */
.box-title { font-size: 20px; font-weight: 800; text-align: center; min-height: 28px; margin-bottom: 8px; }
.box-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 12px;
  width: min(94vw, 520px); padding: 40px 4px 64px;
}
.box-grid.deal .gbox { animation: boxDeal .5s cubic-bezier(.2, 1.4, .4, 1) backwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes boxDeal { from { opacity: 0; transform: translateY(30px) scale(.6); } }
.gbox {
  position: relative; aspect-ratio: 1; padding: 0; border: none; background: none; cursor: pointer;
  transition: transform .4s cubic-bezier(.2, 1.4, .4, 1), opacity .4s, filter .4s;
}
.gbox:nth-child(6n+1) { --c1: #8b5cf6; --cl: #a78bfa; --c2: #5b21b6; }
.gbox:nth-child(6n+2) { --c1: #ec4899; --cl: #f472b6; --c2: #9d174d; }
.gbox:nth-child(6n+3) { --c1: #3b82f6; --cl: #60a5fa; --c2: #1e40af; }
.gbox:nth-child(6n+4) { --c1: #10b981; --cl: #34d399; --c2: #065f46; }
.gbox:nth-child(6n+5) { --c1: #f97316; --cl: #fb923c; --c2: #9a3412; }
.gbox:nth-child(6n+6) { --c1: #ef4444; --cl: #f87171; --c2: #991b1b; }
.gbox-shadow {
  position: absolute; left: 16%; right: 16%; bottom: -2%; height: 10%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .6), transparent 70%);
  animation: shadowPulse 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.5s);
}
@keyframes shadowPulse { 50% { transform: scaleX(.82); opacity: .6; } }
.gbox-inner { position: absolute; inset: 0 0 4% 0; animation: boxFloat 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.5s); }
@keyframes boxFloat { 50% { transform: translateY(-7px); } }
.gbox-body {
  position: absolute; left: 12%; right: 12%; bottom: 0; height: 56%; z-index: 1;
  border-radius: 5px 5px 12px 12px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .2), transparent 22%, transparent 78%, rgba(0, 0, 0, .25)),
    linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .18), inset 0 2px 0 rgba(255, 255, 255, .25);
}
/* Kutunun içi (kapak açılınca görünür) */
.gbox-body::before {
  content: ''; position: absolute; left: 3%; right: 3%; top: -6%; height: 18%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 70%, #0b0618 40%, rgba(0, 0, 0, .6));
  opacity: 0; transition: opacity .3s .1s;
}
.gbox-lid {
  position: absolute; left: 5%; right: 5%; top: 30%; height: 18%; z-index: 3; border-radius: 6px;
  background: linear-gradient(180deg, var(--cl), var(--c1) 60%, var(--c2));
  box-shadow: 0 5px 0 rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .35);
  transition: transform .75s cubic-bezier(.25, 1.5, .5, 1), opacity .5s ease .25s;
}
.ribbon {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 18%; transform: translateX(-50%);
  background: linear-gradient(90deg, #fde68a, #f59e0b 55%, #fde68a);
  box-shadow: 0 0 0 1px rgba(180, 83, 9, .25);
}
/* Fiyonk: iki dolu ilmek + düğüm */
.bow { position: absolute; left: 50%; bottom: 88%; width: 54%; height: 70%; transform: translateX(-50%); }
.bow::before, .bow::after {
  content: ""; position: absolute; bottom: 0; width: 50%; height: 100%;
  background: linear-gradient(135deg, #fef3c7, #fbbf24 55%, #d97706);
  box-shadow: inset 0 0 0 2px rgba(180, 83, 9, .35);
  border-radius: 50% 50% 50% 0;
}
.bow::before { left: 2%; transform: rotate(-20deg) skewX(8deg); transform-origin: 100% 100%; border-radius: 50% 50% 0 50%; }
.bow::after { right: 2%; transform: rotate(20deg) skewX(-8deg); transform-origin: 0 100%; }
.gbox-lid .ribbon::after {
  content: ""; position: absolute; left: 50%; top: -18%; width: 150%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fef3c7, #f59e0b); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); z-index: 1;
}
/* Ödül: kutudan yükselir */
.gbox-prize {
  position: absolute; left: 14%; right: 14%; top: 14%; aspect-ratio: 1; z-index: 2; pointer-events: none;
  opacity: 0; transform: translateY(40%) scale(.3);
  transition: opacity .4s ease .2s, transform .8s cubic-bezier(.2, 1.6, .4, 1) .2s;
}
.gbox-prize svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.gbox-glow {
  position: absolute; left: 50%; top: 34%; width: 150%; aspect-ratio: 1; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, .6), transparent 62%);
  opacity: 0; transform: translate(-50%, -50%) scale(.3); transition: opacity .6s, transform .8s;
}
.gbox-glow::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, .2) 0 8deg, transparent 8deg 22deg);
  mask-image: radial-gradient(circle, #000 15%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 60%);
  animation: spin 12s linear infinite;
}
/* Etiket: kutunun altında */
.gbox-cap {
  position: absolute; left: 50%; top: 100%; margin-top: 10px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 6px); transition: opacity .4s .4s, transform .4s .4s;
}
.gbox-cap small { font-size: 9px; font-weight: 900; letter-spacing: 1.5px; color: var(--gold); }
.gbox-cap b {
  font-size: clamp(10.5px, 3vw, 13px); font-weight: 800; padding: 3px 10px; border-radius: 99px;
  background: rgba(0, 0, 0, .55); border: 1px solid var(--border);
}
/* Durumlar */
.box-grid.picking .gbox:not(.chosen) { opacity: .45; transform: scale(.9); }
.gbox.chosen { z-index: 2; transform: scale(1.12); }
.gbox.shaking .gbox-inner { animation: shake .42s ease-in-out infinite; }
.gbox.shaking-hard .gbox-inner { animation: shakeHard .16s linear infinite; }
.gbox.shaking .gbox-glow { opacity: .5; transform: translate(-50%, -50%) scale(.75); animation: glowPulse .5s ease-in-out infinite alternate; }
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-6deg) translateY(-3px); }
  75% { transform: rotate(6deg) translateY(-3px); }
}
@keyframes shakeHard {
  0%, 100% { transform: rotate(0) translate(0, -4px); }
  25% { transform: rotate(-9deg) translate(-2px, -8px); }
  75% { transform: rotate(9deg) translate(2px, -8px); }
}
@keyframes glowPulse { to { opacity: .85; } }
.gbox.open .gbox-inner { animation: none; }
.gbox.open .gbox-shadow { animation: none; }
.gbox.open .gbox-body::before { opacity: 1; }
.gbox.open .gbox-lid { transform: translate(-40%, -170%) rotate(-50deg); opacity: 0; }
.gbox.open .gbox-prize { opacity: 1; transform: translateY(-48%) scale(1.05); }
.gbox.open .gbox-cap { opacity: 1; transform: translate(-50%, 0); }
.gbox.chosen.open .gbox-glow { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: none; }
.gbox.chosen.open.empty-box .gbox-glow { background: radial-gradient(circle, rgba(148, 163, 184, .3), transparent 62%); }
.gbox.chosen.open.jp .gbox-glow { background: radial-gradient(circle, rgba(251, 191, 36, .95), transparent 65%); }
.gbox.chosen .gbox-cap b { background: linear-gradient(90deg, #fde047, #f59e0b); color: #1c1100; border: none; box-shadow: 0 0 18px rgba(251, 191, 36, .6); }
.gbox.chosen.empty-box .gbox-cap b { background: #475569; color: #fff; box-shadow: none; }
.box-grid.picking .gbox.other { opacity: .8; filter: saturate(.75); transform: scale(.9); }
.gbox.other .gbox-prize { transition-delay: .05s; }
.gbox.other.open .gbox-prize { transform: translateY(-38%) scale(.8); }
.box-grid.locked .gbox { filter: grayscale(.6) brightness(.75); cursor: not-allowed; }
.box-grid.locked .gbox-inner, .box-grid.locked .gbox-shadow { animation: none; }
@media (hover: hover) {
  .box-grid:not(.picking):not(.locked) .gbox:hover { transform: translateY(-6px) scale(1.06); }
  .box-grid:not(.picking):not(.locked) .gbox:hover .gbox-glow { opacity: .45; transform: translate(-50%, -50%) scale(.7); }
}
/* Lobby kartındaki sabit kutu */
.gbox-static { display: block; width: 46%; cursor: inherit; --c1: #ec4899; --cl: #f472b6; --c2: #9d174d; --i: 0; }

/* ================= Tablet / Masaüstü ================= */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .user-name { max-width: 160px; }
  .hero-card { padding: 16px 18px 16px 24px; }
  .hero-text h1 { font-size: 22px; }
  .spin-orb { width: 64px; }
  .ticker-label span { display: inline; }
  .mission { padding: 20px 22px; }
  .mission-icon { width: 46px; height: 46px; font-size: 23px; border-radius: 14px; }
  .mission-title h4 { font-size: 18px; }
  .mission-cta { align-self: flex-start; min-width: 200px; }
}

@media (min-width: 900px) {
  .games { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .game-card { grid-template-columns: 1fr; padding: 16px; align-items: stretch; }
  .game-art { height: 180px; }
  .gift { font-size: 80px; }
  .ticket i { width: 28px; height: 28px; font-size: 14px; }
  .game-badge { top: 28px; right: 28px; }
  .rules-grid { grid-template-columns: repeat(3, 1fr); }
  .m-path { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; }
  .m-node { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--border); }
  .m-node:last-child { padding-bottom: 14px; }
  .m-node::before { display: none; }
  .m-node[data-state="current"] { border-color: rgba(236, 72, 153, .55); background: rgba(236, 72, 153, .07); }
  .m-node[data-state="done"] { border-color: rgba(34, 197, 94, .35); }
  .box-grid { gap: 40px 24px; }
  .game-layout { grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
  .game-stage { padding-top: 30px; }
  .wheel-wrap { width: min(560px, 70svh); }
}

@media (hover: hover) {
  button.game-card:hover { border-color: rgba(236, 72, 153, .5); box-shadow: 0 24px 50px -18px rgba(236, 72, 153, .5); }
  button.game-card:hover .shine { opacity: 1; }
  .btn-primary:hover { filter: brightness(1.12); }
  .mission-cta:hover i { transform: translateX(4px); }
  .hub:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.06); }
  .back-btn:hover, .icon-btn:hover { background: rgba(255, 255, 255, .1); }
}

/* ---------- Ödüllerim: hesaba eklenme durumu ---------- */
.prizes, .prize-list { display: grid; gap: 10px; }
.prize-sub { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.pz {
  --pz-c: #a78bfa;
  position: relative; overflow: hidden; padding: 14px 15px 13px 17px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border);
}
.pz::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pz-c); box-shadow: 0 0 10px var(--pz-c); }
.pz-queued { --pz-c: #fbbf24; }
.pz-processing { --pz-c: #a78bfa; }
.pz-paid { --pz-c: #22c55e; }
.pz-rejected { --pz-c: #f87171; }
.pz-cancelled { --pz-c: #94a3b8; }
.pz-jackpot { border-color: rgba(251, 191, 36, .45); background: linear-gradient(135deg, rgba(251, 191, 36, .12), rgba(236, 72, 153, .05)), var(--card); }
.pz-top { display: flex; align-items: center; gap: 12px; }
.pz-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(135deg, rgba(139, 92, 246, .32), rgba(236, 72, 153, .26)); }
.pz-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pz-main b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-main small { color: var(--muted); font-size: 12px; }
.pz-badge {
  flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap;
  color: var(--pz-c); background: color-mix(in srgb, var(--pz-c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--pz-c) 30%, transparent);
}
.pz-badge i { font-style: normal; }
.pz-queued .pz-badge i, .pz-processing .pz-badge i { animation: pzPulse 1.5s ease-in-out infinite; }
@keyframes pzPulse { 50% { opacity: .35; } }
.pz-progress { margin-top: 12px; }
.pz-bar { height: 7px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--pz-c) 14%, transparent); }
.pz-bar i {
  display: block; height: 100%; border-radius: 99px; transition: width .3s linear;
  background: linear-gradient(90deg, #7c3aed, #a78bfa, #c4b5fd, #a78bfa, #7c3aed); background-size: 200% 100%;
  animation: pzShimmer 2.2s linear infinite; box-shadow: 0 0 10px rgba(167, 139, 250, .5);
}
.pz-queued .pz-bar i { background-image: linear-gradient(90deg, #f59e0b, #fbbf24, #fde68a, #fbbf24, #f59e0b); box-shadow: 0 0 10px rgba(251, 191, 36, .45); }
.pz-paid .pz-bar i { background: linear-gradient(90deg, #16a34a, #22c55e); animation: none; box-shadow: 0 0 10px rgba(34, 197, 94, .5); }
@keyframes pzShimmer { to { background-position: -200% 0; } }
.pz-steps { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.pz-steps span + span::before { content: '›'; margin-right: 6px; opacity: .45; }
.pz-steps span.on { color: var(--text); font-weight: 700; }
.pz-steps em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--pz-c); }
.pz-note { margin-top: 9px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.pz-paid .pz-note { color: #86efac; }
.pz-rejected .pz-note { color: #fca5a5; }
.pz-flash { animation: pzFlash 1.4s ease-out; }
@keyframes pzFlash { from { box-shadow: 0 0 0 2px rgba(34, 197, 94, .75), 0 0 28px rgba(34, 197, 94, .5); } }
.pz-empty { display: grid; justify-items: center; gap: 6px; padding: 22px 16px; border-radius: 18px; border: 1px dashed var(--border); background: var(--card-2); color: var(--muted); text-align: center; font-size: 13px; line-height: 1.45; }
.pz-empty span { font-size: 28px; }

/* Önceki ödüller: açılır kutu */
.pz-more { border-radius: 16px; border: 1px solid var(--border); background: var(--card-2); }
.pz-more summary {
  list-style: none; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 15px; border-radius: 16px; font-size: 13px; font-weight: 700; color: var(--muted);
}
.pz-more summary::-webkit-details-marker { display: none; }
.pz-more summary:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.pz-more[open] summary { color: var(--text); }
.pz-chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.pz-more[open] .pz-chev { transform: translateY(2px) rotate(-135deg); }
.pz-chip { padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; font-style: normal; white-space: nowrap; }
.pz-chip-busy { color: #c4b5fd; background: rgba(167, 139, 250, .14); }
.pz-chip-bad { color: #fca5a5; background: rgba(248, 113, 113, .14); }
.pz-more-list { display: grid; gap: 8px; padding: 0 10px 10px; }
.pz-mini { padding: 10px 12px 10px 15px; border-radius: 14px; }
.pz-mini::before { top: 10px; bottom: 10px; }
.pz-mini .pz-top { gap: 10px; }
.pz-mini .pz-ic { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; }
.pz-mini .pz-main b { font-size: 13.5px; }
.pz-mini .pz-main small { font-size: 11.5px; }
.pz-mini .pz-badge { padding: 4px 8px; font-size: 10px; border-radius: 8px; }
.pz-mini .pz-progress { margin-top: 9px; }
.pz-mini .pz-bar { height: 5px; }
.pz-mini .pz-steps { margin-top: 6px; font-size: 11px; }
.pz-mini .pz-note { margin-top: 7px; font-size: 12px; }
@media (hover: hover) { .pz-more summary:hover { color: var(--text); } }

/* Azaltılmış hareket: oyun animasyonları korunur, sadece büyük arka plan hareketi durur.
   (Windows'ta "Animasyon efektleri" kapalı olan birçok kullanıcı bu moddadır.) */
@media (prefers-reduced-motion: reduce) {
  .orbs i { animation: none; }
}
