:root {
  color-scheme: dark;
  --bg: #f5efe5;
  --panel: #fff9f0;
  --panel-strong: #ffffff;
  --text: #2b2520;
  --muted: #786c60;
  --line: #e2d4c4;
  --accent: #ff4d5e;
  --accent-2: #42d4b8;
  --warning: #ffb84d;
  --shadow: 0 24px 80px rgba(96, 64, 36, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.85), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(255, 211, 162, 0.42), transparent 28%),
    linear-gradient(145deg, #fffaf1 0%, #f3eadc 48%, #eadbc9 100%);
  color: var(--text);
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.newsletter-signup {
  position: fixed;
  right: 150px;
  top: 22px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(150px, 190px) 58px;
  gap: 6px;
  align-items: center;
  padding: 5px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  background: rgba(255, 250, 241, 0.92);
  box-shadow: 0 12px 32px rgba(116, 76, 39, 0.16);
  backdrop-filter: blur(10px);
}

.newsletter-signup input {
  min-width: 0;
  height: 28px;
  border: 1px solid rgba(128, 89, 47, 0.28);
  border-radius: 8px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.88);
  color: #2b2520;
  font-size: 0.78rem;
  font-weight: 800;
  outline: none;
}

.newsletter-signup input:focus {
  border-color: rgba(161, 105, 26, 0.75);
  box-shadow: 0 0 0 3px rgba(218, 168, 72, 0.18);
}

.newsletter-signup button {
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #7d2a17, #3b0707);
  color: #fff8e8;
  font-size: 0.75rem;
  font-weight: 950;
  cursor: pointer;
  transition:
    transform 150ms ease,
    filter 150ms ease;
}

.newsletter-signup button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.newsletter-signup button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.newsletter-signup p {
  grid-column: 1 / -1;
  min-height: 12px;
  margin: -1px 3px 0;
  color: #4f2b12;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.15;
}

.newsletter-signup.is-error p {
  color: #9d1724;
}

.newsletter-signup.is-success p {
  color: #1f6a45;
}

.language-toggle {
  position: fixed;
  right: 68px;
  top: 24px;
  z-index: 5;
  min-width: 72px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 9px;
  background: rgba(255, 250, 241, 0.92);
  color: #3b0707;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(116, 76, 39, 0.16);
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.language-toggle:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.instagram-link {
  position: fixed;
  right: 22px;
  top: 22px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 11px;
  background:
    radial-gradient(circle at 30% 105%, #feda75 0 22%, transparent 23%),
    radial-gradient(circle at 15% 85%, #fa7e1e 0 22%, transparent 23%),
    radial-gradient(circle at 85% 15%, #515bd4 0 26%, transparent 27%),
    linear-gradient(135deg, #d62976, #962fbf 52%, #4f5bd5);
  box-shadow:
    0 10px 24px rgba(116, 76, 39, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.instagram-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(116, 76, 39, 0.26);
}

.instagram-link span {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 6px;
}

.instagram-link span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.instagram-link span::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
}

.hospital-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(159, 126, 91, 0.08) 1px, transparent 1px) 0 0 / 86px 100%,
    linear-gradient(180deg, transparent 0 58%, rgba(159, 126, 91, 0.16) 58% 59%, transparent 59%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.82), rgba(238, 222, 202, 0.9));
}

.hospital-backdrop::before {
  content: "";
  position: absolute;
  left: 8vw;
  right: 8vw;
  bottom: 0;
  height: 37vh;
  background:
    repeating-linear-gradient(90deg, rgba(142, 100, 63, 0.08) 0 2px, transparent 2px 64px),
    linear-gradient(180deg, #e8d6bd, #d7bea0);
  transform: perspective(520px) rotateX(62deg);
  transform-origin: bottom center;
}

.hospital-backdrop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 46vh;
  height: 34px;
  background:
    repeating-linear-gradient(
      90deg,
      #b97c4d 0 10px,
      transparent 10px 28px
    ),
    linear-gradient(180deg, #d6a06c, #9b633f);
  box-shadow:
    0 -5px 0 rgba(118, 76, 45, 0.18),
    0 10px 22px rgba(102, 64, 35, 0.16);
}

.pasture-scene {
  position: absolute;
  left: 0;
  right: 0;
  top: 82px;
  height: calc(46vh - 82px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.9) 0 5%, transparent 6%),
    radial-gradient(circle at 62% 18%, rgba(255, 255, 255, 0.72) 0 7%, transparent 8%),
    linear-gradient(180deg, #bfe8ff 0%, #dff6ff 42%, #b9df8a 43%, #85bd59 100%);
}

.pasture-scene::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -18px;
  height: 54%;
  background:
    radial-gradient(ellipse at 20% 70%, rgba(255, 255, 255, 0.16), transparent 30%),
    repeating-linear-gradient(
      -8deg,
      rgba(255, 255, 255, 0.12) 0 2px,
      transparent 2px 18px
    );
  opacity: 0.75;
}

.pasture-pig {
  position: absolute;
  width: 70px;
  height: 42px;
  border-radius: 46% 48% 42% 44%;
  background: #ff9db2;
  box-shadow:
    inset 0 -8px 0 rgba(142, 64, 85, 0.12),
    0 8px 16px rgba(73, 82, 45, 0.12);
  animation: pastureWaddle 7s ease-in-out infinite;
}

.pasture-pig::before {
  content: "";
  position: absolute;
  left: 47px;
  top: -9px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #ff9db2;
  box-shadow:
    inset 0 -5px 0 rgba(142, 64, 85, 0.12),
    -7px -8px 0 -3px #ffb6c6,
    7px -8px 0 -3px #ffb6c6;
}

.pasture-pig::after {
  content: "";
  position: absolute;
  left: 56px;
  top: 3px;
  width: 14px;
  height: 10px;
  border-radius: 50%;
  background: #ff7f9a;
  box-shadow:
    -29px 29px 0 -5px #7a3144,
    -8px 29px 0 -5px #7a3144,
    -42px 29px 0 -5px #7a3144,
    -22px 29px 0 -5px #7a3144,
    -4px 3px 0 -4px #7a3144,
    4px 3px 0 -4px #7a3144;
}

.pasture-pig i {
  position: absolute;
  left: 56px;
  top: 0;
  z-index: 1;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3b1f29;
  box-shadow: 11px 0 0 #3b1f29;
}

.pasture-pig i::before {
  content: "";
  position: absolute;
  left: -62px;
  top: 18px;
  width: 12px;
  height: 12px;
  border: 3px solid #ff7f9a;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(20deg);
}

.pasture-pig.grumpy i {
  width: 11px;
  height: 4px;
  border-radius: 999px;
  transform: rotate(18deg);
  box-shadow: 9px 3px 0 #3b1f29;
}

.pasture-pig.eating {
  animation-name: pastureNibble;
}

.pasture-pig.eating b {
  position: absolute;
  left: 82px;
  top: 22px;
  width: 28px;
  height: 15px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 58% 40%, #fff 0 2px, transparent 3px),
    #74a943;
  transform: rotate(-8deg);
}

.pasture-pig.eating b::before,
.pasture-pig.eating b::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: #5d8837;
}

.pasture-pig.eating b::before {
  left: 8px;
  transform: rotate(18deg);
}

.pasture-pig.eating b::after {
  right: 7px;
  transform: rotate(-15deg);
}

.pasture-pig.pig-a {
  left: 9%;
  bottom: 22%;
}

.pasture-pig.pig-b {
  left: 27%;
  bottom: 38%;
  transform: scale(0.72);
  animation-delay: -1.4s;
}

.pasture-pig.pig-c {
  left: 48%;
  bottom: 20%;
  transform: scale(0.9);
  animation-delay: -2.2s;
}

.pasture-pig.pig-d {
  left: 69%;
  bottom: 34%;
  transform: scale(0.66);
  animation-delay: -3.8s;
}

.pasture-pig.pig-e {
  left: 84%;
  bottom: 17%;
  transform: scale(0.82);
  animation-delay: -5.1s;
}

.pasture-pig.pig-f {
  left: 16%;
  bottom: 52%;
  transform: scale(0.62);
  animation-delay: -4.4s;
}

.pasture-pig.pig-g {
  left: 58%;
  bottom: 48%;
  transform: scale(0.58);
  animation-delay: -6.1s;
}

.pasture-pig.pig-h {
  left: 76%;
  bottom: 55%;
  transform: scale(0.52);
  animation-delay: -2.8s;
}

.campfire {
  position: absolute;
  width: 48px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 132, 36, 0.26), transparent 68%);
}

