/* THE REVNIR 홈페이지 공용 스타일 — 클린 & 프렌들리 시스템 (2026-08-01 컨셉 B 확정)
   밝은 배경 + 큰 타이포 + 파랑 포인트 + 흰 카드. 픽셀 캐릭터는 포인트 일러스트.
   페이지: / (회사), /game/ (게임), /prereg/ (사전등록) */

@font-face {
  font-family: "Pretendard Variable";
  src: url("/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-display: swap;
}
:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --bg: #f7f9fc;
  --card: #ffffff;
  --ink: #191f28;
  --sub: #4e5968;
  --faint: #8b95a1;
  --blue: #3182f6;
  --blue-deep: #1b64da;
  --blue-soft: #e8f3ff;
  --line: #eef2f7;
  --gold: #f5a623;
  --green: #1cbf73;
  --shadow: 0 3px 16px rgba(2, 32, 71, 0.06);
  --shadow-lg: 0 14px 40px rgba(2, 32, 71, 0.12);
  --ease: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink); font-family: var(--font);
  /* 주의: overscroll-behavior:none 을 여기에 함께 걸면 크롬이 휠/터치 스크롤을
     통째로 막는다 (overflow-x:hidden 과의 조합 버그, 2026-08-01 실측). 넣지 말 것. */
  overflow-x: hidden;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; user-select: none; -webkit-user-drag: none; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.pixel { image-rendering: pixelated; }

/* ── 내비게이션 ── */
nav.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247, 249, 252, 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(2, 32, 71, 0.04);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; padding: 14px 24px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; min-width: 0; }
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-brand b { font-size: 16px; font-weight: 800; white-space: nowrap; letter-spacing: -0.02em; }
.nav-link { text-decoration: none; white-space: nowrap; color: var(--sub); font-weight: 650; font-size: 14.5px; }
.nav-link:hover { color: var(--ink); }
.nav-link.on { color: var(--blue); }
.nav-cta {
  text-decoration: none; white-space: nowrap;
  background: var(--blue); color: #fff; padding: 10px 19px; border-radius: 12px;
  font-weight: 750; font-size: 14px;
  box-shadow: 0 6px 18px rgba(49, 130, 246, 0.3);
  transition: transform var(--ease), background var(--ease);
}
.nav-cta:hover { background: var(--blue-deep); }
.nav-cta:active { transform: scale(0.96); }
@media (max-width: 480px) { .nav-brand b { display: none; } }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: none; cursor: pointer; text-decoration: none;
  font-family: var(--font); font-size: 16px; font-weight: 800; letter-spacing: -0.02em;
  padding: 16px 30px; border-radius: 16px;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn.p { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(49, 130, 246, 0.35); }
.btn.p:hover { background: var(--blue-deep); }
.btn.g { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn.g:hover { box-shadow: var(--shadow-lg); }

/* ── 칩 ── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-soft); color: var(--blue);
  font-size: 13.5px; font-weight: 750; padding: 7px 15px; border-radius: 999px;
}
.chip.gold { background: #fff4e0; color: #d98200; }
.chip.green { background: #e5f9ef; color: var(--green); }

/* ── 섹션 공통 ── */
section { padding: 84px 0 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.sec-title { margin: 12px 0 10px; font-size: clamp(26px, 4.8vw, 40px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.3; }
.sec-title em { font-style: normal; color: var(--blue); }
.sec-desc { margin: 0; font-size: 16px; color: var(--sub); line-height: 1.75; }

/* ── 카드 ── */
.card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); }

/* ── 스탯 ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { background: var(--card); border-radius: 22px; padding: 26px 20px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -0.03em; }
.stat b span { color: var(--blue); }
.stat p { font-size: 14px; color: var(--faint); margin: 4px 0 0; font-weight: 650; }

/* ── 마르퀴 ── */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: mqL 38s linear infinite; }
.marquee.rev .track { animation-name: mqR; animation-duration: 44s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes mqL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mqR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.item-chip {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); box-shadow: var(--shadow);
}
.item-chip img { width: 50px; height: 50px; object-fit: contain; }
.cos-chip { flex-shrink: 0; display: flex; align-items: flex-end; justify-content: center; width: 84px; height: 98px; }
.cos-chip img { width: 76px; image-rendering: pixelated; filter: drop-shadow(0 10px 14px rgba(2, 32, 71, 0.18)); }

/* ── 푸터 ── */
footer { margin-top: 96px; background: #eef2f7; padding: 36px 0 52px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 34px; height: 34px; border-radius: 9px; }
.foot-brand b { font-size: 14.5px; font-weight: 800; }
.foot-brand span { display: block; font-size: 11.5px; color: var(--faint); }
.foot-links { display: flex; gap: 18px; font-size: 13.5px; font-weight: 600; }
.foot-links a { color: var(--sub); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
footer .legal { margin-top: 20px; font-size: 12px; color: var(--faint); line-height: 1.8; }
footer .legal a { color: var(--sub); text-decoration: none; }

/* ── 모션 — 스크롤 리빌 + 히어로 스태거 (site.js 구동) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .hero-stagger > * { opacity: 0; transform: translateY(16px); animation: heroIn 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; }
  .hero-stagger > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-stagger > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-stagger > *:nth-child(3) { animation-delay: 0.25s; }
  .hero-stagger > *:nth-child(4) { animation-delay: 0.35s; }
  .hero-stagger > *:nth-child(5) { animation-delay: 0.45s; }
  .hero-stagger > *:nth-child(6) { animation-delay: 0.55s; }
  @keyframes heroIn { to { opacity: 1; transform: none; } }
  .card, .stat, .item-chip { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
  .card.hover:hover, .stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
  .float-slow { animation: fl 3.2s ease-in-out infinite; }
  .float-slow.d1 { animation-delay: 1s; }
  @keyframes fl { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
}

/* ── 밋밋함 방지 데코 (2026-08-01 대표 피드백) ── */
body {
  background-image: radial-gradient(rgba(49, 130, 246, 0.075) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
}
.hl { background: linear-gradient(transparent 58%, #cfe5ff 58%, #cfe5ff 92%, transparent 92%); padding: 0 2px; }
.hl.y { background: linear-gradient(transparent 58%, #ffe9b8 58%, #ffe9b8 92%, transparent 92%); }
.stat b span { background: linear-gradient(115deg, #1b64da, #58b7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 히어로 주변 떠다니는 아이템 (데스크톱 전용) */
.deco { position: absolute; pointer-events: none; }
.deco .item-chip { position: absolute; box-shadow: 0 10px 26px rgba(2, 32, 71, 0.1); }
@media (max-width: 940px) { .deco { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .deco .item-chip { animation: fl 4s ease-in-out infinite; }
}

/* 픽셀 시티 디바이더 */
.city-band {
  height: 180px; margin-top: 70px;
  background: url("/assets/band_city.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  image-rendering: pixelated;
  border-radius: 24px; max-width: 1040px; margin-left: auto; margin-right: auto;
}
@media (max-width: 700px) { .city-band { height: 120px; border-radius: 0; } }
