.loader-overlay { transition: opacity 0.5s ease; }
.loader-overlay.hidden { opacity: 0; pointer-events: none; }
.loader-bg { background: #050505; }
.loader-segment { width: 5%; height: 100%; border-right: 1px solid rgba(255,255,255,0.2); flex-shrink: 0; }
.loader-particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: rgba(59, 133, 38, 0.6);
  box-shadow: 0 0 8px rgba(59, 133, 38, 0.4);
  pointer-events: none;
  animation: particleRise linear infinite;
}
.loader-particle.particle-sm { width: 3px; height: 3px; }
.loader-particle.particle-md { width: 5px; height: 5px; }
.loader-particle.particle-lg { width: 7px; height: 7px; }
@keyframes particleRise {
  0% { transform: translateY(0); opacity: 0; }
  5% { opacity: 0.8; }
  95% { opacity: 0.8; }
  100% { transform: translateY(-100vh); opacity: 0; }
}
.font-minecraft-loader {
  font-family: 'Press Start 2P', 'Courier New', monospace !important;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: #6b6b6b;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.font-minecraft, .minecraft_1776b7e-module__8gvL1q__variable {
  font-family: 'Press Start 2P', 'Courier New', monospace !important;
}
.font-sans, .poppins_c2999306-module__eS-Bzq__variable {
  font-family: 'Poppins', system-ui, sans-serif !important;
}

html { scroll-behavior: smooth; }
body { min-height: 100vh; overflow-x: hidden; }