.campfire::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 3px;
  width: 15px;
  height: 26px;
  border-radius: 60% 60% 52% 52%;
  background:
    radial-gradient(circle at 55% 68%, #fff2a5 0 22%, transparent 23%),
    linear-gradient(180deg, #ffef6e 0%, #ff8a1f 54%, #e64117 100%);
  transform-origin: bottom center;
  animation: fireFlicker 720ms ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px rgba(255, 120, 20, 0.6));
}

.campfire::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 7px;
  width: 30px;
  height: 7px;
  border-radius: 999px;
  background: #7a4a24;
  box-shadow:
    0 0 0 2px rgba(85, 48, 22, 0.12),
    0 7px 0 -1px #5d3518;
  transform: rotate(16deg);
}

.campfire.fire-a {
  left: 37%;
  bottom: 31%;
  transform: scale(0.78);
}

.campfire.fire-b {
  left: 88%;
  bottom: 43%;
  transform: scale(0.62);
}

.hospital-sign {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  min-width: min(420px, 72vw);
  padding: 14px 24px;
  border: 3px solid #fff3bd;
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.34) 0 14%, transparent 15% 44%, rgba(255, 255, 255, 0.18) 45% 54%, transparent 55%),
    linear-gradient(135deg, #8b5a12 0%, #d6a940 28%, #fff1a8 48%, #b98522 70%, #6f420a 100%);
  color: #3b0707;
  -webkit-text-stroke: 0;
  font-weight: 900;
  text-align: center;
  box-shadow:
    0 20px 50px rgba(117, 78, 16, 0.34),
    inset 0 0 0 2px rgba(89, 48, 0, 0.24),
    inset 0 10px 18px rgba(255, 255, 255, 0.18),
    0 0 0 6px rgba(255, 244, 200, 0.48);
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 248, 214, 0.95),
    0 2px 0 rgba(125, 72, 9, 0.3),
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 22px rgba(255, 233, 149, 0.52);
}

.reception-desk {
  position: absolute;
  right: 8vw;
  bottom: 24vh;
  width: 210px;
  height: 86px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #fff8ed, #d8b995);
  box-shadow: 0 22px 42px rgba(104, 66, 32, 0.2);
}

.reception-desk::before {
  content: "RECEPTION";
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  color: #8a5b35;
  font-size: 0.78rem;
  font-weight: 900;
}

.desk-nurse {
  position: absolute;
  left: 76px;
  top: -56px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ff9db2;
  box-shadow: inset 0 -10px 0 rgba(143, 64, 85, 0.14);
}

.desk-nurse::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -15px;
  width: 30px;
  height: 18px;
  border-radius: 7px 7px 2px 2px;
  background: #f8fbff;
}

