:root {
  --cream: #fff8f1;
  --cream-soft: rgba(255, 248, 241, 0.72);
  --berry: #7e2f4e;
  --berry-dark: #401a2a;
  --berry-deep: #2a121d;
  --rose: #e28e9f;
  --rose-light: #f7c8ca;
  --amber: #fac985;
  --line: rgba(255, 241, 235, 0.16);
  --glass: rgba(45, 19, 31, 0.72);
  --shadow: 0 30px 80px rgba(18, 4, 12, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--berry-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(31, 11, 21, 0.68), rgba(78, 30, 49, 0.34)),
    url("./assets/moscow-evening.png") center / cover fixed;
  color: var(--cream);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button {
  border: 0;
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 34vw;
  height: 34vw;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.28;
}

.ambient-one {
  top: -12vw;
  right: -8vw;
  background: #ca718b;
}

.ambient-two {
  bottom: -18vw;
  left: -10vw;
  background: #9a4e75;
}

.app-shell {
  position: relative;
  z-index: 2;
  width: min(100% - 36px, 920px);
  margin: 0 auto;
  padding: 24px 0 18px;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 18px;
}

.brand,
.location-pill,
.footer {
  color: var(--cream-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand,
.location-pill {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-mark,
.footer-heart {
  color: var(--rose-light);
  font-size: 17px;
  line-height: 1;
}

.location-pill {
  padding: 9px 12px;
  border: 1px solid rgba(255, 244, 238, 0.14);
  border-radius: 999px;
  background: rgba(42, 18, 29, 0.26);
  backdrop-filter: blur(16px);
}

.location-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber);
}

.card {
  position: relative;
  min-height: min(680px, calc(100vh - 116px));
  overflow: hidden;
  border: 1px solid rgba(255, 241, 235, 0.19);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(85, 35, 55, 0.72), rgba(37, 14, 25, 0.82)),
    rgba(42, 18, 29, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.card::before,
.card::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}

.card::before {
  width: 260px;
  height: 260px;
  top: -150px;
  left: -100px;
  background: rgba(241, 159, 169, 0.08);
}

.card::after {
  width: 330px;
  height: 330px;
  right: -190px;
  bottom: -200px;
  border: 1px solid rgba(255, 235, 225, 0.12);
}

.progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.progress-bar {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--rose), var(--amber));
  transition: width 420ms ease;
}

.screen {
  display: none;
  min-height: calc(min(680px, 100vh - 116px) - 3px);
  padding: clamp(36px, 8vw, 72px) clamp(24px, 7vw, 80px) 36px;
  animation: screen-in 480ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.screen.active {
  display: block;
}

.intro-screen {
  padding-top: clamp(72px, 13vh, 118px);
}

.intro-memory {
  position: absolute;
  right: clamp(26px, 6vw, 62px);
  bottom: 44px;
  width: clamp(126px, 16vw, 158px);
  margin: 0;
  padding: 7px 7px 24px;
  border-radius: 3px;
  background: rgba(255, 248, 241, 0.94);
  box-shadow: 0 16px 32px rgba(18, 4, 12, 0.24);
  transform: rotate(4deg);
}

.intro-memory img {
  display: block;
  width: 100%;
  height: 104px;
  object-fit: cover;
}

.intro-memory figcaption {
  position: absolute;
  right: 5px;
  bottom: 6px;
  left: 5px;
  color: rgba(64, 26, 42, 0.8);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

.step-memory {
  display: flex;
  width: min(100%, 236px);
  min-height: 74px;
  margin: 16px 0 -9px auto;
  padding: 6px;
  align-items: center;
  gap: 10px;
  border: 4px solid rgba(255, 248, 241, 0.86);
  border-radius: 3px;
  background: rgba(255, 248, 241, 0.94);
  box-shadow: 0 10px 20px rgba(18, 4, 12, 0.2);
}

.step-memory img {
  display: block;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 1px;
  object-fit: cover;
}

.step-memory figcaption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: rgba(64, 26, 42, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1.1;
}

.step-memory b {
  color: var(--berry);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--rose-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  max-width: 680px;
  margin: 0;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(52px, 9vw, 92px);
}

h2 {
  font-size: clamp(42px, 6.8vw, 70px);
}

h1 em,
h2 em {
  color: var(--rose-light);
  font-weight: 400;
}

.lead,
.screen-copy,
.result-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 248, 241, 0.7);
  font-size: 16px;
  line-height: 1.65;
}

