/* ==========================================================================
   YEETFORGE — 코즈믹 대장간 아케이드
   키컬러: 바이올렛 / 서브: 용광로 엠버 / 포인트: 라임
   ========================================================================== */

:root {
  /* 배경 */
  --bg-deep: #0a0512;
  --bg: #0e0818;
  --bg-raise: #170d28;
  --bg-card: #130a20;

  /* 키컬러: 바이올렛 */
  --violet: #a06bff;
  --violet-bright: #c9a6ff;
  --violet-deep: #5b2ebf;
  --violet-soft: rgba(160, 107, 255, 0.14);

  /* 서브컬러: 용광로 엠버 */
  --ember: #ff8a3d;
  --ember-bright: #ffb03a;
  --ember-soft: rgba(255, 138, 61, 0.14);

  /* 포인트: 라임 */
  --lime: #c6f53f;
  --lime-soft: rgba(198, 245, 63, 0.14);

  /* 블러드에코 전용: 핏빛 */
  --blood: #e13b52;
  --blood-soft: rgba(225, 59, 82, 0.16);

  /* 텍스트 */
  --text: #f1eaff;
  --text-muted: #a395c4;
  --text-dim: #6f6390;

  --line: rgba(176, 132, 255, 0.16);

  /* 폰트 */
  --font-display: "Black Han Sans", "Pretendard Variable", sans-serif;
  --font-pixel: "Press Start 2P", monospace;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, sans-serif;

  /* 픽셀 계단 코너 (8px 스텝) */
  --pixel-clip: polygon(
    0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0,
    calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px)
  );
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* 모바일 더블탭 확대 방지 — 핀치 줌·스크롤은 유지 (접근성), 연타 시 탭 지연도 제거됨 */
  touch-action: manipulation;
}

body {
  background-color: var(--bg-deep);
  /* 은은한 바이올렛 성운 + 픽셀 그리드 */
  background-image:
    radial-gradient(ellipse 60% 45% at 18% 8%, rgba(91, 46, 191, 0.28), transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(255, 138, 61, 0.07), transparent 60%),
    radial-gradient(ellipse 55% 45% at 60% 90%, rgba(91, 46, 191, 0.18), transparent 65%),
    linear-gradient(rgba(160, 107, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 107, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--violet); color: var(--bg-deep); }

img, svg { display: block; max-width: 100%; }

/* 구형 iOS 등 조상 touch-action 미반영 브라우저 대비, 인터랙티브 요소에도 직접 지정 */
a { color: inherit; text-decoration: none; touch-action: manipulation; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }

/* ---------- 오버레이 레이어 ---------- */
.star-field {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}
.star-field .pixel-star {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--violet-bright);
  animation: star-twinkle 3s steps(2) infinite;
  animation-delay: var(--twinkle-delay, 0s);
  opacity: 0.7;
}
.star-field .pixel-star.star-ember { background: var(--ember-bright); }
.star-field .pixel-star.star-big { width: 5px; height: 5px; }
@keyframes star-twinkle {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 0.12; }
}

