:root {
  --desk: #E2E6F6;
  --paper: #FFFDF8;
  --grid: #D5DAEA;
  --ink: #3E414B;
  --ink-soft: #6B7082;
  --pink: #F93073;
  --pink-deep: #D61B58;
  --teal: #48E6B3;
  --teal-deep: #1F9B92;
  --lilac: #A8B4DC;
  --yellow: #EBFA81;
  --yellow-ink: #3E414B;
  --line: #D5DAEA;
  --panel: #F4F6FC;
  --pen-blue: #1F9B92;
  --pen-pink: #F93073;
  --pen-purple: #D61B58;
  --pen-teal: #1F9B92;
  --pen-orange: #1F9B92;
  --shadow: rgba(62, 65, 75, .45);
  --pad: clamp(22px, 5vw, 52px);
  --gap: clamp(22px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.cake-return { scroll-behavior: auto; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(249, 48, 115, .07), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(72, 230, 179, .12), transparent 30%),
    var(--desk);
  color: var(--ink);
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: clamp(18px, 4vw, 48px) 14px 8px;
}

.desk { max-width: 960px; margin: 0 auto; }
@media (min-width: 1180px) {
  .desk { max-width: 1280px; }
}

.leaf {
  --tilt: 0deg;
  position: relative;
  max-width: 820px;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 27px,
      rgba(107, 112, 130, .22) 27px,
      rgba(107, 112, 130, .22) 28px
    ),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 27px,
      rgba(107, 112, 130, .22) 27px,
      rgba(107, 112, 130, .22) 28px
    );
  background-size: 28px 28px;
  background-position: 0 0;
  padding: clamp(32px, 5vw, 54px) var(--pad);
  margin: 0 auto var(--gap);
  border-radius: 6px;
  box-shadow: 0 18px 40px -24px rgba(62, 65, 75, .55);
  opacity: 0;
  transform: translateY(26px) rotate(calc(var(--tilt) + 1.6deg));
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.leaf.is-in {
  opacity: 1;
  transform: translateY(0) rotate(var(--tilt));
}
.leaf--wide { max-width: 860px; }
.leaf--note {
  max-width: 640px;
  margin-left: auto;
  margin-right: 3%;
  padding: 34px 36px 32px;
}
.leaf--board {
  max-width: 920px;
  padding-top: 20px;
  padding-bottom: 40px;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 27px,
      rgba(107, 112, 130, .12) 27px,
      rgba(107, 112, 130, .12) 28px
    ),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 27px,
      rgba(107, 112, 130, .12) 27px,
      rgba(107, 112, 130, .12) 28px
    );
}
#friends-wall {
  padding-top: 44px;
  background-image: none;
}
.leaf--envelope {
  max-width: 860px;
  background-color: var(--panel);
  box-shadow:
    0 0 0 2px var(--pink) inset,
    0 18px 40px -24px rgba(214, 27, 88, .45);
}
.leaf--cake {
  max-width: 860px;
  text-align: center;
  overflow: visible;
}
@media (min-width: 980px) {
  .leaf--cake {
    max-width: 1120px;
    padding-right: clamp(48px, 5vw, 76px);
    padding-bottom: clamp(44px, 5vw, 68px);
  }
}
.leaf--cake.is-party {
  z-index: 4;
}
.leaf--cake.is-party .cake-spark {
  animation-duration: .55s;
}
.cake-flash {
  position: absolute;
  inset: -2%;
  pointer-events: none;
  z-index: 6;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 38%, rgba(235, 250, 129, .62), rgba(249, 48, 115, .2) 38%, transparent 72%);
  opacity: 0;
}
.leaf--cake.is-party .cake-flash {
  display: block;
  animation: cake-flash 3.2s ease-out;
}
.leaf--cake > .tape {
  display: block;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}
.leaf--tickets {
  max-width: 1040px;
  padding-top: 36px;
  padding-bottom: 40px;
}
.leaf--kit {
  max-width: 860px;
  padding-top: 24px;
  padding-bottom: 36px;
}
.leaf--final {
  max-width: 860px;
  text-align: center;
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: 42px;
}
#cover .doodle,
.leaf--final .doodle,
.leaf--final::after {
  display: none;
}

.leaf--tilt-a { --tilt: -1.1deg; }
.leaf--tilt-b { --tilt: .8deg; }
.leaf--tilt-c { --tilt: -.5deg; }

.leaf--spiral::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--pad) - 18px);
  width: 2px;
  background: var(--pink);
  opacity: .45;
  pointer-events: none;
}

@media (max-width: 720px) {
  :root { --pad: 16px; --gap: 16px; }
  html, body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }
  body {
    padding-top: 12px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .desk { max-width: 100%; }
  #cover h1 {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }
  #cover h1 .t2 { white-space: normal; }
  .tape { max-width: 100%; white-space: normal; }
  .form-row .label,
  .form-row input.ans,
  .form-row p.ans { min-width: 0; }
  .tickets-cta .muted,
  .leaf--final .cta-note { white-space: normal; }
  .leaf,
  .leaf--note,
  .leaf--wide,
  .leaf--board,
  .leaf--cake,
  .leaf--tickets,
  .leaf--kit,
  .leaf--final,
  .leaf--envelope {
    max-width: 100%;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: hidden;
  }
  .leaf--note { margin-right: auto; }
  .leaf--tilt-a,
  .leaf--tilt-b,
  .leaf--tilt-c { --tilt: 0deg; }
  .leaf--spiral::before { left: calc(var(--pad) - 12px); }
}
@media (max-width: 380px) {
  :root { --pad: 14px; --gap: 14px; }
  body {
    padding-left: 6px;
    padding-right: 6px;
  }
  .leaf,
  .leaf--note,
  .leaf--wide,
  .leaf--board,
  .leaf--cake,
  .leaf--tickets,
  .leaf--kit,
  .leaf--final,
  .leaf--envelope {
    padding-left: 14px;
    padding-right: 14px;
  }
}

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); margin-bottom: .5em; }
.h2wrap { display: flex; align-items: center; gap: 10px; margin-bottom: .55em; }
.h2wrap h2 { margin: 0; }
p { margin: 0 0 1em; max-width: 58ch; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.doodle { position: absolute; pointer-events: none; }
.doodle-inline { flex: none; display: block; height: auto; aspect-ratio: 1; }

.swatch {
  display: inline-block;
  width: 18px; height: 18px;
  margin: 0 4px -3px;
  border-radius: 46% 54% 60% 40% / 55% 45% 60% 40%;
  box-shadow: 0 2px 5px -2px rgba(0,0,0,.3);
  transform: rotate(-6deg);
}
a.textlink { color: var(--pen-purple); text-underline-offset: 2px; }

.btn {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  color: #fff;
  background: var(--pink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 22px -10px rgba(214, 27, 88, .75);
  transition: transform .16s ease, box-shadow .16s, background .16s;
}
.btn-ico { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover {
  background: var(--pink-deep);
  transform: translateY(-3px);
  box-shadow: 0 16px 26px -12px rgba(214, 27, 88, .85);
}
.btn:hover .btn-ico { animation: ico-pop .38s ease; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.cta-note { margin-top: 12px; color: var(--ink-soft); font-size: .92rem; max-width: 46ch; }
:focus-visible { outline: 3px solid var(--pen-purple); outline-offset: 2px; border-radius: 8px; }

.spiral {
  position: absolute;
  top: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 22px;
  opacity: .42;
  pointer-events: none;
}
.spiral span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--desk);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}

.tape {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: .82rem;
  padding: 6px 16px;
  transform: rotate(-2deg);
  box-shadow: 0 5px 12px -7px rgba(0,0,0,.4);
  margin-bottom: 22px;
}
.tape--center { margin-bottom: 18px; }

#cover {
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(56px, 6.5vw, 80px);
}
#cover .cover-copy { position: relative; z-index: 1; }
.cover-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0 0 18px;
}
.cover-logo {
  display: inline-block;
  margin: 0;
  text-decoration: none;
  flex: 0 0 auto;
}
#cover .cover-brand .tape {
  margin-bottom: 0;
}
.cover-logo img {
  display: block;
  height: clamp(40px, 6vw, 52px);
  width: auto;
}
#cover h1 {
  font-size: clamp(2.3rem, 6.4vw, 3.9rem);
  line-height: .95;
  color: #51BCBA;
  margin-bottom: .1em;
}
#cover h1 .t2 {
  color: #F93073;
  white-space: nowrap;
}
#cover .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  font-weight: 700;
  max-width: 52ch;
  margin: 1.1em 0 1.4em;
}
#cover .cover-heart {
  top: 36px;
  right: 28px;
  width: 40px;
  color: var(--pink);
}
#cover .cover-star {
  top: 108px;
  right: 96px;
  width: 26px;
  color: var(--teal);
}
#cover .cover-flower {
  top: 168px;
  right: 34px;
  width: 36px;
  color: var(--lilac);
}
#cover .cover-spark {
  top: 78px;
  right: 168px;
  width: 22px;
  color: var(--yellow);
}
#cover .cover-balloon {
  top: 210px;
  right: 118px;
  width: 28px;
  color: var(--pink);
}
.cover-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(680px, 100%);
  margin: 6px auto 0;
}
.hero-card {
  --tilt: -1.2deg;
  --hero: var(--pink);
  --hero-soft: rgba(249, 48, 115, .28);
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  box-shadow: none;
  transform: rotate(var(--tilt));
  transform-origin: 50% 80%;
  animation: hero-bob 3.8s ease-in-out infinite;
}
.hero-card--cake {
  --tilt: 1.3deg;
  --hero: var(--teal);
  --hero-soft: rgba(72, 230, 179, .38);
  animation-delay: .35s;
  overflow: visible;
}
.hero-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
}
.hero-card--cake img:not(.hero-sticker),
.hero-card--cake .hero-card-shine {
  border-radius: 22px;
}
.hero-card img.hero-sticker {
  position: absolute;
  z-index: 4;
  width: 46%;
  height: auto;
  aspect-ratio: auto;
  right: -16%;
  top: -1%;
  object-fit: contain;
  transform: rotate(7deg);
  pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(62, 65, 75, .28));
}
.hero-card-glow {
  display: none;
}
.hero-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.55) 48%, transparent 68%);
  transform: translateX(-130%);
  animation: hero-shine 3.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.hero-card-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: block;
  margin: 0;
  text-align: center;
  font-weight: 800;
  font-size: clamp(.92rem, 2vw, 1.08rem);
  letter-spacing: -.01em;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 10px 18px -10px rgba(214, 27, 88, .75);
}
.hero-card--cake .hero-card-label {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 10px 18px -10px rgba(198, 214, 74, .7);
}
@media (hover: hover) and (pointer: fine) {
  .hero-card:hover {
    animation-play-state: paused;
    transform: rotate(0deg) translateY(-10px) scale(1.045);
    box-shadow:
      0 26px 40px -16px rgba(62, 65, 75, .48),
      0 0 0 5px var(--hero-soft);
    z-index: 2;
  }
  .hero-card:hover .hero-card-glow { animation-duration: 1.4s; }
  .hero-card:hover .hero-card-shine { animation: hero-shine .7s ease-out; }
  .hero-card:hover img:not(.hero-sticker) { filter: saturate(1.08) brightness(1.03); }
}
.hero-card:active,
.hero-card.is-pop {
  animation: hero-pop .55s cubic-bezier(.2, .8, .2, 1);
}
.hero-card:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  #cover {
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
    margin-bottom: 16px;
  }
  #cover .cover-copy { max-width: 100%; }
  #cover .lead { max-width: 46ch; }
  #cover .cover-heart { right: 14px; top: 48px; width: 34px; }
  #cover .cover-star { right: 56px; top: 96px; width: 20px; }
  #cover .cover-flower,
  #cover .cover-spark,
  #cover .cover-balloon { display: none; }
  #final {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  #final .final-friend { margin-top: 2px; }
  .cover-actions {
    gap: 10px;
    width: min(680px, 100%);
  }
  .hero-card { --tilt: 0deg; }
  .hero-card-label {
    left: 6px;
    right: 6px;
    bottom: 8px;
    font-size: clamp(.7rem, 3.2vw, .95rem);
    padding: 8px 6px;
  }
  .hero-card img.hero-sticker {
    width: 42%;
    right: -2%;
    top: -8%;
    transform: rotate(8deg);
  }
}

