* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  color: #fff;
  font-family: 'Sniglet', cursive, sans-serif;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: max-content;
  display: flex;
  flex-direction: row;
  background-image: url('../assets/bg.png');
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 400vw 100%;
}

section {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  text-align: center;
}

.content-box {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 48px 56px;
  max-width: 760px;
  width: 100%;
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.37, 0, 0.63, 1), transform 0.8s cubic-bezier(0.37, 0, 0.63, 1);
}

h1 {
  font-family: 'DynaPuff', cursive;
  font-size: clamp(40px, 7vw, 84px);
  margin: 0 0 16px 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-family: 'Gaegu', cursive;
  font-size: clamp(38px, 6vw, 68px);
  margin: 0 0 16px 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

p {
  font-family: 'Sniglet', cursive;
  font-size: clamp(16px, 2vw, 22px);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
  color: #eee;
}

.village-list {
  list-style: none;
  padding: 0;
  margin: 20px auto 16px auto;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.village-list li {
  font-family: 'Sniglet', cursive;
  font-size: clamp(15px, 1.6vw, 19px);
  color: #eee;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.village-list li::before {
  content: '✦';
  color: #ffeb3b;
  font-size: 13px;
  flex-shrink: 0;
}

.village-item-title {
  font-family: 'DynaPuff', cursive;
  font-size: clamp(15px, 1.5vw, 18px);
  color: #ffeb3b;
  font-weight: 700;
}

.village-footer {
  font-family: 'Gaegu', cursive;
  font-size: clamp(22px, 2.5vw, 30px);
  color: #fff;
  margin: 14px auto 0 auto;
}

.sponsor-credit {
  margin-top: 14px;
  font-size: clamp(14px, 1.6vw, 18px);
  color: #ffeb3b;
}

.sponsor-credit a {
  color: #ffeb3b;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.sponsor-credit a:hover {
  opacity: 0.8;
}

section.is-visible .content-box {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta-btn {
  margin-top: 24px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: 'DynaPuff', cursive;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 34px;
  border: 2px solid #ffeb3b;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 0 #b45309, 0 0 18px rgba(255, 235, 59, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
}

.hero-cta-btn .arrow {
  color: #ffeb3b;
  transition: transform 0.15s ease;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #b45309, 0 0 26px rgba(255, 235, 59, 0.55);
  background: rgba(255, 235, 59, 0.15);
}

.hero-cta-btn:hover .arrow {
  transform: translateX(4px);
}

.hero-cta-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #b45309, 0 0 10px rgba(255, 235, 59, 0.25);
}

section.is-visible .hero-cta-btn {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.37, 0, 0.63, 1) 0.15s, transform 0.8s cubic-bezier(0.37, 0, 0.63, 1) 0.15s, box-shadow 0.12s ease, background 0.12s ease;
}

section.is-visible .hero-cta-btn:hover {
  transform: translateY(-2px);
}

section.is-visible .hero-cta-btn:active {
  transform: translateY(3px);
}

.cta-slide {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #060914 0%, #151326 60%, #2b1c2b 85%, #180d18 100%);
}

.cta-header {
  position: relative;
  z-index: 10;
  margin-bottom: 24px;
  max-width: 680px;
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.37, 0, 0.63, 1), transform 0.8s cubic-bezier(0.37, 0, 0.63, 1);
}

section.is-visible .cta-header {
  opacity: 1;
  transform: translateY(0);
}

.cta-slide .hero-cta-btn {
  margin-top: 0;
  position: relative;
  z-index: 10;
}

