/* =====================================================
   VICTORY LANDING PAGE - STYLESHEET
   Luxury Gold & Crimson Theme (Pure CSS3, No Frameworks)
   ===================================================== */

:root {
  --bg-main: #090714;
  --gold-primary: #ffd700;
  --gold-light: #fff8dc;
  --gold-dark: #b8860b;
  --crimson-primary: #e60000;
  --crimson-dark: #8b0000;
  --text-main: #ffffff;
  --text-dim: #b0b0c0;
  --glass-bg: rgba(22, 16, 42, 0.72);
  --glass-border: rgba(255, 215, 0, 0.3);
  --glass-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-main);
  font-family: var(--font-family);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Canvas & Ambient Glows */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.bg-glow-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--gold-primary), transparent 70%);
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
}
.bg-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--crimson-primary), transparent 70%);
  bottom: -100px;
  right: -50px;
}

/* Main Container Layout (Mobile First) */
.victory-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.victory-card {
  width: 100%;
  max-width: 540px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow), 0 0 25px rgba(255, 215, 0, 0.15);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  animation: cardFadeIn 0.8s ease-out forwards;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header Ribbon */
.header-ribbon {
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson-primary));
  border: 1.5px solid var(--gold-primary);
  padding: 6px 22px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(230, 0, 0, 0.4);
}
.ribbon-sparkle {
  color: var(--gold-light);
  font-size: 11px;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.crown-wrapper {
  position: relative;
  display: inline-block;
}

.crown-icon {
  font-size: 64px;
  display: block;
  animation: crownBounce 2.5s ease-in-out infinite;
}

@keyframes crownBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.08); filter: drop-shadow(0 0 15px var(--gold-primary)); }
}

.winner-name {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.5px;
  word-break: break-word;
  background: linear-gradient(110deg, var(--gold-primary) 0%, #ffffff 25%, #ffa500 50%, var(--gold-primary) 75%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 3s linear infinite;
}

@keyframes textShine {
  0% { background-position: -200%; }
  100% { background-position: 200%; }
}

.winner-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 12px;
}

/* Net Worth Card Section */
.networth-card {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.05);
}

.networth-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.networth-amount {
  font-size: 30px;
  font-weight: 900;
  color: var(--gold-primary);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  line-height: 1.2;
}

/* Leaderboard Section */
.leaderboard-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.title-icon {
  font-size: 15px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.leaderboard-item:hover {
  transform: translateX(4px);
  border-color: rgba(255, 215, 0, 0.4);
}

.leaderboard-item.winner-item {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.18), rgba(255, 215, 0, 0.04));
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

.rank-badge {
  font-size: 16px;
  width: 28px;
  display: flex;
  justify-content: center;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  margin: 0 8px;
  overflow: hidden;
}

.player-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crown-mini {
  font-size: 13px;
}

.player-worth {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-primary);
  white-space: nowrap;
}

/* Badges Section */
.badges-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.badge-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.badge-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 215, 0, 0.08);
}

.badge-emoji {
  font-size: 18px;
}

.badge-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}

/* Quote Section */
.quote-section {
  width: 100%;
  background: rgba(255, 215, 0, 0.04);
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  text-align: left;
  position: relative;
}

.quote-icon {
  font-size: 24px;
  color: var(--gold-primary);
  line-height: 1;
  opacity: 0.5;
  margin-bottom: 2px;
}

.quote-text {
  font-size: 12px;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Giant CTA Button Section */
.cta-section {
  width: 100%;
  margin-top: 8px;
}

.btn-cta-giant {
  position: relative;
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff8c00 0%, #e60000 50%, #d4af37 100%);
  background-size: 200% 200%;
  border: 1.5px solid var(--gold-primary);
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
  animation: pulseGlow 2.5s ease-in-out infinite;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-cta-giant:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 140, 0, 0.6); }
  50% { box-shadow: 0 0 32px rgba(255, 215, 0, 0.9); }
}

.cta-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: rotate(30deg);
  animation: ctaShine 4s infinite;
}

@keyframes ctaShine {
  0% { transform: translateX(-100%) rotate(30deg); }
  20%, 100% { transform: translateX(100%) rotate(30deg); }
}

.cta-icon {
  font-size: 20px;
  z-index: 1;
}

.cta-text {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Footer */
.victory-footer {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}

/* Responsive adjustments for Tablet & Desktop */
@media (min-width: 600px) {
  .victory-card {
    padding: 40px 36px;
    border-radius: 28px;
  }
  .winner-name {
    font-size: 42px;
  }
  .networth-amount {
    font-size: 34px;
  }
  .badges-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .btn-cta-giant {
    height: 58px;
  }
  .cta-text {
    font-size: 16px;
  }
}