.fold {
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 58px 58px 0;
  border-color: transparent var(--panel) transparent transparent;
  cursor: pointer;
}
.form-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  flex-wrap: wrap;
}
.form-row .label { font-weight: 600; min-width: 148px; flex: 0 0 auto; }
.form-row .ans {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.35;
}
.form-row textarea.ans,
.form-row input.ans {
  flex: 1;
  min-width: 160px;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--form-accent, var(--pen-blue));
  background: transparent;
  border: none;
  border-bottom: 1.5px dotted var(--form-accent, var(--line));
  padding: 0 0 3px;
}
.form-row textarea.ans {
  resize: vertical;
  min-height: 3.2em;
  line-height: 1.4;
}
#your-anketa.has-accent .form-row input.ans:focus,
#your-anketa.has-accent .form-row input.ans:focus-visible {
  outline: 2px solid var(--form-accent);
  outline-offset: 3px;
  border-bottom-style: solid;
}
.form-row input.ans::placeholder {
  color: #B4B9C9;
  font-weight: 400;
  font-size: 1rem;
}
.form-row p.ans {
  flex: 1;
  min-width: 160px;
  margin: 0;
  max-width: none;
  color: var(--friend-text, var(--pen-blue));
  border-bottom: 1.5px dotted var(--line);
  padding: 0 0 3px;
}
.friend-sheet .form-row:has(.a-color) { align-items: center; }
.friend-sheet .form-row p.ans.a-color {
  display: flex;
  align-items: center;
  border-bottom: none;
  padding: 0;
  min-width: 0;
}
.friend-sheet .a-color .swatch {
  width: 40px;
  height: 40px;
  margin: 0;
}
.form-row p.ans.a-mood,
.card .a-mood {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: none;
}
.form-row p.ans.a-mood img,
.card .a-mood img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: transparent;
}
.form-row--stack { flex-direction: column; align-items: stretch; gap: 8px; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 18px;
}
#your-anketa .form-actions {
  flex-wrap: nowrap;
  justify-content: stretch;
  gap: 14px;
  margin-top: 22px;
}
#your-anketa .form-actions .look-toggle,
#your-anketa .form-actions .btn {
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
}
#your-anketa .form-actions .look-toggle,
#your-anketa .form-actions .look-toggle:hover,
#your-anketa .form-actions .look-toggle.is-open {
  transform: none;
}
@media (max-width: 520px) {
  #your-anketa .form-actions {
    gap: 8px;
  }
  #your-anketa .form-actions .look-toggle,
  #your-anketa .form-actions .btn {
    padding: 12px 8px;
    font-size: .84rem;
  }
}
.look-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(#6AF0C6, var(--teal));
  border: none;
  border-radius: 14px 14px 14px 6px;
  padding: 12px 18px;
  cursor: pointer;
  transform: rotate(-1.4deg);
  box-shadow: 0 3px 0 #2BB894, 0 8px 16px -8px rgba(72, 230, 179, .45);
}
.look-toggle .btn-ico { width: 1em; height: 1em; color: var(--ink); }
.look-toggle:hover { transform: rotate(0) translateY(-1px); }
.look-toggle.is-open { box-shadow: 0 1px 0 #2BB894, 0 4px 10px -6px rgba(72, 230, 179, .4); }
.look-panel {
  display: grid;
  grid-template-rows: 0fr;
  position: relative;
  margin: 0;
  padding: 0 18px;
  background: rgba(255, 253, 248, .88);
  border-radius: 14px;
  box-shadow: none;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows .38s ease, opacity .28s ease, margin .38s ease, padding .38s ease, box-shadow .38s ease;
}
.look-panel.is-open {
  grid-template-rows: 1fr;
  margin: 14px 0 4px;
  padding: 18px 18px 16px;
  opacity: 1;
  box-shadow: 0 1px 3px rgba(62, 65, 75, .08), 0 12px 28px -16px rgba(62, 65, 75, .35);
}
.look-panel-body { min-height: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .look-panel { transition: none; }
}
.look-panel .tape {
  position: absolute;
  top: -11px;
  left: 16px;
  margin: 0;
}
.look-hint { margin: 0 0 12px; max-width: 54ch; }
.look-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
@media (max-width: 640px) {
  .look-pair { grid-template-columns: 1fr; }
}
.look-secret-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pink-deep);
}
.look-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--look-bg, none);
  background-size: cover;
  background-position: center;
  opacity: .2;
  border-radius: inherit;
}
#your-anketa .anketa-head,
#your-anketa form,
#friend-content {
  position: relative;
  z-index: 1;
}
.leaf.look-bg-none .look-wash,
.card.look-bg-none .look-wash { display: none; }
.cbtn--white { box-shadow: 0 0 0 1px var(--line), 0 3px 8px -3px rgba(0,0,0,.35); }
.look-group { margin: 16px 0 0; }
.look-group .label { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: .88rem; }
.look-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.look-chip {
  font-family: inherit;
  font-size: .86rem;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 3px 8px -5px rgba(62, 65, 75, .35);
}
.look-chip.is-on {
  background: #F4FBD0;
  border-color: #C6D64A;
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(235, 250, 129, .45);
}
.look-chip--paper {
  min-width: 92px;
  box-shadow: inset 0 0 0 1px rgba(62, 65, 75, .06), 0 3px 8px -5px rgba(62, 65, 75, .35);
}
.look-chip--paper.is-on { outline: 2px solid var(--ink); outline-offset: 1px; }
.look-chip--bg {
  min-width: 86px;
  background-image: var(--chip-bg, none);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(62, 65, 75, .08), 0 3px 8px -5px rgba(62, 65, 75, .35);
}
.look-chip--bg.is-on {
  background-image: var(--chip-bg, none);
  color: var(--ink);
  box-shadow: 0 0 0 2px #C6D64A;
}
.card-secret {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--pink-deep);
}
.leaf.look-paper-cream,
.card.look-paper-cream { --paper: #FFFDF8; --grid-line: rgba(107, 112, 130, .2); }
.leaf.look-paper-pink,
.card.look-paper-pink { --paper: #FFF3F7; --grid-line: rgba(249, 48, 115, .18); }
.leaf.look-paper-mint,
.card.look-paper-mint { --paper: #F1FBF7; --grid-line: rgba(72, 230, 179, .32); }
.leaf.look-paper-lilac,
.card.look-paper-lilac { --paper: #F3F5FC; --grid-line: rgba(168, 180, 220, .45); }
.leaf.look-paper-yellow,
.card.look-paper-yellow { --paper: #FBFCE8; --grid-line: rgba(198, 214, 74, .28); }
.leaf[class*="look-paper-"],
.card[class*="look-paper-"] { background-color: var(--paper); }
.leaf.look-grid-cells {
  background-image:
    repeating-linear-gradient(to bottom, transparent 0, transparent 27px, var(--grid-line) 27px, var(--grid-line) 28px),
    repeating-linear-gradient(to right, transparent 0, transparent 27px, var(--grid-line) 27px, var(--grid-line) 28px);
  background-size: 28px 28px;
}
.leaf.look-grid-lines {
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, var(--grid-line) 27px, var(--grid-line) 28px);
  background-size: 28px 28px;
}
.leaf.look-grid-dots {
  background-image: radial-gradient(circle, var(--grid-line) 1.15px, transparent 1.25px);
  background-size: 22px 22px;
}
.leaf.look-grid-none { background-image: none; }
.leaf.look-no-margin.leaf--spiral::before { display: none; }
.leaf.look-no-spiral .spiral { display: none; }
#friend-secret-btn,
#friend-secret-btn:hover,
#friend-secret-btn:focus {
  color: #D61B58;
  background: #FFD0E0;
  box-shadow: 0 3px 0 #F3A0BC, 0 8px 16px -8px rgba(214, 27, 88, .35);
}
#friend-secret-btn .btn-ico { color: #D61B58; }
.pen-blue { color: var(--pen-blue); }
.pen-pink { color: var(--pen-pink); }
.pen-purple { color: var(--pen-purple); }
.pen-teal { color: var(--pen-teal); }
.pen-orange { color: var(--pen-orange); }
.turn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--pink-deep);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 16px 0 0;
  text-align: center;
}
.turn-arrow {
  width: 22px;
  height: 22px;
  transform: rotate(90deg);
  animation: turn-bounce 1.4s ease-in-out infinite;
}

#your-anketa,
#cake {
  scroll-margin-top: 16px;
}
.leaf--anketa {
  padding-top: 20px;
  padding-bottom: 40px;
}
#about { padding-top: 28px; }
#your-anketa { padding-top: 28px; }
#your-anketa .anketa-head {
  margin-bottom: 22px;
}
.anketa-top { margin-bottom: 14px; }
.anketa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  min-height: 42px;
}
.anketa-head .h2wrap { margin: 0; }
.anketa-head .tape {
  margin-bottom: 0;
  flex: none;
  transform: none;
  animation: none;
}
#about .about-titles {
  display: flex;
  flex-direction: column;
  gap: 0;
}
#about .about-kicker {
  margin: 0;
  color: var(--teal-deep);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.05;
}
#about .anketa-head {
  margin-bottom: 0;
  min-height: 0;
  align-items: flex-start;
}
#about .anketa-head h2 {
  color: var(--pink);
  line-height: 1.05;
}
#about .anketa-name {
  color: #5E6573;
  margin-top: 8px;
}
.mood-sticker {
  position: absolute;
  top: 86px;
  right: 22px;
  width: 96px;
  height: 96px;
  z-index: 3;
  pointer-events: none;
  font-size: 4.2rem;
}
.anketa-card .a-mood {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
}
.anketa-card .a-mood .mood-emoji {
  font-size: 3rem;
}
.anketa-card .mood-caption {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}
.anketa-name {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 4px 0 12px;
  max-width: none;
}
.anketa-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .92rem;
  font-weight: 600;
  box-shadow: 0 8px 16px -14px rgba(62, 65, 75, .5);
}
.fact:nth-child(1) { transform: rotate(-1.4deg); }
.fact:nth-child(2) { transform: rotate(1.1deg); }
.fact:nth-child(3) { transform: rotate(-.6deg); }
.fact--color { border-color: #FFD0E0; background: #FFF5F8; }
.anketa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.anketa-card {
  background: #fff;
  border-radius: 16px;
  padding: 13px 16px 14px;
  box-shadow: 0 1px 3px rgba(62, 65, 75, .08), 0 4px 14px rgba(62, 65, 75, .1);
}
.anketa-card:nth-child(odd) { transform: rotate(-.5deg); }
.anketa-card:nth-child(even) { transform: rotate(.5deg); }
.anketa-card--wide {
  grid-column: 1 / -1;
  transform: none;
  padding: 12px 16px;
}
.anketa-card .q {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.q-ico { width: 16px; height: 16px; flex: none; }
.anketa-card .a {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: none;
}
.anketa-card .a-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}
.anketa-grid--foot { margin-top: 10px; }
.anketa-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 16px;
  margin-top: 32px;
}
.invite-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.invite-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: .86rem;
}
.turn-btn { text-decoration: none; }
.join-note {
  margin: 4px 0 18px;
  max-width: none;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
}
.join-note[hidden] { display: none; }

