: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: 7px 14px 9px; border-radius: 999px; /* 위 7 · 아래 9: 글꼴 윗여백 때문에 아래로 쳐져 보이던 글자를 캡슐 가운데로 */
  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; }
/* 화면을 그리기 전에도 본문 자리를 한 화면만큼 잡아 두어, 맨 아래 안내문이 먼저 보이지 않게 */
main#app { min-height: calc(100vh - 70px); }

/* ── 공통 요소 */
.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; }
/* 메인 캡슐: 새싹 그림문자가 줄 높이를 키워 글씨가 위로 떠 보이던 것 → 높이 36px 고정, 글씨·그림 모두 가운데 */
.hero-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 2px 16px 0; line-height: 1; }
.hero-pill .ic { font-style: normal; font-size: 16px; line-height: 1; margin-top: -2px; }
.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: 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: 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: 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; }
/* 본문 검색 미리보기: 3줄까지만 (줄 자르기는 안쪽 글자에 걸어야 아래 여백에 4번째 줄이 비치지 않아요) */
.topic .hit-body { display: block; }
.topic .hit-body .snip { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
/* 검색 결과: 제목 · 본문 · 법령 · 지침으로 찾은 것 나눠 보기 */
.res-group + .res-group { margin-top: 26px; }
.res-kind { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 17px; color: var(--ink); }
.res-kind span { font-size: 13.5px; font-weight: 400; color: var(--muted); }
.res-kind i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--green)); }
.res-kind i.k-body { background: #f2a64a; }
.res-kind i.k-law { background: #8a9bd6; }
.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; }
/* 나란히 놓는 메뉴(신용카드 · 업무추진비 · 상품권): 바깥은 카드 칸과 같은 격자, 메뉴마다 카드 수만큼 칸 차지 */
.sub-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); column-gap: 20px; row-gap: 0; margin: 18px 0 18px; }
.sub-row .topic-grid { margin-bottom: 12px; } /* 줄이 넘어가도(휴대폰) 메뉴 사이 간격 유지 */
.sub-row .sub-sec { margin: 0; min-width: 0; grid-column: span var(--n, 1); display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
.sub-row .sub-head { align-self: start; } /* 소개글이 두 줄인 메뉴가 있어도 카드 윗선은 같은 높이 */
/* 줄의 마지막 메뉴(교육훈련 · 상품권): 소개글도 왼쪽 메뉴처럼 제목 옆 한 줄에 (칸보다 길면 오른쪽 빈 곳으로 이어짐) */
.sub-row .sub-sec:last-child .sub-head { flex-wrap: nowrap; white-space: nowrap; }
.sub-row .topic-grid { grid-template-columns: repeat(var(--n, 1), 1fr); }
.topic {
  text-align: left; background: rgba(255,255,255,.95); border: 0; padding: 12px 12px 14px; /* 제목 글자 아래 실제 여백 약 17px (줄 간격 여유 포함) */
  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: 7px; } /* 시리즈 카드의 겹친 종이(최대 약 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: 0; } /* 그림 → 제목 글자 약 18px, 제목 아래 여백(약 15px)과 균형 */
.author { font-size: 13px; color: var(--muted); }

/* ── 공개 일정 (신규 배포용) */
.rel-date { font-size: 12px; color: var(--muted); margin-bottom: -4px; letter-spacing: .01em; }
.topic.locked { cursor: default; background: rgba(255,255,255,.75); box-shadow: 0 6px 18px -12px rgba(47,93,42,.3); }
.topic.locked:hover { transform: none; box-shadow: 0 6px 18px -12px rgba(47,93,42,.3); }
.thumb.soon-box {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 12px; background: #f4f6f2; border: 2px dashed #dde3d8;
}
.thumb.soon-box span { font-family: var(--head); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: .12em; color: #c3cbbf; }
.topic.locked h4 { color: #a3ad9f; }
.d-date { font-size: 13px; color: var(--muted); }

/* 메인 가운데: 가장 최근 카드뉴스 (책 표지 자리) */
.book.latest img { aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 24px 40px -18px rgba(30, 70, 110, .5), 0 2px 6px rgba(0,0,0,.1); background: #fff; }
/* 뒤에 겹친 종이 2장: 연두(앞) · 그보다 아주 조금 진한 연두(뒤) */
.book.latest .book-pages { border-radius: 14px; background: #dcefd2; inset: 6px -10px 6px 10px; }
.book.latest .book-pages.sheet2 { z-index: 0; background: #cbe5bd; inset: 12px -20px 0 20px; transform: rotate(3deg); }
.book.latest:hover .book-pages, .book.latest:focus-visible .book-pages { transform: translateX(8px) rotate(2deg); }
.book.latest:hover .book-pages.sheet2, .book.latest:focus-visible .book-pages.sheet2 { transform: translateX(16px) rotate(6deg); }
/* 최근 3개 NEW 아이콘 */
.new-ic {
  display: inline-block; vertical-align: 2px; margin-left: 6px;
  font-family: var(--head); font-size: 11px; line-height: 1; letter-spacing: .04em;
  padding: 4px 7px 3px; border-radius: 999px; background: var(--orange); color: #fff;
  box-shadow: 0 3px 8px -4px rgba(242,140,52,.8);
}
.new-ic.big { font-size: 14px; padding: 6px 10px 4px; margin-left: 10px; vertical-align: 5px; }
.latest-tag {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 3; transform: translateX(-50%); white-space: nowrap; /* 카드를 가리지 않게 카드 위쪽에 */
  background: var(--orange); color: #fff; font-size: 12px; padding: 5px 12px 4px; border-radius: 999px;
  box-shadow: 0 6px 14px -8px rgba(0,0,0,.45);
}

.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 { z-index: 2; } /* 그림(transform으로 새 층)이 화살표를 덮지 않게 — 폰 크게 보기에서 왼쪽 ‹ 가 반쯤 가려지던 문제 */
.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: 5px 12px 7px; 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; }
  .stage:has(.book.latest) { margin-top: 72px; row-gap: 48px; } /* 폰: 최근 카드뉴스가 위 글·숫자 칸을 가리지 않게 아래로, 성장이·톡톡이와도 띄워요 */
  .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; }
  .sub-row { grid-template-columns: repeat(2, 1fr); column-gap: 12px; }
  .sub-row .topic-grid { gap: 12px; }
  .sub-row .sub-sec:last-child .sub-head { flex-wrap: wrap; white-space: normal; } /* 휴대폰은 오른쪽에 빈 곳이 없어 줄바꿈 */
  .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 center / contain no-repeat; 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); }
/* 메뉴 마지막 카드: 다음 메뉴로 가기 (표지 그림 + 다음 메뉴 색 글씨) */
.d-nav.to-part img { object-fit: contain; background: #fff; padding: 4px; }
.d-nav.to-part small { color: color-mix(in srgb, var(--pc) 70%, black); }
.d-nav.to-part b { color: color-mix(in srgb, var(--pc) 75%, black); }
.d-nav.to-part { background: color-mix(in srgb, var(--pc) 12%, white); box-shadow: var(--shadow), 0 0 0 1.5px color-mix(in srgb, var(--pc) 30%, white) inset; }
@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-wrap { position: relative; display: flex; justify-content: center; padding: 0 44px; }
.ref-main-wrap .nav-btn { top: calc(50% - 14px); }
.ref-main-wrap .nav-btn.prev { left: 0; }
.ref-main-wrap .nav-btn.next { right: 0; }
.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: 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: 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; border-radius: 999px; box-shadow: 0 8px 16px -8px var(--c); transition: .2s;
  /* 글씨를 캡슐 정가운데에: 높이 40px 고정, 화살표는 그림(줄 높이에 영향 없음), 주아체 보정 위 2px */
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 2px 20px 0; line-height: 1; }
.go-btn .arr { width: 15px; height: 15px; margin-top: -2px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.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; }
/* 반짝이 7개: 성장이 머리 가운데(53px) 기준 좌우 14px 간격, 가운데가 21px 더 높은 아치. 크기 14~19px를 섞어 반짝이는 느낌 */
.duo-cheer .pop.g1 { left: 11px; top: 54px; font-size: 14px; animation-delay: 0.0s; }
.duo-cheer .pop.g2 { left: 25px; top: 44px; font-size: 17px; animation-delay: 0.26s; }
.duo-cheer .pop.g3 { left: 39px; top: 37px; font-size: 15px; animation-delay: 0.52s; }
.duo-cheer .pop.g4 { left: 53px; top: 33px; font-size: 19px; animation-delay: 0.78s; }
.duo-cheer .pop.g5 { left: 67px; top: 37px; font-size: 15px; animation-delay: 1.04s; }
.duo-cheer .pop.g6 { left: 81px; top: 44px; font-size: 17px; animation-delay: 1.3s; }
.duo-cheer .pop.g7 { left: 95px; top: 54px; font-size: 14px; animation-delay: 1.56s; }
/* 엄지 3개: 톡톡이 나뭇잎 가운데(169px) 기준 145·169·193px, 가운데가 8px 더 높은 아치 */
.duo-cheer .pop.thumb { font-size: 18px; animation: float-up 1.8s ease-out infinite; }
.duo-cheer .pop.t1 { left: 145px; top: -2px; animation-delay: 0s; }
.duo-cheer .pop.t2 { left: 169px; top: -10px; animation-delay: .6s; }
.duo-cheer .pop.t3 { left: 193px; top: -2px; 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, .guide-sec.rev { grid-template-columns: 1fr; } /* 2·4번째(좌우 반전) 소개도 휴대폰에서는 한 줄로 */
  .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; }
}

/* ── 그림이 늦게 떠도 화면이 밀리지 않게: 성장입문서 표지·쪽은 모두 A4 비율(1:1.414)로 자리를 미리 잡아 둠 */
.book img, .part-cover img, .ph-cover img, .fan-inner img, .pg-frame img { width: 100%; height: auto; aspect-ratio: 1654 / 2339; }
.ref-thumb img { height: auto; aspect-ratio: 1654 / 2339; }
#app img.wait { visibility: hidden; } /* 아직 안 뜬 그림은 그림자까지 숨김 (자리는 그대로) */

/* ── 퀴즈 */
.nav a.quiz-link { display: inline-flex; align-items: center; gap: 5px; color: color-mix(in srgb, var(--c) 85%, black); margin-left: 10px; position: relative; }
.nav a.quiz-link::before { content: ''; position: absolute; left: -9px; top: 25%; height: 50%; width: 1.5px; background: #dfe8da; }
.nav a.quiz-link i { font-style: normal; font-size: 11px; line-height: 1; padding: 3px 6px 2px; border-radius: 999px; background: #ff7a59; color: #fff; }
.nav a.quiz-link.on { color: #fff; }
.nav a.quiz-link.on i { background: #fff; color: var(--c); }

.quiz-hero {
  position: relative; display: flex; align-items: center; gap: 24px; margin: 28px 0 20px;
  padding: clamp(18px, 3vw, 30px); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(120deg, #fff 35%, color-mix(in srgb, var(--c) 16%, white));
}
.qh-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.qh-copy .pill { background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 85%, black); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 30%, white); }
.qh-copy h1 { font-size: clamp(28px, 4vw, 40px); color: color-mix(in srgb, var(--c) 72%, black); }
.qh-copy h1 em { font-style: normal; font-size: .55em; margin-left: 6px; color: var(--ink-soft); }
.qh-copy p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.qh-duo { position: relative; flex: 0 0 210px; height: 150px; align-self: flex-end; margin-bottom: -18px; }
.qh-duo .duo-sprout { position: absolute; left: 0; bottom: 0; width: 76px; }
.qh-duo .duo-tree { position: absolute; left: 82px; bottom: 0; width: 124px; }
.qh-duo .qmark { position: absolute; font-family: var(--head); font-size: 26px; color: var(--c); animation: float-up 2.6s ease-out infinite; }
.qh-duo .m1 { left: 22px; top: 6px; }
.qh-duo .m2 { left: 58px; top: 22px; animation-delay: .8s; }
.qh-duo .m3 { left: 150px; top: 0; animation-delay: 1.6s; color: #ff7a59; }

.quiz { margin-bottom: 40px; scroll-margin-top: 90px; }
.qz-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.qz-q, .qz-side > div { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: clamp(18px, 2.6vw, 28px); }
.qz-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.qz-step { font-family: var(--head); font-size: 15px; color: color-mix(in srgb, var(--c) 80%, black); }
.qz-dots { display: inline-flex; gap: 6px; }
.qz-dots i { width: 26px; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, white); }
.qz-dots i.past { background: color-mix(in srgb, var(--c) 45%, white); }
.qz-dots i.now { background: var(--c); }
.qz-cat { display: inline-block; font-size: 13px; padding: 4px 12px 3px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 13%, white); color: color-mix(in srgb, var(--pc) 78%, black); }
.qz-q h2 { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; margin: 12px 0 18px; word-break: keep-all; }
.qz-q h2 b { color: var(--c); font-weight: 400; margin-right: 2px; }
.qz-choices { display: grid; gap: 10px; }
.qz-choice {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 16px; border: 2px solid color-mix(in srgb, var(--c) 14%, white); background: color-mix(in srgb, var(--c) 3%, white);
  font-size: 16px; line-height: 1.45; word-break: keep-all;
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
.qz-choice .qn { flex: 0 0 auto; font-family: var(--head); font-size: 20px; line-height: 1; color: color-mix(in srgb, var(--c) 70%, white); transition: color .18s;
  position: relative; top: 2px; } /* ①~④ 글꼴이 2px 위로 떠 보여서 보기 문장과 같은 높이(상자 가운데)로 */
.qz-choice .qt { flex: 1; }
.qz-choice .qm { flex: 0 0 auto; font-family: var(--head); font-size: 13px; padding: 4px 10px 2px; border-radius: 999px; }
/* 보기에 마우스를 올리면: 테두리·바탕이 테마 색으로(회차별은 보라), 살짝 오른쪽으로 밀리고 그림자 */
.qz-choice:not(:disabled):hover, .qz-choice:not(:disabled):focus-visible {
  border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, white);
  transform: translateX(4px); box-shadow: 0 10px 20px -14px color-mix(in srgb, var(--c) 70%, black); outline: none;
}
.qz-choice:not(:disabled):hover .qn { color: var(--c); }
.qz-choice:disabled { cursor: default; }
.qz-choice.correct { border-color: #3aa564; background: #effaf2; }
.qz-choice.correct .qn { color: #3aa564; }
.qz-choice.correct .qm { background: #3aa564; color: #fff; }
.qz-choice.wrong { border-color: #f0d4d4; background: #fbf4f4; color: #a08a8a; }
.qz-choice.wrong .qn { color: #e3a3a3; }
.qz-choice.wrong .qm { background: #f3dede; color: #c46262; }
.qz-choice.shake { animation: qz-shake .42s; }
@keyframes qz-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.qz-wait { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 330px; }
.qz-wait .say { position: relative; left: auto; bottom: auto; opacity: 1; transform: none; text-align: center; margin-bottom: 18px; font-size: 15px; background: color-mix(in srgb, var(--c) 8%, white); box-shadow: none; }
.qz-wait .say::after { background: color-mix(in srgb, var(--c) 8%, white); }
.qz-wait .qw-char { width: 150px; }
.qz-answer { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.qa-badge { font-family: var(--head); font-size: 16px; padding: 7px 14px 4px; border-radius: 999px; background: #3aa564; color: #fff; }
.qz-answer h3 { font-size: 19px; color: color-mix(in srgb, var(--c) 75%, black); margin-top: 4px; }
.qz-answer p { margin: 0; line-height: 1.7; color: var(--ink); word-break: keep-all; }
.qa-label { font-size: 13px; color: var(--muted); margin-top: 6px; }
.qz-answer .topic { width: min(100%, 260px); }
.qz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 3px 22px 0;
  border: 0; border-radius: 999px; cursor: pointer; font-family: var(--head); font-size: 17px;
  background: var(--c); color: #fff; transition: transform .18s, box-shadow .18s, background .18s;
}
.qz-answer .qz-btn { align-self: stretch; margin-top: 6px; }
.qz-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -12px color-mix(in srgb, var(--c) 80%, black); }
.qz-btn.ghost { background: #fff; color: color-mix(in srgb, var(--c) 85%, black); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 35%, white) inset; }

.qz-result { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-char { width: 96px; }
.qz-result h2 { font-size: clamp(22px, 3vw, 28px); }
.qz-result h2 b { font-weight: 400; color: var(--c); }
.qz-result > p { margin: 0; color: var(--ink-soft); }
.qr-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 760px; margin: 10px 0 6px; }
.qr-cards a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: color-mix(in srgb, var(--c) 3%, white); border: 2px solid color-mix(in srgb, var(--c) 14%, white); text-align: left; transition: .2s; }
.qr-cards a:hover { transform: translateY(-3px); border-color: var(--c); }
.qr-cards img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.qr-cards span { font-size: 14px; line-height: 1.4; min-width: 0; }
.qr-cards small { display: block; font-family: var(--head); font-size: 12px; color: #3aa564; }
.qr-cards a.no small { color: #d0704f; }
.qr-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

@media (max-width: 860px) {
  .qz-main { grid-template-columns: 1fr; }
  .qz-wait { min-height: 0; flex-direction: row; align-items: flex-end; justify-content: center; gap: 12px; padding-top: 14px; }
  .qz-wait .say { margin-bottom: 30px; }
  .qz-wait .qw-char { width: 96px; }
  .qr-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .qh-duo { display: none; }
  .qz-choice { padding: 12px 13px; font-size: 15px; }
}

/* ── 퀴즈 2차: 문제 막대(누르면 그 문제로), 성장이·톡톡이 대기 화면, 참고 카드 크게 */
.quiz-hero .ph-duo { margin-left: auto; }
.qz-dots button {
  width: 30px; height: 10px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: color-mix(in srgb, var(--c) 14%, white); transition: background .18s, transform .18s, box-shadow .18s;
}
.qz-dots button.past { background: color-mix(in srgb, var(--c) 45%, white); }
.qz-dots button.now { background: var(--c); }
.qz-dots button:not(:disabled):hover { transform: scaleY(1.35); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, white); }
.qz-dots button:disabled { cursor: not-allowed; opacity: .55; }

.qz-wait { min-height: 330px; justify-content: flex-end; }
.qw-pair { display: flex; align-items: flex-end; justify-content: center; gap: 6px; width: 100%; }
.qw-one { display: flex; flex-direction: column; align-items: center; }
.qw-one .say { white-space: nowrap; }
.qw-sprout .qw-char { width: 92px; }
.qw-tree .qw-char { width: 150px; }
.qw-sprout .say { margin-bottom: 14px; background: #fff3e4; }
.qw-sprout .say::after { background: #fff3e4; }
.qw-one .char { animation: qw-sway 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.qw-tree .char { animation-delay: -1.3s; }
@keyframes qw-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.qa-card { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 2px; }
.qa-img { display: block; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #f6f8f4; box-shadow: 0 10px 22px -14px rgba(0,0,0,.45); transition: transform .2s, box-shadow .2s; }
.qa-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qa-card:hover .qa-img { transform: translateY(-4px); box-shadow: 0 18px 30px -14px rgba(0,0,0,.45); }
.qa-cat { align-self: flex-start; margin-top: 6px; font-size: 12.5px; padding: 3px 10px 2px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 13%, white); color: color-mix(in srgb, var(--pc) 78%, black); }
.qa-card b { font-family: var(--head); font-weight: 400; font-size: 18px; line-height: 1.35; color: var(--ink); }
.qa-card:hover b { color: color-mix(in srgb, var(--pc) 80%, black); }

@media (max-width: 860px) {
  .qz-wait { min-height: 0; padding-top: 10px; }
  .qw-sprout .qw-char { width: 70px; }
  .qw-tree .qw-char { width: 104px; }
  .qw-one .say { font-size: 13px; padding: 8px 11px; }
}

/* 급여·공무직 인사: 성장이는 좌우로 흔들흔들 + 머리 위로 돈이 톡톡 / 톡톡이는 손 흔들며 제자리 폴짝 + 하트 */
.duo-money .pop { width: 24px; margin-left: -12px; text-align: center; }
.duo-money .sprout .body-wrap { animation: m-sway 1.8s ease-in-out infinite; }
.duo-money .tree .body-wrap { animation: m-hop 1.5s ease-in-out infinite; }
.duo-money .tree .arm-fist { animation: tip-wave 1.5s ease-in-out infinite; }
.duo-money .pop.m { font-size: 18px; animation: m-fall 2.4s ease-in infinite; }
.duo-money .pop.m1 { left: 30px; top: 8px; }
.duo-money .pop.m2 { left: 53px; top: -4px; animation-delay: .8s; }
.duo-money .pop.m3 { left: 76px; top: 8px; animation-delay: 1.6s; }
.duo-money .pop.h { color: #ff6f93; font-size: 18px; animation: float-up 1.8s ease-out infinite; }
.duo-money .pop.h1 { left: 132px; top: 58px; }
.duo-money .pop.h2 { left: 150px; top: 44px; animation-delay: .6s; }
.duo-money .pop.h3 { left: 118px; top: 42px; animation-delay: 1.2s; }
@keyframes m-sway { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes m-hop { 0%, 55%, 100% { transform: translateY(0) scale(1, 1); } 20% { transform: translateY(-9px) scale(.98, 1.02); } 40% { transform: translateY(0) scale(1.03, .97); } }
@keyframes m-fall { 0% { opacity: 0; transform: translateY(-18px) rotate(-18deg); } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(46px) rotate(16deg); } }

/* ── 퀴즈 3차 */
/* 문제 막대: 보이는 막대는 얇게, 누르는 자리는 위아래로 넉넉하게(24px) */
.qz-dots { gap: 4px; }
.qz-dots button { position: relative; width: 34px; height: 24px; background: none; border-radius: 0; }
.qz-dots button::before {
  content: ''; position: absolute; left: 2px; right: 2px; top: 7px; height: 10px; border-radius: 99px;
  background: color-mix(in srgb, var(--c) 14%, white); transition: background .18s, transform .18s, box-shadow .18s;
}
.qz-dots button.past, .qz-dots button.now { background: none; }
.qz-dots button.past::before { background: color-mix(in srgb, var(--c) 62%, white); }
.qz-dots button.now::before { background: var(--c); }
.qz-dots button:not(:disabled):hover { transform: none; box-shadow: none; }
.qz-dots button:not(:disabled):hover::before { transform: scaleY(1.35); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, white); }
.qz-dots button:disabled { opacity: .55; }

/* 캡슐 글자 가운데: 높이를 정하고 글자를 세로 가운데로 */
.qa-badge { display: inline-flex; align-items: center; height: 34px; padding: 1px 15px 0; line-height: 1; }
.qz-cat, .qa-cat { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; line-height: 1; }

/* 참고 카드: 그림 ↔ 카테고리 ↔ 제목 간격 */
.qa-card { gap: 0; }
.qa-cat { margin-top: 14px; }
.qa-card b { margin-top: 8px; }

/* 「톡톡이의 해설」 앞 움직이는 톡톡이 (글씨 크기에 맞춤) */
.qz-answer h3 { display: flex; align-items: center; gap: 6px; }
.qa-tree { display: inline-block; width: 1.5em; flex: 0 0 1.5em; }
.qa-tree .char { width: 100%; height: auto; display: block; overflow: visible; animation: qw-sway 2.2s ease-in-out infinite; transform-origin: 50% 100%; }
.qa-tree .arm-fist { animation: tip-wave 2.2s ease-in-out infinite; }

/* 급여: 하트는 톡톡이 머리 위, 돈은 성장이 머리 위에서 아치 모양으로 올라가요 */
.duo-money .pop.m { font-size: 17px; animation: float-up 2.1s ease-out infinite; }
.duo-money .pop.h { animation-duration: 2.1s; }
.duo-money .pop.m1 { left: 33px; top: 50px; animation-delay: 0s; }
.duo-money .pop.m2 { left: 53px; top: 40px; animation-delay: .15s; }
.duo-money .pop.m3 { left: 73px; top: 50px; animation-delay: .3s; }
.duo-money .pop.h1 { left: 145px; top: 2px; animation-delay: 1.05s; }
.duo-money .pop.h2 { left: 169px; top: -8px; animation-delay: 1.2s; }
.duo-money .pop.h3 { left: 193px; top: 2px; animation-delay: 1.35s; }

/* ── 퀴즈 4차: 정답 캡슐 여유, 보기 방식(카테고리별/회차별), 화살표 + 전체 보기 */
/* 정답이 길어서 두 줄이 되어도 위아래 여백이 넉넉하게 */
.qa-badge { height: auto; min-height: 34px; padding: 9px 16px 8px; line-height: 1.4; border-radius: 18px; }

.qz-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.qz-mode { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.qz-mode a {
  display: inline-flex; align-items: center; height: 36px; padding: 1px 18px 0; border-radius: 999px;
  font-family: var(--head); font-size: 16px; line-height: 1; color: var(--ink-soft); transition: .18s;
}
.qz-mode a:hover { color: color-mix(in srgb, var(--c) 85%, black); background: color-mix(in srgb, var(--c) 8%, white); }
.qz-mode a.on { background: var(--c); color: #fff; }

.qz-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qz-arrow {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow); color: color-mix(in srgb, var(--c) 85%, black); transition: .18s;
}
.qz-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
a.qz-arrow:hover { background: var(--c); color: #fff; transform: translateY(-2px); }
.qz-arrow.off { opacity: .35; box-shadow: none; }
.qz-cur {
  display: flex; flex-direction: column; justify-content: center; min-width: 190px; max-width: 360px; height: 46px; padding: 0 18px;
  border-radius: 16px; background: #fff; box-shadow: var(--shadow), inset 4px 0 0 var(--pc);
}
.qz-cur b { font-family: var(--head); font-weight: 400; font-size: 17px; line-height: 1.15; color: color-mix(in srgb, var(--pc) 80%, black); }
.qz-cur small { font-size: 12px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-all-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 1px 16px 0; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; box-shadow: var(--shadow); font-family: var(--head); font-size: 15px; line-height: 1; color: color-mix(in srgb, var(--c) 85%, black); transition: .18s;
}
.qz-all-btn svg { width: 16px; height: 16px; margin-top: -1px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.qz-all-btn:hover { background: color-mix(in srgb, var(--c) 9%, white); }
.qz-all-btn.open { background: var(--c); color: #fff; }
.qz-all-btn.open svg { transform: rotate(180deg); }

.qz-all { margin: 0 0 18px; padding: 18px 20px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); display: grid; gap: 14px; animation: fadeUp .3s ease; }
.qz-all[hidden] { display: none; }
.qa-group { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; }
.qa-group h4 { font-size: 15px; line-height: 1.3; padding-top: 10px; color: color-mix(in srgb, var(--pc) 80%, black); }
.qa-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.qa-chips a {
  display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--c) 14%, white); background: color-mix(in srgb, var(--c) 3%, white);
  transition: .18s; min-width: 0;
}
.qa-chips a:hover { border-color: var(--c); transform: translateY(-2px); }
.qa-chips a b { font-family: var(--head); font-weight: 400; font-size: 15px; line-height: 1.25; color: var(--ink); }
.qa-chips a small { font-size: 11.5px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-chips a i { font-style: normal; font-size: 11.5px; line-height: 1.3; color: color-mix(in srgb, var(--c) 70%, white); }
.qa-chips a.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, white); }
.qa-chips a.done i { color: #3aa564; font-weight: 700; }
.qa-chips a.doing i { color: #e38b2e; }
.qa-chips a.locked { cursor: default; opacity: .55; background: #f4f6f2; border-style: dashed; }
.qa-chips a.locked:hover { transform: none; border-color: inherit; }
.qa-chips a.locked i { color: var(--muted); }
.qz-soon { color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
  .qz-bar { flex-direction: column; align-items: stretch; }
  .qz-mode { align-self: flex-start; }
  .qz-nav { justify-content: space-between; flex-wrap: nowrap; }
  .qz-cur { flex: 1; min-width: 0; padding: 0 12px; }
  .qz-all-btn { padding: 1px 12px 0; }
  .qa-group { grid-template-columns: 1fr; gap: 6px; }
  .qa-group h4 { padding-top: 0; }
  .qa-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 퀴즈 5차: 보라 버튼 글자 세로 가운데, 지금 회차 상자는 왼쪽 띠 대신 옅은 테마색 */
.qz-btn { padding: 0 22px 2px; }
.qz-all-btn { padding: 2px 16px 0; }
.qz-cur { box-shadow: var(--shadow); background: color-mix(in srgb, var(--pc) 12%, white); }
.qr-btns button.qz-btn { padding: 2px 22px 0; }

/* ── 퀴즈 6차: 해설의 시리즈 카드 넘기기, 지금 회차 상자(옅은 테마색 + 테마색 테두리) */
.qa-img { position: relative; }
.qa-img > a { display: block; width: 100%; height: 100%; }
.qa-card:hover .qa-img { transform: none; }
.qa-img:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -14px rgba(0,0,0,.45); }
.qa-nav {
  position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); transition: .18s;
}
.qa-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.qa-nav.prev { left: 10px; }
.qa-nav.next { right: 10px; }
.qa-nav:hover:not(:disabled) { background: var(--c); color: #fff; }
.qa-nav:disabled { opacity: .35; cursor: default; }
.qa-count { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px 3px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 1.2; }
.qa-meta { display: flex; flex-direction: column; align-items: flex-start; }
.qa-meta:hover b { color: color-mix(in srgb, var(--pc) 80%, black); }

.qz-cur { background: color-mix(in srgb, var(--pc) 6%, white); box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--pc) 45%, white); }

/* ── 퀴즈 7차: 결과의 문제 칸 → 그 퀴즈로 돌아가기 (버튼) */
.qr-cards .qr-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 16px; background: color-mix(in srgb, var(--c) 3%, white); border: 2px solid color-mix(in srgb, var(--c) 14%, white); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: .2s; }
.qr-cards .qr-item:hover { transform: translateY(-3px); border-color: var(--c); }
.qr-cards .qr-item.no small { color: #d0704f; }

/* ── 퀴즈 8차: 대기 화면 배경, 캐릭터 자리 고정, 성장이 기분(슬픔·통통·폭죽) */
/* 배경: 연보라 하늘 → 연민트, 캐릭터 발밑에 동그란 무대 바닥 (페이지 뒤 언덕·구름과 겹치지 않게 단순하게) */
.qz-side > .qz-wait {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 13% at 50% 100%, #d9eecb 0 70%, transparent 71%),
    radial-gradient(78% 20% at 50% 104%, #e9f5df 0 70%, transparent 71%),
    radial-gradient(circle at 16% 22%, rgba(255,255,255,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 84% 14%, rgba(255,255,255,.95) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 70% 34%, rgba(255,255,255,.8) 0 2px, transparent 3px),
    linear-gradient(180deg, #f3effd 0%, #f8f6ff 46%, #f2f9ef 100%);
}
.qz-side > .qz-wait .say { background: #fff; box-shadow: 0 6px 14px -10px rgba(60,40,120,.35); }
.qz-side > .qz-wait .say::after { background: #fff; }
.qz-side > .qz-wait .qw-sprout .say, .qz-side > .qz-wait .qw-sprout .say::after { background: #fff7ec; }

/* 말풍선 글자가 바뀌어도 성장이·톡톡이 자리는 그대로: 똑같은 너비 두 칸 */
.qw-pair { display: grid; grid-template-columns: 1fr 1fr; align-items: end; justify-items: center; gap: 0; }
.qw-one { width: 100%; }

/* 성장이 기분 */
.sp-mood { position: relative; }
.sp-mood .char { display: block; width: 100%; height: auto; }
.mood-over { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.m-brow { fill: none; stroke: #2a1609; stroke-width: 4.5; stroke-linecap: round; }
.m-hide { display: none; }
.m-frown { fill: none; stroke: #7a2a10; stroke-width: 5; stroke-linecap: round; }
.m-tear { fill: #7cc6ff; stroke: #4aa4e8; stroke-width: 1; transform-box: fill-box; transform-origin: 50% 0; animation: m-tear 1.5s ease-in infinite; opacity: 0; }
.m-tear.t2 { animation-delay: .5s; }
.m-tear.t3 { animation-delay: 1s; }
@keyframes m-tear { 0% { opacity: 0; transform: translateY(0) scale(.5); } 15% { opacity: 1; transform: translateY(0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(30px) scale(.9); } }
.sp-mood.sad .face > path { opacity: 0; }          /* 웃는 입은 숨기고 삐죽 입으로 */
.sp-mood.sad .leaf-l { transform: rotate(-22deg) translateY(6px); }   /* 새싹 잎도 축 처지게 */
.sp-mood.sad .leaf-r { transform: rotate(22deg) translateY(6px); }
.qw-one .sp-mood.sad .char, .qw-one .sp-mood.sad { animation: none; }
.sp-mood.sad { animation: sad-sob 1.8s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sad-sob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(3px) rotate(2deg) scale(1.02, .97); } }
.qw-sprout .sp-mood:not(.sad) .char { animation: qw-sway 2.6s ease-in-out infinite; transform-origin: 50% 100%; }

/* 결과 화면: 다 맞힘 = 방방 + 폭죽, 1문제 이상 = 통통, 0문제 = 눈물 */
.qr-char { position: relative; width: 96px; }
.qr-char.party .sp-mood { animation: qr-jump .9s cubic-bezier(.3,.7,.4,1) infinite; transform-origin: 50% 100%; }
@keyframes qr-jump { 0%, 100% { transform: translateY(0) scale(1.06, .94); } 40% { transform: translateY(-34px) scale(.96, 1.05); } 70% { transform: translateY(0) scale(1.04, .96); } }
.qr-char.hop .sp-mood { animation: qr-hop 1.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes qr-hop { 0%, 60%, 100% { transform: translateY(0); } 25% { transform: translateY(-12px); } 45% { transform: translateY(0) scale(1.03, .97); } }
.fireworks { position: absolute; inset: -40px -120px -10px; pointer-events: none; }
.fw { position: absolute; width: 0; height: 0; }
.fw.b1 { left: 14%; top: 30%; }
.fw.b2 { right: 14%; top: 18%; }
.fw.b3 { left: 50%; top: 0; }
.fw i { position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--fc); opacity: 0; animation: fw 1.5s ease-out var(--d) infinite; }
@keyframes fw { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.4); } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-48px) scale(.8); } }
.sp-mood.sad .sprout .leaf-l, .sp-mood.sad .sprout .leaf-r { animation: none; }
.sp-mood.sad .sprout .leaf-l { transform: rotate(-24deg); }
.sp-mood.sad .sprout .leaf-r { transform: rotate(24deg); }

/* ── 퀴즈 9차 */
/* 슬픈 성장이: 잎을 더 축 처지게 */
.sp-mood.sad .sprout .leaf-l { transform: rotate(-50deg); }
.sp-mood.sad .sprout .leaf-r { transform: rotate(50deg); }

/* 결과 화면: 폭죽은 결과 상자 안에서만, 성장이 등 뒤에서 터지게 */
.qz-result { position: relative; overflow: hidden; }
.qr-stage { position: relative; width: 300px; height: 150px; display: flex; align-items: flex-end; justify-content: center; margin: -8px 0 -4px; }
.qr-stage .qr-char { position: relative; z-index: 2; width: 96px; }
.qr-stage .fireworks { position: absolute; inset: 0; z-index: 1; }
.fireworks .fw { position: absolute; width: 0; height: 0; transform: scale(var(--s)); }
/* 터지는 순간 가운데 반짝 */
.fw em { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, var(--fc) 45%, transparent 70%); opacity: 0;
  animation: fw-flash 2.4s ease-out var(--d) infinite; }
@keyframes fw-flash { 0% { opacity: 0; transform: scale(.2); } 6% { opacity: 1; transform: scale(1.3); } 22% { opacity: 0; transform: scale(2); } 100% { opacity: 0; } }
/* 빛줄기: 가운데서 뻗어 나가며 끝 불꽃이 떨어지듯 사라져요 */
.fw i { position: absolute; left: -1px; top: 0; width: 2px; height: 22px; border-radius: 2px; transform-origin: 50% 0;
  background: linear-gradient(to bottom, transparent, var(--fc)); opacity: 0;
  animation: fw-ray 2.4s cubic-bezier(.15,.7,.3,1) var(--d) infinite; }
.fw i::after { content: ''; position: absolute; left: -2px; bottom: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fc); box-shadow: 0 0 6px 1px var(--fc); }
@keyframes fw-ray {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scaleY(.2); }
  6% { opacity: 1; }
  40% { opacity: 1; transform: rotate(var(--a)) translateY(30px) scaleY(1); }
  70% { opacity: .5; transform: rotate(var(--a)) translateY(42px) scaleY(.35); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(46px) scaleY(.1); }
}
/* 주변 반짝이 별 */
.fw-star { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: #ffd65a;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0; animation: fw-twinkle 2.2s ease-in-out var(--d) infinite; }
.fw-star:nth-of-type(even) { background: #ffb3cb; width: 9px; height: 9px; }
@keyframes fw-twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 40% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(.4) rotate(90deg); } }
/* 결과 화면 성장이 발밑 */
.qr-stage::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 150px; height: 18px; margin-left: -75px; border-radius: 50%; background: radial-gradient(closest-side, rgba(124,92,196,.12), transparent); z-index: 0; }
.qr-stage.party::before { content: ''; position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -150px 0 0 -130px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,233,168,.55), rgba(255,233,168,0)); z-index: 0; }

/* 대기 화면 배경: 그림 한 장을 뒤에 깔아요 (캐릭터는 그 위) */
.qz-side > .qz-wait { background: #f6f3ff; }
.qw-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.qw-bg svg { width: 100%; height: 100%; display: block; }
.qz-wait .qw-pair { position: relative; z-index: 1; }
.qw-bg .tw { transform-box: fill-box; transform-origin: center; animation: qw-twinkle 3s ease-in-out infinite; }
.qw-bg .tw.b { animation-delay: 1s; } .qw-bg .tw.c { animation-delay: 2s; }
@keyframes qw-twinkle { 0%, 100% { opacity: .25; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
.qw-bg .fl { transform-box: fill-box; transform-origin: 50% 100%; animation: qw-flower 3.6s ease-in-out infinite; }
.qw-bg .fl.b { animation-delay: -1.2s; } .qw-bg .fl.c { animation-delay: -2.4s; }
@keyframes qw-flower { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ── 퀴즈 오른쪽 배경: 테마별 사계절 (행정공통 봄 · 급여 여름 · 지출 가을 · 물품 겨울) */
.qz-side > .qz-wait.s-summer { background: #e6f6ff; }
.qz-side > .qz-wait.s-autumn { background: #fff1df; }
.qz-side > .qz-wait.s-winter { background: #edf3fb; }
.qz-side > .qz-wait.s-summer .qw-sprout .say, .qz-side > .qz-wait.s-summer .qw-sprout .say::after { background: #fffbe6; }
.qz-side > .qz-wait.s-autumn .qw-sprout .say, .qz-side > .qz-wait.s-autumn .qw-sprout .say::after { background: #fff6ea; }
.qz-side > .qz-wait.s-winter .qw-sprout .say, .qz-side > .qz-wait.s-winter .qw-sprout .say::after { background: #fff; }
/* 떨어지는 것들 (벚꽃잎 · 낙엽 · 눈) */
.qw-fall { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.qw-fall i { position: absolute; top: -24px; left: var(--x); width: var(--s); height: var(--s); animation: qw-drop var(--d) linear var(--dl) infinite; }
.qw-fall i::before, .qw-fall i svg { display: block; width: 100%; height: 100%; animation: qw-sway2 calc(var(--d) / 3) ease-in-out var(--dl) infinite alternate; }
.f-petal i::before { content: ''; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #ffd3df, #ff9fbb); opacity: .9; }
.f-snow i::before { content: ''; border-radius: 50%; background: #fff; box-shadow: 0 0 4px rgba(170, 195, 225, .9); }
.f-leaf i svg { overflow: visible; }
@keyframes qw-drop { 0% { transform: translate(0, 0); } 100% { transform: translate(var(--dx, 0px), var(--fall, 420px)); } }
@keyframes qw-sway2 { 0% { transform: translateX(calc(var(--sw) * -1)) rotate(-35deg); } 100% { transform: translateX(var(--sw)) rotate(35deg); } }
.f-snow i::before { animation-name: qw-snowsway; }
@keyframes qw-snowsway { 0% { transform: translateX(calc(var(--sw) * -.4)); } 100% { transform: translateX(calc(var(--sw) * .4)); } }
/* 여름 햇살: 햇살이 빙글 돌고, 빛줄기가 반짝 */
.qw-bg .sm-rays { transform-box: view-box; transform-origin: 380px 50px; animation: qw-spin 18s linear infinite; }
.qw-bg .sm-glow { transform-box: fill-box; transform-origin: center; animation: qw-glow 3.2s ease-in-out infinite; }
.qw-bg .sm-beams path { animation: qw-beam 4.5s ease-in-out infinite; }
.qw-bg .sm-beams .b { animation-delay: -1.5s; } .qw-bg .sm-beams .c { animation-delay: -3s; }
.qw-bg .sm-cloud { animation: qw-cloud 14s ease-in-out infinite alternate; }
@keyframes qw-spin { to { transform: rotate(360deg); } }
@keyframes qw-glow { 0%, 100% { transform: scale(.92); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes qw-beam { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@keyframes qw-cloud { from { transform: translateX(-10px); } to { transform: translateX(30px); } }
/* 겨울 트리 장식: 전구처럼 반짝 */
.qw-char .xmas .orn { animation: qw-orn 1.8s ease-in-out infinite; }
.qw-char .xmas .o1 { animation-delay: -.6s; } .qw-char .xmas .o2 { animation-delay: -1.2s; }
.qw-char .xmas .xstar { transform-box: fill-box; transform-origin: center; animation: qw-xstar 2.4s ease-in-out infinite; }
@keyframes qw-orn { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes qw-xstar { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 #ffe27a); } 50% { transform: scale(1.12); filter: drop-shadow(0 0 4px #ffe27a); } }
.qw-char .char { overflow: visible; }
/* 봄 벚나무 가지: 오른쪽 위 줄기 끝을 축으로 살랑 */
.qw-bg .sp-blossom { transform-box: view-box; transform-origin: 450px 18px; animation: qw-branch 3.4s ease-in-out infinite; }
@keyframes qw-branch { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(3deg); } }
/* 가을 · 여름 잔디 살랑살랑 */
.qw-bg .gr { animation: qw-grass 2.8s ease-in-out infinite; }
.qw-bg .gr.g1 { animation-delay: -.9s; } .qw-bg .gr.g2 { animation-delay: -1.8s; }
@keyframes qw-grass { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
/* 겨울 눈사람 흔들흔들 + 팔 흔들기 */
.qw-bg .wt-snowman { transform-box: fill-box; transform-origin: 50% 100%; animation: qw-snowman 3s ease-in-out infinite; }
.qw-bg .sm-arm { transform-box: fill-box; animation: qw-arm-l 1.5s ease-in-out infinite; }
.qw-bg .sm-arm.l { transform-origin: 100% 100%; }
.qw-bg .sm-arm.r { transform-origin: 0% 100%; animation-name: qw-arm-r; animation-delay: -.75s; }
@keyframes qw-snowman { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes qw-arm-l { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(18deg); } }
@keyframes qw-arm-r { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-18deg); } }
@media (prefers-reduced-motion: reduce) {
  .qw-bg .gr, .qw-bg .wt-snowman, .qw-bg .sm-arm, .qw-bg .sp-blossom,
  .qw-fall, .qw-bg .sm-rays, .qw-bg .sm-glow, .qw-bg .sm-beams path, .qw-bg .sm-cloud, .qw-char .xmas * { animation: none !important; }
}

/* 메인 화면 검색창: 업무 파트별 카드뉴스 아래 가운데, 연두 · 초록 테두리 */
.home-search { display: flex; justify-content: center; margin: 30px 0 6px; }
.search.home { --c: #5cb43c; flex: 0 1 440px; width: 100%; height: 54px; padding-left: 50px;
  box-shadow: 0 6px 18px -10px rgba(47, 138, 42, .45), 0 0 0 2.5px #a9dc8c inset; }
.search.home:focus-within { box-shadow: 0 10px 24px -12px rgba(47, 138, 42, .6), 0 0 0 2.5px #4caf3a inset; }
.search.home .s-ic { left: 19px; width: 21px; height: 21px; stroke: #3f9b2e; }
.search.home input { font-size: 16px; }
#homeRes { --c: #4caf3a; }
#homeRes .search-res { margin-top: 26px; }
@media (max-width: 760px) { .search.home { height: 48px; } .search.home input { font-size: 15px; } }
