/* 가위바위보 밥약 — 박현우(보) vs 나(가위) */

:root {
  --ink: #1d1630;
  --navy: #221d52;
  --navy-2: #332c7a;
  --sun: #ffd23f;
  --sun-2: #ffc41f;
  --red: #ff4d5e;
  --blue: #3d6bff;
  --pink: #ff6fb5;
  --cream: #fff3d6;
  --lilac: #efeaff;
  --grey: #cfcadf;
  --round: 'Jua', var(--k-body);
  --fat: 'Bagel Fat One', 'Jua', var(--k-body);
  --reach: 128px; /* 화면 가운데에서 손목까지 */
  --ay: 112px; /* 팔 높이 (arena 안) */
}

html {
  background: var(--cream);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--round);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  word-break: keep-all;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
p,
h1,
h2,
figure {
  margin: 0;
}
button {
  font-family: inherit;
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 첫 화면 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  background: radial-gradient(130% 75% at 50% 36%, var(--navy-2), var(--navy) 72%);
  color: #fff;
}
/* 화면 흔들림은 .cam을 흔든다. 배경(.sky)은 흔들려도 가장자리가 안 보이게 넉넉히 깐다 */
.cam {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .cam {
  padding: max(18px, env(safe-area-inset-top)) 16px 26px;
}
.cam.is-quake {
  animation: quake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes quake {
  0%,
  100% {
    transform: none;
  }
  12% {
    transform: translate(calc(var(--q, 1) * -8px), calc(var(--q, 1) * 5px)) rotate(calc(var(--q, 1) * -0.6deg));
  }
  26% {
    transform: translate(calc(var(--q, 1) * 7px), calc(var(--q, 1) * -6px)) rotate(calc(var(--q, 1) * 0.5deg));
  }
  42% {
    transform: translate(calc(var(--q, 1) * -5px), calc(var(--q, 1) * 3px)) rotate(calc(var(--q, 1) * -0.3deg));
  }
  60% {
    transform: translate(calc(var(--q, 1) * 3px), calc(var(--q, 1) * -2px));
  }
  80% {
    transform: translate(calc(var(--q, 1) * -1px), calc(var(--q, 1) * 1px));
  }
}

/* 이긴 뒤 깔리는 햇살 배경 */
.sky {
  position: absolute;
  inset: -24px;
  z-index: -1;
  background: var(--sun);
  opacity: 0;
  transition: opacity 0.3s;
}
.sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 251, 230, 0.9), rgba(255, 251, 230, 0) 48%);
}
.burst {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 260vmax;
  height: 260vmax;
  margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(var(--sun) 0 9deg, var(--sun-2) 9deg 18deg);
}
.s-win .sky {
  opacity: 1;
}
.s-win .burst {
  animation: spin 50s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
.flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.s-win .flash {
  animation: flash 0.55s ease-out;
}
@keyframes flash {
  from {
    opacity: 0.85;
  }
}
.popper {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pill {
  font: 16px/1 var(--round);
  padding: 9px 15px 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.s-win .pill {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sun);
}
.replay {
  position: absolute;
  top: max(58px, calc(env(safe-area-inset-top) + 40px));
  right: 14px;
  z-index: 7;
  font: 14px/1 var(--round);
  padding: 7px 11px 8px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  animation: fade-in 0.4s both;
}

.stage {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 8px;
}

/* 손 무대 */
.arena {
  position: relative;
  height: 200px;
  width: 100%;
}
.arm {
  position: absolute;
  top: calc(var(--ay) - 85px);
  width: 1640px;
  height: 170px;
  pointer-events: none;
}
.arm-l {
  left: calc(50% - var(--reach) - 1500px);
}
.arm-r {
  left: calc(50% + var(--reach) - 140px);
  transform: scaleX(-1);
}
.arm svg {
  display: block;
  overflow: visible;
}
.slide {
  transform: translateX(calc(-50vw - 60px));
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.s-in .slide {
  transform: none;
}
.limb {
  transform-origin: 1310px 85px; /* 팔꿈치 */
}
.s-shake .limb {
  animation: pump 0.5s ease-in-out 3;
}
@keyframes pump {
  0% {
    transform: rotate(0);
  }
  42% {
    transform: rotate(-11deg);
  }
  76% {
    transform: rotate(2.5deg);
  }
  100% {
    transform: rotate(0);
  }
}
.s-win .arm-r .limb {
  animation: brag 1.6s ease-in-out 0.4s infinite;
}
@keyframes brag {
  0%,
  60%,
  100% {
    transform: rotate(0);
  }
  70% {
    transform: rotate(-6deg);
  }
  82% {
    transform: rotate(3deg);
  }
}

.shape {
  display: none;
}
.arm[data-shape='rock'] .shape-rock,
.arm[data-shape='paper'] .shape-paper,
.arm[data-shape='scissors'] .shape-scissors {
  display: inline;
}
.hand {
  transform-box: fill-box;
  transform-origin: 0% 50%;
}
.arm.is-pop .hand {
  animation: hand-pop 0.34s cubic-bezier(0.3, 1.7, 0.5, 1);
}
@keyframes hand-pop {
  from {
    transform: scale(0.55);
  }
}
.f-idx,
.f-mid {
  transform-box: fill-box;
  transform-origin: 0% 50%;
}
.s-snip .f-idx {
  animation: snip-idx 0.26s ease-in-out 2;
}
.s-snip .f-mid {
  animation: snip-mid 0.26s ease-in-out 2;
}
@keyframes snip-idx {
  50% {
    transform: rotate(14deg);
  }
}
@keyframes snip-mid {
  50% {
    transform: rotate(-11deg);
  }
}
.s-snip .arm-r .slide {
  animation: lunge 0.6s ease-out;
}
@keyframes lunge {
  30% {
    transform: translateX(18px);
  }
  65% {
    transform: translateX(8px);
  }
}
.s-snip .arm-l .slide {
  animation: flinch 0.5s ease-out 0.12s;
}
@keyframes flinch {
  25% {
    transform: translateX(-12px) rotate(-3deg);
  }
  55% {
    transform: translateX(-6px) rotate(2deg);
  }
}

.who {
  position: absolute;
  top: calc(var(--ay) + 50px);
  font: 17px/1 var(--round);
  padding: 6px 12px 7px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  color: #fff;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s 0.3s;
}
.who-l {
  left: calc(50% - var(--reach) + 40px);
  background: var(--blue);
}
.who-r {
  left: calc(50% + var(--reach) - 40px);
  background: var(--red);
}
.s-in .who {
  opacity: 1;
}

.verdict {
  position: absolute;
  top: 4px;
  font: 22px/1 var(--fat);
  padding: 7px 11px 8px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  opacity: 0;
  transform: rotate(var(--r)) scale(0.3);
}
.verdict-l {
  right: calc(50% + 30px);
  background: var(--grey);
  --r: -8deg;
}
.verdict-r {
  left: calc(50% + 30px);
  background: var(--sun);
  --r: 7deg;
}
.s-result .verdict {
  animation: tag-in 0.42s cubic-bezier(0.3, 1.7, 0.5, 1) forwards;
}
.s-result .verdict-r {
  animation-delay: 0.12s;
}
@keyframes tag-in {
  to {
    opacity: 1;
    transform: rotate(var(--r)) scale(1);
  }
}

.snip-fx {
  position: absolute;
  left: 50%;
  top: 14px;
  font: 26px/1 var(--fat);
  color: #fff;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  opacity: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}
.s-snip .snip-fx {
  animation: snip-fx 0.8s ease-out forwards;
}
@keyframes snip-fx {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.4) rotate(-10deg);
  }
  25% {
    opacity: 1;
    transform: translateX(-50%) scale(1.15) rotate(-6deg);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(-6deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(1) rotate(-6deg);
  }
}

/* 가위! 바위! 보! 그리고 제목 */
.headline {
  display: grid;
  place-items: center;
  min-height: 210px;
  text-align: center;
}
.headline > * {
  grid-area: 1 / 1;
}
.call {
  font: 76px/1 var(--fat);
  color: #fff;
  -webkit-text-stroke: 10px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 7px 0 var(--ink);
  transition: opacity 0.2s;
}
.call.is-beat {
  animation: beat 0.28s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes beat {
  from {
    transform: scale(1.6);
    opacity: 0;
  }
}
.s-reveal .call {
  color: var(--sun);
}
.s-win .call {
  opacity: 0;
}

.win {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  visibility: hidden;
}
.s-win .win {
  visibility: visible;
}
.ribbon-wrap {
  filter: drop-shadow(3px 4px 0 var(--ink));
  opacity: 0;
}
.s-win .ribbon-wrap {
  animation: drop-in 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 0.15s both;
}
@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.6);
  }
  to {
    opacity: 1;
  }
}
.ribbon {
  font: 25px/1 var(--round);
  color: #fff;
  background: var(--red);
  padding: 11px 30px 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
  transform: rotate(-3deg);
}
.title {
  display: grid;
  justify-items: center;
  font: 400 clamp(46px, 16vw, 104px) / 1.04 var(--fat);
  letter-spacing: -0.01em;
  color: #fff;
  -webkit-text-stroke: 10px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 7px 0 var(--ink);
}
.title span {
  display: block;
  opacity: 0;
}
.title span + span {
  color: var(--red);
}
.s-win .title span {
  animation: slam 0.5s cubic-bezier(0.25, 1.5, 0.5, 1) 0.4s both;
}
.s-win .title span + span {
  animation-delay: 0.62s;
}
@keyframes slam {
  from {
    opacity: 0;
    transform: scale(2.4) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 밑으로 내려보세요 */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font: 18px/1 var(--round);
  color: var(--ink);
  text-decoration: none;
  padding: 11px 20px 6px;
  border-radius: 22px;
  border: 2.5px solid var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.5s, transform 0.5s, visibility 0s 0.5s;
}
.s-done .scroll-hint {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s, transform 0.5s;
}
.scroll-hint span {
  font-size: 26px;
  line-height: 0.7;
  animation: bob 1.1s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(5px);
  }
}

/* 큰 화면에서는 손을 키운다 */
@media (min-width: 760px) and (min-height: 700px) {
  .arena {
    transform: scale(1.35);
    margin-block: 34px;
  }
  .headline {
    min-height: 260px;
  }
  .call {
    font-size: 96px;
  }
  .ribbon {
    font-size: 30px;
  }
}

/* ---------- 사진과 말풍선 ---------- */
.memory {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 58px 16px max(40px, env(safe-area-inset-bottom));
  background-color: var(--cream);
  background-image: radial-gradient(circle, rgba(29, 22, 48, 0.09) 0 1.5px, transparent 2px);
  background-size: 22px 22px;
  overflow-x: clip;
}
/* 첫 화면과 맞닿는 톱니 */
.memory::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -13px;
  height: 14px;
  background: linear-gradient(135deg, var(--cream) 50%, transparent 50%) 0 0 / 22px 14px repeat-x,
    linear-gradient(225deg, var(--cream) 50%, transparent 50%) 0 0 / 22px 14px repeat-x;
}
.kicker {
  font: 16px/1 var(--round);
  background: var(--ink);
  color: var(--sun);
  padding: 8px 14px 9px;
  border-radius: 999px;
  transform: rotate(-2deg);
}
.memory-title {
  font: 400 clamp(34px, 10vw, 54px) / 1.12 var(--fat);
  text-align: center;
  color: var(--ink);
}

