/* ===================================================
   MERGE MASTER — Mobile-first stylesheet
   Phone frame (390×844) centered on desktop
   =================================================== */

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
button { cursor: pointer; font-family: inherit; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #090916;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

/* ── Phone frame (desktop preview) ─────────────── */
#phone-frame {
  width: 390px;
  height: 844px;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 2px #2a2a3e,
    0 0 0 5px #111,
    0 40px 100px rgba(0,0,0,.85);
}

@media (max-width: 500px) {
  body { background: #0F0F1E; }
  #phone-frame { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none; }
}

/* ── App shell ──────────────────────────────────── */
#app {
  width: 100%; height: 100%;
  background: linear-gradient(170deg, #16213E 0%, #1A1A2E 55%, #0F3460 100%);
  position: relative;
  overflow: hidden;
}

/* ── Screens ────────────────────────────────────── */
.screen {
  position: absolute;
  top: 0; right: 0; bottom: var(--banner-h, 52px); left: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: bottom .2s ease;
}
/* Banner gizlenince #app'e .no-banner class'ı eklenir */
.no-banner .screen { bottom: 0; }
.screen.active  { display: flex; }
.screen.overlay {
  background: rgba(10, 10, 30, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  animation: fadeIn .25s ease;
}

/* Ad banner space reserved for AdMob native banner (injected by SDK) */

/* ── Drag ghost ─────────────────────────────────── */
#drag-ghost {
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 60px;
  pointer-events: none;
  z-index: 999;
  display: none;
  opacity: .92;
  transition: none;
  will-change: transform;
}
/* Ghost içindeki kart sürüklenirken animasyonla gecikmesin */
#drag-ghost .obj-card { transition: none; }

/* ── Particles / confetti container ────────────── */
#particles {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  z-index: 200;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn-primary {
  background: linear-gradient(135deg, #00CEC9, #00B894);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  transition: transform .1s, opacity .1s;
}
.btn-primary.btn-xl { padding: 18px 24px; font-size: 18px; }
.btn-primary:active  { transform: scale(.96); opacity: .88; }

.btn-secondary {
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  transition: transform .1s;
}
.btn-secondary:active { transform: scale(.96); }

.btn-ghost {
  background: transparent;
  color: #8a9ab5;
  border: 1px solid #2e3a52;
  border-radius: 14px;
  padding: 12px 24px;
  font-size: 14px;
  width: 100%;
  transition: transform .1s, border-color .2s;
}
.btn-ghost:hover  { border-color: #4e5a72; }
.btn-ghost:active { transform: scale(.96); }

.btn-reward {
  background: linear-gradient(135deg, #FDCB6E, #E17055);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: transform .1s;
}
.btn-reward small { font-size: 11px; font-weight: 400; opacity: .85; }
.btn-reward:active { transform: scale(.96); }

.btn-back {
  background: none; border: none;
  color: #00CEC9; font-size: 15px; padding: 6px 8px;
}
.btn-icon {
  background: rgba(255,255,255,.08);
  border: none; border-radius: 10px;
  width: 38px; height: 38px;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .2s;
}
.btn-icon:active { background: rgba(255,255,255,.18); }

/* ══════════════════════════════════════════════════
   MENU SCREEN
══════════════════════════════════════════════════ */
.menu-wrap {
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  gap: 20px;
  min-height: 100%;
  height: 100%;
  overflow-y: auto;
  padding:
    max(44px, env(safe-area-inset-top, 0px)) 28px
    max(28px, env(safe-area-inset-bottom, 0px));
}
.menu-top { text-align: center; }

.logo-icon {
  font-size: 64px; color: #00CEC9;
  text-shadow: 0 0 40px #00CEC9, 0 0 80px #00CEC966;
  animation: float 2.5s ease-in-out infinite;
  display: block; margin-bottom: 10px;
}
.logo-text {
  font-size: 38px; font-weight: 900; line-height: 1.08;
  color: #fff; letter-spacing: -1px;
  text-shadow: 0 0 30px rgba(0,206,201,.4);
}

.menu-btns { display: flex; flex-direction: column; gap: 12px; width: 100%; }

.menu-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.slabel { font-size: 11px; color: #6a7a9a; text-transform: uppercase; letter-spacing: .5px; }
.sval   { font-size: 22px; font-weight: 800; color: #00CEC9; }

.menu-icons { display: flex; gap: 16px; }

/* ══════════════════════════════════════════════════
   LEVEL SELECT SCREEN
══════════════════════════════════════════════════ */
.ls-progress { font-size: 13px; color: #00CEC9; font-weight: 700; margin-left: auto; }

.ls-progress-bar {
  height: 4px; background: rgba(255,255,255,.08);
  border-radius: 2px; margin: 0 0 14px; overflow: hidden;
}
.ls-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00CEC9, #00B894);
  border-radius: 2px;
  transition: width .6s ease;
}

.ls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  padding-bottom: 8px;
}

.ls-card {
  border-radius: 14px;
  padding: 12px 8px 10px;
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  text-align: center;
  cursor: pointer;
  transition: transform .12s, opacity .2s;
  border: 1px solid transparent;
  position: relative;
}

.ls-card.unlocked {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.1);
}
.ls-card.unlocked:active { transform: scale(.95); }

.ls-card.current {
  background: rgba(0,206,201,.12);
  border-color: rgba(0,206,201,.5);
  box-shadow: 0 0 16px rgba(0,206,201,.25);
}

.ls-card.locked {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.04);
  opacity: .55;
  cursor: default;
}

.ls-inf {
  grid-column: span 3;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  padding: 14px;
}
.ls-inf.unlocked {
  background: rgba(255,215,0,.1);
  border-color: rgba(255,215,0,.4);
  box-shadow: 0 0 20px rgba(255,215,0,.2);
}

.ls-top {
  display: flex; align-items: center; gap: 5px;
}
.ls-num {
  font-size: 18px; font-weight: 900; color: #fff;
  line-height: 1;
}
.ls-badge {
  font-size: 11px; font-weight: 800; border-radius: 8px;
  padding: 2px 5px;
}
.ls-badge.done { background: rgba(0,184,148,.25); color: #00B894; }
.ls-badge.curr { background: rgba(0,206,201,.25); color: #00CEC9; }
.ls-badge.lock { background: none; font-size: 12px; }

/* Zorluk rozetleri */
.diff-tag {
  font-size: 9px; font-weight: 800;
  border-radius: 6px; padding: 2px 5px;
  line-height: 1;
}
.diff-tag.diff-easy { background: rgba(52,199,89,.2);  color: #34C759; }
.diff-tag.diff-hard { background: rgba(255,149,0,.2);  color: #FF9500; }
.diff-tag.diff-boss { background: rgba(255,59,48,.2);  color: #FF3B30; }

/* Kart renk vurgusu zorlukla */
.ls-card.diff-hard.unlocked { border-color: rgba(255,149,0,.35); }
.ls-card.diff-boss.unlocked {
  border-color: rgba(255,59,48,.5);
  box-shadow: 0 0 12px rgba(255,59,48,.2);
}

.ls-target {
  font-size: 11px; font-weight: 600; line-height: 1.3;
}
.ls-target strong { font-weight: 800; }

.ls-time { font-size: 10px; }

/* ══════════════════════════════════════════════════
   OBJECTIVE BANNER
══════════════════════════════════════════════════ */
.obj-banner {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color .3s;
}
.obj-banner.obj-pulse {
  animation: bannerPulse .4s ease-out;
}
.inf-banner {
  font-size: 12px; color: #8a9ab5;
  text-align: center; justify-content: center;
  padding: 8px 12px;
}

.obj-banner-left {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
}
.obj-mini {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.obj-banner-text { min-width: 0; }
.obj-banner-title {
  font-size: 13px; color: #fff; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.obj-banner-title strong { font-weight: 800; }
.obj-banner-sub {
  font-size: 10px; color: #5a6a82; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.obj-banner-sub strong { color: #8a9ab5; }

.obj-banner-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0;
}
.obj-count {
  font-size: 18px; font-weight: 900; line-height: 1;
}
.obj-dots {
  display: flex; gap: 4px;
}
.obj-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  transition: background .3s, box-shadow .3s;
  display: inline-block;
}
.obj-dot.filled { border-color: transparent; }

@keyframes bannerPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ══════════════════════════════════════════════════
   HOW-TO SCREEN
══════════════════════════════════════════════════ */
.page-wrap {
  display: flex; flex-direction: column;
  height: 100%; padding: 16px;
}
.page-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.page-header h2 { font-size: 20px; color: #fff; font-weight: 700; }

.howto-steps { display: flex; flex-direction: column; gap: 12px; flex: 1; overflow-y: auto; }

.step {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,.05);
  border-radius: 14px; padding: 14px;
}
.step-ico { font-size: 26px; flex-shrink: 0; }
.step strong { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; }
.step p      { color: #8a9ab5; font-size: 12px; line-height: 1.5; }

.obj-chain {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 4px; justify-content: center;
  padding: 12px 8px;
  background: rgba(255,255,255,.03);
  border-radius: 14px; margin: 14px 0;
}
.chain-obj {
  width: 30px; height: 30px; border-radius: 7px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 13px;
}
.chain-obj .cn { font-size: 9px; font-weight: 800; color: rgba(0,0,0,.55); }
.arrow { color: #3e4a62; font-size: 14px; }

/* ══════════════════════════════════════════════════
   GAME SCREEN
══════════════════════════════════════════════════ */
.game-wrap {
  display: flex; flex-direction: column;
  height: 100%; padding: 10px 12px;
  /* Native AdMob banner'ı CSS'ten bağımsız konumlanıyor — dinamik
     --banner-h ölçümüne güvenmek yerine sabit, bol bir pay bırakıyoruz. */
  padding-bottom: max(100px, calc(env(safe-area-inset-bottom, 0px) + 80px));
  gap: 7px;
  touch-action: none; /* iOS: oyun ekranında parmak hareketini tamamen biz yönetiriz */
}

.g-header {
  display: flex; align-items: center; justify-content: space-between;
}
.level-chip {
  background: rgba(0,206,201,.15);
  border: 1px solid rgba(0,206,201,.5);
  color: #00CEC9;
  border-radius: 20px; padding: 6px 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
}

/* info bar */
.info-bar {
  display: flex; justify-content: space-around;
  background: rgba(255,255,255,.05);
  border-radius: 14px; padding: 10px 6px;
}
.info-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ilabel { font-size: 15px; }
.ival {
  font-size: 20px; font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums;
}
.ival.urgent { color: #FF7675; animation: pulse .5s ease-in-out infinite; }

/* multiplier */
.mult-bar {
  display: flex; justify-content: center; align-items: center;
}
.mult-bar.hidden { display: none; }
#mult-val {
  background: linear-gradient(135deg, #FDCB6E, #E17055);
  color: #fff; border-radius: 20px;
  padding: 4px 18px; font-size: 14px; font-weight: 800;
}
[data-m="high"] #mult-val {
  background: linear-gradient(135deg, #FD79A8, #E17055);
  animation: pulse .35s ease-in-out infinite;
}

/* board */
.board-area {
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.game-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 5px;
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255,255,255,.03);
  border-radius: 18px; padding: 7px;
  touch-action: none; /* iOS: sürüklemeyi kaydırma sanıp iptal etmesin */
}

.cell {
  background: rgba(30, 36, 55, .65);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1;
  min-height: 0;
  position: relative;
  transition: background .12s, box-shadow .12s;
}
/* Sürüklerken bırakılacak hedef hücre */
.cell.drop-target {
  background: rgba(0,206,201,.22);
  box-shadow: inset 0 0 0 2px #00CEC9;
}

/* object card */
.obj-card {
  width: 92%; height: 92%;
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  position: relative; overflow: hidden;
  transition: transform .12s;
  /* glow box-shadow set inline from JS via box-shadow */
}
.obj-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 45%;
  background: rgba(255,255,255,.28);
  border-radius: 10px 10px 70% 70%;
}
/* Daha büyük ve belirgin sembol + renk */
.obj-sym {
  font-size: 40px; color: rgba(255,255,255,.95);
  z-index: 1; line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.obj-lv  {
  font-size: 14px; font-weight: 900;
  color: rgba(255,255,255,.8);
  z-index: 1; line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* queue */
.queue-area { display: flex; flex-direction: column; gap: 5px; touch-action: none; }
.qlabel { font-size: 10px; color: #5a6a82; text-transform: uppercase; letter-spacing: .5px; text-align: center; }
.queue-row { display: flex; justify-content: center; gap: 12px; }
.q-slot {
  width: 62px; height: 62px;
  background: rgba(30,36,55,.5);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.queue-item { width: 54px; height: 54px; cursor: grab; }
.queue-item .obj-card { width: 100%; height: 100%; }

/* lives */
.lives-row { display: flex; justify-content: center; gap: 10px; padding: 2px 0; }
.life      { font-size: 20px; transition: opacity .3s, filter .3s; }
.life.lost { opacity: .2; filter: grayscale(1); }

/* ══════════════════════════════════════════════════
   OVERLAY / RESULT SCREENS
══════════════════════════════════════════════════ */
.ov-wrap {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: 24px;
}
.ov-card {
  background: #1a2236;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px; padding: 28px 22px;
  width: 100%; max-width: 320px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
  animation: scaleIn .3s cubic-bezier(.34,1.56,.64,1);
}
.ov-emoji { font-size: 52px; margin-bottom: 8px; }
.ov-card h2 { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.ov-sub { color: #8a9ab5; font-size: 13px; margin-bottom: 18px; }
.new-rec { color: #FDCB6E; font-size: 14px; font-weight: 700; margin-bottom: 12px; }

.breakdown {
  background: rgba(0,0,0,.22); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 20px; text-align: left;
}
.brow       { display: flex; justify-content: space-between; padding: 6px 0; color: #8a9ab5; font-size: 14px; }
.brow.green { color: #00B894; }
.brow.total {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 6px; padding-top: 10px;
  color: #fff; font-size: 16px; font-weight: 800;
}

.ov-btns { display: flex; flex-direction: column; gap: 10px; }

/* ── Level Complete özel ─────────────────────────────────── */
.lc-card { border-color: rgba(255,215,0,.35) !important; }
.lc-level-badge {
  background: linear-gradient(135deg, #FDCB6E, #E17055);
  color: #fff; font-size: 13px; font-weight: 900;
  border-radius: 20px; padding: 5px 18px;
  letter-spacing: 1px; display: inline-block;
  margin-bottom: 6px;
  animation: scaleIn .4s cubic-bezier(.34,1.56,.64,1);
}
.lc-stars {
  font-size: 32px; letter-spacing: 4px;
  animation: starsIn .6s cubic-bezier(.34,1.56,.64,1) .15s both;
}
.lc-title {
  font-size: 28px !important;
  background: linear-gradient(135deg, #FDCB6E, #fff, #00CEC9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: scaleIn .5s cubic-bezier(.34,1.56,.64,1) .1s both;
}
@keyframes starsIn {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  70%  { transform: scale(1.3) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}


/* ══════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════ */
.modal-bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,.72); z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn .2s ease;
}
.modal-card {
  background: #1a2236; border-radius: 20px;
  padding: 24px; width: 100%; max-width: 280px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: stretch; text-align: center;
}
.modal-card h3 { color: #fff; font-size: 18px; margin-bottom: 4px; }

.setting-row {
  display: flex; justify-content: space-between; align-items: center;
  color: #8a9ab5; font-size: 15px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.toggle-btn {
  padding: 6px 18px; border-radius: 20px; border: none;
  font-size: 13px; font-weight: 700;
}
.toggle-btn.on  { background: #00B894; color: #fff; }
.toggle-btn.off { background: #2a2a3e; color: #5a6a82; }


/* ══════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-3px); }
  75%      { transform: translateX(3px); }
}
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes flashKf    { 0% { opacity: 0.85; } 100% { opacity: 0; } }
@keyframes chainPulse { 0%,100% { opacity: 1; } 50% { opacity: .7; } }
@keyframes boardShakeKf {
  0%,100% { transform: translate(0,0) rotate(0); }
  20%     { transform: translate(-3px, 2px) rotate(-.4deg); }
  40%     { transform: translate(3px, -2px) rotate(.4deg); }
  60%     { transform: translate(-2px, 1px) rotate(-.2deg); }
  80%     { transform: translate(2px, -1px) rotate(.2deg); }
}
@keyframes redPulse { 0%,100% { box-shadow: inset 0 0 0px rgba(255,59,48,0); } 50% { box-shadow: inset 0 0 50px rgba(255,59,48,.32); } }

/* Zincir efekti */
[data-chain="1"] .game-board { box-shadow: 0 0 18px rgba(0,206,201,.5); }
[data-chain="2"] .game-board { box-shadow: 0 0 28px rgba(162,155,254,.7); animation: chainPulse .6s ease-in-out infinite; }
[data-chain="3"] .game-board { box-shadow: 0 0 40px rgba(253,203,110,.9); animation: chainPulse .35s ease-in-out infinite; }

/* Büyük merge titremesi */
.board-shake { animation: boardShakeKf .35s ease-out; }

/* Son 10 saniye kırmızı nabız */
.time-urgent .game-wrap { animation: redPulse .8s ease-in-out infinite; }
@keyframes scaleIn { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@keyframes mergeKf {
  0%   { transform: scale(1); filter: brightness(1); }
  25%  { transform: scale(.82); }
  60%  { transform: scale(1.22); filter: brightness(1.6); }
  100% { transform: scale(1);   filter: brightness(1); }
}
@keyframes particleKf {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx),var(--ty)) scale(0); opacity: 0; }
}
@keyframes floatScore {
  0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-52px); opacity: 0; }
}
@keyframes spawnKf {
  0%   { transform: scale(0) rotate(-12deg); opacity: 0; }
  65%  { transform: scale(1.12) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes confettiKf {
  0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(900px) rotate(780deg); opacity: 0; }
}

/* Applied by JS */
.merge-anim .obj-card { animation: mergeKf .42s ease-out forwards; }
.shake                 { animation: shake .12s linear 3; }
.spawn-anim            { animation: spawnKf .38s cubic-bezier(.34,1.56,.64,1) forwards; }

.particle {
  position: absolute; width: 8px; height: 8px; border-radius: 2px;
  animation: particleKf .65s ease-out forwards;
  pointer-events: none;
}
.score-float {
  position: absolute; pointer-events: none;
  color: #FDCB6E; font-size: 14px; font-weight: 800;
  white-space: nowrap; z-index: 201;
  animation: floatScore 1.1s ease-out forwards;
}
.confetti-piece {
  position: absolute; top: -12px; border-radius: 2px;
  animation: confettiKf 2s ease-in forwards;
}

/* ══════════════════════════════════════════════════
   SÜRE BİTTİ — DEVAM ET KARTI
══════════════════════════════════════════════════ */
.continue-card {
  background: linear-gradient(170deg, #1a2236, #0f1824);
  border: 1px solid rgba(255,75,75,.3);
  border-radius: 22px; padding: 28px 22px;
  width: 100%; max-width: 320px;
  text-align: center;
  display: flex; flex-direction: column; gap: 12px;
  animation: scaleIn .3s cubic-bezier(.34,1.56,.64,1);
}
.cont-timer {
  font-size: 48px; font-weight: 900; color: #FF3B30;
  animation: pulse .8s ease-in-out infinite;
  line-height: 1;
}
.cont-title {
  font-size: 22px; font-weight: 900; color: #fff;
}
.cont-sub {
  font-size: 13px; color: #8a9ab5; line-height: 1.5;
}
.cont-sub strong { color: #00CEC9; }

.cont-lives {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 22px;
}
.cont-arrow { color: #5a6a82; font-size: 16px; }

.cont-yes {
  background: linear-gradient(135deg, #FF3B30, #c01f18) !important;
}

/* ══════════════════════════════════════════════════
   DAILY REWARD MODAL
══════════════════════════════════════════════════ */
.daily-bg { align-items: flex-end; padding: 0; }

.daily-card {
  background: linear-gradient(170deg, #1a2236, #0f1824);
  border: 1px solid rgba(255,215,0,.25);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  animation: slideUp .35s cubic-bezier(.34,1.56,.64,1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.daily-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.daily-flame { font-size: 36px; animation: pulse 1s ease-in-out infinite; }
.daily-title { font-size: 20px; font-weight: 900; color: #fff; }
.daily-streak {
  font-size: 13px; color: #FFD700; font-weight: 700; margin-top: 2px;
}

/* 7 günlük kartlar */
.dr-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 20px;
}
.dr-day {
  border-radius: 10px; padding: 6px 2px 8px;
  display: flex; flex-direction: column;
  align-items: center; gap: 3px; text-align: center;
  border: 1px solid transparent;
  min-height: 64px; justify-content: center;
}
.dr-day.past {
  background: rgba(0,184,148,.15);
  border-color: rgba(0,184,148,.3);
}
.dr-day.current {
  background: rgba(255,215,0,.15);
  border-color: rgba(255,215,0,.6);
  box-shadow: 0 0 14px rgba(255,215,0,.25);
}
.dr-day.future {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
}
.dr-icon { font-size: 18px; line-height: 1; }
.dr-day-num { font-size: 9px; color: #6a7a9a; font-weight: 600; }
.dr-label { font-size: 8px; color: #FFD700; font-weight: 700; line-height: 1.2; text-align: center; }

/* Bugünkü büyük ödül kutusu */
.daily-today {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: rgba(255,215,0,.1);
  border: 1px solid rgba(255,215,0,.3);
  border-radius: 14px; padding: 14px;
  margin-bottom: 16px;
}
.daily-today-icon  { font-size: 32px; }
.daily-today-label { font-size: 16px; font-weight: 800; color: #FFD700; }

.dr-later {
  margin-top: 8px;
  font-size: 13px; opacity: .7;
}

/* ══════════════════════════════════════════════════
   TOAST BİLDİRİM
══════════════════════════════════════════════════ */
.toast {
  position: absolute;
  bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(30,40,60,.95);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px; padding: 10px 20px;
  color: #fff; font-size: 14px; font-weight: 600;
  white-space: nowrap; z-index: 600;
  opacity: 0; transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.toast.toast-show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
