:root {
  --ink: #2c3a2a;
  --ink-soft: #5d6b5a;
  --muted: #8a9686;
  --green: #4caf3a;
  --green-deep: #2f8a2a;
  --orange: #f28c34;
  --sky: #eaf6fb;
  --card: #ffffff;
  --line: #e3eedd;
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(47, 93, 42, .25);
  --head: 'Jua', 'Gowun Dodum', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Gowun Dodum', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f2fbec 0%, #eef8f6 45%, #eaf6fb 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; margin: 0; letter-spacing: -.01em; line-height: 1.3; }

/* ── 배경 */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hills { position: absolute; bottom: 0; left: 0; width: 100%; height: 22vh; min-height: 120px; }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .8; filter: blur(.3px); }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud.c1 { width: 140px; height: 40px; top: 14%; left: 6%; animation: drift 60s linear infinite alternate; }
.cloud.c1::before { width: 60px; height: 60px; top: -28px; left: 22px; }
.cloud.c1::after { width: 46px; height: 46px; top: -18px; left: 70px; }
.cloud.c2 { width: 110px; height: 32px; top: 9%; right: 10%; animation: drift 75s linear infinite alternate-reverse; }
.cloud.c2::before { width: 48px; height: 48px; top: -22px; left: 18px; }
.cloud.c2::after { width: 36px; height: 36px; top: -14px; left: 56px; }
.cloud.c3 { width: 90px; height: 26px; top: 46%; right: 4%; opacity: .55; animation: drift 90s linear infinite alternate; }
.cloud.c3::before { width: 40px; height: 40px; top: -18px; left: 14px; }
.cloud.c3::after { width: 30px; height: 30px; top: -12px; left: 46px; }
@keyframes drift { to { transform: translateX(60px); } }