.photo-wrap {
  position: relative;
  width: min(100%, 460px);
  margin: 30px 0 34px;
}
.photo {
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 8px 8px 0 var(--blue);
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
/* 사진이 아직 없을 때 */
.photo.is-empty {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(-45deg, #fff 0 14px, #f3ecdc 14px 28px);
}
.photo.is-empty img {
  display: none;
}
.photo.is-empty::after {
  content: '사진 들어갈 자리';
  font: 20px/1 var(--round);
  color: #9b8f78;
}

.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.b {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  font: 17px/1.15 var(--round);
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  padding: 8px 13px 9px;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  rotate: var(--r, 0deg);
  scale: 0;
  transform-origin: 20% 100%;
}
.b.at-r {
  left: auto;
  right: var(--x);
  transform-origin: 80% 100%;
}
.bubbles.is-on .b {
  animation:
    b-in 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--i) * 0.11s) both,
    b-float calc(2.6s + var(--i) * 0.13s) ease-in-out calc(var(--i) * 0.11s + 0.5s) infinite alternate;
}
.bubbles.is-on .b.is-tap {
  scale: 1; /* 말랑 효과가 끝나도 등장 전 크기(0)로 돌아가지 않게 */
  animation:
    b-jelly 0.55s ease-out,
    b-float calc(2.6s + var(--i) * 0.13s) ease-in-out 0.55s infinite alternate;
}
@keyframes b-jelly {
  0% {
    scale: 1;
  }
  20% {
    scale: 1.25 0.8;
  }
  40% {
    scale: 0.88 1.15;
  }
  60% {
    scale: 1.08 0.95;
  }
  80% {
    scale: 0.98 1.02;
  }
  100% {
    scale: 1;
  }
}
.tap-fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.photo {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.photo.is-snap {
  animation: photo-jiggle 0.4s ease-out;
}
.photo.is-snap img {
  animation: photo-flash 0.45s ease-out;
}
@keyframes photo-jiggle {
  25% {
    transform: rotate(-1.2deg) scale(0.985);
  }
  55% {
    transform: rotate(0.8deg);
  }
}
@keyframes photo-flash {
  from {
    filter: brightness(2.2) saturate(0.6);
  }
}
.tap-say {
  position: absolute;
  font: 18px/1 var(--round);
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 7px 12px 8px;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
  animation: say-rise 1.1s ease-out forwards;
}
@keyframes say-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(0.3);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -90%) rotate(var(--rot)) scale(1.12);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -150%) rotate(var(--rot)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -200%) rotate(var(--rot)) scale(0.95);
  }
}
.tap-fx > i {
  position: absolute;
  font-style: normal;
  line-height: 1;
  font-size: var(--s, 18px);
  animation: like-fly 0.7s ease-out forwards;
}
@keyframes b-in {
  from {
    scale: 0;
  }
  70% {
    scale: 1.12;
  }
  to {
    scale: 1;
  }
}
@keyframes b-float {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -6px;
  }
}
.memory-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font: 15px/1.3 var(--round);
  color: #6f6450;
}

