/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  /* Colors - Base Layers */
  --deep-felt-green: #0b3d2e;
  --dark-table-green: #072a20;
  --elevated-surface: rgba(255,255,255,0.05);
  --elevated-surface-2: rgba(255,255,255,0.08);
  --elevated-surface-3: rgba(255,255,255,0.12);

  /* Colors - Accents */
  --gold: #d4af37;
  --gold-light: #e8c84a;
  --gold-dark: #b8942e;
  --mint: #a7f3d0;
  --card-red: #ef4444;

  /* Colors - Typography */
  --text-primary: #ecfdf5;
  --text-secondary: #bbf7d0;
  --text-muted: #6ee7b7;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;

  /* Spacing */
  --container-max: 1320px;
  --container-padding: 32px;
  --section-spacing: 120px;
  --border-radius: 16px;
  --border-radius-lg: 20px;
  --border-radius-sm: 12px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-base: 0.3s var(--ease-smooth);
  --transition-slow: 0.5s var(--ease-out);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-gold: 0 4px 20px rgba(212,175,55,0.15);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--dark-table-green);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-spacing) 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.2rem); }

.text-gold { color: var(--gold); }
.text-mint { color: var(--mint); }

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
  background: var(--elevated-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--border-radius-lg);
  padding: 32px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1a1a;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,175,55,0.3);
  filter: brightness(1.1);
  color: #1a1a1a;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: 18px;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7,42,32,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,175,55,0.15);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(7,42,32,0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-dot {
  color: var(--gold);
}

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

.nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sound,
.btn-accessibility {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  background: var(--elevated-surface);
}

.btn-sound:hover,
.btn-accessibility:hover {
  color: var(--gold);
  background: var(--elevated-surface-2);
}

.btn-sound.muted,
.btn-accessibility.active {
  color: var(--card-red);
}

.btn-nav-cta {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 10px;
  background: var(--elevated-surface);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 999;
  background: rgba(7,42,32,0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  transition: right 0.4s var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-inner {
  text-align: center;
  padding: 32px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--gold);
  background: var(--elevated-surface);
}

.btn-mobile-cta {
  margin-bottom: 32px;
}

.mobile-menu-legal {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.mobile-menu-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(11,61,46,0.9) 0%, var(--dark-table-green) 70%);
}

.hero-spotlight {
  position: absolute;
  top: 20%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(212,175,55,0.2);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-game-visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
}

.card-fan {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
}

.playing-card {
  position: absolute;
  width: 100px;
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, #f8f8f8 100%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease-out);
}

.card-face {
  text-align: center;
}

.card-suit {
  font-size: 1.6rem;
  display: block;
}

.card-suit.red { color: var(--card-red); }
.card-suit.black { color: #1a1a1a; }

.card-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #1a1a1a;
  display: block;
  line-height: 1;
}

.card-1 { transform: translate(-130px, -20px) rotate(-15deg); }
.card-2 { transform: translate(-45px, -40px) rotate(-5deg); }
.card-3 { transform: translate(40px, -40px) rotate(5deg); }
.card-4 { transform: translate(125px, -20px) rotate(15deg); }

.hero-game-visual:hover .card-1 { transform: translate(-140px, -30px) rotate(-18deg); }
.hero-game-visual:hover .card-2 { transform: translate(-48px, -50px) rotate(-6deg); }
.hero-game-visual:hover .card-3 { transform: translate(43px, -50px) rotate(6deg); }
.hero-game-visual:hover .card-4 { transform: translate(135px, -30px) rotate(18deg); }

/* Slot Reels */
.slot-reels {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,0.4);
  padding: 12px;
  border-radius: 16px;
  border: 2px solid rgba(212,175,55,0.3);
}

.reel {
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.reel-inner {
  display: flex;
  flex-direction: column;
  animation: reelSpin 3s ease-in-out infinite;
}

.reel-delay-1 { animation-delay: 0.3s; }
.reel-delay-2 { animation-delay: 0.6s; }

.reel-inner span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 1.6rem;
}

.hero-glow {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(212,175,55,0.15) 0%, transparent 70%);
  filter: blur(20px);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================
   GAME MODES
   ============================================ */
.game-modes {
  background: linear-gradient(180deg, var(--dark-table-green) 0%, var(--deep-felt-green) 100%);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mode-card {
  position: relative;
  background: var(--elevated-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.2);
  box-shadow: var(--shadow-gold);
}

.mode-card.featured {
  border-color: rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.05);
}

.mode-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 4px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 700;
}

.mode-icon {
  margin-bottom: 20px;
}

.mode-title {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.mode-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
  flex: 1;
}

