* { margin: 0; padding: 0; box-sizing: border-box; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0b1220;
  font-family: "Trebuchet MS", "Comic Sans MS", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent; }
input[type="text"], input[type="text"] * {
  -webkit-user-select: text !important; -moz-user-select: text !important; -ms-user-select: text !important; user-select: text !important;
}
#game { position: fixed; inset: 0; touch-action: none; }
canvas { display: block; }
button { font-family: inherit; }

/* ================= HUD ================= */
#hud { position: fixed; inset: 0; pointer-events: none; color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.top { position: absolute; top: 12px; left: 60px; right: 60px; display: flex;
  justify-content: center; gap: 8px; }
.stat { background: rgba(10,18,32,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  padding: 6px 12px; min-width: 68px; text-align: center; }
.stat .lbl { font-size: 10px; letter-spacing: 1px; opacity: .7; text-transform: uppercase; }
.stat .val { font-size: 19px; font-weight: 800; line-height: 1.1; }
.stat.hasSpins { border-color: rgba(249,212,35,.8) !important;
  animation: nextGlow 1.4s ease-in-out infinite alternate; }

@media (max-width: 400px) {
  .stat {
    min-width: 56px !important;
    padding: 4px 8px !important;
  }
  .stat .val {
    font-size: 16px !important;
  }
}

.cornerBtn { position: absolute; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(10,18,32,.6); border: 1px solid rgba(255,255,255,.2); color: #fff;
  font-size: 19px; cursor: pointer; pointer-events: auto; backdrop-filter: blur(6px); }
#homeBtn { top: 12px; left: 10px; }
#windChip { position: absolute; top: 12px; right: 10px; pointer-events: none;
  background: rgba(10,18,32,.6); border: 1px solid rgba(56,249,215,.35);
  border-radius: 20px; padding: 6px 13px; font-size: 14px; font-weight: 800;
  color: #38f9d7; backdrop-filter: blur(6px); display: flex; align-items: center; gap: 6px; }
#coinChip { position: absolute; top: 64px; right: 10px; pointer-events: none;
  background: rgba(10,18,32,.6); border: 1px solid rgba(249,212,35,.4);
  border-radius: 20px; padding: 6px 13px; font-size: 15px; font-weight: 800;
  color: #f9d423; }

#shotDots { position: absolute; top: 70px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; }
#shotDots .d { width: 13px; height: 13px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.4); }
#shotDots .d.goal { background: #38f9d7; box-shadow: 0 0 8px #38f9d7; }
#shotDots .d.miss { background: #ff5252; }

#msg { position: absolute; top: 32%; left: 50%; transform: translate(-50%,-50%) scale(.6);
  font-size: min(13vw, 84px); font-weight: 900; letter-spacing: 2px; opacity: 0;
  transition: transform .35s cubic-bezier(.2,1.6,.4,1), opacity .35s; text-align: center;
  line-height: 1.05; width: 100%; }
#msg .sub { display: block; font-size: min(4.5vw, 24px); font-weight: 700; opacity: .95;
  letter-spacing: 1px; margin-top: 4px; }
#msg.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }

#hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: min(3.6vw, 14px); opacity: .9; background: rgba(10,18,32,.55); padding: 8px 16px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.12); white-space: normal;
  max-width: min(92vw, 460px); width: max-content; text-align: center; line-height: 1.35;
  transition: opacity .4s; }
#hint.off { opacity: 0; }

#power { position: absolute; bottom: 66px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 13px; border-radius: 10px; background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.2); overflow: hidden; opacity: 0; transition: opacity .15s; }
#power .fill { height: 100%; width: 0%;
  background: linear-gradient(90deg,#38f9d7,#f9d423,#ff512f); }
#power.show { opacity: 1; }

/* ================= SCREENS ================= */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: safe center; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 28%, rgba(45,90,180,.75), rgba(10,16,34,.95));
  backdrop-filter: blur(5px); z-index: 10; padding: 20px; overflow-y: auto; }
.hide { display: none !important; }

/* süzülen dekor emojileri (menü) */
.floaty { position: absolute; font-size: 30px; opacity: .5; pointer-events: none;
  animation: floaty 6s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); z-index: -1; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-26px) rotate(10deg); }
}