.budget-pill {
  display: inline-flex;
  margin: 16px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(250, 201, 133, 0.2);
  border-radius: 999px;
  background: rgba(250, 201, 133, 0.08);
  color: rgba(255, 248, 241, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.intro-actions,
.result-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.intro-actions {
  position: relative;
  min-height: 62px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 21px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #c85e78, #a54365);
  box-shadow: 0 12px 26px rgba(178, 67, 100, 0.32);
}

.button-primary:hover {
  box-shadow: 0 16px 32px rgba(178, 67, 100, 0.44);
}

.button-primary span {
  color: #ffd5d4;
  font-size: 18px;
}

.no-button {
  position: relative;
  z-index: 6;
  border: 1px solid rgba(255, 241, 235, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 248, 241, 0.67);
  will-change: transform, left, top;
}

.no-button.is-running {
  position: fixed;
  margin: 0;
  transition:
    left 380ms cubic-bezier(0.2, 0.76, 0.25, 1),
    top 380ms cubic-bezier(0.2, 0.76, 0.25, 1),
    transform 160ms ease;
}

.no-button.is-catchable {
  border-color: rgba(250, 201, 133, 0.56);
  background: rgba(250, 201, 133, 0.16);
  color: var(--cream);
  box-shadow: 0 0 0 7px rgba(250, 201, 133, 0.06);
  animation: catch-me 1.6s ease-in-out infinite;
}

.no-button.exploding {
  pointer-events: none;
  animation: button-pop 460ms ease-out both;
}

.escape-sticker {
  position: fixed;
  z-index: 18;
  display: grid;
  width: clamp(82px, 11vw, 124px);
  height: clamp(82px, 11vw, 124px);
  place-items: center;
  pointer-events: none;
  animation: sticker-reaction 2100ms cubic-bezier(0.18, 0.72, 0.26, 1) forwards;
  filter: drop-shadow(0 10px 13px rgba(18, 4, 12, 0.22));
}

.escape-sticker img,
.escape-sticker video,
.escape-sticker .lottie-sticker,
.escape-sticker .lottie-sticker svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.copy-status {
  min-height: 18px;
  margin: 18px 0 0;
  color: rgba(255, 248, 241, 0.46);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.back-button {
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 241, 235, 0.12);
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  font-size: 19px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.back-button:hover {
  transform: translateX(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.choice-grid {
  display: grid;
  gap: 13px;
  max-width: 690px;
  margin-top: 30px;
}

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

.choice-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 241, 235, 0.13);
  border-radius: 18px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.055);
  color: var(--cream);
  text-align: left;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.mood-grid .choice-card {
  align-items: flex-start;
  min-height: 176px;
  flex-direction: column;
  justify-content: flex-end;
}

.choice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 200, 202, 0.38);
  background: rgba(255, 255, 255, 0.1);
}

.choice-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(250, 201, 133, 0.22);
  border-radius: 999px;
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 22px;
}

.choice-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.choice-text strong {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
}

.choice-text small {
  color: rgba(255, 248, 241, 0.54);
  font-size: 13px;
  line-height: 1.45;
}

.choice-arrow {
  align-self: flex-end;
  color: var(--rose-light);
  font-size: 20px;
}

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

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.direction-card {
  min-height: 78px;
  padding: 13px 15px;
}

.direction-card .choice-text strong {
  font-size: 19px;
}

