/* Global Reset & Base Styles */
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  max-width: 100vw;
}

html {
  font-family: Georgia, 'Times New Roman', serif;
  scroll-behavior: smooth;
  font-size: max(15px, 1em); /* Base font size */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: #041a0e; /* Theme BG */
  color: #e6fff2; /* Theme Text */
}

body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative; /* For animations */
}

/* Font Size Consistency */
* {
  font-size: inherit;
}
small, .small, figcaption, sub, sup {
  font-size: max(13px, 0.85em);
}

/* Global Image Styling */
img, canvas, iframe, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-sizing: border-box;
}

/* Container for Centering Content */
.cdea9p-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  color: #00ffaa; /* Theme Accent */
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h4 { font-size: clamp(1.3rem, 3vw, 2rem); }
p {
  font-size: max(15px, 1rem);
  line-height: 1.8;
  margin-bottom: 24px;
}

a {
  color: #00c97a; /* Theme Primary */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #00ffaa; /* Theme Accent */
  text-decoration: underline;
}

/* Buttons */
.cdea9p-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-size: max(13px, 0.9rem);
  transition: all 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #00ffaa 0%, #00c97a 100%); /* Theme Accent to Primary Gradient */
  color: #041a0e; /* Dark text on bright button */
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.2); /* Initial glow */
}

.cdea9p-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 22px rgba(0, 255, 170, 0.5); /* Brighter glow on hover */
  color: #fff; /* White text on hover for contrast */
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
main {
  animation: fadeInUp 0.65s ease-out both;
}

@keyframes slideInHero {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cdea9p-hero h1, .cdea9p-hero-text h1 {
  animation: slideInHero 0.7s 0.1s ease-out both;
}
.cdea9p-hero p, .cdea9p-hero-text p {
  animation: slideInHero 0.7s 0.25s ease-out both;
}

@keyframes cardEnter {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 170, 0.2); }
  50% { box-shadow: 0 0 22px rgba(0, 255, 170, 0.5); }
}
.cdea9p-btn {
  animation: btnGlow 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Navigation */
.cdea9p-header {
  padding: 20px;
  background: rgba(4, 26, 14, 0.7); /* Semi-transparent BG */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); /* For Safari */
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cdea9p-logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  letter-spacing: 1px;
}
.cdea9p-logo span { margin-left: 8px; }

.cdea9p-desktop-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
}

.cdea9p-desktop-nav ul li a {
  color: #e6fff2; /* Theme Text */
  font-weight: 500;
  font-size: max(14px, 0.95rem);
  padding: 5px 10px;
  position: relative;
  transition: color 0.3s ease;
}

.cdea9p-desktop-nav ul li a::after {
  content: '';
  display: block;
  height: 2px;
  background: #00c97a; /* Theme Primary */
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
}

.cdea9p-desktop-nav ul li a:hover {
  color: #00ffaa; /* Theme Accent */
}

.cdea9p-desktop-nav ul li a:hover::after {
  transform: scaleX(1);
}

.cdea9p-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cdea9p-age-flag {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.4);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: max(13px, 0.85rem);
  color: #fff;
  font-weight: 500;
}

.cdea9p-hamburger {
  display: none; /* Hidden by default, shown on mobile */
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid #00c97a; /* Theme Primary */
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.4rem;
  cursor: pointer;
  color: #00c97a;
  transition: all 0.3s ease;
}

.cdea9p-hamburger:hover {
  background: #00c97a;
  color: #041a0e;
}