.crt-overlay {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 60;
  background:
    repeating-linear-gradient(0deg, rgba(10, 5, 18, 0.22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.crt-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 100% at 50% 50%, transparent 60%, rgba(6, 3, 12, 0.55) 100%);
}

.yeet-layer {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 55;
  overflow: hidden;
}

/* ---------- 던져지는 카트리지 ---------- */
/* 래퍼가 X축 직선 이동 + 회전, 자식이 Y축 상승/하강 → 합성하면 포물선 */
.yeet-obj {
  position: absolute;
  left: var(--start-x); top: var(--start-y);
  animation: yeet-x var(--yeet-time) linear forwards;
}
.yeet-obj-inner {
  display: block;
  animation:
    yeet-y-up calc(var(--yeet-time) * 0.42) cubic-bezier(0.16, 0.8, 0.4, 1) forwards,
    yeet-y-down calc(var(--yeet-time) * 0.58) cubic-bezier(0.6, 0, 0.9, 0.4) calc(var(--yeet-time) * 0.42) forwards;
}
.yeet-obj-inner > * { animation: yeet-spin calc(var(--yeet-time) * 0.5) linear infinite; }
.yeet-sprite {
  /* 크기를 명시하지 않으면 0×0으로 접혀 발사체가 보이지 않는다 */
  display: block;
  width: 54px; height: 45px;
  margin-left: -27px; margin-top: -22px; /* 발사 원점을 중심에 정렬 */
}
.yeet-sprite svg { width: 100%; height: 100%; }
@keyframes yeet-x   { to { transform: translateX(var(--throw-x)); } }
@keyframes yeet-y-up   { to { transform: translateY(var(--throw-up)); } }
@keyframes yeet-y-down {
  /* 상승 애니메이션의 종점에서 이어받아 화면 밖까지 낙하 */
  from { transform: translateY(var(--throw-up)); }
  to   { transform: translateY(var(--throw-down)); }
}
@keyframes yeet-spin { to { rotate: var(--spin, 720deg); } }

/* YEET! 팝 텍스트 */
.yeet-pop {
  position: absolute;
  left: var(--start-x); top: var(--start-y);
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--ember-bright);
  text-shadow: 3px 3px 0 var(--bg-deep);
  animation: pop-rise 0.7s steps(6) forwards;
}
@keyframes pop-rise {
  from { transform: translate(-50%, 0); opacity: 1; }
  to   { transform: translate(-50%, -70px); opacity: 0; }
}

/* 모루 스파크 */
.spark {
  position: absolute;
  width: 4px; height: 4px;
  left: var(--start-x); top: var(--start-y);
  background: var(--spark-color, var(--ember-bright));
  animation: spark-fly 0.5s steps(5) forwards;
}
@keyframes spark-fly {
  to {
    transform: translate(var(--spark-x), var(--spark-y));
    opacity: 0;
  }
}

/* 화면 흔들림 (게임 감성) */
.screen-shake { animation: screen-shake 0.18s steps(2); }
@keyframes screen-shake {
  25% { transform: translate(3px, -2px); }
  50% { transform: translate(-3px, 2px); }
  75% { transform: translate(2px, 1px); }
}

/* ---------- 공용 픽셀 스프라이트 ---------- */
[data-sprite] { display: inline-block; line-height: 0; }
[data-sprite] svg { shape-rendering: crispEdges; width: 100%; height: 100%; }

