/* ============================================
   Maple Arcade Hub — Glassmorphism Stylesheet
   ============================================ */

/* --- CSS Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background: var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

/* --- Design Tokens --- */
:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #A78BFA;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --bg: linear-gradient(135deg, #1E0B4B 0%, #0F172A 50%, #1A1033 100%);
  --surface: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.14);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --font: 'DM Sans', sans-serif;
  --max-w: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --blur: blur(16px);
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-12: 96px;
  --sp-16: 128px;
}

/* --- Utility Classes --- */
.mah-wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.mah-section {
  padding: var(--sp-12) 0;
  position: relative;
}

.mah-heading-group {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.mah-heading-group h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.mah-heading-group p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.mah-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(124, 58, 237, 0.25);
  color: var(--primary-light);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.mah-grad-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mah-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Scroll Reveal --- */
.mah-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.mah-reveal--active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Glass Surface Mixin Pattern --- */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

/* --- Buttons --- */
.mah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.mah-btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.mah-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.mah-btn--secondary {
  background: var(--accent);
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.mah-btn--secondary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
}

.mah-btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--surface-border);
}

.mah-btn--outline:hover {
  background: var(--surface);
  border-color: var(--primary-light);
}

.mah-btn--glow {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1a1a2e;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
}

.mah-btn--glow:hover {
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

.mah-btn--lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

/* --- Header --- */
.mah-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
  padding: var(--sp-2) 0;
}

.mah-header--scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.mah-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
  position: relative;
}

.mah-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  order: 2;
  margin: 0 var(--sp-6);
  flex-shrink: 0;
}

.mah-header__logo-icon {
  font-size: 1.75rem;
}

.mah-header__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.mah-header__nav--left {
  order: 1;
  justify-content: flex-end;
}

.mah-header__nav--right {
  order: 3;
  justify-content: flex-start;
}

.mah-header__nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

.mah-header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 2px;
}

.mah-header__nav a:hover,
.mah-header__nav a.active {
  color: var(--text);
}

.mah-header__nav a:hover::after,
.mah-header__nav a.active::after {
  width: 100%;
}

.mah-header__toggle {
  display: none;
  order: 4;
  position: absolute;
  right: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mah-header__toggle:hover {
  background: var(--surface);
}

.mah-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: all var(--transition);
}

.mah-header__toggle span::before,
.mah-header__toggle span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

.mah-header__toggle span::before { top: -7px; }
.mah-header__toggle span::after { top: 7px; }

/* --- Mobile Nav Drawer --- */
.mah-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--surface-border);
  z-index: 1001;
  padding: var(--sp-8) var(--sp-4);
  transition: right var(--transition);
  flex-direction: column;
  gap: var(--sp-3);
}

.mah-nav-drawer.is-open {
  right: 0;
}

.mah-nav-drawer a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--sp-2) 0;
  display: block;
  transition: color var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mah-nav-drawer a:hover {
  color: var(--accent);
}

.mah-nav-drawer__close {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.mah-nav-drawer__close:hover {
  background: var(--surface);
  color: var(--text);
}

.mah-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--transition);
}

.mah-nav-overlay.is-open {
  opacity: 1;
}

/* --- Hero --- */
.mah-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--sp-16) var(--sp-3) var(--sp-8);
  position: relative;
  overflow: hidden;
}

.mah-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
  animation: heroGlow 15s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5%, 5%) scale(1.1); }
}

.mah-hero__grid {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.mah-hero__text {
  margin-bottom: var(--sp-6);
}

.mah-hero__text h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  line-height: 1.1;
}

.mah-hero__text p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.mah-hero__actions {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.mah-hero__visual {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.mah-hero__preview {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 60px rgba(124, 58, 237, 0.15);
  position: relative;
}

.mah-hero__preview iframe {
  width: 100%;
  min-height: 500px;
  display: block;
  border: none;
}

.mah-hero__preview-label {
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--surface-border);
}

.mah-hero__preview-label span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* --- Wave Divider --- */
.mah-wave {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.mah-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

.mah-wave svg path {
  fill: rgba(124, 58, 237, 0.06);
}

/* --- Features --- */
.mah-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  max-width: var(--max-w);
  margin: 0 auto;
}

.mah-feature-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.mah-feature-card:hover {
  background: var(--surface-hover);
  box-shadow: var(--shadow), var(--shadow-glow);
  transform: translateY(-4px);
}

.mah-feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--sp-3);
}

