/* Landing Page Styles - Enhanced with Wow Factor */
:root {
  --crown-gold: #d4af37;
  --crown-gold-light: #f4e4bc;
  --crown-gold-dark: #8b6914;
  --royal-purple: #2d1b4e;
  --royal-purple-dark: #1a0f2e;
  --royal-purple-light: #3d2a5e;
  --bg-dark: #05060d;
  --text-light: #f5f6ff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --player-color: #54d66a;
  --ai-color: #ff6b6b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
}

*:focus {
  outline: none;
}

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  position: relative;
}

#landing-wrapper {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated Background Canvas */
#heroFxCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, var(--royal-purple) 0%, var(--royal-purple-dark) 40%, var(--bg-dark) 100%);
  z-index: 1;
  outline: none;
  border: none;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(45, 27, 78, 0.15) 0%, transparent 50%);
  animation: pulseGlow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--crown-gold), var(--crown-gold-light), #ffd700, var(--crown-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 4s ease infinite;
  text-shadow: 0 0 60px rgba(212, 175, 55, 0.6);
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.game-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--crown-gold), transparent);
  margin: 20px auto;
  border-radius: 2px;
  animation: expandLine 2s ease-in-out infinite;
  box-shadow: 0 0 20px var(--crown-gold);
}

@keyframes expandLine {
  0%, 100% { width: 100px; opacity: 0.6; }
  50% { width: 200px; opacity: 1; }
}

.game-tagline {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 0.1em;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

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

.cta-button {
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--crown-gold), var(--crown-gold-light));
  color: var(--royal-purple-dark);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5), 0 0 30px rgba(212, 175, 55, 0.3);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(212, 175, 55, 0.6);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
  width: 400px;
  height: 400px;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.7), 0 0 50px rgba(212, 175, 55, 0.4);
}

.cta-button:active {
  transform: translateY(-1px) scale(1.02);
}

.cta-button.large {
  padding: 22px 50px;
  font-size: 1.4rem;
}

/* Rules Section */
.rules-section {
  padding: 80px 20px;
  background: var(--bg-dark);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.rules-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  animation: rotate 35s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.rules-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--royal-purple-dark) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 60px;
  background: linear-gradient(135deg, var(--crown-gold), var(--crown-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: fadeInUp 0.8s ease-out;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.rule-card {
  background: linear-gradient(145deg, rgba(20, 15, 35, 0.95), rgba(10, 8, 20, 0.95));
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out backwards;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.rule-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.rule-card::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
  transition: left 0.6s;
  z-index: -1;
}

.rule-card:hover::after {
  left: 100%;
}

.rule-card:nth-child(1) { animation-delay: 0.1s; }
.rule-card:nth-child(2) { animation-delay: 0.2s; }
.rule-card:nth-child(3) { animation-delay: 0.3s; }
.rule-card:nth-child(4) { animation-delay: 0.4s; }
.rule-card:nth-child(5) { animation-delay: 0.5s; }
.rule-card:nth-child(6) { animation-delay: 0.6s; }
.rule-card:nth-child(7) { animation-delay: 0.7s; }

.rule-card:hover {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 50px rgba(212, 175, 55, 0.3);
  transform: translateY(-8px) scale(1.01);
}

.rule-card.highlight {
  border-color: rgba(212, 175, 55, 0.6);
  background: linear-gradient(145deg, rgba(30, 20, 45, 0.95), rgba(15, 10, 25, 0.95));
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 60px rgba(212, 175, 55, 0.4);
  animation: highlightPulse 3s ease-in-out infinite;
}

@keyframes highlightPulse {
  0%, 100% { box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 60px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 80px rgba(212, 175, 55, 0.6); }
}

.rule-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
  position: relative;
  z-index: 1;
}

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

.rule-card h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--crown-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  position: relative;
  z-index: 1;
}

