/* === CSS Reset & Base Styles === */
* {
  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;
  font-family: Tahoma, Geneva, sans-serif;
  background-color: #1a1000; /* BG:#1a1000 */
  color: #fdf2cc; /* Text:#fdf2cc */
  scroll-behavior: smooth;
}

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

/* === Theme Variables (using CSS custom properties for flexibility) === */
:root {
  --color-bg: #1a1000; /* BG:#1a1000 */
  --color-primary: #d4a017; /* Pri:#d4a017 */
  --color-secondary: #c05000; /* Sec:#c05000 */
  --color-accent: #ffe066; /* Acc:#ffe066 */
  --color-text: #fdf2cc; /* Text:#fdf2cc */
  --color-overlay-dark: rgba(0, 0, 0, 0.85);
  --color-border-subtle: rgba(255, 255, 255, 0.1);
  --border-radius-card: 16px;
  --border-radius-button: 50px;
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-section-blur: 0 40px 80px rgba(0, 0, 0, 0.4);
  --shadow-hero-image: 0 30px 60px rgba(0, 0, 0, 0.2);
}

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

/* === Header === */
.c0gbzp-header {
  padding: 20px 0;
  background: var(--color-overlay-dark);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.c0gbzp-header .c0gbzp-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.c0gbzp-logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1px;
  text-decoration: none;
}

.c0gbzp-logo svg {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  margin-right: 10px;
}

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

.c0gbzp-desktop-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 12px;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden; /* For underline effect */
}

.c0gbzp-desktop-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.c0gbzp-desktop-nav a:hover {
  color: var(--color-primary);
  background: rgba(212, 160, 23, 0.1);
  transform: translateY(-2px);
}

.c0gbzp-desktop-nav a:hover::before {
  width: 100%;
}

.c0gbzp-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.c0gbzp-age-flag {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

.c0gbzp-age-flag img {
  width: 24px;
  margin-right: 5px;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

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

.c0gbzp-hamburger:hover {
  background: rgba(212, 160, 23, 0.2);
  transform: scale(1.05);
}

.c0gbzp-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: var(--color-overlay-dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(25px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

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

.c0gbzp-close-menu:hover {
  color: var(--color-primary);
  transform: rotate(90deg) scale(1.1);
}

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

.c0gbzp-mobile-menu li {
  margin-bottom: 10px;
}

.c0gbzp-mobile-menu a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 10px 20px;
  display: block;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.c0gbzp-mobile-menu a:hover {
  background: rgba(212, 160, 23, 0.2);
  color: var(--color-primary);
  transform: scale(1.05);
}

/* === Disclosure Bar === */
#c0gbzp-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;
  position: sticky;
  top: 60px; /* Adjust based on header height */
  z-index: 999;
}

/* === Footer === */
.c0gbzp-footer {
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.15);
  margin-top: auto; /* Pushes footer to bottom */
}

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

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

.c0gbzp-footer li a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 5px 10px;
  transition: all 0.3s ease;
  border-radius: 25px;
}

.c0gbzp-footer li a:hover {
  background: rgba(212, 160, 23, 0.15);
  color: var(--color-primary);
  transform: translateY(-2px);
}

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

.c0gbzp-footer-contact p {
  margin-bottom: 8px;
}

.c0gbzp-footer-contact a {
  color: var(--color-primary);
  text-decoration: underline;
}

.c0gbzp-footer-contact a:hover {
  color: var(--color-accent);
}

.c0gbzp-footer > div > div:nth-of-type(2) {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 15px;
  margin-top: 15px;
  width: 100%;
  text-align: left; /* Align internal text left for better readability */
}

.c0gbzp-footer-badge {
  display: inline-block;
  background: transparent;
  padding: 10px 25px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid var(--color-accent);
  margin-top: 10px; /* Add some space above this badge */
}

.c0gbzp-footer-badge span:first-child {
  color: var(--color-accent);
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

.c0gbzp-footer-badge span:last-child {
  font-size: 0.9em;
  opacity: 0.8;
}

.c0gbzp-footer p {
  margin-bottom: 10px;
  font-size: 0.9em;
  text-align: justify;
  line-height: 1.7;
}

.c0gbzp-footer p strong {
  font-weight: 700;
}

.c0gbzp-footer p a {
  color: var(--color-primary);
  text-decoration: underline;
}

.c0gbzp-footer p a:hover {
  color: var(--color-accent);
}

.c0gbzp-footer > div > div:nth-of-type(2) > div:last-child {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 0.78em;
  opacity: 0.75;
  line-height: 1.55;
  text-align: left;
}

.c0gbzp-footer > div > div:nth-of-type(2) > div:last-child strong {
  display: block;
  margin-bottom: 4px;
  opacity: 0.9;
}

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

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

.c0gbzp-copyright a:hover {
  color: var(--color-primary);
}

/* === Buttons === */
.c0gbzp-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--border-radius-button);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  color: #1a1000; /* Dark text for contrast on bright button */
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  box-shadow: 0 10px 25px rgba(212, 160, 23, 0.4);
}