.logo { font-size: min(11vw, 60px); font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(90deg,#38f9d7,#f9d423,#ff6b9d,#38f9d7); background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text; color: transparent; line-height: 1;
  animation: logoRainbow 5s linear infinite, logoBob 2.4s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
@keyframes logoRainbow { to { background-position: 300% 0; } }
@keyframes logoBob {
  0%, 100% { transform: rotate(-1.5deg) scale(1); }
  50% { transform: rotate(1.5deg) scale(1.035); }
}
.logo small { display: block; font-size: min(4vw, 20px); letter-spacing: 8px;
  color: #fff; -webkit-text-fill-color: #fff; opacity: .8; margin-top: 6px; font-weight: 700; }

.btn { pointer-events: auto; cursor: pointer; border: none; border-radius: 40px;
  padding: 15px 44px; font-size: 20px; font-weight: 900; color: #06121f; line-height: 1;
  background: linear-gradient(90deg,#38f9d7,#43e97b);
  box-shadow: 0 10px 30px rgba(56,249,215,.4), inset 0 -4px 0 rgba(0,0,0,.15), inset 0 2px 0 rgba(255,255,255,.35);
  transition: transform .12s cubic-bezier(.34,1.8,.5,1); margin: 5px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn::after { content: ''; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  animation: btnShine 3.2s ease-in-out infinite; }
@keyframes btnShine { 0%, 60% { left: -80%; } 100% { left: 130%; } }
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(.92); }
.btn.alt { background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.25); box-shadow: none; font-size: 16px; padding: 12px 30px; }
.btn.alt::after { display: none; }
.btn.gold { background: linear-gradient(90deg,#f9d423,#ffb020);
  box-shadow: 0 10px 30px rgba(249,212,35,.35), inset 0 -4px 0 rgba(0,0,0,.15), inset 0 2px 0 rgba(255,255,255,.4); }
/* OYNA butonu: ilk-tap'i çeken nabız (glow ile — hover/active transform'una dokunmaz) */
#playBtn { font-size: 24px; padding: 17px 56px; animation: playPulse 1.35s ease-in-out infinite; }
@keyframes playPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(56,249,215,.4), inset 0 -4px 0 rgba(0,0,0,.15), inset 0 2px 0 rgba(255,255,255,.35); }
  50%      { box-shadow: 0 12px 42px rgba(56,249,215,.85), 0 0 0 4px rgba(56,249,215,.18), inset 0 -4px 0 rgba(0,0,0,.15), inset 0 2px 0 rgba(255,255,255,.35); }
}

/* D1 dönüş kancası: result ekranındaki "yarın gel" kutusu */
.tomorrowBox { margin: 4px 0 12px; padding: 11px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(249,212,35,.16), rgba(255,176,32,.10));
  border: 1px solid rgba(249,212,35,.45); max-width: min(360px, 88vw);
  animation: dailyPulse 1.6s ease-in-out infinite alternate; }
.tomorrowBox .ttStreak { font-size: 12px; font-weight: 800; color: #ffb020; letter-spacing: .3px; margin-bottom: 3px; }
.tomorrowBox .ttBig { font-size: 15px; font-weight: 900; color: #fff; letter-spacing: .5px; }
.tomorrowBox .ttAmt { font-size: 15px; font-weight: 900; color: #f9d423; margin-top: 2px; }

.coinLine { margin: 10px 0 4px; font-size: 16px; font-weight: 800; color: #f9d423; }
#bestLine { margin: 2px 0 10px; font-size: 14px; opacity: .85; }

#levelGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px;
  margin: 12px 0 8px; width: min(330px, 86vw); max-height: 200px; overflow-y: auto; padding-right: 4px; }
#levelGrid::-webkit-scrollbar { width: 5px; }
#levelGrid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 3px; }
.lvBtn { position: relative; aspect-ratio: 1; border-radius: 18px; border: none;
  cursor: pointer; font-size: 20px; font-weight: 900; color: #fff;
  background: linear-gradient(160deg, rgba(90,140,255,.35), rgba(50,70,160,.3));
  border: 2px solid rgba(255,255,255,.22);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.2), 0 4px 10px rgba(0,0,0,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform .12s cubic-bezier(.34,1.8,.5,1); }
.lvBtn:hover:not(.locked) { transform: scale(1.07) rotate(-2deg); }
.lvBtn:active { transform: scale(.9); }
.lvBtn.locked { opacity: .35; cursor: default; background: rgba(255,255,255,.08); box-shadow: none; }
.lvBtn .stars { font-size: 10px; letter-spacing: 1px; color: #f9d423; height: 12px;
  text-shadow: 0 0 6px rgba(249,212,35,.7); }
.lvBtn.done { background: linear-gradient(160deg, rgba(67,233,123,.45), rgba(30,140,90,.4));
  border-color: rgba(56,249,215,.6); }
/* sıradaki oynanabilir seviye: yanıp sönen davet */
.lvBtn.next { background: linear-gradient(160deg, rgba(249,212,35,.5), rgba(255,140,40,.4));
  border-color: rgba(249,212,35,.8); animation: nextGlow 1.4s ease-in-out infinite alternate; }
@keyframes nextGlow {
  from { box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 6px rgba(249,212,35,.4); }
  to   { box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 18px rgba(249,212,35,.85); transform: scale(1.05); }
}

/* RESPONSIVE LAYOUT FOR MENU SCREEN */
.menu-layout-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.menu-left-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.menu-right-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (orientation: landscape) {
  .menu-layout-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 94vw;
    width: 100%;
    height: auto !important;
    box-sizing: border-box;
  }
  .menu-left-panel {
    flex: 1.15;
    overflow-y: visible !important;
    max-height: none !important;
    padding-right: 0 !important;
    justify-content: flex-start;
  }
  .menu-left-panel::-webkit-scrollbar {
    display: none !important;
  }
  .menu-left-panel::-webkit-scrollbar-thumb {
    display: none !important;
  }
  .menu-right-panel {
    flex: 0.85;
    justify-content: flex-start !important;
    max-height: none !important;
    width: 100%;
  }
  #levelGrid {
    max-height: none !important;
    overflow-y: visible !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .logo {
    font-size: min(7.5vw, 42px) !important;
  }
  
  /* Compact Menu Styles for Landscape (e.g. 800x450 iframe) to override inline paddings and margins */
  #missionTrack {
    margin: 2px 0 !important;
    padding: 6px 12px 6px !important;
    border-radius: 12px !important;
  }
  #wheelMenuBtn {
    margin: 2px 0 !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }
  #questsMenuBtn {
    margin: 2px 0 !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
  }
  #quickRow {
    margin: 2px 0 !important;
  }
  .quickCard {
    padding: 6px 4px !important;
    min-height: 50px !important;
  }
  .quickCard .qIcon {
    font-size: 16px !important;
  }
  .quickCard .qLabel {
    font-size: 9px !important;
  }
  .quickCard .qSub {
    font-size: 9px !important;
    min-height: 10px !important;
  }
  #missionTrack .mnIcon {
    font-size: 14px !important;
  }
  #missionTrack .mnLabel {
    font-size: 8px !important;
  }
  .missionNode {
    width: 44px !important;
    height: 44px !important;
  }
}

