:root {
  --pink-050: #fff7fb;
  --pink-100: #ffe8f1;
  --pink-200: #ffcfe1;
  --pink-300: #ffaccb;
  --pink-400: #ff86b3;
  --pink-500: #ff5d99;
  --pink-600: #e9427f;
  --plum: #43243f;
  --plum-soft: #70405f;
  --cream: #fffaf2;
  --blue: #80d8e9;
  --green: #8bd5a9;
  --yellow: #ffd67b;
  --pixel-shadow: 8px 8px 0 var(--plum);
  --display: "Press Start 2P", "Courier New", monospace;
  --body: "Pixelify Sans", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--pink-200);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--plum);
  font-family: var(--body);
  background:
    linear-gradient(rgba(255, 255, 255, 0.4) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 2px, transparent 2px),
    linear-gradient(180deg, #ffd4e4 0%, #ffc1d9 100%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 4px solid #fff;
  box-shadow: 0 0 0 8px var(--plum);
}

.pixel-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.pixel-sky::before,
.pixel-sky::after {
  position: absolute;
  content: "";
  left: -5%;
  width: 110%;
  height: 48px;
  background: rgba(255, 255, 255, 0.23);
  clip-path: polygon(0 65%, 5% 65%, 5% 35%, 10% 35%, 10% 70%, 16% 70%, 16% 48%, 22% 48%, 22% 78%, 29% 78%, 29% 58%, 36% 58%, 36% 82%, 43% 82%, 43% 42%, 49% 42%, 49% 70%, 56% 70%, 56% 50%, 62% 50%, 62% 75%, 70% 75%, 70% 38%, 77% 38%, 77% 65%, 84% 65%, 84% 47%, 91% 47%, 91% 74%, 100% 74%, 100% 100%, 0 100%);
}

.pixel-sky::before { top: 5%; }
.pixel-sky::after { bottom: 4%; transform: rotate(180deg); }

.cloud {
  position: absolute;
  width: 115px;
  height: 26px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 18px -17px 0 rgba(255, 255, 255, 0.58), 42px -8px 0 rgba(255, 255, 255, 0.58), 70px 0 0 rgba(255, 255, 255, 0.58);
  animation: cloud-drift 18s linear infinite;
}

.cloud-one { top: 12%; left: 7%; }
.cloud-two { top: 28%; right: 10%; transform: scale(0.68); animation-delay: -8s; }
.cloud-three { bottom: 16%; left: 13%; transform: scale(0.48); animation-delay: -13s; }

.floating-pixel {
  position: absolute;
  color: rgba(233, 66, 127, 0.42);
  font-family: var(--display);
  font-size: 18px;
  animation: float-pixel 3.5s steps(4) infinite;
}

.p1 { top: 18%; left: 12%; }
.p2 { top: 11%; right: 15%; animation-delay: -0.8s; }
.p3 { bottom: 18%; right: 11%; animation-delay: -1.7s; }
.p4 { bottom: 24%; left: 8%; animation-delay: -2.5s; }

.app {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 20px;
  display: flex;
  flex-direction: column;
}

.progress {
  width: min(970px, 100%);
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  font-family: var(--display);
  font-size: 11px;
  background: transparent;
  cursor: pointer;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--pink-600);
  border: 3px solid var(--plum);
  box-shadow: 3px 3px 0 var(--plum);
}

.brand-word strong {
  color: var(--pink-600);
  font-weight: inherit;
}

.progress-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-dot {
  position: relative;
  width: 11px;
  height: 11px;
  background: rgba(67, 36, 63, 0.22);
  border: 2px solid var(--plum);
}

.progress-dot:not(:last-child)::after {
  position: absolute;
  content: "";
  left: 10px;
  top: 2px;
  width: 10px;
  height: 3px;
  background: rgba(67, 36, 63, 0.28);
}

.progress-dot.is-active {
  background: var(--pink-600);
  box-shadow: inset 2px 2px 0 #ffb4d0;
}

