:root {
  --orange: #FF5515;
  --orange-dark: #cc4410;
  --off-white: #F9F6F0;
  --white: #FFFFFF;
  --text: #2A1F1A;
  --text-mid: #524741;
  --thick-border: 4px solid var(--text);
  --hard-shadow: 6px 6px 0px rgba(42, 31, 26, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito', sans-serif; background: var(--off-white); color: var(--text); overflow-x: hidden; }

/* ── TOPBAR ── */
.topbar {
  background: var(--text); color: var(--white); text-align: center;
  padding: 12px 16px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.topbar span { color: #ddd; }
.topbar strong { color: var(--orange); font-weight: 900; }
.topbar-links { display: flex; gap: 16px; font-weight: 800; }
.topbar-links a { color: var(--orange); text-decoration: none; font-size: 14px; text-transform: uppercase; }
.topbar-links a:hover { color: white; text-decoration: underline; text-decoration-thickness: 3px; }

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: var(--thick-border);
  padding: 0 48px; height: 80px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { height: 50px; display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 90px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 12px; list-style: none; align-items: center; }
.nav-item > a {
  padding: 8px 16px; border-radius: 12px;
  color: var(--text); text-decoration: none;
  font-weight: 900; font-size: 16px; text-transform: uppercase;
  border: 3px solid transparent; transition: background 0.1s;
}
.nav-item > a:hover { background: #eee; border-color: #ddd; }

.nav-btn { background: var(--orange) !important; color: white !important; border: var(--thick-border) !important; box-shadow: 4px 4px 0px rgba(0,0,0,0.1); }
.nav-btn:hover { background: var(--orange-dark) !important; transform: translate(2px, 2px); box-shadow: 2px 2px 0px rgba(0,0,0,0.1); }

.nav-link-btn { border: 3px solid var(--text) !important; color: var(--text) !important; font-weight: 900 !important; background: var(--white) !important; }
.nav-link-btn:hover { background: #eee !important; color: var(--text) !important; }

/* ── HERO ── */
.hero { padding: 80px 24px; text-align: center; }
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 { font-family: 'Fredoka One', cursive; font-size: clamp(48px, 8vw, 90px); line-height: 1; color: var(--text); margin-bottom: 20px; }
.hero h1 .orange { color: var(--orange); }
.hero-sub { font-size: clamp(18px, 2.5vw, 22px); color: var(--text-mid); line-height: 1.5; max-width: 600px; margin: 0 auto 40px; font-weight: 800; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-orange { background: var(--orange); color: white; padding: 16px 36px; border-radius: 16px; font-weight: 900; font-size: 18px; text-decoration: none; border: var(--thick-border); box-shadow: var(--hard-shadow); display: inline-flex; align-items: center; justify-content: center; transition: transform 0.1s, box-shadow 0.1s; text-transform: uppercase; }
.btn-orange:hover { transform: translate(4px, 4px); box-shadow: 2px 2px 0px rgba(42,31,26,0.15); }
.btn-outline { background: var(--white); color: var(--text); padding: 16px 36px; border-radius: 16px; font-weight: 900; font-size: 18px; text-decoration: none; border: var(--thick-border); box-shadow: var(--hard-shadow); transition: transform 0.1s, box-shadow 0.1s; text-transform: uppercase; }
.btn-outline:hover { transform: translate(4px, 4px); box-shadow: 2px 2px 0px rgba(42,31,26,0.15); background: #eee; }

/* STATS */
.stats-strip { background: var(--orange); border-top: var(--thick-border); border-bottom: var(--thick-border); }
.stats-inner { display: flex; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; }
.stat-item { flex: 1; min-width: 180px; padding: 32px 24px; text-align: center; border-right: var(--thick-border); color: white; }
.stat-item:last-child { border-right: none; }
.stat-n { font-family: 'Fredoka One', cursive; font-size: 48px; line-height: 1; color: var(--white); display: block; text-shadow: 3px 3px 0px rgba(0,0,0,0.2); }
.stat-l { font-size: 16px; font-weight: 900; margin-top: 8px; text-transform: uppercase; color: var(--text); }

/* AVATARS MARQUEE */
.avatar-strip { background: var(--white); border-bottom: var(--thick-border); padding: 24px 0; overflow: hidden; }
.avatar-row { display: flex; gap: 16px; animation: marquee 30s linear infinite; width: max-content; }
.av { width: 64px; height: 64px; border-radius: 16px; border: 3px solid var(--text); flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: #eee; }
.av-inner { width: 40px; height: 40px; background: white; border-radius: 50%; border: 3px solid var(--text); position: relative; }
.av-inner::before, .av-inner::after { content: ''; position: absolute; background: var(--text); border-radius: 50%; top: 28%; width: 6px; height: 6px; }
.av-inner::before { left: 16%; } .av-inner::after { right: 16%; }
.av-mouth { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 18px; height: 8px; border: 3px solid var(--text); border-top: none; border-radius: 0 0 10px 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SECTIONS */
.section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-alt { background: #EAE6DB; border-top: var(--thick-border); border-bottom: var(--thick-border); }
h2 { font-family: 'Fredoka One', cursive; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; color: var(--text); margin-bottom: 16px; text-transform: uppercase; }
.section-sub { font-size: 20px; color: var(--text-mid); font-weight: 800; line-height: 1.5; max-width: 600px; margin-bottom: 48px; }

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feat-card { background: var(--white); border: var(--thick-border); border-radius: 16px; padding: 32px; box-shadow: var(--hard-shadow); }
.feat-title { font-family: 'Fredoka One', cursive; font-size: 24px; color: var(--text); margin-bottom: 12px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.feat-title::before { content: ''; display: inline-block; width: 16px; height: 16px; background: var(--orange); border: 3px solid var(--text); border-radius: 4px; }
.feat-desc { color: var(--text-mid); font-size: 17px; line-height: 1.5; font-weight: 700; }

/* ABOUT CONTENT */
.about-content { display: flex; flex-direction: column; gap: 32px; }
.about-panel { background: var(--white); border-radius: 16px; padding: 40px; border: var(--thick-border); box-shadow: var(--hard-shadow); }
.about-panel h3 { font-family: 'Fredoka One', cursive; font-size: 28px; color: var(--text); text-transform: uppercase; margin-bottom: 16px; }
.about-panel p { font-size: 18px; line-height: 1.6; color: var(--text-mid); font-weight: 700; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; margin-top: 24px; }
.team-member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; background: var(--off-white); border: var(--thick-border); border-radius: 16px; padding: 24px; box-shadow: var(--hard-shadow); }
.team-avatar { width: 90px; height: 90px; border-radius: 16px; border: var(--thick-border); overflow: hidden; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: 900; font-size: 20px; color: var(--text); }
.team-role { font-weight: 800; font-size: 14px; color: var(--orange); text-transform: uppercase; background: var(--text); padding: 4px 12px; border-radius: 8px; color: white; }

/* FAQ */
.faq-wrap { max-width: 800px; display: flex; flex-direction: column; gap: 16px; margin: 0 auto; }
.faq-card { background: var(--white); border: var(--thick-border); border-radius: 16px; box-shadow: var(--hard-shadow); }
.faq-btn { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 24px; display: flex; justify-content: space-between; align-items: center; font-family: 'Fredoka One', cursive; font-size: 20px; color: var(--text); }
.faq-btn:hover { background: #eee; border-radius: 12px; }
.faq-icon { font-size: 24px; font-weight: 900; color: var(--orange); transition: transform 0.2s; }
.faq-btn.open .faq-icon { transform: rotate(45deg); color: var(--text); }
.faq-ans { display: none; font-size: 17px; font-weight: 700; color: var(--text-mid); line-height: 1.6; padding: 0 24px 24px; }
.faq-ans.open { display: block; }

/* JOIN */
.join-panels { display: flex; flex-direction: column; gap: 32px; max-width: 800px; margin: 0 auto; }
.step-card { background: var(--white); border: var(--thick-border); border-radius: 16px; padding: 32px; box-shadow: var(--hard-shadow); display: flex; gap: 24px; align-items: flex-start; }
.step-num-box { flex-shrink: 0; width: 64px; height: 64px; background: var(--orange); border: var(--thick-border); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-family: 'Fredoka One', cursive; font-size: 32px; color: white; }
.step-content h3 { font-family: 'Fredoka One', cursive; font-size: 24px; color: var(--text); text-transform: uppercase; margin-bottom: 8px; }
.step-content p { font-size: 17px; line-height: 1.6; color: var(--text-mid); font-weight: 700; }

/* FOOTER */
footer { background: var(--text); color: white; padding: 40px 48px; border-top: 8px solid var(--orange); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-logo { font-family: 'Fredoka One', cursive; font-size: 24px; color: var(--orange); text-decoration: none; display: flex; align-items: center; gap: 12px; text-transform: uppercase; }
.footer-copy { font-size: 14px; font-weight: 800; color: #999; }
.footer-links { display: flex; gap: 24px; font-weight: 900; }
.footer-links a { color: white; text-decoration: none; font-size: 16px; text-transform: uppercase; }
.footer-links a:hover { color: var(--orange); text-decoration: underline; text-decoration-thickness: 3px; }

/* MINIGAME */
#minigame-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(42,31,26,0.95);
  z-index: 9999; display: none; flex-direction: column; align-items: center; justify-content: center;
  color: white; font-family: 'Fredoka One', cursive; cursor: crosshair; user-select: none;
}
#minigame-overlay.active { display: flex; }
#minigame-ui { position: absolute; top: 30px; left: 30px; font-size: 28px; pointer-events: none; }
#minigame-timer { color: var(--orange); text-shadow: 2px 2px 0px black; }
.target {
  position: absolute; width: 70px; height: 70px; border-radius: 50%;
  border: 6px solid white; display: flex; align-items: center; justify-content: center;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.5); cursor: crosshair;
  background: radial-gradient(circle, #E63946 25%, white 30%, white 45%, #E63946 50%);
}
.target.blue { background: radial-gradient(circle, #1D3557 25%, white 30%, white 45%, #1D3557 50%); }
.splat {
  position: absolute; width: 100px; height: 100px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23FF5515' d='M50 0C60 10 90 20 100 50C90 80 60 90 50 100C40 90 10 80 0 50C10 20 40 10 50 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none; opacity: 0; animation: splatAnim 0.6s forwards; transform: translate(-50%, -50%);
}
@keyframes splatAnim {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}
#minigame-end {
  display: none; flex-direction: column; align-items: center; gap: 20px;
  background: var(--white); color: var(--text); padding: 40px; border: var(--thick-border); border-radius: 16px; box-shadow: 8px 8px 0px rgba(0,0,0,0.5); text-align: center;
}

/* DODGEBALL MINIGAME */
#dodgeball-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(42,31,26,0.95);
  z-index: 9999; display: none; flex-direction: column; align-items: center; justify-content: center;
  color: white; font-family: 'Fredoka One', cursive; user-select: none;
}
#dodgeball-overlay.active { display: flex; }
#dodgeball-ui { position: absolute; top: 30px; left: 30px; font-size: 28px; pointer-events: none; }
#dodgeball-timer { color: var(--orange); text-shadow: 2px 2px 0px black; }
.dodgeball {
  position: absolute; width: 80px; height: 80px; border-radius: 50%;
  border: 4px solid #2a1f1a;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
  background: radial-gradient(circle at 30% 30%, #ff4d4d, #b30000);
  transition: left 1.5s linear;
}
#dodgeball-end {
  display: none; flex-direction: column; align-items: center; gap: 20px;
  background: var(--white); color: var(--text); padding: 40px; border: var(--thick-border); border-radius: 16px; box-shadow: 8px 8px 0px rgba(0,0,0,0.5); text-align: center;
}

@media (max-width: 800px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .topbar { display: none; }
  footer { flex-direction: column; text-align: center; }
  .stat-item { flex-basis: 50%; padding: 24px; border-bottom: var(--thick-border); }
  .stat-item:nth-child(even) { border-right: none; }
  .step-card { flex-direction: column; align-items: center; text-align: center; }
}