.cdea9p-mobile-menu {
  display: none; /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(4, 26, 14, 0.95); /* Dark BG */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.cdea9p-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cdea9p-mobile-menu ul li a {
  color: #e6fff2;
  font-size: max(1.5rem, 2.2vw);
  font-weight: 600;
  padding: 10px 0;
  display: block;
}

.cdea9p-close-menu {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.3s ease;
}
.cdea9p-close-menu:hover {
  transform: rotate(180deg);
  color: #00c97a;
}

/* Disclosure Bar */
#cdea9p-disclosure-bar {
  background: #08071e; /* Darker BG */
  color: #9fa8da; /* Lighter text */
  text-align: center;
  padding: 10px 16px;
  font-size: max(13px, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #283593; /* Accent border */
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Hero Section */
.cdea9p-hero {
  position: relative;
  min-height: 85vh;
  padding: 160px 40px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background-image: url('about-hero-bg.jpg'); /* Placeholder */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden; /* Prevent content overflow */
  isolation: isolate;
}

.cdea9p-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.75) 50%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

.cdea9p-hero > * {
  position: relative;
  z-index: 2;
}

.cdea9p-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: #fff;
}

.cdea9p-hero h1 {
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.cdea9p-hero p {
  font-size: max(15px, 1.05rem);
  margin-bottom: 32px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.cdea9p-hero-image {
  position: absolute;
  top: 0;
  right: 5%;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none; /* Image shouldn't block clicks */
}

.cdea9p-hero-image img {
  max-height: 80vh;
  object-fit: contain;
  transform: scale(1.1); /* Slightly larger for depth */
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
}

/* Trust Badges */
.cdea9p-trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: max(12px, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 5px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.cdea9p-trust-badge::before { /* Shimmer effect */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  background-size: 200% 100%;
  transition: background-position 0.5s ease;
}
.cdea9p-trust-badge:hover::before {
  background-position: 200% center;
}
.cdea9p-trust-badge .icon {
  font-size: 1.2em;
}

/* Content Sections */
.cdea9p-content-section {
  padding: 80px 20px;
  line-height: 1.8;
  font-size: max(15px, 1.05rem);
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cdea9p-content-section:last-child {
  border-bottom: none;
}

/* Game Grid */
.cdea9p-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1300px;
  margin: 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Game Card */
.cdea9p-game-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  background-color: rgba(0, 0, 0, 0.3); /* Darker card background */
  border: 6px solid #000; /* Neo-Brutalist */
  box-shadow: 12px 12px 0px #000; /* Neo-Brutalist */
}

.cdea9p-game-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 6px solid #000;
  filter: grayscale(20%) contrast(120%);
  transition: filter 0.3s ease;
}

.cdea9p-game-card-info {
  padding: 20px;
  text-align: center;
}

.cdea9p-game-card-info h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: 10px;
  color: #ffe34d; /* Theme Sec */
}

.cdea9p-game-card-info p {
  font-size: max(13px, 0.85rem);
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 0;
}

.cdea9p-game-card:hover {
  transform: translateY(-8px) scale(1.02); /* Slight lift */
  box-shadow: 0 20px 40px rgba(0,0,0,0.4); /* Softer shadow on hover */
  border-color: #00c97a; /* Theme Primary border on hover */
  background-color: rgba(0, 255, 170, 0.1); /* Subtle Accent BG */
}

.cdea9p-game-card:hover img {
  filter: grayscale(0%) contrast(100%); /* Colorize image on hover */
}

/* Footer */
.cdea9p-footer {
  padding: 60px 20px;
  background: rgba(10, 10, 10, 0.3); /* Slightly darker than BG */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: max(13px, 0.9rem);
  line-height: 1.7;
  box-sizing: border-box;
}

.cdea9p-footer ul {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.cdea9p-footer ul li a {
  color: #e6fff2;
  opacity: 0.9;
  font-weight: 500;
}

.cdea9p-footer ul li a:hover {
  color: #00ffaa;
}

.cdea9p-footer-contact {
  margin-top: 10px;
  font-size: max(13px, 0.9em);
  opacity: 0.9;
  text-align: left;
}

.cdea9p-footer-contact p {
  margin-bottom: 10px;
}

.cdea9p-footer-contact strong {
  color: #00c97a;
}

.cdea9p-footer > div > div:nth-of-type(2) { /* Container for regulatory info */
  width: 100%;
  opacity: 0.8;
  font-size: 0.95em;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
  margin-top: 15px;
}

.cdea9p-footer-regulatory-badge {
  display: inline-block;
  background: transparent;
  padding: 10px 25px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #ffeb3b; /* Yellow border */
}

.cdea9p-footer-regulatory-badge span:first-child {
  color: #ffeb3b;
  font-weight: bold;
  display: block;
  font-size: max(13px, 0.9rem);
}

.cdea9p-footer-regulatory-badge span:last-child {
  font-size: max(12px, 0.85rem);
  opacity: 0.8;
}

.cdea9p-footer p {
  margin-bottom: 15px;
  text-align: justify;
  font-size: max(13px, 0.9em);
}

.cdea9p-footer p:last-of-type {
  margin-bottom: 0;
}

.cdea9p-footer strong {
  color: #00c97a; /* Theme Primary */
}

.cdea9p-footer a {
  color: #00ffaa; /* Theme Accent */
  text-decoration: underline;
}

.cdea9p-footer a:hover {
  color: #fff;
}

.cdea9p-footer-regulatory-info {
  border-top:1px solid rgba(255,255,255,0.1);
  padding-top:12px;
  margin-top:12px;
  font-size:max(12px, 0.78em);
  opacity:0.75;
  line-height:1.55;
  text-align:left;
}

.cdea9p-footer-regulatory-info strong {
  display:block;
  margin-bottom:4px;
  opacity:0.9;
  color: #fff;
}

.cdea9p-copyright {
  margin-top: 20px;
  font-size: max(12px, 0.75em);
  opacity: 0.7;
  text-align: center;
}

.cdea9p-copyright a {
  color: inherit;
  text-decoration: underline;
}

/* === Responsive Styles === */

/* === TABLET (≤1024px) === */
@media (max-width: 1024px) {
  .cdea9p-hero {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    padding: 120px 5% 60px !important;
    gap: 40px !important;
    text-align: center !important;
    background-attachment: scroll !important; /* Fix for background scrolling on tablets */
  }
  .cdea9p-hero-content { max-width: 90%; margin: 0 auto; }
  .cdea9p-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem) !important; }
  .cdea9p-hero-image { display: none !important; }
  .cdea9p-game-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; }
}

