/* ─────────────────────────────────────────────
   말랑떡집 — 꾸밈
   기준: 캐릭터 그림처럼 손그림 · 파스텔 · 색연필 느낌
   ───────────────────────────────────────────── */
:root {
  --종이: #FFFBF3;
  --종이2: #FAF1E1;
  --먹: #302B28;
  --먹연: #6F665E;
  --분홍: #EFA8B8;
  --노랑: #F5DF8D;
  --쑥: #B8CE95;
  --보라: #C8B5DC;
  --콩: #EAC77E;
  --선: #E6D9BF;
  --도장: #D0584B;
  --대나무: #E7C48D;
  --대나무진: #B98B4F;
  --둥글: 26px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  color: var(--먹);
  background-color: var(--종이);
  /* 아주 옅은 종이 결 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .19 0 0 0 0 .17 0 0 0 0 .16 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font-family: "Gowun Dodum", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, .jua { font-family: "Jua", sans-serif; font-weight: 400; line-height: 1.3; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--보라); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 캐릭터 그림 (배경을 투명하게 따 둔 png) */
.떡 { user-select: none; -webkit-user-drag: none; }

/* 손으로 그린 듯한 테두리 — 테두리만 살짝 흔들리게 */
.sketch { position: relative; }
.sketch::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 2.4px solid var(--먹); border-radius: inherit;
  filter: url(#삐뚤);
}

/* ── 머리 ── */
#site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 251, 243, .9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
#site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px;
  background: radial-gradient(circle at 8px 0, rgba(255, 251, 243, .9) 6px, transparent 6.5px) repeat-x;
  background-size: 16px 6px;
}
#site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-family: "Jua", sans-serif; font-size: 25px; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.logo img { width: 38px; height: 38px; }
.logo:hover img { animation: 튀기 1s ease-out; }
.topnav { display: flex; gap: 4px; }
.topnav a {
  text-decoration: none; font-size: 16px; color: var(--먹연);
  padding: 6px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.topnav a:hover { color: var(--먹); background: var(--종이2); }
.topnav a.on { color: var(--먹); background: var(--노랑); }

/* 휴대폰 아래 메뉴 */
.bottomnav { display: none; }
@media (max-width: 720px) {
  .topnav { display: none; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30;
    background: rgba(255, 255, 255, .95); border-radius: 22px;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom) * .5);
    box-shadow: 0 6px 20px rgba(48, 43, 40, .14);
  }
  .bottomnav a {
    text-decoration: none; text-align: center; font-size: 12px; color: var(--먹연);
    padding: 2px 0 4px; border-radius: 16px; transition: background .2s;
  }
  .bottomnav img { width: 34px; height: 34px; margin: 0 auto -2px; }
  .bottomnav a.on { background: var(--종이2); color: var(--먹); }
  .bottomnav a.on img { animation: 튀기 .9s ease-out; }
  body { padding-bottom: 84px; }
}

/* ── 첫 화면 ── */
.hero { text-align: center; padding: 48px 0 24px; }
.hero .eyebrow {
  display: inline-block; margin: 0 0 10px; padding: 2px 14px; font-size: 15px;
  color: var(--먹연); border: 1.5px dashed var(--대나무진); border-radius: 999px;
}
.hero h1 { font-size: clamp(52px, 10vw, 96px); margin: 0; letter-spacing: -1px; }
.hero h1 .dot { color: var(--분홍); }
.hero .lead { font-size: clamp(17px, 2.4vw, 21px); margin: 12px auto 0; }