/* ---------- 주접 ---------- */
.jujeop {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  background-color: #ffe3ef;
  background-image: radial-gradient(circle, rgba(255, 111, 181, 0.22) 0 2px, transparent 2.5px);
  background-size: 26px 26px;
  overflow-x: clip;
}
.jujeop::before,
.outro::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -13px;
  height: 14px;
  --edge: #ffe3ef;
  background: linear-gradient(135deg, var(--edge) 50%, transparent 50%) 0 0 / 22px 14px repeat-x,
    linear-gradient(225deg, var(--edge) 50%, transparent 50%) 0 0 / 22px 14px repeat-x;
}
.jujeop .cam {
  justify-content: center;
  gap: 16px;
  padding: 64px 16px 60px;
}
.toppings i {
  position: absolute;
  z-index: -1;
  font-style: normal;
  font-size: 30px;
  line-height: 1;
  animation: bob 2.6s ease-in-out var(--d) infinite;
}
.hot {
  font: 16px/1 var(--round);
  background: var(--ink);
  color: #ffb3d6;
  padding: 8px 14px 9px;
  border-radius: 999px;
  transform: rotate(-2deg);
}
.post {
  width: min(100%, 440px);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: 7px 7px 0 var(--pink);
  padding: 15px 18px 14px;
  font-family: var(--k-body);
  color: var(--ink);
}
.post-board {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8d849b;
}
.post-title {
  margin: 8px 0 8px;
  font: 800 22px/1.3 var(--k-body);
  letter-spacing: -0.02em;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed #e6dcea;
  font-size: 12.5px;
  color: #9a91a8;
}
.post-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd1e6, #c9b8ff);
}
.post-body {
  display: grid;
  gap: 8px;
  padding: 14px 0 10px;
  font-size: 16px;
  line-height: 1.5;
}
.post [data-line] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s, transform 0.35s;
}
.post [data-line].is-on {
  opacity: 1;
  transform: none;
}
/* 점점 커지는 비교 문장 */
.vs {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.vs-1 {
  --hl: #fff07a;
  font-size: 18px;
}
.vs-2 {
  --hl: #ffcdb0;
  font-size: 20px;
}
.vs-3 {
  --hl: #c9f3a3;
  font-size: 22px;
}
.vs mark {
  color: inherit;
  background: linear-gradient(transparent 55%, var(--hl) 55%) no-repeat 0 0 / 0% 100%;
  transition: background-size 0.5s ease-out 0.2s;
}
.vs.is-on mark {
  background-size: 100% 100%;
}
.top {
  display: inline-block;
  scale: 0;
  transition: scale 0.35s cubic-bezier(0.3, 1.7, 0.5, 1) 0.45s;
}
.vs.is-on .top {
  scale: 1;
}
.lovely {
  font: 26px/1.3 var(--round);
  color: var(--pink);
}
.punch {
  margin-top: 4px;
  text-align: center;
  font: 400 clamp(40px, 12.5vw, 60px) / 1.15 var(--fat);
  color: #fff;
  -webkit-text-stroke: 8px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
  white-space: nowrap;
}
.post .punch {
  transition: none;
}
.punch.is-on {
  animation: slam 0.5s cubic-bezier(0.25, 1.5, 0.5, 1) both;
}
.heart {
  display: inline-block;
  color: var(--pink);
  margin: 0 1px;
}
.punch.is-on .heart {
  animation: beat-heart 0.9s ease-in-out 0.5s infinite;
}
@keyframes beat-heart {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.3);
  }
  30% {
    transform: scale(0.95);
  }
  45% {
    transform: scale(1.15);
  }
}
.waste {
  display: flex;
  justify-content: center;
  padding: 6px 0 4px;
}
.post .waste {
  transition: none;
}
.waste span {
  font: 400 34px/1 var(--fat);
  color: var(--k-seal);
  border: 4px solid var(--k-seal);
  border-radius: 8px;
  padding: 9px 16px 8px;
  background: rgba(255, 255, 255, 0.7);
  transform: rotate(-8deg);
}
.waste.is-on span {
  animation: k-stamp 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}
