/* ===== Evos 4-asis gimtadienis – šuniškas stilius 🐾 ===== */

:root {
  --pink: #ff4f9a;   --pink-d: #e0307c;   --pink-l: #ffe3f0;
  --blue: #3fa9f5;   --blue-d: #1f86d1;   --blue-l: #e0f2ff;
  --yellow: #ffc83d; --yellow-d: #e3a400; --yellow-l: #fff4d1;
  --teal: #2ec9b5;   --teal-d: #17a493;   --teal-l: #dcfaf5;
  --red: #ff6161;    --red-d: #e03e3e;    --red-l: #ffe4e4;
  --purple: #9b7bff; --purple-d: #7a55f0; --purple-l: #efe9ff;
  --cream: #fffaf3;
  --ink: #4b2236;
  --ink-soft: #85607a;
  --radius: 26px;
  --shadow: 0 14px 34px -16px rgba(160, 30, 95, .45);
  --font-display: 'Grandstander', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Pangolin', 'Comic Sans MS', cursive;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #ffe6f2;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Dangus ---------- */

.sky {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #bde3ff 0%, #def0ff 20%, #ffe8f3 52%, #ffd4e8 100%);
}
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .9; animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.c1 { width: 130px; height: 40px; top: 5%; animation-duration: 46s; animation-delay: -10s; }
.c1::before { width: 60px; height: 60px; top: -30px; left: 20px; }
.c1::after  { width: 44px; height: 44px; top: -20px; left: 68px; }
.c2 { width: 100px; height: 32px; top: 19%; animation-duration: 60s; animation-delay: -38s; opacity: .75; }
.c2::before { width: 46px; height: 46px; top: -22px; left: 16px; }
.c2::after  { width: 36px; height: 36px; top: -16px; left: 52px; }
.c3 { width: 160px; height: 46px; top: 38%; animation-duration: 75s; animation-delay: -55s; opacity: .6; }
.c3::before { width: 70px; height: 70px; top: -36px; left: 26px; }
.c3::after  { width: 54px; height: 54px; top: -24px; left: 84px; }
@keyframes drift { from { transform: translateX(-200px); } to { transform: translateX(calc(100vw + 60px)); } }

.balloon {
  position: absolute; width: 50px; height: 62px; opacity: .75;
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.8) 0 7%, transparent 8%), var(--c);
  animation: bob 9s ease-in-out infinite;
}
.balloon::before {
  content: ''; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: var(--c); border-top: 0;
}
.balloon::after {
  content: ''; position: absolute; top: calc(100% + 6px); left: 50%;
  width: 1.5px; height: 80px; background: rgba(120, 60, 90, .3);
}
.b1 { --c: #ff86bb; left: 3%;  top: 58%; }
.b2 { --c: #7cc6ff; right: 4%; top: 26%; animation-delay: -3s; transform: scale(.85); }
.b3 { --c: #ffd25e; left: 8%;  top: 12%; animation-delay: -5s; width: 40px; height: 50px; }
.b4 { --c: #b39bff; right: 9%; top: 72%; animation-delay: -7s; width: 44px; height: 54px; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -5deg; } 50% { translate: 0 -34px; rotate: 5deg; } }

.bg-paws svg {
  position: absolute; width: var(--s); height: var(--s); fill: var(--c);
  opacity: .2; rotate: var(--r);
  animation: pawFloat 7s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes pawFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* ---------- Vokas ---------- */

.envelope-stage {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  padding: 24px; cursor: pointer; text-align: center;
  background: radial-gradient(circle at 50% 38%, #ffd6ea 0%, #ff9fcb 55%, #ff79b4 100%);
  transition: opacity .6s ease, visibility .6s;
}
.envelope-stage.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.envelope {
  position: relative; width: min(78vw, 340px); aspect-ratio: 3 / 2;
  animation: wiggle 2.6s ease-in-out infinite;
  margin-top: 60px;
}
.open .envelope { animation: none; }
.env-back, .env-front, .env-flap, .env-letter { position: absolute; display: block; }
.env-back {
  inset: 0; border-radius: 16px; background: #f33d8e;
  box-shadow: 0 30px 50px -20px rgba(140, 10, 70, .65);
}
.env-letter {
  left: 7%; right: 7%; top: 7%; bottom: 7%; z-index: 1;
  border-radius: 12px; background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transition: transform .9s cubic-bezier(.2, .9, .3, 1.25) .35s;
}
.env-letter-text {
  font-family: var(--font-display); font-weight: 700; color: var(--pink);
  font-size: clamp(30px, 10vw, 46px); letter-spacing: 1px;
}
.env-letter-text b { color: var(--yellow-d); }
.env-letter small { font-family: var(--font-hand); font-size: 20px; color: var(--ink-soft); }
.env-front {
  inset: 0; z-index: 2; border-radius: 16px;
  background: linear-gradient(165deg, #ff8fc2, #ff62a8);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.env-flap {
  left: 0; right: 0; top: 0; height: 62%; z-index: 3;
  background: linear-gradient(180deg, #ff4f9a, #ff78b4);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 16px 16px 0 0;
  transform-origin: top center;
  transition: transform .55s ease, z-index 0s .28s;
}
.env-seal {
  position: absolute; left: 50%; top: 62%; z-index: 4;
  width: 66px; height: 66px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--yellow); display: grid; place-items: center;
  box-shadow: 0 5px 0 var(--yellow-d), 0 12px 22px -6px rgba(0,0,0,.35);
  transition: transform .3s, opacity .3s;
}
.env-seal svg { width: 38px; height: 38px; fill: var(--pink); animation: heartbeat 1.3s ease-in-out infinite; }
.open .env-seal { transform: translate(-50%, -50%) scale(0) rotate(90deg); opacity: 0; }
.open .env-flap { transform: rotateX(180deg); z-index: 0; }
.open .env-letter { transform: translateY(-58%) rotate(-3deg); }
.envelope-hint {
  margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; color: #fff;
  text-shadow: 0 2px 0 rgba(200, 30, 100, .45);
}
.envelope-hint span { display: block; font-family: var(--font-hand); font-weight: 400; font-size: 20px; opacity: .95; }
.open .envelope-hint { opacity: 0; transition: opacity .3s; }
@keyframes wiggle { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }
@keyframes heartbeat { 0%, 100% { scale: 1; } 15% { scale: 1.18; } 30% { scale: 1; } 45% { scale: 1.12; } }

/* ---------- Bendri ---------- */

.wrap {
  width: 100%; max-width: 780px; margin: 0 auto; overflow-x: clip;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom));
}

.title {
  font-family: var(--font-display); font-weight: 700; color: var(--pink);
  font-size: clamp(26px, 7vw, 36px); text-align: center;
  text-shadow: 3px 0 #fff, -3px 0 #fff, 0 3px #fff, 0 -3px #fff,
               2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff,
               0 7px 0 rgba(224, 48, 124, .28);
}
.title.big { font-size: clamp(32px, 9vw, 48px); }

.bone {
  position: relative; display: block; width: fit-content; margin: 8px auto 0;
  padding: 10px 34px; border-radius: 999px; background: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--pink);
  filter: drop-shadow(2.5px 0 0 var(--pink)) drop-shadow(-2.5px 0 0 var(--pink))
          drop-shadow(0 2.5px 0 var(--pink)) drop-shadow(0 -2.5px 0 var(--pink))
          drop-shadow(0 8px 10px rgba(160, 30, 95, .25));
  animation: boneBounce 3s ease-in-out infinite;
}
.bone::before, .bone::after {
  content: ''; position: absolute; top: -9px; bottom: -9px; width: 34px;
  background:
    radial-gradient(circle at 50% 30%, #fff 0 15px, transparent 15.5px),
    radial-gradient(circle at 50% 70%, #fff 0 15px, transparent 15.5px);
}
.bone::before { left: -16px; }
.bone::after  { right: -16px; }
.bone span { position: relative; z-index: 1; }
@keyframes boneBounce { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; translate: 0 -3px; } }

.card {
  position: relative; margin-top: 26px; padding: 24px 18px;
  background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
  outline: 2.5px dashed rgba(255, 79, 154, .35); outline-offset: -10px;
}

.btn {
  --bg: var(--pink); --bd: var(--pink-d);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.1;
  color: #fff; background: var(--bg); text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--bd), 0 14px 20px -12px rgba(0,0,0,.45);
  transition: transform .1s, box-shadow .1s, filter .2s;
  touch-action: manipulation; user-select: none;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--bd), 0 5px 10px -6px rgba(0,0,0,.35); }
.btn[disabled] { filter: saturate(.4); opacity: .75; pointer-events: none; }
.btn-pink   { --bg: var(--pink);   --bd: var(--pink-d); }
.btn-blue   { --bg: var(--blue);   --bd: var(--blue-d); }
.btn-yellow { --bg: var(--yellow); --bd: var(--yellow-d); color: var(--ink); }
.btn-teal   { --bg: var(--teal);   --bd: var(--teal-d); }
.btn-purple { --bg: var(--purple); --bd: var(--purple-d); }
.btn-white  { --bg: #fff; --bd: #f3c4da; color: var(--pink-d); }
.btn-block  { display: flex; width: 100%; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 16px; }
.btn-ghost {
  background: none; border: 0; padding: 12px; min-height: 44px; cursor: pointer;
  color: var(--ink-soft); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
  touch-action: manipulation;
}
.btn-ghost.btn-block { display: block; width: 100%; text-align: center; }

.hand-note {
  font-family: var(--font-hand); font-size: 25px; text-align: center; color: var(--pink-d);
  margin: 14px 0 0; rotate: -2deg;
}
.hand-note.small { font-size: 21px; margin-top: 30px; color: var(--ink-soft); }
.heart { display: inline-block; animation: heartbeat 1.6s ease-in-out infinite; }

/* ---------- Kvietimas ---------- */

.hero { text-align: center; }
.invite-card {
  position: relative; margin: 26px auto 0; max-width: 500px; padding: 9px;
  background: #fff; border-radius: 30px; cursor: zoom-in;
  box-shadow: 0 0 0 6px var(--pink-l), 0 34px 60px -28px rgba(160, 20, 90, .7);
  rotate: -1.5deg; transition: rotate .3s, scale .3s;
}
.invite-card:hover { rotate: 0deg; }
.invite-card:active { scale: .99; }
.invite-card img { width: 100%; height: auto; border-radius: 22px; }
.invite-card figcaption {
  position: absolute; right: 20px; bottom: 20px;
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92);
  font-size: 14px; font-weight: 800; color: var(--pink-d); box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.sticker {
  position: absolute; top: -18px; right: 2px; width: 80px; height: 80px;
  display: grid; place-items: center; border-radius: 50%; rotate: 14deg;
  background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 var(--yellow-d), 0 10px 20px -8px rgba(0,0,0,.4);
  font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.05;
  animation: stickerWobble 4s ease-in-out infinite;
}
@keyframes stickerWobble { 0%, 100% { rotate: 14deg; } 50% { rotate: 4deg; scale: 1.06; } }

/* ---------- Atgalinis skaičiavimas ---------- */

.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.cd-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1; border-radius: 22px; color: #fff; background: var(--c);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.12), 0 10px 18px -10px var(--c);
}
.cd-item.pink   { --c: var(--pink); }
.cd-item.blue   { --c: var(--blue); }
.cd-item.yellow { --c: var(--yellow); color: var(--ink); }
.cd-item.teal   { --c: var(--teal); }
.cd-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 8vw, 42px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-num.bump { animation: bump .35s ease-out; }
.cd-lbl { font-weight: 800; font-size: 13px; opacity: .92; }
.cd-done { text-align: center; font-family: var(--font-display); font-size: 24px; color: var(--pink); margin: 16px 0 0; }
@keyframes bump { 0% { scale: 1.3; } 100% { scale: 1; } }

/* ---------- Informacija ---------- */

.info-grid { display: grid; gap: 12px; margin-top: 18px; }
.info {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #fff; border-radius: 22px; box-shadow: var(--shadow);
  border-left: 8px solid var(--c);
}
.info.pink { --c: var(--pink); --l: var(--pink-l); }
.info.blue { --c: var(--blue); --l: var(--blue-l); }
.info.yellow { --c: var(--yellow); --l: var(--yellow-l); }
.info-ico {
  flex: none; width: 54px; height: 54px; display: grid; place-items: center;
  font-size: 28px; border-radius: 50%; background: var(--l);
}
.info h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; }
.info p { margin: 2px 0 0; color: var(--ink-soft); font-weight: 600; line-height: 1.35; }
@media (min-width: 680px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .info { flex-direction: column; text-align: center; border-left: 0; border-top: 8px solid var(--c); }
}

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 20px; }
.actions .btn { font-size: 17px; padding: 12px 10px; }
@media (min-width: 680px) { .actions { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Dovanos ---------- */

.gifts { margin-top: 52px; }
.section-head { text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; margin-bottom: 10px;
  border-radius: 999px; background: var(--blue); color: #fff;
  font-weight: 800; font-size: 14px; letter-spacing: .5px; text-transform: uppercase;
  box-shadow: 0 4px 0 var(--blue-d);
}
.ico-paw { width: 16px; height: 16px; fill: currentColor; }
.lead { max-width: 520px; margin: 12px auto 0; font-size: 17px; font-weight: 600; color: var(--ink-soft); }

.steps {
  list-style: none; padding: 0; margin: 22px auto 0; max-width: 460px;
  display: flex; justify-content: space-between; position: relative;
}
.steps::before {
  content: ''; position: absolute; left: 16%; right: 16%; top: 22px;
  border-top: 4px dotted rgba(255, 79, 154, .45);
}
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 33%; font-weight: 800; }
.steps b {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-display); font-size: 22px; color: #fff; background: var(--c);
  box-shadow: 0 4px 0 rgba(0,0,0,.12);
}
.steps li:nth-child(1) b { --c: var(--pink); }
.steps li:nth-child(2) b { --c: var(--blue); }
.steps li:nth-child(3) b { --c: var(--teal); }

.progress { margin: 26px auto 0; max-width: 520px; }
.progress-track {
  position: relative; height: 20px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 2px 5px rgba(160, 30, 95, .18);
}
.progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--pink) 0 12px, #ff79b4 12px 24px);
  background-size: 34px 34px; animation: stripes 1s linear infinite;
  transition: width .8s cubic-bezier(.3, 1.3, .5, 1);
}
.progress-paw {
  position: absolute; top: 50%; left: 0; width: 34px; height: 34px; translate: -50% -50%;
  fill: var(--pink-d); filter: drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff);
  rotate: 90deg; transition: left .8s cubic-bezier(.3, 1.3, .5, 1);
}
.progress p { margin: 10px 0 0; text-align: center; font-weight: 800; color: var(--ink-soft); }
@keyframes stripes { to { background-position: 34px 0; } }

