/* Custom Premium CSS Design System - Casino Style */

:root {
  /* Colors */
  --bg-primary: #051a10; /* Velvet Forest Green Dark */
  --bg-secondary: #08291a; /* Velvet Forest Green Medium */
  --bg-felt: #0c3e26; /* felt green */
  --accent-gold: #d4af37; /* Metallic Gold */
  --accent-gold-light: #f3e5ab; /* Champagne Gold */
  --accent-gold-dark: #aa7c11; /* Bronze Gold */
  
  --text-primary: #f3f9f5; /* Off-White green tint */
  --text-secondary: #a9cfbe; /* Pale Sage Green */
  --text-muted: #5e8f77; /* Deep Muted Sage Green */
  
  --danger: #d9534f;
  --danger-light: #ff7875;
  --success: #2e7d32;
  
  /* Borders and Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-gold: rgba(212, 175, 55, 0.2);
  --card-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

li {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utilities */
.gold-text {
  color: var(--accent-gold);
}

.danger-text {
  color: var(--danger-light);
}

.gold-gradient-text {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 50%, var(--accent-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  color: #04140c;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

.btn-nav {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 26, 16, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--accent-gold);
}

.logo-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent-gold);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  background-color: #072516; /* Base felt green */
  background-image: 
    radial-gradient(circle at top, rgba(12, 62, 38, 0.7) 0%, rgba(5, 26, 16, 0.98) 80%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.14'/%3E%3C/svg%3E");
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 650px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--glass-border-gold);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-gold-light);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Floating Real Card styles */
.hero-cards-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

/* Real Playing Card Styles */
.real-card {
  position: absolute;
  width: 110px;
  height: 165px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 3px 10px rgba(0, 0, 0, 0.4);
  font-family: 'Outfit', sans-serif;
  user-select: none;
  animation: float 8s ease-in-out infinite;
  opacity: 0.85; /* High opacity to see details clearly */
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.real-card:hover {
  opacity: 1;
  transform: scale(1.06) rotate(calc(var(--rot, 0deg) * 1.15)) !important;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.7), 0 5px 15px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

/* Casino card inner frame border */
.card-inner-border {
  width: 100%;
  height: 100%;
  border: 1.2px solid rgba(0, 0, 0, 0.08);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  position: relative;
  z-index: 2;
}

.real-card.red-suit {
  color: #c8102e; /* Casino red */
}

.real-card.red-suit .card-inner-border {
  border-color: rgba(200, 16, 46, 0.12);
}

.real-card.black-suit {
  color: #1a1a1a;
}

.real-card.black-suit .card-inner-border {
  border-color: rgba(0, 0, 0, 0.12);
}

/* Real Card Linen texture finish */
.card-linen-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.08;
  z-index: 3;
  background-image: 
    repeating-linear-gradient(90deg, #000, #000 1px, transparent 1px, transparent 2px),
    repeating-linear-gradient(0deg, #000, #000 1px, transparent 1px, transparent 2px);
}

.card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
  z-index: 2;
}

.card-value {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.corner-suit {
  width: 10px;
  height: 10px;
  margin-top: 2px;
}

.card-corner.bottom-right {
  transform: rotate(180deg);
}

.card-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  z-index: 2;
}

.center-suit-large {
  width: 32px;
  height: 32px;
}

.center-suit-medium {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

/* Face card details */
.face-card {
  flex-direction: column;
  gap: 2px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
}

.face-icon {
  font-size: 20px;
  color: var(--accent-gold-dark);
}

/* Card Back side */
.real-card.card-back {
  background: #9b111e; /* Rich crimson card back */
  border: 4px solid #ffffff;
  padding: 4px;
}

.card-back-pattern {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background-color: #7b0812;
  background-image: 
    radial-gradient(rgba(255, 215, 0, 0.15) 15%, transparent 20%),
    radial-gradient(rgba(255, 215, 0, 0.15) 15%, transparent 20%),
    repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255, 255, 255, 0.03) 4px, rgba(255, 255, 255, 0.03) 8px),
    repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255, 255, 255, 0.03) 4px, rgba(255, 255, 255, 0.03) 8px);
  background-position: 0 0, 4px 4px, 0 0, 0 0;
  background-size: 8px 8px, 8px 8px, auto, auto;
  border: 1px solid rgba(255, 215, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back-inner {
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #8c101c 0%, #60030a 100%);
}

.card-back-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--accent-gold-light);
  font-family: 'Playfair Display', serif;
}