/* === MOBILE (≤768px) === */
@media (max-width: 768px) {
  html, body { font-size: max(15px, 1em); }
  * { font-size: inherit; }
  small, .small, figcaption, sub, sup, .legal, .disclaimer-text { font-size: max(13px, 0.85em) !important; }

  .cdea9p-header {
    padding: 12px 16px !important;
  }

  .cdea9p-desktop-nav { display: none !important; }
  .cdea9p-hamburger { display: flex !important; } /* Show hamburger on mobile */

  .cdea9p-hero {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    padding: 60px 16px 40px !important;
    text-align: center !important;
    gap: 24px !important;
    min-height: unset !important;
    background-attachment: scroll !important;
  }
  .cdea9p-hero-content { max-width: 100%; }
  .cdea9p-hero h1, .cdea9p-hero-text h1 {
    font-size: clamp(1.6rem, 7vw, 2.6rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
  }
  .cdea9p-hero p, .cdea9p-hero-text p {
    font-size: max(15px, 1rem) !important;
    margin-bottom: 24px !important;
  }
  .cdea9p-hero-image { display: none !important; } /* Ensure hidden on mobile */

  .cdea9p-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; /* Two columns */
    gap: 16px !important;
    padding: 0 12px !important;
    margin: 40px auto !important;
  }
  .cdea9p-game-card {
    border-radius: 12px !important;
    border-width: 4px !important;
    box-shadow: 8px 8px 0px #000 !important;
  }
  .cdea9p-game-card img {
    height: 180px !important;
    border-bottom-width: 4px !important;
  }
  .cdea9p-game-card-info { padding: 16px !important; }
  .cdea9p-game-card-info h3 { font-size: clamp(1.1rem, 3vw, 1.4rem) !important; }

  .cdea9p-btn { padding: 12px 24px !important; font-size: max(13px, 0.85rem) !important; }
  .cdea9p-content-section { padding: 40px 16px !important; font-size: max(15px, 1rem) !important; }

  .cdea9p-footer {
    padding: 40px 16px !important;
    font-size: max(13px, 0.85rem) !important;
  }
  .cdea9p-footer ul {
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }
  .cdea9p-footer-regulatory-badge { padding: 8px 16px !important; }
  .cdea9p-footer p { text-align: left !important; font-size: max(13px, 0.85rem) !important;}
  .cdea9p-footer-regulatory-info { text-align: left !important; }
  .cdea9p-copyright { font-size: max(12px, 0.75em) !important; }
}

