/* =========================================================
   반짝이는 여명 (Twilight Dawn Online) — 랜딩페이지 스타일
   팔레트: art/STYLE_GUIDE.md §3 (LOCKED)
   하늘/포인트 #6FC3FF · 잔디/성장 #8BD450 · 강조/보상 #FFC94D
   위험/HP #FF7A85 · 배경 베이스 #FFF7E8 · 라인/텍스트 #4A3B33
   ========================================================= */

:root {
  --sky: #6FC3FF;
  --grass: #8BD450;
  --gold: #FFC94D;
  --coral: #FF7A85;
  --base: #FFF7E8;
  --ink: #4A3B33;

  --sky-deep: #3E9FE0;
  --grass-deep: #5FA22B;
  --gold-deep: #E0A422;
  --coral-deep: #E15B66;

  --white: #FFFFFF;
  --ink-soft: #7A6B60;
  --card-bg: #FFFFFF;
  --card-border: #F0E2C8;
  --shadow: 0 8px 24px rgba(74, 59, 51, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-body: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 아이들이 편하게 읽을 수 있도록 기본 폰트 크기를 18px로 상향(전역 규칙, rem 기준 단위 전체에 반영) */
  font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   애니메이션 키프레임 (transform/opacity 기반, 성능 우선)
   prefers-reduced-motion 은 위 전역 규칙으로 자동 무력화됨
   ========================================================= */
@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}
@keyframes twinkle-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(8deg); }
}
@keyframes cloud-drift {
  from { transform: translateX(-6%); }
  to { transform: translateX(6%); }
}
@keyframes wave-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes btn-bounce {
  0% { transform: translateY(-2px) scale(1); }
  30% { transform: translateY(-9px) scale(1.06); }
  55% { transform: translateY(-3px) scale(0.97); }
  75% { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(-2px) scale(1); }
}

/* ---------- 스크롤 리빌 (JS가 요소에 .reveal 부여 + IntersectionObserver) ----------
   JS 미동작 시(비활성/실패)에도 .reveal 은 기본 opacity:1 로 항상 보이며,
   html.js-reveal-ready 가 붙은 뒤에만 등장 애니메이션이 적용된다(점진적 향상). */
.reveal { opacity: 1; transform: none; }
html.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js-reveal-ready .reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sky-deep);
  text-decoration-thickness: 2px;
}
a:hover { color: var(--ink); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.3; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1em; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  min-height: 48px; /* 아동 터치 타깃 최소 48px */
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); animation: btn-bounce 0.55s ease; }
.btn-lg { padding: 18px 34px; font-size: 1.25rem; min-height: 56px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--gold-deep);
}
.btn-primary:hover { background: #ffd670; color: var(--ink); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--gold-deep); }

.btn-secondary {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 6px 0 var(--sky-deep);
  margin-top: 12px;
}
.btn-secondary:hover { background: #86cdff; color: var(--white); }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--card-border);
}
.btn-ghost:hover { border-color: var(--sky); color: var(--sky-deep); }

/* ---------- 헤더 / 내비 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 247, 232, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--card-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-badge {
  color: var(--gold-deep);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--sky-deep); }
.nav-cta {
  background: var(--sky);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--sky-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.nav-toggle-bar::before { content: ""; position: absolute; top: -8px; }
.nav-toggle-bar::after { content: ""; position: absolute; top: 8px; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #DFF1FF 0%, var(--base) 65%);
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* ---------- 히어로 장식 애니메이션(구름·반짝이·둥둥 캐릭터) ---------- */
.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.float-cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, rgba(255,255,255,0.75) 55%, rgba(255,255,255,0) 100%);
  opacity: 0.85;
}
.float-cloud--a { width: 190px; height: 96px; top: 8%; left: 3%; animation: cloud-drift 15s ease-in-out infinite; }
.float-cloud--b { width: 130px; height: 68px; top: 18%; right: 5%; animation: cloud-drift 19s ease-in-out infinite reverse; }
.float-cloud--c { width: 90px; height: 48px; bottom: 20%; left: 18%; animation: cloud-drift 12s ease-in-out infinite; }
.float-mascot {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  filter: drop-shadow(0 10px 12px rgba(74,59,51,0.18));
}
.float-mascot--slime { width: 58px; height: 58px; bottom: 8%; left: 7%; animation: float-bob 4.4s ease-in-out infinite; }
.float-mascot--player { top: 10%; right: 12%; animation: float-bob 5.2s ease-in-out infinite; animation-delay: 0.6s; }
.twinkle {
  position: absolute;
  color: var(--gold-deep);
  font-size: 1.5rem;
  animation: twinkle-pulse 2.6s ease-in-out infinite;
}
.twinkle--1 { top: 14%; left: 48%; }
.twinkle--2 { top: 34%; right: 16%; font-size: 1.1rem; animation-delay: 0.8s; }
.twinkle--3 { bottom: 22%; right: 32%; font-size: 1rem; animation-delay: 1.4s; }
.twinkle--4 { bottom: 12%; left: 34%; font-size: 1.2rem; animation-delay: 0.4s; }