/* ---------- 내비게이션 ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 2px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-nav.nav-solid {
  background: rgba(10, 5, 18, 0.88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-sprite { width: 26px; height: 26px; }
.nav-logo-text {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--violet-bright);
}
.nav-logo-text em { font-style: normal; color: var(--ember); }

.nav-links { display: flex; gap: clamp(14px, 2.5vw, 30px); }
.nav-links a {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
  padding: 4px 2px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--lime); }

.nav-score {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 8px 12px;
  background: var(--bg-raise);
  border: 2px solid var(--line);
  clip-path: var(--pixel-clip);
}
.nav-score-label { color: var(--text-dim); }
.nav-score-value { color: var(--lime); }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(16px, 4vw, 40px) 40px;
  max-width: 1200px; margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.pixel-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--violet-bright);
  background: var(--violet-soft);
  border: 2px solid var(--violet-deep);
  padding: 10px 14px;
  clip-path: var(--pixel-clip);
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--lime);
  animation: badge-blink 1.2s steps(2) infinite;
}
@keyframes badge-blink { 50% { opacity: 0.15; } }

.hero-title { line-height: 1; }
.hero-title-en {
  display: block;
  font-family: var(--font-pixel);
  font-size: clamp(11px, 1.6vw, 15px);
  color: var(--text-dim);
  letter-spacing: 4px;
  margin-bottom: 18px;
}
.hero-title-main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(76px, 14vw, 168px);
  letter-spacing: -0.01em;
}
.word-yeet {
  color: var(--violet);
  text-shadow:
    0 0 24px rgba(160, 107, 255, 0.55),
    6px 6px 0 var(--violet-deep);
}
.word-forge {
  color: var(--ember);
  text-shadow:
    0 0 24px rgba(255, 138, 61, 0.45),
    6px 6px 0 #8a3d12;
}

.hero-tagline {
  margin-top: 30px;
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text-muted);
}
.hero-tagline strong { color: var(--lime); font-weight: 800; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 36px;
}

.btn-pixel {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-pixel);
  font-size: 12px;
  padding: 18px 24px;
  clip-path: var(--pixel-clip);
  transition: transform 0.1s;
  user-select: none;
}
.btn-pixel:active { transform: translateY(3px); }
.btn-ember {
  background: var(--ember);
  color: var(--bg-deep);
  box-shadow: inset 0 -6px 0 rgba(10, 5, 18, 0.25);
}
.btn-ember:hover { background: var(--ember-bright); }
.btn-ghost {
  background: var(--bg-raise);
  color: var(--violet-bright);
  border: 2px solid var(--violet-deep);
}
.btn-ghost:hover { background: var(--violet-soft); }
.btn-arrow { animation: arrow-nudge 0.8s steps(2) infinite; }
@keyframes arrow-nudge { 50% { transform: translateX(4px); } }

.hero-hint {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

/* 히어로 스테이지 (모루) */
.hero-stage {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: end;
  min-height: 340px;
}
.float-obj {
  position: absolute;
  opacity: 0.9;
  animation: float-bob 4s ease-in-out infinite;
}
.float-1 { width: 34px; top: 6%;  left: 4%;  animation-delay: 0s; }
.float-2 { width: 26px; top: 2%;  right: 12%; animation-delay: -1.3s; }
.float-3 { width: 44px; top: 38%; right: 0;  animation-delay: -2.1s; }
.float-4 { width: 26px; top: 48%; left: 0;   animation-delay: -3s; }
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.anvil-button {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 20px;
  transition: transform 0.1s;
}
.anvil-button:hover { transform: scale(1.04); }
.anvil-button:active { transform: scale(0.96) translateY(4px); }
.anvil-cartridge {
  width: 58px;
  margin-bottom: -6px;
  animation: cart-idle 2s steps(2) infinite;
}
@keyframes cart-idle { 50% { transform: translateY(-5px); } }
.anvil-body { width: 190px; }
.anvil-glow {
  position: absolute;
  bottom: 6px; left: 50%;
  width: 200px; height: 46px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 138, 61, 0.45), transparent 70%);
  filter: blur(6px);
  animation: glow-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse { 50% { opacity: 0.45; } }

.anvil-caption {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 14px;
}

/* 히어로 스코어보드 */
.hero-scoreboard {
  display: flex; align-items: center; gap: 16px;
  margin-top: clamp(36px, 6vh, 70px);
  padding: 16px 22px;
  width: fit-content;
  background: var(--bg-raise);
  border: 2px solid var(--line);
  clip-path: var(--pixel-clip);
  font-family: var(--font-pixel);
}
.score-label { font-size: 10px; color: var(--text-dim); }
.score-display {
  font-size: clamp(18px, 3vw, 26px);
  color: var(--lime);
  text-shadow: 0 0 14px rgba(198, 245, 63, 0.5);
}
.score-display.score-bump { animation: score-bump 0.25s steps(3); }
@keyframes score-bump { 40% { transform: scale(1.25); } }
.score-blink {
  color: var(--lime);
  animation: badge-blink 1s steps(2) infinite;
}

/* ---------- 마퀴 밴드 ---------- */
.marquee-band {
  position: relative; z-index: 2;
  overflow: hidden;
  padding: 14px 0;
  border-top: 3px solid var(--bg-deep);
  border-bottom: 3px solid var(--bg-deep);
}
.band-ember { background: var(--ember); transform: rotate(-1.2deg) scale(1.02); }
.band-violet { background: var(--violet); transform: rotate(1.2deg) scale(1.02); }

.marquee-track {
  display: flex; width: max-content;
  animation: marquee-scroll 22s linear infinite;
}
.track-reverse { animation-direction: reverse; }
.marquee-chunk {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  color: var(--bg-deep);
  white-space: nowrap;
  letter-spacing: 1px;
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ---------- 섹션 공통 ---------- */
.section {
  position: relative; z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(90px, 12vw, 150px) clamp(16px, 4vw, 40px);
}
.section-head { margin-bottom: clamp(44px, 6vw, 70px); }
.section-label {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--ember);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.section-desc {
  margin-top: 14px;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-muted);
}

