:root {
  --ink: #2b1d14;
  --ink-2: #4a3628;
  --sub: #7a6553;
  --paper: #fbf3e2;
  --paper-2: #f3e5c8;
  --cream: #fffaf0;
  --edge: #d8b47a;
  --gold: #e7a93a;
  --gold-2: #f6cf6b;
  --seal: #b8342b;
  --accent: #e0782f;
  --sky: #8fd3f7;
  --night: #1d1733;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(43, 29, 20, 0.45);
  --display: 'Jua', 'Apple SD Gothic Neo', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Gowun Dodum', -apple-system, 'Apple SD Gothic Neo', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
b { font-weight: 700; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 머리 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 240, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(216, 180, 122, 0.45);
}

.bar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--ink);
}

.menu {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.menu a {
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.menu a:hover { background: var(--paper-2); color: var(--ink); }

.pill-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 19px;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.pill-btn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 0 #a9521b;
}

.pill-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #a9521b; }
.pill-btn.small { font-size: 16px; padding: 8px 18px; box-shadow: 0 4px 0 #a9521b; }

.ghost-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.ghost-btn:hover { background: #fff; }

/* ---------- 첫 화면 ---------- */
.hero {
  position: relative;
  min-height: min(860px, 92vh);
  padding: 72px 0 120px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #9fd6f2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.92) 0%, rgba(255, 250, 240, 0.75) 32%, rgba(255, 250, 240, 0) 58%);
}

.hero-in {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-copy { max-width: 560px; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.75);
  padding: 6px 16px;
  border-radius: 999px;
  margin: 0 0 18px;
}

.logo-type {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(54px, 8.4vw, 112px);
  line-height: 1.02;
  margin: 0 0 22px;
  color: #fff;
  -webkit-text-stroke: 0.06em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--ink);
  letter-spacing: -0.01em;
}

.logo-type .r { color: #ff6f6f; }
.logo-type .o { color: #ffb52e; }
.logo-type .b { color: #4fc3f7; }
.logo-type .y { color: #ffe066; }

.lead {
  font-size: 19px;
  max-width: 34em;
  margin: 0 0 28px;
  color: var(--ink-2);
}

.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.badges a { display: block; transition: transform 0.2s; }
.badges a:hover { transform: translateY(-2px); }
.badges img { height: 52px; width: auto; }
.stats {
  position: relative;
  z-index: 1;
  margin: 30px 0 0;
  padding: 14px 6px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats li {
  text-align: center;
  font-family: var(--display);
  color: var(--ink-2);
  font-size: 16px;
}

.stats li + li { border-left: 2px dashed var(--edge); }
.stats b { display: block; font-size: 34px; line-height: 1.1; color: var(--accent); font-weight: 400; }

.wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 80px;
  fill: var(--ink);
}

/* ---------- 이야기 둘러보기 ---------- */
.spotlight {
  background:
    radial-gradient(2px 2px at 12% 20%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 30% 70%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(2px 2px at 78% 30%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 90% 80%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(900px 500px at 25% 50%, #3b2a1e, transparent),
    var(--ink);
  color: var(--cream);
  padding: 72px 0 88px;
}

.sp-in {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 64px;
  align-items: center;
}

.sp-art {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 13;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 4px var(--gold);
  background: #3b2a1e;
}

.sp-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.22s, transform 0.6s;
}

.sp-art img.out { opacity: 0; transform: scale(1.03); }

.sp-part {
  position: absolute;
  left: 18px;
  top: 18px;
  font-family: var(--display);
  background: var(--seal);
  color: #fff;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 15px;
}

.sp-count {
  font-family: var(--display);
  color: var(--gold-2);
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

.sp-count span { font-size: 22px; }

.sp-copy h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.1;
  margin: 0 0 18px;
  color: #fff;
}

.sp-bars { display: flex; gap: 8px; margin-bottom: 22px; }
.sp-bars i { width: 44px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); transition: background 0.3s; }
.sp-bars i.on { background: var(--accent); }

.sp-ref {
  font-family: var(--display);
  color: var(--gold-2);
  font-size: 19px;
  margin: 0 0 10px;
}

.sp-sum {
  font-size: 20px;
  line-height: 1.8;
  color: #f4e9d6;
  max-width: 30em;
  min-height: 5.4em;
  margin: 0 0 18px;
}

.sp-game { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; min-height: 40px; }
.sp-game span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 15px;
}

.sp-game span::before { content: '액션 게임 · '; color: var(--gold-2); }

.sp-nav { display: flex; gap: 12px; }

.round {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.round:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- 공통 구역 ---------- */
.section { padding: 96px 0; }
.section.paper { background: var(--paper); }

.sec-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
}

.sec-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 6px;
  border-radius: 4px;
  background: var(--accent);
  margin-top: 14px;
}

.sec-title.light { color: #fff; }
.sec-lead { color: var(--sub); max-width: 40em; margin: 0 0 34px; font-size: 18px; }
.sec-lead.light { color: #d9cfe9; }

/* ---------- 이야기 카드 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tabs button {
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink-2);
  background: #fff;
  border: 2px solid var(--edge);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
}

.tabs button[aria-selected='true'] { background: var(--seal); border-color: var(--seal); color: #fff; }

.story-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), 1fr);
  gap: 20px;
}

.story {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  background: var(--ink);
  box-shadow: var(--shadow);
  text-align: left;
  font: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}

.story:hover,
.story:focus-visible { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 26px 40px -16px rgba(43, 29, 20, 0.6); }
.story img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.story:hover img { transform: scale(1.06); }

.story .txt {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 18px 16px;
  background: linear-gradient(transparent, rgba(30, 18, 10, 0.88));
  color: #fff;
}

.story small { font-family: var(--display); color: var(--gold-2); font-size: 15px; }
.story small::after { content: ''; display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; margin: 4px 0 6px; }
.story b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.25; }
.story em { font-style: normal; font-size: 14px; opacity: 0.85; }

/* ---------- 액션 게임 띠 ---------- */
.banner {
  position: relative;
  height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(43, 29, 20, 0.55));
}

.banner-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 34px;
  margin: 0 16px 40px;
  max-width: 560px;
  text-align: center;
}

.banner-card h2 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0 0 8px; }
.banner-card p { margin: 0; color: var(--sub); }

.marquee {
  background: var(--ink);
  overflow: hidden;
  padding: 22px 0;
}

.track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: slide 90s linear infinite;
}

.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; flex-wrap: wrap; width: auto; padding: 0 16px; } .track [aria-hidden] { display: none; } }

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #3b2a1e;
  color: #fff;
  border-radius: 16px;
  padding: 10px 18px 10px 12px;
  white-space: nowrap;
}