/* 가게 앞 무대 — 코덱스 '외관 정면' 그림 앞에 여섯 친구가 선다 */
.shopfront {
  position: relative; max-width: 1040px; margin: 22px auto 0;
  aspect-ratio: 1672 / 941; border-radius: 28px; overflow: hidden; background: #E9D2B4;
}
.shopfront .shop-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.shopfront .row, .scene .row {
  position: absolute; z-index: 1; left: 6%; right: 6%; bottom: 3%;
  display: flex; align-items: flex-end; justify-content: center;
}
.shopfront .row > a, .scene .row > a { display: block; position: relative; flex: 0 0 12.5%; margin: 0 -.2%; }
.shopfront .row > a { opacity: 0; transform: translateY(26%); }
/* 발밑 그림자 — 땅에 서 있는 느낌 */
.shopfront .row > a::after, .scene .row > a::after {
  content: ""; position: absolute; left: 16%; right: 16%; bottom: 3%; height: 9%; z-index: -1;
  background: radial-gradient(ellipse, rgba(70, 45, 20, .3), transparent 70%);
}
.shopfront.awake .row > a { animation: 깨어남 .7s cubic-bezier(.3, 1.5, .5, 1) forwards; animation-delay: calc(1.3s + var(--i) * .16s); }
.shopfront .row .숨, .scene .row .숨 { display: block; transform-origin: 50% 85%; }
.shopfront.awake .row .숨 { animation: 숨쉬기 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
.shopfront.awake .puff { animation: 걷힘 1.8s ease-out forwards; animation-delay: calc(var(--d) * 1s); }
@media (max-width: 700px) {
  .shopfront { aspect-ratio: 1 / 1; border-radius: 22px; margin-top: 16px; }
  .shopfront .shop-bg { object-position: 50% 50%; }
  .shopfront .row { left: 2%; right: 2%; bottom: 4%; }
  .shopfront .row > a { flex-basis: 16.4%; }
}

/* 찜기 안쪽 무대 — 코덱스 '원형 찜기 안쪽 눈높이' 그림, 탄생설화 장면 */
.scene { position: relative; aspect-ratio: 1672 / 941; border-radius: 18px; overflow: hidden; background: #F1E4CF; }
.scene .nest-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene .row { bottom: 12%; left: 4%; right: 4%; }
.scene .row > a { flex-basis: 16%; margin: 0 -.3%; }
.scene::after {
  /* 밤: 불 꺼진 떡집 */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(rgba(52, 44, 84, .78), rgba(40, 34, 66, .7)); opacity: 0; transition: opacity 1s ease;
}
.scene-box[data-scene="밤"] .scene::after { opacity: 1; }
@media (max-width: 820px) { .scene { aspect-ratio: 4 / 3; } .scene .row { bottom: 10%; } }
@keyframes 깨어남 {
  0% { opacity: 0; transform: translateY(26%); }
  60% { opacity: 1; transform: translateY(-6%); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes 숨쉬기 { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.015, .985); } }

/* 김 — 처음엔 친구들을 덮고 있다가 걷힘 */
.puff {
  position: absolute; z-index: 3; border-radius: 50%; pointer-events: none; aspect-ratio: 1;
  background: radial-gradient(circle, #fff 0 45%, rgba(255, 255, 255, 0) 70%);
  opacity: .95;
}
@keyframes 걷힘 { to { opacity: 0; transform: translateY(-40%) scale(1.5); } }
.wisp {
  position: absolute; z-index: 0; bottom: 42%; width: 12px; height: 60px; border-radius: 50%;
  border-left: 3px solid rgba(185, 139, 79, .35); opacity: 0;
  animation: 김 3.6s ease-in-out infinite;
}
@keyframes 김 {
  0% { transform: translateY(30px) scaleY(.6); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(-50px) scaleY(1.1); opacity: 0; }
}
.hero-tools { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; color: var(--먹연); font-size: 15px; }
.mini-btn {
  background: #fff; border: 0; border-radius: 999px; padding: 5px 14px; cursor: pointer; font-size: 14px;
}
.mini-btn:hover { background: var(--노랑); }

/* ── 구역 공통 ── */
section { padding: 76px 0; position: relative; }
section.tint { background: var(--종이2); }
/* 떡 가장자리처럼 동글동글한 경계 */
section.tint::before, section.tint::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background-repeat: repeat-x; background-size: 28px 14px;
}
section.tint::before { top: -14px; background-image: radial-gradient(circle at 14px 14px, var(--종이2) 13px, transparent 13.5px); }
section.tint::after { bottom: -14px; background-image: radial-gradient(circle at 14px 0, var(--종이2) 13px, transparent 13.5px); }
.sec-title { text-align: center; margin-bottom: 40px; }
.sec-title small {
  display: inline-block; font-size: 14px; color: var(--먹연);
  background: #fff; border-radius: 999px; padding: 1px 12px;
}
.tint .sec-title small { background: var(--종이); }
.sec-title h2 { font-size: clamp(30px, 5vw, 44px); margin: 8px 0 0; }
/* 제목 아래 색연필 밑줄 */
.sec-title h2 span {
  background: linear-gradient(transparent 62%, var(--hl, var(--노랑)) 62% 90%, transparent 90%);
  padding: 0 4px;
}

/* 스크롤하면 살짝 떠오르기 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── 떡집 이야기 + 주문서 ── */
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .order-grid { grid-template-columns: 1fr; gap: 24px; } }
.story p { margin: 0 0 1.1em; font-size: 18px; }
.story .note {
  display: flex; gap: 10px; align-items: center; margin-top: 22px; padding: 12px 16px;
  background: var(--종이); border-radius: 18px; font-size: 15px; color: var(--먹연);
}
.story .note img { width: 54px; flex: none; }

.slip {
  background: #fff; border-radius: 22px; padding: 26px 24px 22px;
  transform: rotate(.6deg);
  box-shadow: 0 10px 24px rgba(48, 43, 40, .08);
}
.slip::after {
  /* 위쪽 뜯는 선 */
  content: ""; position: absolute; left: 18px; right: 18px; top: 12px; height: 0;
  border-top: 2px dashed var(--선);
}
.slip-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 4px; }
.slip-head h3 { font-size: 24px; margin: 0; }
.slip-head span { font-size: 13px; color: var(--먹연); }
.slip .hint { margin: 0 0 12px; font-size: 15px; color: var(--먹연); }
.slip ul { list-style: none; margin: 0; padding: 0; }
.slip li + li { border-top: 1.5px dotted var(--선); }
.slip li button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: none; border: 0; padding: 11px 4px; cursor: pointer; font-size: 17px;
}
.slip li button .box {
  width: 22px; height: 22px; flex: none; border: 2px solid var(--먹); border-radius: 7px;
  display: grid; place-items: center; font-size: 14px; line-height: 1; color: transparent; transition: background .15s;
}
.slip li button:hover .box { background: var(--종이2); }
.slip li button.on .box { background: var(--노랑); color: var(--먹); }
.slip li button .who { margin-left: auto; font-size: 13px; color: var(--먹연); opacity: 0; transition: opacity .2s; }
.slip li button.on .who { opacity: 1; }
.answer { position: relative; min-height: 118px; margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--선); }
.answer .empty { color: var(--먹연); font-size: 15px; text-align: center; padding-top: 32px; }
.answer .got { display: flex; gap: 12px; align-items: center; animation: 뿅 .4s ease-out; padding-right: 76px; }
.answer .got img { width: 88px; flex: none; }
.answer .got b { font-family: "Jua", sans-serif; font-weight: 400; font-size: 18px; display: block; }
.answer .got p { margin: 0; font-size: 16px; line-height: 1.6; }
.stamp {
  position: absolute; right: 2px; bottom: 6px; width: 76px; height: 76px; border-radius: 50%;
  border: 3px double var(--도장); color: var(--도장);
  display: grid; place-items: center; text-align: center;
  font-family: "Jua", sans-serif; font-size: 15px; line-height: 1.1;
  transform: rotate(-14deg); opacity: .85;
  animation: 쾅 .45s cubic-bezier(.2, 1.6, .4, 1) .25s both;
}
@keyframes 쾅 { 0% { transform: scale(2.2) rotate(-30deg); opacity: 0; } 100% { transform: scale(1) rotate(-14deg); opacity: .85; } }
@keyframes 뿅 { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

.order-art { display: block; width: 100%; margin-top: 18px; border-radius: 22px; aspect-ratio: 16 / 9; object-fit: cover; }
.order-art.sketch::before { display: none; }

/* ── 떡 친구들 ── */
.picker { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.picker button {
  width: 92px; background: #fff; border: 0; border-radius: 22px; padding: 6px 4px 8px; cursor: pointer;
  transition: transform .15s, background .2s;
}
.picker button img { width: 64px; margin: 0 auto; }
.picker button span { display: block; font-size: 14px; }
.picker button:hover { transform: translateY(-3px); }
.picker button[aria-selected="true"] { background: var(--c); transform: translateY(-3px); }
.picker button[aria-selected="true"]::before { border-width: 2.4px; }
.picker button[aria-selected="false"]::before { border-color: transparent; }
@media (max-width: 560px) {
  .picker { gap: 6px; flex-wrap: nowrap; }
  .picker button { width: auto; flex: 1; border-radius: 16px; padding: 4px 0 6px; }
  .picker button img { width: 44px; }
  .picker button span { font-size: 12px; }
}

.profile {
  display: grid; grid-template-columns: 5fr 6fr;
  background: #fff; border-radius: 32px; overflow: hidden;
  touch-action: pan-y;
}
@media (max-width: 820px) { .profile { grid-template-columns: 1fr; } }
.profile .art {
  background: var(--c); position: relative; display: flex; align-items: center; justify-content: center;
  padding: 40px 30px 30px; min-height: 380px; transition: background .4s;
}
.profile .art::after {
  /* 바닥 그림자 */
  content: ""; position: absolute; bottom: 58px; left: 50%; width: 46%; height: 16px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(48, 43, 40, .12), transparent 70%);
}
@media (max-width: 820px) { .profile .art { min-height: 300px; } .profile .art::after { bottom: 40px; } }
.profile .art img { width: min(320px, 78%); position: relative; z-index: 1; }
.bubble {
  position: absolute; z-index: 2; top: 26px; right: 26px; max-width: 60%;
  background: #fff; border-radius: 20px; padding: 8px 16px;
  font-family: "Jua", sans-serif; font-size: 20px;
  transform: rotate(3deg);
}
.bubble::after {
  content: ""; position: absolute; left: 22px; bottom: -11px; width: 18px; height: 14px;
  background: #fff; clip-path: polygon(0 0, 100% 0, 20% 100%);
}
.arrows { position: absolute; z-index: 2; left: 18px; bottom: 16px; display: flex; gap: 8px; }
.arrows button {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 0; cursor: pointer;
  font-size: 18px; line-height: 1; display: grid; place-items: center;
}
.arrows button:hover { background: var(--노랑); }
.count { position: absolute; z-index: 2; right: 22px; bottom: 22px; font-family: "Jua", sans-serif; font-size: 15px; color: var(--먹연); }

.profile .info { padding: 34px 36px 32px; }
@media (max-width: 560px) { .profile .info { padding: 24px 20px 24px; } }
.profile .info > * { animation: 뿅 .35s ease-out both; }
.profile .info > *:nth-child(2) { animation-delay: .04s; }
.profile .info > *:nth-child(3) { animation-delay: .08s; }
.profile .info > *:nth-child(4) { animation-delay: .12s; }
.profile .info > *:nth-child(5) { animation-delay: .16s; }
.profile .kind { font-size: 15px; color: var(--진); margin: 0; }
.profile h3 { font-size: clamp(40px, 6vw, 56px); margin: 0 0 16px; }
.profile dl { display: grid; grid-template-columns: 4.6em 1fr; gap: 8px 14px; margin: 0 0 20px; }
.profile dt { color: var(--먹연); font-size: 15px; padding-top: 2px; }
.profile dd { margin: 0; }
.profile .tale { background: var(--종이); border-radius: 18px; padding: 14px 18px; margin: 0 0 12px; }
.profile .tale b { font-family: "Jua", sans-serif; font-weight: 400; display: block; font-size: 17px; color: var(--진); }
.profile .tale p { margin: 0; }
.stickers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.stickers small { color: var(--먹연); font-size: 14px; margin-right: 4px; }
.stickers span {
  background: var(--c); border-radius: 12px; padding: 3px 12px; font-family: "Jua", sans-serif; font-size: 16px;
  box-shadow: 0 2px 0 rgba(48, 43, 40, .15);
}
.stickers span:nth-of-type(odd) { transform: rotate(-3deg); }
.stickers span:nth-of-type(even) { transform: rotate(2.5deg); }
.swipe-hint { display: none; text-align: center; margin-top: 12px; font-size: 13px; color: var(--먹연); }
@media (max-width: 820px) { .swipe-hint { display: block; } }

/* ── 서로서로 ── */
.pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) {
  .pairs { grid-template-columns: 1fr; gap: 16px; }
  .pair .duo img { width: 30%; }
}
.pair { background: #fff; border-radius: var(--둥글); padding: 18px 22px 22px; }
.pair:nth-child(1) { transform: rotate(-.7deg); }
.pair:nth-child(3) { transform: rotate(.7deg); }
.pair .duo { display: flex; justify-content: center; align-items: flex-end; position: relative; }
.pair .duo img { width: 40%; }
.pair .duo img:first-child { transform: rotate(-4deg); }
.pair .duo img:last-child { transform: rotate(4deg); }
.pair .duo .link {
  position: absolute; left: 50%; top: 18%; transform: translateX(-50%);
  font-family: "Jua", sans-serif; color: var(--분홍); font-size: 24px;
}
.pair:hover .duo img:first-child { animation: 기대기L 1.2s ease-in-out; }
.pair:hover .duo img:last-child { animation: 기대기R 1.2s ease-in-out; }
@keyframes 기대기L { 50% { transform: rotate(6deg) translateX(6%); } }
@keyframes 기대기R { 50% { transform: rotate(-6deg) translateX(-6%); } }
.pair h3 { font-size: 21px; margin: 6px 0 6px; text-align: center; }
.pair p { margin: 0; font-size: 16px; text-align: center; }

/* ── 약속: 무지개떡 층 ── */
.promise { position: relative; text-align: center; padding: 100px 0 96px; overflow: hidden; }
.promise .layers {
  position: absolute; inset: 22px 0; z-index: -1;
  background: linear-gradient(#FFF8ED 0 20%, #F7D3DB 20% 40%, #F9ECBC 40% 60%, #D9E6C4 60% 80%, #E1D6EC 80%);
  opacity: .7;
}
.promise .card {
  display: inline-block; background: var(--종이); border-radius: 36px;
  padding: 30px clamp(24px, 6vw, 64px) 32px; max-width: calc(100% - 40px);
}
.promise small { color: var(--먹연); }
.promise blockquote { font-family: "Jua", sans-serif; font-size: clamp(28px, 5.4vw, 50px); margin: 6px 0 0; line-height: 1.35; }
.promise .hands { display: flex; justify-content: center; margin-top: 14px; }
.promise .hands img { width: 46px; margin: 0 -3px; }

footer { text-align: center; padding: 52px 0 60px; color: var(--먹연); font-size: 14px; }
footer .jua { font-size: 26px; color: var(--먹); }
footer .row { display: flex; justify-content: center; margin: 6px 0 8px; }
footer .row img { width: 40px; margin: 0 -2px; }

/* ── 캐릭터별 움직임 (설정집 '대표 움직임') ── */
.mv-osaek.play .떡, .mv-osaek:hover .떡 { animation: 점프 .9s ease-out; }
.mv-seol.play .떡, .mv-seol:hover .떡 { animation: 끄덕 .9s ease-in-out; transform-origin: 50% 90%; }
.mv-giljjuk.play .떡, .mv-giljjuk:hover .떡 { animation: 휘기 1.6s ease-in-out; transform-origin: 50% 95%; }
.mv-gomul.play .떡, .mv-gomul:hover .떡 { animation: 떨림 .6s linear; }
.mv-sol.play .떡, .mv-sol:hover .떡 { animation: 굳기 1.2s ease-in-out; transform-origin: 50% 90%; }
.mv-kkul.play .떡, .mv-kkul:hover .떡 { animation: 튀기 1s ease-out; transform-origin: 50% 90%; }
@keyframes 점프 {
  0% { transform: none; }
  12% { transform: scale(1.06, .92); }
  30% { transform: translateY(-14%) scale(.97, 1.04); }
  45% { transform: scale(1.04, .95); }
  62% { transform: translateY(-10%) scale(.98, 1.03); }
  80% { transform: scale(1.03, .97); }
  100% { transform: none; }
}
@keyframes 끄덕 { 0%, 100% { transform: rotate(0); } 35%, 55% { transform: rotate(6deg); } }
@keyframes 휘기 { 0%, 100% { transform: rotate(0); } 30%, 60% { transform: rotate(-12deg) scaleY(.97); } }
@keyframes 떨림 {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-3px); } 30% { transform: translateX(3px); }
  45% { transform: translateX(-2px); } 60% { transform: translateX(2px); } 75% { transform: translateX(-1px); }
}
@keyframes 굳기 { 0%, 45% { transform: scale(1); } 55% { transform: scale(1.03, .97); } 70% { transform: translateY(-4%); } 100% { transform: none; } }
@keyframes 튀기 {
  0% { transform: none; } 20% { transform: scale(1.1, .88); }
  45% { transform: translateY(-16%) scale(.95, 1.06); } 65% { transform: scale(1.06, .94); }
  78% { transform: scale(.98, 1.02); } 90% { transform: scale(1.02, .98); } 100% { transform: none; }
}