.mode-features {
  list-style: none;
  margin-bottom: 24px;
}

.mode-features li {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  padding-left: 20px;
}

.mode-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ============================================
   GAME PREVIEW / CONTAINER
   ============================================ */
.game-preview {
  background: var(--deep-felt-green);
}

.game-container {
  max-width: 960px;
  margin: 0 auto;
}

.game-frame-wrapper {
  position: relative;
}

.game-frame-glow {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--border-radius-lg) + 2px);
  background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(167,243,208,0.1), rgba(212,175,55,0.2));
  z-index: 0;
  filter: blur(1px);
}

.game-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-lg);
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-table-green);
  transition: opacity 0.5s var(--ease-smooth);
}

.game-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.game-loading-inner {
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(212,175,55,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

.loading-text {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  animation: loadProgress 2.5s ease-in-out forwards;
}

.game-controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.game-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--elevated-surface);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.game-control-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.game-control-btn.primary-control {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.2);
  color: var(--gold);
}

/* ============================================
   REWARDS
   ============================================ */
.rewards {
  background: linear-gradient(180deg, var(--deep-felt-green) 0%, var(--dark-table-green) 100%);
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.reward-card {
  background: var(--elevated-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-base);
}

.reward-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(212,175,55,0.2);
}

.reward-icon-wrapper {
  margin-bottom: 16px;
}

.reward-icon {
  font-size: 2.5rem;
}

.reward-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.reward-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.reward-value {
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.15);
  color: var(--gold);
  font-size: 0.85rem;
  display: inline-block;
}

/* ============================================
   LEADERBOARD
   ============================================ */
.leaderboard {
  background: var(--dark-table-green);
}

.leaderboard-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.leaderboard-tabs {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.lb-tab {
  padding: 10px 24px;
  border-radius: 12px;
  background: var(--elevated-surface);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.lb-tab.active,
.lb-tab:hover {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.3);
  color: var(--gold);
}

.leaderboard-table {
  background: var(--elevated-surface);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.lb-header {
  display: grid;
  grid-template-columns: 60px 1fr 120px 80px;
  padding: 16px 24px;
  background: rgba(212,175,55,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lb-row {
  display: grid;
  grid-template-columns: 60px 1fr 120px 80px;
  padding: 16px 24px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background var(--transition-fast);
}

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

.lb-row:hover {
  background: var(--elevated-surface);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--elevated-surface-2);
  color: var(--text-secondary);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1a1a;
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
  color: #1a1a1a;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #e0a050);
  color: #1a1a1a;
}

.lb-player {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.player-avatar {
  font-size: 1.3rem;
}

.lb-score {
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
}

.lb-wins {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  padding: 48px;
}

.empty-state p {
  margin: 16px 0;
  color: var(--text-secondary);
}

/* ============================================
   PROGRESSION
   ============================================ */
.progression {
  background: linear-gradient(180deg, var(--dark-table-green) 0%, var(--deep-felt-green) 100%);
}

.progression-showcase {
  background: var(--elevated-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius-lg);
  padding: 48px;
}

.progression-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.progression-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 100px;
}

.level-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--elevated-surface-2);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  transition: all var(--transition-base);
}

.progression-level.completed .level-node {
  background: rgba(212,175,55,0.2);
  border-color: var(--gold);
  color: var(--gold);
}

.progression-level.current .level-node {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold);
  color: #1a1a1a;
  box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

.level-node.gold {
  border-color: rgba(212,175,55,0.3);
}

.level-info h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.level-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.progression-connector {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  min-width: 40px;
  margin: 0 8px;
  margin-bottom: 40px;
}

.progression-connector.completed {
  background: var(--gold);
}

.unlocks-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.unlocks-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.unlock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--border-radius);
  background: var(--elevated-surface);
  border: 1px solid rgba(255,255,255,0.04);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition-fast);
}

.unlock-item:hover {
  border-color: rgba(212,175,55,0.2);
  background: var(--elevated-surface-2);
}

.unlock-emoji {
  font-size: 1.5rem;
}

/* ============================================
   SOCIAL / AUTH
   ============================================ */
.social {
  background: var(--deep-felt-green);
}

.social-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.social-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.social-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.social-feature svg {
  flex-shrink: 0;
  margin-top: 4px;
}

.social-feature h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.social-feature p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Auth Card */
.auth-card {
  text-align: center;
}

.auth-card h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.auth-card > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.required {
  color: var(--card-red);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--gold);
  background: rgba(0,0,0,0.3);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.form-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-input.error {
  border-color: var(--card-red);
}