.c0gbzp-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 35px rgba(212, 160, 23, 0.5);
  color: #1a1000; /* Maintain dark text on hover */
}

.c0gbzp-btn:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 5px 15px rgba(212, 160, 23, 0.3);
}

/* === Hero Section === */
.c0gbzp-hero {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for responsiveness */
  justify-content: center;
  align-items: center;
  padding: 120px 5%; /* Generous padding */
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  min-height: 70vh; /* Ensure hero takes up significant space */
  gap: 50px; /* Space between image and text */
  background-image: url('taugames-herobg.jpg'); /* Placeholder BG */
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; /* Parallax effect */
  border-radius: 30px; /* Rounded corners for hero */
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0,0,0,0.5); /* Inner shadow for depth */
}

.c0gbzp-hero::before { /* Overlay for text readability */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.4));
  z-index: 0;
}

.c0gbzp-hero-text {
  flex: 1.5; /* Takes more space */
  min-width: 400px; /* Minimum width before wrapping */
  z-index: 2;
  padding-right: 40px; /* Space from image */
  text-align: left;
}

.c0gbzp-hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem); /* Fluid font sizing */
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--color-accent);
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

.c0gbzp-hero p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 36px;
  opacity: 0.95;
  max-width: 650px; /* Limit width for better readability */
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.c0gbzp-hero-image {
  flex: 1; /* Takes less space */
  min-width: 350px;
  max-width: 550px;
  z-index: 1;
  position: relative;
  border-radius: 50%; /* Circular image */
  border: 18px solid var(--color-bg); /* Match background */
  box-shadow: var(--shadow-hero-image);
  animation: float 4s ease-in-out infinite;
}

.c0gbzp-hero-image img {
  aspect-ratio: 1/1; /* Ensure it's a perfect circle */
  border-radius: 50%;
  display: block; /* Remove extra space below image */
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* === Game Grid === */
.c0gbzp-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 370px; /* Fixed height for consistency, adjust as needed */
  gap: 30px;
  margin: 60px auto;
  max-width: 1400px;
  padding: 0 20px;
}

.c0gbzp-game-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--color-primary); /* Placeholder background if image fails */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Align text to bottom */
  box-shadow: 0 15px 30px rgba(0,0,0,0.3); /* Default card shadow */
}

.c0gbzp-game-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-card-hover);
}

.c0gbzp-game-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Fill the card */
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease; /* Smooth zoom on hover */
}

.c0gbzp-game-card:hover img {
  transform: scale(1.1); /* Zoom effect on hover */
}

.c0gbzp-game-card-info {
  z-index: 2;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 70%); /* Frosted glass effect */
  backdrop-filter: blur(10px);
  border-bottom-left-radius: 24px; /* Match card radius */
  border-bottom-right-radius: 24px; /* Match card radius */
}

.c0gbzp-game-card-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--color-accent);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.c0gbzp-game-card-info p {
  font-size: 0.95rem;
  opacity: 0.9;
  text-shadow: 0 1px 5px rgba(0,0,0,0.6);
}

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

.c0gbzp-content-section h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-primary);
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.c0gbzp-content-section p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.c0gbzp-content-section h3 {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-top: 30px;
  margin-bottom: 15px;
}

/* === Trust Badges / Chips === */
.c0gbzp-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 224, 102, 0.15); /* Accented background */
  color: var(--color-accent);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin: 5px;
  border: 1px solid rgba(255, 224, 102, 0.5);
  box-shadow: 0 0 15px rgba(255, 224, 102, 0.2);
}

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

