:root {
  --rose: #d6336c;
  --rose-deep: #a61e4d;
  --ink: #5b3a4b;
  --ink-soft: #8a6478;
  --card: rgba(255, 255, 255, 0.86);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

/* Author `display` rules below outrank the browser's [hidden] rule,
   so hiding via the `hidden` property needs this to actually take effect. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background: linear-gradient(160deg, #ffd9e4 0%, #fff1f5 45%, #ffe6ef 100%);
  overflow-x: hidden;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(env(safe-area-inset-top) + 1.25rem)
    calc(env(safe-area-inset-right) + 1.25rem)
    calc(env(safe-area-inset-bottom) + 1.25rem)
    calc(env(safe-area-inset-left) + 1.25rem);
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(198, 40, 100, 0.18);
  padding: 1.6rem 1.35rem 1.5rem;
  text-align: center;
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 700;
}

.headline {
  margin: 0 0 0.7rem;
  font-size: 1.48rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--rose-deep);
  text-wrap: balance;
}

.subline {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.steps {
  list-style: none;
  margin: 1.15rem 0 1.3rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(214, 51, 108, 0.1);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}

.step-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex: none;
}

.step-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose-deep);
}

.step-text {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* Both languages are always visible: German on top, Ukrainian beneath. */
.de,
.uk {
  display: block;
}

.uk {
  opacity: 0.78;
  font-size: 0.88em;
  margin-top: 0.22em;
}

.headline .uk {
  font-size: 0.72em;
  font-weight: 600;
}

.eyebrow .uk {
  font-size: 0.92em;
  margin-top: 0.15em;
}

.accept .uk {
  font-size: 0.84em;
  font-weight: 600;
  margin-top: 0.12em;
}

.accept {
  width: 100%;
  min-height: 54px;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0508c 0%, #d6336c 100%);
  color: #fff;
  font-size: 1.06rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(214, 51, 108, 0.36);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  animation: pulse 2.6s ease-in-out 1.2s infinite;
}

.accept:active {
  transform: scale(0.97);
  box-shadow: 0 6px 16px rgba(214, 51, 108, 0.3);
}

.question {
  margin: 1.25rem 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rose);
}

.chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.chips-wide {
  grid-template-columns: 1fr 1fr;
}

/* Eight wishes are taller than the card on short phones — let them scroll
   inside the card so the continue button stays reachable. */
.chips-scroll {
  max-height: min(46svh, 340px);
  overflow-y: auto;
  padding: 2px;
  margin: 1.15rem -2px 1.25rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid rgba(214, 51, 108, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.chip:active {
  transform: scale(0.97);
}

.chip-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
}

.chip-label {
  min-width: 0;
}

.chip-label .de {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rose-deep);
  line-height: 1.15;
}

.chip-label .uk {
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 0.05em;
  line-height: 1.15;
}

.chip.picked {
  border-color: var(--rose);
  background: #fff;
  box-shadow: 0 6px 16px rgba(214, 51, 108, 0.18);
}

.accept:disabled {
  background: rgba(214, 51, 108, 0.25);
  box-shadow: none;
  cursor: default;
  animation: none;
}

.confirm-wishes {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.confirm-wishes .uk {
  font-size: 0.94em;
}

.whatsapp {
  display: block;
  position: relative;
  margin-top: 1.3rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.32);
}

.whatsapp .uk {
  font-size: 0.82em;
  font-weight: 600;
  opacity: 0.92;
}

.whatsapp-hint {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.whatsapp-hint .uk {
  font-size: 0.95em;
}

.decline-zone {
  position: relative;
  min-height: 46px;
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decline {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.7;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.5, 1), opacity 0.28s ease;
}

.gave-up {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  animation: rise 0.45s ease both;
}

.loading-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.loading-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  animation: rise 0.35s ease both;
}

.loading-steps .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: transparent;
  background: rgba(214, 51, 108, 0.12);
  transition: background 0.3s ease, color 0.3s ease;
}

.loading-steps li.done .tick {
  background: var(--rose);
  color: #fff;
}

.loading-steps li.done {
  color: var(--rose-deep);
  font-weight: 600;
}

.confirm-mark {
  font-size: 3.4rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  animation: beat 1.4s ease-in-out infinite;
}

.confirm-steps {
  margin: 1.4rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

/* Floating background hearts */
#hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.heart {
  position: absolute;
  top: 105%;
  opacity: 0.55;
  animation-name: drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.burst {
  position: absolute;
  animation: pop 2.2s ease-out forwards;
}

@keyframes drift {
  to {
    transform: translateY(-118svh) rotate(28deg);
  }
}

@keyframes pop {
  0% { transform: scale(0.4) translateY(0); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: scale(1.25) translateY(-150px); opacity: 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(214, 51, 108, 0.36); }
  50% { box-shadow: 0 10px 32px rgba(214, 51, 108, 0.55); }
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@media (min-width: 600px) {
  .card { padding: 2.5rem 2.25rem 2rem; }
  .headline { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