.progress-dot.is-complete { background: var(--green); }

.online {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  font-size: 8px;
}

.online > span {
  width: 9px;
  height: 9px;
  background: #58c985;
  border: 2px solid var(--plum);
  animation: blink 1.2s steps(2) infinite;
}

.scene {
  display: none;
  width: 100%;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.scene.is-active {
  display: flex;
  animation: scene-enter 0.45s steps(7) forwards;
}

.scene.is-leaving {
  display: flex;
  animation: scene-leave 0.22s steps(5) forwards;
}

.pixel-window {
  position: relative;
  width: 100%;
  max-width: 970px;
  min-width: 0;
  border: 5px solid var(--plum);
  background: var(--cream);
  box-shadow: var(--pixel-shadow);
}

.pixel-window::before,
.pixel-window::after {
  position: absolute;
  z-index: -1;
  content: "";
  width: 25px;
  height: 25px;
  background: var(--pink-500);
  border: 4px solid var(--plum);
}

.pixel-window::before { left: -13px; top: 28%; }
.pixel-window::after { right: -13px; bottom: 18%; }

.title-bar {
  min-height: 42px;
  padding: 7px 8px 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  background: var(--pink-500);
  border-bottom: 5px solid var(--plum);
}

.window-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 10px;
  text-shadow: 2px 2px 0 var(--pink-600);
}

.mini-heart {
  color: #fff7b2;
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-controls span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 23px;
  color: var(--plum);
  font-family: monospace;
  font-weight: 900;
  line-height: 1;
  background: var(--pink-100);
  border: 3px solid var(--plum);
  box-shadow: inset -2px -2px 0 #f5a5c4;
}

.window-body {
  position: relative;
  overflow: hidden;
}

.split-layout {
  min-height: 560px;
  display: grid;
  grid-template-columns: 45% 55%;
}

.character-zone {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(45deg, rgba(255,255,255,.48) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.48) 75%),
    linear-gradient(45deg, rgba(255,255,255,.48) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.48) 75%),
    var(--pink-200);
  background-position: 0 0, 20px 20px;
  background-size: 40px 40px;
  border-right: 4px dashed var(--pink-500);
}

.character-zone::before {
  position: absolute;
  content: "";
  inset: 25px;
  border: 3px solid rgba(233, 66, 127, 0.28);
  pointer-events: none;
}

.copy-zone {
  min-width: 0;
  padding: 64px 52px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pink-600);
  font-family: var(--display);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.eyebrow > span {
  width: 18px;
  height: 5px;
  background: var(--pink-500);
}

h1,
h2 {
  margin: 0;
  color: var(--plum);
  font-family: var(--display);
  line-height: 1.48;
  letter-spacing: -0.05em;
}

h1 { font-size: clamp(28px, 4vw, 45px); }
h2 { font-size: clamp(25px, 4.2vw, 41px); }

h1 em,
h2 em {
  color: var(--pink-600);
  font-style: normal;
  text-shadow: 3px 3px 0 var(--pink-200);
}

.intro-copy,
.success-copy,
.date-heading p {
  margin: 18px 0 0;
  color: var(--plum-soft);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

.choice-area {
  --yes-width: 170px;
  --yes-font: 16px;
  --yes-pad-y: 17px;
  --no-scale: 1;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.pixel-button {
  position: relative;
  min-height: 54px;
  border: 4px solid var(--plum);
  font-family: var(--display);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--plum);
  transition: width 0.22s steps(5), padding 0.22s steps(5), font-size 0.22s steps(5), transform 0.1s;
}

.pixel-button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--plum); }
.pixel-button:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--plum); }

.yes-button {
  width: min(var(--yes-width), 100%);
  padding: var(--yes-pad-y) 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  font-size: var(--yes-font);
  background: var(--pink-500);
  text-shadow: 2px 2px 0 var(--pink-600);
}