.back-crown-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

.card-back-logo span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.card-1 {
  top: 15%;
  left: 6%;
  animation-delay: 0s;
  transform: rotate(-12deg);
}

.card-2 {
  bottom: 22%;
  left: 10%;
  animation-delay: 2s;
  transform: rotate(14deg);
}

.card-3 {
  top: 24%;
  right: 10%;
  animation-delay: 4s;
  transform: rotate(-10deg);
}

.card-4 {
  bottom: 18%;
  right: 6%;
  animation-delay: 6s;
  transform: rotate(16deg);
}

@keyframes float {
  0% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-16px) rotate(calc(var(--rot, 0deg) + 3deg)); }
  100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
}

.card-1 { --rot: -12deg; }
.card-2 { --rot: 14deg; }
.card-3 { --rot: -10deg; }
.card-4 { --rot: 16deg; }

/* App Mockup Preview */
.hero-mockup {
  justify-self: center;
}

.phone-frame {
  width: 290px;
  height: 580px;
  border-radius: 40px;
  border: 8px solid #14281e;
  background-color: var(--bg-primary);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-header {
  height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--glass-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.app-content-preview {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #04150d;
}

.app-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px;
}

.active-game-card {
  border-color: var(--glass-border-gold);
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.game-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-gold-light);
}

.game-status {
  font-size: 10px;
  font-weight: 600;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
}

.app-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.player-mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.player-mini-name {
  color: var(--text-secondary);
}

.player-mini-score {
  font-weight: 700;
}

.ranking-mini-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ranking-mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-mini-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}

.rank-num {
  font-weight: 700;
  color: var(--text-muted);
}

.first .rank-num {
  color: var(--accent-gold);
}

.rank-mini-item .flag {
  font-size: 12px;
}

.rank-mini-item .name {
  flex: 1;
}

.rank-mini-item .wins {
  font-weight: 700;
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: var(--card-shadow);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.02) 100%);
  border: 1px solid var(--glass-border-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-gold-light);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Rules / Rounds Section */
.rules-section {
  padding: 100px 0;
  background-color: var(--bg-primary);
}

.rules-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

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

.round-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 14px 20px;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.round-btn:hover {
  background-color: var(--glass-bg);
  color: var(--text-primary);
}

.round-btn.active {
  background: linear-gradient(135deg, var(--bg-felt) 0%, var(--bg-secondary) 100%);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.round-display-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border-gold);
  border-radius: 20px;
  padding: 40px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
}

.display-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.display-header h3 {
  font-size: 24px;
  font-weight: 800;
}

.cards-badge {
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--glass-border-gold);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold);
}

.round-display-card p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

.card-visuals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.visual-card-item {
  width: 60px;
  height: 90px;
  background: linear-gradient(135deg, #ffffff 0%, #e2ebd5 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #04140c;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  font-weight: 800;
}

/* Calculator Section */
.calculator-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.calc-panel {
  background-color: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--card-shadow);
}

.calc-panel h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
}

.cards-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.card-select-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.card-select-btn:hover {
  border-color: var(--accent-gold-light);
  transform: translateY(-2px);
}

.card-select-btn:active {
  transform: translateY(0);
}

.card-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-pts {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.calc-actions {
  display: flex;
  gap: 12px;
}

/* Result Panel */
.result-panel {
  border-color: var(--glass-border-gold);
  display: flex;
  flex-direction: column;
}

.result-display {
  background: radial-gradient(circle, var(--bg-secondary) 0%, #04140c 100%);
  border: 1.5px solid var(--glass-border-gold);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

#calc-total-points {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-gold-light);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.pts-label {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 8px;
}

.selected-summary {
  flex: 1;
}

.selected-summary h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

#selected-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selected-card-row {
  display: flex;
  justify-content: space-between;
  background-color: var(--bg-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
}

.selected-card-remove {
  color: var(--danger-light);
  cursor: pointer;
  margin-left: 8px;
}

.empty-list-msg {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* Ranking Section */
.ranking-section {
  padding: 100px 0;
  background-color: var(--bg-primary);
}

.ranking-table-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border-gold);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  overflow-x: auto;
}

.ranking-table-header, .ranking-row {
  display: grid;
  grid-template-columns: 80px 80px 1fr 200px 150px;
  align-items: center;
  padding: 16px 20px;
}

.ranking-table-header {
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.ranking-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 16px;
  transition: var(--transition-fast);
}

.ranking-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-gold);
  padding-left: 17px;
}