.drill-pig {
  position: absolute;
  z-index: 1;
  bottom: 18vh;
  width: 88px;
  height: 132px;
  filter: drop-shadow(0 16px 18px rgba(86, 55, 28, 0.18));
}

.devil-coach {
  right: calc(8vw + 215px);
}

.nurse-coach {
  right: calc(8vw + 112px);
}

.coach-face {
  position: absolute;
  left: 18px;
  top: 0;
  width: 58px;
  height: 56px;
  border-radius: 50%;
  background: #ff9db2;
  box-shadow: inset 0 -7px 0 rgba(142, 64, 85, 0.12);
}

.coach-face::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 24px;
  width: 7px;
  height: 4px;
  border-radius: 999px;
  background: #341721;
  box-shadow: 21px 0 0 #341721;
}

.coach-face::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 20px;
  height: 13px;
  border-radius: 50%;
  background: #ff7f9a;
  transform: translateX(-50%);
  box-shadow:
    -4px 4px 0 -2px #8f4055,
    4px 4px 0 -2px #8f4055;
}

.coach-ear {
  position: absolute;
  z-index: 1;
  top: -6px;
  width: 18px;
  height: 18px;
  border-radius: 60% 60% 20% 20%;
  background: #ffb6c6;
}

.coach-ear.left {
  left: 23px;
  transform: rotate(-34deg);
}

.coach-ear.right {
  right: 17px;
  transform: rotate(34deg);
}

.coach-body {
  position: absolute;
  left: 13px;
  bottom: 0;
  width: 66px;
  height: 78px;
  border-radius: 20px 20px 24px 24px;
}