/* z-index matches the other corner buttons (#devBtn, #dailyBtn). Without it the
   level grid, which is positioned and later in the DOM, paints over this one and
   swallows the clicks -- most visible on short landscape viewports. */
#soundBtn { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px;
  border-radius: 50%; font-size: 20px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer; z-index: 10; }

#dailyBtn { position: relative; }
#dailyBtn.ready { animation: dailyPulse 1s ease-in-out infinite alternate; }
@keyframes dailyPulse {
  from { box-shadow: 0 0 4px rgba(249,212,35,.3); }
  to   { box-shadow: 0 0 16px rgba(249,212,35,.9); }
}

#chestBtn.ready { animation: chestPulse 1.1s ease-in-out infinite alternate; }
@keyframes chestPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
#chestBtn.wait { opacity: .55; }
#chestBtn #chestTimer { font-variant-numeric: tabular-nums; font-weight: 700; opacity: .9; }

#dailyGrid .dayCard { position: relative; border-radius: 16px; border: 2px solid rgba(255,255,255,.18);
  background: linear-gradient(160deg, rgba(90,140,255,.25), rgba(50,70,160,.22));
  padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
#dailyGrid .dayCard .dNum { font-size: 10px; font-weight: 800; opacity: .75; letter-spacing: .5px; }
#dailyGrid .dayCard .dIcon { font-size: 22px; }
#dailyGrid .dayCard .dAmt { font-size: 12px; font-weight: 800; color: #f9d423; }
#dailyGrid .dayCard.claimed { background: linear-gradient(160deg, rgba(67,233,123,.4), rgba(30,140,90,.35));
  border-color: rgba(56,249,215,.55); opacity: .85; }
#dailyGrid .dayCard.claimed .dIcon::after { content: '✓'; position: absolute; top: 4px; right: 8px; color: #38f9d7; font-size: 13px; font-weight: 900; }
#dailyGrid .dayCard.today { border-color: rgba(249,212,35,.85); animation: nextGlow 1.4s ease-in-out infinite alternate; }
#dailyGrid .dayCard.big { grid-column: span 2; }
#dailyGrid .dayCard.big .dIcon { font-size: 30px; }

/* menü: hızlı erişim kartları (köşe modu / hediye / görev) */
.quickCard { flex: 1; pointer-events: auto; cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px; padding: 10px 4px; min-height: 62px; color: #fff;
  font-family: inherit; transition: transform .12s, border-color .2s, box-shadow .2s; }