.yes-button::before {
  position: absolute;
  content: "";
  inset: 5px;
  border: 2px solid rgba(255,255,255,.55);
  pointer-events: none;
}

.yes-button b { color: #fff6a7; font-size: 1.25em; }

.yes-button.is-begging {
  animation: begging 0.48s steps(3) infinite;
}

.no-button {
  min-width: 108px;
  padding: 14px 20px;
  color: var(--plum);
  background: #fff;
  transform: scale(var(--no-scale));
}

.no-button:hover { transform: scale(var(--no-scale)) translate(-2px, -2px); }
.no-button:active { transform: scale(var(--no-scale)) translate(4px, 4px); }

.no-warning {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--pink-600);
  font-family: var(--display);
  font-size: 8px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(6px);
}

.no-warning.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: warning-pop 0.3s steps(3), blink-soft 1s steps(2) infinite 0.4s;
}

.confidence {
  margin-top: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--plum-soft);
  font-size: 12px;
  font-weight: 700;
}

.confidence-track {
  height: 10px;
  overflow: hidden;
  background: var(--pink-100);
  border: 2px solid var(--plum);
}

.confidence-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--pink-500);
  transition: width 0.25s steps(5);
}

.confidence strong { color: var(--pink-600); }

.speech-bubble {
  position: absolute;
  z-index: 2;
  top: 56px;
  right: 38px;
  max-width: 140px;
  padding: 12px 15px;
  font-family: var(--display);
  font-size: 8px;
  line-height: 1.6;
  text-align: center;
  background: #fff;
  border: 4px solid var(--plum);
  box-shadow: 4px 4px 0 rgba(67, 36, 63, .25);
  animation: bubble-bob 1.8s steps(3) infinite;
}

.speech-bubble::after {
  position: absolute;
  content: "";
  bottom: -15px;
  left: 20px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 4px solid var(--plum);
  border-bottom: 4px solid var(--plum);
  transform: skewY(45deg);
}

.sparkles i {
  position: absolute;
  color: var(--pink-600);
  font-family: var(--display);
  font-style: normal;
  animation: sparkle 1.4s steps(2) infinite;
}

.sparkles i:nth-child(1) { left: 55px; top: 90px; }
.sparkles i:nth-child(2) { left: 78px; top: 135px; animation-delay: -.45s; }
.sparkles i:nth-child(3) { right: 48px; bottom: 90px; animation-delay: -.8s; }

.quby {
  position: relative;
  width: min(310px, 78%);
  filter: drop-shadow(5px 6px 0 rgba(67, 36, 63, .18));
  image-rendering: pixelated;
  animation: quby-idle 1.8s steps(4) infinite;
}

.quby svg { display: block; width: 100%; overflow: visible; }
.quby-shadow { fill: rgba(67, 36, 63, .2); }
.body-shape, .arm, .leg { fill: #fffdf7; stroke: var(--plum); stroke-width: 8; stroke-linejoin: round; }
.body-shine { fill: #fff; opacity: .95; }
.cheek { fill: #ff9fbe; }
.eye, .brow, .mouth, .closed-eye, .open-mouth, .kiss-mouth, .happy-eye, .smile { fill: var(--plum); }
.eye-glint { fill: #fff; }
.sweat, .tear { fill: var(--blue); stroke: var(--plum); stroke-width: 4; stroke-linejoin: round; }
.tongue { fill: var(--pink-500); }
.kiss-hearts { fill: var(--pink-500); stroke: var(--plum); stroke-width: 4; }
.celebrate-pixels { fill: var(--pink-500); }
.quby-tag {
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%) rotate(-2deg);
  white-space: nowrap;
  padding: 7px 10px;
  color: #fff;
  font-family: var(--display);
  font-size: 8px;
  background: var(--pink-500);
  border: 3px solid var(--plum);
}

.face { display: none; }
.expression-hopeful .face-hopeful,
.expression-nervous .face-nervous,
.expression-sad .face-sad,
.expression-cry .face-cry { display: block; }

.expression-nervous { animation: nervous-shake .32s steps(3) infinite; }
.expression-sad { animation: sad-bob 1.7s steps(4) infinite; }
.expression-cry { animation: cry-shake .38s steps(3) infinite; }
.expression-kiss .kiss-hearts { animation: kiss-float 1.25s steps(4) infinite; transform-origin: 225px 90px; }
.kiss-arm { transform: rotate(-18deg); transform-origin: 50px 135px; }
.happy-arm-left { transform: rotate(25deg); transform-origin: 50px 130px; }
.happy-arm-right { transform: rotate(-25deg); transform-origin: 230px 130px; }
.expression-celebrate { animation: celebrate-jump .75s steps(5) infinite; }
.expression-celebrate .celebrate-pixels { animation: blink .4s steps(2) infinite; }

.compact-window { max-width: 730px; }
.center-layout {
  min-height: 600px;
  padding: 34px 45px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 172, 203, .5), transparent 31%),
    linear-gradient(rgba(255,255,255,.55) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.55) 2px, transparent 2px),
    var(--pink-050);
  background-size: auto, 30px 30px, 30px 30px, auto;
}