.cta-hills {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.firefly {
  position: absolute;
  border-radius: 50%;
  background: #ffeb3b;
  box-shadow: 0 0 10px #ffeb3b, 0 0 20px #8bc34a;
  animation: glowDrift 7s infinite ease-in-out alternate;
  pointer-events: none;
  z-index: 2;
}

.f1 { width: 4px; height: 4px; left: 22%; top: 65%; animation-duration: 6s; }
.f2 { width: 5px; height: 5px; left: 38%; top: 45%; animation-duration: 8s; animation-delay: 1.5s; }
.f3 { width: 4px; height: 4px; left: 62%; top: 58%; animation-duration: 7s; animation-delay: 0.8s; }
.f4 { width: 3px; height: 3px; left: 78%; top: 50%; animation-duration: 9s; animation-delay: 2.2s; }
.f5 { width: 4px; height: 4px; left: 50%; top: 72%; animation-duration: 6.5s; animation-delay: 3s; }

@keyframes glowDrift {
  0% { transform: translate(0, 0); opacity: 0.3; }
  50% { opacity: 0.95; }
  100% { transform: translate(25px, -30px); opacity: 0.25; }
}

.scroll-pill {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ff5722;
  color: #fff;
  padding: 14px 22px 14px 18px;
  border-radius: 28px 0 0 28px;
  box-shadow: -4px 6px 18px rgba(0, 0, 0, 0.45);
  font-family: 'DynaPuff', cursive;
  font-size: 16px;
  z-index: 100;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.scroll-pill.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(24px);
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 36px 42px 36px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
  z-index: 100;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.brand-title {
  font-family: 'DynaPuff', cursive;
  font-size: 20px;
  font-weight: 700;
  color: #ffeb3b;
  letter-spacing: -0.01em;
}

.brand-separator {
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
  user-select: none;
}

.hackclub-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hackclub-link:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

.hackclub-flag {
  height: 28px;
  width: auto;
  display: block;
}

.top-bar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  font-family: 'Gaegu', cursive;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.top-bar-right a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.top-bar-right a:hover {
  color: #ffeb3b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top-nav-sep {
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
}

.top-nav-item {
  color: #94a3b8;
  user-select: none;
}

.faq-box {
  cursor: pointer;
  position: relative;
  transition: opacity 0.8s cubic-bezier(0.37, 0, 0.63, 1), transform 0.8s cubic-bezier(0.37, 0, 0.63, 1), max-width 0.45s cubic-bezier(0.37, 0, 0.63, 1), max-height 0.45s cubic-bezier(0.37, 0, 0.63, 1), padding 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
  outline: none;
}

.faq-collapsed-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.faq-expanded-view {
  display: none;
  opacity: 0;
  width: 100%;
  height: 100%;
  flex-direction: column;
}

.faq-box.is-expanded {
  cursor: default;
  max-width: 860px;
  width: 90vw;
  max-height: 75vh;
  padding: 36px 44px;
  background-color: rgba(0, 0, 0, 0.75);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.faq-box.is-expanded .faq-collapsed-view {
  display: none;
}

.faq-box.is-expanded .faq-expanded-view {
  display: flex;
  opacity: 1;
}

.faq-expanded-view h2 {
  font-family: 'Gaegu', cursive;
  font-size: clamp(32px, 4.5vw, 48px);
  color: #fff;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.faq-scroll-container {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  text-align: left;
  max-height: calc(75vh - 120px);
  scrollbar-width: thin;
  scrollbar-color: #ffeb3b rgba(255, 255, 255, 0.1);
}

.faq-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.faq-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.faq-scroll-container::-webkit-scrollbar-thumb {
  background: #ffeb3b;
  border-radius: 3px;
}

.faq-scroll-container h3 {
  font-family: 'DynaPuff', cursive;
  font-size: clamp(18px, 2vw, 22px);
  color: #ffeb3b;
  margin: 24px 0 6px 0;
  font-weight: 700;
  line-height: 1.3;
}

.faq-scroll-container h3:first-child {
  margin-top: 0;
}

.faq-scroll-container p {
  font-family: 'Sniglet', cursive;
  font-size: clamp(15px, 1.4vw, 17px);
  color: #eee;
  margin: 0 0 16px 0;
  line-height: 1.6;
  max-width: none;
}

.entry-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.entry-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-prompt {
  font-family: 'DynaPuff', cursive;
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  color: #ffeb3b;
  text-align: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.entry-prompt.is-ready {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .content-box,
  .hero-cta-btn,
  .cta-header {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .firefly {
    animation: none;
  }
  .entry-overlay {
    transition: none;
  }
  .entry-prompt {
    transition: none;
  }
}

