/* Rewardly polish v1: cooler, finer look for the home / dashboard (works in light + dark) */
:root{
  --rw-gold-a:#ffd95a; --rw-gold-b:#f0a500; --rw-green-a:#17a05d; --rw-green-b:#0b6b43;
  --rw-glow-g:rgba(22,163,74,.30); --rw-glow-y:rgba(240,165,0,.34);
}

/* soft ambient glow behind everything */
html body{
  background-image:
    radial-gradient(ellipse 70% 38% at 8% 0%, rgba(240,165,0,.16), transparent 65%),
    radial-gradient(ellipse 65% 36% at 100% 12%, rgba(22,163,74,.16), transparent 65%);
  background-attachment:fixed;
}

/* ── entrance animation ── */
@keyframes rwUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes rwShine{0%{transform:translateX(-120%)}60%,100%{transform:translateX(220%)}}
@keyframes rwPulse{0%{box-shadow:0 0 0 0 rgba(255,200,40,.55),0 8px 22px rgba(240,165,0,.45)}70%{box-shadow:0 0 0 16px rgba(255,200,40,0),0 8px 22px rgba(240,165,0,.45)}100%{box-shadow:0 0 0 0 rgba(255,200,40,0),0 8px 22px rgba(240,165,0,.45)}}
.wl, .hero-carousel, .mail-notice, .tabs, .section-hd{ animation:rwUp .55s cubic-bezier(.2,.8,.2,1) both; }
.hero-carousel{ animation-delay:.05s } .mail-notice{ animation-delay:.12s } .tabs{ animation-delay:.18s } .section-hd{ animation-delay:.22s }
.games-grid .game-card{ animation:rwUp .55s cubic-bezier(.2,.8,.2,1) both; }
.games-grid .game-card:nth-child(1){animation-delay:.24s}.games-grid .game-card:nth-child(2){animation-delay:.30s}
.games-grid .game-card:nth-child(3){animation-delay:.36s}.games-grid .game-card:nth-child(4){animation-delay:.42s}
.games-grid .game-card:nth-child(5){animation-delay:.48s}.games-grid .game-card:nth-child(6){animation-delay:.54s}
.games-grid .game-card:nth-child(n+7){animation-delay:.6s}

/* ── hero slider ── */
.hero-carousel{
  border:0; border-radius:26px; margin-bottom:16px;
  box-shadow:0 0 0 1.5px rgba(255,210,77,.65), 0 16px 36px var(--rw-glow-g), 0 4px 12px rgba(0,0,0,.12);
}
.hero-carousel::after{ content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18), inset 0 -40px 50px -30px rgba(0,0,0,.25); }