.rule-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.rule-card ul {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

.rule-card ul li {
  padding: 12px 0 12px 30px;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.rule-card ul li:hover {
  color: var(--crown-gold-light);
  transform: translateX(5px);
}

.rule-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--crown-gold);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.rule-card ul li:hover::before {
  transform: translateX(5px);
}

.rule-card strong {
  color: var(--crown-gold);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Example Board */
.example-board {
  margin: 30px auto;
  display: inline-block;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 12px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.example-board::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  animation: rotate 25s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.example-board:hover {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.4);
  transform: scale(1.02);
}

.example-board table {
  position: relative;
  z-index: 1;
}

.example-board table {
  border-collapse: separate;
  border-spacing: 2px;
  margin: 0;
}

.example-board td {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 40% 20%, rgba(255,255,255,0.12), rgba(14,16,26,0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  position: relative;
  text-align: center;
  font-size: 0.7rem;
  color: #fff;
  transition: all 0.3s ease;
}

.example-board td:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.example-board td.player-cell {
  background: linear-gradient(135deg, rgba(84, 214, 106, 0.3), rgba(14,16,26,0.95));
  border-color: rgba(84, 214, 106, 0.5);
  box-shadow: inset 0 0 0 2px rgba(84, 214, 106, 0.7), 0 0 10px rgba(84, 214, 106, 0.3);
}

.example-board td.ai-cell {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(14,16,26,0.95));
  border-color: rgba(255, 107, 107, 0.5);
  box-shadow: inset 0 0 0 2px rgba(255, 107, 107, 0.7), 0 0 10px rgba(255, 107, 107, 0.3);
}

.example-board td.neutral-cell {
  background: rgba(140, 143, 165, 0.2);
  border-color: rgba(140, 143, 165, 0.3);
}

.example-board .cell-power {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.8);
}

.example-board .cell-pawn {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crown-gold);
  box-shadow: 0 0 6px var(--crown-gold);
  animation: pawnPulse 2s ease-in-out infinite;
}

@keyframes pawnPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* Card Example */
.card-example {
  margin: 30px 0;
  text-align: center;
  position: relative;
}

.example-card {
  display: inline-block;
  background: linear-gradient(145deg, rgba(20, 28, 50, 0.95), rgba(8, 12, 24, 0.95));
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 12px;
  padding: 25px 20px;
  margin: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.2);
  min-width: 220px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.example-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  animation: rotate 18s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.example-card > * {
  position: relative;
  z-index: 1;
}

.example-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 50px rgba(212, 175, 55, 0.4);
}

.card-icon-large {
  font-size: 4rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6)) drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
  animation: iconFloat 3s ease-in-out infinite;
}

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