.mah-feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--sp-1);
}

.mah-feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Game Section --- */
.mah-game-section {
  padding: var(--sp-12) 0;
}

.mah-game-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.mah-game-panel {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mah-iframe-box {
  position: relative;
  width: 100%;
  background: #0a0a1a;
}

.mah-iframe-box iframe {
  width: 100%;
  height: 100%;
  min-height: 650px;
  display: block;
  border: none;
}

.mah-fullscreen-btn {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
}

.mah-fullscreen-btn:hover {
  background: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.mah-game-info {
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--surface-border);
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.mah-game-info h3 {
  font-size: 1.125rem;
}

.mah-game-notice {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: var(--sp-2) var(--sp-3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(245, 158, 11, 0.05);
}

/* --- Steps --- */
.mah-steps__grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: relative;
}

.mah-steps__grid::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}

.mah-step-card {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.mah-step-card:hover {
  background: var(--surface-hover);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.mah-step-num {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  z-index: 1;
}

.mah-step-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.mah-step-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Stats --- */
.mah-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  max-width: var(--max-w);
  margin: 0 auto;
}

.mah-stat-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.mah-stat-card:hover {
  background: var(--surface-hover);
  box-shadow: var(--shadow), var(--shadow-glow);
  transform: translateY(-4px);
}

.mah-stat-card .stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.mah-stat-card .stat-label {
  color: var(--text-muted);
  font-size: 1rem;
}

/* --- FAQ --- */
.mah-faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.mah-faq__item {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.mah-faq__item.is-open {
  background: var(--surface-hover);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.mah-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  transition: color var(--transition);
}

.mah-faq__trigger:hover {
  color: var(--accent);
}

.mah-faq__icon {
  font-size: 1.25rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: var(--sp-2);
}

.mah-faq__item.is-open .mah-faq__icon {
  transform: rotate(45deg);
}

.mah-faq__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mah-faq__answer {
  padding: 0 var(--sp-3) var(--sp-3);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- CTA Section --- */
.mah-cta-section {
  padding: var(--sp-12) 0;
}

.mah-cta-section .cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-4);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(124, 58, 237, 0.3);
}

.mah-cta-section .cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(245, 158, 11, 0.15), transparent 60%);
  pointer-events: none;
}

.mah-cta-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--sp-2);
  position: relative;
  z-index: 1;
}

.mah-cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}

/* --- Article --- */
.mah-article-section {
  padding: var(--sp-12) 0;
}

.mah-article__body {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow);
}

.mah-article__body h2 {
  font-size: 1.75rem;
  margin-bottom: var(--sp-3);
}

.mah-article__body h3 {
  font-size: 1.25rem;
  margin: var(--sp-4) 0 var(--sp-2);
  color: var(--accent);
}

.mah-article__body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--sp-3);
}

/* --- Footer --- */
.mah-footer {
  background: rgba(10, 10, 30, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--surface-border);
  padding: var(--sp-8) 0 var(--sp-4);
  margin-top: var(--sp-12);
}

.mah-footer__cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
  margin-bottom: var(--sp-6);
}

.mah-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.mah-footer__brand .footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mah-footer__brand .footer-logo span {
  font-size: 1.5rem;
}

.mah-footer__brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.mah-age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--sp-1);
  width: fit-content;
}

.mah-footer__links h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--sp-3);
  color: var(--text);
}

.mah-footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.mah-footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
  display: block;
  padding: 2px 0;
}

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

.mah-footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-3) 0;
  border-top: 1px solid var(--surface-border);
  text-align: center;
}

.mah-footer__bottom p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.mah-footer__disclaimer {
  margin-top: var(--sp-2);
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.7;
  font-style: italic;
}

/* --- Legal Pages --- */
.mah-legal-page {
  padding: var(--sp-16) 0 var(--sp-12);
  max-width: 900px;
  margin: 0 auto;
}

.mah-toc {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-6);
  box-shadow: var(--shadow);
}

.mah-toc h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-2);
}

.mah-toc a {
  display: block;
  padding: 6px 0;
  color: var(--primary-light);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

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

.mah-content-block {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
  box-shadow: var(--shadow);
}

.mah-content-block h2 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-2);
}

.mah-content-block p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-2);
}