.devil-coach .coach-body {
  background: linear-gradient(180deg, #6e1619, #2e0b0d);
}

.devil-coach .coach-face::before {
  width: 14px;
  transform: rotate(20deg);
  box-shadow: 17px 6px 0 #341721;
}

.devil-coach .coach-ear::before {
  content: "";
  position: absolute;
  top: -15px;
  width: 11px;
  height: 18px;
  border-radius: 60% 60% 20% 20%;
  background: #7a1016;
}

.devil-coach .coach-ear.left::before {
  left: -1px;
  transform: rotate(-12deg);
}

.devil-coach .coach-ear.right::before {
  right: -1px;
  transform: rotate(12deg);
}

.coach-baton {
  position: absolute;
  right: -18px;
  top: 46px;
  width: 12px;
  height: 90px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4b2b16, #9a6835, #3a1f10);
  transform: rotate(-32deg);
  transform-origin: top center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

.nurse-coach .coach-body {
  background: linear-gradient(180deg, #f8fbff, #dfe9f2);
  box-shadow: inset 0 0 0 3px rgba(255, 77, 94, 0.12);
}

.coach-hat {
  position: absolute;
  left: 30px;
  top: -14px;
  z-index: 2;
  width: 34px;
  height: 20px;
  border-radius: 8px 8px 3px 3px;
  background: #ffffff;
}

.coach-hat::before,
.coach-hat::after {
  content: "";
  position: absolute;
  background: #ff4d5e;
  border-radius: 999px;
}

.coach-hat::before {
  left: 15px;
  top: 4px;
  width: 5px;
  height: 12px;
}

.coach-hat::after {
  left: 11px;
  top: 8px;
  width: 13px;
  height: 5px;
}

.coach-syringe {
  position: absolute;
  left: -42px;
  top: 52px;
  width: 130px;
  height: 24px;
  transform: rotate(-16deg);
}

.coach-syringe::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 2px;
  width: 72px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 9px;
  background: linear-gradient(90deg, #42d4b8 58%, rgba(255, 255, 255, 0.22) 58%);
}

.coach-syringe::after {
  content: "";
  position: absolute;
  left: 91px;
  top: 11px;
  width: 42px;
  height: 4px;
  background: #dce3ed;
  box-shadow: -84px 0 0 #eef3f8;
}

.waiting-row {
  position: absolute;
  left: 8vw;
  bottom: 22vh;
  display: flex;
  gap: 18px;
}

.waiting-chair {
  position: relative;
  width: 78px;
  height: 72px;
  border-radius: 10px 10px 4px 4px;
  background: #c99378;
  box-shadow: inset 0 16px 0 rgba(255, 255, 255, 0.14);
}

.waiting-chair::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -16px;
  height: 18px;
  border-radius: 0 0 10px 10px;
  background: #9b6a54;
}

.waiting-chair i {
  position: absolute;
  left: 22px;
  top: -24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ff9db2;
}

.waiting-chair i::before,
.waiting-chair i::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 12px;
  height: 12px;
  border-radius: 60% 60% 20% 20%;
  background: #ffb6c6;
}

.waiting-chair i::before {
  left: 4px;
  transform: rotate(-30deg);
}

.waiting-chair i::after {
  right: 4px;
  transform: rotate(30deg);
}

.walk-in-pig {
  position: absolute;
  left: 8vw;
  bottom: 15vh;
  width: 92px;
  height: 132px;
  transform-origin: bottom center;
  animation: walkToNurse 5.4s cubic-bezier(0.2, 0.8, 0.18, 1) 320ms both;
}

.walk-face {
  position: absolute;
  left: 18px;
  top: 0;
  width: 56px;
  height: 54px;
  border-radius: 50%;
  background: #ff9db2;
}

.walk-ear {
  position: absolute;
  top: -7px;
  width: 17px;
  height: 17px;
  border-radius: 60% 60% 20% 20%;
  background: #ffb6c6;
}

.walk-ear.left {
  left: 22px;
  transform: rotate(-34deg);
}

.walk-ear.right {
  right: 22px;
  transform: rotate(34deg);
}

.walk-body {
  position: absolute;
  left: 14px;
  bottom: 0;
  width: 64px;
  height: 76px;
  border-radius: 22px 22px 24px 24px;
  background: #f3f7fb;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 118px 18px 32px;
  position: relative;
  z-index: 1;
}

.hero {
  width: min(760px, 100%);
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.brand-row {
  position: fixed;
  left: 22px;
  top: 22px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(120, 88, 62, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 0.86rem;
  box-shadow: 0 10px 30px rgba(116, 76, 39, 0.12);
}

.dose-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 18px var(--accent-2);
}

.update-button {
  height: 24px;
  border: 1px solid rgba(139, 91, 35, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  background: linear-gradient(135deg, #fff8e8, #edcf86);
  color: #4a2108;
  font-size: 0.72rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 150ms ease,
    filter 150ms ease;
}

.update-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 12vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.subtitle {
  margin: -8px 0 4px;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.injector-wrap {
  width: min(520px, 92vw);
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
}

.injector {
  width: min(440px, 86vw);
  height: 82px;
  position: relative;
  transform: rotate(-10deg);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.3));
}

.plunger {
  position: absolute;
  left: 0;
  top: 29px;
  width: 92px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(90deg, #d8dee8, #ffffff);
}

.plunger::before {
  content: "";
  position: absolute;
  left: -18px;
  top: -14px;
  width: 18px;
  height: 52px;
  border-radius: 5px;
  background: #f4f7fb;
}

.barrel {
  position: absolute;
  left: 84px;
  top: 12px;
  width: 260px;
  height: 58px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.13);
}

.barrel::after {
  content: "";
  position: absolute;
  inset: 8px 14px;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.32), transparent 55%);
}

.liquid {
  position: absolute;
  inset: 0 auto 0 0;
  width: 58%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.ticks {
  position: absolute;
  inset: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticks span {
  width: 3px;
  height: 28px;
  border-radius: 999px;
  background: rgba(16, 17, 20, 0.42);
}

.needle {
  position: absolute;
  right: 34px;
  top: 38px;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f8fafc, #9aa3af);
}

.needle::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -4px;
  border-left: 32px solid #9aa3af;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.pig-charm {
  position: absolute;
  right: -3px;
  top: 13px;
  width: 54px;
  height: 54px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #ff9db2;
  transform: rotate(10deg);
}

.pig-ear,
.doctor-ear {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 60% 60% 20% 20%;
  background: #ffb6c6;
}

.pig-ear.left {
  left: 5px;
  top: -9px;
  transform: rotate(-30deg);
}

.pig-ear.right {
  right: 5px;
  top: -9px;
  transform: rotate(30deg);
}

.pig-eye,
.doctor-eye {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #39212a;
}

.pig-eye.left {
  left: 14px;
  top: 19px;
}

.pig-eye.right {
  right: 14px;
  top: 19px;
}

.pig-nose,
.doctor-nose {
  position: absolute;
  left: 50%;
  bottom: 11px;
  width: 20px;
  height: 13px;
  border-radius: 50%;
  background: #ff7f9a;
  transform: translateX(-50%);
}

.pig-nose::before,
.pig-nose::after,
.doctor-nose::before,
.doctor-nose::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8f4055;
}

.pig-nose::before,
.doctor-nose::before {
  left: 5px;
}

.pig-nose::after,
.doctor-nose::after {
  right: 5px;
}

.dosage-panel {
  width: min(640px, 100%);
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(130, 88, 52, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.panel-top strong {
  color: var(--text);
  font-size: 1.18rem;
}

.dose-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.dose-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.dose-button[data-dose="13"],
.dose-button[data-dose="15"],
.dose-button[data-dose="17"],
.dose-button[data-dose="19"],
.dose-button[data-dose="20"] {
  border-color: rgba(184, 36, 49, 0.28);
  background: #b82431;
  color: #fff7f2;
  box-shadow: inset 0 -10px 18px rgba(85, 12, 20, 0.16);
}

.dose-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
}

.dose-button.active {
  border-color: var(--accent);
  background: rgba(255, 77, 94, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 94, 0.18);
}

.dose-button[data-dose="13"].active,
.dose-button[data-dose="15"].active,
.dose-button[data-dose="17"].active,
.dose-button[data-dose="19"].active,
.dose-button[data-dose="20"].active {
  border-color: #6d0711;
  background: linear-gradient(135deg, #d21f35, #7c101d);
  box-shadow: 0 12px 28px rgba(184, 36, 49, 0.28);
}

.inject-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #ff7a4d);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(255, 77, 94, 0.22);
  transition:
    transform 150ms ease,
    filter 150ms ease;
}

.inject-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.button-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  line-height: 1;
}

.message-box {
  width: min(640px, 100%);
  min-height: 108px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid rgba(130, 88, 52, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  font-size: clamp(1.08rem, 4vw, 1.55rem);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.message-box.flash {
  animation: pulse 520ms ease;
}

.result-modal[hidden] {
  display: none;
}

.update-modal[hidden] {
  display: none;
}

.update-modal {
  position: fixed;
  inset: 0;
  z-index: 21;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(45, 31, 17, 0.46);
  backdrop-filter: blur(8px);
}

.update-card {
  position: relative;
  width: min(470px, 94vw);
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 231, 0.94)),
    radial-gradient(circle at 20% 0%, rgba(237, 207, 134, 0.38), transparent 42%);
  color: #2b2520;
  box-shadow: 0 28px 80px rgba(55, 35, 17, 0.32);
}

.update-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #4a2108;
  color: #fff8e8;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.update-card h2 {
  margin: 14px 0 18px;
  color: #321506;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(237, 207, 134, 0.58);
}

