/* === Global Styles === */
* {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px; /* Base font size */
  line-height: 1.7;
  scroll-behavior: smooth;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Palatino Linotype', Palatino, Georgia, serif;
  background-color: #1a0208; /* Theme BG */
  color: #ffe0e8; /* Theme Text */
}

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

main {
  flex: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  animation: fadeInUp 0.65s ease-out both;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Palatino Linotype', Palatino, Georgia, serif;
  color: #ff3b5c; /* Theme Primary */
  line-height: 1.2;
  margin-bottom: 0.8em;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.6rem); }

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

a {
  color: #ff8f40; /* Theme Secondary */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* === Buttons === */
.c2ajv7-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background-image: linear-gradient(to right, #ff8f40 0%, #ffd700 100%); /* Theme Secondary to Accent */
  color: #0a0208; /* Dark text for contrast */
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
  animation: btnGlow 2.5s ease-in-out infinite;
}

.c2ajv7-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 22px rgba(255,255,255,0.5);
  color: #0a0208;
}

/* === Header === */
.c2ajv7-header {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.c2ajv7-header .c2ajv7-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c2ajv7-logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

.c2ajv7-logo svg {
  margin-right: 12px;
}

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

.c2ajv7-desktop-nav ul li a {
  color: #ffe0e8; /* Theme Text */
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 15px;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.c2ajv7-desktop-nav ul li a::after {
  content: '';
  display: block;
  height: 2px;
  background: #ffd700; /* Theme Accent */
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}

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

.c2ajv7-header-right {
  display: flex;
  align-items: center;
}

.c2ajv7-age-flag {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  margin-right: 20px;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
}

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

.c2ajv7-hamburger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* === Mobile Menu === */
.c2ajv7-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;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.c2ajv7-mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

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

.c2ajv7-mobile-menu ul li a {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 10px 20px;
  display: block;
}

.c2ajv7-mobile-menu ul li a:hover {
  color: #ffd700; /* Theme Accent */
}

.c2ajv7-close-menu {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
}

.c2ajv7-close-menu:hover {
  color: #ff3b5c; /* Theme Primary */
}

/* === Disclosure Bar === */
#c2ajv7-disclosure-bar {
  background: #08071e;
  color: #9fa8da;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.81em;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #283593;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#c2ajv7-disclosure-bar span {
  white-space: nowrap;
}

/* === Hero Section === */
.c2ajv7-hero {
  position: relative;
  min-height: 85vh;
  padding: 160px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background-image: url('https://picsum.photos/seed/ruby-fortune-vibe/1920/1080'); /* Placeholder */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.c2ajv7-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

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

.c2ajv7-hero h1 {
  color: #fff;
  animation: slideInHero 0.7s 0.1s ease-out both;
  margin-bottom: 24px;
}

.c2ajv7-hero p {
  font-size: max(16px, 1.05rem);
  color: #e0e0e0;
  animation: slideInHero 0.7s 0.25s ease-out both;
  margin-bottom: 32px;
}

.c2ajv7-hero .c2ajv7-btn {
  animation: slideInHero 0.7s 0.4s ease-out both;
}

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

.c2ajv7-game-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(135deg, #ff3b5c10 0%, #ff8f4020 100%); /* Subtle gradient */
  border: 4px solid rgba(255, 215, 0, 0.3); /* Subtle accent border */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.c2ajv7-game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.c2ajv7-game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 4px solid rgba(255, 215, 0, 0.4);
}

.c2ajv7-game-card .c2ajv7-game-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.c2ajv7-game-card h3 {
  font-size: 1.5rem;
  color: #ffd700; /* Theme Accent */
  margin-bottom: 10px;
}

.c2ajv7-game-card p {
  font-size: 0.9rem;
  color: #e0e0e0;
  opacity: 0.9;
  margin-bottom: 15px;
}

.c2ajv7-game-card .c2ajv7-btn {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 0.85rem;
  background-image: linear-gradient(to right, #ff3b5c 0%, #ff8f40 100%); /* Primary to Secondary */
}

/* === Content Section === */
.c2ajv7-content-section {
  padding: 80px 20px;
  line-height: 1.8;
  font-size: 1.05rem;
  background: linear-gradient(135deg, #1a0208 0%, #28071d 40%, #3a0a30 100%); /* Darker gradient */
}

.c2ajv7-content-section h2, .c2ajv7-content-section h3 {
  color: #ffd700; /* Theme Accent */
}

.c2ajv7-content-section p {
  margin-bottom: 1.5em;
}

/* === Footer === */
.c2ajv7-footer {
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.2);
  color: #ccc;
  font-size: 1.1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.c2ajv7-footer ul li a {
  color: #e0e0e0;
  font-weight: 500;
  transition: color 0.3s ease;
}

.c2ajv7-footer ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

.c2ajv7-footer-contact {
  margin-top: 10px;
  font-size: 1.1em;
  opacity: 0.9;
  text-align: left;
}

.c2ajv7-footer-contact p {
  margin-bottom: 0.5em;
}

.c2ajv7-footer-contact strong {
  color: #fff;
}

.c2ajv7-footer > div > div:nth-of-type(1) {
  display: inline-block;
  background: transparent;
  padding: 10px 25px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #ffeb3b;
}

.c2ajv7-footer > div > div:nth-of-type(1) span:first-child {
  color: #ffeb3b;
  font-weight: bold;
  display: block;
}

.c2ajv7-footer > div > div:nth-of-type(1) span:last-child {
  font-size: 1.1em;
  opacity: 0.8;
}

.c2ajv7-footer p {
  margin-bottom: 10px;
  font-size: 1.1em;
  text-align: justify;
  opacity: 0.85;
  line-height: 1.6;
}

.c2ajv7-footer p strong {
  color: #fff;
  font-weight: 600;
}

.c2ajv7-footer a[rel="nofollow"] {
  color: #ff8f40; /* Theme Secondary */
  text-decoration: underline;
}

.c2ajv7-footer a[rel="nofollow"]:hover {
  color: #ffd700; /* Theme Accent */
}

.c2ajv7-footer > div > div:nth-of-type(3) {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 0.78em;
  opacity: 0.75;
  line-height: 1.55;
  text-align: left;
}

.c2ajv7-footer > div > div:nth-of-type(3) strong {
  display: block;
  margin-bottom: 4px;
  opacity: 0.9;
  color: #fff;
}

.c2ajv7-copyright {
  margin-top: 15px;
  text-align: center;
  font-size: 0.85em;
  opacity: 0.7;
}

.c2ajv7-copyright a {
  color: #e0e0e0;
  text-decoration: underline;
}

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@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(255,255,255,0.2); }
  50% { box-shadow: 0 0 22px rgba(255,255,255,0.5); }
}

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

/* === Responsive Design === */

/* === TABLET (≤1024px) === */
@media (max-width: 1024px) {
  .c2ajv7-header .c2ajv7-container { padding: 0 20px; }
  .c2ajv7-hero {
    padding: 120px 5% 60px !important;
    text-align: center !important;
    background-attachment: scroll !important;
  }
  .c2ajv7-hero .c2ajv7-container { max-width: 100%; }
  .c2ajv7-hero h1 { font-size: clamp(1.8rem, 5vw, 3rem) !important; }
  .c2ajv7-hero p { font-size: max(15px, 1rem) !important; }

  .c2ajv7-game-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; gap: 30px; }
  .c2ajv7-game-card img { height: 180px !important; }
  .c2ajv7-content-section { padding: 60px 5% !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; }

  .c2ajv7-header { padding: 15px 16px !important; }
  .c2ajv7-logo { font-size: 1.5rem; }
  .c2ajv7-desktop-nav { display: none !important; }
  .c2ajv7-hamburger { display: flex !important; }
  .c2ajv7-age-flag { margin-right: 10px; padding: 4px 8px; font-size: 0.75rem; }

  .c2ajv7-hero {
    min-height: unset !important;
    padding: 60px 16px 40px !important;
    text-align: center !important;
    background-attachment: scroll !important;
  }
  .c2ajv7-hero h1, .c2ajv7-hero-text h1 { font-size: clamp(1.6rem, 7vw, 2.4rem) !important; margin-bottom: 16px !important; }
  .c2ajv7-hero p, .c2ajv7-hero-text p { font-size: max(15px, 1rem) !important; margin-bottom: 24px !important; }

  .c2ajv7-game-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; gap: 12px !important; padding: 0 12px !important; margin-top: 40px; }
  .c2ajv7-game-card { border-radius: 12px !important; }
  .c2ajv7-game-card img { height: 140px !important; }
  .c2ajv7-game-card .c2ajv7-game-info { padding: 15px; }
  .c2ajv7-game-card h3 { font-size: 1.3rem; }
  .c2ajv7-game-card p { font-size: 0.85rem; }
  .c2ajv7-game-card .c2ajv7-btn { padding: 8px 16px; font-size: 0.8rem; }

  .c2ajv7-content-section { padding: 40px 16px !important; font-size: max(15px, 1rem) !important; }
  .c2ajv7-footer { padding: 30px 16px !important; font-size: max(14px, 0.875rem) !important; }
  .c2ajv7-footer ul { flex-direction: column !important; gap: 10px !important; }
  .c2ajv7-footer p { text-align: center !important; }
  .c2ajv7-footer > div > div:nth-of-type(3) { text-align: center !important; }
}