.mah-content-block ul {
  padding-left: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.mah-content-block li {
  color: var(--text-muted);
  line-height: 1.8;
  list-style: disc;
  margin-bottom: 4px;
}

/* --- Contact Page --- */
.mah-contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-4);
  max-width: var(--max-w);
  margin: 0 auto;
}

.mah-contact-form-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow);
}

.mah-field-group {
  margin-bottom: var(--sp-3);
}

.mah-field-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--sp-1);
  color: var(--text);
}

.mah-field-group input,
.mah-field-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  transition: all var(--transition);
}

.mah-field-group input:focus,
.mah-field-group textarea:focus {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.mah-field-group textarea {
  min-height: 150px;
  resize: vertical;
}

.mah-field-group .error-text {
  color: #EF4444;
  font-size: 0.8125rem;
  margin-top: 4px;
  display: none;
}

.mah-success-msg {
  display: none;
  padding: var(--sp-3);
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  color: #4ADE80;
  text-align: center;
  font-weight: 600;
  margin-top: var(--sp-3);
}

.mah-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.mah-info-item {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.mah-info-item:hover {
  background: var(--surface-hover);
}

.mah-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--sp-2);
}

.mah-info-item h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.mah-info-item p,
.mah-info-item a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Age Modal --- */
#ageModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#ageModal.hidden {
  display: none;
}

.age-modal__card {
  background: rgba(30, 11, 75, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.age-modal__card .modal-icon {
  font-size: 3rem;
  margin-bottom: var(--sp-3);
}

.age-modal__card h2 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-2);
}

.age-modal__card p {
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  line-height: 1.6;
}

.age-modal__actions {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
}

/* --- Cookie Banner --- */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: var(--sp-3);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--surface-border);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

#cookieBanner.hidden {
  display: none;
}

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.cookie-inner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  min-width: 250px;
}

.cookie-inner p a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--sp-1);
  flex-shrink: 0;
}

/* --- Toast Notifications --- */
.mah-toasts {
  position: fixed;
  top: 100px;
  right: var(--sp-3);
  z-index: 9997;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  pointer-events: none;
}

.mah-toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  color: var(--text);
  font-size: 0.9375rem;
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: toastIn 0.3s ease forwards;
  max-width: 360px;
}

.mah-toast--success {
  border-color: rgba(34, 197, 94, 0.4);
}

.mah-toast--error {
  border-color: rgba(239, 68, 68, 0.4);
}

.mah-toast--info {
  border-color: rgba(124, 58, 237, 0.4);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

/* --- Game Page Hero --- */
.game-page-hero {
  padding: var(--sp-16) 0 var(--sp-6);
  text-align: center;
}

.game-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--sp-2);
}

.game-page-hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

.game-tags {
  display: flex;
  gap: var(--sp-1);
  justify-content: center;
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

/* --- Disclaimer Box --- */
.disclaimer-box {
  max-width: 800px;
  margin: var(--sp-6) auto;
  padding: var(--sp-4);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  text-align: center;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .mah-header__nav {
    display: none;
  }

  .mah-header__toggle {
    display: flex;
  }

  .mah-nav-drawer {
    display: flex;
  }

  .mah-header__logo {
    margin: 0;
    order: 1;
  }

  .mah-header__inner {
    justify-content: space-between;
  }

  .mah-features__grid {
    grid-template-columns: 1fr;
  }

  .mah-stats__grid {
    grid-template-columns: 1fr;
  }

  .mah-footer__cols {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .mah-hero__text h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .mah-hero__preview iframe {
    min-height: 300px;
  }

  .mah-iframe-box iframe {
    min-height: 400px;
  }

  .mah-contact-grid {
    grid-template-columns: 1fr;
  }

  .mah-hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .mah-steps__grid::before {
    display: none;
  }

  .age-modal__actions {
    flex-direction: column;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .mah-section {
    padding: var(--sp-8) 0;
  }

  .mah-heading-group {
    margin-bottom: var(--sp-6);
  }

  .mah-article__body {
    padding: var(--sp-3);
  }

  .mah-legal-page {
    padding: var(--sp-16) var(--sp-3) var(--sp-8);
  }
}

@media (max-width: 480px) {
  .mah-features__grid {
    gap: var(--sp-2);
  }

  .mah-hero {
    padding-top: var(--sp-12);
  }
}