.ranking-row:last-child {
  border-bottom: none;
}

.col-rank {
  font-weight: 800;
  font-size: 16px;
}

.medal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
}

.medal-badge.gold {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.medal-badge.silver {
  background: rgba(192, 192, 192, 0.15);
  color: #c0c0c0;
  border: 1px solid rgba(192, 192, 192, 0.3);
}

.medal-badge.bronze {
  background: rgba(205, 127, 50, 0.15);
  color: #cd7f32;
  border: 1px solid rgba(205, 127, 50, 0.3);
}

.flag-icon {
  font-size: 22px;
  line-height: 1;
}

.col-name {
  font-weight: 600;
}

.col-wins {
  font-size: 15px;
}

.col-score {
  font-weight: 700;
  color: var(--text-secondary);
}

.top-1 {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.03) 0%, transparent 100%);
}

.top-2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.02) 0%, transparent 100%);
}

/* Web Policies Modal styling */
.modal-overlay-web {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 10, 6, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay-web.active {
  display: flex;
  opacity: 1;
}

.modal-content-web {
  background-color: var(--bg-secondary);
  border: 1.5px solid var(--glass-border-gold);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay-web.active .modal-content-web {
  transform: translateY(0);
}

.modal-header-web {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-web h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.close-btn-web {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 32px;
  cursor: pointer;
  line-height: 0.5;
  transition: var(--transition-fast);
}

.close-btn-web:hover {
  color: var(--danger-light);
}

.modal-body-web {
  padding: 24px;
  overflow-y: auto;
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-body-web h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-body-web p {
  margin-bottom: 12px;
}

.modal-body-web ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.modal-body-web li {
  list-style: disc;
  margin-bottom: 6px;
}

/* Download Section */
.download-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  background-color: #072516; /* Base felt green */
  background-image: 
    radial-gradient(circle, rgba(12, 62, 38, 0.7) 0%, rgba(5, 26, 16, 0.98) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.14'/%3E%3C/svg%3E");
}

.download-bg-felt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  background: radial-gradient(circle, transparent 20%, var(--bg-primary) 80%);
  z-index: 1;
}

.download-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.download-content h2 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 20px;
}

.download-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Footer & Policies Links */
.footer {
  background-color: #03100a;
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link-separator {
  color: var(--text-muted);
  font-size: 12px;
  user-select: none;
}

/* Navbar Recovery Link */
.nav-recovery-btn {
  color: var(--accent-gold-light) !important;
  border: 1px dashed var(--glass-border-gold);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px !important;
  transition: var(--transition-fast);
}

.nav-recovery-btn:hover {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold) !important;
}

/* Instructions inside Recovery Modal */
.instructions-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  text-align: left;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  border-radius: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(212, 175, 55, 0.12);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0;
}

.recovery-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
}

.btn-block {
  width: 100%;
}

.recovery-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

.policies-link {
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 600;
  transition: var(--transition-fast);
}

.policies-link:hover {
  color: var(--accent-gold-light);
  text-decoration: underline;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.footer-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--accent-gold);
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.social-icons {
  display: flex;
  gap: 16px;
  font-size: 18px;
  color: var(--text-secondary);
}

.social-icons a:hover {
  color: var(--accent-gold);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .rules-container {
    grid-template-columns: 1fr;
  }
  
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  
  .ranking-table-header, .ranking-row {
    grid-template-columns: 70px 70px 1.2fr 1.2fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 38px;
  }
  
  .nav-links {
    display: none;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .ranking-table-header, .ranking-row {
    grid-template-columns: 50px 50px 1.2fr 1fr;
    font-size: 13px;
    padding: 12px 10px;
  }
  
  .ranking-table-header .col-score, .ranking-row .col-score {
    display: none; /* Hide total score column on micro mobile devices to prevent overflow */
  }
}