.sky {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  width: min(1200px, calc(100vw - 24px));
  max-width: none;
  margin: clamp(28px, 4.2vw, 52px) 0 clamp(32px, 4.8vw, 56px);
  margin-left: calc(50% - min(600px, 50vw - 12px));
  padding: 8px 0;
}
.sky[hidden] { display: none; }
.sky-cloud {
  --tilt: -0.7deg;
  --cloud-ratio: 1.48 / 1;
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 230'%3E%3Cpath d='M40 18h260a22 22 0 0 1 22 22v118a22 22 0 0 1-22 22H168l-16 34-10-34H40a22 22 0 0 1-22-22V40a22 22 0 0 1 22-22z'/%3E%3C/svg%3E");
  appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  aspect-ratio: var(--cloud-ratio);
  min-height: 0;
  padding: 8% 10% 18%;
  text-align: center;
  border: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  transform: rotate(var(--tilt));
  animation: sky-float-up 5.2s ease-in-out infinite;
}
.sky-cloud::before {
  content: "";
  position: absolute;
  inset: -6% -4%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #fff 0%, #F7F9FF 70%, #F4F6FC 100%);
  -webkit-mask-image: var(--cloud);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: var(--cloud);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-position: center;
  filter: drop-shadow(0 12px 16px rgba(62, 65, 75, .16));
}
.sky-cloud:nth-child(even)::before { transform: scaleX(-1); }
.sky-cloud > * { position: relative; z-index: 1; }
.sky-cloud--1 {
  --tilt: -.7deg;
  animation: sky-float-up 5.1s ease-in-out infinite;
}
.sky-cloud--2 {
  --tilt: .85deg;
  animation: sky-sway 6.4s ease-in-out infinite;
  animation-delay: .7s;
}
.sky-cloud--3 {
  --tilt: -.35deg;
  animation: sky-orbit 7.1s ease-in-out infinite;
  animation-delay: 1.15s;
}
.sky-cloud--4 {
  --tilt: 1deg;
  animation: sky-sink 5.8s ease-in-out infinite;
  animation-delay: .35s;
}
.sky-cloud--5 {
  --tilt: -.9deg;
  animation: sky-orbit 6.6s ease-in-out infinite reverse;
  animation-delay: 1.4s;
}
.sky-cloud--6 {
  --tilt: .4deg;
  animation: sky-sway 4.9s ease-in-out infinite reverse;
  animation-delay: .95s;
}
.sky-cloud--hobby,
.sky-cloud--occupation {
  align-items: center;
  text-align: center;
  align-self: start;
  overflow: visible;
}
.sky-cloud--hobby .sky-words,
.sky-cloud--occupation .sky-words { flex: none; }
.sky-cloud--fear,
.sky-cloud--give_anketa_to {
  align-items: center;
  text-align: center;
  align-self: start;
  overflow: visible;
}
.sky-cloud--fear .sky-words,
.sky-cloud--give_anketa_to .sky-words { flex: none; }
.sky-cloud .tape {
  flex: none;
  margin: 0;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sky-words {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 10px;
  width: 100%;
}
.sky-word {
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #EEF1FA;
  box-shadow: inset 0 0 0 1px rgba(62, 65, 75, .06);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sky-swatch {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 3px 8px -3px rgba(62, 65, 75, .35);
}
.sky-mood {
  width: auto;
  height: auto;
  flex: none;
  font-size: 2rem;
}
.sky-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 0;
  color: var(--pink-deep);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.sky-more::before {
  content: "";
  width: 18px;
  height: 12px;
  background: var(--teal-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-6l-3 4v-4H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-6l-3 4v-4H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .sky-cloud:hover {
    animation-play-state: paused;
    transform: rotate(0deg) translateY(-6px) scale(1.03);
    z-index: 2;
  }
  .sky-cloud:hover::before {
    filter:
      drop-shadow(0 16px 20px rgba(62, 65, 75, .22))
      drop-shadow(0 0 0 4px rgba(72, 230, 179, .42));
  }
}
.sky-cloud:focus-visible {
  outline: none;
}
.sky-cloud:focus-visible::before {
  filter:
    drop-shadow(0 12px 16px rgba(62, 65, 75, .16))
    drop-shadow(0 0 0 3px var(--pink));
}
.cloud-sheet {
  width: min(640px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  transform: translateY(18px) scale(.96);
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 48, 115, .42) transparent;
}
.cloud-sheet::-webkit-scrollbar { width: 5px; }
.cloud-sheet::-webkit-scrollbar-track { background: transparent; }
.cloud-sheet::-webkit-scrollbar-thumb {
  background: rgba(249, 48, 115, .38);
  border-radius: 999px;
}
.cloud-sheet h3.tape {
  display: inline-block;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: .82rem;
}
.cloud-search {
  display: block;
  margin: 0 0 14px;
}
.cloud-search[hidden] { display: none; }
.cloud-search input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  border: none;
  border-bottom: 1.5px dotted var(--line);
  background: transparent;
  padding: 6px 0 5px;
  color: var(--ink);
}
.cloud-results { display: grid; gap: 10px; }
.cloud-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cloud-moods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cloud-mood {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  font-weight: 700;
}
.cloud-mood .mood-emoji {
  font-size: 2.6rem;
  line-height: 1;
}
.cloud-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  flex: none;
}
.cloud-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 8px 7px 12px;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  line-height: 1.25;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 0 rgba(62, 65, 75, .04),
    0 4px 10px -6px rgba(62, 65, 75, .28),
    0 0 0 1px rgba(62, 65, 75, .07);
}
.cloud-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.cloud-swatch {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.cloud-swatch i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgba(62, 65, 75, .35);
}
.cloud-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cloud-note {
  position: relative;
  margin: 0;
  padding: 12px 40px 12px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 1px 0 rgba(62, 65, 75, .04),
    0 6px 14px -8px rgba(62, 65, 75, .24),
    0 0 0 1px rgba(62, 65, 75, .08);
  font-weight: 600;
  line-height: 1.35;
}
.cloud-note .cloud-count {
  position: absolute;
  top: 10px;
  right: 10px;
}
.cloud-note p {
  margin: 0;
  max-width: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.cloud-note.is-open p {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.cloud-note .who {
  display: inline-block;
  margin-top: 8px;
  color: var(--pink-deep);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.cloud-empty {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
}
@media (max-width: 1100px) {
  .sky { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .mood-pick {
    justify-content: center;
    gap: 10px 14px;
  }
  .mood-btn { width: 64px; height: 64px; }
  .mood-sticker {
    width: 72px;
    height: 72px;
    top: 72px;
    right: 16px;
    font-size: 3.2rem;
  }
  .sky {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 22px 0 26px;
    margin-left: 0;
  }
  main.desk { display: flex; flex-direction: column; }
  #cake { order: 1; }
  #sky-top { order: 2; }
  #final { order: 3; }
  #sky-bottom { order: 4; }
  .sky-cloud {
    --tilt: 0deg;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8% 10% 18%;
  }
  .sky-words {
    align-items: center;
    align-content: center;
    justify-content: center;
  }
  .cloud-notes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .anketa-grid { grid-template-columns: 1fr; }
  .anketa-card,
  .anketa-card--wide { transform: none; }
  .anketa-head { flex-wrap: wrap; }
}

.secret { margin-top: 14px; }
.secret-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(#F7FCE8, var(--yellow));
  border: none;
  border-radius: 14px 14px 14px 6px;
  padding: 10px 18px;
  cursor: pointer;
  transform: rotate(-1.5deg);
  box-shadow: 0 3px 0 #C6D64A, 0 8px 16px -8px rgba(122, 90, 18, .45);
}
.secret-btn .btn-ico { width: 1em; height: 1em; color: var(--ink); }
.secret-btn:hover { transform: rotate(0) translateY(-1px); }
#secret-btn,
#secret-btn:hover,
#secret-btn:focus {
  color: #D61B58;
  background: #FFD0E0;
  box-shadow: 0 3px 0 #F3A0BC, 0 8px 16px -8px rgba(214, 27, 88, .35);
}
#secret-btn .btn-ico { color: #D61B58; }
.secret-note {
  display: none;
  color: var(--pen-purple);
  font-weight: 600;
  margin-top: 10px;
  max-width: 36ch;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(62, 65, 75, .08), 0 4px 14px rgba(62, 65, 75, .1);
}
.secret.open .secret-note { display: block; }
.secret.open .secret-btn { box-shadow: 0 1px 0 #C6D64A, 0 4px 10px -6px rgba(122, 90, 18, .4); }
.turn-btn { transform: rotate(1.4deg); }
.turn-btn:hover { transform: rotate(0) translateY(-1px); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(62, 65, 75, .42);
  opacity: 0;
  transition: opacity .28s ease;
}
.modal-sheet {
  position: relative;
  width: min(480px, 100%);
  background: var(--paper);
  background-image:
    repeating-linear-gradient(to bottom, transparent 0, transparent 27px, rgba(107, 112, 130, .18) 27px, rgba(107, 112, 130, .18) 28px),
    repeating-linear-gradient(to right, transparent 0, transparent 27px, rgba(107, 112, 130, .18) 27px, rgba(107, 112, 130, .18) 28px);
  border-radius: 10px;
  padding: 28px 26px 26px;
  box-shadow: 0 24px 50px -20px rgba(62, 65, 75, .55);
  transform: translateY(18px) rotate(-2deg) scale(.94);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s ease;
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-sheet { opacity: 1; transform: translateY(0) rotate(-.6deg) scale(1); }
.modal-sheet.cloud-sheet { transform: translateY(18px) scale(.96); }
.modal.is-open .modal-sheet.cloud-sheet { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(62, 65, 75, .12);
}
.cloud-sheet .modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 6px 14px -6px rgba(214, 27, 88, .85);
}
.modal-kicker {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.modal-sheet h3 {
  margin: 0 0 12px;
  color: var(--pink-deep);
  font-size: 1.45rem;
}
.modal-text { margin: 0 0 14px; font-weight: 600; color: var(--pen-purple); max-width: none; }
.modal-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.modal-photos img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(62, 65, 75, .12);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  margin-top: 8px;
}
.card {
  --card-accent: var(--pink-deep);
  --paper: #fffdf8;
  --grid-line: rgba(107, 112, 130, .2);
  background-color: var(--paper);
  border: 1px solid rgba(62, 65, 75, .08);
  border-radius: 8px;
  padding: 22px 18px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 30px -20px rgba(62, 65, 75, .5);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card.look-grid-cells {
  background-image:
    repeating-linear-gradient(to bottom, transparent 0, transparent 21px, var(--grid-line) 21px, var(--grid-line) 22px),
    repeating-linear-gradient(to right, transparent 0, transparent 21px, var(--grid-line) 21px, var(--grid-line) 22px);
  background-size: 22px 22px;
}
.card.look-grid-lines {
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 21px, var(--grid-line) 21px, var(--grid-line) 22px);
  background-size: 22px 22px;
}
.card.look-grid-dots {
  background-image: radial-gradient(circle, var(--grid-line) 1.1px, transparent 1.2px);
  background-size: 18px 18px;
}
.card.look-grid-none { background-image: none; }
.card > :not(.look-wash) { z-index: 1; }
.card .card-marks { z-index: 4; }
.card .look-wash {
  z-index: 0;
  opacity: .18;
  border-radius: inherit;
}
.card:nth-child(3n+1) { transform: rotate(-1.4deg); }
.card:nth-child(3n+2) { transform: rotate(1.2deg); }
.card:nth-child(3n) { transform: rotate(-.6deg); }
.card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 22px 34px -18px rgba(62, 65, 75, .42);
  z-index: 2;
}
.card-marks {
  position: absolute;
  top: 8px;
  right: 6px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
}
.card .mood-badge {
  position: static;
  width: auto;
  height: auto;
  font-size: 2rem;
  line-height: 1;
}
.card .who { font-weight: 700; font-size: 1.05rem; margin: 8px 68px 2px 0; }
.card .city { color: var(--ink-soft); font-size: .9rem; margin-bottom: 12px; }
.card .qa { font-size: .95rem; margin-bottom: 10px; }
.card .qa .q { color: var(--ink-soft); display: block; font-size: .8rem; margin-bottom: 1px; }
.card .qa .a { font-weight: 500; font-size: 1.05rem; line-height: 1.3; }
.card .badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
  transform: rotate(-3deg);
  margin: 0;
  box-shadow: 0 4px 10px -6px rgba(62, 65, 75, .35);
}
.card .badge--star,
.friend-marks .tape.tape--star { background: #F93073; color: #fff; }
.card .badge--partner,
.friend-marks .tape.tape--partner { background: #3E414B; color: #fff; }
.card .badge--team,
.friend-marks .tape.tape--team { background: #E2E6F6; color: #3E414B; }
.card .badge--friend,
.friend-marks .tape.tape--friend { background: #48B6B3; color: #fff; }
.card .badge--new,
.friend-marks .tape.tape--new { background: #EBFA81; color: #3E414B; }
.card-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  margin: 4px 0 12px;
  background: #fff;
  box-shadow: 0 8px 18px -12px rgba(62, 65, 75, .45);
}
.card--star {
  padding-top: 16px;
  outline: 2px solid rgba(235, 250, 129, .9);
  box-shadow: 0 16px 30px -16px rgba(249, 48, 115, .28);
}

.leaf--stars {
  max-width: 920px;
  padding-top: 20px;
  padding-bottom: 40px;
}
#star-friends {
  padding-top: 44px;
}
.star-lead {
  margin: 2px 0 18px;
  max-width: none;
  color: var(--ink-soft);
  white-space: nowrap;
}
#star-friends .star-lead {
  margin-bottom: 40px;
}
.star-lead-br { display: none; }
@media (max-width: 720px) {
  .star-lead { white-space: normal; }
  .star-lead-br { display: block; }
}
.star-mark,
.leaf--stars .star-spark,
.leaf--stars .doodle-inline {
  filter:
    drop-shadow(0 0 0.7px rgba(58, 46, 74, .42))
    drop-shadow(0 0 0.7px rgba(58, 46, 74, .28))
    drop-shadow(0 1px 0 rgba(255, 253, 248, .7));
}
.leaf--stars .doodle-inline { width: 34px; color: #F0C53A; }
.star-spark { position: absolute; pointer-events: none; }
.star-spark--a { top: 12px; right: 16px; width: 40px; color: #F0C53A; }
.star-spark--b { bottom: 20px; left: 16px; width: 32px; color: var(--pink); }
.star-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  margin-top: 22px;
}
.leaf--stars .wall-all-wrap { margin-top: 40px; }
.wall-all--stars {
  background: var(--yellow);
  color: var(--ink);
  border-color: transparent;
}
@media (max-width: 900px) {
  .star-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .star-grid { grid-template-columns: 1fr; }
}
.wall-note {
  color: var(--pink-deep);
  font-weight: 600;
  text-align: center;
  margin: 22px auto 0;
  max-width: none;
}
.wall-empty {
  border: 2px dashed var(--line);
  background: rgba(255,255,255,.7);
  padding: 22px 18px;
  text-align: center;
  color: var(--pen-purple);
  font-weight: 600;
}

.cards--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 1180px) {
  .leaf--board,
  .leaf--stars,
  #friends-catalog { max-width: 1240px; }
  #friends-wall .cards--trio {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  #friends-catalog .cards--trio {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 28px;
  }
  #friends-wall .card { min-height: 280px; padding: 20px 14px 16px; }
  #friends-catalog .card { min-height: 292px; padding: 24px 18px 18px; }
}
.cards--trio .wall-empty { grid-column: 1 / -1; }
#friends-wall .cards,
#friend-more .cards { margin-top: 0; }
#friends-wall .cards { align-items: start; }
#friend-more .cards--invites {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.friend-more-empty {
  margin: 8px 0 0;
  max-width: 42ch;
}
#friends-catalog .cards { margin-top: 8px; gap: 28px; align-items: start; }
#friends-wall .card,
#friends-catalog .card { min-height: 0; }

.diary-count {
  margin: 0;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  white-space: nowrap;
}
#friends-wall .h2wrap,
#friends-catalog .h2wrap { flex-wrap: wrap; }
.wall-title {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
}
.wall-lead {
  text-align: center;
  color: var(--ink-soft);
  margin: 8px auto 0;
  max-width: none;
}
#friends-catalog .rubrics,
#friends-wall .rubrics { margin-bottom: 0; }
#friends-wall .rubrics { margin-top: 32px; }
#friends-catalog .wall-lead,
#friends-wall .wall-lead {
  margin: 0 auto;
  padding: 22px 0 26px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--pink-deep);
}
#friends-wall .wall-lead,
#friends-wall .wall-note {
  color: var(--ink);
}
#friends-wall .wall-slider { margin-top: 8px; }
.rubrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 4px;
}
.rubric {
  --rubric: #6B7082;
  --rubric-ink: #fff;
  --rubric-ring: #6B7082;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  height: 40px;
  padding: 0 16px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--rubric);
  color: var(--rubric-ink);
  cursor: pointer;
  box-shadow: 0 6px 14px -10px rgba(62, 65, 75, .7);
  transition: transform .16s ease, box-shadow .16s ease;
}
.rubric[data-rubric="all"] { --rubric: #6B7082; --rubric-ink: #fff; --rubric-ring: #6B7082; }
.rubric[data-rubric="new"] { --rubric: #EBFA81; --rubric-ink: #3E414B; --rubric-ring: #8EA312; }
.rubric[data-rubric="star"] { --rubric: #F93073; --rubric-ink: #fff; --rubric-ring: #F93073; }
.rubric[data-rubric="friend"] { --rubric: #48B6B3; --rubric-ink: #fff; --rubric-ring: #1E8A86; }
.rubric[data-rubric="team"] { --rubric: #E2E6F6; --rubric-ink: #3E414B; --rubric-ring: #7E88B0; }
.rubric[data-rubric="partner"] { --rubric: #3E414B; --rubric-ink: #fff; --rubric-ring: #3E414B; }
.rubric:hover { transform: translateY(-2px); }
.rubric.is-on {
  box-shadow:
    0 0 0 2px #fffdf8,
    0 0 0 5px var(--rubric-ring),
    0 0 16px 1px color-mix(in srgb, var(--rubric-ring) 55%, transparent);
}
.rubric:focus-visible {
  outline: 3px solid var(--rubric-ring);
  outline-offset: 3px;
}
.wall-heart {
  bottom: 28px;
  left: 22px;
  width: 22px;
  color: var(--pink);
  opacity: .45;
  pointer-events: none;
}
.wall-slider {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
}
.wall-stage {
  overflow: hidden;
  padding: 18px 4px 22px;
}
#friends-wall .cards {
  transition: transform .48s cubic-bezier(.22, .82, .2, 1);
}
#friends-wall .cards.is-in { transform: none; }
#friends-wall .cards.is-out-next { transform: translateX(calc(-100% - 18px)); }
#friends-wall .cards.is-out-prev { transform: translateX(calc(100% + 18px)); }
#friends-wall .cards.is-from-next {
  transform: translateX(calc(100% + 18px));
  transition: none;
}
#friends-wall .cards.is-from-prev {
  transform: translateX(calc(-100% - 18px));
  transition: none;
}
.wall-nav {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px -12px rgba(62, 65, 75, .55);
  transition: transform .16s ease;
}
.wall-nav:disabled { opacity: .32; cursor: default; }
.wall-nav:not(:disabled):hover { transform: translateY(-2px); }
.wall-nav:not(:disabled):active { transform: translateY(0) scale(.96); }
.wall-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.wall-dot {
  width: 9px;
  height: 9px;
  border: none;
  padding: 0;
  border-radius: 50%;
  background: #C5CBE0;
  cursor: pointer;
  transition: width .28s ease, background .28s ease, border-radius .28s ease;
}
.wall-dot.is-on {
  width: 20px;
  border-radius: 99px;
  background: var(--pink);
}
.wall-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.wall-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--pink);
  border-radius: 999px;
  padding: 14px 28px;
  box-shadow: 0 12px 24px -12px rgba(214, 27, 88, .75);
  transition: transform .16s ease, background .16s ease;
}
.wall-all .btn-ico {
  width: 1.15em;
  height: 1.15em;
  color: #fff;
}
.wall-all:hover {
  background: var(--pink-deep);
  transform: translateY(-3px);
}
.wall-all:hover .btn-ico { animation: ico-pop .38s ease; }
.card .card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  position: relative;
  z-index: 6;
  pointer-events: none;
}
.card-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
#friends-wall .card-stats,
#friends-catalog .card-stats {
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  gap: 6px;
}
#friends-wall .card .card-pals,
#friends-wall .card .card-like,
#friends-catalog .card .card-pals,
#friends-catalog .card .card-like {
  justify-content: center;
  box-sizing: border-box;
}
.card-more {
  display: inline-block;
  width: fit-content;
  font-size: .88rem;
  font-weight: 700;
  color: var(--card-accent);
  text-decoration: none;
  border-bottom: 1.5px dashed color-mix(in srgb, var(--card-accent) 65%, transparent);
}
.card { cursor: pointer; }
.card:hover .card-more { border-bottom-style: solid; }
.card .card-open {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
}
.card .card-pals,
.card .card-like {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 10px 4px 8px;
  border: 1.5px solid color-mix(in srgb, var(--pink) 45%, #fff);
  border-radius: 999px;
  background: #fff;
  color: var(--pink-deep);
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px -10px rgba(62, 65, 75, .65);
}
.card .card-like { cursor: pointer; pointer-events: auto; }
.card .card-pals {
  border-color: color-mix(in srgb, var(--teal-deep) 45%, #fff);
  color: var(--teal-deep);
}
.card-pals-ico {
  width: auto;
  height: 18px;
  aspect-ratio: 860 / 479;
  object-fit: contain;
  display: block;
}
.card-like-ico { width: 18px; height: 18px; color: var(--pink); }
.card-like.is-on {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.card-like.is-on .card-like-ico { color: #fff; }
.card-like:disabled { cursor: default; }

.page-bar {
  max-width: 920px;
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
  padding: 0 10px;
}
.friend-body .page-bar { margin-bottom: 36px; }
.invite-cta--page,
.invite-cta--below {
  margin-left: auto;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}
.friend-after {
  display: flex;
  justify-content: center;
  margin: 22px auto 0;
}
.invite-cta--below { margin-left: 0; }
.friend-like-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.friend-pals {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #C5CAD6;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 8px 16px -12px rgba(62, 65, 75, .55);
}
.friend-pals[hidden] { display: none; }
.friend-pals-ico {
  width: 34px;
  height: 20px;
  object-fit: contain;
  display: block;
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #C5CAD6;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 8px 16px -12px rgba(62, 65, 75, .55);
}
.like-btn .btn-ico { width: 1.15em; height: 1.15em; color: var(--pink); }
.like-btn.is-on {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.like-btn.is-on .btn-ico { color: #fff; }
.like-btn:disabled { cursor: default; }
.invite-cta--page .invite-hint,
.invite-cta--below .invite-hint {
  text-align: center;
  font-weight: 600;
}
.invite-copy {
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
  color: var(--pink-deep);
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.invite-copy:hover { color: var(--pink); }
@media (max-width: 640px) {
  .invite-cta--page {
    width: 100%;
    align-items: center;
  }
}
.page-bar--wide { max-width: 1240px; }
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 10px 20px -14px rgba(62, 65, 75, .55);
  transition: transform .16s ease, box-shadow .16s ease;
}
.nav-pill .btn-ico { width: 1.05em; height: 1.05em; }
.nav-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -14px rgba(62, 65, 75, .6);
}
.nav-pill--friends { color: var(--pink-deep); }
.nav-pill--friends .btn-ico { color: var(--pink); }
.nav-pill--home { color: var(--teal-deep); }
.nav-pill--home .btn-ico { color: var(--teal); }
.page-back {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: .95rem;
}
.page-back--soft { color: var(--ink-soft); font-weight: 600; }
[hidden] { display: none !important; }
.desk--friends { max-width: 980px; }
#friends-catalog { max-width: 960px; }
@media (min-width: 1180px) {
  .desk--friends { max-width: 1280px; }
  #friends-catalog { max-width: 1240px; }
  .page-bar { max-width: 1240px; }
}

:root {
  --friend: var(--pink);
  --friend-text: var(--pink-deep);
  --friend-ink: #fffdf8;
  --friend-soft: rgba(249, 48, 115, .16);
  --friend-mid: rgba(249, 48, 115, .38);
  --friend-glow: rgba(249, 48, 115, .28);
}
.friend-body {
  background:
    radial-gradient(circle at 14% 16%, var(--friend-soft), transparent 30%),
    radial-gradient(circle at 86% 78%, var(--friend-soft), transparent 34%),
    var(--desk);
}
.friend-theme .tape,
.friend-body .tape {
  background: var(--friend);
  color: var(--friend-ink);
}
.friend-theme .btn,
.friend-body .friend-sheet + .leaf .btn,
.friend-body .btn {
  background: var(--friend);
  color: var(--friend-ink);
  box-shadow: 0 10px 22px -10px var(--friend-glow);
}
.friend-theme .btn:hover,
.friend-body .btn:hover {
  background: var(--friend);
  filter: brightness(.96);
}
.friend-answer { color: var(--friend-text, var(--friend)) !important; }
.friend-wash {
  position: absolute;
  inset: 16px;
  border-radius: 4px;
  pointer-events: none;
  box-shadow: inset 0 0 0 3px var(--friend-soft);
}
.friend-doodle { color: var(--friend); }
.friend-doodle--heart { top: 26px; right: 26px; width: 28px; }
.friend-doodle--spark { bottom: 30px; left: 26px; width: 20px; }
.desk--friend { position: relative; }
.desk-spark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.desk-spark--heart { top: 18px; left: 2%; width: 26px; color: var(--pink); }
.desk-spark--star { top: 64px; right: 3%; width: 22px; color: var(--yellow); }
.desk-spark--flower { bottom: 18%; left: 0; width: 28px; color: var(--lilac); }
.friend-sheet {
  overflow: hidden;
  box-shadow:
    0 18px 40px -24px rgba(62, 65, 75, .55),
    0 0 0 1px rgba(255, 255, 255, .35),
    0 28px 60px -28px var(--friend-glow);
}
.friend-halo {
  position: absolute;
  inset: 8% 10% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--friend-soft), transparent 70%);
  animation: cake-glow 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.friend-spark { z-index: 2; }
.friend-spark--heart { top: 22px; left: 28px; width: 22px; color: var(--friend); }
.friend-spark--star { bottom: 26px; right: 24px; width: 20px; color: var(--teal); }
.secret-sheet { overflow: hidden; }
.secret-seal {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF7AA3, var(--pink-deep));
  box-shadow: 0 4px 10px -4px rgba(214, 27, 88, .55);
  transform: rotate(8deg);
}
.secret-seal::after {
  content: "♥";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .72rem;
}
.secret-spark { position: absolute; pointer-events: none; }
.secret-spark--a { top: 18px; right: 52px; width: 16px; color: var(--yellow); }
.secret-spark--b { bottom: 18px; left: 22px; width: 18px; color: var(--teal); }
.secret-burst {
  position: absolute;
  inset: 18% 12% 22%;
  pointer-events: none;
  z-index: 0;
}
.secret-burst i {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0;
}
.secret-burst i:nth-child(2) { background: var(--yellow); }
.secret-burst i:nth-child(3) { background: var(--teal); }
.secret-burst i:nth-child(4) { background: var(--lilac); }
.secret-burst i:nth-child(5) { background: var(--pink-deep); }
.secret-burst i:nth-child(6) { background: var(--yellow); }
.secret-burst i:nth-child(7) { background: var(--teal); }
.secret-burst i:nth-child(8) { background: var(--lilac); }
.secret-modal.is-open .secret-burst i {
  animation: secret-burst .85s ease-out forwards;
}
.secret-modal.is-open .secret-burst i:nth-child(1) { --dx: -92px; --dy: -48px; }
.secret-modal.is-open .secret-burst i:nth-child(2) { --dx: 78px; --dy: -62px; animation-delay: .04s; }
.secret-modal.is-open .secret-burst i:nth-child(3) { --dx: -70px; --dy: 54px; animation-delay: .08s; }
.secret-modal.is-open .secret-burst i:nth-child(4) { --dx: 96px; --dy: 38px; animation-delay: .05s; }
.secret-modal.is-open .secret-burst i:nth-child(5) { --dx: 8px; --dy: -78px; animation-delay: .1s; }
.secret-modal.is-open .secret-burst i:nth-child(6) { --dx: -110px; --dy: 8px; animation-delay: .02s; }
.secret-modal.is-open .secret-burst i:nth-child(7) { --dx: 118px; --dy: -10px; animation-delay: .12s; }
.secret-modal.is-open .secret-burst i:nth-child(8) { --dx: 24px; --dy: 72px; animation-delay: .07s; }
.secret-polaroid {
  position: relative;
  margin-top: 8px;
  background: #fff;
  padding: 10px 10px 22px;
  box-shadow: 0 16px 28px -16px rgba(62, 65, 75, .45);
  transform: rotate(-1.6deg);
}
.secret-polaroid .modal-photos { margin: 0; }
.secret-polaroid img {
  height: 220px;
  border-radius: 2px;
}
.secret-tape {
  display: block;
  width: max-content;
  margin: -18px auto 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 12px;
  transform: rotate(-2deg);
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .35);
}
.secret-modal.is-open .secret-sheet {
  animation: secret-unfold .55s cubic-bezier(.2, .8, .2, 1);
}
.secret-modal.is-open .secret-polaroid {
  animation: secret-pop .7s cubic-bezier(.2, .8, .2, 1);
}
.secret-modal.is-open .secret-seal {
  animation: secret-seal-pop .5s ease;
}
@keyframes secret-unfold {
  0% { transform: translateY(28px) rotate(-8deg) scale(.88); opacity: 0; }
  100% { transform: translateY(0) rotate(-.6deg) scale(1); opacity: 1; }
}
@keyframes secret-pop {
  0% { transform: rotate(-14deg) scale(.72) translateY(18px); opacity: 0; filter: blur(6px); }
  100% { transform: rotate(-1.6deg) scale(1) translateY(0); opacity: 1; filter: none; }
}
@keyframes secret-seal-pop {
  0% { transform: scale(.4) rotate(-20deg); opacity: 0; }
  70% { transform: scale(1.12) rotate(6deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes secret-burst {
  0% { transform: translate(0, 0) scale(.4); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.15); opacity: 0; }
}
.friend-missing {
  font-weight: 600;
  color: var(--pen-purple);
  margin-bottom: 18px;
}
.friend-marks {
  position: absolute;
  top: 14px;
  right: 10px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}
.friend-marks .tape {
  margin: 0;
  transform: rotate(-2deg);
}
.friend-sheet .mood-sticker,
.friend-marks .mood-sticker {
  position: static;
  top: auto;
  right: auto;
  width: auto;
  height: auto;
  font-size: 3rem;
}
.friend-portrait {
  display: block;
  width: min(220px, 58%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  margin: 4px 0 18px;
  background: #fff;
  box-shadow: 0 12px 24px -14px rgba(62, 65, 75, .45);
}
.friend-sheet .anketa-head {
  padding-right: 140px;
}
.friend-sheet .anketa-card {
  box-shadow: 0 1px 3px rgba(62, 65, 75, .08), 0 8px 22px var(--friend-soft);
}
.friend-body .fact--color {
  border-color: var(--friend-mid);
  background: var(--friend-soft);
}

@media (max-width: 780px) {
  .cards--trio { grid-template-columns: 1fr; }
  .wall-slider { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 6px; }
  #friends-wall .card { min-height: 0; }
  .wall-heart { display: none; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 54ch;
  font-size: .95rem;
  font-weight: 400;
}
.consent input { margin-top: 5px; accent-color: var(--pink); }
.form-error {
  display: none;
  color: var(--pink-deep);
  font-weight: 600;
  margin: 8px 0 12px;
}
.form-error.show { display: block; }

.form-row.is-miss .ans,
.form-row.is-miss .colorpick,
.form-row.is-miss .mood-pick,
.form-row.is-miss .adv-picks {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
  border-radius: 10px;
}
.mood-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.mood-emoji {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  line-height: 1;
}
.mood-btn {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  overflow: visible;
  box-shadow: none;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.mood-btn:hover { transform: scale(1.06); }
.mood-btn[aria-pressed="true"] {
  transform: scale(1.08);
  background: rgba(249, 48, 115, .12);
  box-shadow: 0 0 0 3px var(--form-accent, var(--pink));
}
.mood-btn[aria-pressed="true"]:hover { transform: scale(1.1); }
.adv-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.adv-chip {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.adv-chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #13443f;
}
.adv-other { margin-top: 4px; }
.colorpick { display: flex; gap: 12px; flex-wrap: wrap; }
.cbtn {
  width: 40px; height: 40px;
  border-radius: 46% 54% 60% 40% / 55% 45% 60% 40%;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 3px 8px -3px rgba(0,0,0,.35);
  transform: rotate(-6deg);
  transition: transform .16s ease, outline .12s;
}
.cbtn:hover { transform: rotate(0) scale(1.1); }
.cbtn[aria-pressed=true] {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  transform: rotate(0) scale(1.14);
  animation: ico-pop .3s ease;
}

.sum-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}
.sum {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--pink);
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform .14s ease, background .14s, color .14s;
}
.sum:hover { transform: translateY(-2px); }
.sum[aria-pressed=true] { background: var(--pink); color: #fff; }
.sum-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px dashed var(--pink);
  border-radius: 999px;
  padding: 9px 16px;
}
.sum-custom input {
  width: 80px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1.05rem;
}
.or-social { margin-top: 10px; font-size: .95rem; color: var(--ink-soft); }
.thanks-arrow {
  display: flex;
  justify-content: center;
  margin: 28px auto 0;
  color: var(--pink);
  text-decoration: none;
}
.thanks-arrow svg {
  display: block;
  width: 46px;
  height: 46px;
  transform: rotate(90deg);
}
.thanks-arrow-bob {
  display: flex;
  animation: thanks-shimmer 1.15s ease-in-out infinite;
}
@keyframes thanks-shimmer {
  0%, 100% { opacity: .28; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); filter: drop-shadow(0 0 10px rgba(249, 48, 115, .7)); }
}
.thanks {
  color: var(--pink-deep);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.cake-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 8px;
}
.cake-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(560px, 100%);
}
@media (min-width: 980px) {
  .cake-layout {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 28px 40px;
    width: 100%;
  }
  .cake-side {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
  }
  .cake-side--form {
    flex: 0 1 420px;
    max-width: 420px;
    align-self: flex-start;
    margin-top: 36px;
    margin-right: 8px;
  }
  .cake-side .cake-stage {
    width: min(360px, 100%);
  }
  .cake-side--form .cake-pay,
  .cake-side--form .cake-thanks {
    width: 100%;
    max-width: none;
  }
}
@property --cake-scale {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.25;
}
.cake-stage {
  --cake-scale: 0.25;
  position: relative;
  width: min(420px, 92%);
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.cake-stage.is-celebrating {
  transition: --cake-scale 3s cubic-bezier(.16, .84, .28, 1);
}
.cake-stage.is-celebrating .cake-halo {
  animation: cake-halo-wow 3.2s ease-out;
}
.cake-halo {
  position: absolute;
  inset: 8% 10% 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(235, 250, 129, .5), rgba(249, 48, 115, .14) 46%, transparent 72%);
  animation: cake-glow 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.cake-plate {
  position: absolute;
  left: 50%;
  bottom: 11%;
  width: 58%;
  height: 11%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(214, 27, 88, .16), rgba(72, 230, 179, .08) 42%, transparent 72%);
  filter: blur(1px);
  pointer-events: none;
  z-index: 0;
}
.cake-spark { position: absolute; pointer-events: none; }
.cake-spark--a { top: 8px; right: -6px; width: 22px; color: var(--yellow); }
.cake-spark--b { bottom: 52px; left: -8px; width: 20px; color: var(--teal); }
.cake-spark--c { top: 36px; left: 4px; width: 18px; color: var(--pink); }
.cake-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 100%;
  text-align: center;
}
.cake-copy .muted { max-width: 48ch; }
.cake-tally {
  margin: 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(235, 250, 129, .72);
  color: var(--pink-deep);
  font-weight: 700;
  font-size: .92rem;
}
.cake-tally.is-pop {
  animation: cake-tally-pop .7s cubic-bezier(.2, 1.4, .3, 1);
}
.cake-gift-note { color: var(--pink-deep); font-weight: 600; }
#cake > h2 { margin-bottom: .28em; }
.cake-lead {
  max-width: 36em;
  margin: 0 auto 18px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.5;
  text-wrap: balance;
}
.cake-lead strong { font-weight: 800; }
.cake-thanks {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 520px;
  text-align: left;
}
.cake-thanks[hidden] { display: none; }
.cake-badge-slot {
  position: relative;
  flex: none;
  width: 0;
  height: 84px;
  transition: width .55s cubic-bezier(.2, .85, .2, 1), margin-right .55s cubic-bezier(.2, .85, .2, 1);
}
.cake-thanks.is-stuck .cake-badge-slot {
  width: 84px;
  margin-right: 16px;
}
.cake-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 84px;
  object-fit: contain;
  opacity: 0;
  transform: translateY(-40px) rotate(-18deg) scale(1.3);
}
.cake-thanks.is-stuck .cake-badge {
  opacity: 1;
  transform: rotate(-5deg);
  animation: cake-stick .78s cubic-bezier(.16, .84, .24, 1.15) both;
}
.cake-thanks-text {
  margin: 0;
  min-width: 0;
  flex: 1;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.45;
  transition: text-align .2s linear;
}
.cake-thanks.is-stuck .cake-thanks-text { text-align: left; }
@media (max-width: 720px) {
  .cake-badge-slot { height: 72px; }
  .cake-thanks.is-stuck .cake-badge-slot {
    width: 72px;
    margin-right: 12px;
  }
  .cake-badge { width: 72px; height: 72px; }
  .cake-thanks-text { font-size: 1rem; }
}
@keyframes cake-stick {
  0% {
    opacity: 0;
    transform: translate(4px, -56px) rotate(-26deg) scale(1.55);
    filter: drop-shadow(0 20px 12px rgba(62, 65, 75, .08));
  }
  48% {
    opacity: 1;
    transform: translate(0, 8px) rotate(7deg) scale(.9);
    filter: drop-shadow(0 2px 2px rgba(62, 65, 75, .3));
  }
  72% {
    transform: translate(0, -5px) rotate(-8deg) scale(1.06);
    filter: drop-shadow(0 10px 8px rgba(62, 65, 75, .18));
  }
  100% {
    opacity: 1;
    transform: rotate(-5deg) scale(1);
    filter: drop-shadow(0 6px 8px rgba(62, 65, 75, .22));
  }
}
.cake-pin {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: none;
}
.card .who {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card .cake-pin {
  position: static;
  width: 42px;
  height: 42px;
  flex: none;
}
.cake-pay {
  position: relative;
  width: 100%;
  max-width: 560px;
}
.cake-widget {
  width: 100%;
  min-height: 220px;
}
.cake-fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  overflow: hidden;
}
.cake-boom {
  position: absolute;
  left: var(--ox, 50%);
  top: var(--oy, 38%);
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  color: var(--boom-color, var(--pink));
  opacity: 0;
  animation: cake-boom 2.2s cubic-bezier(.12, .7, .28, 1) forwards;
  animation-delay: var(--d, 0s);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .9));
}
.cake-boom--big {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
}
.cake-boom--tiny {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
}
.cake-boom--dot {
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor, 0 0 32px currentColor;
}
.cake-boom--streak {
  width: 7px;
  height: 22px;
  margin: -11px 0 0 -4px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}