/* ── mail notice → shiny gold pill ── */
.mail-notice{
  position:relative; overflow:hidden; margin-bottom:16px; border-radius:999px; padding:13px 18px;
  font-weight:800; letter-spacing:.1px;
  background:linear-gradient(100deg,#fff8dc 0%,#ffeeb0 55%,#ffe08a 100%);
  border:1px solid rgba(240,165,0,.55); color:#5a3a00;
  box-shadow:0 8px 20px rgba(240,165,0,.25);
}
.mail-notice i:first-child, .mail-notice i:last-child{ color:#c77700; }
.mail-notice::after{ content:""; position:absolute; top:0; bottom:0; width:40%; left:0;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.7),transparent); transform:translateX(-120%); animation:rwShine 3.6s ease-in-out infinite; }
html[data-theme="dark"] .mail-notice{ background:linear-gradient(100deg,#ffe9a6,#ffd24d 60%,#f5b800); color:#3b2600; border-color:rgba(255,224,130,.7); box-shadow:0 8px 24px rgba(240,165,0,.28); }

/* ── tabs ── */
.tabs{ gap:9px; padding:2px 2px 14px; }
.tab{ border-radius:999px; font-weight:700; padding:9px 16px; transition:transform .18s, box-shadow .18s, background .18s; }
.tab:active{ transform:scale(.94); }
.tab.active{ background:linear-gradient(135deg,var(--rw-green-a),var(--rw-green-b)); border-color:transparent; color:#fff; box-shadow:0 8px 18px var(--rw-glow-g); }

/* ── section heading ── */
.section-title > i{
  width:30px; height:30px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--rw-gold-a),var(--rw-gold-b)); color:#4a2f00 !important; font-size:13px;
  box-shadow:0 6px 14px var(--rw-glow-y);
}
.count-pill{ background:linear-gradient(135deg,rgba(255,217,90,.35),rgba(240,165,0,.2)); color:#8a5a00; border:1px solid rgba(240,165,0,.35); font-weight:800; }
html[data-theme="dark"] .count-pill{ color:#ffd95a; }
.arrow-btn{ width:32px; height:32px; border-radius:50%; transition:transform .15s; }
.arrow-btn:active{ transform:scale(.9); }

/* ── game cards ── */
.games-grid{ gap:14px; }
.game-card, .gc1, .gc2, .gc3, .gc4, .gc5, .gc6, .gc-candy{
  border-radius:22px; border:1.5px solid rgba(255,210,77,.55);
  box-shadow:0 10px 24px rgba(11,60,40,.22), 0 2px 6px rgba(0,0,0,.12);
  transition:transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.game-card:hover{ transform:translateY(-5px) scale(1.02); box-shadow:0 18px 34px rgba(11,60,40,.32), 0 0 0 2px rgba(255,210,77,.7); }
.game-card:active{ transform:scale(.97); }
.game-card::after{ content:""; position:absolute; inset:0; pointer-events:none; border-radius:inherit;
  background:linear-gradient(160deg,rgba(255,255,255,.22),transparent 38%); }
.game-label, .gc-candy .game-label, .games-grid .game-label{
  font-weight:800; letter-spacing:.3px; text-shadow:0 2px 6px rgba(0,0,0,.65);
  background:linear-gradient(to top,rgba(4,30,20,.92),rgba(4,30,20,.55) 55%,transparent); z-index:2;
}
.game-badge, .gc-candy .game-badge{ z-index:3; background:linear-gradient(135deg,#ff5a5f,#e11d48); box-shadow:0 4px 10px rgba(225,29,72,.45); letter-spacing:.4px; }
.game-badge.green-badge, .gc-candy .game-badge.green-badge{ background:linear-gradient(135deg,#22c55e,#15803d); box-shadow:0 4px 10px rgba(22,163,74,.45); }

/* ── wallet cards (dashboard) ── */
.wl-c{ border-radius:20px; box-shadow:0 10px 22px rgba(11,60,40,.14); transition:transform .2s, box-shadow .2s; }
.wl-c:active{ transform:scale(.97); }
.wl-bal .k i{ background:linear-gradient(135deg,var(--rw-gold-a),var(--rw-gold-b)) !important; color:#4a2f00 !important; }

/* ── top bar buttons ── */
.coin-display, .dl-btn{ background:linear-gradient(135deg,var(--rw-green-a),var(--rw-green-b)) !important; color:#fff !important; box-shadow:0 6px 16px var(--rw-glow-g) !important; }
.promo-banner{ border-radius:16px; }

/* ── bottom nav: floating glass + glowing gold orb ── */
.bottom-nav{
  border-radius:28px 28px 0 0; border-top:1.5px solid rgba(255,210,77,.55);
  box-shadow:0 -10px 30px rgba(11,60,40,.18);
}
.nav-item{ transition:transform .15s, color .15s; }
.nav-item:active{ transform:scale(.9); }
.nav-item.active{ filter:drop-shadow(0 4px 8px var(--rw-glow-g)); }
.promo-orb{
  background:linear-gradient(145deg,var(--rw-gold-a),var(--rw-gold-b)) !important; color:#4a2f00 !important;
  animation:rwPulse 2.4s ease-out infinite;
}
.nav-promo .ni-label{ color:#c77700 !important; font-weight:800 !important; }
html[data-theme="dark"] .nav-promo .ni-label{ color:#ffd95a !important; }

@media (prefers-reduced-motion:reduce){ *{ animation:none !important; transition:none !important; } }

/* ── brand logo (wide wordmark) in the top bar ── */
.dh-logo img{ width:auto !important; height:36px !important; max-width:150px; border:0 !important; border-radius:0 !important; box-shadow:none !important; object-fit:contain !important; background:none !important;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.28)); }
.dh-name{ display:none !important; }

/* ═════════ GAMES: featured hero + hot scroller + staggered new-games grid ═════════ */
.gx-top{ margin-top:2px; }
.gx-sub{ display:flex; align-items:center; margin:6px 2px 11px; font-size:14px; font-weight:800; letter-spacing:-.1px; color:var(--text); }
.gx-sub i{ color:#f0a500; margin-right:7px; }
.gx-hero, .gx-hot, .gx-card{ text-decoration:none; color:#fff; -webkit-tap-highlight-color:transparent; transition:transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s; }
.gx-hero:active, .gx-hot:active, .gx-card:active{ transform:scale(.97); }
.gx-img-fill img, .gx-hero-img img, .gx-hot-img img, .gx-card-img img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:0; }

/* featured hero */
.gx-hero{
  position:relative; display:grid; grid-template-columns:44% 1fr; align-items:stretch; overflow:hidden; margin:2px 0 20px; border-radius:26px;
  background:radial-gradient(circle at 85% 15%,rgba(255,217,90,.22),transparent 55%),linear-gradient(135deg,#10734b,#07382a 72%);
  box-shadow:0 0 0 1.5px rgba(255,210,77,.65), 0 18px 36px rgba(11,60,40,.38);
  animation:rwUp .55s .2s cubic-bezier(.2,.8,.2,1) both;
}
.gx-hero-img{ display:block; aspect-ratio:1; -webkit-mask-image:linear-gradient(to right,#000 80%,transparent); mask-image:linear-gradient(to right,#000 80%,transparent); }
.gx-hero-body{ display:flex; flex-direction:column; justify-content:center; gap:5px; padding:14px 16px 14px 4px; min-width:0; }
.gx-kicker{ font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:#ffd95a; }
.gx-kicker i{ margin-right:4px; }
.gx-hero-title{ font-size:22px; font-weight:900; line-height:1.1; letter-spacing:-.3px; }
.gx-hero-sub{ font-size:11.5px; line-height:1.4; color:#cfe8dc; }
.gx-play{ align-self:flex-start; margin-top:8px; padding:9px 16px; border-radius:999px; font-size:12px; font-weight:900; color:#4a2f00;
  background:linear-gradient(135deg,#ffd95a,#f0a500); box-shadow:0 8px 18px rgba(240,165,0,.45); }
.gx-play i{ font-size:9px; margin-left:5px; }

/* hot games: swipe row with big rank numbers */
.gx-row{ display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-left:12px; margin:0 -12px 8px; padding:4px 12px 16px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.gx-row::-webkit-scrollbar{ display:none; }
.gx-hot{
  position:relative; flex:0 0 47%; scroll-snap-align:start; aspect-ratio:.84; overflow:hidden; border-radius:24px;
  background:#07382a; box-shadow:0 0 0 1.5px rgba(255,210,77,.55), 0 12px 26px rgba(11,60,40,.3);
}
.gx-hot-img{ position:absolute; inset:0; display:block; }
.gx-hot::after{ content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(160deg,rgba(255,255,255,.2),transparent 36%); }
.gx-hot-name{ position:absolute; left:0; right:0; bottom:0; z-index:2; padding:30px 12px 11px; font-size:14px; font-weight:900; text-shadow:0 2px 6px rgba(0,0,0,.6);
  background:linear-gradient(to top,rgba(4,30,20,.95),rgba(4,30,20,.5) 60%,transparent); }
.gx-rank{ position:absolute; left:9px; top:4px; z-index:3; font-size:38px; line-height:1; font-weight:900; font-style:italic; color:#ffd95a;
  -webkit-text-stroke:1.5px #5a3a00; text-shadow:0 4px 10px rgba(0,0,0,.5); }
.gx-tag{ position:absolute; top:10px; right:10px; z-index:3; padding:3px 10px; border-radius:999px; font-size:9px; font-weight:800; letter-spacing:.4px; color:#fff;
  background:linear-gradient(135deg,#ff5a5f,#e11d48); box-shadow:0 4px 10px rgba(225,29,72,.45); }
.gx-tag.new{ background:linear-gradient(135deg,#22c55e,#15803d); box-shadow:0 4px 10px rgba(22,163,74,.45); }

/* new games: two columns, every second card sits lower */
.gx-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px 14px; padding:2px 0 40px; }
.gx-card{
  position:relative; display:flex; flex-direction:column; overflow:hidden; border-radius:24px;
  background:linear-gradient(160deg,#10734b,#07382a);
  box-shadow:0 0 0 1.5px rgba(255,210,77,.5), 0 12px 24px rgba(11,60,40,.3);
  animation:rwUp .55s cubic-bezier(.2,.8,.2,1) both;
}
.gx-grid .gx-card:nth-child(1){animation-delay:.1s}.gx-grid .gx-card:nth-child(2){animation-delay:.18s}.gx-grid .gx-card:nth-child(3){animation-delay:.26s}.gx-grid .gx-card:nth-child(4){animation-delay:.34s}
.gx-grid .gx-card:nth-child(even){ margin-top:16px; }
.gx-card-img{ display:block; aspect-ratio:1.1; }
.gx-card-foot{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 12px 11px; font-size:13px; }
.gx-card-foot b{ font-weight:800; }
.gx-go{ flex:none; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font-size:10px; color:#4a2f00; background:linear-gradient(135deg,#ffd95a,#f0a500); box-shadow:0 5px 12px rgba(240,165,0,.4); }
.gx-card .gx-tag{ top:9px; right:9px; }
/* a lonely last card becomes a wide strip */
.gx-grid .gx-card:last-child:nth-child(odd){ grid-column:1 / -1; flex-direction:row; align-items:stretch; margin-top:0; }
.gx-grid .gx-card:last-child:nth-child(odd) .gx-card-img{ width:46%; aspect-ratio:1; flex:none; }
.gx-grid .gx-card:last-child:nth-child(odd) .gx-card-foot{ flex:1; flex-direction:column; align-items:flex-start; justify-content:center; gap:12px; padding:14px 16px; font-size:17px; }
.gx-grid .gx-card:last-child:nth-child(odd) .gx-go{ width:auto; height:auto; border-radius:999px; padding:8px 18px; font-size:11px; }
.gx-grid .gx-card:last-child:nth-child(odd) .gx-go::after{ content:" Play"; font-weight:900; font-family:inherit; margin-left:5px; }