.quickCard:active { transform: scale(.94); }
.quickCard .qIcon { font-size: 20px; line-height: 1; }
.quickCard .qLabel { font-size: 10px; font-weight: 800; letter-spacing: .3px; opacity: .85; }
.quickCard .qSub { font-size: 10px; font-weight: 800; opacity: .8; color: #f9d423; font-variant-numeric: tabular-nums; min-height: 12px; }
.quickCard.ready { border-color: rgba(56,249,215,.55); box-shadow: 0 0 14px rgba(56,249,215,.25); }
.quickCard.ready .qSub { color: #38f9d7; }
.quickCard.pulse { animation: dailyPulse 1.1s ease-in-out infinite alternate; }
/* Sonsuz mod kartı: dikkat çeken mor vurgu */
.quickCard.endless { background: linear-gradient(160deg, rgba(155,92,255,.32), rgba(90,40,160,.28));
  border-color: rgba(155,92,255,.6); animation: endlessGlow 1.5s ease-in-out infinite alternate; }
.quickCard.endless .qSub { color: #c9a6ff; }
@keyframes endlessGlow {
  from { box-shadow: 0 0 6px rgba(155,92,255,.3); }
  to   { box-shadow: 0 0 18px rgba(155,92,255,.75); }
}
#wheelMenuBtn.ready { animation: wheelBtnGlow 1.1s ease-in-out infinite alternate; }
@keyframes wheelBtnGlow {
  from { box-shadow: 0 8px 24px rgba(249,212,35,.35); }
  to   { box-shadow: 0 8px 30px rgba(249,212,35,.9), 0 0 0 3px rgba(249,212,35,.25); }
}

/* ---- ŞANS ÇARKI ---- */
#wheelWrap { position: relative; width: min(380px, 86vw); height: min(380px, 86vw); display:flex; align-items:center; justify-content:center; }
#wheelPointer { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 34px; color: #f9d423;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); z-index: 5; line-height: 1; }
/* Two-tone wheel in the game's own palette (navy + teal) instead of the clashing
   rainbow; thin gold spokes give segment definition, gold ring/accents pop. */
#wheelDisc { width: 100%; height: 100%; border-radius: 50%; position: relative;
  border: 8px solid #fff2c2; box-shadow: 0 0 0 6px rgba(249,212,35,.35), 0 14px 40px rgba(0,0,0,.5), inset 0 0 34px rgba(0,0,0,.5);
  background:
    repeating-conic-gradient(from -22.5deg, rgba(255,240,180,.22) 0deg 0.7deg, transparent 0.7deg 45deg),
    conic-gradient(from -22.5deg,
      #133a66 0deg 45deg, #1f8a7a 45deg 90deg, #133a66 90deg 135deg, #1f8a7a 135deg 180deg,
      #133a66 180deg 225deg, #1f8a7a 225deg 270deg, #133a66 270deg 315deg, #1f8a7a 315deg 360deg);
  transition: transform 4.6s cubic-bezier(.12,.72,.16,1); }
.wheelSeg { position: absolute; inset: 0; transform-origin: 50% 50%; z-index: 2; pointer-events: none; }
.wheelSeg span { position: absolute; top: 21%; left: 50%; transform: translateX(-50%) rotate(90deg); transform-origin: center center; white-space: nowrap;
  font-size: 17px; font-weight: 900; color: #fff; letter-spacing: .3px; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.wheelSeg.jackpotSeg span { color: #ffe27a; text-shadow: 0 0 9px rgba(249,212,35,.85), 0 1px 3px rgba(0,0,0,.9); }
#wheelHub { position: absolute; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, #ffffff, #e3ebf2); border: 3px solid #f9d423;
  display:flex; align-items:center; justify-content:center; font-size: 24px; z-index: 4;
  box-shadow: 0 3px 12px rgba(0,0,0,.55), 0 0 0 2px rgba(0,0,0,.15) inset; }
#wheelWonMsg { min-height: 30px; margin-top: 12px; font-size: 22px; font-weight: 900; color: #f9d423;
  text-shadow: 0 0 16px rgba(249,212,35,.6); }
/* MEGA çark: altın halka + parıltı */
#wheelDisc.mega { border-color: #ffe27a;
  box-shadow: 0 0 0 6px rgba(249,212,35,.7), 0 0 34px rgba(249,212,35,.6), 0 14px 40px rgba(0,0,0,.5), inset 0 0 30px rgba(0,0,0,.35);
  animation: megaRing 1.1s ease-in-out infinite alternate; }
@keyframes megaRing {
  from { box-shadow: 0 0 0 6px rgba(249,212,35,.5), 0 0 20px rgba(249,212,35,.4), 0 14px 40px rgba(0,0,0,.5), inset 0 0 30px rgba(0,0,0,.35); }
  to   { box-shadow: 0 0 0 8px rgba(249,212,35,.95), 0 0 44px rgba(249,212,35,.85), 0 14px 40px rgba(0,0,0,.5), inset 0 0 30px rgba(0,0,0,.35); }
}
#wheelFreeBadge.mega { background: linear-gradient(90deg,#ff512f,#f9d423,#ff512f); color:#06121f;
  background-size: 200% 100%; animation: megaBadge 1.4s linear infinite; }
@keyframes megaBadge { to { background-position: 200% 0; } }

/* ---- OYUN İÇİ GÜÇ BARI ---- */
#powerBar { position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 12; pointer-events: none; }
.pwBtn { pointer-events: auto; cursor: pointer; position: relative; width: 58px; height: 58px; border-radius: 16px;
  border: 2px solid rgba(255,255,255,.28); background: rgba(10,18,32,.72); backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center; transition: transform .12s cubic-bezier(.34,1.8,.5,1); }