.hero-quby { width: 210px; margin: 10px auto 18px; }
.centered { justify-content: center; }
.success-copy { margin: 13px 0 25px; }

.success-stamp,
.ribbon {
  position: absolute;
  top: 24px;
  right: 22px;
  padding: 9px 12px;
  color: #fff;
  font-family: var(--display);
  font-size: 8px;
  background: var(--pink-500);
  border: 3px solid var(--plum);
  transform: rotate(3deg);
}

.primary-button {
  padding: 17px 25px;
  color: #fff;
  background: var(--pink-500);
  text-shadow: 2px 2px 0 var(--pink-600);
}

.primary-button span { margin-left: 9px; color: #fff7a1; }

.date-window { max-width: 880px; }
.date-layout {
  min-height: 550px;
  padding: 42px 50px 48px;
  background:
    linear-gradient(rgba(255, 232, 241, .5) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 232, 241, .5) 2px, transparent 2px),
    var(--pink-050);
  background-size: 32px 32px;
}

.date-heading {
  display: flex;
  align-items: center;
  gap: 25px;
}

.date-heading .eyebrow { margin-bottom: 10px; }
.date-heading p { margin-top: 9px; }
.date-heading h2 { font-size: clamp(28px, 4vw, 38px); }

.calendar-icon {
  flex: 0 0 auto;
  position: relative;
  width: 80px;
  height: 76px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 5px solid var(--plum);
  box-shadow: 6px 6px 0 var(--pink-300);
}

.calendar-icon::before {
  position: absolute;
  content: "";
  left: -1px;
  right: -1px;
  top: 12px;
  height: 13px;
  background: var(--pink-500);
  border-top: 4px solid var(--plum);
  border-bottom: 4px solid var(--plum);
}

.calendar-icon::after {
  position: absolute;
  content: "";
  top: -10px;
  left: 14px;
  width: 9px;
  height: 18px;
  background: #fff;
  border: 4px solid var(--plum);
  box-shadow: 34px 0 0 -4px #fff, 34px 0 0 0 var(--plum);
}

.calendar-icon b { margin-top: 23px; color: var(--pink-500); font-family: var(--display); }

.date-input-wrap {
  position: relative;
  margin: 34px 0 0;
  padding: 13px 18px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 4px solid var(--plum);
  box-shadow: 5px 5px 0 var(--pink-300);
  cursor: pointer;
}

.date-input-wrap > span {
  font-family: var(--display);
  font-size: 8px;
  color: var(--pink-600);
}

.date-input-wrap input {
  min-width: 0;
  padding: 5px 11px;
  color: var(--plum);
  font-family: var(--display);
  font-size: 10px;
  background: var(--pink-050);
  border: 0;
  border-left: 3px solid var(--pink-200);
  cursor: pointer;
}

.date-input-wrap > i { color: var(--pink-500); font-style: normal; }

