/* ══════════════════════════════════════════════════════════════
   Hourly Reward — Game-Style Spectacular Effects
   ══════════════════════════════════════════════════════════════ */

/* ── Reward Overlay (Full-Screen Modal) ──────────────────────── */
.hr-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.hr-overlay.active {
  opacity: 1; visibility: visible;
}

/* ── Reward Card ─────────────────────────────────────────────── */
.hr-card {
  position: relative;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 24px;
  padding: 48px 56px;
  text-align: center;
  min-width: 400px;
  max-width: 520px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow:
    0 0 60px rgba(255, 215, 0, 0.15),
    0 0 120px rgba(255, 165, 0, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}
.hr-overlay.active .hr-card {
  transform: scale(1);
}

/* ── Glowing Border Animation ────────────────────────────────── */
.hr-card::before {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 27px;
  background: conic-gradient(
    from 0deg,
    #ffd700, #ff6b35, #ffd700, #ffb800, #ffd700
  );
  z-index: -1;
  animation: hr-border-rotate 3s linear infinite;
}
@keyframes hr-border-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Inner Light Particles ──────────────────────────────────── */
.hr-card::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,215,0,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,165,0,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Title ───────────────────────────────────────────────────── */
.hr-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 8px;
}
.hr-title-icon {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  color: #ffd700;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
  animation: hr-title-icon-bounce 1.2s ease-in-out infinite;
}
.hr-title-icon-right { animation-delay: 0.6s; }
@keyframes hr-title-icon-bounce {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-4px) rotate(10deg); }
}
.hr-title {
  font-size: 32px; font-weight: 900;
  background: linear-gradient(135deg, #ffd700, #ffaa00, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hr-title-shine 2s ease-in-out infinite;
  text-shadow: none;
}
@keyframes hr-title-shine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.hr-subtitle {
  font-size: 15px; color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── Points Display ──────────────────────────────────────────── */
.hr-points-ring {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 28px;
}
.hr-points-ring::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(255,215,0,0.2);
  animation: hr-ring-pulse 2s ease-in-out infinite;
}
@keyframes hr-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.12); opacity: 1; }
}
.hr-points-value {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.hr-points-num {
  font-size: 52px; font-weight: 900;
  color: #ffd700;
  line-height: 1;
  text-shadow: 0 0 30px rgba(255,215,0,0.6);
  animation: hr-points-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes hr-points-pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}
.hr-points-label {
  font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px;
}

/* ── Collect Button ──────────────────────────────────────────── */
.hr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 14px 48px;
  font-size: 18px; font-weight: 700;
  color: #1a1a2e;
  background: linear-gradient(135deg, #ffd700, #ffb800);
  border: none; border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,215,0,0.4);
  letter-spacing: 1px;
}
.hr-btn-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  animation: hr-btn-icon-spin 2.5s linear infinite;
}
@keyframes hr-btn-icon-spin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
}
.hr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.6);
}
.hr-btn:active {
  transform: scale(0.96);
}
.hr-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.4), transparent 60%);
  animation: hr-btn-shimmer 2s ease-in-out infinite;
}
@keyframes hr-btn-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Particle Burst ──────────────────────────────────────────── */
.hr-particle-burst {
  position: fixed; z-index: 10000; pointer-events: none;
}
.hr-particle {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: hr-particle-fly 1.2s ease-out forwards;
}
@keyframes hr-particle-fly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* ── Floating Coin ───────────────────────────────────────────── */
.hr-coin {
  position: fixed; z-index: 10001; pointer-events: none;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.5));
  animation: hr-coin-rise 2s ease-out forwards;
}
.hr-coin svg { width: 100%; height: 100%; display: block; }
@keyframes hr-coin-rise {
  0% { transform: translateY(0) rotateY(0deg) scale(1); opacity: 1; }
  50% { transform: translateY(-120px) rotateY(360deg) scale(1.4); opacity: 0.9; }
  100% { transform: translateY(-260px) rotateY(720deg) scale(0.3); opacity: 0; }
}

/* ── Light Rays ───────────────────────────────────────────────── */
.hr-rays {
  position: fixed; z-index: 9998; pointer-events: none;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(255,215,0,0.04) 10deg,
      transparent 20deg,
      rgba(255,215,0,0.04) 30deg,
      transparent 40deg,
      rgba(255,165,0,0.03) 50deg,
      transparent 60deg
    );
  animation: hr-rays-spin 8s linear infinite;
  opacity: 0;
  transition: opacity 0.5s;
}
.hr-rays.active {
  opacity: 1;
}
@keyframes hr-rays-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Countdown Badge (Navbar) ────────────────────────────────── */
.hr-countdown {
  display: inline-flex; align-items: center; gap: 4px;
  position: relative;
  cursor: pointer;
}
.hr-cd-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #b8860b;
}
.hr-countdown.pulse {
  animation: hr-cd-pulse 1.5s ease-in-out infinite;
}
@keyframes hr-cd-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255,215,0,0.5)); }
  50% { filter: drop-shadow(0 0 12px rgba(255,215,0,0.9)); transform: scale(1.05); }
}
.hr-countdown.ready {
  animation: hr-cd-ready 0.8s ease-in-out infinite;
}
@keyframes hr-cd-ready {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ── Streak Notification ──────────────────────────────────────── */
.hr-streak-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9990;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #ffd700;
  padding: 12px 20px;
  border-radius: 16px;
  font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,215,0,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(255,215,0,0.1);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex; align-items: center; gap: 8px;
}
.hr-streak-toast.show {
  transform: translateX(0);
}

/* ── Confetti ─────────────────────────────────────────────────── */
.hr-confetti {
  position: fixed; z-index: 10000; pointer-events: none;
  animation: hr-confetti-drop var(--dur) linear forwards;
  opacity: 0;
}
@keyframes hr-confetti-drop {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(var(--rot)); opacity: 0; }
}