body {
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(59, 133, 38, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(59, 133, 38, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(34, 100, 50, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #070b0f 0%, #0a1015 15%, #0d1619 35%, #0a1412 55%, #0d1619 75%, #080c10 100%) !important;
  background-attachment: fixed;
}

.bg-background { background-color: #0f1419 !important; }
.bg-background\/70 { background-color: rgba(15, 20, 25, 0.7) !important; }

@media (max-width: 767px) {
  #main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #0f1419;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    z-index: 40;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  }
  #main-nav:not(.mobile-open) { display: none !important; }
  #main-nav.mobile-open { display: flex !important; }
}

.wave-fill,
.wave-fill path {
  fill: url(#waveGradient);
}

.wave-animated {
  animation: waveFlow 6s ease-in-out infinite;
  transform-origin: center bottom;
}
.wave-animated svg {
  animation: wavePulse 4s ease-in-out infinite;
  transform-origin: center center;
}
section:nth-of-type(1) .wave-animated { animation-delay: 0s; }
section:nth-of-type(2) .wave-animated { animation-delay: -1.2s; }
section:nth-of-type(3) .wave-animated { animation-delay: -2.5s; }
section:nth-of-type(4) .wave-animated { animation-delay: -0.5s; }
section:nth-of-type(5) .wave-animated { animation-delay: -1.8s; }
section:nth-of-type(6) .wave-animated { animation-delay: -3s; }
section:nth-of-type(7) .wave-animated { animation-delay: -0.8s; }
section:nth-of-type(8) .wave-animated { animation-delay: -2.2s; }
@keyframes waveFlow {
  0%, 100% { transform: translateX(0) scaleX(1) rotate(0deg); }
  20% { transform: translateX(-4%) scaleX(1.06) rotate(-0.3deg); }
  40% { transform: translateX(3%) scaleX(0.94) rotate(0.2deg); }
  60% { transform: translateX(5%) scaleX(1.04) rotate(0.4deg); }
  80% { transform: translateX(-3%) scaleX(0.96) rotate(-0.2deg); }
}
@keyframes wavePulse {
  0%, 100% { opacity: 1; transform: scaleY(1) scaleX(1); }
  33% { opacity: 0.88; transform: scaleY(1.12) scaleX(1.03); }
  66% { opacity: 0.95; transform: scaleY(0.98) scaleX(0.97); }
}

.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* Minecraft-inspired visual system */
:root {
  --mc-grass: #5f9f37;
  --mc-grass-light: #83c94b;
  --mc-grass-dark: #315f27;
  --mc-dirt: #79543a;
  --mc-dirt-dark: #493322;
  --mc-stone: #858585;
  --mc-coal: #171a16;
  --mc-cream: #f4f0dc;
}

body {
  color: var(--mc-cream);
  background-color: #101a10 !important;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(95,159,55,.22), transparent 42%),
    linear-gradient(180deg, #142015, #0d150e 52%, #15110d) !important;
  background-size: 32px 32px, 32px 32px, auto, auto !important;
}

.bg-background { background-color: #101a10 !important; }
.bg-background\/70 { background-color: rgba(10, 18, 10, .76) !important; }
.bg-card, .bg-card\/80 {
  background: linear-gradient(145deg, rgba(43,55,39,.96), rgba(24,32,23,.96)) !important;
}
.bg-secondary, .bg-secondary\/30, .bg-secondary\/50 { background-color: rgba(82,65,48,.66) !important; }
.bg-primary { background-color: var(--mc-grass) !important; }
.bg-primary\/10 { background-color: rgba(95,159,55,.16) !important; }
.text-primary { color: var(--mc-grass-light) !important; }
.text-foreground { color: var(--mc-cream) !important; }
.text-muted-foreground { color: #c1c6b5 !important; }
.text-primary-foreground { color: #fff !important; }
.border-border, .border-border\/50 { border-color: rgba(151,140,118,.38) !important; }
.border-primary\/30 { border-color: rgba(131,201,75,.55) !important; }

header {
  background: rgba(13,21,14,.88);
  border-bottom: 4px solid var(--mc-dirt);
  box-shadow: 0 4px 0 var(--mc-dirt-dark), 0 10px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}
header img {
  height: 3.25rem !important;
  width: auto !important;
  object-fit: contain;
}

.rounded-sm { border-radius: 2px !important; }
.bg-card, .bg-card\/80, .group.rounded-sm, #faq .rounded-sm.border {
  box-shadow: inset 0 3px rgba(255,255,255,.055), inset 0 -4px rgba(0,0,0,.3), 0 8px 20px rgba(0,0,0,.22);
}

a.bg-primary, button.bg-primary, #loader-bar {
  border: 2px solid #9bd762;
  border-bottom-color: #315f27;
  border-right-color: #315f27;
  box-shadow: inset 0 -3px rgba(0,0,0,.22), 0 4px 0 #24491d;
  text-shadow: 0 2px rgba(0,0,0,.35);
}
a.bg-primary:hover, button.bg-primary:hover {
  background-color: #70b642 !important;
  transform: translateY(-1px);
}
a.bg-primary:active, button.bg-primary:active { transform: translateY(3px); box-shadow: none; }

section { position: relative; }
section:not(:first-of-type)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--mc-grass-dark), var(--mc-grass-light), var(--mc-grass-dark));
  opacity: .72;
}

.wave-animated { opacity: .32; }
.wave-fill, .wave-fill path { fill: #365c29 !important; }

button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f2c14e !important; outline-offset: 4px; }

@media (max-width: 767px) {
  header > div {
    position: relative;
    min-height: 4.5rem;
    justify-content: flex-end !important;
    padding-top: .5rem !important;
    padding-bottom: .5rem !important;
  }
  header > div > div:first-child {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  header img { height: 3.75rem !important; }
  #menu-toggle { position: relative; z-index: 2; }
  #main-nav { top: 76px; background: #142015; border-bottom: 4px solid var(--mc-dirt); }
}

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

/* RPG studio polish */
main section:first-of-type::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(6,10,6,.38), transparent 42%, rgba(6,10,6,.28));
  box-shadow: inset 0 -100px 100px rgba(7,12,7,.5);
}
main section:first-of-type > .relative { z-index: 12; }
main section:first-of-type > a { z-index: 13; }

.group.rounded-sm { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.group.rounded-sm:hover {
  transform: translateY(-5px);
  border-color: rgba(131,201,75,.6) !important;
  box-shadow: inset 0 3px rgba(255,255,255,.06), inset 0 -4px rgba(0,0,0,.3), 0 14px 34px rgba(0,0,0,.34);
}

footer { border-top: 5px solid var(--mc-dirt-dark) !important; }