.cake-ring {
  position: absolute;
  left: var(--ox, 50%);
  top: var(--oy, 38%);
  width: 110px;
  height: 110px;
  margin: -55px 0 0 -55px;
  border: 4px solid var(--boom-color, var(--yellow));
  border-radius: 50%;
  opacity: 0;
  animation: cake-ring 1.15s ease-out forwards;
  animation-delay: var(--d, 0s);
  pointer-events: none;
  box-shadow: 0 0 18px var(--boom-color, var(--yellow));
}
.cake-confetti {
  position: absolute;
  left: var(--ox, 50%);
  top: -4%;
  width: var(--cw, 8px);
  height: var(--ch, 14px);
  margin-left: calc(var(--cw, 8px) / -2);
  border-radius: 2px;
  background: currentColor;
  color: var(--boom-color, var(--pink));
  opacity: 0;
  animation: cake-confetti 2.6s ease-in forwards;
  animation-delay: var(--d, 0s);
}
.cake-boom svg {
  display: block;
  width: 100%;
  height: 100%;
}
.cake-frame {
  position: relative;
  width: 84%;
}
.cake-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.cake-stage.is-full:not(.is-celebrating) .cake-ghost { visibility: hidden; }
.cake {
  position: relative;
  z-index: 2;
  width: 100%;
  background: transparent;
  transform: scale(var(--cake-scale));
  transform-origin: center 78%;
  transition: transform .9s cubic-bezier(.2, 1.15, .3, 1);
  animation: cake-bob 4.2s ease-in-out infinite;
}
.cake.is-growing {
  animation: cake-wow 3.2s cubic-bezier(.18, .86, .22, 1.18) both;
}
.cake img { display: block; width: 100%; height: auto; }
.cake-color { filter: none; }
.cake-meta {
  font-weight: 800;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--pink-deep);
  line-height: 1.25;
}

