:root {
  --cream: #FFF4E0;
  --paper: #FFFDF7;
  --blue: #3B6FD8;
  --blue-deep: #2A55B0;
  --navy: #1E1B2E;
  --orange: #FF8A3D;
  --sub: #5B5670;
  --mint: #DDF3EA;
  --pink: #FCE3EA;
  --sky: #DCEBFB;
  --stitch: rgba(59, 111, 216, .45);
  --shadow: 0 14px 34px rgba(30, 27, 46, .14);
  --radius: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Jua", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--navy);
  background: var(--cream);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.25; }

.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }

/* 상단 */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 27, 46, .08);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand b { font-weight: 400; font-size: 28px; color: var(--blue); letter-spacing: .02em; }
.brand span { font-size: 15px; color: var(--sub); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; font-size: 17px; padding: 8px 14px; border-radius: 14px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sky); color: var(--blue-deep); }

/* 첫 화면 */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(rgba(255, 244, 224, .35), rgba(255, 244, 224, .75)), url("assets/map.jpg") center 35% / cover;
  padding: 70px 0 0;
}
.hero .wrap { display: grid; justify-items: center; text-align: center; gap: 22px; }
.hero .logo { width: min(640px, 92%); filter: drop-shadow(0 10px 18px rgba(30, 27, 46, .18)); }
.hero .lead { font-size: clamp(22px, 3vw, 30px); }
.hero .note { color: var(--sub); font-size: 18px; }
.cast { display: flex; justify-content: center; align-items: flex-end; gap: clamp(6px, 2vw, 26px); margin-top: 18px; }
.cast img { width: clamp(70px, 13vw, 150px); }
.cast .big { width: clamp(110px, 19vw, 230px); }
.cast img:nth-child(odd) { animation: bob 3.2s ease-in-out infinite; }
.cast img:nth-child(even) { animation: bob 3.2s ease-in-out .8s infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .cast img { animation: none !important; } }

.btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 30px; border-radius: 22px;
  font-size: 20px; text-decoration: none; color: #fff;
  background: var(--orange); box-shadow: 0 6px 0 #D9671F;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 #D9671F; }