/* 좋아요: 누를 때마다 숫자가 오르고 하트가 튄다 */
.post-foot {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 14px;
  border-top: 1.5px dashed #e6dcea;
}
.post-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  font: 700 16px/1 var(--k-body);
  padding: 10px 20px 11px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
/* 누르고 싶게: 뒤에서 분홍 빛이 숨 쉬듯 번지고, 고리가 퍼진다 (버튼 자체 애니메이션과 따로 돈다) */
.post-like {
  position: relative;
  isolation: isolate;
}
.post-like::before,
.post-like::after {
  content: '';
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}
.post-like::before {
  box-shadow: 0 0 16px 6px rgba(255, 45, 149, 0.85), 0 0 36px 12px rgba(255, 210, 63, 0.6);
  animation: like-glow 1.6s ease-in-out infinite;
}
.post-like::after {
  border: 3px solid var(--pink);
  animation: like-ring 1.6s ease-out infinite;
}
@keyframes like-glow {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
@keyframes like-ring {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.35, 1.7);
  }
}
.post-like:active {
  box-shadow: 1px 1px 0 var(--ink);
}
.post-like.is-liked {
  background: #ffe3ef;
}
.post-like.is-tap {
  animation: like-squish 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes like-squish {
  from {
    transform: scale(0.84);
  }
}
.like-icon {
  display: inline-block;
}
.post-like.is-tap .like-icon {
  animation: like-icon 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes like-icon {
  from {
    transform: rotate(-28deg) scale(1.5);
  }
}
.like-count {
  min-width: 1.4em;
  text-align: left;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
}
.post-like.is-tap .like-count {
  animation: count-pop 0.3s ease-out;
}
.like-count.is-live {
  display: inline-block;
  animation: count-live 0.6s ease-out;
}
@keyframes count-live {
  25% {
    transform: translateY(-5px) scale(1.5);
    color: var(--live, #1fb6ff);
  }
}
.like-fx b.is-other {
  color: #1fb6ff;
}
@keyframes count-pop {
  30% {
    transform: translateY(-4px) scale(1.35);
  }
}

/* 콤보: 화면 한가운데에 크게. --c(콤보 수)만큼 커진다 */
.like-combo {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 20;
  display: grid;
  justify-items: center;
  line-height: 0.9;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-6deg);
  --c: 3;
  --fill: var(--sun);
}
.like-combo b {
  /* 200콤보까지 커진다 (3자리여도 폰 폭 안에 들어오게) */
  font: 400 calc(64px + var(--c) * 0.26px) / 0.9 var(--fat);
  color: var(--fill);
  -webkit-text-stroke: 9px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink), 0 0 calc(20px + var(--c) * 0.15px) var(--glow);
}
.like-combo span {
  margin-top: 2px;
  font: 400 28px/1 var(--fat);
  letter-spacing: 0.04em;
  color: #fff;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
}
.like-combo.is-tap {
  animation: combo-pop 0.22s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.like-combo:not([data-tier='0']):not([data-tier='1']):not([data-tier='2']).is-tap {
  animation: combo-pop 0.22s cubic-bezier(0.3, 1.8, 0.5, 1), combo-jitter 0.22s linear;
}
/* 200콤보 이상: 무지개가 흐른다 */
.like-combo[data-tier='20'] b {
  background: linear-gradient(90deg, #ff4d5e, #ffa53f, #ffd23f, #52e33b, #1fb6ff, #8b5cf6, #ff4d5e) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 5px 0 var(--ink)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.9));
  animation: rainbow 0.8s linear infinite;
}
.like-combo[data-tier='20'] span {
  color: var(--sun);
}
@keyframes rainbow {
  to {
    background-position: -200% 0;
  }
}
@keyframes combo-pop {
  from {
    transform: translate(-50%, -50%) rotate(-12deg) scale(1.7);
  }
}
@keyframes combo-jitter {
  25% {
    translate: -4px 2px;
  }
  50% {
    translate: 4px -2px;
  }
  75% {
    translate: -2px -2px;
  }
}
/* 10콤보마다 퍼지는 고리 */
.like-combo::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 40%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  border: 5px solid var(--fill);
  opacity: 0;
}
.like-combo.is-boom::after {
  animation: combo-ring 0.6s ease-out;
}
@keyframes combo-ring {
  from {
    opacity: 1;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: scale(3.2);
  }
}

.like-fx {
  position: absolute;
  left: 50%;
  top: 18px;
  z-index: 4;
  pointer-events: none;
}
.like-fx > * {
  position: absolute;
  left: 0;
  top: 0;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
  animation: like-fly 0.95s ease-out forwards;
}
.like-fx i {
  font-size: var(--s, 22px);
}
.like-fx b {
  font: 400 20px/1 var(--fat);
  color: var(--pink);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
}
@keyframes like-fly {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.4);
  }
  18% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx) * 0.25), -22px) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), var(--dy)) rotate(var(--rot)) scale(0.85);
  }
}