.chip i { font-style: normal; font-size: 26px; }
.chip b { font-family: var(--display); font-weight: 400; font-size: 17px; }
.chip small { color: var(--gold-2); font-size: 13px; }
.chip small::before { content: '· '; }

/* ---------- 게임 화면 ---------- */
.phones {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 10px 4px 26px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.phones figure {
  margin: 0;
  flex: 0 0 230px;
  scroll-snap-align: start;
  text-align: center;
}

.phones img {
  width: 100%;
  border-radius: 34px;
  border: 9px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--ink);
}

.phones figcaption { font-family: var(--display); color: var(--ink-2); margin-top: 12px; }

/* ---------- 영상 ---------- */
.videos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.videos figure {
  margin: 0;
  flex: 0 1 300px;
  text-align: center;
}

.videos video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  border: 9px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--ink);
  object-fit: cover;
}

.videos figcaption { font-family: var(--display); color: var(--ink-2); margin-top: 12px; }
.videos-more { text-align: center; margin: 34px 0 0; }

/* ---------- 좋은 점 ---------- */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.features li {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: 0 2px 0 var(--edge), var(--shadow);
}

.features img { width: 92px; height: 92px; object-fit: contain; margin: -6px 0 8px -6px; }
.features h3 { font-family: var(--display); font-weight: 400; font-size: 23px; margin: 0 0 6px; }
.features p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- 부모님께 ---------- */
.split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
}

.split-art img {
  border-radius: 26px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
}

.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.checks li {
  position: relative;
  padding: 8px 0 8px 40px;
  border-bottom: 1px dashed var(--edge);
}

.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #6dbb57;
  color: #fff;
  font-size: 15px;
  line-height: 26px;
  text-align: center;
}

.checks a { margin-left: 6px; font-size: 15px; }