.card-name-large {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--crown-gold);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.card-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.card-rank-badge, .card-power-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.card-rank-badge {
  background: rgba(212, 175, 55, 0.2);
  color: var(--crown-gold);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.card-power-badge {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.4);
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.card-pattern-preview {
  margin-top: 15px;
}

.pattern-grid-small {
  display: grid;
  grid-template-columns: repeat(5, 20px);
  grid-template-rows: repeat(5, 20px);
  gap: 2px;
  margin: 10px auto;
  width: fit-content;
}

.pattern-cell-small {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.pattern-cell-small.origin {
  background: var(--crown-gold);
  box-shadow: 0 0 12px var(--crown-gold);
  animation: originPulse 2s ease-in-out infinite;
}

@keyframes originPulse {
  0%, 100% { box-shadow: 0 0 12px var(--crown-gold); }
  50% { box-shadow: 0 0 20px var(--crown-gold), 0 0 30px rgba(212, 175, 55, 0.5); }
}

.pattern-cell-small.hit {
  background: rgba(255, 193, 7, 0.6);
  border: 1px solid rgba(255, 193, 7, 0.8);
  animation: hitPulse 2s ease-in-out infinite;
}

@keyframes hitPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.card-example-text {
  margin-top: 15px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pattern Demo */
.pattern-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.pattern-demo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
  animation: rotate 28s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.pattern-before, .pattern-after {
  flex: 1;
  min-width: 300px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.pattern-before h4, .pattern-after h4 {
  margin-bottom: 20px;
  color: var(--crown-gold);
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  position: relative;
  z-index: 1;
}

.pattern-arrow {
  font-size: 3rem;
  color: var(--crown-gold);
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2) translateX(5px); }
}

/* Scoring Example */
.scoring-example {
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.scoring-example::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
  animation: rotate 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.scoring-breakdown {
  margin-top: 30px;
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 12px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.scoring-breakdown::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
  animation: rotate 25s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.lane-score {
  padding: 15px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--crown-gold);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.lane-score:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.lane-label {
  font-weight: 700;
  color: var(--crown-gold);
  margin-right: 15px;
}

.player-score {
  color: var(--player-color);
  font-weight: 600;
  margin-right: 15px;
  text-shadow: 0 0 10px rgba(84, 214, 106, 0.5);
}

.opponent-score {
  color: var(--ai-color);
  font-weight: 600;
  margin-right: 15px;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.lane-winner {
  color: var(--text-light);
  font-weight: 600;
  margin-left: 15px;
}

.total-score {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
  border-radius: 12px;
  border: 2px solid var(--crown-gold);
  text-align: center;
  font-size: 1.3rem;
  color: var(--crown-gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  animation: totalScoreGlow 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.total-score::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  animation: rotate 22s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes totalScoreGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 50px rgba(212, 175, 55, 0.6), 0 0 70px rgba(212, 175, 55, 0.3); }
}

/* CTA Section */
.cta-section {
  padding: 100px 20px;
  background: radial-gradient(ellipse at 50% 50%, var(--royal-purple) 0%, var(--royal-purple-dark) 40%, var(--bg-dark) 100%);
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  animation: rotate 20s linear infinite reverse;
  pointer-events: none;
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--crown-gold), var(--crown-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
  animation: fadeInUp 0.8s ease-out;
}

.cta-section p {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Footer */
.footer {
  padding: 60px 20px 40px;
  background: var(--bg-dark);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
  animation: rotate 40s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1.2rem;
  color: var(--crown-gold);
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--crown-gold);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Smooth scroll animations */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pattern-before {
  animation: slideInFromLeft 0.8s ease-out;
}

.pattern-after {
  animation: slideInFromRight 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }

  .game-title {
    font-size: 2.5rem;
  }

  .game-tagline {
    font-size: 1rem;
  }

  .hero-buttons, .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-buttons .cta-button,
  .cta-buttons .cta-button {
    width: 100%;
  }

  .rule-card {
    padding: 25px;
  }

  .rule-card h3 {
    font-size: 1.5rem;
  }

  .rule-card p, .rule-card ul li {
    font-size: 1rem;
  }

  .pattern-demo {
    flex-direction: column;
  }

  .pattern-arrow {
    transform: rotate(90deg);
    font-size: 2rem;
  }

  .example-board td {
    width: 35px;
    height: 35px;
    font-size: 0.6rem;
  }

  .example-card {
    min-width: 180px;
    padding: 20px 15px;
  }

  .card-icon-large {
    font-size: 3rem;
  }

  .scoring-breakdown {
    padding: 20px;
  }

  .lane-score {
    font-size: 0.9rem;
    padding: 10px;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .footer {
    padding: 40px 20px 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-section {
    text-align: center;
  }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(145deg, rgba(20, 15, 35, 0.98), rgba(10, 8, 20, 0.98));
  border-top: 2px solid rgba(212, 175, 55, 0.4);
  padding: 20px;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(12px);
  animation: slideUp 0.5s ease-out;
  overflow: hidden;
}

.cookie-consent-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
  animation: rotate 25s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.cookie-consent-content {
  position: relative;
  z-index: 1;
}

.cookie-consent-banner.hidden {
  display: none;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text h3 {
  font-size: 1.2rem;
  color: var(--crown-gold);
  margin: 0 0 8px 0;
  font-weight: 600;
}

.cookie-consent-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.cookie-consent-text a {
  color: var(--crown-gold);
  text-decoration: none;
}

.cookie-consent-text a:hover {
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cookie-btn.accept {
  background: linear-gradient(135deg, var(--crown-gold), var(--crown-gold-light));
  color: var(--royal-purple-dark);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.cookie-btn.accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.cookie-btn.reject {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.cookie-btn.reject:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    max-width: 200px;
  }
}
