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

html, body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lora', serif;
  background-color: #2e1a2e; /* Kunzite Kiss BG */
  color: #ffcce5; /* Kunzite Kiss Accent */
}

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

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

.cnrxt8-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styling */
.cnrxt8-header-c-l-r {
  background: rgba(46, 26, 46, 0.8); /* Semi-transparent Dark BG */
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.cnrxt8-header-c-l-r .cnrxt8-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cnrxt8-logo {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  font-weight: 700;
  color: #f0a3c2; /* Kunzite Kiss Primary */
}

.cnrxt8-logo span {
  font-family: 'Lora', serif;
}

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

.cnrxt8-desktop-nav ul li a {
  color: #ffcce5; /* Kunzite Kiss Accent */
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease, font-weight 0.3s ease;
  padding: 8px 12px;
  border-radius: 5px;
}

.cnrxt8-desktop-nav ul li a:hover {
  color: #ffffff;
  font-weight: 700;
  background-color: rgba(255, 204, 229, 0.2); /* Subtle Hover */
}

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

.cnrxt8-age-flag {
  display: flex;
  align-items: center;
  background-color: rgba(255, 204, 229, 0.15);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.9em;
  color: #ffcce5;
}

.cnrxt8-age-flag img {
  width: 20px;
  margin-right: 5px;
  vertical-align: middle;
  border-radius: 3px;
}

.cnrxt8-hamburger {
  display: none; /* Hidden by default, shown on smaller screens */
  background: none;
  border: none;
  font-size: 2em;
  color: #ffcce5;
  cursor: pointer;
}

/* Mobile Menu Styling */
.cnrxt8-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 26, 46, 0.95); /* Darker overlay */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1100;
  display: none; /* Controlled by JS */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.cnrxt8-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.cnrxt8-mobile-menu ul li {
  margin-bottom: 25px;
}

.cnrxt8-mobile-menu ul li a {
  color: #ffcce5; /* Kunzite Kiss Accent */
  text-decoration: none;
  font-size: 1.8em;
  font-weight: 700;
  transition: color 0.3s ease;
}

.cnrxt8-mobile-menu ul li a:hover {
  color: #ffffff;
}

.cnrxt8-close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2em;
  color: #ffcce5;
  cursor: pointer;
}

/* Footer Styling */
.cnrxt8-footer {
  padding: 50px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  margin-top: auto; /* Pushes footer to the bottom */
}

.cnrxt8-footer .cnrxt8-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cnrxt8-footer h3 {
  margin-bottom: 20px;
  opacity: 0.8;
  font-size: 1.8em;
  font-weight: 700;
  color: #f0a3c2; /* Kunzite Kiss Primary */
}

.cnrxt8-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;
}

.cnrxt8-footer ul li a {
  color: #ffcce5; /* Kunzite Kiss Accent */
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.cnrxt8-footer ul li a:hover {
  color: #ffffff;
  font-weight: 700;
}

.cnrxt8-footer-contact p {
  margin-bottom: 10px;
  font-size: 0.95em;
  opacity: 0.9;
}

.cnrxt8-footer-contact p strong {
  color: #f0a3c2; /* Kunzite Kiss Primary */
}

.cnrxt8-footer-contact a {
  color: #ffcce5;
  text-decoration: underline;
}

.cnrxt8-footer-contact a:hover {
  color: #ffffff;
}

.cnrxt8-footer h4 {
  margin: 0 0 8px 0;
  color: #ffcc00;
  font-size: 1.2em;
}

.cnrxt8-footer p {
  margin: 0;
  opacity: 0.9;
  font-size: 1em;
}

.cnrxt8-footer p.cnrxt8-copyright {
  margin-top: 15px;
  font-size: 0.85em;
  opacity: 0.8;
  text-align: center;
}

.cnrxt8-footer p.cnrxt8-copyright a {
  color: #ffcce5;
  text-decoration: underline;
}

.cnrxt8-footer p.cnrxt8-copyright a:hover {
  color: #ffffff;
}

/* Content Section Styling */
.cnrxt8-content-section {
  padding: 80px 20px;
  line-height: 1.8;
  font-size: 1.1rem;
  text-align: justify;
  background-color: rgba(255, 204, 229, 0.03); /* Subtle background */
  border-bottom: 1px solid rgba(255, 204, 229, 0.05);
}

.cnrxt8-content-section h1,
.cnrxt8-content-section h2,
.cnrxt8-content-section h3 {
  margin-bottom: 20px;
  color: #f0a3c2; /* Kunzite Kiss Primary */
  font-weight: 700;
}

.cnrxt8-content-section h1 { font-size: 2.5em; }
.cnrxt8-content-section h2 { font-size: 2em; }
.cnrxt8-content-section h3 { font-size: 1.6em; }

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

.cnrxt8-content-section a {
  color: #f0a3c2;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cnrxt8-content-section a:hover {
  color: #ffffff;
}

/* Hero Layout */
.cnrxt8-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 140px 20px 100px 20px;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(255, 204, 229, 0.03); /* Subtle background */
  border-bottom: 1px solid rgba(255, 204, 229, 0.05);
}