.leaf--tickets .anketa-head h2 {
  margin: 0;
  white-space: nowrap;
}
.tickets-lead {
  margin: 8px 0 0;
  color: var(--ink-soft);
  max-width: 54ch;
}
@media (max-width: 640px) {
  .leaf--tickets .anketa-head h2 { white-space: normal; }
}
.ticket-spark { position: absolute; pointer-events: none; }
.ticket-spark--a { top: 22px; left: 18px; width: 20px; color: var(--pink); }
.ticket-spark--b { top: 36px; right: 22px; width: 18px; color: var(--yellow); }
.ticket-spark--c { bottom: 22px; left: 22px; width: 16px; color: var(--teal); }
.impact {
  --ticket-paper: #fffdf8;
  display: grid;
  gap: 32px;
  margin: 36px auto 8px;
  justify-items: stretch;
  justify-content: center;
}
@media (min-width: 760px) {
  .impact {
    grid-template-columns: repeat(3, minmax(200px, 250px));
    gap: 48px;
    margin: 48px auto 8px;
    align-items: start;
  }
}
.ticket {
  --ticket: var(--teal);
  --ticket-soft: rgba(72, 230, 179, .22);
  --ticket-ink: var(--ink);
  --ticket-label: var(--teal-deep);
  --tilt: -2.2deg;
  position: relative;
  display: grid;
  background: #fff;
  border-radius: 18px;
  overflow: visible;
  box-shadow:
    0 16px 30px -18px rgba(62, 65, 75, .45),
    0 0 0 1px rgba(62, 65, 75, .04);
  transform: rotate(var(--tilt));
  transform-origin: 50% 80%;
  animation: ticket-bob 4.4s ease-in-out infinite;
}
.ticket--teal { --ticket: var(--teal); --ticket-soft: rgba(72, 230, 179, .22); --ticket-ink: var(--ink); --ticket-label: var(--teal-deep); --tilt: -2.4deg; }
.ticket--pink { --ticket: var(--pink); --ticket-soft: rgba(249, 48, 115, .18); --ticket-ink: #fff; --ticket-label: var(--pink); --tilt: 1.6deg; animation-delay: .35s; }
.ticket--lilac,
.ticket--lime { --ticket: var(--yellow); --ticket-soft: rgba(235, 250, 129, .55); --ticket-ink: var(--ink); --ticket-label: var(--ink); --tilt: -1.2deg; animation-delay: .7s; }
.ticket::before {
  content: "";
  position: absolute;
  inset: auto -18% -22% -18%;
  height: 54%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ticket-soft), transparent 68%);
  pointer-events: none;
  animation: cake-glow 3.8s ease-in-out infinite;
}
.ticket:hover {
  animation-play-state: paused;
  transform: rotate(0deg) translateY(-10px);
  z-index: 2;
  box-shadow:
    0 22px 36px -16px rgba(62, 65, 75, .5),
    0 0 0 1px rgba(62, 65, 75, .06);
}
.ticket-stub {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 18px 18px;
  color: var(--ticket-ink, #fff);
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), transparent 46%),
    var(--ticket);
  text-align: center;
  border-radius: 18px 18px 0 0;
}
.ticket-ico {
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 8px rgba(62, 65, 75, .18));
}
.ticket .amt {
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.ticket-per {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .86;
}
.ticket-cut {
  position: relative;
  z-index: 1;
  height: 18px;
  background: #fff;
  border-top: 2px dashed rgba(62, 65, 75, .14);
}
.ticket-cut::before,
.ticket-cut::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ticket-paper);
  box-shadow: inset 0 0 0 1px rgba(62, 65, 75, .06);
}
.ticket-cut::before { left: -9px; }
.ticket-cut::after { right: -9px; }
.ticket-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 10px 20px 26px;
  text-align: center;
  border-radius: 0 0 18px 18px;
  background: #fff;
}
.ticket-label {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ticket-label, var(--ticket));
}
.ticket-text {
  margin: 0;
  max-width: none;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.4;
}
.tickets-cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 48px;
  text-align: center;
}
.tickets-cta .muted { max-width: none; white-space: nowrap; }
.tickets-btn { animation: cake-cta-glow 2.6s ease-in-out infinite; }