.plan-chooser {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(15px);
  transition: max-height .55s steps(9), opacity .3s, transform .35s steps(5), margin .3s;
}

.plan-chooser.is-visible {
  max-height: 700px;
  margin-top: 34px;
  opacity: 1;
  transform: translateY(0);
}

.section-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  color: var(--pink-600);
  font-family: var(--display);
  font-size: 8px;
}

.section-divider span {
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--pink-400) 0 8px, transparent 8px 14px);
}

.date-options {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.date-option {
  min-height: 128px;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--plum);
  background: #fff;
  box-shadow: 4px 4px 0 var(--plum);
  cursor: pointer;
  transition: transform .12s, background .12s;
}

.date-option:hover,
.date-option:focus-visible {
  transform: translate(-3px, -3px);
  background: var(--pink-100);
  box-shadow: 7px 7px 0 var(--plum);
}

.date-option:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--plum); }
.date-option b { margin-top: 8px; font-family: var(--display); font-size: 9px; line-height: 1.45; }
.date-option small { margin-top: 7px; color: var(--plum-soft); font-size: 13px; font-weight: 600; line-height: 1.2; }

.option-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
  background: var(--pink-500);
  border: 3px solid var(--plum);
  box-shadow: 3px 3px 0 var(--pink-200);
}

.surprise-option {
  color: #fff;
  background: var(--pink-500);
}

.surprise-option:hover,
.surprise-option:focus-visible { background: var(--pink-600); }
.surprise-option .option-icon { color: var(--plum); background: var(--yellow); box-shadow: 3px 3px 0 var(--pink-600); }
.surprise-option small { color: #fff; }

.confirmed-window .center-layout { min-height: 780px; }
.confirmed-window .hero-quby { width: 190px; margin-top: 18px; }
.ribbon { right: auto; left: 20px; transform: rotate(-3deg); background: var(--green); }

.date-ticket {
  width: min(540px, 100%);
  margin: 25px 0 19px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 4px solid var(--plum);
  box-shadow: 5px 5px 0 var(--pink-300);
}

.ticket-item { display: flex; flex-direction: column; gap: 7px; }
.ticket-item small { color: var(--pink-600); font-family: var(--display); font-size: 7px; }
.ticket-item strong { font-family: var(--display); font-size: 10px; line-height: 1.5; }
.ticket-cut { width: 4px; height: 45px; background: repeating-linear-gradient(var(--pink-400) 0 7px, transparent 7px 12px); }

.final-message {
  margin: 0;
  color: var(--plum-soft);
  font-size: 18px;
  line-height: 1.55;
}

.final-message strong { color: var(--pink-600); }

.whatsapp-panel {
  width: min(540px, 100%);
  margin-top: 24px;
  padding: 23px 25px 21px;
  text-align: left;
  background: #fff;
  border: 4px solid var(--plum);
  box-shadow: 6px 6px 0 var(--green);
}

.whatsapp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  color: var(--plum);
  font-family: var(--display);
  font-size: 7px;
  background: #c8f4d9;
  border: 3px solid var(--plum);
}

.whatsapp-badge span {
  color: #32b86a;
  animation: blink 1.2s steps(2) infinite;
}

.whatsapp-panel h3 {
  margin: 17px 0 7px;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.45;
}

.whatsapp-panel > p {
  margin: 0 0 17px;
  color: var(--plum-soft);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.whatsapp-label {
  display: block;
  margin-bottom: 8px;
  color: var(--pink-600);
  font-family: var(--display);
  font-size: 7px;
}

.whatsapp-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 52px;
  background: var(--pink-050);
  border: 4px solid var(--plum);
}

.whatsapp-control > span {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: #fff;
  font-family: var(--display);
  font-size: 8px;
  background: #39bf73;
  border-right: 4px solid var(--plum);
}