/* === SMALL MOBILE (≤480px) === */
@media (max-width: 480px) {
  .c2ajv7-header { padding: 12px 12px !important; }
  .c2ajv7-logo { font-size: 1.4rem; }
  .c2ajv7-hamburger { padding: 5px 8px; font-size: 1.3rem; }
  .c2ajv7-age-flag { display: none; } /* Hide flag on very small screens */

  .c2ajv7-hero h1, .c2ajv7-hero-text h1 { font-size: clamp(1.4rem, 8vw, 2rem) !important; }
  .c2ajv7-hero p { font-size: 0.95rem !important; }
  .c2ajv7-hero .c2ajv7-btn { padding: 10px 20px; font-size: 0.8rem;}

  .c2ajv7-game-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .c2ajv7-game-card img { height: 180px !important; }
  .c2ajv7-game-card h3 { font-size: 1.2rem; }
  .c2ajv7-game-card p { font-size: 0.8rem; }

  .c2ajv7-content-section { padding: 30px 12px !important; font-size: 1rem !important; }
  .c2ajv7-footer { padding: 25px 12px !important; font-size: 0.85rem !important; }
  .c2ajv7-footer ul { gap: 8px; }
  .c2ajv7-footer > div > div:nth-of-type(1) { padding: 8px 18px; margin-bottom: 15px; }
  .c2ajv7-footer > div > div:nth-of-type(1) span:first-child { font-size: 0.9rem; }
  .c2ajv7-footer > div > div:nth-of-type(1) span:last-child { font-size: 0.8rem; }
  .c2ajv7-footer p { font-size: 0.85rem; }
  .c2ajv7-footer > div > div:nth-of-type(3) { font-size: 0.75rem; }
  .c2ajv7-copyright { font-size: 0.75em; }
}

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

/* === GENERAL IMAGE FIXES === */
img, canvas, iframe, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-sizing: border-box;
}