.float-leaf {
  position: absolute; width: 18px; height: 11px; top: -20px;
  background: linear-gradient(135deg, #9fdc62, #4caf3a);
  border-radius: 0 100% 0 100%; opacity: .55;
  animation: fall 22s linear infinite;
}
.float-leaf.l1 { left: 12%; animation-delay: 0s; }
.float-leaf.l2 { left: 38%; animation-delay: -7s; animation-duration: 28s; }
.float-leaf.l3 { left: 68%; animation-delay: -14s; animation-duration: 25s; }
.float-leaf.l4 { left: 88%; animation-delay: -3s; animation-duration: 31s; }
.float-leaf.l5 { left: 25%; animation-delay: -18s; animation-duration: 27s; width: 14px; height: 9px; }
.float-leaf.l6 { left: 53%; animation-delay: -10s; animation-duration: 33s; background: linear-gradient(135deg, #c5e87a, #7cc443); }
.float-leaf.l8 { left: 6%; animation-delay: -12s; animation-duration: 29s; width: 13px; height: 8px; }
.float-leaf.l9 { left: 33%; animation-delay: -25s; animation-duration: 35s; background: linear-gradient(135deg, #c5e87a, #7cc443); }
.float-leaf.l10 { left: 47%; animation-delay: -5s; animation-duration: 26s; width: 16px; height: 10px; }
.float-leaf.l11 { left: 62%; animation-delay: -16s; animation-duration: 30s; width: 12px; height: 8px; }
.float-leaf.l12 { left: 94%; animation-delay: -9s; animation-duration: 27s; background: linear-gradient(135deg, #c5e87a, #7cc443); }
.float-leaf.l7 { left: 78%; animation-delay: -21s; animation-duration: 24s; width: 15px; height: 10px; }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(30px, 25vh) rotate(90deg); }
  50% { transform: translate(-10px, 50vh) rotate(180deg); }
  75% { transform: translate(25px, 75vh) rotate(270deg); }
  100% { transform: translate(0, 105vh) rotate(360deg); }
}

/* ── 상단바 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(76, 175, 58, .12);
}
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand-char { width: 40px; height: 46px; }
.brand-char .char { width: 100%; height: 100%; overflow: visible; }
.brand-char .sprout .body-wrap { animation: brand-sway 2.6s ease-in-out infinite; }
.brand-char .sprout .leaf-l { animation: sway-l-big 1.5s ease-in-out infinite; }
.brand-char .sprout .leaf-r { animation: sway-r-big 1.5s ease-in-out infinite .2s; }
.brand:hover .sprout .body-wrap { animation-duration: 1s; }
.brand:hover .sprout .leaf-l, .brand:hover .sprout .leaf-r { animation-duration: .6s; }
@keyframes brand-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes sway-l-big { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-14deg); } }
@keyframes sway-r-big { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(14deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-size: 11px; color: var(--muted); }
.brand-text b { font-family: var(--head); font-weight: 400; font-size: 18px; color: var(--green-deep); }
.nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex-shrink: 0; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; color: var(--ink-soft); transition: .2s;
}
.nav a:hover { background: color-mix(in srgb, var(--c) 12%, white); color: var(--ink); }
.nav a.on { background: var(--c); color: #fff; }
.nav a.special { color: color-mix(in srgb, var(--c) 80%, black); }
.nav a.special.on { color: #fff; }
.nav a.special + a:not(.special) { margin-left: 10px; position: relative; }
.nav a.special + a:not(.special)::before { content: ''; position: absolute; left: -9px; top: 25%; height: 50%; width: 1.5px; background: #dfe8da; }

main { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 40px; }

/* ── 공통 요소 */
.pill {
  display: inline-block; padding: 8px 16px 6px; border-radius: 999px;
  background: #fff3e4; color: #d9701c; font-family: var(--head); font-size: 16px; line-height: 1.2;
  box-shadow: inset 0 0 0 1.5px #ffd9b0;
}
.pill.small { font-size: 13px; padding: 5px 12px 3px; }
.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px;
  background: color-mix(in srgb, var(--c, var(--green)) 14%, white);
  color: color-mix(in srgb, var(--c, var(--green)) 80%, black);
}
.badge.soon { background: #f1f3ef; color: var(--muted); }
.sec-title { font-size: clamp(22px, 3vw, 28px); text-align: center; margin: 0 0 24px; }

/* ── 히어로 */
.hero { padding: clamp(28px, 5vw, 56px) 0 24px; text-align: center; }
.hero-copy h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.25; margin: 16px 0 12px; }
.hero-copy h1 em { font-style: normal; color: var(--green-deep); background: linear-gradient(transparent 62%, #fff0a8 62%); padding: 0 4px; }
.hero-copy p { color: var(--ink-soft); font-size: clamp(15px, 1.8vw, 17px); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.stats span { background: rgba(255,255,255,.8); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink-soft); box-shadow: 0 2px 8px -4px rgba(47,93,42,.3); }
.stats b { font-family: var(--head); font-weight: 400; color: var(--orange); font-size: 18px; margin-right: 2px; }

.stage {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  gap: clamp(8px, 3vw, 40px); max-width: 900px; margin: 34px auto 0;
}
.hero-char { position: relative; display: flex; flex-direction: column; align-items: center; outline: none; cursor: pointer; }
.hero-char .char { width: 100%; max-width: 190px; height: auto; overflow: visible; }
.hero-char.left .char { max-width: 165px; }
.name-tag {
  font-family: var(--head); font-size: 18px; padding: 8px 16px 4px; border-radius: 999px; margin-top: 6px; /* 주아 글씨가 위로 떠 보여서 위 8px·아래 4px */
  color: #fff; box-shadow: 0 6px 14px -8px rgba(0,0,0,.4);
}
.name-tag small { font-family: 'Gowun Dodum', sans-serif; font-size: 12px; opacity: .9; margin-left: 4px; }
.sprout-tag { background: linear-gradient(135deg, #5cc244, #3a9a30); }
.tree-tag { background: linear-gradient(135deg, #c98a4f, #9a5f2c); }
.bubble {
  position: absolute; bottom: calc(100% + 10px); z-index: 2; /* 캐릭터 머리 위 10px */
  background: #fff; border-radius: 18px; padding: 10px 14px;
  font-size: 13px; line-height: 1.45; color: var(--ink);
  box-shadow: var(--shadow); white-space: nowrap;
  opacity: 0; transform: translateY(8px) scale(.9); transition: .3s cubic-bezier(.34,1.56,.64,1);
}
.bubble::after { content: ''; position: absolute; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.hero-char.left .bubble { left: -6px; }
.hero-char.left .bubble::after { left: 30px; }
.hero-char.right .bubble { right: -6px; bottom: calc(100% + 4px); } /* 톡톡이 말풍선은 6px 더 아래로 (나뭇잎과 약 5px) */
.hero-char.right .bubble::after { right: 30px; }
.hero-char:hover .bubble, .hero-char:focus .bubble { opacity: 1; transform: translateY(-14px) scale(1); }

@media (min-width: 980px) {
  .hero { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 24px; text-align: left; padding-top: 40px; }
  .hero-copy p { margin: 0; }
  .stats { justify-content: flex-start; }
  .stage { margin: 0; max-width: none; }
}

/* 책(표지) */
.book {
  position: relative; display: block; width: clamp(150px, 19vw, 230px);
  transform: perspective(900px) rotateY(-14deg) rotateZ(-1.5deg);
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.34,1.4,.64,1);
  margin-bottom: 22px;
}
.book img {
  position: relative; z-index: 2; border-radius: 4px 12px 12px 4px;
  box-shadow: -6px 0 0 -2px #5a9fd8 inset, 0 24px 40px -18px rgba(30, 70, 110, .55), 0 2px 6px rgba(0,0,0,.1);
}
.book-pages {
  position: absolute; inset: 6px -8px 6px 8px; z-index: 1;
  background: repeating-linear-gradient(90deg, #fff 0 2px, #eef2f5 2px 3px);
  border-radius: 4px 10px 10px 4px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.4);
  transition: transform .5s;
}
.book-cta {
  position: absolute; left: 50%; bottom: -18px; z-index: 3; white-space: nowrap;
  transform: translate(-50%, 6px); opacity: 0; transition: .3s;
  background: var(--green-deep); color: #fff; font-family: var(--head);
  border-radius: 999px; font-size: 15px; box-shadow: 0 8px 18px -8px rgba(47,138,42,.7);
  /* 글씨를 캡슐 정가운데에: 높이 38px 고정 + 가운데 정렬 (화살표는 그림으로 바꿔 줄 높이에 영향 없게) */
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 2px 18px 0; line-height: 1; /* 주아체는 글자가 위로 1px 떠서 위 2px 보정 */
}
.book-cta .arr { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.book:hover, .book:focus-visible { transform: perspective(900px) rotateY(0) rotateZ(0) translateY(-12px) scale(1.04); }
.book:hover .book-pages, .book:focus-visible .book-pages { transform: translateX(6px) rotate(1.5deg); }
.book:hover .book-cta, .book:focus-visible .book-cta { opacity: 1; transform: translate(-50%, 0); }

/* ── 캐릭터 애니메이션 */
.char .body-wrap { transform-box: fill-box; transform-origin: 50% 100%; }
.char .eyes { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

/* 성장이 */
.sprout .body-wrap { animation: bob 3.2s ease-in-out infinite; }
.hero-char .sprout .body-wrap { animation: sway-bob 3s ease-in-out infinite; }
.hero-char .tree .arm-fist { animation: wave 3.2s ease-in-out infinite; }
@keyframes sway-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
@keyframes wave { 0%, 55%, 100% { transform: rotate(0); } 65% { transform: rotate(16deg); } 75% { transform: rotate(-4deg); } 85% { transform: rotate(14deg); } }
.sprout .leaf { transform-box: view-box; transform-origin: 100px 48px; }
.sprout .leaf-l { animation: sway-l 3.2s ease-in-out infinite; }
.sprout .leaf-r { animation: sway-r 3.2s ease-in-out infinite; }
.sprout .arm { transform-box: view-box; }
.sprout .arm-l { transform-origin: 48px 140px; }
.sprout .arm-r { transform-origin: 152px 140px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes sway-l { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@keyframes sway-r { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(6deg); } }

.hero-char:hover .sprout .body-wrap, .hero-char:focus .sprout .body-wrap { animation: hop .7s cubic-bezier(.3,.7,.4,1) infinite; }
.hero-char:hover .sprout .leaf-l, .hero-char:focus .sprout .leaf-l { animation: sway-l .35s ease-in-out infinite; }
.hero-char:hover .sprout .leaf-r, .hero-char:focus .sprout .leaf-r { animation: sway-r .35s ease-in-out infinite; }
.hero-char:hover .sprout .arm-l, .hero-char:focus .sprout .arm-l { animation: cheer-l .35s ease-in-out infinite alternate; }
.hero-char:hover .sprout .arm-r, .hero-char:focus .sprout .arm-r { animation: cheer-r .35s ease-in-out infinite alternate; }
.hero-char:hover .sprout .shadow, .hero-char:focus .sprout .shadow { animation: shadow .7s cubic-bezier(.3,.7,.4,1) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hop {
  0%, 100% { transform: translateY(0) scale(1.06, .94); }
  40% { transform: translateY(-22px) scale(.96, 1.05); }
  70% { transform: translateY(0) scale(1, 1); }
}
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: .14; } 40% { transform: scale(.7); opacity: .07; } }
@keyframes cheer-l { from { transform: rotate(0); } to { transform: rotate(70deg); } }
@keyframes cheer-r { from { transform: rotate(0); } to { transform: rotate(-70deg); } }

/* 톡톡이 */
.tree .crown { transform-box: view-box; transform-origin: 120px 125px; animation: crown 4.5s ease-in-out infinite; }
.tree .arm { transform-box: view-box; }
.tree .arm-fist { transform-origin: 98px 176px; }
.tree .arm-can { transform-origin: 144px 186px; }
.tree .drop { opacity: 0; }
@keyframes crown { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }

.hero-char:hover .tree .crown, .hero-char:focus .tree .crown { animation: crown-fast .6s ease-in-out infinite; }
.hero-char:hover .tree .arm-fist, .hero-char:focus .tree .arm-fist { animation: fist .5s ease-in-out infinite alternate; }
.hero-char:hover .tree .arm-can, .hero-char:focus .tree .arm-can { transform: rotate(14deg); transition: transform .4s; }
.hero-char:hover .tree .drop, .hero-char:focus .tree .drop { animation: drip 1s ease-in infinite; }
.hero-char:hover .tree .d2, .hero-char:focus .tree .d2 { animation-delay: .33s; }
.hero-char:hover .tree .d3, .hero-char:focus .tree .d3 { animation-delay: .66s; }
.hero-char:hover .tree .body-wrap, .hero-char:focus .tree .body-wrap { animation: wiggle 1.2s ease-in-out infinite; }
.tree .arm-can { transition: transform .4s; }
@keyframes crown-fast { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes fist { from { transform: rotate(0); } to { transform: rotate(18deg); } }
@keyframes drip { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(40px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }

/* ── 파트 카드 (메인) */
.parts { padding: 36px 0 20px; }
.part-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.part-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; padding: 22px 18px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.9); box-shadow: var(--shadow);
  border: 1.5px solid transparent; transition: .25s;
}
.part-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, white); box-shadow: 0 16px 34px -14px color-mix(in srgb, var(--c) 60%, transparent); }
.part-cover { width: 56%; max-width: 130px; }
.part-cover img { border-radius: 4px 8px 8px 4px; box-shadow: -3px 0 0 -1px var(--c) inset, 0 8px 16px -8px rgba(0,0,0,.35); transition: transform .3s; }
.part-card:hover .part-cover img { transform: rotate(-3deg) scale(1.04); }
.part-body { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.part-body h3 { font-size: 21px; color: color-mix(in srgb, var(--c) 75%, black); }
.part-body p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.part-body .badge { align-self: center; }
@media (max-width: 980px) { .part-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── 파트 페이지 */
.part-hero {
  position: relative; display: flex; gap: clamp(18px, 4vw, 40px); align-items: center;
  margin: 28px 0 20px; padding: clamp(18px, 3vw, 30px); border-radius: 28px;
  background: linear-gradient(120deg, #fff 30%, color-mix(in srgb, var(--c) 14%, white));
  box-shadow: var(--shadow); overflow: hidden;
}
.ph-cover { flex: 0 0 clamp(96px, 16vw, 150px); transform: rotate(-3deg); }
.ph-cover img { border-radius: 4px 10px 10px 4px; box-shadow: -4px 0 0 -1px var(--c) inset, 0 16px 28px -14px rgba(0,0,0,.45); }
.ph-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.ph-copy h1 { font-size: clamp(28px, 4vw, 40px); color: color-mix(in srgb, var(--c) 70%, black); }
.ph-copy p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.back { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.back:hover { color: var(--green-deep); }
.ph-char { flex: 0 0 120px; align-self: flex-end; margin-bottom: -30px; }
.ph-char .char { width: 120px; height: auto; }

.part-tools {
  display: flex; align-items: flex-start; gap: 14px; position: sticky; top: 66px; z-index: 5;
  padding: 4px 0 12px;
}
.tabs {
  flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 2px 6px;
}
.part-tools.searching .tabs a.on { background: rgba(255,255,255,.92); color: var(--ink-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 45%, white) inset; }
.part-tools.searching .tabs a.on i { background: #f0f3ee; color: var(--muted); }
/* 검색창 */
.search {
  flex: 0 0 280px; position: relative; display: flex; align-items: center; height: 44px;
  background: rgba(255,255,255,.96); border-radius: 999px; padding: 0 6px 0 42px;
  box-shadow: 0 3px 10px -6px rgba(0,0,0,.25), 0 0 0 2px color-mix(in srgb, var(--c) 22%, white) inset; transition: .2s;
}
.search:focus-within { box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--c) 70%, black), 0 0 0 2px var(--c) inset; }
.search .s-ic { position: absolute; left: 15px; width: 19px; height: 19px; fill: none; stroke: color-mix(in srgb, var(--c) 80%, black); stroke-width: 2.6; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: #a3ad9f; }
.s-back {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 80%, black); transition: .2s;
  animation: pop .25s ease;
}
.s-back[hidden] { display: none; }
.s-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.s-back:hover { background: var(--c); color: #fff; transform: rotate(-20deg); }
.res-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding-left: 14px; border-left: 5px solid var(--c, var(--green)); }
.res-head h3 { font-size: 22px; }
.res-head h3 b { color: color-mix(in srgb, var(--c) 80%, black); font-weight: 400; }
.res-head span { font-size: 14px; color: var(--muted); }
.res-head.other { border-left-color: #c9d3c4; }
.res-head.other h3 { font-size: 19px; color: var(--ink-soft); }
.res-none { margin: 0; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.8); color: var(--ink-soft); font-size: 15px; }
.topic mark { background: linear-gradient(transparent 55%, #ffe58a 55%); color: inherit; padding: 0 1px; }
.topic .where { align-self: flex-start; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 13%, white); color: color-mix(in srgb, var(--c) 75%, black); }
.topic .hit-law { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); background: #f6f8f3; border-radius: 10px; padding: 6px 9px; }
.search-empty { display: flex; align-items: center; gap: 20px; margin: 22px 0 36px; padding: 24px 28px; border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.search-empty .char { width: 96px; height: auto; flex-shrink: 0; }
.search-empty p { margin: 0 0 6px; font-size: 16px; }
.search-empty .muted { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.search-empty .go-btn { border: 0; cursor: pointer; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; font-size: 15px;
  background: rgba(255,255,255,.92); box-shadow: 0 3px 10px -6px rgba(0,0,0,.25);
  color: var(--ink-soft); transition: .2s;
}
.tabs a i { font-style: normal; font-size: 12px; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 999px; background: #f0f3ee; color: var(--muted); }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--c); color: #fff; }
.tabs a.on i { background: rgba(255,255,255,.28); color: #fff; }

.sub-sec { margin: 18px 0 30px; }
.sub-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding-left: 14px; border-left: 5px solid var(--green); }
.sub-head h3 { font-size: 22px; }
.sub-head span { font-size: 14px; color: var(--muted); }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.topic {
  text-align: left; background: rgba(255,255,255,.95); border: 0; padding: 12px 12px 14px;
  border-radius: 20px; box-shadow: var(--shadow); cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; transition: .25s;
}
.topic:hover, .topic:focus-visible { transform: translateY(-5px); box-shadow: 0 18px 30px -14px rgba(47,93,42,.45); outline: none; }
.thumb { position: relative; aspect-ratio: 1; margin-bottom: 10px; } /* 시리즈 카드의 겹친 종이(최대 약 10px 삐져나옴)에 아래 글씨가 가리지 않게, 모든 카드 같은 간격 */
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; position: relative; z-index: 2; }
.thumb.stack::before, .thumb.stack::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px; background: #fff;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,.2); transition: .3s;
}
/* 시리즈 카드 뒷장: 파트 색을 아주 연하게 (앞장 14%, 뒷장 22%) — 예전 값은 #f4f8f1 / #e9f2e4 */
.thumb.stack::before { transform: rotate(4deg) translate(4px, 2px); z-index: 1; background: color-mix(in srgb, var(--c, #5f9a4f) 14%, white); }
.thumb.stack::after { transform: rotate(-3deg) translate(-3px, 3px); z-index: 0; background: color-mix(in srgb, var(--c, #5f9a4f) 22%, white); }
.topic:hover .thumb.stack::before { transform: rotate(8deg) translate(10px, 0); }
.topic:hover .thumb.stack::after { transform: rotate(-7deg) translate(-9px, 2px); }
.count {
  position: absolute; z-index: 3; right: 8px; top: 8px; font-size: 12px;
  background: rgba(44, 58, 42, .78); color: #fff; padding: 3px 9px; border-radius: 999px;
}
.topic h4 { font-size: 17px; line-height: 1.35; margin-top: 6px; }
.author { font-size: 13px; color: var(--muted); }

.empty {
  display: flex; align-items: center; gap: 16px; padding: 22px 26px;
  background: rgba(255,255,255,.7); border: 2px dashed #d6e7cc; border-radius: 20px;
  color: var(--ink-soft); line-height: 1.6;
}
.empty .char { width: 64px; height: auto; flex-shrink: 0; }
.empty p { margin: 0; }

/* ── 뷰어 */
.viewer { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.viewer[hidden] { display: none; }
.viewer-backdrop { position: absolute; inset: 0; background: rgba(28, 42, 26, .62); backdrop-filter: blur(4px); animation: fade .2s; }
.viewer-panel {
  position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px);
  background: #fff; border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); animation: pop .3s cubic-bezier(.34,1.4,.64,1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 4px; }
.viewer-head > div { flex: 1; min-width: 0; }
/* 쪽수·장수 표시: 오른쪽 위(닫기 버튼 왼쪽), 상단 메뉴와 같은 글씨(고운돋움) */
.viewer-page {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; background: #f2f5f0; color: var(--ink-soft); line-height: 1;
}
.viewer-page.has-count { padding: 0 6px 0 18px; }
.viewer-page[hidden] { display: none; }
.viewer-page b { font-family: 'Gowun Dodum', sans-serif; font-weight: 400; font-size: 17px; color: var(--ink); letter-spacing: .2px; }
.viewer-page small { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 11px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-family: 'Gowun Dodum', sans-serif; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.viewer-page.no-label { padding: 0 6px; }
.viewer-page.flip b { animation: pageFlip .3s ease; display: inline-block; }
@keyframes pageFlip { from { transform: translateY(-5px); opacity: .3; } }
@media (max-width: 720px) {
  .viewer-stage img { max-height: calc(100vh - 300px); }
}
.viewer-head h3 { font-size: 20px; }
.viewer-meta { font-size: 13px; color: var(--muted); }
.icon-btn { border: 0; background: #f2f5f0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; flex-shrink: 0; font-size: 15px; }
.icon-btn:hover { background: #e4ecdf; }
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; padding: 0 30px; }
/* 성장입문서 미리보기: 연한 베이지 바탕 위에 종이 한 장 (모든 성장입문서 쪽, 카드뉴스 팝업은 흰색) */
.viewer.paper .viewer-stage { background: #f6f2ea; border: 1px solid #e9e2d4; border-radius: 18px; padding: 18px 30px; }
.viewer.paper .viewer-stage img { max-height: calc(100vh - 290px); box-shadow: 0 6px 16px -6px rgba(30, 40, 30, .35); }
.viewer-stage .nav-btn.prev { left: 4px; }
.viewer-stage .nav-btn.next { right: 4px; }
.viewer-stage img { max-height: calc(100vh - 250px); width: auto; max-width: 100%; border-radius: 0; user-select: none; -webkit-user-drag: none; touch-action: pan-y; cursor: zoom-in; transition: transform .22s ease; will-change: transform; }
.viewer-stage.zoomed img { touch-action: none; }
.viewer-stage.maxed img { cursor: zoom-out; }
.viewer-stage.dragging img { transition: none; }
.viewer-stage.zoomed.dragging img { cursor: grabbing; }
.viewer-foot { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.zoom-bar { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: #f2f5f0; }
.zoom-bar button { min-width: 32px; height: 32px; border: 0; border-radius: 999px; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; color: var(--green-deep); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.zoom-bar button:hover:not(:disabled) { background: var(--green); color: #fff; }
.zoom-bar button:disabled { opacity: .35; cursor: default; }
.zoom-bar .z-reset { font-size: 13px; padding: 0 12px; }
.zoom-bar span { min-width: 48px; text-align: center; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.zoom-hint { margin: 0; text-align: center; font-size: 12px; line-height: 1.6; color: var(--muted); }
.nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); box-shadow: 0 6px 16px -6px rgba(0,0,0,.4);
  display: grid; place-items: center; padding: 0; color: var(--green-deep); transition: .2s;
}
.nav-btn[hidden] { display: none; }
.nav-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn:hover:not(:disabled) { background: var(--green); color: #fff; }
.nav-btn:disabled { opacity: .3; cursor: default; }
.nav-btn.prev { left: -8px; }
.nav-btn.next { right: -8px; }
.viewer-dots { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.viewer-dots:empty { display: none; }
.viewer-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: #d7e3d0; cursor: pointer; transition: .2s; }
.viewer-dots button.on { width: 24px; background: var(--green); }

/* ── 푸터 */
.footer { position: relative; z-index: 1; text-align: center; padding: 30px 16px 40px; font-size: 14px; color: var(--ink-soft); }
.footer p { margin: 4px 0; }
.footer .muted { font-size: 12px; color: var(--muted); max-width: 760px; margin: 6px auto 0; line-height: 1.6; }
/* 저작권 안내: 위 안내보다 한 단계 작은 글씨(11.5px) */
.footer .copyright { font-size: 11.5px; color: var(--muted); max-width: 820px; margin: 12px auto 0; padding-top: 10px; border-top: 1px solid #e3eedd; line-height: 1.7; word-break: keep-all; }
.footer .copyright a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer .copyright a:hover { color: var(--green-deep); }

/* ── 반응형 */
@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: stretch; gap: 6px; padding-bottom: 6px; }
  .nav { margin-left: 0; }
  .nav a { padding: 6px 12px; font-size: 14px; }
  .part-tools { top: 104px; flex-wrap: wrap; gap: 8px; }
  .part-tools .tabs { flex-wrap: nowrap; }
  .part-tools .search { flex: 1 1 100%; order: -1; }
  .tabs:empty { display: none; }
  .stage { grid-template-columns: 1fr 1fr; grid-template-areas: 'book book' 'l r'; row-gap: 26px; }
  .book { grid-area: book; justify-self: center; width: 170px; }
  .hero-char.left { grid-area: l; }
  .hero-char.right { grid-area: r; }
  .hero-char .char { max-width: 140px; }
  .hero-char.left .char { max-width: 120px; }
  .bubble { font-size: 12px; }
  .part-grid { gap: 12px; }
  .part-card { padding: 16px 12px; }
  .part-body h3 { font-size: 18px; }
  .part-body p { font-size: 13px; }
  .ph-char, .ph-duo { display: none; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .topic { padding: 8px 8px 10px; border-radius: 16px; }
  .topic h4 { font-size: 15px; }
  .nav-btn.prev { left: 2px; } .nav-btn.next { right: 2px; }
  .viewer-panel { padding: 12px; }
}
/* ── 카드뉴스 상세 페이지 */
.detail { padding: 24px 0 20px; }
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 18px; font-size: 15px; }
.crumb > i { font-style: normal; color: #b6c0b1; font-size: 16px; }
.crumb .c-part { color: color-mix(in srgb, var(--c) 70%, black); font-weight: 700; }
.crumb .c-part:hover { text-decoration: underline; text-underline-offset: 4px; }
/* 같은 메뉴의 다른 카테고리로 바로 이동 */
.c-subs { display: flex; flex-wrap: wrap; gap: 6px; }
.c-subs a {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 14px; color: var(--muted); background: rgba(255,255,255,.65); border: 1.5px solid transparent; transition: .2s;
}
.c-subs a:hover { color: color-mix(in srgb, var(--c) 75%, black); background: color-mix(in srgb, var(--c) 10%, white); }
.c-subs a.on {
  color: color-mix(in srgb, var(--c) 78%, black); background: #fff; font-weight: 700;
  border-color: color-mix(in srgb, var(--c) 45%, white); box-shadow: 0 4px 12px -8px color-mix(in srgb, var(--c) 60%, black);
}
.c-subs a.on::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.d-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.d-card { position: sticky; top: 84px; background: #fff; border: 1.5px solid #edf1ea; border-radius: 26px; padding: 16px; box-shadow: var(--shadow); }
.d-stage { position: relative; display: flex; justify-content: center; }
.d-stage img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 16px; background: #f6f8f4; cursor: zoom-in; }
.d-card .viewer-dots { margin-top: 12px; }
.d-info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.d-info h1 { font-size: clamp(24px, 3vw, 32px); color: color-mix(in srgb, var(--c) 65%, black); }
.d-meta { display: flex; align-items: center; gap: 10px; }
.who { font-size: 14px; color: var(--ink-soft); }
.d-tip { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 6px 16px 6px 8px; box-shadow: 0 4px 14px -8px rgba(0,0,0,.25); }
.d-tip .char { width: 44px; height: 50px; overflow: visible; }
.d-tip p { margin: 0; font-size: 14px; color: var(--ink-soft); }
/* 카드뉴스 조언 칸의 톡톡이 움직임 5가지 (SVG 안 단위: 그림이 작아서 40 ≈ 화면 7px) */
.d-tip.m-sway .tree .body-wrap { animation: tip-sway 2.4s ease-in-out infinite; }
.d-tip.m-wave .tree .arm-fist { animation: tip-wave 1.8s ease-in-out infinite; }
.d-tip.m-water .tree .arm-can { animation: tip-pour 2.6s ease-in-out infinite; }
.d-tip.m-water .tree .drop { animation: drip 1s ease-in infinite; }
.d-tip.m-water .tree .d2 { animation-delay: .33s; }
.d-tip.m-water .tree .d3 { animation-delay: .66s; }
.d-tip.m-hop .tree .body-wrap { animation: tip-hop 1.6s cubic-bezier(.3,.7,.4,1) infinite; }
.d-tip.m-leaf .tree .crown { animation: crown-fast 1.1s ease-in-out infinite; }
.d-tip.m-leaf .tree .body-wrap { animation: wiggle 1.1s ease-in-out infinite; }
@keyframes tip-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes tip-wave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(24deg); } 40% { transform: rotate(-4deg); } 60% { transform: rotate(22deg); } 80% { transform: rotate(0); } }
@keyframes tip-pour { 0%, 100% { transform: rotate(0); } 25%, 75% { transform: rotate(20deg); } }
@keyframes tip-hop { 0%, 60%, 100% { transform: translateY(0) scale(1, 1); } 20% { transform: translateY(-40px) scale(.97, 1.03); } 40% { transform: translateY(0) scale(1.04, .96); } }
.d-tip b { color: color-mix(in srgb, var(--c) 75%, black); }
.ref-box { width: 100%; background: rgba(255,255,255,.94); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); }
.ref-box h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 18px; }
.ref-box h3 em { font-style: normal; color: color-mix(in srgb, var(--c) 80%, black); }
.ref-box h3 .pg-list { font-family: 'Gowun Dodum', sans-serif; font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 4px; }
.ref-box .ic { font-size: 18px; }
.ref-desc { margin: 6px 0 12px; font-size: 13.5px; color: var(--muted); }
.ref-pages { display: flex; flex-wrap: wrap; gap: 14px; }
.ref-pages.single { justify-content: center; }
.ref-pages.single .ref-page { width: min(100%, 300px); }
.ref-page { position: relative; width: 220px; padding: 0; border: 0; background: none; cursor: zoom-in; }
/* 성장입문서 쪽 미리보기: 그림과 회색 덮개가 한 틀(pg-frame) 안에 있어 함께 움직여요 */
.pg-frame { position: relative; display: block; border-radius: 8px; box-shadow: 0 10px 20px -12px rgba(0,0,0,.45); transition: transform .25s ease, box-shadow .25s ease; }
.pg-frame img { display: block; width: 100%; border-radius: 8px; border: 1px solid #e3eadf; }
.pg-frame .zoom { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 8px; background: rgba(44,58,42,.42); color: #fff; font-style: normal; font-size: 14px; opacity: 0; transition: opacity .2s; }
.ref-page:hover .pg-frame, .ref-page:focus-visible .pg-frame,
.ref-main:hover .pg-frame, .ref-main:focus-visible .pg-frame { transform: translateY(-5px); box-shadow: 0 18px 28px -14px rgba(0,0,0,.5); }
.ref-page:hover .zoom, .ref-page:focus-visible .zoom,
.ref-main:hover .zoom, .ref-main:focus-visible .zoom { opacity: 1; }
/* 쪽 번호: 숫자 + '쪽' (깔끔한 본문 글씨) */
.pg-cap { display: block; margin-top: 10px; height: 22px; line-height: 22px; text-align: center; font-family: 'Gowun Dodum', sans-serif; font-size: 15px; color: var(--ink-soft); } /* 높이 고정(10+22=32px) → 펼침면 가운데 음영 길이 계산에 씀 */
.ref-full { display: inline-block; margin-top: 12px; font-family: var(--head); font-size: 15px; color: color-mix(in srgb, var(--c) 80%, black); }
.ref-full:hover { text-decoration: underline; }
.law-list { display: grid; gap: 8px; margin-top: 12px; }
.law { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--c) 7%, white); border: 1.5px solid color-mix(in srgb, var(--c) 18%, white); transition: .2s; }
.law b { display: block; font-family: var(--head); font-weight: 400; font-size: 16px; }
.law small { font-size: 12.5px; color: var(--muted); }
.law i { font-style: normal; font-size: 18px; color: color-mix(in srgb, var(--c) 80%, black); }
a.law:hover { transform: translateX(3px); border-color: var(--c); }
.ref-empty { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); line-height: 1.6; }
.ref-empty .char { width: 56px; height: auto; flex-shrink: 0; }
.ref-empty p { margin: 0; }
.d-navs { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
.d-nav { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); transition: .2s; width: var(--navw, auto); max-width: calc(50% - 8px); min-width: 0; }
.d-nav > span { min-width: 0; }
.d-nav.next { flex-direction: row-reverse; text-align: right; }
.d-nav img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.d-nav small { display: block; font-size: 12px; color: var(--muted); }
.d-nav b { display: block; font-family: var(--head); font-weight: 400; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-nav:hover { transform: translateY(-3px); }
@media (max-width: 860px) {
  .d-grid { grid-template-columns: 1fr; }
  .d-card { position: static; }
  .d-navs { flex-direction: column; }
  .d-nav { width: 100%; max-width: none; }
  .ref-page { width: calc(50% - 7px); }
}

/* 성장입문서 쪽: 2장 = 펼친 책 */
.ref-spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 470px; margin: 0 auto; }
.ref-spread .ref-page { width: auto; }
.ref-spread .pg-frame, .ref-spread .pg-frame img, .ref-spread .pg-frame .zoom { border-radius: 0; }
.ref-spread .pg-frame img { border: 0; }
.ref-spread .ref-page:first-child .pg-frame, .ref-spread .ref-page:first-child .pg-frame img, .ref-spread .ref-page:first-child .zoom { border-radius: 8px 2px 2px 8px; }
.ref-spread .ref-page:nth-child(2) .pg-frame, .ref-spread .ref-page:nth-child(2) .pg-frame img, .ref-spread .ref-page:nth-child(2) .zoom { border-radius: 2px 8px 8px 2px; }
.ref-spread .fold {
  position: absolute; top: 0; bottom: 32px; /* 쪽 번호 줄 높이만큼 빼서 책 길이에 맞춰요 */ left: 50%; width: 34px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.08) 40%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.08) 60%, transparent);
}
/* 성장입문서 쪽: 3장 이상 = 큰 쪽 + 작은 쪽 줄 */
.ref-gallery { display: grid; gap: 10px; }
.ref-main { position: relative; justify-self: center; width: min(100%, 290px); padding: 0; border: 0; background: none; cursor: zoom-in; }

.ref-strip { display: flex; gap: 10px; overflow-x: auto; padding: 8px 4px 8px; scrollbar-width: thin; }
.ref-thumb { position: relative; flex: 0 0 62px; padding: 0; border: 0; background: none; cursor: pointer; }
.ref-thumb img { width: 62px; border-radius: 5px; border: 2px solid #e3eadf; opacity: .7; transition: .2s; }
.ref-thumb span { display: block; margin-top: 3px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.ref-thumb:hover img { opacity: 1; }
.ref-thumb.on img { opacity: 1; border-color: var(--c); transform: translateY(-2px); }
.ref-thumb.on span { color: color-mix(in srgb, var(--c) 80%, black); font-weight: 700; }
.ref-thumb.mine::after { content: '이 카드'; position: absolute; top: -6px; right: -6px; background: #f28c34; color: #fff; font-size: 10px; line-height: 1.4; padding: 1px 5px; border-radius: 999px; }
.ref-sync { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; color: var(--ink-soft); background: color-mix(in srgb, var(--c) 8%, white); }
.ref-sync b { color: color-mix(in srgb, var(--c) 80%, black); }

/* ── 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── 성장입문서란? */
.guide-hero { text-align: center; padding: clamp(32px, 5vw, 56px) 0 10px; }
.guide-hero h1 { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.3; margin: 16px 0 12px; }
.guide-hero h1 em, .friends-head h1 em { font-style: normal; color: var(--green-deep); background: linear-gradient(transparent 62%, #fff0a8 62%); padding: 0 4px; }
.guide-hero > p { color: var(--ink-soft); line-height: 1.75; margin: 0 auto; max-width: 640px; font-size: clamp(14px, 1.7vw, 16px); }
.fan { position: relative; height: calc(clamp(84px, 14vw, 168px) * 1.42 + 50px); max-width: 1000px; margin: 40px auto 0; }
.fan-book {
  position: absolute; left: 50%; top: 0; width: clamp(84px, 14vw, 168px);
  transform-origin: 50% 100%;
  transform: translateX(-50%) translateY(50px) scale(.85);
  opacity: 0;
  transition: transform 1s cubic-bezier(.34,1.3,.64,1) calc(var(--i) * .11s + .15s), opacity .45s ease calc(var(--i) * .06s);
}
.fan.open .fan-book {
  opacity: 1;
  transform: translateX(calc(-50% + var(--o) * min(12.5vw, 138px))) translateY(var(--y)) rotate(calc(var(--o) * 4deg));
}
.fan-inner { position: relative; transition: transform .35s cubic-bezier(.34,1.56,.64,1); cursor: default; }
.fan-inner img { border-radius: 4px 10px 10px 4px; box-shadow: -4px 0 0 -1px rgba(0,0,0,.06) inset, 0 18px 30px -16px rgba(30,60,30,.55), 0 2px 5px rgba(0,0,0,.08); }
.fan-inner span {
  position: absolute; left: 50%; top: -34px; transform: translateX(-50%) translateY(6px); white-space: nowrap;
  background: var(--green-deep); color: #fff; font-family: var(--head); font-size: 14px; border-radius: 999px;
  opacity: 0; transition: .25s;
  /* 6권 모두 같은 크기(높이 26px)·같은 간격, 글씨는 캡슐 정가운데 */
  display: flex; align-items: center; height: 26px; padding: 2px 13px 0; line-height: 1;
}
.fan-book:hover { z-index: 10; }
.fan-book:hover .fan-inner { transform: translateY(-22px) scale(1.08); }
.fan-book:hover .fan-inner span { opacity: 1; transform: translateX(-50%) translateY(0); }
.guide-lead { margin: 24px 0 10px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.guide-lead b { color: var(--orange); font-family: var(--head); font-weight: 400; font-size: 19px; }
.scroll-hint { display: inline-block; font-size: 22px; color: var(--green); animation: bob 1.6s ease-in-out infinite; }

.guide-sec {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center;
  gap: clamp(24px, 5vw, 64px); margin: 34px 0 60px; padding: clamp(22px, 4vw, 46px);
  background: rgba(255,255,255,.78); border-radius: 32px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.guide-sec::before {
  content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%);
  left: -80px; top: -80px; pointer-events: none;
}
.guide-sec.rev::before { left: auto; right: -80px; }
.guide-sec.rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.guide-sec.rev .guide-book { order: 2; }
.guide-book { display: flex; justify-content: center; padding: 10px 0 34px; opacity: 0; transform: translateX(-50px); transition: opacity .9s ease .2s, transform 1s cubic-bezier(.2,.8,.2,1) .2s; }
.guide-sec.rev .guide-book { transform: translateX(50px); }
.guide-sec.in .guide-book { opacity: 1; transform: none; }
.guide-sec .book { width: clamp(160px, 22vw, 240px); margin: 0; }
.guide-sec .book img { box-shadow: -6px 0 0 -2px var(--c) inset, 0 24px 40px -18px rgba(30, 70, 110, .5), 0 2px 6px rgba(0,0,0,.1); }
.guide-sec .book:hover, .guide-sec .book:focus-visible { transform: perspective(900px) rotateY(0) rotateZ(0) translateY(-12px) scale(1.04); }
.guide-text { position: relative; }
.book-no { font-family: var(--head); color: var(--c); letter-spacing: .12em; font-size: 14px; }
.guide-text h2 { font-size: clamp(24px, 3vw, 32px); margin: 4px 0 12px; color: color-mix(in srgb, var(--c) 70%, black); }
.g-intro { margin: 0 0 14px; line-height: 1.8; color: var(--ink-soft); }
.chapters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.chapters span { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--c) 11%, white); color: color-mix(in srgb, var(--c) 75%, black); }
.made { background: linear-gradient(135deg, #f5fbf1, #fff); border: 1.5px dashed #cfe5c2; border-radius: 20px; padding: 18px 20px; }
.made h3 { font-size: 18px; color: var(--green-deep); margin-bottom: 6px; }
.made > p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.made-subs { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.made-subs li a { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 12px; padding: 6px 10px; font-size: 13.5px; box-shadow: 0 2px 6px -3px rgba(0,0,0,.2); transition: .2s; }
.made-subs li a:hover { transform: translateY(-2px); box-shadow: 0 6px 12px -6px var(--c); color: color-mix(in srgb, var(--c) 75%, black); }
.made-subs li b { font-weight: 400; }
.made-subs li span { font-size: 11px; background: var(--c); color: #fff; border-radius: 999px; padding: 1px 7px; }
.made-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.go-btn { background: var(--c); color: #fff; font-family: var(--head); font-size: 15px; padding: 9px 18px; border-radius: 999px; box-shadow: 0 8px 16px -8px var(--c); transition: .2s; }
.go-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.guide-hero .goe { color: #1f6fb5; font-weight: 700; }
.guide-lead .strong, .hero-copy p b, .profile ul b { font-weight: 700; color: var(--ink); }

/* ── 성장이와 톡톡이 */
.friends { padding: clamp(30px, 5vw, 50px) 0 10px; text-align: center; }
.friends-head h1 { font-size: clamp(26px, 4.4vw, 44px); margin: 14px 0 10px; }
.friends-head h1 .g { color: var(--green-deep); }
.friends-head h1 .b { color: #a8682f; }
.friends-head p { color: var(--ink-soft); margin: 0; }
.fade-up { animation: fadeUp .8s cubic-bezier(.2,.8,.2,1) both; }
.fade-in { animation: fadeIn 1.2s cubic-bezier(.2,.8,.2,1) .3s both; }
.fade-up.d3 { animation-delay: 1.2s; }
.fade-in.d2 { animation-delay: .8s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(36px) scale(.88); } }

.scene {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  height: 390px; max-width: 760px; margin: 6px auto 0; padding-left: 70px;
}
.ground { position: absolute; left: 4%; right: 4%; bottom: -14px; height: 46px; z-index: 0; border-radius: 50%; background: radial-gradient(ellipse at center, #cbe8b3 0, #d7efc4 50%, transparent 72%); }
.f-char { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.f-sprout { width: clamp(110px, 16vw, 150px); cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; z-index: 2; }
.f-tree { --log: 0px; width: clamp(180px, 26vw, 250px); margin-left: clamp(16px, 5vw, 60px); }
.grow { position: relative; width: 100%; transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.34,1.8,.5,1); }
.grow .char, .mirror .char { width: 100%; height: auto; overflow: visible; display: block; }
.grow.is-senior .char { width: 135%; margin-left: -35%; }
.scene[data-level="1"] .grow { transform: scale(1.18); }
.scene[data-level="2"] .grow { transform: scale(1.36); }
.scene[data-level="3"] .grow, .scene[data-level="4"] .grow { transform: scale(1.55); }
.grow.pop .char { animation: popIn .8s cubic-bezier(.34,1.8,.5,1); transform-origin: 50% 100%; }
@keyframes popIn { 0% { transform: scale(.7); opacity: .4; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.f-sprout:hover .sprout:not(.senior) .body-wrap, .f-sprout:focus-visible .sprout:not(.senior) .body-wrap { animation: hop .7s cubic-bezier(.3,.7,.4,1) infinite; }
.f-sprout:hover .sprout .leaf-l { animation: sway-l .35s ease-in-out infinite; }
.f-sprout:hover .sprout .leaf-r { animation: sway-r .35s ease-in-out infinite; }

/* 다 자란 성장이: 물뿌리개로 새싹에게 물 주기 */
.senior .s-can { transform-box: view-box; transform-origin: 68px 152px; animation: s-pour 2.6s ease-in-out infinite; }
.senior .sd { opacity: 0; animation: drip 1s ease-in infinite; }
.senior .sd2 { animation-delay: .33s; }
.senior .sd3 { animation-delay: .66s; }
.senior .crown-s { transform-box: view-box; transform-origin: 100px 64px; animation: crown 3s ease-in-out infinite; }
.senior .baby { transform-box: fill-box; transform-origin: 50% 100%; animation: baby-in .9s cubic-bezier(.34,1.8,.5,1) .5s both, baby-sway 2.2s ease-in-out 1.4s infinite; }
@keyframes s-pour { 0%, 100% { transform: rotate(0); } 30%, 75% { transform: rotate(-16deg); } }
@keyframes baby-in { from { transform: scale(0); } }
@keyframes baby-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* 톡톡이와 통나무 */
.lift { position: relative; z-index: 1; transform: translateY(calc(-1 * var(--log))); transition: transform .7s cubic-bezier(.34,1.5,.5,1); }
.mirror { transform: scaleX(-1); }
.log {
  position: absolute; left: 50%; bottom: 0; width: 40%; height: var(--log); transform: translateX(-50%);
  background: linear-gradient(90deg, #8a5428, #b9783f 28%, #cf9356 55%, #9a612f);
  border-radius: 4px 4px 10px 10px; opacity: 0;
  transition: height .7s cubic-bezier(.34,1.5,.5,1), opacity .3s;
}
.log::after { content: ''; position: absolute; left: 18%; right: 22%; top: 30%; height: 2px; background: rgba(90, 50, 20, .25); border-radius: 2px; box-shadow: 8px 14px 0 rgba(90,50,20,.18); }
.log i {
  position: absolute; left: -2px; right: -2px; top: -10px; height: 20px; border-radius: 50%;
  background: radial-gradient(ellipse at center, #f6d9ab 0 14%, #d6a467 15% 19%, #f1cf9c 20% 38%, #d6a467 39% 43%, #ecc48d 44% 64%, #c88d4f 65%);
  border: 2px solid #96602f;
}
.scene[data-level="2"] .log, .scene[data-level="3"] .log, .scene[data-level="4"] .log { opacity: 1; }
.f-tree.watering .tree .arm-can { transform: rotate(20deg); }
.f-tree.watering .tree .crown { animation: crown-fast .6s ease-in-out infinite; }
.f-tree.watering .tree .body-wrap { animation: wiggle 1.2s ease-in-out infinite; }

/* 말풍선 */
.say {
  position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 3;
  background: #fff; border-radius: 18px; padding: 10px 15px; white-space: nowrap;
  font-size: 14px; line-height: 1.5; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(-50%) translateY(8px) scale(.9);
  transition: opacity .3s, transform .35s cubic-bezier(.34,1.56,.64,1), bottom .8s cubic-bezier(.34,1.8,.5,1), left .5s;
}
.say::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.say.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.scene[data-level="1"] .f-sprout .say { bottom: calc(118% + 12px); }
.scene[data-level="2"] .f-sprout .say { bottom: calc(136% + 12px); }
.scene[data-level="3"] .f-sprout .say { bottom: calc(155% + 12px); }
.scene[data-level="4"] .f-sprout .say { bottom: calc(150% + 10px); }
.f-tree .say { left: 62%; bottom: calc(100% - 4px); }
/* 통나무에 올라간 뒤에는 톡톡이 말풍선을 오른쪽 옆으로 */
.scene[data-level="2"] .f-tree .say, .scene[data-level="3"] .f-tree .say, .scene[data-level="4"] .f-tree .say {
  left: calc(100% - 26px); bottom: calc(var(--log) + 64%); transform: translateX(-8px) scale(.9);
}
.scene[data-level="2"] .f-tree .say.show, .scene[data-level="3"] .f-tree .say.show, .scene[data-level="4"] .f-tree .say.show { transform: none; }
.scene[data-level="2"] .f-tree .say::after, .scene[data-level="3"] .f-tree .say::after, .scene[data-level="4"] .f-tree .say::after {
  left: -6px; bottom: calc(50% - 7px); margin-left: 0;
}

.water-drop {
  position: absolute; z-index: 4; width: 9px; height: 12px; pointer-events: none;
  background: linear-gradient(160deg, #9ad6ff, #3d9bf0);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
}
.sparkles { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; z-index: 4; }
.sparkles i { position: absolute; font-style: normal; font-size: 13px; color: #ffc93c; opacity: 0; }
.sparkles.go i { animation: burst 1s ease-out forwards; }
@keyframes burst {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(1); }
}

.growbar { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 34px 0 10px; font-family: var(--head); color: var(--ink-soft); flex-wrap: wrap; }
.lv-dots { display: flex; gap: 6px; }
.lv-dots i { width: 36px; height: 10px; border-radius: 999px; background: #e1eadb; transition: background .5s; }
.lv-dots i.on { background: linear-gradient(90deg, #a6e05c, #3f9b2e); }
.lv-dots i:last-child { background: #f3e7d4; }
.lv-dots i:last-child.on { background: linear-gradient(90deg, #ffd36b, #f28c34); box-shadow: 0 0 10px rgba(242, 140, 52, .5); }
.reset { border: 0; background: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; box-shadow: 0 3px 10px -5px rgba(0,0,0,.3); font-size: 14px; }
.reset:hover { background: #f2f8ee; }

/* 소개 카드: 마스킹테이프 + 위로 튀어나온 동그란 캐릭터 */
.profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 70px; text-align: left; }
.profile {
  position: relative; background: #fff; border-radius: 28px; padding: 62px 26px 24px;
  box-shadow: var(--shadow); border: 2px solid color-mix(in srgb, var(--pc) 20%, white);
}
.p-sprout { --pc: #5cbf3f; }
.p-tree { --pc: #c98a4f; transition-delay: .15s; }
.tape {
  position: absolute; top: -13px; right: 34px; width: 96px; height: 26px; transform: rotate(4deg);
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--pc) 45%, white) 0 8px, color-mix(in srgb, var(--pc) 30%, white) 8px 16px);
  opacity: .85; border-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,.06);
}
.p-av {
  position: absolute; top: -46px; left: 24px; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 12%, white);
  border: 5px solid #fff; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--pc) 70%, transparent);
}
.p-av .char { width: 70px; height: 70px; }
.p-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.p-name h2 { font-size: 26px; color: color-mix(in srgb, var(--pc) 70%, black); }
.p-role { font-size: 13px; padding: 3px 11px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 12%, white); color: color-mix(in srgb, var(--pc) 70%, black); }
.profile ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.profile ul b { color: var(--ink); }
.profile blockquote { margin: 0; padding: 12px 16px; border-radius: 16px; text-align: center; font-family: var(--head); font-size: 16px; border: 1.5px dashed color-mix(in srgb, var(--pc) 40%, white); color: color-mix(in srgb, var(--pc) 65%, black); }

/* ── 파트 페이지 상단의 성장이와 톡톡이 (네 파트 모두 같은 위치, 장면만 다름) */
.ph-duo { position: relative; flex: 0 0 236px; height: 160px; align-self: flex-end; margin-bottom: -26px;
  /* 머리 위 장식 위치: 성장이 머리 가운데 x=53px(새싹 잎 윗부분 y=76px), 톡톡이 나뭇잎 가운데 x=169px(윗부분 y=22px) */
  --sx1: 23px; --sx2: 43px; --sx3: 63px; --sx4: 83px; --sy1: 40px; --sy2: 48px;
  --qx1: 39px; --qx2: 67px; --tx1: 153px; --tx2: 185px; --ty: -6px;
}
.ph-duo .char { width: 100%; height: auto; overflow: visible; display: block; }
.duo-sprout { position: absolute; bottom: 0; left: 14px; width: 78px; z-index: 2; }
.duo-tree { position: absolute; bottom: 0; left: 104px; width: 128px; }
.ph-duo .pop { position: absolute; opacity: 0; pointer-events: none; font-family: var(--head); font-size: 17px; z-index: 3; }
@keyframes float-up { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px) scale(1.1); } }

/* 행정공통: 톡톡이가 통나무 위에서 성장이 머리 위로 물을 뿌리고, 성장이는 살랑살랑 */
.duo-water .duo-tree { bottom: 54px; }
.duo-water::before {
  content: ''; position: absolute; left: 142px; bottom: 0; width: 52px; height: 56px; border-radius: 4px 4px 8px 8px;
  background: linear-gradient(90deg, #8a5428, #c48a4f 50%, #9a612f);
}
.duo-water::after {
  content: ''; position: absolute; left: 141px; bottom: 49px; width: 54px; height: 13px; border-radius: 50%;
  background: radial-gradient(ellipse, #f6d9ab 0 20%, #d6a467 21% 28%, #efc994 29% 60%, #c88d4f 61%); border: 1.5px solid #96602f;
}
.duo-water .tree .arm-can { animation: d-pour 3s ease-in-out infinite; }
.duo-water .tree .drop { animation: arc-drop 1.1s ease-in infinite; }
.duo-water .tree .d2 { animation-delay: .37s; }
.duo-water .tree .d3 { animation-delay: .74s; }
.duo-water .sprout .body-wrap { animation: happy 1.6s ease-in-out infinite; }
.duo-water .sprout .leaf-l { animation: sway-l .5s ease-in-out infinite; }
.duo-water .sprout .leaf-r { animation: sway-r .5s ease-in-out infinite; }
/* 하트·반짝이·물음표·전구: left 값이 글자의 가운데(폭 24px, margin-left -12px) */
.duo-water .pop, .duo-cheer .pop, .duo-idea .pop { width: 24px; margin-left: -12px; text-align: center; }
.duo-water .pop { color: #ff6f93; animation: float-up 2.4s ease-out infinite; }
.duo-water .pop.h1 { left: var(--sx1); top: var(--sy2); }
.duo-water .pop.h2 { left: var(--sx2); top: var(--sy1); animation-delay: .6s; }
.duo-water .pop.h3 { left: var(--sx3); top: var(--sy1); animation-delay: 1.2s; }
.duo-water .pop.h4 { left: var(--sx4); top: var(--sy2); animation-delay: 1.8s; }
@keyframes d-pour { 0%, 100% { transform: rotate(6deg); } 25%, 75% { transform: rotate(16deg); } }
/* 물방울: 물뿌리개 끝에서 포물선을 그리며 성장이 머리 위로 (톡톡이는 좌우반전이라 +X가 화면 왼쪽) */
@keyframes arc-drop { 0% { opacity: 0; transform: translate(0, 0); } 12% { opacity: 1; } 45% { transform: translate(46px, -10px); } 88% { opacity: 1; } 100% { opacity: 0; transform: translate(90px, 66px); } }
@keyframes happy { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-3px); } }

/* 지출: 성장이는 통통, 톡톡이는 몸을 기울여 엄지척 칭찬 */
.duo-cheer .sprout .body-wrap { animation: hop-s .9s ease-in-out infinite; }
.duo-cheer .sprout .arm-l { animation: cheer-l .45s ease-in-out infinite alternate; }
.duo-cheer .sprout .arm-r { animation: cheer-r .45s ease-in-out infinite alternate; }
.duo-cheer .tree .body-wrap { animation: lean 1.8s ease-in-out infinite; }
.duo-cheer .tree .arm-fist { animation: fist .45s ease-in-out infinite alternate; }
.duo-cheer .pop { color: #ffc93c; animation: float-up 1.8s ease-out infinite; }
.duo-cheer .pop.g1 { left: var(--sx1); top: var(--sy2); }
.duo-cheer .pop.g2 { left: var(--sx2); top: var(--sy1); animation-delay: .45s; }
.duo-cheer .pop.g3 { left: var(--sx3); top: var(--sy1); animation-delay: .9s; }
.duo-cheer .pop.g4 { left: var(--sx4); top: var(--sy2); animation-delay: 1.35s; }
.duo-cheer .pop.thumb { font-size: 18px; animation: float-up 1.8s ease-out infinite; }
.duo-cheer .pop.t1 { left: var(--tx1); top: var(--ty); animation-delay: .3s; }
.duo-cheer .pop.t2 { left: var(--tx2); top: var(--ty); animation-delay: 1.2s; }
@keyframes hop-s { 0%, 100% { transform: translateY(0) scale(1.05, .95); } 45% { transform: translateY(-14px) scale(.97, 1.04); } 70% { transform: translateY(0) scale(1); } }
@keyframes lean { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }

/* 물품: 둘이 신나게 춤추기 */
.duo-dance .sprout .body-wrap { animation: dance 1.2s ease-in-out infinite; }
.duo-dance .sprout .arm-l { animation: cheer-l .6s ease-in-out infinite alternate; }
.duo-dance .sprout .arm-r { animation: cheer-r .6s ease-in-out infinite alternate .3s; }
.duo-dance .tree .body-wrap { animation: dance 1.2s ease-in-out infinite reverse; }
.duo-dance .tree .crown { animation: crown-fast 1.2s ease-in-out infinite; }
.duo-dance .tree .arm-fist { animation: fist .6s ease-in-out infinite alternate; }
.duo-dance .pop { font-size: 19px; animation: float-up 2.1s ease-out infinite; }
.duo-dance .pop.s1 { left: 18px; top: 52px; color: #5bb38a; }
.duo-dance .pop.s2 { left: 48px; top: 44px; color: #e0a14f; animation-delay: .7s; }
.duo-dance .pop.s3 { left: 74px; top: 54px; color: #8a7fd6; animation-delay: 1.4s; }
.duo-dance .pop.t1 { left: 130px; top: 6px; color: #e0a14f; animation-delay: .35s; }
.duo-dance .pop.t2 { left: 168px; top: -4px; color: #5bb38a; animation-delay: 1.05s; }
.duo-dance .pop.t3 { left: 204px; top: 8px; color: #e8806a; animation-delay: 1.75s; }
@keyframes dance { 0%, 100% { transform: rotate(-8deg) translateY(0); } 25% { transform: rotate(0) translateY(-6px); } 50% { transform: rotate(8deg) translateY(0); } 75% { transform: rotate(0) translateY(-6px); } }

/* 급여·공무직 인사: 성장이가 갸웃(?) → 톡톡이가 번뜩(💡) → 성장이 신나서 폴짝 */
.duo-idea .sprout .body-wrap { animation: idea-s 4s ease-in-out infinite; }
.duo-idea .tree .arm-fist { animation: idea-t 4s ease-in-out infinite; }
.duo-idea .pop.q { color: #3f5ba9; font-size: 24px; animation: q-pop 4s ease-in-out infinite; }
/* 물음표 3개: 성장이가 왼쪽으로 11도 기울 때 머리 꼭대기가 53px → 38px로 옮겨 가서,
   아치(33·53·73px)도 성장이 발밑(53px, 155px)을 축으로 똑같이 11도 돌린 자리에 놓아요 */
.duo-idea .pop.q1 { left: 16px; top: 54px; }
.duo-idea .pop.q2 { left: 34px; top: 40px; animation-delay: .12s; }
.duo-idea .pop.q3 { left: 55px; top: 46px; animation-delay: .24s; }
/* 전구 3개: 톡톡이 나뭇잎 가운데(169px)를 기준으로 145·169·193px, 가운데가 10px 더 높은 아치 */
.duo-idea .pop.bulb { font-size: 20px; animation: b-pop 4s ease-in-out infinite; }
.duo-idea .pop.b1 { left: 145px; top: 2px; }
.duo-idea .pop.b2 { left: 169px; top: -8px; animation-delay: .12s; }
.duo-idea .pop.b3 { left: 193px; top: 2px; animation-delay: .24s; }
@keyframes idea-s { 0%, 100% { transform: rotate(0) translateY(0); } 10%, 40% { transform: rotate(-11deg); } 50% { transform: rotate(0); } 58% { transform: translateY(-12px); } 66% { transform: translateY(0); } 74% { transform: translateY(-9px); } 82% { transform: translateY(0); } }
@keyframes idea-t { 0%, 42%, 100% { transform: rotate(0); } 48% { transform: rotate(22deg); } 54% { transform: rotate(2deg); } 60% { transform: rotate(20deg); } 68% { transform: rotate(0); } }
@keyframes q-pop { 0%, 6% { opacity: 0; transform: rotate(-11deg) scale(.4); } 14%, 40% { opacity: 1; transform: rotate(-11deg) scale(1); } 46%, 100% { opacity: 0; transform: rotate(-11deg) scale(.6); } }
@keyframes b-pop { 0%, 44% { opacity: 0; transform: scale(.4) translateY(6px); } 52%, 86% { opacity: 1; transform: scale(1) translateY(0); } 94%, 100% { opacity: 0; transform: scale(.7); } }

@media (max-width: 720px) {
  .guide-sec { grid-template-columns: 1fr; }
  .guide-sec.rev .guide-book { order: 0; }
  .made-foot { flex-direction: column; align-items: flex-start; }
  .profiles { grid-template-columns: 1fr; }
  .scene { height: 360px; padding-left: 0; }
  .profiles { gap: 64px; }
  .say { font-size: 12.5px; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