.direction-card .choice-text small {
  font-size: 12px;
}

.direction-code {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(250, 201, 133, 0.25);
  border-radius: 12px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.date-badge {
  display: grid;
  width: 46px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(250, 201, 133, 0.22);
  border-radius: 12px;
}

.travel-badge {
  display: grid;
  width: 76px;
  min-height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(250, 201, 133, 0.22);
  border-radius: 12px;
  text-align: center;
}

.travel-badge b,
.travel-badge i {
  font-style: normal;
  line-height: 1;
}

.travel-badge b {
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 17px;
}

.travel-badge i {
  padding: 0 4px 5px;
  color: rgba(255, 248, 241, 0.78);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
}

.date-badge b,
.date-badge i {
  font-style: normal;
  line-height: 1;
}

.date-badge b {
  color: var(--amber);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.date-badge i {
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 19px;
}

.result-screen {
  text-align: center;
}

.result-screen h2,
.result-screen .result-copy {
  margin-right: auto;
  margin-left: auto;
}

.result-heart {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 22px auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(226, 142, 159, 0.13);
  color: var(--rose-light);
  font-size: 29px;
  animation: pulse-heart 2.2s ease-in-out infinite;
}

.summary-card {
  max-width: 590px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 241, 235, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.summary-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 15px 18px;
}

.summary-row + .summary-row {
  border-top: 1px solid rgba(255, 241, 235, 0.1);
}

.summary-row span {
  color: var(--rose-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-row strong {
  color: rgba(255, 248, 241, 0.86);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.result-actions {
  justify-content: center;
  margin-top: 24px;
}

.photo-preview {
  max-width: 590px;
  margin: 20px auto 0;
  padding: 13px 12px 12px;
  border: 1px dashed rgba(255, 241, 235, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.photo-preview-title {
  margin: 0 0 12px;
  color: rgba(255, 248, 241, 0.52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.photo-strip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 4px 5px 12px;
  scrollbar-color: rgba(247, 200, 202, 0.3) transparent;
  scrollbar-width: thin;
}

.photo-polaroid {
  position: relative;
  width: 106px;
  margin: 0;
  padding: 5px 5px 19px;
  flex: 0 0 auto;
  border: 4px solid rgba(255, 248, 241, 0.86);
  border-bottom-width: 5px;
  border-radius: 3px;
  background: rgba(255, 248, 241, 0.94);
  box-shadow: 0 8px 18px rgba(18, 4, 12, 0.18);
}

.photo-polaroid img {
  display: block;
  width: 100%;
  height: 86px;
  border-radius: 1px;
  object-fit: cover;
}

.photo-polaroid figcaption {
  position: absolute;
  right: 3px;
  bottom: 4px;
  left: 3px;
  overflow: hidden;
  color: rgba(64, 26, 42, 0.8);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-tilt-left {
  transform: rotate(-3deg);
}

.photo-tilt-right {
  transform: rotate(3deg);
}

.text-button {
  cursor: pointer;
  background: transparent;
  color: rgba(255, 248, 241, 0.54);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copy-status {
  color: var(--rose-light);
}

.footer {
  justify-content: center;
  padding-top: 15px;
  letter-spacing: 0.16em;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 28px;
  max-width: calc(100% - 36px);
  padding: 12px 16px;
  border: 1px solid rgba(255, 241, 235, 0.16);
  border-radius: 999px;
  background: rgba(43, 18, 29, 0.88);
  box-shadow: var(--shadow);
  color: var(--cream);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 14px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.particle {
  position: fixed;
  z-index: 19;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  pointer-events: none;
  background: var(--particle-color);
  animation: particle-burst 1400ms cubic-bezier(0.14, 0.66, 0.25, 1) forwards;
}

.heart-particle {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--particle-color);
  font-size: 19px;
  text-shadow: 0 3px 12px rgba(18, 4, 12, 0.26);
}

.penguin-scene {
  position: fixed;
  z-index: 24;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.penguin-scene.show {
  visibility: visible;
}

.penguin-runner {
  position: fixed;
  left: -98px;
  top: 50%;
  width: 82px;
  height: 64px;
  filter: drop-shadow(0 12px 12px rgba(18, 4, 12, 0.26));
  transform: translateY(-50%);
  transition: left 1450ms cubic-bezier(0.16, 0.76, 0.24, 1);
}

.penguin-scene.run .penguin-runner {
  left: var(--run-to);
}

.penguin-runner.recoil {
  animation: penguin-recoil 440ms ease-out;
}

.penguin-art {
  width: 82px;
  height: 64px;
  overflow: visible;
}

.penguin-scene.run .penguin-art {
  animation: penguin-waddle 460ms ease-in-out infinite alternate;
}

.penguin-scene.run .penguin-flipper-left {
  animation: penguin-wave 440ms ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: right center;
}

.penguin-scene.run .penguin-eye,
.penguin-scene.run .penguin-pupil {
  animation: penguin-blink 2.1s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.penguin-shadow {
  fill: rgba(18, 4, 12, 0.24);
}

.penguin-puddle {
  fill: rgba(127, 208, 255, 0.66);
}

.penguin-body,
.penguin-flipper {
  fill: #1f1b25;
  stroke: rgba(255, 248, 241, 0.54);
  stroke-width: 2;
}

.penguin-belly {
  fill: #fff8f1;
}

.penguin-eye {
  fill: #fff8f1;
}

.penguin-pupil {
  fill: #24121d;
}

.penguin-brow {
  fill: none;
  stroke: #55404b;
  stroke-linecap: round;
  stroke-width: 3;
}

.penguin-cheek {
  fill: rgba(239, 139, 155, 0.72);
}

.penguin-tear {
  fill: #85d4ff;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1;
  animation: penguin-tears 820ms ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center top;
}

.penguin-tear-right {
  animation-delay: 180ms;
}

.penguin-beak,
.penguin-foot {
  fill: #fac985;
  stroke: rgba(64, 26, 42, 0.24);
  stroke-width: 2;
}

.toy-launcher rect:first-child {
  fill: #b94868;
  stroke: #fac985;
  stroke-width: 3;
}

.toy-launcher .launcher-rim {
  fill: #692c48;
  stroke: #fac985;
  stroke-width: 3;
}

.toy-launcher .launcher-handle {
  fill: #693147;
  stroke: #fac985;
  stroke-width: 3;
}

.launcher-heart {
  fill: #ffd1d2;
}

.penguin-bubble {
  position: absolute;
  top: -21px;
  left: -3px;
  min-width: 84px;
  padding: 5px 7px;
  border: 1px solid rgba(250, 201, 133, 0.48);
  border-radius: 999px;
  background: rgba(47, 20, 31, 0.94);
  color: var(--cream);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.heart-projectile {
  position: fixed;
  z-index: 25;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #f7c8ca;
  box-shadow:
    0 0 0 7px rgba(247, 200, 202, 0.15),
    0 0 28px rgba(250, 201, 133, 0.8);
  color: #a54365;
  font-size: 20px;
  opacity: 0;
}

.heart-projectile.shoot {
  opacity: 1;
}

.heart-blast {
  position: fixed;
  z-index: 26;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
}

.heart-blast.boom {
  animation: heart-blast-grow 2.9s cubic-bezier(0.12, 0.62, 0.26, 1) forwards;
}

.blast-flash {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(250, 201, 133, 0.42) 34%, rgba(208, 82, 117, 0) 72%);
  opacity: 0;
}

.heart-blast.boom .blast-flash {
  animation: blast-flash 2s ease-out forwards;
}

.blast-stem {
  position: absolute;
  bottom: 6px;
  width: 54px;
  height: 190px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(226, 142, 159, 0.18), rgba(255, 244, 221, 0.84), rgba(226, 142, 159, 0.18));
  box-shadow: 0 0 38px rgba(250, 201, 133, 0.72);
  opacity: 0;
  transform-origin: bottom center;
}

.heart-blast.boom .blast-stem {
  animation: blast-stem 2.5s 180ms ease-out forwards;
}

.blast-core {
  position: relative;
  z-index: 3;
  color: #ffd4d5;
  font-size: 128px;
  line-height: 1;
  text-shadow:
    0 0 16px #ffffff,
    0 0 48px #fac985,
    0 0 100px #d05275;
}

.mushroom-heart-cap {
  position: absolute;
  top: -188px;
  z-index: 4;
  color: #ffd4d5;
  font-size: 184px;
  line-height: 1;
  opacity: 0;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.96),
    0 0 62px rgba(250, 201, 133, 0.92),
    0 0 128px rgba(208, 82, 117, 0.9);
}

.heart-blast.boom .mushroom-heart-cap {
  animation: mushroom-heart-rise 2.65s 440ms cubic-bezier(0.12, 0.72, 0.22, 1) forwards;
}

.blast-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 5px solid rgba(250, 201, 133, 0.76);
  border-radius: 999px;
  opacity: 0;
}

.heart-blast.boom .blast-ring-one {
  animation: blast-ring 1.05s 120ms ease-out forwards;
}

.heart-blast.boom .blast-ring-two {
  animation: blast-ring 1.26s 260ms ease-out forwards;
}

.blast-cloud {
  position: absolute;
  color: rgba(247, 200, 202, 0.82);
  font-size: 74px;
  line-height: 1;
  opacity: 0;
}

.blast-cloud-one {
  left: -78px;
  top: -170px;
}

.blast-cloud-two {
  left: 68px;
  top: -142px;
}

.blast-cloud-three {
  left: 1px;
  top: -236px;
}

.heart-blast.boom .blast-cloud-one {
  animation: heart-cloud 1.55s 160ms ease-out forwards;
}

.heart-blast.boom .blast-cloud-two {
  animation: heart-cloud 1.45s 260ms ease-out forwards;
}

.heart-blast.boom .blast-cloud-three {
  animation: heart-cloud 1.35s 360ms ease-out forwards;
}

.screen-blast {
  position: fixed;
  z-index: 28;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.screen-blast.boom {
  visibility: visible;
  animation: screen-blast-fade 2.35s ease-out forwards;
}

.screen-blast-glow {
  position: absolute;
  width: 48vmax;
  height: 48vmax;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(255, 226, 202, 0.94) 20%, rgba(239, 139, 155, 0.84) 48%, rgba(126, 47, 78, 0) 76%);
  transform: scale(0.04);
}

.screen-blast.boom .screen-blast-glow {
  animation: screen-blast-grow 1.55s cubic-bezier(0.12, 0.66, 0.22, 1) forwards;
}

.screen-mushroom-stem {
  position: absolute;
  bottom: -12vh;
  width: 16vmin;
  height: 74vh;
  border-radius: 999px 999px 42% 42%;
  background:
    linear-gradient(90deg, rgba(226, 142, 159, 0.22), rgba(255, 248, 241, 0.98), rgba(250, 201, 133, 0.68), rgba(226, 142, 159, 0.2));
  box-shadow:
    0 0 44px rgba(255, 248, 241, 0.9),
    0 0 110px rgba(226, 142, 159, 0.86);
  transform: scaleY(0.04);
  transform-origin: bottom center;
}

.screen-blast.boom .screen-mushroom-stem {
  animation: screen-mushroom-stem 1.78s 120ms cubic-bezier(0.12, 0.72, 0.22, 1) forwards;
}

.screen-mushroom-cap {
  position: absolute;
  top: -9vh;
  color: rgba(255, 220, 221, 0.96);
  font-size: 78vmin;
  line-height: 1;
  opacity: 0;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 1),
    0 0 86px rgba(250, 201, 133, 0.95),
    0 0 180px rgba(226, 142, 159, 0.98);
  transform: translateY(40vh) scale(0.08);
}

.screen-blast.boom .screen-mushroom-cap {
  animation: screen-mushroom-cap 2.08s 180ms cubic-bezier(0.12, 0.72, 0.22, 1) forwards;
}

.love-overlay {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(31, 11, 21, 0.66);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 360ms ease,
    visibility 0s linear 360ms;
  backdrop-filter: blur(12px);
}

.love-overlay.show {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 360ms ease;
}

.love-message {
  width: min(100%, 570px);
  padding: 38px 28px 34px;
  border: 1px solid rgba(255, 241, 235, 0.18);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(104, 41, 65, 0.96), rgba(45, 18, 31, 0.98));
  box-shadow: var(--shadow);
  text-align: center;
  transform: translateY(16px) scale(0.96);
  transition: transform 420ms cubic-bezier(0.2, 0.76, 0.25, 1);
}

.love-overlay.show .love-message {
  transform: translateY(0) scale(1);
}

.love-cursor {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  overflow: hidden;
  pointer-events: none;
}

.love-cursor.active {
  display: block;
}

.love-cursor-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.love-cursor-trail {
  fill: none;
  stroke: rgba(247, 200, 202, 0.88);
  stroke-linecap: round;
  stroke-width: 4;
  filter: drop-shadow(0 0 5px rgba(226, 142, 159, 0.72));
}

.love-cursor-head {
  position: fixed;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #ffd3d4;
  font-size: 23px;
  line-height: 1;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.72),
    0 0 12px rgba(226, 142, 159, 0.9);
  transform-origin: center;
  will-change: transform;
}

@media (min-width: 681px) and (hover: hover) and (pointer: fine) {
  html.custom-cursor,
  html.custom-cursor * {
    cursor: none !important;
  }
}

.love-heart {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(226, 142, 159, 0.16);
  color: var(--rose-light);
  font-size: 39px;
  animation: pulse-heart 1.3s ease-in-out infinite;
}

.love-message p {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.love-message h2 {
  margin: 0 auto 25px;
  font-size: clamp(46px, 7vw, 66px);
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes button-pop {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  45% {
    opacity: 1;
    transform: scale(1.18);
  }
  100% {
    opacity: 0;
    transform: scale(0.1);
  }
}

@keyframes catch-me {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes sticker-reaction {
  0% {
    opacity: 0;
    transform: translateY(16px) rotate(var(--sticker-rotate)) scale(0.36);
  }
  16% {
    opacity: 1;
    transform: translateY(-4px) rotate(var(--sticker-rotate)) scale(1.08);
  }
  72% {
    opacity: 1;
    transform: translateY(-12px) rotate(var(--sticker-rotate)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-34px) rotate(var(--sticker-rotate)) scale(0.9);
  }
}

@keyframes penguin-recoil {
  0%,
  100% {
    transform: translateY(-50%) rotate(0);
  }
  35% {
    transform: translate(-13px, -50%) rotate(-9deg);
  }
}

@keyframes penguin-waddle {
  0% {
    transform: translateY(1px) rotate(-3deg);
  }
  100% {
    transform: translateY(-3px) rotate(3deg);
  }
}

@keyframes penguin-wave {
  0% {
    transform: rotate(3deg);
  }
  100% {
    transform: rotate(-18deg);
  }
}

@keyframes penguin-blink {
  0%,
  42%,
  48%,
  100% {
    transform: scaleY(1);
  }
  45% {
    transform: scaleY(0.12);
  }
}

@keyframes penguin-tears {
  0% {
    opacity: 0.72;
    transform: translateY(0) scaleY(0.86);
  }
  100% {
    opacity: 1;
    transform: translateY(8px) scaleY(1.22);
  }
}

@keyframes heart-blast-grow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.08);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.94);
  }
  66% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.36);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.82);
  }
}

@keyframes blast-flash {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  18% {
    opacity: 0.96;
  }
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

@keyframes blast-stem {
  0% {
    opacity: 0;
    transform: scaleY(0.08);
  }
  24% {
    opacity: 0.88;
  }
  100% {
    opacity: 0;
    transform: scaleY(1.44);
  }
}

@keyframes mushroom-heart-rise {
  0% {
    opacity: 0;
    transform: translateY(88px) scale(0.12);
  }
  28% {
    opacity: 0.98;
    transform: translateY(30px) scale(0.86);
  }
  72% {
    opacity: 0.94;
    transform: translateY(-16px) scale(1.18);
  }
  100% {
    opacity: 0;
    transform: translateY(-58px) scale(1.42);
  }
}

@keyframes blast-ring {
  0% {
    opacity: 0.84;
    transform: scale(0.1);
  }
  100% {
    opacity: 0;
    transform: scale(3.7);
  }
}

@keyframes heart-cloud {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.2);
  }
  34% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-92px) scale(1.46);
  }
}

