/* ============================================================
   MOONZ WORKS — style.css
   다크 나이트스카이 테마 / 반응형 / 스크롤·마이크로 인터랙션
   ============================================================ */

:root {
  --bg: #0b1026;
  --bg-2: #10173a;
  --bg-3: #161f4d;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef1ff;
  --muted: #a8b0d3;
  --gold: #ffd86b;
  --gold-deep: #f4b74a;
  --coral: #ff7e67;
  --mint: #7fe8c3;
  --violet: #8f9bff;
  --font-display: "Jua", "Fredoka", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", "Fredoka", sans-serif;
  --radius: 20px;
  --header-h: 68px;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ---------- 별 캔버스 ---------- */
#stars {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- 스크롤 진행 표시 ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px;
  z-index: 60; pointer-events: none;
}
#scroll-bar {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  border-radius: 0 4px 4px 0;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.08s linear;
}
#scroll-moon {
  position: absolute; left: 0; top: -5px;
  font-size: 20px; line-height: 1;
  filter: drop-shadow(0 0 6px rgba(255, 216, 107, 0.7));
  transition: transform 0.08s linear;
}
body.menu-open #scroll-progress { visibility: hidden; }

/* ---------- 헤더 ---------- */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: box-shadow 0.35s ease;
}
/* 블러 배경은 가상요소에 — 헤더 자체에 backdrop-filter를 주면
   fixed 자손(.nav-menu)의 containing block이 되어 모바일 메뉴가 잘림 */
#header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 16, 38, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
#header.scrolled::before { opacity: 1; }
#header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; transition: transform 0.4s var(--ease-bounce); }
.brand:hover .brand-mark { transform: rotate(-14deg) scale(1.1); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem; letter-spacing: 0.04em; color: var(--text);
}
.brand-name em { font-style: normal; color: var(--gold); }

.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-link {
  position: relative; font-weight: 500; color: var(--muted);
  padding: 6px 2px; transition: color 0.25s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-bounce);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px; z-index: 61;
}
.nav-toggle span {
  width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--text); transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* 언어 토글 */
.lang-toggle {
  position: relative; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; gap: 2px;
}
.lang-opt {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 0.8rem;
  padding: 4px 12px; color: var(--muted); transition: color 0.3s ease;
}
.lang-toggle[data-lang="ko"] .lang-opt[data-lang="ko"],
.lang-toggle[data-lang="en"] .lang-opt[data-lang="en"] { color: #1c2050; }
.lang-thumb {
  position: absolute; top: 4px; left: 4px;
  width: calc(50% - 5px); height: calc(100% - 8px);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-radius: 999px;
  transition: transform 0.35s var(--ease-bounce);
}
.lang-toggle[data-lang="en"] .lang-thumb { transform: translateX(calc(100% + 2px)); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px;
  padding: 14px 28px; font-size: 1rem; font-weight: 700;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--coral));
  color: #241a33;
  box-shadow: 0 8px 24px rgba(255, 158, 103, 0.35);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 34px rgba(255, 158, 103, 0.5); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-3px); }
