/* Lore Section */
#lore {
  background: var(--bg-light);
  border-bottom: 8px solid var(--border-color);
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.comic-panel {
  display: flex;
  flex-direction: column;
}

.comic-img-wrapper {
  border: 6px solid var(--border-color);
  box-shadow: 8px 8px 0 var(--shadow-color);
  background: #FFF;
  padding: 10px;
  margin-bottom: 20px;
  position: relative;
}

.comic-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border: 4px solid var(--border-color);
}

.panel-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border: 4px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bungee', sans-serif;
  font-size: 20px;
  color: var(--border-color);
  z-index: 2;
}

.comic-caption {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  background: var(--accent);
  border: 4px solid var(--border-color);
  transform: rotate(-1deg);
}

/* Tokenomics Section */
#tokenomics {
  background: var(--secondary);
  color: var(--bg-light);
  border-bottom: 8px solid var(--primary);
}

#tokenomics .section-title {
  color: var(--bg-light);
}

#tokenomics .section-title::after {
  background-color: var(--accent);
  border-color: var(--bg-light);
}

.tokenomics-content {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.pie-chart-container {
  position: relative;
  width: 350px;
  height: 350px;
}

.pie-chart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid var(--bg-light);
  background: conic-gradient(
    var(--primary) 0% 80%, 
    var(--accent) 80% 95%, 
    var(--bg-light) 95% 100%
  );
  box-shadow: 0 0 0 6px var(--border-color), 12px 12px 0 var(--primary);
}

.pie-label {
  position: absolute;
  background: var(--bg-light);
  color: var(--border-color);
  border: 4px solid var(--border-color);
  padding: 5px 10px;
  font-family: 'Bungee', sans-serif;
  font-size: 14px;
  box-shadow: 4px 4px 0 var(--primary);
}

.pie-label.lp { top: 20%; right: -20px; }
.pie-label.team { bottom: 20%; left: -20px; }
.pie-label.marketing { top: 10%; left: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  flex: 1;
  min-width: 300px;
}

.stat-box {
  background: var(--bg-light);
  color: var(--border-color);
  border: 6px solid var(--primary);
  padding: 20px;
  text-align: center;
  box-shadow: 8px 8px 0 var(--primary);
  transform: rotate(1deg);
}

.stat-box:nth-child(even) {
  transform: rotate(-1deg);
  border-color: var(--accent);
  box-shadow: 8px 8px 0 var(--accent);
}

.stat-value {
  font-family: 'Impact', sans-serif;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-family: 'Bungee', sans-serif;
  font-size: 16px;
  color: var(--border-color);
}

/* Roadmap Section */
#roadmap {
  background: var(--bg-light);
  border-bottom: 8px solid var(--border-color);
}

.roadmap-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.roadmap-path {
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--border-color);
  z-index: 0;
}

.roadmap-phase {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  padding-left: 100px;
}

.phase-dot {
  position: absolute;
  left: 24px;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--accent);
  border: 6px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bungee', sans-serif;
  font-size: 24px;
  box-shadow: 4px 4px 0 var(--shadow-color);
}

.roadmap-phase.active .phase-dot {
  background: var(--primary);
  animation: pulse-border 2s infinite;
}

.roadmap-phase.done .phase-dot {
  background: #00FF00;
}

.phase-content {
  width: 100%;
}

.phase-content h3 {
  font-size: 28px;
  margin-bottom: 10px;
  display: inline-block;
  background: var(--border-color);
  color: var(--bg-light);
  padding: 5px 15px;
  transform: rotate(-1deg);
}

.phase-content ul {
  list-style: none;
  margin-top: 15px;
}

.phase-content li {
  font-size: 20px;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.phase-content li::before {
  content: '🚀';
  position: absolute;
  left: 0;
  top: 2px;
}

/* How to Buy Section */
#how-to-buy {
  background: var(--primary);
  border-bottom: 8px solid var(--border-color);
}

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

.step-card {
  text-align: center;
}

.step-icon {
  font-size: 60px;
  margin-bottom: 20px;
  display: inline-block;
  background: var(--bg-light);
  width: 100px;
  height: 100px;
  line-height: 90px;
  border: 6px solid var(--border-color);
  border-radius: 50%;
  box-shadow: 6px 6px 0 var(--shadow-color);
}

.step-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.step-card p {
  font-size: 18px;
  font-weight: bold;
}

/* Community Section */
#community {
  background: var(--secondary);
  color: var(--bg-light);
  text-align: center;
}

#community .section-title {
  color: var(--bg-light);
}

#community .section-title::after {
  background-color: var(--primary);
  border-color: var(--bg-light);
}

.holder-count {
  font-family: 'Impact', sans-serif;
  font-size: clamp(40px, 8vw, 80px);
  color: var(--accent);
  margin: 40px 0;
  text-shadow: 4px 4px 0 var(--primary);
  display: inline-block;
  animation: float 2s ease-in-out infinite;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.social-btn {
  width: 300px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: 'Bungee', sans-serif;
  font-size: 24px;
  background: var(--bg-light);
  color: var(--border-color);
  border: 6px solid var(--border-color);
  box-shadow: 8px 8px 0 var(--primary);
  transition: transform 0.1s, box-shadow 0.1s;
}

.social-btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--primary);
}

.social-btn.tg { background: #0088cc; color: #FFF; }
.social-btn.x { background: #000; color: #FFF; border-color: #FFF; }
.social-btn.discord { background: #5865F2; color: #FFF; }

.party-mascot {
  width: 200px;
  margin: 0 auto;
}

/* Footer */
#footer {
  background: var(--border-color);
  color: var(--bg-light);
  padding: 40px 20px;
  text-align: center;
  border-top: 8px solid var(--primary);
}

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

.footer-disclaimer {
  font-size: 14px;
  max-width: 600px;
  opacity: 0.8;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  border: 4px solid var(--border-color);
  box-shadow: 4px 4px 0 var(--shadow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
  z-index: 99;
  transition: transform 0.1s;
  color: var(--border-color);
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--secondary);
    padding: 20px;
    border-bottom: 6px solid var(--primary);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-path {
    left: 30px;
  }

  .roadmap-phase {
    padding-left: 70px;
  }

  .phase-dot {
    left: 10px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

.coin-particle {
  position: absolute;
  font-size: 30px;
  pointer-events: none;
  z-index: 10;
  animation: coin-fall linear forwards;
}

.click-spark {
  position: absolute;
  font-size: 20px;
  pointer-events: none;
  z-index: 9999;
  animation: spark-fade 0.5s ease-out forwards;
}

@keyframes spark-fade {
  0% { transform: scale(1) translate(0,0); opacity: 1; }
  100% { transform: scale(0) translate(var(--tx), var(--ty)); opacity: 0; }
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: var(--border-color);
  padding: 10px 20px;
  z-index: 9999;
  font-family: "Bungee", sans-serif;
  border: 4px solid var(--border-color);
  box-shadow: 4px 4px 0 var(--border-color);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 20px;
}

*:focus-visible {
  outline: 4px dashed var(--border-color);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto !important;
  }
  .hero-mascot, .party-mascot, .glitch-text, .scroll-anim {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}