.form-error {
  display: block;
  font-size: 0.8rem;
  color: var(--card-red);
  margin-top: 4px;
  min-height: 1em;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236ee7b7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.auth-terms {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.auth-terms a {
  color: var(--gold);
}

/* User Profile (logged in) */
.user-profile {
  margin-bottom: 24px;
}

.user-avatar-large {
  font-size: 3rem;
  margin-bottom: 12px;
}

.user-level {
  color: var(--gold);
  font-size: 0.9rem;
}

.user-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-mini {
  text-align: center;
  padding: 12px;
  background: var(--elevated-surface);
  border-radius: 12px;
}

.stat-mini-value {
  display: block;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
}

.stat-mini-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: linear-gradient(180deg, var(--deep-felt-green) 0%, var(--dark-table-green) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--elevated-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212,175,55,0.15);
  border: 2px solid rgba(212,175,55,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold);
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-author span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--dark-table-green);
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 64px 48px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(11,61,46,0.5) 50%, rgba(212,175,55,0.05) 100%);
  border-color: rgba(212,175,55,0.15);
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.cta-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cta-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.cta-decorative {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  animation: floatCard 8s ease-in-out infinite;
}

.fc-1 { top: 10%; left: 5%; animation-delay: 0s; }
.fc-2 { top: 15%; right: 8%; animation-delay: 2s; color: var(--card-red); }
.fc-3 { bottom: 15%; left: 10%; animation-delay: 4s; color: var(--card-red); }
.fc-4 { bottom: 10%; right: 5%; animation-delay: 6s; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 64px 0 32px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-description {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.15);
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 16px;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  gap: 12px;
}

.badge-item {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--elevated-surface);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================
   PAGE HERO (Interior Pages)
   ============================================ */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--dark-table-green) 0%, var(--deep-felt-green) 100%);
  text-align: center;
}

.page-hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.page-hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 12px;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
  padding-top: 60px;
}

.legal-document {
  max-width: 800px;
  margin: 0 auto;
}

.legal-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.legal-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-notice p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-section h3 {
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--gold);
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-section ol {
  list-style: decimal;
}

.legal-section li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* Rules Table */
.rules-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.rules-table th,
.rules-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rules-table th {
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rules-table td {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.rules-table tr:hover td {
  background: var(--elevated-surface);
}

.rules-cta {
  text-align: center;
  margin-top: 48px;
  padding: 48px;
  background: var(--elevated-surface);
  border-radius: var(--border-radius-lg);
}

.rules-cta p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* RG Tools Grid */
.rg-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.rg-tool {
  padding: 24px;
}

.rg-tool h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.rg-tool p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============================================
   GAME PAGE
   ============================================ */
.game-page-section {
  padding-top: 100px;
  padding-bottom: var(--section-spacing);
}

.game-page-header {
  text-align: center;
  margin-bottom: 40px;
}

.game-page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 8px;
}

.game-page-frame .game-frame {
  aspect-ratio: 16/9;
}

.game-page-info {
  margin-top: 48px;
}

.game-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  padding: 28px;
}

.info-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.info-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.info-card ul {
  list-style: disc;
  padding-left: 20px;
}

.info-card li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-card {
  padding: 40px;
}

.contact-card h2 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-success {
  text-align: center;
  padding: 48px 24px;
}

.form-success svg {
  margin: 0 auto 16px;
}

.form-success h3 {
  margin-bottom: 8px;
  color: var(--mint);
}

.form-success p {
  color: var(--text-secondary);
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  padding: 28px;
}

.contact-info-card h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-method:last-child {
  margin-bottom: 0;
}

.contact-method svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-method strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-method p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.faq-links {
  list-style: none;
}

.faq-links li {
  margin-bottom: 12px;
}

.faq-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.faq-links a::before {
  content: '→';
  color: var(--gold);
}

.faq-links a:hover {
  background: var(--elevated-surface);
  color: var(--gold);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.content-layout {
  max-width: 900px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 64px;
}

.content-block h2 {
  margin-bottom: 20px;
}

.content-block p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.value-card {
  padding: 28px;
  text-align: center;
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.stat-card {
  text-align: center;
  padding: 28px;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(11,61,46,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  font-size: 0.9rem;
  max-width: 360px;
  animation: slideInToast 0.4s var(--ease-out) forwards;
}

.toast.removing {
  animation: slideOutToast 0.3s var(--ease-smooth) forwards;
}

.toast-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
}

.toast-close {
  padding: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

/* ============================================
   SKELETON SCREENS
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--elevated-surface) 25%, var(--elevated-surface-2) 50%, var(--elevated-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-card {
  height: 200px;
  border-radius: var(--border-radius);
}
/* ENDFILE */