:root {
  --bg-color: #030b12;
  --primary-color: #00f5d4;
  --secondary-color: #7c3aed;
  --accent-color: #f0f000;
  --text-color: #ddfcf5;
  --card-bg: rgba(255, 255, 255, 0.03);
  --header-bg: rgba(0, 0, 0, 0.5);
  --footer-bg: rgba(10,10,10,0.2);
}

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: Calibri, Candara, Segoe, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
}

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

*, *::before, *::after {
  box-sizing: inherit;
  max-width: 100vw;
}

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

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

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

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

/* Header Styles */
.cvf9op-header {
  padding: 20px 0;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

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

.cvf9op-logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cvf9op-logo span {
  text-shadow: 0 0 10px rgba(0, 245, 212, 0.6);
}

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

.cvf9op-desktop-nav li {
  margin: 0;
}

.cvf9op-desktop-nav a {
  color: var(--text-color);
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cvf9op-desktop-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

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

.cvf9op-age-flag {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-right: 20px;
}

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

.cvf9op-hamburger:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

/* Mobile Menu Overlay */
.cvf9op-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

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

.cvf9op-mobile-menu li {
  margin-bottom: 20px;
}

.cvf9op-mobile-menu a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.cvf9op-mobile-menu a:hover {
  color: var(--primary-color);
}

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

.cvf9op-close-menu:hover {
  color: var(--primary-color);
}

/* Disclosure Bar */
#cvf9op-disclosure-bar {
  background: #1a0505;
  color: #ffccbc;
  text-align: center;
  padding: 7px 16px;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-bottom: 2px solid #b71c1c;
  width: 100%;
  box-sizing: border-box;
}

/* Footer Styles */
.cvf9op-footer {
  padding: 60px 20px;
  background: var(--footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
}

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

.cvf9op-footer-logo {
  margin-bottom: 15px;
  transform: scale(0.8);
}

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

.cvf9op-footer li {
  margin: 0;
}

.cvf9op-footer a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color 0.3s ease;
}

.cvf9op-footer a:hover {
  color: var(--primary-color);
}

.cvf9op-footer-contact {
  margin-top: 20px;
  font-size: 0.85em;
  text-align: center;
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cvf9op-footer-contact span {
  color: var(--text-color);
}

.cvf9op-footer .cvf9op-container > div:nth-of-type(2) {
  width: 100%;
  opacity: 0.8;
  font-size: 0.95em;
}

.cvf9op-footer .cvf9op-container > div:nth-of-type(2) > div:first-of-type {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.cvf9op-footer h4 {
  margin: 0 0 5px 0;
  color: var(--accent-color);
  font-size: 1.1em;
  text-transform: uppercase;
}

.cvf9op-footer p {
  margin: 0;
}

.cvf9op-footer p:not(.cvf9op-copyright) {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.cvf9op-footer p:last-of-type {
  font-size: 0.85em;
  opacity: 0.8;
  text-align: justify;
}

.cvf9op-footer p strong {
  color: var(--text-color);
}

.cvf9op-footer a[href*="gambleaware.org"] {
  text-decoration: underline;
  color: inherit;
}

.cvf9op-footer > div > div:last-of-type {
  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;
}

.cvf9op-footer > div > div:last-of-type strong {
  display: block;
  margin-bottom: 4px;
  opacity: 0.9;
}

.cvf9op-copyright {
  margin-top: 15px;
  text-align: center;
  opacity: 0.8;
}

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

/* Hero Section - Asymmetric Split */
.cvf9op-hero {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  padding: 140px 5% 60px;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 100 100" preserveAspectRatio="none"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%2300f5d4" stop-opacity="0.1"/><stop offset="100%" stop-color="%237c3aed" stop-opacity="0.2"/></linearGradient></defs><rect width="100" height="100" fill="url(%23grad)"/></svg>');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}

.cvf9op-hero-text {
  padding-right: 40px;
  z-index: 10;
}

.cvf9op-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
}

.cvf9op-hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cvf9op-hero-image {
  position: relative;
  display: flex;
  justify-content: flex-end;
  z-index: 5;
}

.cvf9op-hero-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 40px 0 40px 0;
  box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.1);
}

.cvf9op-trust-badges {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cvf9op-trust-badge {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 245, 212, 0.4);
}

/* Button Style */
.cvf9op-btn {
  display: inline-block;
  padding: 14px 32px;
  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: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--bg-color);
  box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.3);
}

.cvf9op-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(var(--primary-color-rgb), 0.5);
  color: var(--text-color);
}

/* Content Section */
.cvf9op-content-section {
  padding: 80px 20px;
  line-height: 1.8;
  font-size: 1.1rem;
  max-width: 1000px; /* Limit width for better readability */
  margin: 0 auto;
  text-align: justify;
}