.whatsapp-control input {
  min-width: 0;
  width: 100%;
  padding: 11px 12px;
  color: var(--plum);
  font-size: 16px;
  font-weight: 700;
  background: transparent;
  border: 0;
  outline: 0;
}

.whatsapp-control:focus-within {
  outline: 4px solid var(--pink-200);
}

.whatsapp-control > b {
  padding: 0 13px;
  color: var(--pink-500);
  font-family: var(--display);
}

#whatsapp-help {
  display: block;
  margin-top: 8px;
  color: var(--plum-soft);
  font-size: 12px;
  line-height: 1.35;
}

.whatsapp-button {
  width: 100%;
  margin-top: 16px;
  padding: 13px 18px;
  color: #fff;
  font-size: 9px;
  line-height: 1.4;
  background: #39bf73;
  text-shadow: 2px 2px 0 #259655;
}

.whatsapp-button span {
  margin-left: 8px;
  color: #fff7a1;
}

.whatsapp-status {
  display: none;
  margin: 13px 0 0;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  background: var(--pink-100);
  border-left: 5px solid var(--pink-500);
}

.whatsapp-status.is-visible { display: block; }
.whatsapp-status.is-success { background: #dff8e8; border-color: #39bf73; }
.text-button {
  margin-top: 19px;
  padding: 8px;
  color: var(--plum-soft);
  font-weight: 700;
  background: transparent;
  border: 0;
  border-bottom: 2px dashed var(--pink-400);
  cursor: pointer;
}

.footer-note {
  margin: 18px 0 0;
  text-align: center;
  font-family: var(--display);
  font-size: 7px;
  line-height: 1.7;
  opacity: .7;
}

.footer-note span { color: var(--pink-600); }

.confetti-layer {
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: -30px;
  width: 12px;
  height: 18px;
  background: var(--confetti-color);
  border: 2px solid var(--plum);
  animation: confetti-fall var(--fall-time) steps(18) forwards;
}

.confetti.is-heart {
  width: auto;
  height: auto;
  color: var(--confetti-color);
  font-family: var(--display);
  font-size: 18px;
  background: transparent;
  border: 0;
}

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 25px;
  padding: 12px 16px;
  color: #fff;
  font-family: var(--display);
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
  background: var(--plum);
  border: 4px solid #fff;
  box-shadow: 5px 5px 0 var(--pink-600);
  opacity: 0;
  transform: translate(-50%, 25px);
  pointer-events: none;
}

.toast.is-visible { animation: toast-in 2.2s steps(5) forwards; }
.screen-nudge { animation: screen-nudge .28s steps(4); }