/* === SMALL MOBILE (≤480px) === */
@media (max-width: 480px) {
  .cdea9p-hero h1, .cdea9p-hero-text h1 {
    font-size: clamp(1.4rem, 8vw, 2.2rem) !important;
  }
  .cdea9p-hero p, .cdea9p-hero-text p {
    font-size: max(14px, 0.95rem) !important;
  }

  .cdea9p-game-grid {
    grid-template-columns: 1fr !important; /* Single column */
  }
  .cdea9p-game-card img {
    height: 200px !important;
  }
  .cdea9p-btn {
    padding: 10px 20px !important;
    font-size: max(12px, 0.8rem) !important;
  }
  .cdea9p-trust-badge {
    font-size: max(11px, 0.75rem) !important;
    padding: 8px 12px !important;
  }
  .cdea9p-mobile-menu ul li a {
    font-size: max(1.3rem, 2rem) !important;
  }
}

/* === DESKTOP ONLY: Hide hamburger === */
@media (min-width: 769px) {
  .cdea9p-hamburger { display: none !important; }
  .cdea9p-desktop-nav { display: flex !important; }
}

/* Specific Styling for Each Layout/Theme Component */

/* Theme: Emerald Fortunes, Layout: MagazineEditorial */
/* The core colors are defined at the top. Specific overrides/enhancements */

/* Neo-Brutalist Architecture for Game Grid */
.cdea9p-game-grid {
  /* Styles already defined above */
}

/* Full-Bleed Overlay Hero */
.cdea9p-hero {
  /* Styles already defined above */
}

/* BRUTALIST-STRIPES: Alternating Backgrounds for Sections */
.cdea9p-content-section:nth-child(odd) {
  background-color: rgba(0, 26, 14, 0.1); /* Slightly darker/tinted */
}
.cdea9p-content-section:nth-child(even) {
  background-color: transparent; /* Or the primary dark BG */
}

/* Override for footer as it has its own distinct background */
.cdea9p-footer {
  background: rgba(10, 10, 10, 0.3);
}

/* Adjustments for specific elements to fit the visual style */
.cdea9p-logo svg rect { fill: #00c97a; } /* Ensure logo matches theme primary */
.cdea9p-logo svg circle { fill: #ffffff; } /* Ensure logo matches theme primary */

/* Disclosure Bar Badges */
#cdea9p-disclosure-bar span[style*="NO REAL VALUE"]::before,
#cdea9p-disclosure-bar span[style*="VIRTUAL COINS"]::before {
  content: "🪙 ";
  margin-right: 5px;
}
#cdea9p-disclosure-bar span[style*="NO DEPOSITS"]::before {
  content: "🚫 ";
  margin-right: 5px;
}
#cdea9p-disclosure-bar span[style*="ALWAYS FREE"]::before {
  content: "🆓 ";
  margin-right: 5px;
}
#cdea9p-disclosure-bar span[style*="SIMULATED SOCIAL GAMES"]::before {
  content: "🎰 ";
  margin-right: 5px;
}
#cdea9p-disclosure-bar span[style*="19+ ONLY"]::before {
  content: "🔞 ";
  margin-right: 5px;
}