/* === TABLET (≤1024px) === */
@media (max-width: 1024px) {
  .c0gbzp-hero {
    grid-template-columns: 1fr !important; /* Stack elements */
    flex-direction: column-reverse !important; /* Text above image */
    padding: 100px 5% 60px !important;
    gap: 40px !important;
    min-height: unset; /* Remove fixed height */
    background-attachment: scroll !important; /* Disable parallax on smaller screens */
  }
  .c0gbzp-hero-text {
    padding-right: 0; /* No padding needed when stacked */
    text-align: center !important;
    order: 1; /* Text comes first visually */
  }
  .c0gbzp-hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem) !important;
  }
  .c0gbzp-hero p {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
  }
  .c0gbzp-hero-image {
    order: 2; /* Image comes second */
    max-width: 350px; /* Smaller image on tablet */
    margin-bottom: 20px;
  }
  .c0gbzp-hero-image img {
    aspect-ratio: 1/1; /* Maintain aspect ratio */
  }
  .c0gbzp-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 20px !important;
    margin: 40px auto;
  }
  .c0gbzp-game-card {
    border-radius: 18px;
  }
  .c0gbzp-game-card-info {
    padding: 15px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
  .c0gbzp-game-card-info h3 {
    font-size: 1.2rem;
  }
  .c0gbzp-game-card-info p {
    font-size: 0.9rem;
  }
}

/* === MOBILE (≤768px) === */
@media (max-width: 768px) {
  html, body {
    font-size: 15px;
    overflow-x: hidden;
  }
  .c0gbzp-header {
    padding: 12px 16px !important;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .c0gbzp-desktop-nav {
    display: none !important;
  }
  .c0gbzp-hamburger {
    display: flex !important; /* Show hamburger */
  }
  .c0gbzp-hero {
    grid-template-columns: 1fr !important;
    flex-direction: column !important; /* Stacked */
    padding: 60px 16px 40px !important;
    text-align: center !important;
    gap: 24px !important;
    min-height: unset !important;
    background-attachment: scroll !important;
    border-radius: 0; /* Remove rounding on mobile */
  }
  .c0gbzp-hero-text {
    order: 1;
    padding-right: 0;
  }
  .c0gbzp-hero h1, .c0gbzp-hero-text h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
  }
  .c0gbzp-hero p, .c0gbzp-hero-text p {
    font-size: 1rem !important;
    max-width: 100%;
  }
  .c0gbzp-hero-image {
    order: 2;
    display: none !important; /* Hide large hero image on mobile */
    max-width: 280px;
    margin-bottom: 0;
  }
  .c0gbzp-game-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Two columns on mobile */
    gap: 12px !important;
    padding: 0 12px !important;
    margin: 40px auto;
  }
  .c0gbzp-game-card {
    border-radius: 12px !important;
    grid-auto-rows: 280px; /* Shorter cards on mobile */
  }
  .c0gbzp-game-card img {
    height: 100%; /* Fill card */
  }
  .c0gbzp-game-card-info {
    padding: 12px;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
  }
  .c0gbzp-game-card-info h3 {
    font-size: 1.1rem;
  }
  .c0gbzp-game-card-info p {
    font-size: 0.85rem;
  }
  .c0gbzp-btn {
    padding: 12px 24px !important;
    font-size: 0.85rem !important;
  }
  .c0gbzp-content-section {
    padding: 40px 16px !important;
    font-size: 1rem !important;
    text-align: left; /* Align text left for better readability on mobile */
  }
  .c0gbzp-content-section h2 {
    font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
    margin-bottom: 30px;
  }
  .c0gbzp-footer {
    padding: 30px 16px !important;
    font-size: 0.85rem !important;
  }
  .c0gbzp-footer ul {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .c0gbzp-footer li a {
    font-size: 0.9rem;
  }
  .c0gbzp-footer > div > div:nth-of-type(2) {
    text-align: left; /* Keep internal text left aligned */
  }
  .c0gbzp-footer-badge {
    margin-top: 10px; /* Ensure spacing */
  }
}

/* === SMALL MOBILE (≤480px) === */
@media (max-width: 480px) {
  .c0gbzp-hero h1, .c0gbzp-hero-text h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem) !important;
  }
  .c0gbzp-game-grid {
    grid-template-columns: 1fr !important; /* Single column on very small screens */
    gap: 16px !important;
  }
  .c0gbzp-game-card {
    grid-auto-rows: 300px; /* Adjust card height */
  }
  .c0gbzp-game-card img {
    height: 100%;
  }
  .c0gbzp-btn {
    width: 100%; /* Full width button */
    text-align: center;
  }
  .c0gbzp-footer ul {
    gap: 8px;
  }
}

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