.filters { display: flex; justify-content: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.chip {
  min-height: 42px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 2.5px solid #fbc7de; background: #fff; font-weight: 800; color: var(--ink-soft);
  transition: background .2s, color .2s, border-color .2s; touch-action: manipulation;
}
.chip.active { background: var(--pink); border-color: var(--pink); color: #fff; }

.gift-grid { display: grid; gap: 22px; margin-top: 22px; }
@media (min-width: 560px) { .gift-grid { grid-template-columns: 1fr 1fr; } }

.gift {
  --c: var(--pink); --l: var(--pink-l); --d: var(--pink-d);
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 4px var(--l), var(--shadow);
  animation: popIn .5s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i, 0) * 70ms);
}
.gift.c-blue   { --c: var(--blue);   --l: var(--blue-l);   --d: var(--blue-d); }
.gift.c-yellow { --c: var(--yellow); --l: var(--yellow-l); --d: var(--yellow-d); }
.gift.c-teal   { --c: var(--teal);   --l: var(--teal-l);   --d: var(--teal-d); }
.gift.c-red    { --c: var(--red);    --l: var(--red-l);    --d: var(--red-d); }
.gift.c-purple { --c: var(--purple); --l: var(--purple-l); --d: var(--purple-d); }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.95); } }

.gift-media {
  position: relative; aspect-ratio: 4 / 3; background: var(--l);
  display: grid; place-items: center; overflow: hidden;
}
.gift-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: filter .4s; }
.gift-media.has-img { background: #fff; }
.gift-ph { font-size: 76px; animation: bob 5s ease-in-out infinite; }
.gift-media::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px;
  background: radial-gradient(circle at 10px -2px, transparent 12px, #fff 12.5px) repeat-x;
  background-size: 20px 18px;
}
.stamp {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; rotate: -12deg; z-index: 2;
  padding: 6px 16px; border: 4px solid var(--red-d); border-radius: 14px;
  background: rgba(255, 255, 255, .9); color: var(--red-d);
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 1.5px; text-transform: uppercase;
  white-space: nowrap; animation: stampIn .45s cubic-bezier(.3, 1.6, .5, 1) both;
}
.is-mine .stamp { border-color: var(--pink-d); color: var(--pink-d); text-transform: none; letter-spacing: 0; }
@keyframes stampIn { from { scale: 2.4; opacity: 0; } }
.is-reserved:not(.is-mine) .gift-media img,
.is-reserved:not(.is-mine) .gift-ph { filter: grayscale(.7) opacity(.6); }

.gift-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 6px 18px 20px; }
.gift-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); }
.gift-desc { margin: 0; white-space: pre-line; color: var(--ink-soft); font-weight: 600; overflow-wrap: anywhere; }
.gift-links { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  min-height: 38px; padding: 6px 14px; border-radius: 999px;
  background: var(--l); color: var(--d); font-weight: 800; font-size: 15px; text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.link-chip:active { filter: brightness(.95); }
.gift-foot { margin-top: auto; padding-top: 6px; display: grid; gap: 4px; }
.gift-foot .btn { --bg: var(--c); --bd: var(--d); }
.gift.c-yellow .gift-foot .btn { color: var(--ink); }
.reserved-note, .mine-note {
  margin: 0; padding: 12px 14px; border-radius: 16px; text-align: center; font-weight: 800;
}
.reserved-note { background: #f6eef2; color: var(--ink-soft); }
.mine-note { background: var(--pink-l); color: var(--pink-d); }
.gift-foot .btn-ghost { padding: 8px; min-height: 40px; font-size: 15px; }
.btn-ghost.armed { color: var(--red-d); }

.gift.skeleton { min-height: 360px; background: linear-gradient(100deg, #fff 40%, #fff3f8 50%, #fff 60%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { text-align: center; font-weight: 700; color: var(--ink-soft); margin: 24px 0 0; }
.empty .btn { margin-top: 12px; }

/* ---------- Footer ---------- */

.footer { margin-top: 48px; text-align: center; font-family: var(--font-hand); font-size: 22px; color: var(--ink-soft); }
.footer p { margin: 8px 0 0; }
.paw-trail { display: flex; justify-content: center; gap: 14px; }
.paw-trail svg { width: 24px; height: 24px; fill: var(--pink); opacity: .55; }
.paw-trail svg:nth-child(odd) { translate: 0 8px; rotate: -10deg; }
.paw-trail svg:nth-child(even) { rotate: 10deg; }

/* ---------- Apatinis langas (sheet) ---------- */

.sheet-backdrop {
  position: fixed; left: 0; right: 0; top: 0; height: var(--vvh, 100%); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(75, 34, 54, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s;
}
.sheet-backdrop.show { opacity: 1; }
.sheet {
  width: 100%; max-width: 520px; max-height: 94%; overflow: auto; overscroll-behavior: contain;
  padding: 10px 20px calc(18px + env(safe-area-inset-bottom));
  background: var(--cream); border-radius: 30px 30px 0 0;
  box-shadow: 0 -20px 50px -20px rgba(75, 34, 54, .5);
  transform: translateY(105%); transition: transform .38s cubic-bezier(.2, .9, .3, 1.1);
}
.show .sheet { transform: none; }
@media (min-width: 600px) {
  .sheet-backdrop { align-items: center; padding: 20px; }
  .sheet { border-radius: 30px; padding-bottom: 22px; }
}
.sheet-grip { width: 48px; height: 5px; margin: 0 auto 14px; border-radius: 999px; background: #efc7da; }
.sheet-gift { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.sheet-thumb {
  flex: none; width: 70px; height: 70px; border-radius: 18px; overflow: hidden;
  background: var(--pink-l); display: grid; place-items: center; font-size: 36px;
}
.sheet-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sheet-gift small { font-weight: 800; color: var(--pink); text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.sheet-gift h3 { font-family: var(--font-display); font-size: 21px; }

.field { display: block; margin: 16px 0 8px; }
.field > span, .label { display: block; font-weight: 800; margin-bottom: 6px; }
.input {
  width: 100%; padding: 14px 16px; border-radius: 18px;
  border: 2.5px solid #f6c3da; background: #fff; color: var(--ink);
  font: inherit; font-size: 17px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 79, 154, .18); }
textarea.input { resize: vertical; min-height: 100px; }
.hint { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.form-error { min-height: 1.4em; margin: 8px 0; color: var(--red-d); font-weight: 800; }
.form-error:empty { min-height: 0; margin: 4px 0; }

/* ---------- Lightbox, toast, konfeti ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 60; overflow: auto; padding: 56px 12px 24px;
  background: rgba(40, 10, 25, .92); display: flex; justify-content: center; align-items: flex-start;
  animation: fadeIn .25s;
}
.lightbox img { width: 100%; max-width: 760px; height: auto; border-radius: 16px; }
.lightbox-close {
  position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: #fff; color: var(--pink-d); font-size: 22px; font-weight: 800; cursor: pointer;
}
@keyframes fadeIn { from { opacity: 0; } }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 90;
  width: fit-content; margin: 0 auto; padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 800; text-align: center;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.5);
  translate: 0 calc(100% + 40px); visibility: hidden;
  transition: translate .4s cubic-bezier(.2, .9, .3, 1.3), visibility 0s .4s;
  pointer-events: none;
}
.toast.show { translate: 0 0; visibility: visible; transition-delay: 0s; }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Evos žinutė ---------- */

.eva-note { display: flex; align-items: flex-end; gap: 10px; max-width: 560px; margin: 22px auto 0; }
.eva-avatar {
  flex: none; width: 66px; height: 66px; border-radius: 50%; overflow: hidden;
  border: 4px solid #fff; box-shadow: 0 0 0 3px var(--pink), 0 8px 16px -8px rgba(160, 30, 95, .6);
}
.eva-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 37%; scale: 2.6; transform-origin: 50% 36%; }
.eva-bubble {
  position: relative; padding: 16px 18px 12px; border-radius: 24px 24px 24px 6px;
  background: #fff; box-shadow: var(--shadow); border: 3px solid var(--pink-l);
}
.eva-bubble p { margin: 0; font-family: var(--font-hand); font-size: 21px; line-height: 1.3; }
.eva-bubble b { color: var(--pink-d); font-weight: 400; }
.eva-sign { display: block; text-align: right; font-family: var(--font-hand); font-size: 19px; color: var(--pink); }

/* ---------- Žaidimas ---------- */

.game { margin-top: 52px; }
.kicker-purple { background: var(--purple); box-shadow: 0 4px 0 var(--purple-d); }
.game-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-weight: 800; color: var(--ink-soft); }
.game-stats b { color: var(--ink); }
.memory {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: 420px; margin: 16px auto 0;
}
.mcard {
  aspect-ratio: 3 / 4; padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 600px; touch-action: manipulation;
  animation: popIn .4s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i, 0) * 35ms);
}
.mcard-inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}
.mcard.flipped .mcard-inner { transform: rotateY(180deg); }
.mcard-back, .mcard-front {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.12), 0 6px 12px -8px rgba(160, 30, 95, .6);
}
.mcard-back { background: repeating-linear-gradient(45deg, var(--pink) 0 10px, #ff6cab 10px 20px); }
.mcard-back svg { width: 46%; height: 46%; fill: #fff; opacity: .9; }
.mcard-front {
  transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6% 4% 5%; background: color-mix(in srgb, var(--pc, var(--pink)) 13%, #fff);
  border: 3px solid color-mix(in srgb, var(--pc, var(--pink)) 45%, #fff);
}
.mcard-front svg { width: 100%; flex: 1; min-height: 0; }
.mcard-front small {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(11px, 3.2vw, 15px); line-height: 1.1;
  color: var(--pcd, var(--pink-d));
}
.mcard.matched .mcard-front { border-color: var(--pc); box-shadow: 0 0 0 3px var(--yellow), inset 0 -5px 0 rgba(0,0,0,.12); animation: bump .4s ease-out; }
.mcard:nth-child(4n+2) .mcard-back { background: repeating-linear-gradient(45deg, var(--blue) 0 10px, #62bbf8 10px 20px); }
.mcard:nth-child(4n+3) .mcard-back { background: repeating-linear-gradient(45deg, var(--teal) 0 10px, #4fd6c4 10px 20px); }
.mcard:nth-child(4n+4) .mcard-back { background: repeating-linear-gradient(45deg, var(--purple) 0 10px, #b096ff 10px 20px); }
.game-win { margin: 16px 0 0; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--pink-d); }
.game-foot { display: flex; justify-content: center; margin-top: 18px; }

/* ---------- Atsakymas: ar ateisi? ---------- */

.rsvp { margin-top: 30px; }
.kicker-pink { background: var(--pink); box-shadow: 0 4px 0 var(--pink-d); }
.rsvp-choices { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 520px) { .rsvp-choices { grid-template-columns: 1fr 1fr; } }
.rsvp-choice {
  --c: var(--pink); --d: var(--pink-d); --l: var(--pink-l);
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px 18px; border: 3px solid var(--l); border-radius: 24px; background: #fff; cursor: pointer; text-align: left;
  box-shadow: 0 5px 0 var(--l), 0 14px 20px -14px rgba(0,0,0,.4);
  transition: transform .12s, background .2s, border-color .2s, box-shadow .12s, opacity .2s;
  touch-action: manipulation;
}
.rsvp-choice.no { --c: var(--blue); --d: var(--blue-d); --l: var(--blue-l); }
.rsvp-choice:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--l); }
.rc-emoji { grid-row: 1 / span 2; font-size: 40px; line-height: 1; }
.rsvp-choice.yes .rc-emoji { animation: heartbeat 1.8s ease-in-out infinite; }
.rsvp-choice b { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.15; color: var(--d); }
.rsvp-choice small { font-family: var(--font-hand); font-size: 17px; color: var(--ink-soft); }
.rsvp-choice.active { background: var(--c); border-color: var(--c); box-shadow: 0 5px 0 var(--d), 0 14px 20px -12px rgba(0,0,0,.45); }
.rsvp-choice.active b, .rsvp-choice.active small { color: #fff; }
.chosen .rsvp-choice:not(.active) { opacity: .6; }
.chosen .rsvp-choice:not(.active) .rc-emoji { animation: none; }

.rsvp-form { margin-top: 6px; animation: popIn .35s cubic-bezier(.2, .9, .3, 1.3) both; }
.field > span small { font-weight: 600; color: var(--ink-soft); }
.rsvp-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.stepper { padding: 10px 12px; border-radius: 18px; background: #fff; border: 2.5px solid #f6c3da; text-align: center; }
.stepper-lbl { display: block; font-weight: 800; font-size: 15px; }
.stepper-ctl { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.stepper output { font-family: var(--font-display); font-weight: 700; font-size: 28px; min-width: 1.5em; }
.step-btn {
  width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; touch-action: manipulation;
  background: var(--pink-l); color: var(--pink-d); font-size: 24px; font-weight: 900; line-height: 1;
}
.step-btn:active { transform: scale(.9); }
.rsvp-form .btn { margin-top: 4px; }

.rsvp-done {
  margin-top: 18px; padding: 20px 16px; border-radius: 22px; text-align: center;
  background: var(--teal-l); animation: popIn .45s cubic-bezier(.2, .9, .3, 1.3) both;
}
.rsvp-done.no { background: var(--blue-l); }
.rd-emoji { display: block; font-size: 52px; line-height: 1; animation: bob 4s ease-in-out infinite; }
.rsvp-done h3 { margin-top: 8px; font-family: var(--font-display); font-size: 24px; color: var(--teal-d); }
.rsvp-done.no h3 { color: var(--blue-d); }
.rsvp-done p { margin: 6px 0 14px; font-weight: 700; color: var(--ink-soft); overflow-wrap: anywhere; }
.rsvp-done .btn { --bg: var(--teal); --bd: var(--teal-d); }
.rsvp-done.no .btn { --bg: var(--pink); --bd: var(--pink-d); }

.rsvp-note {
  margin: 18px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--yellow-l);
  font-size: 15px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.45;
}