/* 움직임을 줄여 달라고 설정한 사람에겐 멈춘 화면 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .shopfront .row > a, .reveal { opacity: 1 !important; transform: none !important; }
  .shopfront .puff { display: none; }
}

/* ═════════════════════════════════════════════
   여러 페이지 구성 (2026-09-28)
   ═════════════════════════════════════════════ */
.wrap.narrow { max-width: 760px; }
.center { text-align: center; margin: 32px 0 0; }
.muted { color: var(--먹연); }
.sec-title.left { text-align: left; margin-bottom: 14px; }
.sec-title p.muted { margin: 10px auto 0; max-width: 32em; }
.sub-title { font-size: 22px; margin: 48px 0 16px; }
.story { max-width: 640px; margin: 0 auto; }
.story.long p { font-size: 18px; line-height: 1.95; }
.story.long p:first-child { font-size: 20px; }

.btn {
  display: inline-block; text-decoration: none; background: #fff;
  border-radius: 999px; padding: 9px 22px; font-size: 16px; cursor: pointer; border: 0;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--노랑); transform: translateY(-2px); }

/* 하위 페이지 머리띠 */
.banner { text-align: center; padding: 40px 0 34px; }
/* 배경 그림이 있는 머리띠: 그림 위에 이름표 카드 */
.banner:has(.banner-art) { padding-top: 0; }
.banner-art { position: relative; height: clamp(210px, 30vw, 360px); overflow: hidden; }
.banner-art img { width: 100%; height: 100%; object-fit: cover; }
.banner-art::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(transparent, var(--종이));
}
.banner-art + .wrap { margin-top: -96px; position: relative; }
.banner-card { display: inline-block; background: var(--종이); border-radius: 28px; padding: 6px 36px 16px; box-shadow: 0 10px 30px rgba(80, 50, 20, .1); }
@media (max-width: 560px) { .banner-art + .wrap { margin-top: -70px; } .banner-card { padding: 4px 24px 14px; } }
.banner .faces { display: flex; justify-content: center; margin-bottom: 4px; }
.banner .faces span { width: 64px; display: block; animation: 깨어남 .7s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i) * .12s); }
.banner .faces span:nth-child(2) { width: 78px; margin: 0 -2px; }
.banner h1 { font-size: clamp(40px, 8vw, 64px); margin: 0; }
.banner p { margin: 4px 0 0; color: var(--먹연); }