@keyframes particle-burst {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0);
  }
}

@keyframes pulse-heart {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.09);
  }
}

@keyframes screen-blast-fade {
  0% {
    opacity: 0;
  }
  9%,
  63% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes screen-blast-grow {
  0% {
    opacity: 1;
    transform: scale(0.04);
  }
  40% {
    opacity: 1;
    transform: scale(2.6);
  }
  100% {
    opacity: 0;
    transform: scale(5.1);
  }
}

@keyframes screen-mushroom-stem {
  0% {
    opacity: 0;
    transform: scaleY(0.04);
  }
  28%,
  72% {
    opacity: 0.94;
  }
  100% {
    opacity: 0;
    transform: scaleY(1.4);
  }
}

@keyframes screen-mushroom-cap {
  0% {
    opacity: 0;
    transform: translateY(40vh) scale(0.08);
  }
  24% {
    opacity: 0.98;
  }
  68% {
    opacity: 0.92;
    transform: translateY(0) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translateY(-12vh) scale(1.34);
  }
}

@media (max-width: 680px) {
  body {
    background-position: center;
  }

  .app-shell {
    width: min(100% - 22px, 920px);
    padding-top: 12px;
  }

  .topbar {
    margin-bottom: 10px;
  }

  .card {
    min-height: calc(100vh - 86px);
    border-radius: 24px;
  }

  .screen {
    min-height: calc(100vh - 89px);
    padding: 42px 19px 28px;
  }

  .intro-screen {
    padding-top: clamp(66px, 13vh, 104px);
  }

  h1 {
    font-size: clamp(49px, 15vw, 74px);
  }

  h2 {
    font-size: clamp(42px, 12vw, 61px);
  }

  .lead br {
    display: none;
  }

  .mood-grid,
  .direction-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .mood-grid .choice-card {
    min-height: 128px;
  }

  .choice-card {
    min-height: 76px;
    padding: 14px;
  }

  .choice-text strong {
    font-size: 19px;
  }

  .result-actions {
    flex-direction: column;
  }

  .intro-memory {
    right: 18px;
    bottom: 24px;
    width: 112px;
    padding-bottom: 22px;
    opacity: 0.9;
  }

  .intro-memory img {
    height: 84px;
  }

  .intro-memory figcaption {
    font-size: 8px;
  }

  .step-memory {
    width: 204px;
    min-height: 64px;
    margin-top: 13px;
    margin-left: 4px;
    padding: 4px;
  }

  .step-memory img {
    width: 52px;
    height: 52px;
  }

  .step-memory figcaption {
    font-size: 10px;
  }

  .photo-polaroid {
    width: 90px;
  }

  .photo-polaroid img {
    height: 76px;
  }

  .escape-sticker {
    width: 88px;
    height: 88px;
  }

  .footer {
    display: none;
  }
}

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