.update-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-list li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px;
  border: 1px solid rgba(120, 88, 62, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.update-list time {
  color: #7d2a17;
  font-size: 0.82rem;
  font-weight: 950;
}

.update-list span {
  color: #34271e;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.35;
}

.result-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 6, 8, 0.74);
  backdrop-filter: blur(16px);
}

.result-modal[data-mood="hard"],
.result-modal[data-mood="severe"],
.result-modal[data-mood="max"] {
  background: rgba(20, 5, 8, 0.78);
}

.result-card {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(160deg, #201a18, #120f0e);
  box-shadow: var(--shadow);
}

.close-button {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
}

.result-scene {
  position: relative;
  height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(66, 212, 184, 0.16), transparent 48%),
    linear-gradient(145deg, #2a2d36, #171a20);
}

.result-scene::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 64%, rgba(255, 255, 255, 0.08) 64% 65%, transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 48%);
}

.result-scene[data-mood="hard"] {
  background:
    linear-gradient(180deg, rgba(255, 184, 77, 0.16), transparent 48%),
    linear-gradient(145deg, #322d29, #171a20);
}

.result-scene[data-mood="severe"],
.result-scene[data-mood="max"] {
  background:
    linear-gradient(180deg, rgba(255, 77, 94, 0.18), transparent 48%),
    linear-gradient(145deg, #38262c, #171216);
}

.person {
  position: absolute;
  left: 52%;
  bottom: 24px;
  width: 176px;
  height: 184px;
  transform: translateX(-50%);
}

.head {
  position: absolute;
  left: 60px;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0c09a;
}

.body {
  position: absolute;
  left: 24px;
  top: 54px;
  width: 130px;
  height: 94px;
  border-radius: 44px 44px 52px 52px;
  background: #fff0dc;
}

.belly {
  position: absolute;
  left: 61px;
  top: 38px;
  width: 58px;
  height: 42px;
  border-radius: 50%;
  background: #ffd1b4;
  box-shadow: inset 0 0 0 4px rgba(255, 157, 178, 0.32);
}

.legs {
  position: absolute;
  left: 42px;
  bottom: 0;
  width: 94px;
  height: 48px;
  border-radius: 0 0 24px 24px;
  background: #596175;
}

.doctor-pig {
  position: absolute;
  left: 76px;
  bottom: 30px;
  width: 126px;
  height: 150px;
  animation: pigStep 1.35s ease-in-out both;
}

.doctor-face {
  position: absolute;
  left: 28px;
  top: 6px;
  width: 70px;
  height: 68px;
  border: 4px solid #ffe1ea;
  border-radius: 50%;
  background: #ff9db2;
}

.nurse-hat {
  position: absolute;
  left: 47px;
  top: -4px;
  z-index: 2;
  width: 34px;
  height: 20px;
  border-radius: 8px 8px 3px 3px;
  background: #f8fbff;
  box-shadow: inset 0 -3px 0 rgba(255, 77, 94, 0.18);
}

.nurse-hat::before,
.nurse-hat::after {
  content: "";
  position: absolute;
  background: #ff4d5e;
  border-radius: 999px;
}

.nurse-hat::before {
  left: 15px;
  top: 4px;
  width: 5px;
  height: 12px;
}

.nurse-hat::after {
  left: 11px;
  top: 8px;
  width: 13px;
  height: 5px;
}

.doctor-ear.left {
  left: 28px;
  top: 0;
  transform: rotate(-32deg);
}

.doctor-ear.right {
  left: 78px;
  top: 0;
  transform: rotate(32deg);
}

.doctor-eye.left {
  left: 18px;
  top: 24px;
}

.doctor-eye.right {
  right: 18px;
  top: 24px;
}

.doctor-nose {
  bottom: 14px;
}

.doctor-body {
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 78px;
  height: 76px;
  border-radius: 20px 20px 28px 28px;
  background: #f7fbff;
}

.doctor-arm {
  position: absolute;
  right: 6px;
  top: 86px;
  width: 58px;
  height: 15px;
  border-radius: 999px;
  background: #ffb6c6;
  transform: rotate(-10deg);
}

.result-modal[data-mood="firm"] .doctor-arm {
  transform: rotate(-16deg);
}

.result-modal[data-mood="hard"] .doctor-arm,
.result-modal[data-mood="severe"] .doctor-arm,
.result-modal[data-mood="max"] .doctor-arm {
  transform: rotate(-24deg);
}

.result-modal[data-mood="hard"] .doctor-eye,
.result-modal[data-mood="severe"] .doctor-eye,
.result-modal[data-mood="max"] .doctor-eye {
  width: 12px;
  height: 4px;
  border-radius: 999px;
}

.result-modal[data-mood="hard"] .doctor-eye.left,
.result-modal[data-mood="severe"] .doctor-eye.left,
.result-modal[data-mood="max"] .doctor-eye.left {
  transform: rotate(24deg);
}

.result-modal[data-mood="hard"] .doctor-eye.right,
.result-modal[data-mood="severe"] .doctor-eye.right,
.result-modal[data-mood="max"] .doctor-eye.right {
  transform: rotate(-24deg);
}

.result-modal[data-mood="max"] .doctor-face {
  box-shadow: 0 0 28px rgba(255, 77, 94, 0.42);
}

.motion-syringe {
  position: absolute;
  left: 150px;
  top: 138px;
  width: 178px;
  height: 28px;
  transform: rotate(-6deg);
  animation: injectMove 1.35s ease-in-out both;
}

.result-scene[data-mood="firm"] .motion-syringe {
  animation-name: bigInjectMoveFirm;
}

.result-scene[data-mood="hard"] .motion-syringe {
  animation-name: bigInjectMoveHard;
}

.result-scene[data-mood="severe"] .motion-syringe,
.result-scene[data-mood="max"] .motion-syringe {
  animation-name: bigInjectMoveSevere;
}

.result-scene[data-mood="max"] .person {
  animation: patientJolt 1.35s ease-in-out both;
}

.motion-plunger {
  position: absolute;
  left: 0;
  top: 8px;
  width: 38px;
  height: 10px;
  border-radius: 4px;
  background: #e7edf4;
}

.motion-barrel {
  position: absolute;
  left: 34px;
  top: 4px;
  width: 86px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent-2) 52%, rgba(255, 255, 255, 0.18) 52%);
}

