/* WINZPLAY — custom styles (Tailwind handles layout) */

:root {
  --gold: #f3c34d;
  --gold-dark: #d4a82a;
  --purple-deep: #0d0618;
  --purple-mid: #1a0b2e;
  --purple-bright: #7b2cbf;
  --purple-glow: #9d4edd;
}

body {
  background-color: var(--purple-deep);
  min-height: 100vh;
}

.bg-purple-deep {
  background-color: var(--purple-deep);
}

/* Hero light rays */
.hero-rays {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(123, 44, 191, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 70% 20%, rgba(157, 78, 221, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 30% 15%, rgba(243, 195, 77, 0.08) 0%, transparent 45%);
}

/* Nav */
.nav-link {
  position: relative;
  transition: color 0.2s;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(243, 195, 77, 0.6);
}

/* Buttons */
.btn-gold {
  background: linear-gradient(180deg, #ffe08a 0%, var(--gold) 45%, var(--gold-dark) 100%);
  box-shadow: 0 4px 20px rgba(243, 195, 77, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s, filter 0.2s;
}

.btn-gold:hover {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.btn-purple {
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.5), rgba(26, 11, 46, 0.8));
  box-shadow: 0 0 20px rgba(123, 44, 191, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-purple:hover {
  transform: scale(1.03);
  box-shadow: 0 0 28px rgba(157, 78, 221, 0.45);
}

.btn-outline:hover {
  border-color: var(--purple-glow);
  background: rgba(123, 44, 191, 0.15);
}

.shadow-gold {
  box-shadow: 0 0 24px rgba(243, 195, 77, 0.4);
}

.shadow-purple-lg {
  box-shadow: 0 0 40px rgba(123, 44, 191, 0.5), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.text-glow-gold {
  text-shadow: 0 0 40px rgba(243, 195, 77, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero portal */
.portal-ring {
  width: min(420px, 90vw);
  min-height: 380px;
}

.portal-glow {
  background: radial-gradient(circle, rgba(157, 78, 221, 0.5) 0%, rgba(123, 44, 191, 0.2) 40%, transparent 70%);
  filter: blur(2px);
  transform: scale(1.1);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.85; transform: scale(1.05); }
  50% { opacity: 1; transform: scale(1.12); }
}

.hero-art {
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55));
  transition: transform 0.3s ease;
}

.hero-art:hover {
  transform: scale(1.02);
}

.hero-float {
  position: absolute;
  z-index: 20;
  animation: float 5s ease-in-out infinite;
}

.hero-float.coin-1 {
  width: 48px;
  height: 48px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.hero-float.chip-1 {
  width: 44px;
  height: 44px;
  top: 20%;
  right: 0;
  animation-delay: 1s;
}

.hero-float.card-1 {
  width: 72px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  bottom: 20%;
  left: 0;
  animation-delay: 2s;
}

.hero-float.coin-1,
.hero-float.chip-1 {
  object-fit: contain;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

/* Bonus card */
.bonus-card {
  animation: card-float 6s ease-in-out infinite;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.bonus-amount {
  text-shadow: 0 0 30px rgba(243, 195, 77, 0.4);
}

/* Floating page decor */
.floating-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.decor-game {
  position: absolute;
  width: 56px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  opacity: 0.25;
  animation: float 8s ease-in-out infinite;
}

.decor-1 { top: 15%; left: 8%; }
.decor-2 { top: 60%; right: 12%; animation-delay: 2s; }
.decor-3 { top: 40%; left: 3%; animation-delay: 1s; }
.decor-4 { bottom: 30%; right: 5%; animation-delay: 3s; }

.decor-dice {
  position: absolute;
  font-size: 2rem;
  opacity: 0.2;
  color: var(--gold);
}

.decor-5 { top: 25%; right: 20%; }
.decor-6 { bottom: 20%; left: 15%; }

/* Games scroll */
.games-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--purple-bright) transparent;
}

.games-scroll::-webkit-scrollbar {
  height: 6px;
}

.games-scroll::-webkit-scrollbar-thumb {
  background: var(--purple-bright);
  border-radius: 3px;
}

.game-card {
  position: relative;
  width: 150px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #1f1035 0%, #0d0618 100%);
  border: 2px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.game-card[data-border='gold'] {
  border-color: rgba(243, 195, 77, 0.5);
  box-shadow: 0 0 20px rgba(243, 195, 77, 0.15);
}

.game-card[data-border='green'] {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.game-card[data-border='purple'] {
  border-color: rgba(157, 78, 221, 0.5);
}

.game-card[data-border='blue'] {
  border-color: rgba(59, 130, 246, 0.5);
}

.game-card[data-border='red'] {
  border-color: rgba(239, 68, 68, 0.5);
}

.game-card[data-border='cyan'] {
  border-color: rgba(34, 211, 238, 0.5);
}

.game-card[data-border='emerald'] {
  border-color: rgba(16, 185, 129, 0.5);
}

.game-img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  object-position: center;
  padding: 6px 4px 0;
  opacity: 1;
}

.game-name {
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  margin-top: -32px;
  position: relative;
  z-index: 2;
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.badge-hot {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.badge-new {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Trust bar */
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.trust-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.4), rgba(26, 11, 46, 0.9));
  border: 1px solid rgba(157, 78, 221, 0.4);
  font-size: 1.35rem;
  color: var(--purple-glow);
  box-shadow: 0 0 20px rgba(123, 44, 191, 0.25);
}

.trust-item p {
  font-size: 13px;
  font-weight: 600;
  color: #e5e5e5;
  line-height: 1.4;
}

/* Leaderboard */
.leader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 90px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.rank-badge.gold {
  background: linear-gradient(135deg, #ffe08a, var(--gold-dark));
  color: #1a0b2e;
  box-shadow: 0 0 16px rgba(243, 195, 77, 0.6);
}

.rank-badge.silver {
  background: linear-gradient(135deg, #e8e8e8, #9ca3af);
  color: #1a0b2e;
}

.rank-badge.bronze {
  background: linear-gradient(135deg, #d4a574, #92400e);
  color: #fff;
}

.leader-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--purple-bright);
  object-fit: cover;
}

.leader-avatar-lg {
  width: 72px;
  height: 72px;
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(243, 195, 77, 0.35);
}

.leader-name {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #d1d5db;
}

.leader-prize {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.bottom-panels > .panel {
  min-height: 180px;
}

.panel-leaderboard {
  display: flex;
  align-items: center;
  justify-content: center;
}

.refer-gift {
  filter: drop-shadow(0 8px 20px rgba(123, 44, 191, 0.5));
}

.refer-coin {
  animation: float 4s ease-in-out infinite;
}

.refer-coin-2 {
  animation-delay: 1.5s;
}

/* Responsive */
@media (max-width: 1023px) {
  .hero-center {
    margin-bottom: 1rem;
  }

  .portal-ring {
    min-height: 320px;
  }

  .hero-art-left,
  .hero-art-right {
    height: 220px !important;
    width: 160px !important;
  }
}

@media (max-width: 640px) {
  .trust-bar .grid {
    gap: 1.5rem;
  }

  .game-card {
    width: 130px;
  }
}