/* ---------- 철학 카드 ---------- */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.rule-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--line);
  clip-path: var(--pixel-clip);
  padding: 34px 28px;
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}
.rule-card:hover {
  transform: translateY(-8px);
  border-color: var(--violet);
  background: var(--bg-raise);
}
.rule-card:nth-child(2):hover { border-color: var(--ember); }
.rule-card:nth-child(3):hover { border-color: var(--lime); }
.rule-sprite { width: 52px; height: 52px; margin-bottom: 22px; }
.rule-tag {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.rule-title {
  font-family: var(--font-display);
  font-size: 27px;
  margin-bottom: 12px;
}
.rule-card:nth-child(1) .rule-title { color: var(--violet-bright); }
.rule-card:nth-child(2) .rule-title { color: var(--ember-bright); }
.rule-card:nth-child(3) .rule-title { color: var(--lime); }
.rule-body { font-size: 15.5px; color: var(--text-muted); }

/* ---------- 게임 카트리지 ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.game-cart {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--line);
  clip-path: var(--pixel-clip);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.game-cart:hover {
  transform: translateY(-10px) rotate(-1deg);
  border-color: var(--cart-accent);
}
.game-cart:nth-child(even):hover { transform: translateY(-10px) rotate(1deg); }

/* 카트리지 상단 그립 홈 */
.cart-top {
  display: flex; gap: 6px;
  padding: 12px 16px 0;
}
.cart-top span {
  height: 6px; flex: 1;
  background: var(--cart-accent-soft);
}

.cart-screen {
  position: relative;
  margin: 14px 16px 0;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at 50% 20%, var(--cart-accent-soft), transparent 75%),
    var(--bg-deep);
  border: 2px solid var(--cart-accent-soft);
  display: grid; place-items: center;
  overflow: hidden;
}
.cart-screen::after {
  /* 스크린 스캔라인 */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(10, 5, 18, 0.3) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.cart-sprite { width: 62%; transition: transform 0.25s; }
.game-cart:hover .cart-sprite { transform: scale(1.12); }

.cart-info { padding: 18px 18px 22px; }
.cart-genre {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--cart-accent);
  margin-bottom: 10px;
}
.cart-title {
  font-family: var(--font-display);
  font-size: 25px;
  margin-bottom: 8px;
}
.cart-desc {
  font-size: 14px;
  color: var(--text-muted);
  min-height: 3.4em;
}
.cart-meta {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
  font-family: var(--font-pixel);
  font-size: 7.5px;
  color: var(--text-dim);
}

/* FORGING 카드 — 타이틀은 각 카드의 액센트 컬러를 따른다 */
.cart-forging .cart-title { color: var(--cart-accent); }
.cart-forging .cart-screen { animation: forge-heat 2s steps(2) infinite; }
@keyframes forge-heat {
  50% { box-shadow: inset 0 0 34px rgba(255, 138, 61, 0.35); }
}
.forging-sparks i {
  position: absolute;
  width: 5px; height: 5px;
  background: var(--ember-bright);
  bottom: 12%;
  animation: forge-spark 1.3s steps(4) infinite;
}
.forging-sparks i:nth-child(1) { left: 30%; animation-delay: 0s; }
.forging-sparks i:nth-child(2) { left: 52%; animation-delay: -0.5s; }
.forging-sparks i:nth-child(3) { left: 68%; animation-delay: -0.9s; }
@keyframes forge-spark {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(-56px); opacity: 0; }
}

/* ---------- 퀘스트 로그 (파이프라인) ---------- */
.quest-log {
  list-style: none;
  display: grid; gap: 0;
  max-width: 780px;
}
.quest-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 44px;
}
/* 연결 점선 */
.quest-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px; top: 60px; bottom: 4px;
  width: 2px;
  background: repeating-linear-gradient(0deg, var(--violet-deep) 0 6px, transparent 6px 12px);
}
.quest-marker {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--bg-raise);
  border: 2px solid var(--violet-deep);
  clip-path: var(--pixel-clip);
}
.quest-num {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--violet-bright);
}
.quest-final .quest-marker { border-color: var(--ember); background: var(--ember-soft); }
.quest-final .quest-num { color: var(--ember-bright); }