/* ---------- 마무리 ---------- */
.outro {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 44px 16px max(44px, env(safe-area-inset-bottom));
  background: var(--cream);
  text-align: center;
}
.outro::before {
  --edge: var(--cream);
}
.outro-big {
  font: 400 clamp(36px, 11vw, 56px) / 1.1 var(--fat);
  color: var(--red);
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
}
.outro-small {
  font: 20px/1.3 var(--round);
}
.again {
  margin-top: 10px;
  font: 18px/1 var(--round);
  color: #fff;
  padding: 13px 22px 14px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}
.again:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* DM ㄱㄱ: 콤보처럼 화면 가운데에 크게 */
.dm-pop {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 20;
  margin: 0;
  font: 400 clamp(120px, 38vw, 230px) / 0.95 var(--fat);
  text-align: center;
  color: var(--pink);
  -webkit-text-stroke: 12px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 7px 0 var(--ink), 0 0 34px rgba(255, 111, 181, 1), 0 0 80px rgba(255, 210, 63, 0.8);
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-7deg);
}
/* 멈추는 구간 없이: 쾅 찍힌 뒤 계속 커지고 돌면서 사라진다 */
.dm-pop.is-on {
  animation: dm-pop 1.4s linear forwards;
}
@keyframes dm-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-18deg) scale(2.4);
    animation-timing-function: cubic-bezier(0.3, 1.6, 0.5, 1);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.95);
    animation-timing-function: linear;
  }
  18% {
    transform: translate(calc(-50% - 7px), calc(-50% + 4px)) rotate(-7deg) scale(1);
  }
  24% {
    transform: translate(calc(-50% + 7px), calc(-50% - 4px)) rotate(-6deg) scale(1.03);
  }
  30% {
    transform: translate(calc(-50% - 4px), calc(-50% + 2px)) rotate(-5deg) scale(1.06);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-1deg) scale(1.16);
    animation-timing-function: ease-in;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(3deg) scale(1.35);
  }
}

/* 가위바위보 하는 손 뒤에 뜨는 텐동 사진 */
.snap {
  position: absolute;
  left: 50%;
  top: var(--ay);
  width: 118px;
  margin: 0;
  padding: 6px 6px 18px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 5px 0 var(--ink);
  transform: translate(-50%, -50%) rotate(-5deg);
  opacity: 0;
}
.snap img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}
.arm,
.who,
.verdict,
.snip-fx {
  z-index: 1;
}
.s-win .snap {
  animation: snap-in 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.9s both;
}
@keyframes snap-in {
  from {
    opacity: 0;
    transform: translate(-50%, -30%) rotate(12deg) scale(0.3);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-5deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero *,
  .jujeop *,
  .bubbles .b {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition: none !important;
  }
}