/* ---------- 히어로 하단 물결 장식 ---------- */
.hero-wave {
  position: relative;
  z-index: 1;
  height: 34px;
  margin-top: 12px;
  overflow: hidden;
}
.hero-wave::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 200%;
  height: 100%;
  background-image: radial-gradient(circle at 20px 0, transparent 17px, var(--sky) 18px);
  background-size: 40px 34px;
  background-repeat: repeat-x;
  opacity: 0.55;
  animation: wave-scroll 9s linear infinite;
}

@media (max-width: 760px) {
  /* 세로로 길어지는 모바일 레이아웃에서 장식이 본문 텍스트와 겹치지 않도록 정리 */
  .float-cloud--c,
  .float-mascot,
  .twinkle--3,
  .twinkle--4 { display: none; }
}
.eyebrow {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--sky);
  color: var(--sky-deep);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -0.01em;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 18px;
}
.rating-badge {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.rating-chip {
  background: var(--coral);
  color: var(--white);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.rating-chip-sm { font-size: 0.7rem; padding: 3px 8px; }

.hero-art { min-width: 0; }

.eyebrow-center { display: block; text-align: center; margin: 0 auto 16px; width: fit-content; }

/* ---------- 아트 플레이스홀더 (공통) ---------- */
.art-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.35) 0 14px, rgba(255,255,255,0) 14px 28px),
    linear-gradient(135deg, var(--sky) 0%, var(--grass) 50%, var(--gold) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  border: 3px dashed rgba(255,255,255,0.75);
  outline: 1px solid rgba(74,59,51,0.08);
}
.ph-badge {
  font-weight: 800;
  font-size: 0.95rem;
  text-shadow: 0 2px 6px rgba(74,59,51,0.35);
  letter-spacing: 0.04em;
}
.ph-note {
  margin-top: 6px;
  font-size: 0.72rem;
  background: rgba(74,59,51,0.35);
  padding: 3px 10px;
  border-radius: 999px;
}
.hero-placeholder { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.webtoon-placeholder { aspect-ratio: 3 / 4; }
.char-placeholder { aspect-ratio: 1 / 1; border-radius: 999px; }

/* ---------- 확정 아트 이미지 컨테이너 (Higgsfield 확정본) ---------- */
.asset-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-shot {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 50% 42%, #fffaf0 0%, #ffe9c9 55%, #ffd79e 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 3%;
}
.gallery-shot {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 62%, #eaf7ff 0%, #cfeafe 70%, #b9e0fd 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 2%;
}
.char-portrait {
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 50% 38%, #f2fbff 0%, #dcf0ff 68%, #c6e6fd 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 8% 8% 0;
}
.char-portrait .asset-img { object-position: bottom center; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 64px 0; }
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

/* ---------- 게임 소개 ---------- */
.intro { background: var(--white); }
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--base);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
}
.feature-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
  animation: float-bob 3.6s ease-in-out infinite;
}
.feature-card:nth-child(2) .feature-icon { animation-delay: 0.3s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 0.6s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 0.9s; }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { font-size: 1rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- 카드류 공통 호버 애니메이션(풍성한 인터랙션) ---------- */
.feature-card,
.gallery-card,
.story-card,
.character-card,
.webtoon-episode,
.audiobook-track,
.roadmap-stop,
.wallpaper-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover,
.gallery-card:hover,
.story-card:hover,
.character-card:hover,
.webtoon-episode:hover,
.audiobook-track:hover,
.roadmap-stop:hover,
.wallpaper-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(74, 59, 51, 0.16);
}
.char-portrait { transition: transform 0.25s ease; }
.character-card:hover .char-portrait { transform: scale(1.05); }

