/* CSS Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100vw;
}

/* Global Styles & Theme */
:root {
  --cj0ji2-color-bg: #100c0c;
  --cj0ji2-color-primary: #ff1744; /* Vivid Red */
  --cj0ji2-color-secondary: #ffd700; /* Gold */
  --cj0ji2-color-accent: #ff6b35; /* Vibrant Orange */
  --cj0ji2-color-text: #fff0f0; /* Soft White */
  --cj0ji2-color-text-muted: rgba(255, 240, 240, 0.7);
  --cj0ji2-color-card-bg: rgba(255, 255, 255, 0.05);
  --cj0ji2-color-card-border: rgba(255, 255, 255, 0.1);
  --cj0ji2-color-button-gradient-start: var(--cj0ji2-color-accent);
  --cj0ji2-color-button-gradient-end: var(--cj0ji2-color-primary);
  --cj0ji2-color-glass-backdrop: rgba(0, 0, 0, 0.5);
}

html {
  font-family: Segoe UI, Tahoma, Geneva, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  color: var(--cj0ji2-color-text);
  background-color: var(--cj0ji2-color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cj0ji2-color-text);
  background-color: var(--cj0ji2-color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

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

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

p, li, td, span {
  font-size: max(15px, 1rem);
  line-height: 1.7;
}

small, .small, figcaption, sub, sup, .legal, .disclaimer-text {
  font-size: max(13px, 0.82rem);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--cj0ji2-color-text);
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.3rem, 2.5vw, 2rem); }

/* 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); }
}
.cj0ji2-hero h1, .cj0ji2-hero-text h1 {
  animation: slideInHero 0.7s 0.1s ease-out both;
}
.cj0ji2-hero p, .cj0ji2-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); }
}
.cj0ji2-game-card {
  animation: cardEnter 0.5s ease-out both;
}
.cj0ji2-game-card:nth-child(1) { animation-delay: 0.05s; }
.cj0ji2-game-card:nth-child(2) { animation-delay: 0.15s; }
.cj0ji2-game-card:nth-child(3) { animation-delay: 0.25s; }
.cj0ji2-game-card:nth-child(4) { animation-delay: 0.35s; }
.cj0ji2-game-card:nth-child(5) { animation-delay: 0.45s; } /* And so on for subsequent cards */

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

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

/* Header & Navigation */
.cj0ji2-header {
  padding: 20px 0;
  background: var(--cj0ji2-color-glass-backdrop);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}
.cj0ji2-header .cj0ji2-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.cj0ji2-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cj0ji2-color-text);
  gap: 10px;
}
.cj0ji2-logo svg {
  vertical-align: middle;
}
.cj0ji2-logo span {
  vertical-align: middle;
}

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

.cj0ji2-desktop-nav a {
  color: var(--cj0ji2-color-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 5px 0;
  position: relative;
}
.cj0ji2-desktop-nav a::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--cj0ji2-color-secondary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}
.cj0ji2-desktop-nav a:hover::after {
  transform: scaleX(1);
}

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

.cj0ji2-age-flag {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cj0ji2-color-text);
}
.cj0ji2-age-flag img {
  width: 20px;
  margin-right: 5px;
  border-radius: 3px;
}

.cj0ji2-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--cj0ji2-color-text);
  transition: background-color 0.3s ease;
}
.cj0ji2-hamburger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cj0ji2-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.cj0ji2-mobile-menu.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.cj0ji2-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.cj0ji2-mobile-menu li {
  margin-bottom: 25px;
}
.cj0ji2-mobile-menu a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cj0ji2-color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cj0ji2-mobile-menu a:hover {
  color: var(--cj0ji2-color-secondary);
}

.cj0ji2-close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 10px;
  transition: color 0.3s ease;
}
.cj0ji2-close-menu:hover {
  color: var(--cj0ji2-color-accent);
}

/* Disclosure Bar */
#cj0ji2-disclosure-bar {
  background: #1a0505;
  color: #ffccbc;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-bottom: 2px solid #b71c1c;
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 60px; /* Below the header */
  z-index: 999;
}

/* Container */
.cj0ji2-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.cj0ji2-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 160px 5% 100px 5%;
  gap: 60px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0d0221 0%, #1a0540 40%, #2d0b6b 100%); /* Vivid gradient section */
  min-height: 70vh; /* Ensure it takes up significant space */
  justify-content: center;
  position: relative;
  overflow: hidden; /* For potential background elements */
}
.cj0ji2-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, rgba(255, 23, 68, 0.05) 0%, rgba(255, 23, 68, 0) 60%);
    z-index: 1;
}
.cj0ji2-hero-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.cj0ji2-hero-text h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 4.8rem); /* Larger, more impactful headline */
  line-height: 1.1;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}
.cj0ji2-hero-text p {
  font-size: max(1.1rem, 1.1vw); /* Slightly larger paragraph */
  opacity: 0.95;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cj0ji2-hero-image {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  height: auto; /* Let aspect ratio dictate height */
  aspect-ratio: 16/9; /* Maintain aspect ratio */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border-radius: 24px;
  overflow: hidden;
  margin-top: 40px; /* Space between text and image */
}
.cj0ji2-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area without distortion */
  display: block;
}

