@charset "utf-8";

:root {
  color-scheme: light;
  --paper: #fffaf4;
  --ink: #211c21;
  --muted: #8c7e7c;
  --pink: #f05283;
  --line: #eadfd9;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.webtoon {
  width: min(100%, 900px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
}

.masthead {
  display: grid;
  min-height: clamp(100px, 22vw, 190px);
  place-items: center;
  padding: 20px 6.5% 12px;
}

.logo { display: block; width: min(100%, 740px); height: auto; }

.chapter { position: relative; padding: 0 0 68px; }
.panel { position: relative; width: 100%; margin: 0 auto; overflow: hidden; background: #f2e9e3; }
.panel img { display: block; width: 100%; height: auto; }
.panel-wide { width: 100%; }
.panel-medium { width: 88%; }
.panel-narrow { width: 74%; }
.panel-small { width: 80%; }

.hero { padding-bottom: 8px; }
.location-tag {
  position: absolute;
  top: 15px;
  left: 18px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 250, 244, .92);
  color: #51454a;
  font-size: clamp(12px, 2.1vw, 17px);
  letter-spacing: .02em;
}
.location-tag span { margin-left: 9px; color: var(--pink); }

.beat { margin: 0; text-align: center; font-weight: 700; }
.intro { padding: 42px 16px 8px; font-size: clamp(23px, 4.6vw, 36px); }
.two-beats { display: grid; gap: 4px; padding: 22px 12px 0; font-size: clamp(27px, 5vw, 42px); line-height: 1.35; }
.two-beats span:last-child { color: var(--pink); }

.work { margin-top: 8px; }
.dialogue-stack { display: grid; justify-items: center; gap: 13px; padding: 28px 6% 0; }
.dialogue-stack.compact { gap: 9px; padding-top: 21px; }
.balloon {
  width: fit-content;
  max-width: min(90%, 650px);
  margin: 0;
  padding: 10px 20px 12px;
  border: 1.5px solid #f3a3bc;
  border-radius: 22px 22px 22px 7px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(240, 82, 131, .06);
  font-size: clamp(17px, 3.1vw, 24px);
  font-weight: 650;
  line-height: 1.48;
  text-align: center;
}
.balloon.friend { border-color: #ebe5df; background: #f2eeea; color: #635d5a; box-shadow: 0 3px 0 rgba(72, 46, 51, .035); font-size: clamp(15px, 2.8vw, 21px); font-weight: 550; }
.snack-scene { padding-top: 18px; }
.snack-scene .panel { transform: translateX(-2%); }
.sfx {
  position: absolute;
  right: 5%;
  bottom: 6%;
  color: var(--pink);
  font-size: clamp(24px, 5.5vw, 48px);
  font-weight: 950;
  letter-spacing: -.07em;
  text-shadow: 0 2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 -2px 0 #fff;
  transform: rotate(-8deg);
}
.sfx-small { right: 7%; bottom: 8%; font-size: clamp(20px, 4vw, 34px); }
.discovery { padding-top: 18px; }
.pause-panel { width: 96%; }
.beat-sfx { margin: 14px auto 0; color: var(--pink); font-size: clamp(26px, 5vw, 42px); font-weight: 950; text-align: center; letter-spacing: .08em; }
.denial { padding-top: 10px; }
.denial .panel { transform: translateX(3%); }

.milk-scene { padding-top: 15px; }
.milk-first { transform: translateX(-3%); }
.milk-first .sfx { right: 8%; }
.milk-line { margin: 29px auto 0; font-size: clamp(20px, 4vw, 31px); }
.milk-pause { height: clamp(65px, 14vw, 120px); }
.milk-second { transform: translateX(8%); }
.milk-copy { padding-top: 19px !important; }
.prey { padding-top: 15px; }
.prey .panel { transform: translateX(-4%); }
.effect-note {
  width: fit-content;
  margin: -2px 8% 0 auto;
  padding: 2px 14px;
  color: var(--pink);
  font-size: clamp(17px, 3vw, 23px);
  font-weight: 850;
  transform: rotate(-4deg);
}

.approach { padding-top: 18px; }
.milk-offer { width: 96%; transform: translateX(2%); }
.approach .dialogue-stack { padding-top: 26px; }
.inset-row { display: flex; align-items: center; justify-content: center; gap: 16px; width: 88%; margin: 32px auto 0; }
.crop-inset {
  flex: 0 0 42%;
  aspect-ratio: 1.08;
  margin: 0;
  border: 5px solid white;
  border-radius: 50% 48% 42% 45%;
  background-image: url("assets/09-offer.png");
  background-size: 250%;
  box-shadow: 0 5px 18px rgba(44, 29, 34, .12);
}
.crop-carton { background-position: 85% 49%; }
.crop-face { background-position: 56% 18%; }
.inset-line { max-width: 55%; }
.inset-reverse { flex-direction: row-reverse; margin-top: 25px; }
.final-joke { display: block; margin: 20px auto 0; }

.phone-scene { padding-top: 34px; }
.phone-panel { width: 92%; }
.phone-scene .dialogue-stack { padding-top: 28px; }
.countdown { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 45px 12px 0; color: var(--pink); font-size: clamp(30px, 6vw, 52px); font-weight: 900; }
.countdown i { display: block; width: 1px; height: 42px; background: #ddc7c5; transform: rotate(14deg); }

.montage { padding-top: 32px; }
.phone-check { width: 72%; margin-left: 8%; }
.mini-caption { display: block; padding: 10px 3px 0; color: #6c5c5b; font-size: clamp(12px, 2.2vw, 16px); line-height: 1.45; }
.phone-play { width: 68%; margin: 57px 7% 0 auto; }
.montage-line { width: fit-content; max-width: 86%; margin: 30px auto 0; color: #3a3034; font-size: clamp(19px, 3.7vw, 29px); font-weight: 750; text-align: center; }
.cafe-panel { width: 86%; margin: 62px auto 0 0; }
.montage-copy { display: grid; gap: 2px; margin: 28px 8% 0; font-size: clamp(26px, 5vw, 39px); font-weight: 800; line-height: 1.3; }
.montage-copy span:last-child { color: var(--pink); }
.quiet-panel { width: 74%; margin: 53px 0 0 auto; }
.quiet-line { margin: 17px 10% 0 0; color: #847573; font-size: clamp(16px, 3vw, 22px); text-align: right; }
.confident-panel { width: 91%; margin: 48px auto 0 0; }
.last-montage-line { margin-top: 22px; }

.final { padding-top: 20px; text-align: center; }
.final-panel { width: 100%; }
.bubble-copy {
  position: absolute;
  display: grid;
  place-items: center;
  width: 18%;
  height: 25%;
  color: #292127;
  font-size: clamp(13px, 2.4vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.bubble-left { top: 4%; left: 3%; font-size: calc(clamp(13px, 2.4vw, 22px) + 2pt); }
.bubble-left-reaction { top: 36%; left: 6%; width: 18%; height: 18%; color: var(--pink); font-size: clamp(19px, 4.2vw, 34px); font-weight: 950; text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff, 0 -1px 0 #fff; }
.bubble-right { top: 8%; right: 5.5%; width: 20%; height: 22%; font-size: calc(clamp(12px, 2.25vw, 21px) + 2pt); }
.final-line { margin: 45px 15px 24px; color: var(--pink); font-size: clamp(29px, 6vw, 54px); font-weight: 900; line-height: 1.35; }
.final-logo { display: block; width: min(92%, 720px); height: auto; margin: 0 auto; }
.tagline { margin: 34px 15px 0; color: #655a59; font-size: clamp(16px, 3vw, 22px); line-height: 1.7; }
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(78%, 360px);
  min-height: 58px;
  margin: 32px auto 0;
  border: 1.5px solid var(--pink);
  border-radius: 999px;
  background: white;
  color: #c33163;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.cta:hover { background: #fff0f5; transform: translateY(-2px); }
.cta span { font-size: 20px; }
.footer-space { height: 70px; }

.reveal { opacity: 0; clip-path: inset(0 0 8%); transform: translateY(15px); transition: opacity .65s ease, transform .65s ease, clip-path .65s ease; }
.reveal.is-visible { opacity: 1; clip-path: inset(0); transform: translateY(0); }
.dialogue-stack > .reveal:nth-child(2n) { transition-delay: .08s; }

@media (min-width: 760px) {
  body { padding: 30px 0; background: #f1eae3; }
  .webtoon { box-shadow: 0 16px 70px rgba(64, 47, 50, .13); }
  .chapter { padding-bottom: 94px; }
  .masthead { min-height: 190px; }
  .panel-wide { width: 100%; }
  .panel-medium { width: 82%; }
  .panel-small { width: 70%; }
  .panel-narrow { width: 64%; }
  .dialogue-stack { gap: 17px; padding-top: 40px; }
  .milk-pause { height: 130px; }
  .montage { padding-left: 4%; padding-right: 4%; }
  .final { padding-left: 0; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; clip-path: none; transform: none; }
}
