:root {
  --primary-color: #ff4e00;
  --secondary-color: #ffc400;
  --accent-gold: #ffc400;
  --text-light: #e0e0e0;
  --text-dark: #ffffff;
  --bg-dark: #141414;
  --bg-card: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px; 
  font-size: clamp(14px, 1.2vw, 18px);
}

body {
  font-family: "Poppins", sans-serif;
  color: #f2f2f2;
  line-height: 1.6;
  overflow-x: hidden;
  background: linear-gradient(135deg, #1b0a00 0, #3d120a 50%, #5a1d05 100%);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

:focus-visible { outline: 2px solid var(--secondary-color); outline-offset: 3px; }

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 15px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

section, main {
  padding-left: clamp(15px, 5vw, 40px);
  padding-right: clamp(15px, 5vw, 40px);
}

/* ==========================================
   BETA BANNER UI
   ========================================== */
.beta-banner {
  background-color: var(--bg-card);
  color: var(--text-light);
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--primary-color);
  position: relative;
  z-index: 1000;
}
.beta-banner-content { display: flex; align-items: center; gap: 10px; }
.beta-pill {
  background: var(--primary-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.beta-banner a { color: var(--secondary-color); font-weight: 600; text-decoration: underline; }
.beta-close-btn {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 10px;
}
.beta-close-btn:hover { color: var(--primary-color); }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: 0.3s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-primary { background-color: var(--primary-color); color: var(--text-dark); box-shadow: 0 4px 15px rgba(255, 78, 0, 0.4); }
.btn-primary:hover:not(:disabled) { background-color: #ff3e3e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 94, 94, 0.6); }
.btn-secondary { background: transparent; border: 2px solid var(--text-light); color: var(--text-light); }
.btn-secondary:hover { border-color: var(--primary-color); color: var(--primary-color); transform: translateY(-2px); }

.btn.loading { opacity: 0.7; cursor: wait; pointer-events: none; }

.highlight-border { border-color: var(--secondary-color); color: var(--secondary-color); }
.highlight-border:hover { background: rgba(255, 196, 0, 0.1); border-color: var(--secondary-color); }
.large-btn { padding: 16px 40px; font-size: 1.15rem; }
.full-width-btn { width: 100%; margin-top: 15px; }

/* ==========================================
   MODALS
   ========================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}
.modal.hidden { display: none; }
.modal-content {
  background: var(--bg-dark);
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in-out;
}
.close-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; color: var(--text-dark); font-size: 1.5rem; cursor: pointer; transition: color 0.2s; }
.close-btn:hover { color: var(--primary-color); }
.modal-subtitle { color: #aaa; margin-bottom: 20px; font-size: 0.95rem; }

.google-btn, .email-btn { width: 100%; padding: 0.9rem; border-radius: 0.5rem; border: none; cursor: pointer; margin-top: 0.8rem; font-weight: 600; font-size: 1rem; transition: transform 0.2s; }
.google-btn:hover, .email-btn:hover { transform: scale(1.02); }
.google-btn { background: var(--text-dark); color: #333; display: flex; align-items: center; justify-content: center; gap: 10px; }
.email-btn { background: linear-gradient(90deg, #ff4040, #ff7f50); color: var(--text-dark); }

.forgot-pass-link { display: block; font-size: 0.85rem; color: #aaa; text-align: right; margin-top: 8px; text-decoration: underline; transition: color 0.2s; }
.forgot-pass-link:hover { color: var(--text-light); }

.divider { margin: 1rem 0; color: #aaa; position: relative; font-size: 0.9rem; }
.divider span { background: var(--bg-dark); padding: 0 10px; position: relative; z-index: 2; }
.divider::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #333; z-index: 1; }

.modal input { width: 100%; padding: 1rem; margin: 0.5rem 0; border: 1px solid #333; border-radius: 0.5rem; background: #1e1e1e; color: var(--text-dark); font-family: inherit; }
.modal input:focus { outline: 2px solid var(--primary-color); border-color: transparent; }

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
  background: rgba(12, 12, 30, 0.4);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: clamp(15px, 5vw, 40px);
  padding-right: clamp(15px, 5vw, 40px);
}

.brand-logo { height: 45px; width: auto; max-width: 250px; object-fit: contain; filter: brightness(1.2); cursor: pointer; }
.mobile-menu-toggle { display: none; background: none; border: none; color: var(--text-light); font-size: 1.5rem; cursor: pointer; }
.header-nav { display: flex; gap: 35px; justify-content: center; align-items: center; flex-grow: 1; margin-left: 50px; }
.nav-link { color: var(--text-light); font-weight: 600; font-size: 1rem; transition: color 0.25s, transform 0.2s; }
.nav-link:hover { color: var(--text-dark); transform: translateY(-1px); }
.nav-link.active { color: var(--primary-color); font-weight: 700; }

.auth-skeleton { width: 90px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 50px; animation: pulse 1.5s infinite; }
.user-menu { position: relative; display: inline-block; }
.user-btn { background: linear-gradient(135deg, #ff4040, #ff7f50); color: var(--text-dark); border: none; border-radius: 9999px; padding: 0.4rem 1.2rem; font-weight: 600; cursor: pointer; font-size: 0.95rem; transition: transform 0.25s, box-shadow 0.25s; box-shadow: 0 4px 10px rgba(255, 64, 64, 0.25); display: flex; align-items: center; gap: 8px; }
.user-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid #fff; }
.user-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(255, 64, 64, 0.35); }

.dropdown-menu { display: none; position: absolute; right: 0; top: 120%; background: var(--bg-card); border-radius: 10px; overflow: hidden; min-width: 160px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); animation: fadeIn 0.2s ease-in-out; z-index: 99; }
.dropdown-menu.show { display: block; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: 12px 16px; background: none; border: none; color: var(--text-dark); font-size: 0.9rem; cursor: pointer; transition: background 0.2s, color 0.2s; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: rgba(255, 127, 80, 0.15); color: #ff7f50; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 0.3; } 100% { opacity: 0.6; } }

/* ==========================================
   MAIN LAYOUT & HERO
   ========================================== */
main { flex-grow: 1; max-width: 1400px; margin: 0 auto; width: 100%; }

.hero-section { display: flex; align-items: center; justify-content: space-between; padding: 60px 0 40px; gap: 50px; width: 100%; animation: fadeIn 0.8s ease-out; }
@media (prefers-reduced-motion: reduce) { .hero-section { animation: none; } }
.hero-content { flex: 1; max-width: 600px; }
.hero-title { font-size: 3.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: var(--text-dark); }
.hero-title .highlight { color: var(--secondary-color); }
.hero-title .highlight2 { color: var(--primary-color); }
.hero-tagline { color: var(--text-light); margin-bottom: 30px; font-size: 1.3rem; max-width: 500px; }
.hero-actions { display: flex; gap: 20px; margin-bottom: 30px; }
.hero-features { display: flex; flex-direction: column; gap: 15px; }
.hero-features p { font-size: 1.1rem; color: var(--text-light); display: flex; align-items: center; gap: 10px; }
.hero-features p .fas { font-size: 1.3rem; color: var(--secondary-color); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

.hero-visuals { flex: 1; position: relative; min-height: 450px; display: flex; justify-content: center; align-items: center; overflow: hidden; padding: 20px 0; }
.visual-card, .visual-card-2, .visual-card-3 { position: absolute; width: 45%; max-width: 250px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: transform 0.3s; }
.visual-card { top: 5%; left: 10%; transform: rotate(-10deg); }
.visual-card-2 { top: 15%; left: 35%; transform: rotate(5deg); z-index: 2; }
.visual-card-3 { bottom: 5%; right: 5%; transform: rotate(15deg); z-index: 1; }
.doodle-1, .doodle-2 { color: var(--secondary-color); position: absolute; animation: float 4s ease-in-out infinite; }
.doodle-1 { top: 0; right: 15%; font-size: clamp(3rem, 5vw, 5rem); }
.doodle-2 { bottom: 5%; left: 15%; font-size: clamp(2.5rem, 4vw, 4rem); transform: rotate(-20deg); }

.section-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); margin: 20px 0 60px; }

/* ==========================================
   GAMES SECTION
   ========================================== */
#roomCodeInput { text-transform: uppercase; text-align: center; font-size: 1.5rem; letter-spacing: 4px; font-weight: 700; transition: border-color 0.3s ease; }
#roomCodeInput::placeholder { font-weight: 400; letter-spacing: normal; }

.games-section { margin-bottom: 80px; }
.section-title { margin-bottom: 30px; font-size: 1.8rem; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }

.game-card { background: var(--bg-card); border-radius: 12px; padding: 15px; text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 6px 25px rgba(255, 78, 0, 0.35); }
.game-card a { display: block; height: 100%; cursor: pointer; } 
.game-card h3 { margin-bottom: 5px; font-size: 1.3rem; }
.game-card p { color: #bbb; font-size: 0.95rem; }

.image-skeleton-wrapper { width: 100%; aspect-ratio: 1 / 1; background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%); background-size: 200% 100%; animation: skeletonLoading 1.5s infinite; border-radius: 10px; margin-bottom: 12px; overflow: hidden; position: relative; transition: background 0.3s ease; }
@keyframes skeletonLoading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.image-skeleton-wrapper img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease-in; position: absolute; top: 0; left: 0; }
.image-skeleton-wrapper.loaded img { opacity: 1; }
.image-skeleton-wrapper.loaded { animation: none; background: transparent; }

/* ==========================================
   FOLLOW US SECTION
   ========================================== */
.bg-distinct { background: rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.follow-us { padding: 80px 20px; text-align: center; margin: 40px 0; border-radius: 12px; }
.follow-us-container { max-width: 900px; margin: 0 auto; }
.follow-us h2 { color: var(--secondary-color); margin-bottom: 15px; }
.follow-us p { color: var(--text-light); margin-bottom: 40px; }
.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.social-card { background: var(--bg-card); border-radius: 12px; padding: 20px 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-light); font-size: 1rem; transition: transform 0.3s, background 0.3s, color 0.3s; }
.social-card i { font-size: 1.8rem; }
.social-card:hover { transform: translateY(-5px); color: var(--text-dark); }
.social-card.facebook:hover { background: #3b5998; }
.social-card.instagram:hover { background: linear-gradient(45deg, #fd1d1d, #833ab4, #fcb045); }
.social-card.x:hover { background: #000; color: var(--text-dark); }

/* ==========================================
   GLOBAL JS-INJECTED FOOTER & COOKIES
   ========================================== */
.global-footer { text-align: center; padding: 30px 20px; color: #aaa; margin-top: auto; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(5px); border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; align-items: center; gap: 15px; width: 100%; }
.global-footer.is-game-arena { position: absolute; bottom: 0; left: 0; z-index: 1000; }
.global-footer p { margin: 0; font-size: 13px; } 
.global-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; }
.global-footer-links a { color: #e0e0e0; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.global-footer-links a:hover { color: var(--secondary-color); }

.cookie-banner { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--bg-card); color: #fff; padding: 15px 20px; box-shadow: 0 -4px 15px rgba(0,0,0,0.5); z-index: 9999; text-align: center; border-top: 1px solid #333; }
.cookie-content { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 600px; margin: 0 auto; }
.cookie-content p { font-size: 14px; line-height: 1.5; margin: 0; }
.cookie-content a { color: var(--primary-color); text-decoration: underline; }
.cookie-btn { background: var(--primary-color); color: white; border: none; padding: 8px 25px; border-radius: 4px; font-weight: bold; cursor: pointer; }

/* ==========================================
   RESPONSIVE QUERIES
   ========================================== */
@media (min-width: 769px) {
  .cookie-content { flex-direction: row; justify-content: space-between; }
  .cookie-banner { bottom: 20px; left: 20px; width: auto; border-radius: 8px; border: 1px solid #333; }
}

@media (max-width: 992px) {
  .hero-section { flex-direction: column; text-align: center; padding: 40px 0; }
  .hero-content { max-width: 100%; }
  .hero-tagline { margin: 0 auto 30px auto; }
  .hero-actions, .hero-features p { justify-content: center; }
  
.hero-visuals { 
      flex-direction: row; 
      gap: 15px; 
      overflow: hidden; /* Fix: Removed overflow-x: auto to kill the ugly scrollbar */
      margin-top: 30px; 
      min-height: auto; 
      padding-bottom: 10px;
      justify-content: center;
  }
  .visual-card, .visual-card-2, .visual-card-3 {
      position: relative;
      top: auto; left: auto; right: auto; bottom: auto;
      transform: none;
      width: 25vw; /* Fix: Reduced from 30vw so they all fit without scrolling */
      max-width: 200px;
      flex-shrink: 0;
  }
  .doodle-1, .doodle-2 { display: none; }
}

@media (max-width: 768px) {
  .site-header { padding: 15px 0; }
  .mobile-menu-toggle { display: block; order: 1; }
  .brand-logo-container { order: 2; flex-grow: 1; display: flex; justify-content: center; }
  .header-actions { order: 3; }
  
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px 0;
    margin: 0; 
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }
  .header-nav.active { display: flex; animation: fadeIn 0.3s ease-in-out; }
  .hero-title { font-size: 2.8rem; }
  .hero-tagline { font-size: 1.1rem; }
}

@media (max-width: 576px) {
  .game-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; line-height: 1.2; }
  .hero-actions { flex-direction: column; gap: 15px; }
  .large-btn { width: 100%; }
  
  .hero-visuals { display: none; }

  .social-links { gap: 10px; }
  .social-card { padding: 15px 12px; font-size: 0.85rem; flex: 1; }
  .social-card i { font-size: 1.4rem; }
}

@media (max-width: 360px) {
  .btn { padding: 10px 18px; font-size: 0.9rem; }
  .hero-title { font-size: 1.8rem; }
}

/* ==========================================
   SUB-PAGE STYLES (Popular, About, Blog)
   ========================================== */

/* Hero Banner */
.popular-hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, #2b0d00 0%, #5a1d05 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 50px;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.popular-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 15px;
}
.popular-hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Popular Section Overrides */
.popular-section { padding: 20px 0; }
.popular-section .section-title { color: var(--secondary-color); }

/* About Page Content */
.about-content {
  padding: 20px 0 60px;
  max-width: 800px;
  margin: 0 auto;
}
.about-content h2 {
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.8rem;
}
.about-content h2:first-child { margin-top: 0; }
.about-content p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-content ul {
  list-style: none; /* Kills default double bullets */
  padding: 0;
  margin-top: 20px;
}
.about-content ul li {
  background: var(--bg-card);
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--primary-color);
}
@media (max-width: 576px) {
  .about-content ul li { font-size: 0.95rem; padding: 12px 15px; align-items: flex-start; }
}

/* Coming Soon Message */
.coming-soon-msg {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(255, 196, 0, 0.3);
}
.coming-soon-msg h3 { color: var(--secondary-color); font-size: 1.5rem; margin-bottom: 10px; }
.coming-soon-msg p { color: #aaa; }

/* Blog Cards */
.blog-list {
  display: grid;
  /* Fixed minmax to 260px for better 2-col tablet layout */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 20px 0 60px;
}
.blog-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.blog-card-link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9; /* Enforces clean CLS */
  overflow: hidden;
  background: #222;
}
.blog-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-image-wrapper img {
  transform: scale(1.05);
}
.blog-card-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.blog-card-tag {
  font-size: 0.8rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.blog-card-title {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--text-dark);
}
.blog-card-desc {
  color: #bbb;
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex-grow: 1;
}
.blog-card-btn { margin-top: auto; }
.blog-card-disclaimer {
  padding: 0 25px 20px;
  font-size: 0.75rem;
  color: #777;
  font-style: italic;
  text-align: left;
}

/* Forgot Password Link */
.forgot-pass-link {
  display: block;
  font-size: 0.85rem;
  color: #aaa;
  text-align: right;
  margin-top: 8px;
  text-decoration: underline;
  transition: color 0.2s;
}
.forgot-pass-link:hover {
  color: var(--text-light);
}

.highlight-red { color: #ff2424; } /* Solid Red */
.highlight-brown { color: #d27d2d; } /* Warm Copper Brown (so it shows on dark backgrounds) */

/* ==========================================
   BOTTOM CTA BANNERS
   ========================================== */
.cta-banner {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  margin: 60px auto 40px;
  max-width: 800px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-banner h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.cta-banner p {
  color: #aaa;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.cta-banner .btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* ==========================================
   LEGAL PAGES (Privacy, Terms, Grievance)
   ========================================== */
.legal-container {
    max-width: 800px;
    margin: 30px auto 60px auto;
    padding: 40px;
    background: var(--bg-card); 
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    color: var(--text-light);
}

.legal-container h1 {
    color: var(--secondary-color); 
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.legal-container h2 {
    color: var(--text-dark);
    margin-top: 35px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    scroll-margin-top: 120px; /* Prevents sticky header from covering the anchor link */
}

.legal-container ul {
    margin-top: 10px;
    padding-left: 20px;
}

.legal-container li {
    margin-bottom: 10px;
}

.legal-container p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.legal-container a:not(.legal-back-link) {
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s;
}

.legal-container a:not(.legal-back-link):hover {
    text-decoration: underline;
    color: #ff3e3e;
}

.effective-date {
    color: #888;
    font-style: italic;
    margin-bottom: 30px;
}

.officer-details {
    background-color: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--primary-color);
    word-break: break-word;
}

.officer-details a {
    font-weight: 700;
    text-decoration: underline;
}

.legal-footer-links {
    margin-top: 40px; 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap;
}

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light) !important;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid #444;
    border-radius: 8px;
    transition: 0.3s;
}

.legal-back-link:hover {
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none !important;
    border-color: var(--text-light);
}

@media (max-width: 576px) {
    .legal-container { 
        padding: 20px; 
        margin: 20px auto; 
    }
    .legal-container ul {
        padding-left: 15px;
    }
    .legal-footer-links {
        flex-direction: column;
        gap: 10px;
    }
    .legal-back-link {
        justify-content: flex-start;
        text-align: left;
    }
}

/* ==========================================
   ARTICLE PAGES (Blog Content)
   ========================================== */
.article-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 clamp(15px, 5vw, 40px);
    color: var(--text-light);
    font-size: 1.1rem;
}
.article-container > p {
    margin-bottom: 20px;
    line-height: 1.8;
}
.article-header {
    text-align: center;
    margin-bottom: 40px;
}
.article-header h1 {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 15px;
}
.article-meta {
    color: #888;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.article-hero-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.article-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-weight: 600;
    margin-bottom: 30px;
    transition: color 0.2s;
}
.article-nav-link:hover { color: var(--text-light); }
.article-nav-link.bottom { margin-top: 30px; margin-bottom: 0; }

.table-of-contents {
    background: rgba(0,0,0,0.3);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.05);
}
.table-of-contents h3 { margin-bottom: 15px; color: var(--secondary-color); font-size: 1.3rem; }
.table-of-contents ul { list-style: none; padding-left: 0; margin: 0; }
.table-of-contents li { margin-bottom: 10px; }
.table-of-contents a { color: var(--text-light); transition: color 0.2s; font-size: 1rem; display: flex; gap: 10px; }
.table-of-contents a:hover { color: var(--primary-color); }
.table-of-contents a span { color: var(--secondary-color); min-width: 25px; display: inline-block; }

.affiliate-disclaimer {
    background: transparent;
    border: 1px dashed rgba(255, 196, 0, 0.4); /* Visible but integrated */
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    font-style: italic;
    color: #aaa;
}

.game-entry {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 120px; /* Accounts for header + beta banner */
}
.game-entry h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.game-entry h3 { color: var(--text-dark); margin-top: 20px; margin-bottom: 10px; font-size: 1.1rem; }
.game-entry ul { padding-left: 20px; margin-top: 10px; }
.game-entry li { margin-bottom: 10px; color: var(--text-light); line-height: 1.7; }

.rank-number {
    color: var(--secondary-color);
    font-weight: 800;
}
.game-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: #bbb;
}
.game-stats span { display: flex; align-items: center; gap: 8px; }
.game-stats i { color: var(--primary-color); }

/* Restored Amazon Yellow for better conversions */
.buy-btn {
    display: inline-flex;
    align-items: center;
    background: #ff9900; 
    color: #000;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: transform 0.2s, background 0.2s;
}
.buy-btn:hover {
    transform: translateY(-2px);
    background: #e68a00;
    color: #000;
}
.buy-btn.budget-btn {
    background: transparent;
    border: 2px solid #ff9900;
    color: #ff9900;
}
.buy-btn.budget-btn:hover { background: rgba(255, 153, 0, 0.1); color: #ff9900; }
.buy-btn i { margin-right: 8px; }
.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.tashan-plug {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #2b0d00 0%, #5a1d05 100%);
    border-radius: 12px;
    margin-top: 50px;
}
.tashan-plug h2 { color: var(--secondary-color); margin-bottom: 10px; }
.tashan-plug p { margin-bottom: 20px; color: #bbb; }
.tashan-plug .btn { margin-top: 15px; background: var(--secondary-color); color: #000; font-weight: bold; } 

@media (max-width: 576px) {
    .game-entry { padding: 20px; }
    .table-of-contents { padding: 15px; }
    .game-stats { gap: 12px; font-size: 0.85rem; }
    .article-nav-link.top { display: none; } /* Saves space above fold */
}