/* ==========================================================================
   Section-Huit.com - Unified Responsive Stylesheet
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --pink: #ff2d95;
  --pink-soft: #ff6ec4;
  --pink-glow: rgba(255, 45, 149, 0.35);
  --blue: #3aa9ff;
  --blue-soft: #7cc4ff;
  --blue-glow: rgba(58, 169, 255, 0.25);
  --bg-dark: #0a0614;
  --bg-elevated: #150a28;
  --bg-header: #0e0720;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-card-active: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text-main: #ffffff;
  --text-sec: #b9b3cc;
  --text-muted: rgba(255, 255, 255, 0.5);
  --gradient-primary: linear-gradient(90deg, var(--pink), var(--blue));
  --gradient-primary-hover: linear-gradient(90deg, #ff4fa7, #59b8ff);
  --gradient-hero-scrim: linear-gradient(180deg, rgba(10, 6, 20, 0.6) 0%, rgba(10, 6, 20, 0.82) 55%, #0a0614 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Base Resets & Typography --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Accessibility (a11y) & Focus Visibility --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--pink);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  z-index: 99999;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 45, 149, 0.5);
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--pink-soft);
  outline-offset: 3px;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--pink-soft);
  outline-offset: 2px;
}

/* --- A11y Theme Modes (High Contrast, Large Font, Reduced Motion) --- */
body.theme-high-contrast {
  --bg-dark: #000000;
  --bg-elevated: #0d0d0d;
  --bg-header: #000000;
  --bg-card: #050505;
  --bg-card-hover: #141414;
  --border: #ffffff;
  --border-hover: #ffff00;
  --text-main: #ffffff;
  --text-sec: #ffffff;
  --text-muted: #e6e6e6;
  --pink: #ff0077;
  --blue: #00a2ff;
}

body.theme-high-contrast .badge-tag,
body.theme-high-contrast .game-tag,
body.theme-high-contrast .feature-item,
body.theme-high-contrast .process-card,
body.theme-high-contrast .about-card,
body.theme-high-contrast .mindful-card,
body.theme-high-contrast .contact-form-wrap,
body.theme-high-contrast .contact-map-card,
body.theme-high-contrast .legal-section {
  border-color: #ffffff;
}

body.font-large {
  font-size: 115%;
}

body.font-larger {
  font-size: 130%;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* --- A11y Widget / Accessibility Toolbar --- */
.a11y-widget-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 16px var(--pink-glow);
  z-index: 900;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.a11y-widget-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(255, 45, 149, 0.5);
}

.a11y-panel {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: min(320px, calc(100vw - 32px));
  background: #140b28;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  padding: 18px;
  z-index: 901;
  display: none;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  animation: fadeIn 0.2s ease-out;
}

.a11y-panel.is-active {
  display: flex;
}

.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.a11y-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.a11y-panel-close {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1;
  padding: 4px;
}

.a11y-panel-close:hover {
  color: #fff;
}

.a11y-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.a11y-control-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.a11y-btn-row {
  display: flex;
  gap: 6px;
}

.a11y-action-btn {
  flex: 1;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}

.a11y-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--pink-soft);
}

.a11y-action-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 2px 8px var(--pink-glow);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--pink-soft);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  color: var(--text-main);
}

input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-main {
  flex: 1 0 auto;
}

/* --- Buttons & UI Elements --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 8px 24px var(--pink-glow);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  cursor: pointer;
  text-align: center;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 45, 149, 0.5);
  filter: brightness(1.08);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sec);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--border-hover);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #fff;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-top-banner {
  background: #150a28;
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  text-align: center;
}

.header-top-banner p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-sec);
  font-weight: 400;
  max-width: 1000px;
  margin: 0 auto;
}

.header-top-banner a {
  color: var(--pink-soft);
  font-weight: 600;
}

.header-top-banner a:hover {
  text-decoration: underline;
}

.header-main-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}

.header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

/* Desktop navigation inside header */
.header-nav-desktop {
  display: none;
  align-items: center;
  gap: 6px;
}

.header-nav-desktop a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.header-nav-desktop a:hover,
.header-nav-desktop a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta-desktop {
  display: none;
}

/* Mobile burger button */
.header-burger-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.header-burger-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
}

/* Mobile dropdown navigation */
.header-nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  gap: 4px;
  animation: slideDown 0.25s ease-out;
}

.header-nav-mobile.is-open {
  display: flex;
}

