/* Use a single solid background color for all pages except index.html */
body:not(.index-page) {
  background: #1a0a0a !important;
}

/* Chinese Lantern Festival Gaming Theme */
.games {
  padding: 6rem 1.5rem;
  background-color: rgba(45, 55, 72, 0.3);
}

.games-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.games-section {
  background:rgba(26, 10, 15, 0.9);
  padding: 3rem 1.5rem 2rem 1.5rem;
}
.game-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.game-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  height: 520px;
  min-height: 220px;
  border: none;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  background: #22223b;
  display: block;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .game-frame {
    height: auto;
    aspect-ratio: 16/9;
    min-height: 180px;
    max-height: 60vw;
    width: 100%;
  }
  .game-container {
    gap: 1.2rem;
  }
}
:root {
  /* Updated color scheme to Chinese festival theme with red, gold, and purple */
  --color-festival-dark: #1a0a0a;
  --color-festival-red: #dc2626;
  --color-festival-deep-red: #991b1b;
  --color-lantern-gold: #fbbf24;
  /* Alias for lantern purple used inline in game.html */
  --color-lantern-purple: #a855f7;
  --color-firework-purple: #a855f7;
  --color-firework-pink: #ec4899;
  --color-text-light: #fef3c7;
  --color-text-muted: #fde68a;
  --color-success: #10b981;
  --color-border: rgba(251, 191, 36, 0.2);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", sans-serif;
}

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

body {
  font-family: var(--font-sans);
  /* Updated background gradient to festival red and dark theme */
  background: linear-gradient(135deg, var(--color-festival-dark) 0%, var(--color-festival-deep-red) 100%);
  color: var(--color-text-light);
  line-height: 1.6;
  min-height: 100vh;
}

/* Age Verification Popup */
.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 10, 15, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.age-gate-overlay.hidden {
  display: none;
}

.age-gate-content {
  /* Updated background and border colors to festival theme */
  background: linear-gradient(135deg, var(--color-festival-deep-red) 0%, var(--color-festival-dark) 100%);
  border: 2px solid var(--color-lantern-gold);
  border-radius: 16px;
  padding: 3rem 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.3);
  animation: slideUp 0.4s ease;
}

