/* Global Resets & Base Styles */
*, *::before, *::after {
  box-sizing: inherit;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px; /* Base font size */
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Outfit', sans-serif;
  background-color: #020617; /* BG:#020617 */
  color: #e2e8f0; /* Light text color for dark background */
  line-height: 1.8;
  font-size: 1.05rem; /* Slightly larger base font for readability */
}

main {
  flex: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  padding-top: 80px; /* Account for fixed header */
}

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

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

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
  margin-bottom: 1.2em;
}

a {
  color: #14b8a6; /* Pri:#14b8a6 */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2dd4bf; /* Lighter shade of primary */
  text-decoration: underline;
}

/* Buttons */
.cur84d-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background: linear-gradient(to right, #14b8a6, #8b5cf6); /* Pri to Acc gradient */
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4); /* Acc shadow */
}

.cur84d-btn:hover {
  background: linear-gradient(to right, #2dd4bf, #a78bfa); /* Lighter gradient on hover */
  box-shadow: 0 15px 30px rgba(167, 139, 250, 0.5);
  transform: translateY(-3px);
}

/* Header */
.cur84d-header-c-l-r {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(2, 6, 23, 0.8); /* BG:#020617 with transparency */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.cur84d-logo {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 20px; /* Adjusted margin for better spacing */
  gap: 10px;
}

.cur84d-logo svg rect { fill: #14b8a6; } /* Pri fill for logo */
.cur84d-logo span { color: #ffffff; }

/* Desktop Navigation */
.cur84d-desktop-nav ul {
  display: flex;
  gap: 30px; /* Increased gap for better spacing */
  list-style: none;
  align-items: center;
  justify-content: center;
}

.cur84d-desktop-nav li a {
  color: #e2e8f0; /* Light text color */
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 25px;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cur84d-desktop-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #14b8a6; /* Pri color for underline */
  transition: width 0.3s ease;
}

.cur84d-desktop-nav li a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.cur84d-desktop-nav li a:hover::after {
  width: 100%;
}

/* Header Right Section */
.cur84d-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cur84d-age-flag {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
}

.cur84d-age-flag span {
  vertical-align: middle;
}

.cur84d-hamburger {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* Mobile Menu Overlay */
.cur84d-mobile-menu {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(2, 6, 23, 0.95); /* BG:#020617 with higher transparency */
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  padding: 40px 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.cur84d-mobile-menu.active {
  transform: translateX(0);
}

.cur84d-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.cur84d-mobile-menu li a {
  color: #e2e8f0;
  font-size: 1.5rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.cur84d-mobile-menu li a:hover {
  color: #14b8a6; /* Pri color on hover */
}

.cur84d-close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cur84d-close-menu:hover {
  transform: rotate(90deg);
  color: #14b8a6; /* Pri color on hover */
}

/* Footer */
.cur84d-footer {
  padding: 50px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: auto; /* Pushes footer to the bottom */
  position: relative; /* For potential pseudo-elements */
  border-top: 1px solid rgba(255,255,255,0.05);
}

.cur84d-footer .cur84d-container {
  max-width: 900px;
}

.cur84d-footer h3 {
  margin-bottom: 20px;
  opacity: 0.8;
  font-size: 1.6rem;
  color: #14b8a6; /* Pri color for emphasis */
}

.cur84d-footer ul {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0.9;
}

.cur84d-footer li a {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.cur84d-footer li a:hover {
  color: #14b8a6; /* Pri color on hover */
  text-decoration: underline;
}

/* Footer Legal/Info Box */
.cur84d-footer-contact {
  margin-top: 15px;
  font-size: 0.9em;
  text-align: left;
  opacity: 0.9;
  color: #cccccc;
}
.cur84d-footer-contact p { margin-bottom: 8px; }
.cur84d-footer-contact strong { color: #ffffff; }


.cur84d-footer > div > div:nth-of-type(2) { /* The main informational box in footer */
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
  margin-top: 15px;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

.cur84d-footer h4 {
  margin: 0 0 8px 0;
  color: #ffeb3b; /* Warning yellow for emphasis */
  font-size: 1.2em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,235,59,0.5);
}

.cur84d-footer p strong {
  font-weight: 700;
  color: #ffffff;
}

.cur84d-footer a {
  color: #14b8a6; /* Pri color for links in footer */
}

.cur84d-footer a:hover {
  text-decoration: underline;
}

.cur84d-footer .cur84d-copyright {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85em;
  opacity: 0.75;
  line-height: 1.55;
}

.cur84d-footer .cur84d-copyright a {
  color: inherit; /* Inherit from parent for consistent styling */
}

/* Hero Section - REVERSE-STACKED Layout */
.cur84d-hero {
  display: flex;
  flex-wrap: wrap-reverse; /* Image at bottom on mobile, text on top */
  justify-content: center;
  align-items: center; /* Center items vertically */
  padding: 120px 5% 80px 5%; /* Top, Left/Right, Bottom, Left/Right */
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  gap: 30px; /* Space between text and image */
}

.cur84d-hero-image-wrapper {
  flex: 1;
  min-width: 350px; /* Minimum width before wrapping */
  max-width: 600px;
  z-index: 1; /* Image below text */
  display: flex;
  justify-content: center;
  align-items: center;
}

.cur84d-hero-image-wrapper img {
  width: 100%;
  aspect-ratio: 1/1; /* Maintain square aspect ratio */
  object-fit: cover;
  border-radius: 50%; /* Circular image */
  border: 15px solid #020617; /* BG color border */
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  max-width: 450px; /* Constrain size */
}

.cur84d-hero-text {
  flex: 1.5; /* Takes more space */
  min-width: 350px; /* Minimum width before wrapping */
  padding-right: 50px; /* Space to the right of the text block */
  z-index: 2; /* Text above image */
  text-align: left;
}

.cur84d-hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #14b8a6, #8b5cf6); /* Gradient for title */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
}

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

/* Game Grid - NEO-BRUTALIST ARCHITECTURE */
.cur84d-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive columns */
  gap: 40px; /* Spacing between cards */
  max-width: 1300px;
  margin: 60px auto; /* Top/Bottom margin, auto left/right */
  padding: 0 20px; /* Padding on the sides */
}

/* Game Card - NEO-BRUTALIST STYLE */
.cur84d-game-card {
  border-radius: 16px; /* Softened corners */
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #0d1321; /* Darker background for cards */
  border: 7px solid #14b8a6; /* Bold primary border */
  box-shadow: 15px 15px 0px #0a0f1c; /* Hard, dark shadow */
  display: flex;
  flex-direction: column; /* Ensure content stacks vertically */
}

.cur84d-game-card:hover {
  transform: translateY(-10px) scale(1.03); /* Lift and scale up */
  box-shadow: 25px 25px 0px #0a0f1c; /* Larger shadow on hover */
}

.cur84d-game-card-image-container {
  width: 100%;
  height: 220px; /* Fixed height for image container */
  overflow: hidden;
  position: relative; /* For potential overlays */
  border-bottom: 7px solid #14b8a6; /* Match card border */
}

.cur84d-game-card-image-container img {
  width: 100%;
  height: 100%; /* Fill the container */
  object-fit: cover;
  filter: grayscale(20%) contrast(115%) brightness(105%); /* Enhance visuals */
  transition: filter 0.3s ease;
}

.cur84d-game-card:hover .cur84d-game-card-image-container img {
  filter: grayscale(0%) contrast(100%) brightness(110%); /* Sharpen on hover */
}

.cur84d-game-card-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to take available space */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push title to top, details to bottom */
}

.cur84d-game-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
  background: linear-gradient(to right, #14b8a6, #8b5cf6); /* Gradient for title */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
}

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

.cur84d-game-card-tags {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cur84d-game-card-tags span {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 15px;
}

.cur84d-game-card-play-btn {
  margin-top: auto; /* Pushes button to bottom */
  align-self: flex-start; /* Align button to the left */
  padding: 10px 20px; /* Smaller button for cards */
  font-size: 0.8rem;
  background: linear-gradient(to right, #14b8a6, #8b5cf6); /* Pri to Acc gradient */
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.3);
}

.cur84d-game-card-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* Content Section Styling */
.cur84d-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: left; /* Align text left for better readability in content blocks */
}

.cur84d-content-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

/* Trust Badges */
.cur84d-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
  color: #f0f0f0;
  margin: 0 5px 10px 0; /* Small margin for spacing */
}

.cur84d-trust-badge.accent {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.25);
  color: #8b5cf6; /* Acc color */
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .cur84d-desktop-nav ul {
    gap: 15px;
  }
  .cur84d-desktop-nav li a {
    font-size: 0.95rem;
    padding: 6px 12px;
  }
  .cur84d-hero {
    flex-direction: column-reverse; /* Stack vertically */
    text-align: center;
    padding: 100px 20px 60px 20px;
  }
  .cur84d-hero-image-wrapper {
    max-width: 400px;
    margin-bottom: 30px;
  }
  .cur84d-hero-text {
    padding-right: 0;
    width: 100%;
  }
  .cur84d-hero-text h1 {
    font-size: 2.8rem;
  }
  .cur84d-hero-text p {
    font-size: 1.1rem;
  }
  .cur84d-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px auto;
  }
  .cur84d-game-card {
    box-shadow: 10px 10px 0px #0a0f1c;
  }
  .cur84d-game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 18px 18px 0px #0a0f1c;
  }
  .cur84d-game-card-image-container {
    height: 200px;
  }
  .cur84d-game-card-title {
    font-size: 1.3rem;
  }
  .cur84d-game-card-description {
    font-size: 0.9rem;
  }
  .cur84d-footer ul {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .cur84d-desktop-nav {
    display: none; /* Hide desktop nav */
  }
  .cur84d-hamburger {
    display: block; /* Show hamburger */
  }
  .cur84d-header-right {
    gap: 10px;
  }
  .cur84d-logo {
    font-size: 1.1rem;
    margin: 0 10px;
  }
  .cur84d-header-c-l-r {
    padding: 15px 0;
  }
  .cur84d-hero {
    padding: 90px 20px 50px 20px;
  }
  .cur84d-hero-text h1 {
    font-size: 2.4rem;
  }
  .cur84d-game-grid {
    grid-template-columns: 1fr; /* Single column on smaller screens */
    gap: 25px;
    margin: 40px auto;
  }
  .cur84d-game-card {
    border-width: 5px;
    box-shadow: 8px 8px 0px #0a0f1c;
  }
  .cur84d-game-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 12px 12px 0px #0a0f1c;
  }
  .cur84d-content-section {
    padding: 60px 20px;
    font-size: 1rem;
  }
  .cur84d-content-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }
  .cur84d-footer {
    padding: 40px 20px;
  }
  .cur84d-footer h3 {
    font-size: 1.4rem;
  }
  .cur84d-footer ul {
    margin-bottom: 20px;
  }
}