.header-nav-mobile a {
  padding: 12px 14px;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.header-nav-mobile a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--pink-soft);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 56px 20px 52px;
  text-align: center;
  background-image: var(--gradient-hero-scrim), url('uploads/Rectangle.webp');
  background-size: cover;
  background-position: center 25%;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.hero-title {
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 1.12;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.65;
  color: #e2ddf0;
  max-width: 600px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-cta-wrap {
  margin-top: 8px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tag-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.stat-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 2px;
}

.stat-icon.star {
  fill: #ffb800;
}

.stat-icon.users {
  stroke: #3aa9ff;
  fill: none;
}

.stat-icon.heart {
  fill: var(--pink);
}

.game-modal-btn svg {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
}

.heading-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
  color: var(--pink-soft);
}

.stat-divider {
  opacity: 0.35;
  margin: 0 1px;
}

.mindful-intro-text {
  color: var(--text-sec);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.mindful-intro-text:last-of-type {
  margin-bottom: 20px;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 54px 0;
}

.section-title-wrap {
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.section-desc {
  margin-top: 8px;
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-sec);
  max-width: 720px;
  line-height: 1.7;
}

/* ==========================================================================
   GAMES SECTION
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.game-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  align-items: flex-start;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  background: var(--bg-card-hover);
}

.game-img {
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.game-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-sec);
  white-space: nowrap;
}

.game-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sec);
}

.game-stats {
  font-size: 12px;
  color: var(--text-sec);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.game-card .btn-primary {
  margin-top: 4px;
  align-self: flex-start;
}

/* ==========================================================================
   MARQUEE TICKER
   ========================================================================== */
.marquee-bar {
  overflow: hidden;
  background: #120a24;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}

.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-text {
  padding-right: 48px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-sec);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sec);
}

.about-card p strong {
  color: #fff;
}

/* ==========================================================================
   WHY PLAY HERE & HOW WE WORK
   ========================================================================== */
.features-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.features-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.features-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition);
}

.feature-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.feature-item-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-item-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sec);
}

/* 3-column process grid */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.process-card {
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), border-color var(--transition);
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.process-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.process-card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sec);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: flex-start;
}

.faq-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.faq-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color var(--transition), background var(--transition);
}

.faq-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.faq-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  text-align: left;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 45, 149, 0.15);
  color: var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition);
}

.faq-item.is-open .faq-icon {
  background: var(--pink);
  color: #fff;
}

.faq-body {
  display: none;
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sec);
}

.faq-item.is-open .faq-body {
  display: block;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-sec);
}

.contact-map-card {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.contact-map-header {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.contact-map-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.contact-map-address {
  font-size: 13.5px;
  color: var(--text-sec);
}

.contact-map-iframe-wrap {
  width: 100%;
  height: 250px;
  position: relative;
  background: #0d0718;
}

.contact-map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14.5px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  border-color: var(--pink-soft);
  box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sec);
  cursor: pointer;
}

.form-checkbox-label input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--pink);
}

.form-checkbox-label a {
  color: var(--pink-soft);
  font-weight: 600;
}

.form-success-msg {
  display: none;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(58, 169, 255, 0.12);
  border: 1px solid var(--blue);
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

/* ==========================================================================
   MINDFUL PLAY SECTION
   ========================================================================== */
.mindful-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.mindful-card {
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition), border-color var(--transition);
}

.mindful-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.mindful-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.mindful-link {
  font-size: 13.5px;
  color: var(--pink-soft);
  font-weight: 600;
}

.mindful-link:hover {
  text-decoration: underline;
}

.mindful-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-sec);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 45, 149, 0.07) 0%, #07030d 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  padding: 64px 0 32px;
  margin-top: 54px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 149, 0.4), rgba(0, 240, 255, 0.3), transparent);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-logo {
  height: 32px;
  width: auto;
  align-self: flex-start;
  transition: opacity var(--transition);
}

.footer-logo:hover {
  opacity: 0.9;
}

.footer-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-sec);
  max-width: 580px;
}

.footer-hq-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 580px;
}

.footer-address-card {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #cfc8e2;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(10px);
  width: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color var(--transition), transform var(--transition);
}

.footer-address-card:hover {
  border-color: rgba(255, 45, 149, 0.3);
  transform: translateY(-2px);
}

.footer-org-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.footer-partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  width: fit-content;
}

.footer-partners-row a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: transform var(--transition);
}

.footer-partners-row a:hover {
  transform: translateY(-2px);
}

.footer-partners-row img {
  height: 22px;
  width: auto;
  filter: brightness(0.9) opacity(0.8);
  transition: filter var(--transition), transform var(--transition);
}