.pwBtn:active { transform: scale(.9); }
.pwBtn .pwIcon { font-size: 28px; line-height: 1; filter: grayscale(.15); }
.pwBtn .pwCount { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 4px;
  border-radius: 10px; background: #f9d423; color: #06121f; font-size: 12px; font-weight: 900;
  display:flex; align-items:center; justify-content:center; border: 2px solid #06121f; }
.pwBtn.empty { opacity: .4; }
.pwBtn.empty .pwCount { background: #667; color: #fff; }
.pwBtn.armed { border-color: #f9d423; box-shadow: 0 0 18px rgba(249,212,35,.85); animation: pwArmPulse .7s ease-in-out infinite alternate; }
.pwBtn.armed .pwIcon { filter: none; }
@keyframes pwArmPulse { from { transform: scale(1); } to { transform: scale(1.12); } }

/* ---- GÜNLÜK GÖREVLER ---- */
#questsMenuBtn.ready { animation: wheelBtnGlow 1.2s ease-in-out infinite alternate; border-color: rgba(56,249,215,.85); }
.questRow { display:flex; align-items:center; gap:11px; padding: 11px 13px; border-radius: 15px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); text-align:left; }
.questRow.done { background: rgba(67,233,123,.14); border-color: rgba(56,249,215,.45); }
.questRow .qEmoji { font-size: 24px; line-height:1; flex-shrink:0; }
.questRow .qBody { flex:1; min-width:0; }
.questRow .qDesc { font-size: 13px; font-weight: 800; color:#fff; }
.questRow .qReward { font-size: 11px; font-weight: 800; color:#f9d423; margin-top:1px; }
.questRow .qBar { height:7px; border-radius:5px; background: rgba(255,255,255,.15); overflow:hidden; margin-top:6px; }
.questRow .qBarFill { height:100%; background: linear-gradient(90deg,#38f9d7,#43e97b); border-radius:5px; transition: width .3s; }
.questRow .qProg { font-size:10px; font-weight:800; opacity:.7; margin-top:3px; }
.qClaimBtn { flex-shrink:0; pointer-events:auto; cursor:pointer; border:none; border-radius:12px; padding:9px 13px;
  font-size:12px; font-weight:900; color:#06121f; background: linear-gradient(90deg,#f9d423,#ffb020); box-shadow:0 4px 12px rgba(249,212,35,.3); }
.qClaimBtn:active { transform: scale(.92); }
.qClaimBtn.locked { background: rgba(255,255,255,.12); color:#8aa; box-shadow:none; cursor:default; }
.qClaimBtn.claimed { background: rgba(56,249,215,.2); color:#38f9d7; box-shadow:none; cursor:default; }
.qClaimBtn.ready { animation: pwArmPulse .8s ease-in-out infinite alternate; }

#beatYestChip { pointer-events:auto; cursor:pointer; margin: 2px 0 8px; padding: 7px 15px; border-radius: 20px;
  font-size: 12px; font-weight: 800; color:#38f9d7; background: rgba(56,249,215,.12); border: 1px solid rgba(56,249,215,.4); }
#beatYestChip.beaten { color:#f9d423; background: rgba(249,212,35,.14); border-color: rgba(249,212,35,.5); animation: dailyPulse 1.3s ease-in-out infinite alternate; }

/* sürpriz kutusu */
#surpriseBox { animation: surpriseIdle 1.4s ease-in-out infinite; transition: transform .2s; }
#surpriseBox:active { transform: scale(.88); }
#surpriseBox.opened { animation: surpriseOpen .5s cubic-bezier(.34,1.8,.5,1); }
@keyframes surpriseIdle {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.05); }
}
@keyframes surpriseOpen {
  0% { transform: scale(1) rotate(0); }
  40% { transform: scale(1.3) rotate(-8deg); }
  70% { transform: scale(.9) rotate(6deg); }
  100% { transform: scale(1.1) rotate(0); }
}

/* Sandık Yolu: oturum-içi görev zinciri */
.missionNode { pointer-events: auto; cursor: default; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; font-family: inherit; transition: transform .12s, border-color .2s, box-shadow .2s; }
.missionNode .mnIcon { font-size: 18px; opacity: .5; }
.missionNode .mnLabel { font-size: 9px; font-weight: 800; opacity: .55; font-variant-numeric: tabular-nums; }
.missionNode.ready { cursor: pointer; border-color: rgba(249,212,35,.85); background: rgba(249,212,35,.12);
  animation: dailyPulse 1.1s ease-in-out infinite alternate; }
.missionNode.ready .mnIcon, .missionNode.ready .mnLabel { opacity: 1; }
.missionNode.ready:active { transform: scale(.9); }
.missionNode.locked { opacity: .55; }
.missionNode.vanish { animation: missionVanish .35s ease-in forwards; }
.missionNode.newIn { animation: missionNewIn .4s cubic-bezier(.34,1.8,.5,1); }
@keyframes missionVanish {
  0% { transform: scale(1) rotate(0); opacity: 1; }
  100% { transform: scale(0) rotate(25deg); opacity: 0; }
}
@keyframes missionNewIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.missionLine { flex: 1; height: 3px; margin: 0 4px; border-radius: 2px; background: rgba(255,255,255,.15); }

/* sonuç */
#resultTitle { font-size: min(11vw, 54px); font-weight: 900; letter-spacing: 1px; }
#resultStars { font-size: min(14vw, 62px); letter-spacing: 8px; margin: 6px 0;
  color: #f9d423; text-shadow: 0 0 24px rgba(249,212,35,.6);
  animation: starTwinkle 1.1s ease-in-out infinite alternate; }
@keyframes starTwinkle {
  from { text-shadow: 0 0 14px rgba(249,212,35,.4); transform: scale(1); }
  to   { text-shadow: 0 0 34px rgba(249,212,35,.95); transform: scale(1.06); }
}
#resultInfo { font-size: 16px; opacity: .92; margin-bottom: 16px; line-height: 1.6; }
#perkChoice { width: min(360px, 90vw); margin: 2px 0 12px; padding: 10px; border-radius: 16px; background: rgba(56,249,215,.08); border: 1px solid rgba(56,249,215,.32); }
#perkChoiceTitle { font-size: 11px; color: #38f9d7; font-weight: 900; margin-bottom: 8px; }
.perkChoices { display:flex; gap:7px; }
.perkBtn { flex:1; min-height:57px; border-radius:12px; border:1px solid rgba(255,255,255,.24); color:#fff; background:rgba(255,255,255,.08); cursor:pointer; font-size:22px; font-family:inherit; font-weight:900; pointer-events:auto; transition:transform .12s, box-shadow .12s; }
.perkBtn span { display:block; font-size:9px; margin-top:2px; }
.perkBtn.fire { border-color:rgba(255,107,43,.7); background:rgba(255,107,43,.15); }
.perkBtn.snipe { border-color:rgba(56,249,215,.7); background:rgba(56,249,215,.14); }
.perkBtn.coins { border-color:rgba(249,212,35,.7); background:rgba(249,212,35,.14); }
.perkBtn:active { transform:scale(.92); }
.perkBtn.claimed { opacity:.5; pointer-events:none; transform:scale(.96); }
.btnRow { display: flex; flex-wrap: wrap; justify-content: center; }

/* market */
#shopScreen h2 { font-size: 34px; font-weight: 900; letter-spacing: 2px;
  color: #f9d423; margin-bottom: 2px; }
#shopGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin: 16px 0; width: min(380px, 92vw); max-height: 52vh; overflow-y: auto; padding-right: 6px; }
#shopGrid::-webkit-scrollbar { width: 6px; }
#shopGrid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
.skinCard { background: rgba(10,22,44,.6); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 16px 10px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.skinCard:hover { transform: translateY(-3px); border-color: rgba(56,249,215,.4); }
.skinCard.equipped { border-color: #38f9d7; background: rgba(56,249,215,.08);
  box-shadow: 0 0 15px rgba(56,249,215,.2); }
.skinBall { width: 64px; height: 64px; border-radius: 50%;
  box-shadow: inset -10px -12px 20px rgba(0,0,0,.45), 0 5px 12px rgba(0,0,0,.5);
  transition: transform 0.3s; }
.skinCard:hover .skinBall { transform: scale(1.1) rotate(15deg); }
.skinName { font-size: 15px; font-weight: 800; letter-spacing: 0.5px; }
.skinBtn { border: none; border-radius: 20px; padding: 8px 18px; font-size: 13px;
  font-weight: 800; cursor: pointer; color: #06121f;
  background: linear-gradient(90deg,#f9d423,#ffb020);
  box-shadow: 0 4px 10px rgba(249,212,35,.2); transition: transform 0.1s, box-shadow 0.1s; }
.skinBtn:active { transform: scale(0.95); }
.skinBtn.use { background: linear-gradient(90deg,#38f9d7,#43e97b);
  box-shadow: 0 4px 10px rgba(56,249,215,.25); }
.skinBtn.equipped { background: rgba(255,255,255,.15); color: #fff; cursor: default; box-shadow: none; }
.skinBtn.cant { opacity: .4; cursor: default; }

/* duraklat */
#pauseScreen .logo { margin-bottom: 14px; }

/* uçan coinler */
.flying-coin {
  position: fixed;
  font-size: 26px;
  z-index: 9999;
  pointer-events: none;
  transition: all 0.75s cubic-bezier(0.1, 0.8, 0.3, 1.05);
  transform: translate(-50%, -50%);
}

@keyframes pulse {
  0% { transform: scale(0.95); }
  100% { transform: scale(1.05); }
}

/* ============ KONFETİ (GOL kutlaması) ============ */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.confetti i { position: absolute; top: -24px; width: 13px; height: 20px; border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,.25); animation: confettiFall linear infinite; }
@keyframes confettiFall {
  0%   { transform: translateY(-30px) rotate(0deg); opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
.confetti i:nth-child(1)  { left: 6%;  background: #ff6b9d; animation-duration: 2.6s; animation-delay: 0s; }
.confetti i:nth-child(2)  { left: 14%; background: #f9d423; animation-duration: 3.1s; animation-delay: .5s; }
.confetti i:nth-child(3)  { left: 22%; background: #38f9d7; animation-duration: 2.4s; animation-delay: 1.1s; }
.confetti i:nth-child(4)  { left: 30%; background: #43e97b; animation-duration: 3.4s; animation-delay: .2s; }
.confetti i:nth-child(5)  { left: 38%; background: #6ab5ff; animation-duration: 2.8s; animation-delay: .8s; }
.confetti i:nth-child(6)  { left: 46%; background: #ff8c42; animation-duration: 2.5s; animation-delay: 1.4s; }
.confetti i:nth-child(7)  { left: 54%; background: #ff6b9d; animation-duration: 3.2s; animation-delay: .3s; }
.confetti i:nth-child(8)  { left: 62%; background: #f9d423; animation-duration: 2.7s; animation-delay: 1s; }
.confetti i:nth-child(9)  { left: 70%; background: #38f9d7; animation-duration: 3s;   animation-delay: .6s; }
.confetti i:nth-child(10) { left: 78%; background: #43e97b; animation-duration: 2.3s; animation-delay: 1.2s; }
.confetti i:nth-child(11) { left: 86%; background: #6ab5ff; animation-duration: 3.3s; animation-delay: .1s; }
.confetti i:nth-child(12) { left: 94%; background: #ff8c42; animation-duration: 2.9s; animation-delay: .9s; }

/* gökkuşağı GOOOL yazısı */
.rainbowText {
  background: linear-gradient(90deg,#38f9d7,#f9d423,#ff6b9d,#6ab5ff,#38f9d7);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent !important; animation: logoRainbow 2.5s linear infinite, pulse 1s infinite alternate; }
@keyframes floatUpFade {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  30% { transform: translateY(-30px) scale(1.2); opacity: 1; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* Stack power-up buttons vertically on the right side in landscape mode */
@media (orientation: landscape) {
  #powerBar {
    top: 50%;
    bottom: auto;
    left: auto;
    right: 20px;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 16px;
  }

  /* Allow vertical scroll if it overflows on landscape screens */
  .screen {
    padding: 10px 20px !important;
    overflow-y: auto !important;
    justify-content: safe center !important;
  }

  /* Adjust logo/titles size */
  .logo {
    font-size: min(8vh, 32px) !important;
  }
  .logo small {
    font-size: min(3vh, 12px) !important;
    margin-top: 3px !important;
    letter-spacing: 4px !important;
  }

  /* Buttons row and button sizing */
  .btnRow {
    margin-top: 6px !important;
  }
  .btn {
    padding: 8px 24px !important;
    font-size: 14px !important;
    border-radius: 20px !important;
    margin: 3px !important;
  }
  .btn.alt {
    padding: 6px 18px !important;
    font-size: 12px !important;
  }
  #playBtn {
    font-size: 22px !important;
    padding: 13px 20px !important;
    width: min(330px, 86vw) !important;
    box-sizing: border-box !important;
    border-radius: 18px !important;
  }

  /* Level complete / fail screen specific */
  #resultScreen {
    justify-content: center !important;
  }
  #resultTitle {
    font-size: min(8vh, 32px) !important;
  }
  #resultStars {
    font-size: min(10vh, 40px) !important;
    margin: 2px 0 !important;
  }
  #resultInfo {
    font-size: 12px !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
  }
  .tomorrowBox {
    margin: 2px 0 6px !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    max-width: 320px !important;
  }
  .tomorrowBox .ttStreak {
    font-size: 10px !important;
    margin-bottom: 1px !important;
  }
  .tomorrowBox .ttBig {
    font-size: 12px !important;
  }
  .tomorrowBox .ttAmt {
    font-size: 12px !important;
    margin-top: 1px !important;
  }

  /* Goal celebration screen specific */
  #goalCelebrationScreen {
    justify-content: center !important;
  }
  #goalCelebrationTitle {
    font-size: min(10vh, 44px) !important;
  }
  #goalCelebrationStreak {
    font-size: 14px !important;
    margin: 4px 0 !important;
  }
  #goalCelebrationInfo {
    font-size: 12px !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
  }

  /* Game Over screens (Corner & Endless) */
  #cornerOverTitle, #endlessOverTitle {
    font-size: min(8vh, 32px) !important;
  }
  #cornerOverCombo, #endlessOverScore {
    font-size: min(12vh, 48px) !important;
    margin: 4px 0 !important;
  }
  #cornerOverInfo, #endlessOverInfo {
    font-size: 12px !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
  }
  #endlessOverRecord {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }

  /* Revive Screen specific */
  #reviveTitle {
    font-size: min(8vh, 32px) !important;
  }
  #reviveCombo {
    font-size: min(11vh, 44px) !important;
    margin: 4px 0 !important;
  }
  #reviveSub {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }
  .reviveTimer {
    margin-bottom: 6px !important;
    font-size: 11px !important;
  }

  /* Surprise Screen specific */
  #surpriseTitle {
    font-size: min(8vh, 32px) !important;
  }
  #surpriseBox {
    font-size: min(20vh, 70px) !important;
    margin: 4px 0 !important;
  }
  #surpriseReward {
    font-size: min(10vh, 36px) !important;
    margin-bottom: 4px !important;
  }
  #surpriseSub {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  /* Wheel Screen specific */
  #wheelTitle {
    font-size: min(8vh, 32px) !important;
  }
  #wheelSub {
    margin: 2px 0 8px !important;
    font-size: 12px !important;
  }
  #wheelWrap {
    width: min(180px, 46vh) !important;
    height: min(180px, 46vh) !important;
  }

  /* Quest Screen specific */
  #questTitle {
    font-size: min(8vh, 32px) !important;
  }
  #questSubTxt {
    margin: 2px 0 8px !important;
    font-size: 12px !important;
  }
  #questList {
    gap: 6px !important;
  }
  .questRow {
    padding: 6px 10px !important;
    gap: 8px !important;
    border-radius: 10px !important;
  }
  .questRow .qEmoji {
    font-size: 18px !important;
  }
  .questRow .qBody {
    margin: 0 !important;
  }
  .questRow .qDesc {
    font-size: 11px !important;
  }
  .questRow .qReward {
    font-size: 9px !important;
  }
  .questRow .qBar {
    height: 4px !important;
    margin-top: 4px !important;
  }
  .qClaimBtn {
    padding: 6px 12px !important;
    font-size: 10px !important;
    border-radius: 8px !important;
  }
  #questBonusRow {
    margin-top: 6px !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    border-radius: 12px !important;
  }
  #questCloseBtn {
    margin-top: 8px !important;
  }

  /* Daily Screen specific */
  #dailyTitle {
    font-size: min(8vh, 32px) !important;
  }
  #dailySub {
    font-size: 12px !important;
    margin: 2px 0 8px !important;
  }
  #dailyGrid {
    gap: 6px !important;
    margin-bottom: 4px !important;
  }
  #dailyGrid .dayCard {
    padding: 6px 4px 4px !important;
    border-radius: 10px !important;
  }
  #dailyGrid .dayCard .dNum {
    font-size: 9px !important;
  }
  #dailyGrid .dayCard .dIcon {
    font-size: 16px !important;
  }
  #dailyGrid .dayCard.big .dIcon {
    font-size: 20px !important;
  }
  #dailyGrid .dayCard .dAmt {
    font-size: 10px !important;
  }

  /* Shop Screen specific */
  #shopScreen h2 {
    font-size: min(8vh, 28px) !important;
    margin-bottom: 2px !important;
  }
  #shopGrid {
    margin: 8px 0 !important;
    gap: 8px !important;
    max-height: 48vh !important;
  }
  .skinCard {
    padding: 10px 8px !important;
    gap: 4px !important;
    border-radius: 14px !important;
  }
  .skinBall {
    width: 44px !important;
    height: 44px !important;
  }
  .skinName {
    font-size: 12px !important;
  }
  .skinBtn {
    padding: 6px 12px !important;
    font-size: 11px !important;
    border-radius: 12px !important;
  }
}