.btn.ghost { background: var(--paper); color: var(--blue-deep); box-shadow: 0 6px 0 #C9C4D6; }
.btn.ghost:hover { box-shadow: 0 4px 0 #C9C4D6; }
.btn[aria-disabled="true"] { cursor: default; }

/* 구역 */
section { padding: 90px 0; }
.title { text-align: center; margin-bottom: 44px; }
.title h2 { font-size: clamp(32px, 4.4vw, 46px); color: var(--blue-deep); }
.title p { margin-top: 10px; color: var(--sub); font-size: 20px; }

.felt {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  outline: 3px dashed var(--stitch);
  outline-offset: -12px;
}

/* 이야기 */
.story { background: url("assets/felt_navy.jpg") center / cover; color: #fff; }
.story .title h2 { color: #FFD27A; }
.story .title p { color: rgba(255, 255, 255, .8); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding: 30px 24px 32px; text-align: center; color: var(--navy); }
.step img { height: 150px; width: auto; margin: 0 auto 16px; object-fit: contain; }
.step h3 { font-size: 24px; color: var(--blue-deep); margin-bottom: 8px; }
.step p { font-size: 17px; color: var(--sub); }

/* 특징 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 32px 30px 34px; }
.feature .num { font-size: 44px; color: var(--orange); line-height: 1; margin-bottom: 10px; }
.feature h3 { font-size: 24px; margin-bottom: 8px; }
.feature p { color: var(--sub); font-size: 17px; }
.feature.mint { background: var(--mint); }
.feature.pink { background: var(--pink); }
.feature.sky { background: var(--sky); }

/* 단어 카드 예시 */
.cards { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 50px; }
.wcard { width: 220px; padding: 22px 18px 24px; text-align: center; }
.wcard img { height: 170px; width: auto; margin: 0 auto 8px; }
.wcard b { display: block; font-weight: 400; font-size: 36px; color: var(--blue); }
.wcard span { font-size: 22px; }
.wcard:nth-child(1) { transform: rotate(-3deg); }
.wcard:nth-child(3) { transform: rotate(3deg); }

/* 시리즈 */
.series-bg { background: url("assets/felt_sky.jpg") center / cover; }
.series { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.book { padding: 34px 30px 36px; display: grid; gap: 10px; align-content: start; }
.book .tag { justify-self: start; font-size: 15px; padding: 4px 14px; border-radius: 12px; background: var(--navy); color: #fff; }
.book .tag.now { background: var(--orange); }
.book h3 { font-size: 30px; color: var(--blue-deep); }
.book p { color: var(--sub); font-size: 17px; }
.book.later { opacity: .82; }

/* 브랜드 */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.about .text { display: grid; gap: 18px; }
.about h2 { font-size: clamp(32px, 4vw, 44px); color: var(--blue-deep); }
.about p { color: var(--sub); }
.about .art { display: flex; justify-content: center; align-items: flex-end; gap: 10px; }
.about .art img { width: 46%; }

.pledge { margin-top: 50px; padding: 34px 36px; display: grid; gap: 10px; }
.pledge h3 { font-size: 24px; }
.pledge ul { margin: 0; padding-left: 22px; color: var(--sub); }

/* 문의 */
.contact { text-align: center; }
.contact .felt { padding: 40px 30px; display: grid; gap: 14px; justify-items: center; }
.contact a.mail { font-size: 26px; color: var(--blue-deep); }

/* 글 페이지 (개인정보처리방침, 도움말, 개발자) */
.doc { padding: 60px 0 90px; }
.doc .felt { padding: clamp(28px, 5vw, 56px); }
.doc h1 { font-size: clamp(32px, 4.6vw, 44px); color: var(--blue-deep); margin-bottom: 8px; }
.doc .meta { color: var(--sub); margin-bottom: 30px; }
.doc h2 { font-size: 24px; margin: 34px 0 10px; color: var(--navy); }
.doc p, .doc li { color: #3D3850; font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; font-size: 17px; line-height: 1.8; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; font-size: 16px; }
.doc th, .doc td { border: 1px solid rgba(30, 27, 46, .14); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--sky); font-weight: 600; }
.faq details { border-bottom: 1px solid rgba(30, 27, 46, .12); padding: 16px 0; }
.faq summary { cursor: pointer; font-size: 21px; }
.faq details p { margin-top: 10px; }

.dev { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.dev svg { width: 100%; height: auto; }
.dev dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 12px 16px; font-size: 19px; }
.dev dt { color: var(--sub); }
.dev dd { margin: 0; }
.dev .name { font-size: 40px; color: var(--blue-deep); margin-bottom: 18px; }

/* 아래 */
footer { background: var(--navy); color: rgba(255, 255, 255, .82); padding: 50px 0 60px; font-size: 16px; }
footer .wrap { display: grid; gap: 14px; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .copy { color: rgba(255, 255, 255, .6); font-size: 14px; }
footer b { font-weight: 400; font-size: 24px; color: #FFD27A; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features, .series { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .top .wrap { height: auto; padding: 12px 0; flex-direction: column; gap: 6px; }
  .nav a { font-size: 15px; padding: 6px 10px; }
  section { padding: 64px 0; }
  .steps, .features, .series { grid-template-columns: 1fr; }
  .dev { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .dev svg { width: 180px; }
  .dev dl { text-align: left; }
}

/* ===== 기능 안내 ===== */
.shot { margin: 0; display: grid; justify-items: center; gap: 12px; }
.shot .phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 1179 / 2556;
  border-radius: 46px; padding: 12px; background: var(--navy);
  box-shadow: 0 24px 50px rgba(30, 27, 46, .25);
}
.shot .phone img, .shot .phone .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.shot .phone .ph {
  display: none; place-content: center; text-align: center; padding: 24px;
  background: linear-gradient(160deg, var(--sky), var(--pink)); color: var(--sub); font-size: 16px;
}
.shot.empty .phone img { display: none; }
.shot.empty .phone .ph { display: grid; }
.shot figcaption { color: var(--sub); font-size: 16px; text-align: center; }
.shots { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.shots .shot { width: 240px; }

.toc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.toc a { text-decoration: none; padding: 8px 16px; border-radius: 16px; background: var(--paper); box-shadow: 0 4px 0 #E5DCC8; font-size: 17px; }
.toc a:hover { color: var(--blue-deep); }

.frow { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 70px 0; border-top: 1px dashed rgba(30, 27, 46, .15); }
.frow:first-of-type { border-top: 0; }
.frow.rev .ftext { order: 2; }
.ftext { display: grid; gap: 16px; align-content: start; }
.ftext .kicker { color: var(--orange); font-size: 18px; }
.ftext h2 { font-size: clamp(30px, 4vw, 42px); color: var(--blue-deep); }
.ftext > p { color: var(--sub); }
.ftext ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ftext li { position: relative; padding: 14px 18px 14px 20px; border-radius: 18px; background: var(--paper); box-shadow: 0 3px 0 #EADFC9; font-size: 17px; line-height: 1.6; }
.ftext li b { font-weight: 400; color: var(--blue-deep); display: block; font-size: 19px; }
.ftext li span { color: var(--sub); }
.fshots { display: flex; gap: 18px; justify-content: center; }
.fshots .shot { width: 50%; max-width: 280px; }
.fshots.one .shot { width: 72%; max-width: 320px; }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: f; }
.flow .felt { padding: 26px 20px 28px; text-align: center; counter-increment: f; }
.flow .felt::before { content: counter(f); display: block; font-size: 40px; color: var(--orange); line-height: 1; margin-bottom: 8px; }
.flow h3 { font-size: 22px; color: var(--blue-deep); margin-bottom: 6px; }
.flow p { font-size: 16px; color: var(--sub); }

.worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.world { padding: 20px 16px 22px; text-align: center; }
.world .no { font-size: 15px; color: var(--sub); }
.world h3 { font-size: 21px; color: var(--blue-deep); margin: 4px 0; }
.world p { font-size: 15px; color: var(--sub); }
.world.boss { background: #2E2A45; color: #fff; }
.world.boss h3 { color: #FFD27A; }
.world.boss p, .world.boss .no { color: rgba(255, 255, 255, .75); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 26px 18px; text-align: center; }
.stat b { display: block; font-weight: 400; font-size: 46px; color: var(--orange); line-height: 1.1; }
.stat span { color: var(--sub); font-size: 17px; }

.more { text-align: center; margin-top: 40px; }

@media (max-width: 900px) {
  .frow { grid-template-columns: 1fr; gap: 34px; padding: 56px 0; }
  .frow.rev .ftext { order: 0; }
  .flow { grid-template-columns: 1fr 1fr; }
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .flow { grid-template-columns: 1fr; }
  .fshots .shot { width: 48%; }
}

/* 언어 선택 */
.langsel { appearance: none; -webkit-appearance: none; font: inherit; font-size: 15px; color: var(--blue-deep);
  background: var(--sky); border: 0; border-radius: 14px; padding: 8px 14px; cursor: pointer; flex: none; }
.langsel:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 900px) { .langsel { font-size: 14px; padding: 6px 10px; } }

/* 모바일 상단: 로고 · 언어 · 메뉴 한 줄, 메뉴는 눌러서 펼치기 */
.menu-btn { display: none; font: inherit; font-size: 15px; color: var(--navy); background: #fff; border: 1px solid rgba(30, 27, 46, .14);
  border-radius: 14px; padding: 7px 12px; cursor: pointer; flex: none; }
.top-tools { display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 760px) {
  .top .wrap { height: 62px; padding: 0; flex-direction: row; flex-wrap: nowrap; gap: 10px; position: relative; }
  .brand img { height: 36px !important; }
  .brand span { display: none; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 62px; left: -24px; right: -24px; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid rgba(30, 27, 46, .1); padding: 6px 24px 14px; box-shadow: 0 12px 20px rgba(30, 27, 46, .08); }
  .nav.open { display: flex; }
  .nav a { font-size: 17px; padding: 12px 14px; }
  .langsel { font-size: 14px; padding: 7px 10px; max-width: 116px; }
}
/* 개발자 소개: 좁은 화면에서 글자 넘침 방지 */
.dev > div { min-width: 0; width: 100%; }
.dev dd { overflow-wrap: anywhere; word-break: keep-all; }
@media (max-width: 620px) {
  .dev .name { font-size: 34px; text-align: center; }
  .dev dl { grid-template-columns: 56px 1fr; gap: 10px 12px; font-size: 17px; }
}

/* 이야기 영상 */
.film { margin: 56px auto 0; max-width: 880px; text-align: center; }
.film h3 { font-size: 28px; color: #FFD27A; }
.film p { color: rgba(255, 255, 255, .82); margin: 8px 0 22px; }
.film video { width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; background: #1E1B2E;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35); display: block; }