.footer-partners-row a:hover img {
  filter: brightness(1) opacity(1);
  transform: scale(1.05);
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links-list a {
  font-size: 14px;
  color: var(--text-sec);
  font-weight: 500;
  transition: color var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.footer-links-list a:hover {
  color: var(--pink-soft);
  transform: translateX(4px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-badge {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   LEGAL PAGES COMMON
   ========================================================================== */
.legal-page-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.legal-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
}

.legal-title {
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}

.legal-date {
  font-size: 13.5px;
  color: var(--text-sec);
  margin-top: 10px;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 60px;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.legal-section p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #e2ddf0;
}

.legal-section a {
  color: var(--pink-soft);
  text-decoration: underline;
}

.legal-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-list li {
  font-size: 14.5px;
  line-height: 1.7;
  color: #e2ddf0;
}

.legal-list strong {
  color: #fff;
}

/* ==========================================================================
   AGE GATE MODAL (18+)
   ========================================================================== */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 3, 14, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.age-gate-modal {
  max-width: 440px;
  width: 100%;
  background: #160b2e;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 45, 149, 0.15);
  text-align: center;
}

.age-gate-icon {
  font-size: 38px;
}

.age-gate-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.age-gate-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sec);
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

/* ==========================================================================
   GAME IFRAME MODAL
   ========================================================================== */
.game-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 3, 16, 0.92);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.game-modal-overlay.is-active {
  display: flex;
}

.game-modal-container {
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  max-height: 850px;
  background: #110822;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(255, 45, 149, 0.15);
}

.game-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #180c32;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.game-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.game-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-modal-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 45, 149, 0.2);
  color: var(--pink-soft);
  border: 1px solid var(--pink);
  white-space: nowrap;
}

.game-modal-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.game-modal-btn {
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #fff;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.game-modal-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-hover);
}

.game-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.game-modal-close-btn:hover {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

.game-modal-iframe-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  background: #06030b;
  overflow: hidden;
}

.game-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-modal-loader {
  position: absolute;
  inset: 0;
  background: #0d061a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-sec);
  font-size: 14px;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.game-modal-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.game-modal-footer {
  padding: 8px 18px;
  background: #0e071e;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* --- Intermediate Tablet (min-width: 640px) --- */
@media (min-width: 640px) {
  .hero-section {
    padding: 72px 24px 64px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mindful-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
  }

  .footer-nav-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .age-gate-actions {
    flex-direction: row;
  }

  .age-gate-actions button {
    flex: 1;
  }
}

/* --- Intermediate / Small Desktop (min-width: 900px) --- */
@media (min-width: 900px) {
  .header-main-bar {
    padding: 14px 32px;
  }

  .header-nav-desktop {
    display: flex;
  }

  .header-cta-desktop {
    display: inline-flex;
  }

  .header-burger-btn {
    display: none;
  }

  .header-nav-mobile {
    display: none !important;
  }

  .features-split {
    grid-template-columns: 1fr 1.1fr;
    gap: 36px;
  }

  .features-media img {
    aspect-ratio: 4 / 3;
    height: 100%;
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .faq-split {
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
  }

  .faq-media img {
    aspect-ratio: 4 / 3;
    height: 100%;
  }

  .contact-split {
    grid-template-columns: 1fr 1.15fr;
    gap: 36px;
    align-items: start;
  }

  .footer-top-grid {
    grid-template-columns: 2.2fr 1.1fr 1.1fr;
    gap: 56px;
    align-items: start;
  }

  .footer-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* --- Large Desktop (min-width: 1100px) --- */
@media (min-width: 1100px) {
  .hero-section {
    padding: 92px 32px 80px;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .game-card {
    padding: 18px;
  }

  .section {
    padding: 72px 0;
  }
}

/* ==========================================================================
   Inner Standalone Page Styles (Games Hub, About, Process, FAQ, Mindful, Contact)
   ========================================================================== */
.page-hero-section {
  background: linear-gradient(180deg, rgba(255, 45, 149, 0.08) 0%, rgba(10, 6, 20, 0.95) 100%);
  padding: 56px 20px 36px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin: 12px 0 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero-subtitle {
  font-size: 16px;
  color: var(--text-sec);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Interactive Games Filter Bar --- */
.games-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  background: var(--bg-elevated);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.games-search-box {
  position: relative;
  width: 100%;
}

.games-search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.games-search-box .search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14.5px;
  font-family: inherit;
  transition: var(--transition);
}

.games-search-box .search-input:focus {
  border-color: var(--pink);
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px var(--pink-glow);
}

.games-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-sec);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--border-hover);
}

.filter-chip.active {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 2px 12px var(--pink-glow);
}

.no-results-msg {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-sec);
  font-size: 16px;
  grid-column: 1 / -1;
  width: 100%;
}

@media (min-width: 768px) {
  .page-hero-section {
    padding: 72px 24px 48px;
  }
  
  .games-filter-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .games-search-box {
    max-width: 320px;
  }
}