/* ================= PLAYTIME & RETENTION ADDITIONS ================= */
#hotStreakBadge {
  position: absolute;
  top: 108px;
  left: 10px;
  pointer-events: none;
  background: linear-gradient(135deg, #ff6b00, #ff0000);
  border: 1px solid rgba(255,140,0,.7);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .3s;
  animation: hotPulse 0.8s ease-in-out infinite alternate;
}
#hotStreakBadge.show {
  opacity: 1;
}
@keyframes hotPulse {
  from { box-shadow: 0 0 8px rgba(255,100,0,.5); transform: scale(1); }
  to { box-shadow: 0 0 18px rgba(255,50,0,.9); transform: scale(1.06); }
}

#perfectBadge {
  display: none;
  text-align: center;
  font-size: min(9vw, 36px);
  font-weight: 900;
  margin: 8px 0;
  animation: perfectShine 1.2s ease-in-out infinite alternate;
}
#perfectBadge.show {
  display: block;
}
@keyframes perfectShine {
  from { color: #f9d423; text-shadow: 0 0 18px rgba(249,212,35,.7); }
  to { color: #fff; text-shadow: 0 0 30px rgba(249,212,35,1), 0 0 60px rgba(249,212,35,.4); }
}

#sessionStatCard {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(6,18,32,.92);
  border: 1px solid rgba(56,249,215,.4);
  border-radius: 16px;
  padding: 12px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity .4s, transform .4s;
  pointer-events: none;
  z-index: 500;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
#sessionStatCard.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#dailyModeCard {
  width: min(330px, 86vw);
  margin: 2px 0 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid rgba(155,92,255,.7);
  background: linear-gradient(120deg, rgba(155,92,255,.22), rgba(56,249,215,.12));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  box-shadow: 0 6px 20px rgba(155,92,255,.3);
  position: relative;
  overflow: hidden;
  animation: dailyModeGlow 2s ease-in-out infinite alternate;
}
#dailyModeCard.done {
  border-color: rgba(56,249,215,.5);
  background: rgba(56,249,215,.1);
  animation: none;
  opacity: .75;
}
#dailyModeCard .dm-icon {
  font-size: 32px;
  flex-shrink: 0;
}
#dailyModeCard .dm-body {
  flex: 1;
  text-align: left;
}
#dailyModeCard .dm-title {
  font-size: 10px;
  letter-spacing: 2px;
  opacity: .7;
  text-transform: uppercase;
}
#dailyModeCard .dm-desc {
  font-size: 14px;
  font-weight: 900;
  margin-top: 2px;
}
#dailyModeCard .dm-prog {
  font-size: 11px;
  color: #38f9d7;
  margin-top: 3px;
}
#dailyModeCard .dm-arrow {
  font-size: 20px;
  opacity: .6;
  flex-shrink: 0;
}
@keyframes dailyModeGlow {
  from { box-shadow: 0 6px 20px rgba(155,92,255,.3); }
  to { box-shadow: 0 8px 30px rgba(155,92,255,.7), 0 0 0 2px rgba(155,92,255,.3); }
}

#nextLevelTeaser {
  font-size: 14px;
  font-weight: 800;
  color: #38f9d7;
  background: rgba(56,249,215,.08);
  border: 1px dashed rgba(56,249,215,.3);
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  width: min(340px, 88vw);
  display: inline-block;
}

#feverActiveOverlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 40px rgba(255, 81, 47, 0.4);
  animation: feverGlow 1.2s ease-in-out infinite alternate;
  display: none;
}
#feverActiveOverlay.show { display: block; }
@keyframes feverGlow {
  from { box-shadow: inset 0 0 30px rgba(255, 81, 47, 0.3); }
  to { box-shadow: inset 0 0 60px rgba(255, 81, 47, 0.7); }
}

#weeklyChallengeCard {
  transition: transform .2s, border-color .2s;
}
#weeklyChallengeCard:hover {
  transform: translateY(-2px);
  border-color: rgba(56,249,215,.6) !important;
}
#weeklyChallengeClaimBtn {
  animation: claimPulse 1s ease-in-out infinite alternate;
}
@keyframes claimPulse {
  from { transform: scale(1); box-shadow: 0 0 8px rgba(249,212,35,.5); }
  to { transform: scale(1.08); box-shadow: 0 0 16px rgba(249,212,35,.9); }
}