.motion-needle {
  position: absolute;
  left: 118px;
  top: 12px;
  width: 58px;
  height: 3px;
  background: #dce3ed;
}

.motion-needle::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -3px;
  border-left: 10px solid #dce3ed;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.person,
.head,
.body,
.belly,
.legs {
  display: none;
}

.clinic-bed {
  position: absolute;
  right: 38px;
  bottom: 30px;
  width: 365px;
  height: 118px;
  border-radius: 18px 18px 26px 26px;
  background: linear-gradient(180deg, #fff8ea, #d9b98d);
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.36),
    0 20px 34px rgba(0, 0, 0, 0.28);
}

.clinic-bed::before,
.clinic-bed::after {
  content: "";
  position: absolute;
  bottom: -28px;
  width: 15px;
  height: 36px;
  border-radius: 999px;
  background: #8b6c50;
}

.clinic-bed::before {
  left: 42px;
}

.clinic-bed::after {
  right: 42px;
}

.bed-rail {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 14px;
  height: 12px;
  border-radius: 999px;
  background: #f3efe8;
  box-shadow:
    0 30px 0 #f3efe8,
    0 60px 0 rgba(243, 239, 232, 0.72);
}

.bed-pillow {
  position: absolute;
  right: 28px;
  top: -20px;
  width: 86px;
  height: 52px;
  border-radius: 24px;
  background: #ffffff;
  transform: rotate(-7deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.patient-pig {
  position: absolute;
  right: 108px;
  bottom: 88px;
  width: 216px;
  height: 104px;
  transform: rotate(-5deg);
  transform-origin: center bottom;
}

.patient-body {
  position: absolute;
  left: 10px;
  bottom: 0;
  width: 164px;
  height: 78px;
  border-radius: 55% 46% 45% 54%;
  background: #ff9db2;
  box-shadow: inset 0 -12px 0 rgba(142, 64, 85, 0.13);
}

.patient-face {
  position: absolute;
  right: 0;
  top: 3px;
  width: 74px;
  height: 70px;
  border: 4px solid #ffd5df;
  border-radius: 50%;
  background: #ff9db2;
  box-shadow: inset 0 -8px 0 rgba(142, 64, 85, 0.1);
}

.patient-ear {
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 60% 60% 18% 18%;
  background: #ffb6c6;
}

.patient-ear.left {
  right: 46px;
  top: -3px;
  transform: rotate(-34deg);
}

.patient-ear.right {
  right: 9px;
  top: -4px;
  transform: rotate(34deg);
}

.patient-eye {
  position: absolute;
  top: 25px;
  width: 11px;
  height: 4px;
  border-radius: 999px;
  background: #3b1f29;
}

.patient-eye.left {
  left: 20px;
  transform: rotate(18deg);
}

.patient-eye.right {
  right: 20px;
  transform: rotate(-18deg);
}

.patient-nose {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 28px;
  height: 18px;
  border-radius: 50%;
  background: #ff7f9a;
  transform: translateX(-50%);
}

.patient-nose::before,
.patient-nose::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8f4055;
}

.patient-nose::before {
  left: 7px;
}

.patient-nose::after {
  right: 7px;
}

.patient-belly {
  position: absolute;
  left: 56px;
  top: 22px;
  width: 72px;
  height: 44px;
  border-radius: 50%;
  background: #ffd1b4;
  box-shadow: inset 0 0 0 5px rgba(255, 126, 154, 0.28);
}

.patient-leg {
  position: absolute;
  bottom: -8px;
  width: 20px;
  height: 26px;
  border-radius: 999px;
  background: #ff86a0;
}

.patient-leg.front {
  left: 48px;
  transform: rotate(10deg);
}

.patient-leg.back {
  left: 96px;
  transform: rotate(-8deg);
}

.doctor-pig {
  left: 48px;
  bottom: 22px;
  animation: pigStep 1.35s ease-in-out both;
}

.doctor-arm {
  right: -4px;
  top: 86px;
  width: 78px;
  transform: rotate(-17deg);
}

.motion-syringe {
  left: 128px;
  top: 112px;
  width: 318px;
  height: 58px;
  transform: rotate(-7deg);
  animation-name: bigInjectMove;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.28));
}

.motion-plunger {
  top: 21px;
  width: 72px;
  height: 17px;
}

.motion-barrel {
  left: 62px;
  top: 10px;
  width: 158px;
  height: 36px;
  border-width: 5px;
  border-radius: 14px;
}

.motion-needle {
  left: 216px;
  top: 27px;
  width: 96px;
  height: 5px;
}

.motion-needle::after {
  right: -14px;
  top: -5px;
  border-left-width: 16px;
  border-top-width: 8px;
  border-bottom-width: 8px;
}

.result-scene[data-mood="max"] .patient-pig {
  animation: patientPigJolt 1.35s ease-in-out both;
}