.age-gate-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  /* Updated gradient to gold and purple */
  background: linear-gradient(135deg, var(--color-lantern-gold), var(--color-firework-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.age-gate-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.age-gate-disclaimer {
  background: rgba(0, 0, 0, 0.3);
  /* Updated border color to gold */
  border-left: 3px solid var(--color-lantern-gold);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
  border-radius: 8px;
}

.age-gate-disclaimer p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.age-gate-disclaimer p:last-child {
  margin-bottom: 0;
}

.age-gate-disclaimer strong {
  /* Updated text color to gold */
  color: var(--color-lantern-gold);
}

.age-gate-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.age-gate-buttons button {
  flex: 1;
  min-width: 140px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.btn-confirm {
  /* Updated button gradient to festival colors */
  background: linear-gradient(135deg, var(--color-festival-red), var(--color-lantern-gold));
  color: white;
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

.btn-exit {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

.btn-exit:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Header */
header {
  /* Updated header background to dark red theme */
  background:  rgba(26, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  /* Updated logo gradient to gold and purple */
  background: linear-gradient(135deg, var(--color-lantern-gold), var(--color-firework-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

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

nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  /* Updated hover color to gold */
  color: var(--color-lantern-gold);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  /* Updated underline color to gold */
  background: var(--color-lantern-gold);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
}

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

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  /* Updated radial gradient to purple firework effect */
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  position: relative;
}

.hero-character {
  width: 200px;
  height: auto;
  margin: 0 auto 2rem;
  animation: float 3s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  /* Updated gradient to festival colors */
  background: linear-gradient(
    135deg,
    var(--color-lantern-gold),
    var(--color-festival-red),
    var(--color-firework-purple)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.disclaimer-badge {
  display: inline-block;
  /* Updated badge colors to red and gold */
  background: rgba(220, 38, 38, 0.3);
  border: 1px solid var(--color-lantern-gold);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  color: var(--color-lantern-gold);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  /* Updated button gradient to festival colors */
  background: linear-gradient(135deg, var(--color-festival-red), var(--color-lantern-gold));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

/* Section Styles */
section {
  padding: 4rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

section h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  /* Updated heading color to gold */
  color: var(--color-lantern-gold);
}

section p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-image {
  width: 100%;
  max-width: 400px;
  height: 300px;
  /* Updated gradient to festival colors */
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.3), rgba(168, 85, 247, 0.3));
  border-radius: 16px;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  overflow: hidden;
}

.about-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Disclaimer Section */
.disclaimer-section {
  /* Updated disclaimer section colors */
  background: rgba(220, 38, 38, 0.15);
  border: 2px solid var(--color-lantern-gold);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 900px;
}

/* Center the CTA button inside the disclaimer section without affecting list alignment */
.disclaimer-section .cta-button {
  display: table;
  margin: 1.25rem auto 0;
}

.disclaimer-section h3 {
  /* Updated heading color to gold */
  color: var(--color-lantern-gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.disclaimer-section ul {
  list-style: none;
  padding-left: 0;
}

.disclaimer-section li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--color-text-muted);
}

.disclaimer-section li::before {
  content: "🏮";
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* Featured Game Section */
.game-card {
  /* Updated game card background */
  background: rgba(153, 27, 27, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 2rem auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.game-card .game-embed-container {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--color-lantern-gold);
  border-radius: 12px;
  padding: 0;
  order: 1;
  width: 100vw;
  height: 80vh;
  max-width: 100vw;
  max-height: 80vh;
  margin-left: 50%;
  transform: translateX(-50%);
}

.game-card .game-embed-container iframe {
  width: 100vw;
  height: 80vh;
  max-width: 100vw;
  max-height: 80vh;
  border: none;
  border-radius: 8px;
  display: block;
}

.game-info .container
{
   background: rgba(153, 27, 27, 0.6);
}
.game-card .game-info {
  order: 2;
   
}

.game-card .game-controls {
  text-align: center;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.game-image {
  width: 100%;
  height: 400px;
  /* Updated gradient to festival colors */
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.4), rgba(168, 85, 247, 0.4));
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

/* Optional lanterns/fireworks background for game-image */
.game-image.lanterns-bg {
  position: relative;
}

.game-image.lanterns-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: url('images/festival-night.png') center/cover no-repeat; */
  opacity: 0.35;
  pointer-events: none;
}

.game-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.game-card h3 {
  font-size: 2rem;
  /* Updated heading color to gold */
  color: var(--color-lantern-gold);
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  /* Updated FAQ item background */
  background: rgba(153, 27, 27, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  /* Updated heading color to gold */
  color: var(--color-lantern-gold);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--color-text-muted);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  /* Updated form input background */
  background: rgba(153, 27, 27, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  /* Updated focus border color to gold */
  border-color: var(--color-lantern-gold);
}

/* Game Page Styles */
.game-page-hero {
  text-align: center;
  padding: 3rem 2rem 2rem;
  background: none !important;
  position: relative;
}

.game-page-hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--color-lantern-gold),
    var(--color-festival-red),
    var(--color-firework-purple)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.game-page-hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.game-embed-container.fullscreen {
  max-width: 100%;
  margin: 1rem auto;
}

.game-embed-container.fullscreen iframe {
  height: 700px;
}

.game-info-grid {
 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.game-info-card {
  background: rgba(153, 27, 27, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.game-info-card h3 {
  color: var(--color-lantern-gold);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}

.game-info-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.game-info-card li {
  padding: 0.5rem 0;
  color: var(--color-text-muted);
  position: relative;
  padding-left: 1.5rem;
}

.game-info-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-lantern-gold);
  font-weight: bold;
}

/* Active navigation state */

/* Game Embed */
/* Remove background and border for play page game area */
.game-embed-container {
  max-width: 1000px;
  margin: 2rem auto;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.game-embed-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 240px;
  max-height: 80vh;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.2);
}

/* Fallback for browsers that do not support aspect-ratio */
.game-embed-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.game-embed-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  max-width: 900px;
  max-height: 100vh;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
}
/* Fallback for browsers that do not support aspect-ratio */
.game-embed-container::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 ratio fallback */
}
.game-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.game-controls {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.game-link {
  color: var(--color-lantern-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.game-link:hover {
  color: var(--color-firework-purple);
}

.game-container {
  max-width: 900px;
  margin: 2rem auto;
  /* Updated game container background and border */
  background: rgba(153, 27, 27, 0.6);
  border: 2px solid var(--color-lantern-gold);
   aspect-ratio: 16 / 9;
  border-radius: 16px;
  padding: 2rem;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-placeholder {
  text-align: center;
  color: var(--color-text-muted);
}

/* Content Pages */
.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.content-page h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  /* Updated heading color to gold */
  color: var(--color-lantern-gold);
  margin-bottom: 2rem;
}

.content-page h2 {
  font-size: 2rem;
  /* Updated heading color to red */
  color: var(--color-festival-red);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.content-page h3 {
  font-size: 1.5rem;
  /* Updated heading color to gold */
  color: var(--color-lantern-gold);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-page p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.content-page ul,
.content-page ol {
  margin-left: 2rem;
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

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

/* Footer */
footer {
  background: rgba(26, 10, 15, 0.9);
  border-top: 2px solid var(--color-lantern-gold);
  padding: 1.2rem 1rem 0.7rem;
  margin-top: 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "disclaimer disclaimer"
    "links resources"
    "copyright copyright";
  gap: 0.7rem 1.2rem;
}

.footer-disclaimer {
  grid-area: disclaimer;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid var(--color-lantern-gold);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.7rem;
  text-align: center;
}

.footer-disclaimer p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-disclaimer strong {
  /* Updated strong text color to gold */
  color: var(--color-lantern-gold);
}

.responsible-gambling {
  grid-area: resources;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin: 0.2rem 0 0.2rem;
  padding: 0.7rem 1rem;
  background: rgba(153, 27, 27, 0.4);
  border-radius: 12px;
}

.responsible-gambling a {
  /* Updated link color to gold */
  color: var(--color-lantern-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.responsible-gambling a:hover {
  /* Updated hover color to purple */
  color: var(--color-firework-purple);
}

/* Icons for Responsible Gaming Resources */
.responsible-gambling a::before {
  content: "🔗";
  font-size: 1rem;
  line-height: 1;
}

.responsible-gambling a[href*="gamblingtherapy.org"]::before {
  content: "🛟"; /* Lifebuoy */
}

.responsible-gambling a[href*="gambleaware.org"]::before {
  content: "ℹ️"; /* Info */
}

.responsible-gambling a[href*="gamstop.co.uk"]::before {
  content: "🛑"; /* Stop sign */
}

.footer-links {
  grid-area: links;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0.2rem 0 0.2rem;
}
/* Center the footer link rows horizontally */
.footer-link-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 1.2rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  /* Updated hover color to gold */
  color: var(--color-lantern-gold);
}

/* Add subtle dot separators between footer links on wider screens without changing HTML */
/* Vertical list: remove inline separators and extra padding */
.footer-links a + a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  font-size: 1.08rem;
  padding: 0.55em 1.2em; /* Increased left/right padding for more space among links */
  border-radius: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0.2em 0.1em;
  display: inline-block;
}

.footer-links {
  font-size: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* Copyright section at the bottom of the footer */
.footer-copyright {
  grid-area: copyright;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--color-border);
  background: transparent;
  position: relative;
  z-index: 1;
}

/* Scroll to Top Button */
#scrollToTopBtn {
  position: fixed;
  right: 2.2rem;
  bottom: 2.2rem;
  z-index: 1000;
  background: var(--color-lantern-gold, #fbbf24);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  cursor: pointer;
  display: none; /* Hidden by default, shown on scroll */
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.2s, box-shadow 0.2s;
}
#scrollToTopBtn:hover {
  background: var(--color-firework-purple, #a855f7);
  color: #ffd700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
/* --- Media hooks for provided assets (safe fallbacks if image is missing) --- */
/* 1) Festival night background for hero */
.hero.festival-night {
  position: relative;
  /* Fallback gradient remains underneath */
  background:
    linear-gradient(to bottom, rgba(26,10,15,0.2), rgba(26,10,15,0.8)),
    radial-gradient(circle at center, rgba(168,85,247,0.15) 0%, transparent 70%);
}

.hero.festival-night::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/festival-night.png'); /* Place provided lanterns+fireworks art here */
  background-size: cover;
  background-position: right center; /* Right half looks like night scene in provided art */
  opacity: 0.45; /* Subtle so text stays readable */
  pointer-events: none;
}

/* 2) Slot Lantern title graphic */
.game-title-graphic {
  display: block;
  margin: 0.5rem auto 1.25rem;
  max-width: 420px;
  width: 100%;
  height: auto;
  image-rendering: auto;
}

/* 3) Optional lightning accent (purple) */
.with-lightning {
  position: relative;
  overflow: hidden;
}

.with-lightning::before {
  content: "";
  position: absolute;
  top: -20px;
  right: 10px;
  width: 200px;
  height: 300px;
  background: url('images/lightning-purple.png') no-repeat center/contain; /* Use provided purple lightning sheet */
  opacity: 0.25;
  filter: drop-shadow(0 0 8px rgba(168,85,247,0.6));
  pointer-events: none;
}

@media (max-width: 768px) {
  .with-lightning::before {
    opacity: 0.15;
    width: 120px;
    height: 180px;
    right: -10px;
  }
}

/* Optional vertical sign decoration on left side of containers */
.with-vertical-sign {
  position: relative;
}

.with-vertical-sign::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 20px;
  width: 40px;
  height: 160px;
  background: url('images/vertical-sign.png') no-repeat center/contain;
  opacity: 0.6;
  pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "disclaimer"
      "links"
      "resources"
      "copyright";
  }

  .responsible-gambling {
    align-items: center;
  }

  .footer-links {
    align-items: center;
  }
  .header-container {
    padding: 1rem;
  }

  nav {
    display: none;
  }

  nav.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* Updated mobile menu background */
    background: rgba(153, 27, 27, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
  }

  nav.mobile-open ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
  }

  nav.mobile-open li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-character {
    width: 150px;
  }

  section h2 {
    font-size: 2rem;
  }

  .age-gate-content {
    padding: 2rem 1.5rem;
  }

  .age-gate-logo {
    font-size: 2rem;
  }

  .age-gate-buttons {
    flex-direction: column;
  }

  .age-gate-buttons button {
    width: 100%;
  }

  .responsible-gambling {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  /* Remove dot separators on mobile where links stack */
  .footer-links a + a::before {
    content: none;
  }

  .game-image {
    height: 250px;
  }

  .game-embed-container {
    padding: 1rem;
    margin: 1rem auto;
  }

  .game-embed-container iframe {
    height: 400px;
  }

  .game-card .game-embed-container iframe {
    height: 280px;
  }

  .game-card {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .game-embed-container.fullscreen iframe {
    height: 500px;
  }

  .game-page-hero h1 {
    font-size: 2.5rem;
  }

  .game-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .game-info-card {
    padding: 1.5rem;
  }

  .container {
    padding: 1rem;
  }

  section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .content-page h1 {
    font-size: 2rem;
  }

  .content-page h2 {
    font-size: 1.5rem;
  }
}