/* ---------- 시즌 ---------- */
.seasons {
  position: relative;
  background:
    linear-gradient(180deg, rgba(23, 18, 48, 0.82) 0%, rgba(23, 18, 48, 0.55) 45%, rgba(23, 18, 48, 0.1) 80%),
    url('assets/art/stars-night.webp') 70% 100% / cover no-repeat,
    #1d1733;
  padding: 96px 0 220px;
  color: #fff;
}

.seals {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  position: relative;
}

.seals::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: 38px;
  border-top: 3px dotted rgba(246, 207, 107, 0.5);
}

.seals li { position: relative; text-align: center; font-family: var(--display); }

.seal {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6b5a8c, #3f3160);
  color: rgba(255, 255, 255, 0.6);
  font-size: 30px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.seals .now .seal {
  background: radial-gradient(circle at 35% 30%, #e0574b, var(--seal));
  color: #fff;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25), 0 0 0 5px var(--gold), 0 0 34px rgba(246, 207, 107, 0.6);
}

.seals b { display: block; font-weight: 400; font-size: 17px; line-height: 1.3; }
.seals small { color: #b9add3; font-size: 13px; }
.seals .now small { color: var(--gold-2); }

.get {
  margin-top: 64px;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: rgba(23, 18, 48, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.get { max-width: 560px; text-align: left; }
.get h3 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0 0 18px; }

/* ---------- 바닥 ---------- */
.site-footer {
  background: var(--ink);
  color: #cdbba5;
  padding: 44px 0 52px;
  font-size: 15px;
}

.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.site-footer .brand { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: #f1dfc4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0 0 0 auto; }

/* ---------- 지원·개인정보·약관 페이지 ---------- */
.page-hero {
  background: linear-gradient(180deg, #7ccbf2, #cdeefb);
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 60px);
  margin: 0;
  color: #fff;
  -webkit-text-stroke: 0.07em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--ink);
}

.page-hero p { margin: 8px 0 0; color: var(--ink-2); }
.page-hero img { position: absolute; right: 6%; bottom: -10px; width: 150px; }

.doc { max-width: 820px; margin: -36px auto 80px; padding: 0 24px; position: relative; }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 0 var(--edge), var(--shadow);
  padding: 32px 36px;
  margin: 0 0 24px;
}

.card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 12px;
  color: var(--accent);
}

.card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  margin: 24px 0 4px;
  color: var(--ink);
}

.muted { color: var(--sub); font-size: 14px; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 980px) {
  .story-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { justify-content: flex-start; min-height: 0; padding-bottom: 110px; }
  .hero-bg { position: relative; order: 2; height: auto; aspect-ratio: 4 / 3; object-position: 78% 60%; margin-top: 8px; }
  .hero::before { display: none; }
  .hero { background: linear-gradient(180deg, #fffaf0, #d6effb); }
  .sp-in { grid-template-columns: 1fr; gap: 36px; }
  .sp-art { max-width: 420px; width: 100%; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-art { max-width: 360px; }
  .seals { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
  .seals::before { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .bar, .hero-in, .sp-in { padding-left: 16px; padding-right: 16px; }
  .menu { display: none; }
  .bar { justify-content: space-between; }
  .brand { font-size: 18px; }
  .hero { padding-top: 36px; }
  .lead { font-size: 17px; }
  .pill-btn, .ghost-btn { font-size: 17px; padding: 12px 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats b { font-size: 34px; }
  .spotlight { padding: 56px 0 64px; }
  .sp-sum { font-size: 17px; min-height: 0; }
  .section { padding: 64px 0; }
  .story-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .story b { font-size: 17px; }
  .story .txt { padding: 40px 12px 12px; }
  .banner { height: 460px; }
  .banner-card { padding: 22px 20px; }
  .banner-card h2 { font-size: 24px; }
  .phones figure { flex-basis: 190px; }
  .features { grid-template-columns: 1fr; }
  .seals { grid-template-columns: repeat(2, 1fr); }
  .seasons { background-position: 0 0, 92% 100%, 0 0; background-size: auto, auto 520px, auto; padding-bottom: 300px; }
  .get { text-align: center; }
  .get .badges { justify-content: center; }
  .site-footer p { margin: 0; }
  .card { padding: 24px 20px; }
  .page-hero img { width: 100px; right: 4%; }
}