.kit-lead {
  margin: 8px 0 4px;
  color: var(--ink-soft);
}
ul.gift { list-style: none; margin: 10px 0 0; padding: 0; max-width: 58ch; }
ul.gift li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1.5px dotted var(--line);
}
ul.gift li:last-child { border-bottom: none; }
.gift-ico {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--pink);
  margin-top: 1px;
}
.tier {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--panel);
  border-radius: 12px;
  font-size: .95rem;
  color: var(--ink);
  transform: rotate(-.4deg);
}

.leaf--final h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: #F93073;
}
.leaf--final p {
  position: relative;
  z-index: 1;
  margin-left: auto;
  margin-right: auto;
}
.leaf--final .cta-note {
  max-width: none;
  white-space: nowrap;
}
.leaf--final .btn { margin-top: 10px; }
.final-friend {
  position: relative;
  z-index: 1;
  display: block;
  width: min(320px, 78%);
  height: auto;
  margin: 8px auto 0;
  border-radius: 36px;
  animation: final-friend-bob 4.4s ease-in-out infinite;
}
.final-halo {
  position: absolute;
  inset: 12% 18% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 250, 129, .28), rgba(249, 48, 115, .12) 46%, transparent 72%);
  animation: cake-glow 3.8s ease-in-out infinite;
  pointer-events: none;
}
.leaf--final .doodle-float { animation-name: final-icon-float; }
.leaf--final .doodle-twinkle { animation-name: final-icon-twinkle; }
.leaf--final .doodle-pulse { animation-name: final-icon-pulse; }
.final-spark { z-index: 1; }
.final-spark--heart { top: 28px; right: 36px; width: 30px; color: var(--pink); }
.final-spark--star { bottom: 30px; left: 32px; width: 22px; color: var(--teal); }
.final-spark--spark { top: 36px; left: 40px; width: 18px; color: var(--yellow); }
.final-spark--flower { bottom: 28px; right: 34px; width: 26px; color: var(--lilac); }
.leaf--final .final-spark--heart { animation-duration: 3.4s; }
.leaf--final .final-spark--star { animation-duration: 2.6s; animation-delay: .35s; }
.leaf--final .final-spark--spark { animation-duration: 2.1s; animation-delay: .7s; }
.leaf--final .final-spark--flower { animation-duration: 4s; animation-delay: .15s; }
.final-cta { animation: cake-cta-glow 2.6s ease-in-out infinite; }