/* Buttons */
.cj0ji2-btn {
  display: inline-block;
  padding: 15px 35px; /* Larger padding */
  border-radius: 50px; /* Fully rounded */
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 1rem; /* Slightly larger font */
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background: linear-gradient(to right, var(--cj0ji2-color-button-gradient-start), var(--cj0ji2-color-button-gradient-end));
  color: var(--cj0ji2-color-text);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); /* Default subtle glow */
}
.cj0ji2-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4), 0 0 25px rgba(255, 255, 255, 0.4); /* Enhanced glow and shadow */
  filter: brightness(1.1);
}

/* Game Grid */
.cj0ji2-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 350px; /* Consistent height for rows */
  gap: 30px;
  margin: 60px auto;
  max-width: 1400px;
  padding: 0 20px;
}

/* Specific for Bento-Box layout */
@media (min-width: 768px) {
  .cj0ji2-game-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  .cj0ji2-game-card:first-child .cj0ji2-game-card-image-container {
      height: 100%; /* Allow first card image to stretch if needed for its row span */
  }
}

/* Game Card */
.cj0ji2-game-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--cj0ji2-color-card-bg);
  border: 1px solid var(--cj0ji2-color-card-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Push content to bottom */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* Initial softer shadow */
}
.cj0ji2-game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); /* Deeper shadow on hover */
}

.cj0ji2-game-card-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Cover entire card area */
  overflow: hidden;
  z-index: 1;
  border-radius: 24px; /* Match card radius */
}
.cj0ji2-game-card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-out;
}
.cj0ji2-game-card:hover .cj0ji2-game-card-image-container img {
  transform: scale(1.08); /* Slight zoom on hover */
}

.cj0ji2-game-card-info {
  position: relative;
  z-index: 2;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Darker overlay */
  backdrop-filter: blur(15px);
  border-top-left-radius: 24px; /* Match card radius */
  border-top-right-radius: 24px; /* Match card radius */
  text-align: center;
  width: 100%;
  /* For first card spanning multiple rows, ensure it has enough space */
  padding-bottom: 30px;
}
.cj0ji2-game-card:first-child .cj0ji2-game-card-info {
    padding-bottom: 50px; /* More space for larger card */
}

.cj0ji2-game-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--cj0ji2-color-secondary);
}

.cj0ji2-game-card-description {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
}

.cj0ji2-badge-wrapper {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.cj0ji2-badge {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: var(--cj0ji2-color-text);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cj0ji2-badge.badge-free { color: var(--cj0ji2-color-secondary); border-color: var(--cj0ji2-color-secondary); }
.cj0ji2-badge.badge-instant { color: var(--cj0ji2-color-accent); border-color: var(--cj0ji2-color-accent); }

/* Content Section */
.cj0ji2-content-section {
  padding: 80px 20px;
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: justify; /* Justify text for readability in larger blocks */
}
.cj0ji2-content-section p {
  margin-bottom: 1.5em; /* More space between paragraphs */
}
.cj0ji2-content-section h2, .cj0ji2-content-section h3 {
    text-align: center; /* Center subheadings within content */
    margin-top: 2em;
    margin-bottom: 1.5em;
}

/* Footer */
.cj0ji2-footer {
  padding: 50px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: auto; /* Pushes footer to the bottom */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.cj0ji2-footer h3 {
  margin-bottom: 20px;
  opacity: 0.8;
  font-size: 1.8rem;
}
.cj0ji2-footer ul {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid rgba(150, 150, 150, 0.2);
  padding-bottom: 20px;
  width: 100%;
}
.cj0ji2-footer ul li a {
  color: var(--cj0ji2-color-text);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
}
.cj0ji2-footer ul li a:hover {
  opacity: 1;
}

.cj0ji2-footer-contact span {
  font-size: 0.9rem;
  opacity: 0.85;
}

.cj0ji2-footer div[style*="border-top"] {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  margin-top: 15px;
  width: 100%;
}
.cj0ji2-footer div:nth-of-type(2) div[style*="border-top"] { /* The innermost div with the bold text */
  border-top: none; /* Remove duplicate border */
  padding-top: 0;
  margin-top: 0;
}

.cj0ji2-footer div:nth-of-type(3) { /* The div containing the NO REAL MONEY badge */
  display: inline-block;
  background: transparent;
  padding: 10px 25px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #ffeb3b;
}
.cj0ji2-footer div:nth-of-type(3) span:first-child {
  color: #ffeb3b;
  font-weight: bold;
  display: block;
}
.cj0ji2-footer div:nth-of-type(3) span:last-child {
  font-size: 0.9em;
  opacity: 0.8;
}

.cj0ji2-footer p {
  margin-bottom: 10px;
  font-size: 0.9em;
  text-align: justify;
  opacity: 0.9;
}
.cj0ji2-footer p:last-of-type {
  font-size: 0.85em;
  opacity: 0.75;
  text-align: justify;
  line-height: 1.55;
}
.cj0ji2-footer p strong {
  color: var(--cj0ji2-color-text);
}
.cj0ji2-footer a {
  color: inherit; /* Inherit color from parent p tag */
  text-decoration: underline;
}
.cj0ji2-footer a:hover {
  color: var(--cj0ji2-color-secondary);
}

.cj0ji2-copyright {
  margin-top: 15px;
  text-align: center;
  font-size: 0.78em;
  opacity: 0.75;
}

/* Responsive Design */

/* === TABLET (≤1024px) === */
@media (max-width: 1024px) {
  .cj0ji2-header .cj0ji2-container { padding: 0 16px; }
  .cj0ji2-hero {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    padding: 100px 5% 60px !important;
    gap: 40px !important;
  }
  .cj0ji2-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem) !important; }
  .cj0ji2-hero-text p { font-size: max(1rem, 1rem) !important; }
  .cj0ji2-hero-image { display: block !important; max-width: 600px; margin-top: 20px; }
  .cj0ji2-game-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; gap: 24px !important; }
  .cj0ji2-game-card { border-radius: 18px !important; }
  .cj0ji2-game-card-info { padding: 15px !important; }
}