.btn-mini { padding: 8px 16px; font-size: 0.85rem; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-mini:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- 게이트 ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(143, 155, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(255, 216, 107, 0.1), transparent 55%),
    var(--bg);
  opacity: 1; transition: opacity 0.6s ease, visibility 0.6s ease;
}
.gate.unlocked { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff8, transparent 100%),
    radial-gradient(1px 1px at 75% 18%, #fff6, transparent 100%),
    radial-gradient(2px 2px at 55% 65%, #ffd86b66, transparent 100%),
    radial-gradient(1px 1px at 35% 80%, #fff7, transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 55%, #fff5, transparent 100%);
}
.gate-card {
  position: relative;
  width: min(420px, 90%);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; padding: 44px 36px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.gate-logo { width: 88px; height: 88px; margin: 0 auto 14px; object-fit: contain; animation: float 5s ease-in-out infinite; }
.gate-title { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 0.05em; margin-bottom: 8px; }
.gate-sub { color: var(--muted); margin-bottom: 26px; font-size: 0.95rem; }
.gate-btn { width: 100%; margin-bottom: 12px; }
.gate-msg { min-height: 1.4em; font-size: 0.85rem; color: var(--coral); margin-top: 4px; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; /* svh 미지원 브라우저 폴백 */
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 40px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.9rem; font-weight: 500; color: var(--gold);
  background: rgba(255, 216, 107, 0.1);
  border: 1px solid rgba(255, 216, 107, 0.3);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero-title:focus { outline: none; } /* 게이트 해제 시 프로그램적 포커스 대상 */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.18; margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.grad-text {
  background: linear-gradient(120deg, var(--gold) 10%, var(--coral) 55%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; display: flex; justify-content: center; }
#hero-moon {
  width: min(380px, 78%);
  height: auto; /* width/height 속성의 고정 높이를 무시하고 비율 유지 */
  filter: drop-shadow(0 0 60px rgba(255, 216, 107, 0.35));
  animation: float 6s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.3s var(--ease-bounce);
  user-select: none; -webkit-user-select: none;
}
#hero-moon:hover { transform: scale(1.04) rotate(2deg); }
#hero-moon.wiggle { animation: wiggle 0.5s var(--ease-bounce); }

.hero-orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit-item {
  position: absolute; top: 50%; left: 50%;
  font-size: 1.5rem; line-height: 1;
  margin: -0.5em 0 0 -0.5em; /* 궤도 중심을 글리프 중앙에 맞춤 */
  animation: orbit 18s linear infinite;
  animation-delay: calc(var(--i) * -3s);
}

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.8rem;
  animation: fade-bob 2.4s ease-in-out infinite;
}
.mouse {
  width: 22px; height: 34px;
  border: 2px solid var(--muted); border-radius: 12px;
  position: relative;
}
.mouse::after {
  content: ""; position: absolute; top: 6px; left: 50%;
  width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 3px; background: var(--gold);
  animation: mouse-wheel 1.6s ease-in-out infinite;
}

/* ---------- 마퀴 ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 16px;
  position: relative; z-index: 1;
}
.marquee-track {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 48px;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--muted);
}
.marquee-track span { opacity: 0.75; transition: opacity 0.25s, color 0.25s; white-space: nowrap; }
.marquee-track span:hover { opacity: 1; color: var(--gold); }

/* ---------- 섹션 공통 ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(143, 155, 255, 0.05) 18%, rgba(143, 155, 255, 0.05) 82%, transparent);
}
.section-eyebrow {
  font-family: "Fredoka", var(--font-display);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.22em;
  color: var(--violet); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 18px;
}
.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 48px; }

/* ---------- ABOUT ---------- */
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-bottom: 64px;
}
.value-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform 0.35s var(--ease-bounce), border-color 0.3s ease, background 0.3s ease;
}
.value-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 216, 107, 0.4);
  background: var(--surface-2);
}
.value-emoji {
  font-size: 2.2rem; margin-bottom: 14px;
  display: inline-block;
  transition: transform 0.4s var(--ease-bounce);
}
.value-card:hover .value-emoji { transform: scale(1.25) rotate(-8deg); }
.value-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 0.95rem; }

.stat-row {
  display: flex; justify-content: space-around; gap: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 20px;
  flex-wrap: wrap;
}
.stat { text-align: center; min-width: 140px; }
.stat-num {
  font-family: "Fredoka", var(--font-display); font-weight: 700;
  font-size: 2.6rem; color: var(--gold);
}
.stat-unit { font-family: "Fredoka", var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--gold); }
.stat-label { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- GAMES ---------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 0.9rem; font-weight: 500;
  transition: all 0.25s var(--ease-bounce);
}
.chip:hover { color: var(--text); transform: translateY(-2px); }
.chip.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #241a33; border-color: transparent; font-weight: 700;
}

.game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.game-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.game-card:hover {
  border-color: rgba(255, 216, 107, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.game-card.filtered-out { display: none; }
.game-thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-3); }
.game-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.game-card:hover .game-thumb img { transform: scale(1.06); }
.game-body { padding: 22px 22px 26px; }
.game-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: 999px;
}
.tag-strategy { background: rgba(255, 126, 103, 0.16); color: var(--coral); }
.tag-defense  { background: rgba(143, 155, 255, 0.16); color: var(--violet); }
.tag-tycoon   { background: rgba(255, 216, 107, 0.16); color: var(--gold); }
.tag-healing  { background: rgba(127, 232, 195, 0.16); color: var(--mint); }
.tag-casual   { background: rgba(255, 170, 220, 0.18); color: #ffaadc; }
.badge-dev, .badge-soon {
  font-size: 0.72rem; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  border: 1px dashed var(--line); color: var(--muted);
}
.badge-soon { border-style: solid; color: var(--mint); border-color: rgba(127, 232, 195, 0.4); }
.game-body h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 8px; }
.game-body p { color: var(--muted); font-size: 0.92rem; }

.game-card-next {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed; background: transparent;
  min-height: 300px;
}
.game-next-inner { text-align: center; padding: 30px; }
.game-next-q {
  font-family: var(--font-display); font-size: 3rem; color: var(--gold);
  display: inline-block; margin-bottom: 10px;
  animation: float 3.5s ease-in-out infinite;
}
.game-next-inner h3 { font-family: var(--font-display); margin-bottom: 8px; }
.game-next-inner p { color: var(--muted); font-size: 0.9rem; }

/* ---------- PROCESS ---------- */
.process-track {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 22px;
  transition: transform 0.35s var(--ease-bounce), border-color 0.3s ease;
}
.process-step:hover { transform: translateY(-6px); border-color: rgba(143, 155, 255, 0.5); }
.process-step::after {
  content: "→";
  position: absolute; right: -18px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); font-size: 1.2rem; z-index: 2;
}
.process-step:last-child::after { display: none; }
.process-moon {
  font-size: 2rem; display: inline-block; margin-bottom: 12px;
  transition: transform 0.4s var(--ease-bounce);
}
.process-step:hover .process-moon { transform: scale(1.3) rotate(12deg); }
.process-step h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 0.88rem; }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  align-items: start;
}
.contact-email {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px;
}
.contact-email-addr { font-family: "Fredoka", monospace; font-size: 0.95rem; color: var(--gold); word-break: break-all; }