.result-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(35, 25, 22, 0.96), rgba(18, 14, 13, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  text-align: center;
}

.result-dose {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 77, 94, 0.18);
  color: #ffb7c1;
  font-weight: 800;
}

.result-copy h2 {
  margin: 0;
  color: #fff7ee;
  font-size: clamp(1.8rem, 7vw, 3.2rem);
  letter-spacing: 0;
}

.result-copy p {
  max-width: 560px;
  margin: 0;
  color: #fff7ee;
  font-size: clamp(1.12rem, 4vw, 1.55rem);
  font-weight: 800;
  line-height: 1.45;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.secondary-button {
  min-height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: #fff7ee;
  color: #241512;
  padding: 0 14px;
  font-size: clamp(0.88rem, 2.4vw, 1rem);
  line-height: 1.18;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.secondary-button:nth-child(2) {
  border-color: #ffb0b8;
  background: linear-gradient(135deg, #ff4d5e, #a51424);
  color: #fff;
  font-size: clamp(0.82rem, 2.1vw, 0.95rem);
}

.secondary-button:hover {
  transform: translateY(-1px);
  border-color: #fff;
  background: #ffffff;
}

.secondary-button:nth-child(2):hover {
  background: linear-gradient(135deg, #ff6574, #ba1728);
}

.kakao-share-button {
  grid-column: 1 / -1;
  border-color: rgba(68, 48, 0, 0.18);
  background: linear-gradient(135deg, #fee500, #ffd84d);
  color: #2b1e0b;
  font-size: clamp(0.86rem, 2.2vw, 0.98rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 12px 28px rgba(79, 54, 0, 0.16);
}

.kakao-share-button:hover {
  border-color: rgba(68, 48, 0, 0.3);
  background: linear-gradient(135deg, #fff05a, #fee500);
}

@keyframes pulse {
  0% {
    transform: scale(0.98);
    border-color: var(--warning);
  }
  100% {
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.09);
  }
}

@keyframes pigStep {
  0% {
    transform: translateX(-24px) rotate(-3deg);
  }
  56% {
    transform: translateX(16px) rotate(2deg);
  }
  100% {
    transform: translateX(10px) rotate(0);
  }
}

@keyframes injectMove {
  0% {
    transform: translateX(-34px) rotate(-6deg);
  }
  54% {
    transform: translateX(42px) rotate(-6deg);
  }
  72% {
    transform: translateX(32px) rotate(-6deg);
  }
  100% {
    transform: translateX(36px) rotate(-6deg);
  }
}

@keyframes injectMoveFirm {
  0% {
    transform: translateX(-42px) rotate(-7deg);
  }
  52% {
    transform: translateX(50px) rotate(-7deg);
  }
  72% {
    transform: translateX(34px) rotate(-7deg);
  }
  100% {
    transform: translateX(42px) rotate(-7deg);
  }
}

@keyframes injectMoveHard {
  0% {
    transform: translateX(-48px) rotate(-10deg);
  }
  48% {
    transform: translateX(64px) rotate(-10deg);
  }
  64% {
    transform: translateX(42px) rotate(-10deg);
  }
  100% {
    transform: translateX(54px) rotate(-10deg);
  }
}

@keyframes injectMoveSevere {
  0% {
    transform: translateX(-58px) rotate(-13deg) scale(1.05);
  }
  42% {
    transform: translateX(76px) rotate(-13deg) scale(1.05);
  }
  58% {
    transform: translateX(44px) rotate(-13deg) scale(1.05);
  }
  100% {
    transform: translateX(62px) rotate(-13deg) scale(1.05);
  }
}

@keyframes patientJolt {
  0%,
  45% {
    transform: translateX(-50%);
  }
  58% {
    transform: translateX(-50%) rotate(-4deg);
  }
  72% {
    transform: translateX(-50%) rotate(3deg);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes bigInjectMove {
  0% {
    transform: translateX(-58px) rotate(-7deg);
  }
  54% {
    transform: translateX(34px) rotate(-7deg);
  }
  72% {
    transform: translateX(20px) rotate(-7deg);
  }
  100% {
    transform: translateX(26px) rotate(-7deg);
  }
}

@keyframes bigInjectMoveFirm {
  0% {
    transform: translateX(-66px) rotate(-8deg);
  }
  52% {
    transform: translateX(46px) rotate(-8deg);
  }
  72% {
    transform: translateX(25px) rotate(-8deg);
  }
  100% {
    transform: translateX(34px) rotate(-8deg);
  }
}

@keyframes bigInjectMoveHard {
  0% {
    transform: translateX(-74px) rotate(-10deg);
  }
  48% {
    transform: translateX(58px) rotate(-10deg);
  }
  64% {
    transform: translateX(30px) rotate(-10deg);
  }
  100% {
    transform: translateX(42px) rotate(-10deg);
  }
}

@keyframes bigInjectMoveSevere {
  0% {
    transform: translateX(-84px) rotate(-12deg) scale(1.04);
  }
  42% {
    transform: translateX(70px) rotate(-12deg) scale(1.04);
  }
  58% {
    transform: translateX(34px) rotate(-12deg) scale(1.04);
  }
  100% {
    transform: translateX(52px) rotate(-12deg) scale(1.04);
  }
}

@keyframes patientPigJolt {
  0%,
  45% {
    transform: rotate(-5deg);
  }
  58% {
    transform: rotate(-9deg) translateY(-4px);
  }
  72% {
    transform: rotate(-2deg) translateY(2px);
  }
  100% {
    transform: rotate(-5deg);
  }
}

@keyframes walkToNurse {
  0% {
    transform: translateX(-18vw) translateY(0) scale(0.48);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  58% {
    transform: translateX(34vw) translateY(2vh) scale(1.08);
  }
  100% {
    transform: translateX(48vw) translateY(5vh) scale(1.72);
    opacity: 0.96;
  }
}

@keyframes pastureWaddle {
  0%,
  100% {
    translate: 0 0;
    rotate: -1deg;
  }
  35% {
    translate: 18px -3px;
    rotate: 2deg;
  }
  68% {
    translate: -10px 2px;
    rotate: -2deg;
  }
}

@keyframes pastureNibble {
  0%,
  100% {
    translate: 0 0;
    rotate: -1deg;
  }
  28% {
    translate: 10px 4px;
    rotate: 3deg;
  }
  48% {
    translate: 12px 8px;
    rotate: 5deg;
  }
  70% {
    translate: -6px 1px;
    rotate: -2deg;
  }
}

@keyframes fireFlicker {
  0% {
    transform: scaleX(0.88) scaleY(1) rotate(-5deg);
    opacity: 0.86;
  }
  100% {
    transform: scaleX(1.12) scaleY(1.14) rotate(6deg);
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 104px 14px 24px;
  }

  .hospital-sign {
    top: 54px;
    min-width: min(300px, 82vw);
    padding: 11px 16px;
  }

  .pasture-scene {
    top: 104px;
    height: calc(43vh - 104px);
  }

  .hospital-backdrop::after {
    top: 43vh;
  }

  .pasture-pig {
    width: 46px;
    height: 28px;
  }

  .pasture-pig::before {
    left: 31px;
    top: -6px;
    width: 21px;
    height: 21px;
  }

  .pasture-pig::after {
    left: 37px;
    top: 2px;
  }

  .pasture-pig i {
    left: 37px;
    top: -1px;
    transform: scale(0.8);
    transform-origin: left top;
  }

  .pasture-pig i::before {
    left: -43px;
    top: 14px;
  }

  .pasture-pig.eating b {
    left: 55px;
    top: 16px;
    transform: scale(0.7) rotate(-8deg);
    transform-origin: left center;
  }

  .campfire.fire-a {
    left: 38%;
    bottom: 28%;
    transform: scale(0.56);
  }

  .campfire.fire-b {
    left: 80%;
    bottom: 48%;
    transform: scale(0.48);
  }

  .brand-row {
    left: 12px;
    top: 12px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.72rem;
    gap: 6px;
  }

  .update-button {
    height: 22px;
    padding: 0 8px;
    font-size: 0.64rem;
  }

  .instagram-link {
    right: 12px;
    top: 13px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .language-toggle {
    right: 54px;
    top: 13px;
    min-width: 64px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.68rem;
  }

  .newsletter-signup {
    right: 12px;
    top: 54px;
    grid-template-columns: minmax(132px, 1fr) 50px;
    width: min(246px, calc(100vw - 24px));
    padding: 4px;
    border-radius: 10px;
  }

  .newsletter-signup input {
    height: 27px;
    font-size: 0.72rem;
  }

  .newsletter-signup button {
    height: 27px;
    font-size: 0.68rem;
  }

  .newsletter-signup p {
    font-size: 0.62rem;
  }

  .instagram-link span {
    width: 17px;
    height: 17px;
    border-width: 2px;
  }

  .instagram-link span::before {
    width: 7px;
    height: 7px;
    border-width: 2px;
  }

  .dose-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dosage-panel {
    padding: 16px;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .drill-pig {
    bottom: 18vh;
    transform: scale(0.68);
    transform-origin: bottom center;
  }

  .devil-coach {
    right: 154px;
  }

  .nurse-coach {
    right: 82px;
  }

  .result-card {
    padding: 16px;
  }

  .update-card {
    padding: 20px 16px 16px;
    border-radius: 14px;
  }

  .update-list li {
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: 0;
  }

  .injector-wrap {
    height: 126px;
  }

  .injector {
    transform: rotate(-10deg) scale(0.82);
  }

  .result-scene {
    height: 230px;
  }

  .person {
    left: 60%;
    transform: translateX(-50%) scale(0.86);
    transform-origin: bottom center;
  }

  .clinic-bed {
    right: 8px;
    bottom: 26px;
    width: 255px;
    height: 92px;
  }

  .bed-pillow {
    right: 20px;
    top: -15px;
    width: 62px;
    height: 38px;
  }

  .patient-pig {
    right: 54px;
    bottom: 82px;
    transform: rotate(-5deg) scale(0.76);
    transform-origin: right bottom;
  }

  .doctor-pig {
    left: 10px;
    bottom: 20px;
    transform-origin: bottom left;
  }

  .motion-syringe {
    left: 62px;
    top: 116px;
    transform: scale(0.74) rotate(-7deg);
    transform-origin: left center;
  }

  .result-scene[data-mood="max"] .patient-pig {
    animation-name: patientPigJoltMobile;
  }

  @keyframes walkToNurse {
    0% {
      transform: translateX(-28vw) translateY(0) scale(0.42);
      opacity: 0;
    }
    22% {
      opacity: 1;
    }
    64% {
      transform: translateX(32vw) translateY(1vh) scale(0.92);
    }
    100% {
      transform: translateX(44vw) translateY(4vh) scale(1.28);
      opacity: 0.9;
    }
  }

  @keyframes patientPigJoltMobile {
    0%,
    45% {
      transform: rotate(-5deg) scale(0.76);
    }
    58% {
      transform: rotate(-9deg) translateY(-4px) scale(0.76);
    }
    72% {
      transform: rotate(-2deg) translateY(2px) scale(0.76);
    }
    100% {
      transform: rotate(-5deg) scale(0.76);
    }
  }
}