.cnrxt8-hero-text {
  width: 100%;
}

.cnrxt8-hero-text h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #f0a3c2; /* Kunzite Kiss Primary */
  font-weight: 700;
  line-height: 1.2;
}

.cnrxt8-hero-text p {
  font-size: 1.3em;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 700px; /* Constrain width for readability */
  margin-left: auto;
  margin-right: auto;
}

.cnrxt8-hero-image-container {
  width: 100%;
  max-width: 1000px;
}

.cnrxt8-hero-image-container img {
  width: 100%;
  max-height: 500px; /* Fixed max height */
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Game Grid Layout */
.cnrxt8-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.cnrxt8-game-card {
  background-color: #f0a3c2; /* Kunzite Kiss Primary */
  color: #2e1a2e; /* Dark BG for contrast */
  border: 4px solid #2e1a2e; /* Dark border */
  box-shadow: 6px 6px 0px #000; /* Hard shadow for Neo-brutalism */
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cnrxt8-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 0px #000; /* Enhanced shadow on hover */
}

.cnrxt8-game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 4px solid #2e1a2e; /* Match card border */
}

.cnrxt8-game-card-content {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cnrxt8-game-card-content h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #2e1a2e; /* Dark text */
  font-weight: 700;
}

.cnrxt8-game-card-content p {
  font-size: 1em;
  opacity: 0.9;
  margin-bottom: 20px;
}

.cnrxt8-btn {
  display: inline-block;
  background-color: #2e1a2e; /* Dark button background */
  color: #ffcce5; /* Accent text */
  padding: 12px 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  border-radius: 8px;
  border: 2px solid #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.cnrxt8-btn:hover {
  background-color: #ffffff;
  color: #2e1a2e; /* Dark text on white */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Trust Signals */
.cnrxt8-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .cnrxt8-header-c-l-r .cnrxt8-container {
    padding: 0 15px;
  }
  .cnrxt8-desktop-nav ul {
    gap: 15px;
  }
  .cnrxt8-hero-text h1 {
    font-size: 3em;
  }
  .cnrxt8-hero-text p {
    font-size: 1.15em;
  }
}

@media (max-width: 768px) {
  .cnrxt8-desktop-nav {
    display: none; /* Hide desktop nav on mobile */
  }
  .cnrxt8-hamburger {
    display: block; /* Show hamburger */
  }
  .cnrxt8-hero-text h1 {
    font-size: 2.8em;
  }
  .cnrxt8-hero-text p {
    font-size: 1.1em;
  }
  .cnrxt8-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .cnrxt8-footer ul {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .cnrxt8-hero {
    padding: 100px 20px 80px 20px;
    gap: 30px;
  }
  .cnrxt8-hero-text h1 {
    font-size: 2.2em;
  }
  .cnrxt8-hero-text p {
    font-size: 1em;
  }
  .cnrxt8-game-grid {
    grid-template-columns: 1fr; /* Single column on smallest screens */
    gap: 20px;
  }
  .cnrxt8-btn {
    font-size: 1em;
    padding: 10px 20px;
  }
  .cnrxt8-footer {
    padding: 40px 15px;
  }
  .cnrxt8-footer h3 {
    font-size: 1.5em;
  }
}