.site-footer {
  --footer: #48B6B3;
  margin: 28px -14px -8px;
  width: calc(100% + 28px);
  padding: 36px 28px 28px;
  background:
    radial-gradient(ellipse at 86% 58%, rgba(255, 255, 255, .28), transparent 42%),
    var(--footer);
  color: #fff;
}
.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.site-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.site-footer-brand img {
  display: block;
  width: 168px;
  height: auto;
}
.site-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 280px;
}
.site-footer-social {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
}
.site-footer-social svg { width: 22px; height: 22px; }
.site-footer-rule {
  display: none;
  border: 0;
  height: 1px;
  margin: 22px 0 18px;
  background: rgba(255, 255, 255, .55);
}
.site-footer-bottom {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 16px 40px;
  align-items: start;
  margin-top: 28px;
}
.site-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 26px;
}
.site-footer-nav a,
.site-footer-legal a,
.site-footer-ask a {
  color: #fff;
  text-decoration: none;
}
.site-footer-nav a:hover,
.site-footer-legal a:hover,
.site-footer-ask a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer-ask,
.site-footer-kicker,
.site-footer-address,
.site-footer-legal {
  max-width: none;
  margin: 0;
}
.site-footer-kicker {
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}
.site-footer-address {
  margin-top: 6px;
  max-width: 36ch;
  line-height: 1.45;
}
.site-footer-ask {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}
.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: .92rem;
}
@media (max-width: 720px) {
  .site-footer {
    margin-left: -8px;
    margin-right: -8px;
    width: calc(100% + 16px);
    padding: 36px 18px 32px;
  }
  .site-footer-top { flex-direction: column; align-items: flex-start; }
  .site-footer-meta { align-items: flex-start; max-width: none; margin-top: 16px; }
  .site-footer-ask { text-align: left; max-width: 28ch; }
  .site-footer-rule { display: block; }
  .site-footer-bottom {
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }
  .site-footer-nav {
    order: -1;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }
  .site-footer-links {
    justify-content: flex-start;
    gap: 8px 16px;
  }
  .site-footer-address,
  .site-footer-ask { max-width: 28ch; }
}
@media (max-width: 380px) {
  .site-footer {
    margin-left: -6px;
    margin-right: -6px;
    width: calc(100% + 12px);
  }
}
.dock { display: none; }
@media (max-width: 720px) {
  html:has(.dock) { scroll-padding-bottom: 108px; }
  body:has(.dock) { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
  .dock {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    z-index: 50;
    gap: 8px;
    box-sizing: border-box;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    background: rgba(255, 253, 248, .96);
    box-shadow: 0 -10px 24px -16px rgba(62, 65, 75, .55);
  }
  .dock-btn {
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 64px;
    padding: 8px 10px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.05;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
  }
  .dock-label {
    min-width: 0;
    display: block;
    line-height: 1.08;
  }
  .dock-btn .btn-ico { width: 28px; height: 28px; flex: none; }
  .dock-btn--anketa {
    color: #fff;
    background: var(--pink);
    box-shadow: 0 8px 16px -10px rgba(214, 27, 88, .75);
  }
  .dock-btn--cake {
    color: var(--ink);
    background: var(--yellow);
    box-shadow: 0 8px 16px -10px rgba(198, 214, 74, .7);
  }
  body:has(.modal.is-open) .dock { visibility: hidden; }
}
@media (max-width: 380px) {
  .dock-btn { font-size: .88rem; gap: 6px; letter-spacing: .02em; padding: 8px 8px; }
  .dock-btn .btn-ico { width: 24px; height: 24px; }
}
.balloon {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(62, 65, 75, .16));
}
.balloon--a { left: 22px; top: 2px; width: 28px; color: var(--pink); }
.balloon--b { left: 56px; top: 16px; width: 20px; color: var(--teal); animation-delay: .45s; }
.balloon--c { right: 26px; top: 0; width: 26px; color: var(--yellow); animation-delay: .2s; }
.balloon--d { right: 60px; top: 18px; width: 18px; color: var(--lilac); animation-delay: .7s; }
@media (max-width: 640px) {
  .leaf--final .cta-note { white-space: normal; }
}

