@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Quicksand:wght@400;600;700&display=swap');

:root {
  --primary: #00ff9d; /* Bright Neon Mint */
  --primary-dark: #062f1d; /* Deep Forest Spruce */
  --primary-light: #34d399; /* Smooth Emerald */
  --accent: #f59e0b; /* Premium Amber Gold */
  --accent-orange: #ef4444; /* Vivid Action Coral/Red */
  --bg-dark: #02110a; /* Premium Deep Charcoal Green */
  --bg-light: #f0fdf4; /* Light Eco Green */
  --card-bg: #092c1c; /* Refined Dark Emerald Container */
  --text-light: #f3fdf8;
  --text-dark: #02110a;
  --border-radius: 12px;
  --border-width: 2px;
  --cartoon-shadow: 3px 3px 0px #000000;
  --font-header: 'Fredoka One', cursive;
  --font-body: 'Quicksand', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Base Cartoon Styling with Sleeker Strokes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  letter-spacing: 0.5px;
  color: var(--accent);
  text-shadow: 2px 2px 0px #000;
  -webkit-text-stroke: 0.5px #000;
}

p {
  font-size: 1.05rem;
}

/* Disclaimer Bar - Slim and Premium */
.disclaimer-bar {
  background-color: #000;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 4px 15px;
  border-bottom: 1px solid var(--primary-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Perfect and Slim Header System */
.header {
  height: 56px;
  background: rgba(9, 44, 28, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-width) solid #000;
  position: sticky;
  top: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  max-width: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  max-height: 32px;
  width: auto;
  filter: drop-shadow(1.5px 1.5px 0px #000);
}

.logo-text {
  font-family: var(--font-header);
  font-size: 1.4rem;
  color: var(--primary);
  margin-left: 8px;
  text-shadow: 1.5px 1.5px 0px #000;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-header);
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: none;
  transition: transform 0.2s, color 0.2s;
  text-shadow: 1.5px 1.5px 0px #000;
  display: inline-block;
}

.nav-link:hover {
  color: var(--primary);
  transform: scale(1.05) rotate(-1deg);
}

/* Slimmer Cartoon Button */
.btn-cartoon {
  font-family: var(--font-header);
  background-color: var(--accent-orange);
  color: var(--text-light);
  border: var(--border-width) solid #000;
  border-radius: var(--border-radius);
  padding: 6px 16px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: var(--cartoon-shadow);
  text-shadow: 1.5px 1.5px 0px #000;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 0.95rem;
}

.btn-cartoon:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: 4.5px 4.5px 0px #000;
  background-color: #ff5f5f;
}

.btn-cartoon:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1px 0px #000;
}

.header-cta {
  width: 105px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Mobile Hamburger - Slim & Centered */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border: var(--border-width) solid #000;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 1.5px 1.5px 0px #000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: #000;
  border-radius: 2px;
  transition: 0.3s;
}

/* Slide Menu Mobile */
.slide-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg-dark);
  border-left: var(--border-width) solid #000;
  z-index: 1001;
  transition: 0.4s ease-in-out;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  box-shadow: -10px 0 0 rgba(0,0,0,0.5);
}

.slide-menu.active {
  right: 0;
}

.slide-menu .close-btn {
  align-self: flex-end;
  background: var(--accent-orange);
  border: 2px solid #000;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--font-header);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-menu .nav-menu-mobile {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
}

.slide-menu .nav-link {
  font-size: 1.4rem;
}

.slide-menu .header-cta {
  width: 100%;
  height: 44px;
  font-size: 1.1rem;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: none;
}

.menu-overlay.active {
  display: block;
}

/* Layout Utilities */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 40px;
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: radial-gradient(circle, var(--primary-dark) 0%, var(--bg-dark) 100%);
  border-bottom: var(--border-width) solid #000;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 20px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tag {
  background: var(--accent);
  color: var(--text-dark);
  font-family: var(--font-header);
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
  font-size: 1rem;
  margin-bottom: 15px;
  border: var(--border-width) solid #000;
  box-shadow: 1.5px 1.5px 0px #000;
}

.hero h1 {
  font-size: 3.6rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 3px 3px 0px #000;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #cbf9e3;
  text-shadow: 1.5px 1.5px 0px #000;
}