.quest-stage {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-dim);
  margin-bottom: 8px;
  padding-top: 6px;
}
.quest-title {
  font-family: var(--font-display);
  font-size: 29px;
  margin-bottom: 8px;
}
.quest-final .quest-title {
  color: var(--ember);
  text-shadow: 0 0 18px rgba(255, 138, 61, 0.4);
}
.quest-desc { color: var(--text-muted); font-size: 15.5px; max-width: 54ch; }

.quest-bar {
  margin-top: 14px;
  width: min(320px, 100%);
  height: 14px;
  background: var(--bg-deep);
  border: 2px solid var(--line);
  padding: 2px;
}
.quest-bar span {
  display: block; height: 100%;
  width: var(--fill);
  background: repeating-linear-gradient(90deg, var(--violet) 0 8px, var(--violet-deep) 8px 16px);
}
.quest-bar .bar-full {
  background: repeating-linear-gradient(90deg, var(--ember) 0 8px, var(--ember-bright) 8px 16px);
  animation: bar-flow 0.8s steps(4) infinite;
}
@keyframes bar-flow { to { background-position: 16px 0; } }

/* ---------- 스튜디오 ---------- */
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.studio-story {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.85;
  color: var(--text-muted);
  word-break: keep-all;
}
.studio-story mark {
  background: var(--violet-soft);
  color: var(--violet-bright);
  padding: 1px 8px;
  font-weight: 800;
}
.studio-story strong { color: var(--text); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.stat-cell {
  background: var(--bg-card);
  border: 2px solid var(--line);
  clip-path: var(--pixel-clip);
  padding: 24px 22px;
}
.stat-cell dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.stat-cell dd { display: flex; align-items: baseline; gap: 4px; }
.stat-number {
  font-family: var(--font-pixel);
  font-size: clamp(17px, 2.2vw, 23px);
  color: var(--lime);
  text-shadow: 0 0 12px rgba(198, 245, 63, 0.35);
}
.stat-cell:nth-child(2) .stat-number { color: var(--violet-bright); text-shadow: 0 0 12px rgba(160, 107, 255, 0.4); }
.stat-cell:nth-child(3) .stat-number { color: var(--ember-bright); text-shadow: 0 0 12px rgba(255, 176, 58, 0.4); }
.stat-unit {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-muted);
}

/* ---------- 푸터 ---------- */
.site-footer {
  position: relative; z-index: 1;
  margin-top: 40px;
  border-top: 2px solid var(--line);
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(91, 46, 191, 0.3), transparent 70%),
    var(--bg-deep);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(70px, 9vw, 110px) clamp(16px, 4vw, 40px) 40px;
  text-align: center;
}
.footer-big {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 88px);
  line-height: 1.15;
}
.footer-loading { color: var(--ember); }
.loading-dots::after {
  content: "";
  animation: loading-dots 1.6s steps(1) infinite;
}
@keyframes loading-dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
}
.footer-note {
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 16px;
}
.footer-social {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 16px;
  margin-top: 40px;
  font-family: var(--font-pixel);
  font-size: 10px;
}
.footer-social a { color: var(--violet-bright); padding: 6px 2px; transition: color 0.2s; }
.footer-social a:hover { color: var(--lime); }
.footer-social span { color: var(--text-dim); font-size: 8px; }
.footer-copy {
  margin-top: 44px;
  font-family: var(--font-pixel);
  font-size: 8.5px;
  color: var(--text-dim);
}

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

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage { min-height: 300px; order: 2; }
  .rule-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .game-grid { grid-template-columns: 1fr; }
  .cart-desc { min-height: 0; }
  .quest-step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .quest-marker { width: 44px; height: 44px; }
  .quest-num { font-size: 14px; }
  .quest-step:not(:last-child)::before { left: 21px; top: 50px; }
  .hero { padding-top: 100px; }
  .hero-scoreboard { width: 100%; justify-content: center; }
}

/* ---------- 모션 축소 설정 존중 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