.cvf9op-content-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

.cvf9op-content-section p {
  margin-bottom: 20px;
}

.cvf9op-content-section p:last-of-type {
  margin-bottom: 0;
}

/* Games Grid - Elevated Floating Cards */
.cvf9op-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px 30px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.cvf9op-game-card {
  background: var(--card-bg);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push content down */
}

.cvf9op-game-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.15);
}

.cvf9op-game-card-image-wrapper {
  width: calc(100% - 40px);
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin: -30px 20px 20px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.cvf9op-game-card-image-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 16px; /* Match wrapper */
  object-fit: cover;
}

.cvf9op-game-card-content {
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 2;
  flex-grow: 1; /* Allow content to grow */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Push content to bottom */
}

.cvf9op-game-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px rgba(0, 245, 212, 0.4);
}

.cvf9op-game-card p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 15px;
}

.cvf9op-game-card .cvf9op-btn {
  padding: 10px 20px;
  font-size: 0.8rem;
  margin-top: 15px;
}

/* Section Backgrounds - Brutalist Stripes */
.cvf9op-section-dark {
  background-color: var(--bg-color);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cvf9op-section-primary {
  background: linear-gradient(150deg, rgba(0, 245, 212, 0.05) 0%, rgba(124, 58, 237, 0.1) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cvf9op-section-primary .cvf9op-container {
  z-index: 1;
}

/* Add subtle background patterns or gradients if needed */
.cvf9op-section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.05) 10%, transparent 60%);
}

.cvf9op-section-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 10%, transparent 60%);
}


/* === TABLET (≤1024px) === */
@media (max-width: 1024px) {
  .cvf9op-hero {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    padding: 80px 5% 60px !important;
    gap: 40px !important;
    background-position: center bottom;
  }
  .cvf9op-hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem) !important;
  }
  .cvf9op-hero-text {
    padding-right: 0;
    text-align: center;
  }
  .cvf9op-hero-image {
    justify-content: center;
    margin-top: 20px;
  }
  .cvf9op-hero-image img {
    height: 450px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  .cvf9op-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 40px 20px !important;
  }
}

/* === MOBILE (≤768px) === */
@media (max-width: 768px) {
  html, body {
    font-size: 15px;
    overflow-x: hidden;
  }
  .cvf9op-header {
    padding: 12px 16px !important;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .cvf9op-desktop-nav {
    display: none !important;
  }
  .cvf9op-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.3s ease;
  }
  .cvf9op-hamburger:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
  }
  .cvf9op-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;
    background-position: center;
  }
  .cvf9op-hero h1, .cvf9op-hero-text h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
  }
  .cvf9op-hero p, .cvf9op-hero-text p {
    font-size: 1rem !important;
  }
  .cvf9op-hero-image {
    display: none !important;
  }
  .cvf9op-hero img {
    display: none !important;
  }
  .cvf9op-game-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 12px !important;
    margin: 40px auto !important;
  }
  .cvf9op-game-card {
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05) !important;
  }
  .cvf9op-game-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  .cvf9op-game-card-image-wrapper {
    height: 140px !important;
    margin: -20px 10px 10px 10px !important;
    border-radius: 10px !important;
  }
  .cvf9op-game-card-content {
    padding: 15px !important;
  }
  .cvf9op-game-card h3 {
    font-size: 1.2rem !important;
  }
  .cvf9op-btn {
    padding: 12px 24px !important;
    font-size: 0.85rem !important;
  }
  .cvf9op-content-section {
    padding: 40px 16px !important;
    font-size: 1rem !important;
  }
  .cvf9op-content-section h2 {
    font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
    margin-bottom: 24px !important;
  }
  .cvf9op-footer {
    padding: 30px 16px !important;
    font-size: 0.85rem !important;
  }
  .cvf9op-footer ul {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .cvf9op-footer h4 {
    font-size: 1em !important;
  }
  .cvf9op-footer p:not(.cvf9op-copyright) {
    font-size: 1.1em !important;
  }
  canvas {
    max-width: 100% !important;
    height: auto !important;
  }
  img, video, iframe {
    max-width: 100% !important;
  }
}

/* === SMALL MOBILE (≤480px) === */
@media (max-width: 480px) {
  .cvf9op-hero h1, .cvf9op-hero-text h1 {
    font-size: clamp(1.4rem, 8vw, 2rem) !important;
  }
  .cvf9op-game-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin: 30px auto !important;
  }
  .cvf9op-game-card-image-wrapper {
    height: 180px !important;
  }
  .cvf9op-btn {
    width: 100%; /* Make buttons full width on small screens */
    text-align: center;
  }
}

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