/* 배지 */
.badge { display: inline-block; font-size: 12px; line-height: 1; padding: 4px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.badge.ex { background: #EEE8DC; color: var(--먹연); }
.badge.soon { background: var(--노랑); }
.badge.sale { background: var(--도장); color: #fff; }

/* 게시물 카드 목록 */
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.posts.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .posts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .posts, .posts.three { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.post-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
  text-decoration: none; transition: transform .15s;
}
.post-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.post-card .thumb { aspect-ratio: 1; background: var(--c); position: relative; overflow: hidden; }
.post-card .thumb.video { aspect-ratio: 1; }
.post-card .thumb > .panel { height: 100%; border-radius: 0; }
.post-card .thumb > .panel .say { font-size: 14px; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; }
.play-mark {
  position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(48, 43, 40, .75);
}
.play-mark::after { content: ""; position: absolute; left: 14px; top: 11px; border: 7px solid transparent; border-left: 11px solid #fff; }
.post-card .meta { padding: 12px 14px 16px; }
.post-card .cat { font-size: 13px; color: var(--먹연); }
.post-card h3 { font-size: 19px; margin: 4px 0 4px; }
.post-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--먹연); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card time { display: block; margin-top: 8px; font-size: 12px; color: var(--먹연); }
@media (max-width: 560px) { .post-card h3 { font-size: 17px; } .post-card .meta { padding: 10px 12px 12px; } }

/* 메인: 갈래 카드 */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .cats { grid-template-columns: 1fr; gap: 14px; } }
.cat-card { display: flex; flex-direction: column; background: #fff; border-radius: 26px; overflow: hidden; text-decoration: none; transition: transform .15s; }
.cat-card:hover { transform: translateY(-4px); }
.cat-card .thumb { aspect-ratio: 16 / 10; background: var(--c); }
.cat-card .thumb > .panel { height: 100%; border-radius: 0; }
.cat-card .meta { padding: 16px 20px 20px; }
.cat-card .kind { font-size: 13px; color: var(--먹연); }
.cat-card h3 { font-size: 26px; margin: 2px 0 4px; }
.cat-card p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; }
.cat-card .go { font-family: "Jua", sans-serif; font-size: 16px; }
@media (max-width: 820px) {
  .cat-card { flex-direction: row; }
  .cat-card .thumb { width: 38%; aspect-ratio: auto; flex: none; }
  .cat-card h3 { font-size: 22px; }
}
.empty-note { grid-column: 1 / -1; text-align: center; padding: 30px 0; color: var(--먹연); }
.empty-note img { width: 110px; margin: 0 auto 6px; }
.empty-note.big { padding: 80px 0; }
.empty-note.big .btn { margin-top: 12px; }

/* ── 칸 (콘티 · 그림) ── */
.panel {
  position: relative; margin: 0; background: var(--c, #EDE6F3); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1;
}
.panel .cast { display: flex; justify-content: center; align-items: flex-end; padding: 0 8% 10%; }
.panel .cast span, .panel .cast > img { display: block; }
.panel.one .cast span { width: 52%; }
.panel.two .cast span { width: 40%; margin: 0 -3%; }
.panel.three .cast span { width: 32%; margin: 0 -2%; }
.panel.many .cast span, .panel.many .cast > img { width: 16.5%; margin: 0 -1%; }
.panel .say {
  position: absolute; top: 9%; left: 50%; transform: translateX(-50%) rotate(-1.5deg); z-index: 1;
  max-width: 84%; background: #fff; border-radius: 16px; padding: 6px 14px;
  font-family: "Jua", sans-serif; font-size: clamp(14px, 2.2vw, 20px); line-height: 1.35; text-align: center;
  box-shadow: 0 2px 0 rgba(48, 43, 40, .12);
}
.panel .say::after {
  content: ""; position: absolute; left: 44%; bottom: -9px; width: 14px; height: 11px;
  background: #fff; clip-path: polygon(0 0, 100% 0, 30% 100%);
}
.panel figcaption {
  background: rgba(255, 255, 255, .75); font-size: 14px; line-height: 1.5; padding: 8px 14px; color: var(--먹연);
}
.panel .no { position: absolute; left: 12px; top: 8px; z-index: 1; font-family: "Jua", sans-serif; font-size: 14px; color: var(--먹연); }
.panel.empty { background: linear-gradient(#D8CDE8, #F2DCC8); justify-content: center; }
.panel.empty figcaption { position: absolute; left: 0; right: 0; bottom: 0; }
.steam-only { display: flex; justify-content: center; gap: 20px; height: 40%; align-items: center; }
.steam-only i { width: 14px; height: 60%; border-left: 4px solid rgba(255, 255, 255, .9); border-radius: 50%; animation: 김 3.2s ease-in-out infinite; }
.steam-only i:nth-child(2) { animation-delay: 1s; } .steam-only i:nth-child(3) { animation-delay: 2s; }
.panel.pic { aspect-ratio: auto; background: none; }
.panel.pic img { width: 100%; border-radius: 18px; }

/* ── 극장: 탭 · 거르기 ── */
.list-sec { padding-top: 10px; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.tabs button {
  background: #fff; border: 2px solid transparent; border-radius: 999px; padding: 8px 18px; cursor: pointer;
  font-family: "Jua", sans-serif; font-size: 18px; transition: background .2s;
}
.tabs button span { font-family: "Gowun Dodum", sans-serif; font-size: 13px; color: var(--먹연); margin-left: 6px; }
.tabs button:hover { background: var(--종이2); }
.tabs button[aria-selected="true"] { background: var(--c); border-color: var(--먹); }
.cat-line { text-align: center; margin: 0 auto 18px; max-width: 640px; }
.cat-line b { font-family: "Jua", sans-serif; font-weight: 400; font-size: 18px; }
.cat-line > span { margin-left: 8px; font-size: 13px; color: var(--먹연); }
.cat-line p { margin: 2px 0 0; color: var(--먹연); font-size: 15px; }
.cat-line.all { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; max-width: none; }
.cat-line.all span { background: var(--c); border-radius: 999px; padding: 2px 12px; font-size: 14px; margin: 0; color: var(--먹); }
.cat-line.all b { font-size: 15px; }
.who-filter {
  display: flex; align-items: center; gap: 6px; margin: 0 0 26px; padding: 6px 2px 8px;
  overflow-x: auto; scrollbar-width: none; justify-content: safe center;
}
.who-filter::-webkit-scrollbar { display: none; }
.who-filter small { color: var(--먹연); flex: none; margin-right: 4px; }
.who-filter button {
  flex: none; display: flex; align-items: center; gap: 2px; background: #fff; border: 2px solid transparent;
  border-radius: 999px; padding: 2px 12px 2px 4px; cursor: pointer; font-size: 14px;
}
.who-filter button:first-of-type { padding: 6px 14px; }
.who-filter button img { width: 28px; }
.who-filter button.on { background: var(--c, var(--노랑)); border-color: var(--먹); }

/* ── 게시물 보기 ── */
.post { padding-top: 26px; padding-bottom: 60px; }
.post.narrow { max-width: 680px; }
.crumb { font-size: 14px; color: var(--먹연); margin-bottom: 14px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.post-head { text-align: center; margin-bottom: 28px; }
.post-head .cat { font-size: 14px; color: var(--먹연); }
.post-head h1 { font-size: clamp(34px, 6vw, 52px); margin: 4px 0 6px; }
.post-head .intro { margin: 0 auto; max-width: 34em; font-size: 17px; }
.post-meta { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 12px; font-size: 14px; color: var(--먹연); }
.cast-mini { display: flex; }
.cast-mini img { width: 34px; margin: 0 -3px; transition: transform .15s; }
.cast-mini a:hover img { transform: translateY(-3px); }
.draft-note { text-align: center; font-size: 14px; color: var(--먹연); background: var(--종이2); border-radius: 999px; padding: 6px 16px; margin: 0 auto 16px; width: fit-content; max-width: 100%; }
.strip { display: flex; flex-direction: column; gap: 14px; }
.strip .panel { aspect-ratio: 4 / 3; }
.strip .panel.pic { aspect-ratio: auto; }
.strip .panel .say { font-size: clamp(16px, 3vw, 22px); }
.grid-panels { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.grid-panels.one { max-width: 520px; }
.grid-panels.two { grid-template-columns: repeat(2, 1fr); }
.grid-panels.three { grid-template-columns: repeat(3, 1fr); max-width: none; }
@media (max-width: 640px) { .grid-panels.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .grid-panels.two { grid-template-columns: 1fr; } }
.video { max-width: 420px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; display: block; }
.video.waiting {
  background: var(--c); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  aspect-ratio: 16 / 10; max-width: 640px; color: var(--먹연);
}
.video.waiting .cast { display: flex; justify-content: center; width: 90%; }
.video.waiting .cast span { width: 15%; margin: 0 -1%; }
.video.waiting p { margin: 0; }
.post-body { max-width: 640px; margin: 34px auto 0; background: #fff; border-radius: 20px; padding: 20px 24px; }
.post-body p { margin: 0 0 .8em; } .post-body p:last-child { margin: 0; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.prevnext .pn { background: #fff; border-radius: 18px; padding: 12px 18px; text-decoration: none; font-family: "Jua", sans-serif; font-size: 18px; }
.prevnext .pn:last-child { text-align: right; }
.prevnext .pn small { display: block; font-family: "Gowun Dodum", sans-serif; font-size: 13px; color: var(--먹연); }
.prevnext .pn:hover { background: var(--노랑); }

/* 상품 보기 */
.goods { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .goods { grid-template-columns: 1fr; } }
.goods-pics { display: grid; gap: 12px; }
.goods-info .price { font-family: "Jua", sans-serif; font-size: 28px; margin: 0 0 12px; }
.btn.buy { margin-top: 22px; font-family: "Jua", sans-serif; font-size: 18px; padding: 12px 28px; background: var(--노랑); }
.btn.buy.off { background: #EEE8DC; color: var(--먹연); cursor: default; transform: none; }
.stickers.mini { margin-top: 10px; gap: 5px; }
.stickers.mini span { font-size: 13px; padding: 1px 8px; background: var(--c); }
.stickers.mini em { font-style: normal; font-size: 13px; color: var(--먹연); }
.goods-card .price { display: block; margin-top: 8px; font-family: "Jua", sans-serif; font-weight: 400; }

/* 찜기 이야기: 첫 화로, 나온 이야기 */
.first-ep { margin-top: 30px; text-align: center; }
.next-card {
  display: inline-flex; flex-direction: column; background: #fff; border-radius: 22px; padding: 14px 30px;
  text-decoration: none; transition: transform .15s;
}
.next-card:hover { transform: translateY(-3px); }
.next-card .kind { font-size: 13px; color: var(--먹연); }
.next-card b { font-family: "Jua", sans-serif; font-weight: 400; font-size: 24px; }
.next-card span:last-child { font-size: 15px; }
.appears { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.appears small { color: var(--먹연); }
.appears a { color: var(--진); text-decoration: none; }
.appears a:hover { text-decoration: underline; }

/* 바닥 메뉴 */
.footnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 8px 0 10px; }
.footnav a { text-decoration: none; }
.footnav a:hover { color: var(--먹); text-decoration: underline; }
.sns { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; }

/* ═════════════════════════════════════════════
   간판 · 말풍선 · 탄생 장면 (2026-09-28)
   ═════════════════════════════════════════════ */

/* 떡집 간판 로고 — 끈 두 줄에 매달린 나무 판 */
.logo.sign { position: relative; padding-top: 6px; }
.logo.sign::before, .logo.sign::after {
  content: ""; position: absolute; top: -6px; width: 2px; height: 14px; background: var(--먹); border-radius: 2px;
}
.logo.sign::before { left: 26%; }
.logo.sign::after { right: 26%; }
.sign .board {
  position: relative; display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 16px 1px 4px; border: 2.4px solid var(--먹); border-radius: 10px;
  background:
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(185, 139, 79, .22) 7px 8px),
    linear-gradient(#EFCF98, #DDB477);
  box-shadow: 0 3px 0 var(--대나무진);
  transform-origin: 50% -8px;
  transform: rotate(-1.2deg);
}
.sign .board img { width: 34px; height: 34px; }
.sign .board b { font-weight: 400; font-size: 22px; letter-spacing: .5px; }
.sign .seal {
  position: absolute; right: -10px; top: -9px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--도장); color: #fff; font-style: normal; font-size: 12px; line-height: 22px; text-align: center;
  transform: rotate(-14deg); box-shadow: 0 0 0 2px var(--종이);
}
.logo.sign:hover .board { animation: 흔들 1.2s ease-in-out; }
.logo.sign:hover img { animation: none; }
@keyframes 흔들 { 0%, 100% { transform: rotate(-1.2deg); } 25% { transform: rotate(3deg); } 55% { transform: rotate(-3.5deg); } 80% { transform: rotate(1deg); } }

/* 메인 가게 앞: 누르면 말풍선 */
.shopfront .row > a.talk { z-index: 5; }
.hero-bubble {
  position: absolute; bottom: 88%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 170px; text-align: center; z-index: 6;
  background: #fff; border: 2px solid var(--먹); border-radius: 16px; padding: 5px 12px 6px;
  animation: 말풍선 .35s cubic-bezier(.3, 1.5, .5, 1) both;
}
.hero-bubble b { display: block; font-family: "Jua", sans-serif; font-weight: 400; font-size: 17px; line-height: 1.3; }
.hero-bubble small { display: block; font-size: 11px; line-height: 1.4; color: var(--먹연); }
.hero-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 10px; transform: translateX(-50%);
  background: var(--먹); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
@keyframes 말풍선 { from { opacity: 0; transform: translate(-50%, 8px) scale(.85); } to { opacity: 1; transform: translate(-50%, 0); } }
/* 양 끝 친구는 말풍선이 화면 밖으로 나가지 않게 */
.shopfront .row > a:first-child .hero-bubble { left: 0; transform: none; animation-name: 말풍선끝; }
.shopfront .row > a:last-child .hero-bubble { left: auto; right: 0; transform: none; animation-name: 말풍선끝; }
.shopfront .row > a:first-child .hero-bubble::after { left: 30%; }
.shopfront .row > a:last-child .hero-bubble::after { left: 70%; }
@media (max-width: 700px) {
  .hero-bubble { max-width: 120px; padding: 4px 9px 5px; }
  .hero-bubble b { font-size: 14px; }
  .hero-bubble small { font-size: 10px; }
}
@keyframes 말풍선끝 { from { opacity: 0; transform: translateY(8px) scale(.85); } to { opacity: 1; transform: none; } }

/* ── 탄생설화: 스크롤 장면 ── */
.scrolly { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.scene-box {
  --하늘: #F3E3D3;
  position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); z-index: 3;
  background: var(--하늘); border-radius: 28px; padding: 64px 18px 44px; overflow: hidden;
  transition: background .9s ease;
}
.scene-box[data-scene="밤"] { --하늘: #4A4366; }
.scene-box[data-scene="깨어남"] { --하늘: #EADCEB; }
.scene-box[data-scene="주문"] { --하늘: #FBEFD9; }
.scene-box[data-scene="쉼"] { --하늘: #E4ECD9; }
.scene-box[data-scene="약속"] { --하늘: #FBE3E9; }
.scene-label {
  position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center;
  font-family: "Jua", sans-serif; font-size: 15px; color: var(--먹연); transition: color .6s;
}
.scene-box[data-scene="밤"] .scene-label { color: #D9D2EE; }

/* 밤하늘 */
.sky i { position: absolute; opacity: 0; transition: opacity .9s; }
.scene-box[data-scene="밤"] .sky i { opacity: 1; }
.sky .moon { right: 9%; top: 16px; width: 30px; height: 30px; border-radius: 50%; box-shadow: -7px 4px 0 0 #FFF3C4; }
.sky .star { width: 4px; height: 4px; border-radius: 50%; background: #FFF3C4; animation: 반짝 2.4s ease-in-out infinite; }
.sky .s1 { left: 12%; top: 22px; } .sky .s2 { left: 34%; top: 40px; animation-delay: .8s; } .sky .s3 { left: 62%; top: 18px; animation-delay: 1.6s; }
@keyframes 반짝 { 50% { transform: scale(.4); } }

/* 친구들: 밤에는 잠들어(숨어) 있고, 다음 장면부터 하나씩 깨어남 */
.scene .row > a {
  opacity: 0; transform: translateY(26%);
  transition: opacity .5s ease, transform .7s cubic-bezier(.3, 1.5, .5, 1);
  transition-delay: calc(var(--i) * .13s);
}
.scene-box:not([data-scene="밤"]) .scene .row > a { opacity: 1; transform: none; }
.scene .puff { opacity: .95; transition: opacity 1.4s ease, transform 1.8s ease; }
.scene-box:not([data-scene="밤"]) .scene .puff { opacity: 0; transform: translateY(-40%) scale(1.5); }
.scene-box[data-scene="밤"] .scene .puff { opacity: .7; background: radial-gradient(circle, #EDE8F6 0 40%, rgba(237, 232, 246, 0) 70%); }
.scene-box[data-scene="쉼"] .scene .숨 { animation: 푹쉼 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); }
@keyframes 푹쉼 { 0%, 100% { transform: none; } 50% { transform: scale(1.05, .93); } }
.scene-box[data-scene="쉼"] .scene .wisp { border-left-width: 5px; height: 90px; border-left-color: rgba(185, 139, 79, .5); }
.scene-box[data-scene="약속"] .scene .떡 { animation: 점프 .9s ease-out 2; animation-delay: calc(var(--i) * .1s); }

/* 주문 쪽지 */
.slips {
  position: absolute; left: 12px; right: 12px; top: 14px; z-index: 4;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
.slip-tag {
  display: inline-flex; align-items: center; gap: 2px; background: #fff;
  border: 1.5px dashed var(--대나무진); border-radius: 8px; padding: 1px 9px 1px 3px; font-size: 13px;
  opacity: 0; transform: translateY(-10px) rotate(0);
  transition: opacity .4s ease, transform .5s cubic-bezier(.3, 1.5, .5, 1);
  transition-delay: calc(var(--i) * .15s);
}
.slip-tag img { width: 22px; }
.scene-box[data-scene="주문"] .slip-tag { opacity: 1; transform: rotate(-2deg); }
.scene-box[data-scene="주문"] .slip-tag:nth-child(even) { transform: rotate(2deg); }

/* 약속 하트 */
.hearts i {
  position: absolute; bottom: 30%; font-style: normal; color: var(--분홍); font-size: 22px; opacity: 0; pointer-events: none;
}
.hearts i:nth-child(1) { left: 12%; } .hearts i:nth-child(2) { left: 30%; animation-delay: .3s !important; }
.hearts i:nth-child(3) { left: 50%; animation-delay: .6s !important; } .hearts i:nth-child(4) { left: 68%; animation-delay: .2s !important; }
.hearts i:nth-child(5) { left: 86%; animation-delay: .5s !important; }
.scene-box[data-scene="약속"] .hearts i { animation: 하트 2.4s ease-out infinite; }
@keyframes 하트 { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-90px) scale(1.1); } }

/* 오른쪽(휴대폰은 아래) 글 */
.steps { padding: 18vh 0 22vh; }
.step { min-height: 62vh; display: flex; align-items: center; }
.step:first-child { min-height: 40vh; align-items: flex-start; }
.step p {
  margin: 0; background: #fff; border-radius: 22px; padding: 20px 24px; font-size: 18px; line-height: 1.9;
  opacity: .35; transform: scale(.98); transition: opacity .5s, transform .5s;
}
.step.on p { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scene-box { top: calc(66px + env(safe-area-inset-top, 0px)); padding: 54px 12px 36px; border-radius: 22px; box-shadow: 0 -24px 0 4px var(--종이2); }
  .steps { padding: 6vh 0 12vh; position: relative; z-index: 1; }
  .step { min-height: 55vh; align-items: flex-start; }
  .step:first-child { min-height: 30vh; }
  .step p { font-size: 17px; padding: 16px 18px; box-shadow: 0 6px 18px rgba(48, 43, 40, .08); }
}
@media (prefers-reduced-motion: reduce) {
  .scene .row > a { opacity: 1 !important; transform: none !important; }
  .slip-tag, .step p { opacity: 1 !important; transform: none !important; }
}