@keyframes final-friend-bob {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50% { transform: translateY(-12px) rotate(1.6deg); }
}
@keyframes final-icon-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-14px) rotate(10deg); }
}
@keyframes final-icon-twinkle {
  0%, 100% { opacity: .55; transform: scale(.88) rotate(-10deg); }
  50% { opacity: 1; transform: scale(1.28) rotate(18deg); }
}
@keyframes final-icon-pulse {
  0%, 100% { transform: scale(.9) rotate(-6deg); }
  50% { transform: scale(1.24) rotate(8deg); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: .7; transform: scale(1) rotate(0); }
  50% { opacity: 1; transform: scale(1.14) rotate(14deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(1.4deg); }
}
@keyframes ico-pop {
  0% { transform: scale(1) rotate(0); }
  40% { transform: scale(1.22) rotate(-10deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes cake-boom {
  0% { transform: translate(0, 0) scale(.15) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  62% { opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(.7) rotate(320deg); opacity: 0; }
}
@keyframes cake-ring {
  0% { transform: scale(.2); opacity: 1; }
  100% { transform: scale(4.2); opacity: 0; }
}
@keyframes cake-confetti {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translate3d(var(--x), var(--y), 0) rotate(540deg); opacity: 0; }
}
@keyframes cake-flash {
  0% { opacity: .7; }
  14% { opacity: 0; }
  22% { opacity: .42; }
  36% { opacity: 0; }
  48% { opacity: .28; }
  70% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes cake-wow {
  0% { transform: scale(calc(var(--cake-scale) * 0.2)) rotate(-16deg) translateY(42px); }
  16% { transform: scale(calc(var(--cake-scale) * 0.48)) rotate(-6deg) translateY(14px); }
  38% { transform: scale(calc(var(--cake-scale) * 1.36)) rotate(7deg) translateY(-26px); }
  56% { transform: scale(calc(var(--cake-scale) * 0.86)) rotate(-5deg) translateY(10px); }
  76% { transform: scale(calc(var(--cake-scale) * 1.14)) rotate(4deg) translateY(-8px); }
  100% { transform: scale(var(--cake-scale)) rotate(2.2deg) translateY(0); }
}
@keyframes cake-halo-wow {
  0% { opacity: .3; transform: scale(.7); }
  28% { opacity: 1; transform: scale(1.45); }
  70% { opacity: .75; transform: scale(1.15); }
  100% { opacity: .45; transform: scale(1); }
}
@keyframes cake-tally-pop {
  0% { transform: scale(.86); }
  55% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes cake-bob {
  0%, 100% { transform: rotate(2.2deg) translateY(0) scale(var(--cake-scale)); }
  50% { transform: rotate(-1.6deg) translateY(-6px) scale(var(--cake-scale)); }
}
@keyframes hero-bob {
  0%, 100% { transform: rotate(var(--tilt)) translateY(0); }
  50% { transform: rotate(calc(var(--tilt) * -0.35)) translateY(-7px); }
}
@keyframes sky-float-up {
  0%, 100% { transform: rotate(var(--tilt)) translateY(0); }
  50% { transform: rotate(calc(var(--tilt) * .45)) translateY(-10px); }
}
@keyframes sky-sway {
  0%, 100% { transform: rotate(var(--tilt)) translateX(0); }
  50% { transform: rotate(calc(var(--tilt) + 1.5deg)) translateX(9px); }
}
@keyframes sky-orbit {
  0% { transform: rotate(var(--tilt)) translate(0, 0); }
  25% { transform: rotate(calc(var(--tilt) - .7deg)) translate(7px, -5px); }
  50% { transform: rotate(var(--tilt)) translate(1px, -9px); }
  75% { transform: rotate(calc(var(--tilt) + .9deg)) translate(-8px, -3px); }
  100% { transform: rotate(var(--tilt)) translate(0, 0); }
}
@keyframes sky-sink {
  0%, 100% { transform: rotate(var(--tilt)) translateY(0) scale(1); }
  50% { transform: rotate(calc(var(--tilt) * 1.25)) translateY(7px) scale(1.02); }
}
@keyframes hero-shine {
  0% { transform: translateX(-130%); opacity: 0; }
  18% { opacity: 1; }
  42%, 100% { transform: translateX(130%); opacity: 0; }
}
@keyframes hero-pop {
  0% { transform: rotate(var(--tilt)) scale(1); }
  35% { transform: rotate(0deg) scale(1.07) translateY(-6px); }
  100% { transform: rotate(var(--tilt)) scale(1); }
}
@keyframes cake-glow {
  0%, 100% { opacity: .4; transform: scale(.92); }
  50% { opacity: .8; transform: scale(1.06); }
}
@keyframes cake-shimmer {
  0% { transform: translateX(0); }
  100% { transform: translateX(280%); }
}
@keyframes cake-bar-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(249, 48, 115, .12), 0 0 0 0 rgba(249, 48, 115, 0); }
  50% { box-shadow: inset 0 0 0 1px rgba(249, 48, 115, .18), 0 0 0 7px rgba(249, 48, 115, .1); }
}
@keyframes cake-cta-glow {
  0%, 100% { box-shadow: 0 10px 22px -10px rgba(214, 27, 88, .75); }
  50% { box-shadow: 0 14px 28px -8px rgba(214, 27, 88, .95), 0 0 0 6px rgba(249, 48, 115, .14); }
}
@keyframes ticket-bob {
  0%, 100% { transform: rotate(var(--tilt)) translateY(0); }
  50% { transform: rotate(calc(var(--tilt) * -0.45)) translateY(-8px); }
}
@keyframes turn-bounce {
  0%, 100% { transform: rotate(90deg) translateX(0); }
  50% { transform: rotate(90deg) translateX(5px); }
}

.doodle-float { animation: floaty 4.6s ease-in-out infinite; }
.doodle-twinkle { animation: twinkle 3.4s ease-in-out infinite; }
.doodle-pulse { animation: pulse 2.8s ease-in-out infinite; }
.tape-sway { animation: sway 5.2s ease-in-out infinite; transform-origin: 20% 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .leaf {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .doodle-float,
  .doodle-twinkle,
  .doodle-pulse,
  .tape-sway,
  .sky-cloud,
  .hero-card,
  .hero-card-glow,
  .hero-card-shine,
  .polaroid,
  .cake,
  .cake.is-growing,
  .cake-boom,
  .cake-ring,
  .cake-confetti,
  .cake-flash,
  .cake-tally.is-pop,
  .cake-halo,
  .cake-bar,
  .cake-cta,
  .ticket,
  .ticket::before,
  .tickets-btn,
  .final-halo,
  .final-cta,
  .final-friend,
  .friend-halo,
  .secret-modal.is-open .secret-sheet,
  .secret-modal.is-open .secret-polaroid,
  .secret-modal.is-open .secret-seal,
  .secret-modal.is-open .secret-burst i,
  .balloon,
  .turn-arrow,
  .btn:hover .btn-ico,
  .wall-all:hover .btn-ico,
  .cbtn[aria-pressed=true],
  .thanks-arrow-bob,
  .cake-thanks.is-stuck .cake-badge { animation: none !important; }
  .thanks-arrow-bob { opacity: 1; }
  * { transition: none !important; }
  .modal-backdrop,
  .modal-sheet { opacity: 1; transform: none; }
}