/* ---------- 아트 갤러리 ---------- */
.gallery-group-title {
  font-size: 1.1rem;
  margin: 32px 0 16px;
  color: var(--sky-deep);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-card {
  margin: 0;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-card figcaption { padding: 14px 16px; }
.gallery-card figcaption strong { display: block; font-size: 0.95rem; margin-bottom: 6px; }
.gallery-card figcaption p { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

/* ---------- 주제가 & 티저 영상 ---------- */
.anthem { background: linear-gradient(180deg, var(--base) 0%, #EAF6FF 100%); padding-top: 8px; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.media-block {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.media-placeholder {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.35) 0 14px, rgba(255,255,255,0) 14px 28px),
    linear-gradient(135deg, var(--sky) 0%, var(--grass) 50%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 3px dashed rgba(255,255,255,0.75);
}
.media-real { width: 100%; margin: 0 auto; }
.media-real[hidden] { display: none; }
.media-caption { font-size: 0.88rem; color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- 스토리 티저 ---------- */
.story { background: var(--white); }
.story-grid {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.story-card {
  background: var(--base);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.story-chip {
  display: inline-block;
  background: var(--sky);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.story-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.story-outro {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 24px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- 들려주는 여명 이야기 (오디오북) ---------- */
.audiobook-block { margin: 40px 0 8px; }
.audiobook-copy {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.audiobook-copy-sub { font-size: 0.85rem; margin-bottom: 24px; }
.audiobook-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.audiobook-track {
  background: var(--base);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.audiobook-track-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.audiobook-track-title { font-weight: 700; font-size: 0.92rem; }
.audiobook-track-len { font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; }
.audiobook-player { width: 100%; }

.radio-drama-block { margin: 28px auto 0; max-width: 640px; }
.radio-drama-block .media-block { text-align: center; }
.radio-drama-block .media-placeholder { aspect-ratio: 21 / 9; }

/* ---------- 웹툰 ---------- */
.webtoon { background: linear-gradient(180deg, var(--base) 0%, #FFEFCF 100%); }
.webtoon-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  /* 캡션 길이가 컷마다 달라도 서로 늘어나며 밀리지 않도록 각 패널을 자기 높이만큼만 차지하게 함
     (버그 수정 2026-07-17: 말줄임+스크롤불가로 하단 텍스트가 잘리던 문제) */
  align-items: start;
}
.webtoon-panel {
  background: var(--white);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  /* overflow:hidden 이었던 이전 값은 캡션 말줄임과 함께 하단 텍스트를 잘랐음 — 전체 표시로 변경 */
  overflow: visible;
}
.webtoon-panel figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  word-break: keep-all;
  overflow-wrap: break-word;
  /* 캡션은 항상 전체 표시(말줄임/스크롤 없음) — 아이가 조작 없이 다 읽을 수 있게 */
}
.webtoon-text {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--ink);
}
.webtoon-cta {
  text-align: center;
  margin-top: 32px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* ---------- 웹툰 화 목록 ---------- */
.webtoon-episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.webtoon-episode {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  background: var(--white);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.webtoon-episode--soon { opacity: 0.9; }
.webtoon-ep-cover {
  aspect-ratio: 690 / 924;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.webtoon-ep-cover .art-placeholder { aspect-ratio: auto; height: 100%; }
.webtoon-ep-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.webtoon-ep-badge.is-live { background: var(--grass); color: var(--white); }
.webtoon-ep-badge.is-new { background: var(--gold); color: var(--ink); }
.webtoon-ep-badge.is-soon { background: var(--card-border); color: var(--ink-soft); }
.webtoon-ep-body h3 { font-size: 1.05rem; margin: 0 0 8px; }
.webtoon-ep-body > p { font-size: 0.92rem; color: var(--ink-soft); }
.webtoon-ep-body .webtoon-strip {
  margin-top: 16px;
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- 웹툰 로드맵 ---------- */
.webtoon-roadmap { margin-top: 40px; }
.roadmap-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.roadmap-stop {
  flex: 1 1 160px;
  background: var(--white);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}
.roadmap-stop strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.roadmap-stop span { font-size: 0.8rem; color: var(--ink-soft); }
.roadmap-stop.is-done { border-color: var(--grass); background: #F1FAEA; }
.roadmap-stop.is-next { border-color: var(--gold); background: #FFF6E2; }

/* ---------- 세계관 ---------- */
.world { background: var(--white); }
.world-lore {
  max-width: 70ch;
  margin: 0 auto 40px;
  font-size: 1rem;
  text-align: center;
  color: var(--ink-soft);
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.character-card { text-align: center; }
.character-card h3 { font-size: 1rem; margin-top: 12px; margin-bottom: 4px; }
.char-role {
  display: block;
  font-size: 0.75rem;
  color: var(--sky-deep);
  font-weight: 600;
  margin-top: 2px;
}
.character-card p { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- 배경화면 다운로드 ---------- */
.wallpapers { background: linear-gradient(180deg, var(--white) 0%, var(--base) 100%); }
.wallpaper-shot--wide { aspect-ratio: 16 / 9; }
.wallpaper-shot--tall { aspect-ratio: 9 / 16; }
.wallpaper-card figcaption p { margin-bottom: 10px; }
.btn-sm { padding: 10px 18px; font-size: 0.95rem; min-height: 48px; }
.wallpaper-dl { width: 100%; }
.wallpaper-pack { margin-top: 36px; }
.wallpaper-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}

/* ---------- 사전예약 ---------- */
.prereg {
  background: linear-gradient(180deg, #FFF0DA 0%, var(--base) 100%);
}
.prereg-wrap { max-width: 560px; }
.perk-list {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.perk-list li {
  background: var(--white);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 1rem;
}
.perk-icon { margin-right: 4px; }
.perk-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.prereg-form {
  background: var(--white);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 24px; }
.form-row label,
.form-row legend {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  padding: 0;
}
.form-row input[type="email"] {
  width: 100%;
  min-height: 52px; /* 아동 터치 타깃 최소 48px 이상 확보 */
  padding: 14px 16px;
  border: 3px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-family: inherit;
  background: var(--base);
  color: var(--ink);
}
.form-row input[type="email"]:focus {
  border-color: var(--sky);
  outline: none;
}
.field-help { font-size: 0.88rem; color: var(--ink-soft); margin: 8px 0 0; }

fieldset.form-row {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}
fieldset.form-row legend {
  padding: 0;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.checkbox-line a { white-space: nowrap; }

/* ---------- 선호 플랫폼: 큰 카드형 선택 버튼(아이콘+큰 글자) ---------- */
.platform-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 104px;
  background: var(--base);
  border: 3px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.platform-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.platform-card-icon {
  font-size: 2.3rem;
  line-height: 1;
}
.platform-card:hover {
  transform: translateY(-3px);
  border-color: var(--sky);
}
.platform-card:has(input:checked) {
  border-color: var(--sky-deep);
  background: #E6F5FF;
  color: var(--sky-deep);
  box-shadow: 0 6px 0 var(--sky-deep);
  transform: translateY(-2px);
}
.platform-card:has(input:focus-visible) {
  outline: 3px solid var(--sky-deep);
  outline-offset: 2px;
}

/* ---------- 개인정보 동의: 큰 체크박스 + 강조 박스 ---------- */
.form-row-check .checkbox-line {
  background: var(--base);
  border: 3px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.form-row-check .checkbox-line:has(input:checked) {
  border-color: var(--grass);
  background: #F1FAEA;
}
.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-line input[type="checkbox"] {
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin-top: 2px;
  accent-color: var(--sky-deep);
  cursor: pointer;
}

.form-status {
  min-height: 1.4em;
  font-weight: 700;
  text-align: center;
  margin: 14px 0 0;
}
.form-status.is-success { color: var(--grass-deep); }
.form-status.is-error { color: var(--coral-deep); }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--base);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 1.3rem;
  color: var(--sky-deep);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 16px; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--ink);
  color: #F3E9DE;
  padding: 40px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.site-footer .brand { color: var(--gold); }
.footer-note { font-size: 0.82rem; color: #C9BAAD; max-width: 42ch; }
.footer-links, .footer-sns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a, .footer-sns a {
  color: #E6D9CC;
  font-size: 0.85rem;
  text-decoration: none;
}
.footer-links a:hover, .footer-sns a:hover { color: var(--gold); }
.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: #9C8C7F;
  margin: 24px 0 0;
  border-top: 1px solid #6B5A4C;
  padding-top: 16px;
}

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 960px) {
  .feature-grid,
  .card-grid,
  .webtoon-strip,
  .character-grid,
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--base);
    border-bottom: 2px solid var(--card-border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 14px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-cta { text-align: center; }

  .webtoon-episode { grid-template-columns: 1fr; }
  .webtoon-ep-cover { max-width: 220px; margin: 0 auto; }
  .webtoon-ep-body .webtoon-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .feature-grid,
  .card-grid,
  .webtoon-strip,
  .character-grid,
  .story-grid,
  .audiobook-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .prereg-form { padding: 24px 18px; }
  .webtoon-ep-body .webtoon-strip { grid-template-columns: 1fr; }
  .roadmap-stop { flex-basis: 100%; }

  /* 좁은 화면에서는 플랫폼 카드를 세로로 쌓아 한 손가락으로도 크고 편하게 누를 수 있게 */
  .platform-options {
    grid-template-columns: 1fr;
  }
  .platform-card {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 56px;
    padding: 14px 18px;
  }
}