.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px;
}
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 500; font-size: 0.92rem; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body); font-size: 1rem;
  background: rgba(11, 16, 38, 0.6); color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 216, 107, 0.18);
}
.contact-form input.invalid, .contact-form textarea.invalid {
  border-color: var(--coral);
  border-style: dashed; /* 색 외의 시각 단서 */
  box-shadow: 0 0 0 3px rgba(255, 126, 103, 0.18);
}
.form-note { font-size: 0.8rem; color: var(--muted); text-align: center; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark { width: 42px; height: 42px; object-fit: contain; }
.footer-brand strong { font-family: var(--font-display); letter-spacing: 0.04em; }
.footer-brand p { color: var(--muted); font-size: 0.85rem; }
.footer-copy { color: var(--muted); font-size: 0.85rem; }
.footer-registration {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.8rem;
}
.footer-registration div { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-registration dt::after { content: ":"; }
.footer-registration dd { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--surface-2); border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text); font-size: 0.92rem;
  padding: 13px 22px; border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-bounce);
  z-index: 80; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 플로팅 컨트롤 (BGM / 모션) ---------- */
.float-controls {
  position: fixed; right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 65;
}
.float-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 1.15rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: transform 0.25s var(--ease-bounce), background 0.25s ease, border-color 0.25s ease;
}
.float-btn:hover { transform: translateY(-3px) scale(1.06); background: rgba(255, 255, 255, 0.14); }
.float-btn.on { border-color: rgba(255, 216, 107, 0.55); box-shadow: 0 0 16px rgba(255, 216, 107, 0.25); }
@media (max-width: 767px) {
  .float-controls { right: 12px; bottom: 12px; }
  .float-btn { width: 42px; height: 42px; }
}

/* 사용자가 ⏸ 버튼으로 장식 애니메이션을 멈춘 상태 */
.motion-off .orbit-item,
.motion-off #hero-moon,
.motion-off .gate-logo,
.motion-off .game-next-q,
.motion-off .scroll-hint,
.motion-off .mouse::after {
  animation-play-state: paused !important;
}

/* ---------- 스크롤 리빌 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s var(--ease-bounce) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 파티클(달 이스터에그) ---------- */
.star-pop {
  position: fixed; z-index: 70; pointer-events: none;
  font-size: 1.3rem;
  animation: star-pop 0.9s ease-out forwards;
}

/* ---------- 키프레임 ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes wiggle {
  0% { transform: rotate(0) scale(1); }
  30% { transform: rotate(-8deg) scale(1.08); }
  60% { transform: rotate(6deg) scale(1.05); }
  100% { transform: rotate(0) scale(1); }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(215px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(215px) rotate(-360deg); }
}
@keyframes fade-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}
@keyframes mouse-wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes star-pop {
  0% { transform: translate(0, 0) scale(0.6) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(var(--rot)); opacity: 0; }
}

/* ============================================================
   반응형 — 태블릿 (~1023px)
   ============================================================ */
@media (max-width: 1023px) {
  .section { padding: 84px 0; }
  .hero-grid { gap: 24px; }
  .value-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .value-card { padding: 24px 18px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .orbit-item { animation-name: orbit-sm; }
}
@keyframes orbit-sm {
  from { transform: rotate(0deg) translateX(175px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(175px) rotate(-360deg); }
}

/* ============================================================
   반응형 — 모바일 (~767px)
   ============================================================ */
@media (max-width: 767px) {
  .section { padding: 68px 0; }
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; margin-top: 10px; }
  #hero-moon { width: min(230px, 62%); }
  .hero-cta { justify-content: center; }
  .hero-badge { margin-bottom: 14px; }
  .hero-sub br { display: none; }
  .section-lead br { display: none; }
  .scroll-hint { display: none; }

  .value-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; }
  .stat-row { gap: 8px; padding: 26px 12px; }
  .stat { min-width: 100px; }
  .stat-num { font-size: 2rem; }
  .stat-unit { font-size: 1.2rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; }
  .footer { padding-bottom: 140px; }
  .footer-registration { flex-direction: column; align-items: center; gap: 12px; }
  .footer-registration div { flex-direction: column; align-items: center; gap: 2px; }

  /* 모바일 내비게이션 */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 0;
    background: rgba(11, 16, 38, 0.96);
    backdrop-filter: blur(16px);
    flex-direction: column; justify-content: center;
    gap: 30px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 55;
  }
  .nav-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-link { font-size: 1.4rem; font-family: var(--font-display); }
  .orbit-item { animation-name: orbit-xs; font-size: 1.2rem; }
}
@keyframes orbit-xs {
  from { transform: rotate(0deg) translateX(130px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(130px) rotate(-360deg); }
}

/* ============================================================
   모션 최소화 설정 존중
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .orbit-item { animation: none !important; }
  #hero-moon { animation: none; }
}
