@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-primary: #101A18;
  --bg-secondary: #172722;
  --bg-card: #1E3029;
  --accent-primary: #C9A24A;
  --accent-secondary: #B83232;
  --accent-frost: #D9E6DF;
  --accent-deep: #315C4A;
  
  --text-primary: #FFFFFF;
  --text-secondary: #E6EEE9;
  --text-muted: #B9C8C0;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --max-width: 1400px;
  --header-height: 80px;
  
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle CSS Snow Animation */
.snow-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background-image: 
    radial-gradient(3px 3px at 50px 50px, rgba(217, 230, 223, 0.7) 50%, transparent),
    radial-gradient(4px 4px at 200px 150px, rgba(217, 230, 223, 0.5) 50%, transparent),
    radial-gradient(2px 2px at 300px 250px, rgba(217, 230, 223, 0.8) 50%, transparent),
    radial-gradient(5px 5px at 500px 300px, rgba(217, 230, 223, 0.4) 50%, transparent),
    radial-gradient(3px 3px at 700px 100px, rgba(217, 230, 223, 0.7) 50%, transparent),
    radial-gradient(4px 4px at 900px 400px, rgba(217, 230, 223, 0.5) 50%, transparent);
  background-size: 1000px 1000px;
  animation: snowfall 20s linear infinite;
  opacity: 0.6;
}
.snow-layer.delay {
  animation-delay: -10s;
  background-position: 250px 250px;
}

@keyframes snowfall {
  0% { transform: translateY(-1000px); }
  100% { transform: translateY(0); }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-frost);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(16, 26, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 74, 0.3); /* Thin gold border */
  z-index: 1000;
  display: flex;
  align-items: center;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
  opacity: 0.5;
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-name span {
  color: var(--text-primary);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--accent-primary);
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--accent-primary);
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #a68133);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(201, 162, 74, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d4b363, var(--accent-primary));
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 74, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(201, 162, 74, 0.1);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent-secondary);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(184, 50, 50, 0.3);
}

.btn-accent:hover {
  background: #cc3a3a;
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 50, 50, 0.5);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background-color: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/premium-christmas-gaming-atmosphere.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(16, 26, 24, 0.8) 50%, rgba(16, 26, 24, 0.4) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: rgba(184, 50, 50, 0.2);
  border: 1px solid var(--accent-secondary);
  color: var(--accent-frost);
  border-radius: 50px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero h1 span {
  color: var(--accent-primary);
  font-style: italic;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: var(--spacing-desktop) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--accent-primary);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Game Section */
.game-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.game-intro-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 162, 74, 0.3);
  border-top: 3px solid var(--accent-secondary);
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 5;
}

.game-intro-card h3 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.game-category {
  color: var(--accent-primary);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.game-intro-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.game-container-wrapper {
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.5),
    0 0 30px rgba(201, 162, 74, 0.1),
    inset 0 0 20px rgba(184, 50, 50, 0.1);
  position: relative;
}

.game-container-wrapper::before {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(184,50,50,0.5) 0%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

.game-frame {
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--accent-deep);
}

.game-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Features */
.features-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(217, 230, 223, 0.05);
}

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

.feature-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 74, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2), 0 0 15px rgba(201, 162, 74, 0.05);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem auto;
  background: var(--bg-primary);
  border: 1px solid var(--accent-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* How to Play */
.how-to-play-section {
  background: var(--bg-primary);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: dashed 2px var(--accent-deep);
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--accent-secondary);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  position: relative;
  z-index: 2;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent-secondary);
}

.step h3 {
  font-size: 1.2rem;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Generic Page Banner (Legal/About/Contact) */
.page-banner {
  padding: calc(var(--header-height) + 4rem) 2rem 4rem 2rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  text-align: center;
  border-bottom: 1px solid rgba(201, 162, 74, 0.2);
}

.page-banner h1 {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

/* Content Pages */
.content-section {
  padding: var(--spacing-desktop) 0;
  background: var(--bg-primary);
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid rgba(217, 230, 223, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.content-wrapper h2 {
  color: var(--accent-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-wrapper h2:first-child {
  margin-top: 0;
}

.content-wrapper p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.content-wrapper ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--accent-deep);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(201, 162, 74, 0.2);
}

/* Footer */
.site-footer {
  background-color: #0b1210;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(201, 162, 74, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  font-family: var(--font-heading);
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 400px;
  font-size: 0.9rem;
}

.footer-links h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(217, 230, 223, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Entertainment Notice */
.entertainment-notice {
  background: rgba(184, 50, 50, 0.1);
  border: 1px solid var(--accent-secondary);
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
  margin: 2rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.entertainment-notice strong {
  color: var(--accent-secondary);
}

/* Responsive */
@media (max-width: 1200px) {
  :root {
    --spacing-desktop: var(--spacing-tablet);
  }
}

@media (max-width: 992px) {
  .hero-overlay {
    background: linear-gradient(90deg, rgba(16, 26, 24, 0.9) 0%, rgba(16, 26, 24, 0.7) 100%);
  }
  
  .steps-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .step:not(:last-child)::after {
    top: auto;
    bottom: -30px;
    left: 50%;
    right: auto;
    width: 2px;
    height: 30px;
    background: dashed 2px var(--accent-deep);
    transform: translateX(-50%);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-desktop: var(--spacing-mobile);
  }
  
  .main-nav, .header-cta {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .game-container-wrapper {
    padding: 0.5rem;
    border-radius: 8px;
    border-width: 1px;
  }
  
  .game-frame {
    border-radius: 4px;
  }
  
  .content-wrapper {
    padding: 1.5rem;
  }
}