/* === MOBILE (≤768px) === */
@media (max-width: 768px) {
  html, body { font-size: 16px; overflow-x: hidden; }
  p, li, td, span { font-size: max(15px, 1rem) !important; }
  small, .small, figcaption, sub, sup, .legal, .disclaimer-text { font-size: max(13px, 0.82rem) !important; }

  .cj0ji2-header { padding: 15px 0; }
  .cj0ji2-header .cj0ji2-container { padding: 0 16px; }
  .cj0ji2-logo { font-size: 1.3rem; }
  .cj0ji2-desktop-nav { display: none !important; }
  .cj0ji2-hamburger { display: flex !important; align-items: center; justify-content: center; background: transparent; border: 2px solid currentColor; border-radius: 8px; padding: 6px 10px; font-size: 1.4rem; cursor: pointer; color: var(--cj0ji2-color-text); }

  .cj0ji2-hero {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    padding: 80px 16px 50px !important;
    text-align: center !important;
    gap: 24px !important;
    min-height: unset !important;
    background-attachment: scroll !important;
  }
  .cj0ji2-hero h1, .cj0ji2-hero-text h1 {
    font-size: clamp(1.8rem, 7vw, 3rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
  }
  .cj0ji2-hero-text p { font-size: max(15px, 1rem) !important; }
  .cj0ji2-hero-image { display: block !important; max-width: 100%; margin-top: 20px; border-radius: 16px; }

  .cj0ji2-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 16px !important;
    padding: 0 16px !important;
    margin: 40px auto !important;
  }
  .cj0ji2-game-card { border-radius: 16px !important; }
  .cj0ji2-game-card-image-container { height: 180px !important; }
  .cj0ji2-game-card-info { padding: 12px !important; }

  .cj0ji2-btn { padding: 12px 24px !important; font-size: max(14px, 0.875rem) !important; }

  .cj0ji2-content-section { padding: 50px 16px !important; font-size: max(15px, 1rem) !important; text-align: left; }
  .cj0ji2-content-section p { margin-bottom: 1.3em; }
  .cj0ji2-content-section h2, .cj0ji2-content-section h3 { text-align: left; }

  .cj0ji2-footer { padding: 40px 16px !important; }
  .cj0ji2-footer h3 { font-size: 1.5rem; }
  .cj0ji2-footer ul { flex-direction: column !important; gap: 10px !important; margin-bottom: 20px; }
  .cj0ji2-footer p { font-size: 0.9em; }
  .cj0ji2-footer p:last-of-type { font-size: 0.85em; }
  .cj0ji2-copyright { font-size: 0.75em; }
}

/* === SMALL MOBILE (≤480px) === */
@media (max-width: 480px) {
  .cj0ji2-hero h1, .cj0ji2-hero-text h1 {
    font-size: clamp(1.6rem, 8vw, 2.4rem) !important;
  }
  .cj0ji2-hero-text p { font-size: 1rem !important; }
  .cj0ji2-hero-image { height: 160px !important; }

  .cj0ji2-game-grid { grid-template-columns: 1fr !important; }
  .cj0ji2-game-card-image-container { height: 180px !important; }
  .cj0ji2-game-card-info { padding: 10px !important; }
  .cj0ji2-game-card-title { font-size: 1.1rem !important; }
  .cj0ji2-game-card-description { font-size: 0.85rem !important; }

  .cj0ji2-btn { padding: 10px 20px !important; font-size: 0.9rem !important; }
  .cj0ji2-badge { padding: 5px 10px; font-size: 0.7rem; }
}

/* === DESKTOP ONLY: Hide hamburger === */
@media (min-width: 769px) {
  .cj0ji2-hamburger { display: none !important; }
  .cj0ji2-desktop-nav { display: flex !important; }
  #cj0ji2-disclosure-bar { top: 60px; } /* Ensure disclosure bar is below header */
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
  .cj0ji2-hamburger { display: flex !important; }
  .cj0ji2-desktop-nav { display: none !important; }
  #cj0ji2-disclosure-bar { top: 55px; } /* Adjust for slightly smaller header on mobile */
}