/* Compliance Banner Inside Core Layouts */
.compliance-callout {
  background: #000;
  border: var(--border-width) solid var(--primary);
  border-radius: var(--border-radius);
  padding: 15px 25px;
  margin: 20px auto;
  max-width: 960px;
  text-align: center;
  box-shadow: var(--cartoon-shadow);
}

.compliance-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
}

.compliance-highlight {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}

/* Cards & Experiences */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.cartoon-card {
  background-color: var(--card-bg);
  border: var(--border-width) solid #000;
  border-radius: var(--border-radius);
  padding: 22px;
  box-shadow: var(--cartoon-shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.cartoon-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px #000;
}

.card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-orange);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-header);
  font-size: 0.75rem;
  border: 1.5px solid #000;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--primary);
}

/* Embedded Game Container */
.game-container {
  background: radial-gradient(circle, #0e4428, #03150c);
  border: var(--border-width) solid #000;
  border-radius: var(--border-radius);
  box-shadow: var(--cartoon-shadow);
  overflow: hidden;
  margin: 30px auto;
  max-width: 960px;
  aspect-ratio: 16/9;
  position: relative;
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Stats Counter */
.stats-bar {
  background: var(--primary-dark);
  border-top: var(--border-width) solid #000;
  border-bottom: var(--border-width) solid #000;
  padding: 30px 20px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  text-align: center;
}

.stat-val {
  font-family: var(--font-header);
  font-size: 3rem;
  color: var(--primary);
  text-shadow: 2px 2px 0px #000;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Blog Template Styles */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.blog-articles-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-sidebar {
  background: var(--card-bg);
  border: var(--border-width) solid #000;
  border-radius: var(--border-radius);
  padding: 20px;
  height: fit-content;
  box-shadow: var(--cartoon-shadow);
}

.blog-post-card {
  background: var(--card-bg);
  border: var(--border-width) solid #000;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--cartoon-shadow);
}

.blog-post-meta {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: bold;
}

.blog-post-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.blog-post-excerpt {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #d1ebd9;
}

/* Contact Form */
.contact-form {
  background: var(--card-bg);
  border: var(--border-width) solid #000;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--cartoon-shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-header);
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #000;
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: bold;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* Accordion for FAQ */
.faq-item {
  background: var(--card-bg);
  border: var(--border-width) solid #000;
  border-radius: var(--border-radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--cartoon-shadow);
}

.faq-header {
  padding: 16px;
  font-family: var(--font-header);
  font-size: 1.15rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-dark);
}

.faq-content {
  padding: 16px;
  display: none;
  border-top: 2px solid #000;
  background: rgba(0,0,0,0.25);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 15px;
  right: 15px;
  max-width: 360px;
  background: var(--card-bg);
  border: var(--border-width) solid #000;
  border-radius: var(--border-radius);
  padding: 18px;
  box-shadow: var(--cartoon-shadow);
  z-index: 1002;
  display: none;
}

.cookie-banner-title {
  font-family: var(--font-header);
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.cookie-banner-btns {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* Footer styling */
.footer {
  background: #010a06;
  border-top: var(--border-width) solid #000;
  padding: 40px 20px 20px;
  color: #fff;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1.5px solid #0a2f1c;
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--primary-light);
  line-height: 1.6;
}

/* Room active states & dynamic notifications */
.active-card {
  border-color: var(--primary) !important;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.45), var(--cartoon-shadow) !important;
}

.lobby-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--card-bg);
  border: 2px solid var(--primary);
  color: #fff;
  padding: 12px 24px;
  font-family: var(--font-header);
  font-size: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--cartoon-shadow);
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  text-align: center;
}

.lobby-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

#game-iframe {
  transition: opacity 0.35s ease-in-out;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .header {
    padding: 0 15px;
  }
}

@media (max-width: 767px) {
  .header {
    height: 48px;
    top: 24px;
  }
  .disclaimer-bar {
    font-size: 10px;
    height: auto;
    min-height: 24px;
    padding: 4px 10px;
  }
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .section-title {
    font-size: 1.8rem;
  }
}