@keyframes scene-enter { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes scene-leave { to { opacity: 0; transform: translateY(-14px) scale(.985); } }
@keyframes quby-idle { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bubble-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes nervous-shake { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes sad-bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(5px) rotate(-1deg); } }
@keyframes cry-shake { 0%,100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes kiss-float { 0% { transform: translate(0, 8px) scale(.8); opacity: 0; } 55% { opacity: 1; } 100% { transform: translate(18px, -22px) scale(1.15); opacity: 0; } }
@keyframes celebrate-jump { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-11px) rotate(1deg); } }
@keyframes sparkle { 0%,100% { opacity: .35; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes blink-soft { 50% { opacity: .55; } }
@keyframes begging { 0%,100% { transform: rotate(0); } 33% { transform: rotate(-1deg); } 66% { transform: rotate(1deg); } }
@keyframes warning-pop { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes screen-nudge { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes cloud-drift { 0% { margin-left: -15px; } 50% { margin-left: 35px; } 100% { margin-left: -15px; } }
@keyframes float-pixel { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes confetti-fall { to { transform: translate(var(--drift), 110vh) rotate(var(--spin)); } }
@keyframes toast-in { 0% { opacity: 0; transform: translate(-50%, 20px); } 12%,78% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -10px); } }

@media (max-width: 760px) {
  .app { width: calc(100% - 22px); max-width: 620px; padding-top: 14px; }
  .pixel-window { width: calc(100vw - 22px); max-width: calc(100vw - 22px); }
  .progress { grid-template-columns: 1fr auto; }
  .progress-dots { display: none; }
  .online { font-size: 7px; }
  .brand { font-size: 9px; }
  .pixel-window { box-shadow: 5px 5px 0 var(--plum); }
  .title-bar { min-height: 38px; }
  .window-name { font-size: 8px; }
  .window-controls span { width: 20px; height: 19px; font-size: 11px; }
  .split-layout { grid-template-columns: 1fr; }
  .character-zone { min-height: 310px; border-right: 0; border-bottom: 4px dashed var(--pink-500); }
  .quby { width: 220px; }
  .speech-bubble { top: 28px; right: 10%; }
  .sparkles i:nth-child(1) { top: 55px; }
  .copy-zone { padding: 38px 25px 32px; text-align: center; align-items: center; }
  .eyebrow { justify-content: center; }
  h1 { font-size: clamp(24px, 8vw, 35px); }
  h2 { font-size: clamp(22px, 7vw, 33px); }
  h1, h2 { max-width: 100%; overflow-wrap: anywhere; }
  .intro-copy { max-width: 440px; }
  .choice-area { width: 100%; justify-content: center; flex-wrap: wrap; }
  .yes-button { max-width: 100%; }
  .confidence { width: 100%; grid-template-columns: 1fr auto; }
  .confidence > span { grid-column: 1 / -1; }
  .center-layout { min-height: 560px; padding: 50px 23px 35px; }
  .success-stamp, .ribbon { top: 15px; right: 12px; font-size: 7px; }
  .ribbon { right: auto; left: 12px; }
  .date-layout { padding: 34px 22px 40px; }
  .date-heading { align-items: flex-start; gap: 16px; }
  .calendar-icon { width: 65px; height: 64px; }
  .date-heading .eyebrow { justify-content: flex-start; }
  .date-heading h2 { font-size: 26px; }
  .date-heading p { font-size: 16px; }
  .date-input-wrap { grid-template-columns: 1fr auto; gap: 10px; }
  .date-input-wrap > span { grid-column: 1 / -1; }
  .date-options { grid-template-columns: repeat(2, 1fr); }
  .date-option { min-height: 124px; }
  .section-divider { grid-template-columns: 20px auto 20px; justify-content: center; text-align: center; }
  .date-ticket { gap: 10px; padding-inline: 12px; }
  .ticket-item strong { font-size: 8px; }
}

@media (max-width: 430px) {
  .progress { margin-bottom: 9px; }
  .online { display: none; }
  .progress { grid-template-columns: 1fr; }
  .brand { justify-self: center; }
  .window-controls span:nth-child(-n+2) { display: none; }
  .character-zone { min-height: 275px; }
  .quby { width: 185px; }
  .speech-bubble { top: 20px; right: 5%; font-size: 7px; max-width: 116px; }
  .copy-zone { padding-inline: 16px; }
  .choice-area { gap: 12px; }
  .no-button { min-width: 90px; }
  .date-heading { flex-direction: column; align-items: center; text-align: center; }
  .date-heading .eyebrow { justify-content: center; }
  .date-options { grid-template-columns: 1fr 1fr; gap: 10px; }
  .date-option { min-height: 112px; padding-inline: 6px; }
  .date-option small { display: none; }
  .date-ticket { grid-template-columns: 1fr; }
  .ticket-cut { width: 100%; height: 3px; background: repeating-linear-gradient(90deg, var(--pink-400) 0 7px, transparent 7px 12px); }
  .confirmed-window .center-layout { padding-inline: 15px; }
  .whatsapp-panel { padding: 19px 14px 17px; }
  .whatsapp-panel h3 { font-size: 12px; }
  .whatsapp-control > span { padding-inline: 9px; }
  .whatsapp-control input { font-size: 14px; padding-inline: 9px; }
  .whatsapp-control > b { display: none; }
  .footer-note { font-size: 6px; }
}

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