/* ============================================================
   party.bloemi.st — playful rave-sticker maximalism
   pink · peach · turquoise · big · bold · mobile-first
   ============================================================ */

:root {
  --pink:      #ff2e88;
  --pink-soft: #ff7ab8;
  --peach:     #ffb27a;
  --peach-lt:  #ffd9b3;
  --turq:      #16d6c4;
  --turq-deep: #0bb3a6;
  --ink:       #2a1230;   /* deep aubergine for text */
  --cream:     #fff4ea;
  --paper:     #fffaf4;

  --shadow-hard: 6px 6px 0 var(--ink);
  --radius: 22px;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, var(--peach-lt) 0%, transparent 55%),
    var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── ambient blobs ───────────────────────────────────────── */
.blob {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
  will-change: transform;
}
.blob--pink  { width: 46vmax; height: 46vmax; top: -14vmax; right: -12vmax; background: var(--pink-soft);  animation: drift1 18s ease-in-out infinite; }
.blob--turq  { width: 40vmax; height: 40vmax; bottom: -10vmax; left: -12vmax; background: var(--turq);      animation: drift2 22s ease-in-out infinite; }
.blob--peach { width: 34vmax; height: 34vmax; top: 40vmax; left: 30vmax;     background: var(--peach);     animation: drift1 26s ease-in-out infinite reverse; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vmax,3vmax) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-3vmax,-4vmax) scale(1.12); } }

/* grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── stage ───────────────────────────────────────────────── */
.stage {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
  padding: clamp(2rem, 7vw, 4rem) 0 4rem;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero { text-align: center; }

.ticket-tag {
  display: inline-flex;
  gap: .6em;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  padding: .5em 1em;
  border-radius: 999px;
  transform: rotate(-2deg);
}
.ticket-tag .dot { color: var(--turq); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.kicker {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin: 1.4rem 0 .3rem;
  color: var(--pink);
}

.title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: .92;
  font-size: clamp(2.8rem, 13vw, 6rem);
  margin: 0;
  letter-spacing: -.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.title__line:nth-child(2) { color: var(--turq-deep); }

/* glitching age */
.age {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: .1em;
  line-height: 1;
  color: var(--pink);
}
.age__glyph {
  display: inline-block;
  font-size: clamp(5rem, 26vw, 12rem);
  font-weight: 900;
  position: relative;
  text-shadow: var(--shadow-hard);
  animation: agewob 5s ease-in-out infinite;
}
.age__glyph.is-glitching {
  text-shadow:
    .04em 0 0 var(--turq),
   -.04em 0 0 var(--pink);
}
.age__glyph.err404 {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 7vw, 3rem);
  color: var(--ink);
  text-shadow: none;
}
@keyframes agewob { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.lead {
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  max-width: 30ch;
  margin: 1.4rem auto 0;
  font-weight: 500;
}
.hl { padding: 0 .15em; border-radius: 6px; white-space: nowrap; }
.hl--pink { background: var(--pink); color: var(--cream); }

/* equalizer motif */
.equalizer {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: flex-end;
  height: 56px;
  margin: 2rem auto 0;
}
.equalizer span {
  width: 9px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(var(--turq), var(--pink));
  animation: eq 1.1s ease-in-out infinite;
}
.equalizer span:nth-child(1){ animation-delay:-.2s } .equalizer span:nth-child(2){ animation-delay:-.5s }
.equalizer span:nth-child(3){ animation-delay:-.1s } .equalizer span:nth-child(4){ animation-delay:-.7s }
.equalizer span:nth-child(5){ animation-delay:-.3s } .equalizer span:nth-child(6){ animation-delay:-.6s }
.equalizer span:nth-child(7){ animation-delay:-.4s }
.equalizer--small { height: 30px; margin-top: 0; }
.equalizer--small span { width: 6px; }
@keyframes eq { 0%,100% { height: 18%; } 50% { height: 100%; } }

/* ── DETAIL CARDS ─────────────────────────────────────────── */
.cards {
  display: grid;
  gap: 1.1rem;
  margin: clamp(2.5rem, 8vw, 4rem) 0 1.5rem;
}
@media (min-width: 620px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-hard);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translate(-2px,-2px) rotate(0deg) !important; box-shadow: 9px 9px 0 var(--ink); }
.tilt-l { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(1.5deg); }
.card--turq  { background: #d7fbf5; }
.card--pink  { background: #ffe0ee; }
.card--peach { background: #ffe9d4; }
.card__icon { font-size: 2rem; display: block; }
.card__h {
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: .5rem 0 .1rem;
  opacity: .6;
}
.card__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 0 .35rem;
  line-height: 1;
}
.card__sub { font-size: .95rem; margin: 0; }

.byline {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 34ch;
  margin: 1.5rem auto;
}

/* ── COUNTDOWN ────────────────────────────────────────────── */
.countdown { text-align: center; margin: 2.5rem 0; }
.countdown__label { font-family: var(--font-mono); font-size: .85rem; opacity: .7; margin-bottom: .8rem; }
.countdown__grid { display: flex; gap: .6rem; justify-content: center; }
.countdown__grid > div {
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  padding: .7rem .3rem .5rem;
  min-width: 64px;
}
.countdown__grid b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  display: block;
  line-height: 1;
  color: var(--turq);
}
.countdown__grid small { font-family: var(--font-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }

/* ── RSVP ─────────────────────────────────────────────────── */
.rsvp {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow-hard);
  padding: clamp(1.4rem, 5vw, 2.4rem);
  margin-top: 1rem;
}
.rsvp__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rsvp__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 8vw, 2.8rem); margin: 0; }
.live {
  font-family: var(--font-mono);
  font-size: .85rem;
  background: var(--turq);
  color: var(--ink);
  padding: .35em .8em;
  border-radius: 999px;
  border: 2px solid var(--ink);
}

.field { display: block; margin-top: 1.4rem; }
.field__label { display: block; font-weight: 700; margin-bottom: .5rem; font-size: 1.02rem; }
#name {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  padding: .85rem 1rem;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
}
#name:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
#name::placeholder { color: #b89; }

/* choices */
.choices { border: none; padding: 0; margin: 1.6rem 0 0; }
.choices__row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
.choice {
  flex: 1 1 30%;
  min-width: 120px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  padding: .9rem .7rem;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .12s ease;
}
.choice__emoji { display: block; font-size: 1.5rem; margin-bottom: .2rem; }
.choice:hover { transform: translateY(-2px); }
.choice:active { transform: translateY(1px); }
.choice.is-active { box-shadow: inset 0 0 0 3px var(--cream), 0 0 0 3px var(--ink); }
.choice--yes.is-active   { background: var(--turq); }
.choice--maybe.is-active { background: var(--peach); }
.choice--no.is-active    { background: var(--pink-soft); }

.choice--maybe { position: relative; }
.choice--maybe.dodging { transition: transform .28s cubic-bezier(.34,1.56,.64,1); }

.choice--no { transition: transform .12s ease, background .15s ease, flex-basis .4s ease; }
.choice--no.is-active { flex-basis: 100%; text-align: left; }
.choice--no .choice__emoji { display: inline-block; margin-right: .4rem; }

.choice__hint { font-family: var(--font-mono); font-size: .85rem; min-height: 1.2em; margin: .9rem 0 0; color: var(--turq-deep); }

/* reminder inline-dropdown sentence */
.remind {
  margin-top: 1.8rem;
  padding: 1.2rem 1.2rem 1.3rem;
  background: linear-gradient(135deg, #d7fbf5, #ffe0ee);
  border: 3px dashed var(--ink);
  border-radius: 18px;
  transition: opacity .3s ease, transform .3s ease;
}
.remind.is-hidden { display: none; }
.remind__sentence {
  margin: 0;
  font-size: clamp(1.05rem, 4.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.9;
}

/* dropdown styled as inline text + caret */
.ddwrap {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}
.ddwrap select,
.ddwrap--contact input {
  font: inherit;
  font-weight: 800;
  color: var(--pink);
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--pink);
  padding: 0 1.3em .05em .15em;
  margin: 0 .1em;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  max-width: 12em;
}
.ddwrap select:focus,
.ddwrap--contact input:focus { outline: none; border-bottom-color: var(--turq-deep); color: var(--turq-deep); }
.ddwrap::after {
  content: "▾";
  position: absolute;
  right: .25em;
  top: 50%;
  transform: translateY(-45%);
  pointer-events: none;
  color: var(--pink);
  font-size: .8em;
}
.ddwrap--contact::after { content: ""; }
.ddwrap--contact input {
  cursor: text;
  font-weight: 700;
  min-width: 9em;
  padding-right: .3em;
}
.ddwrap--contact input::placeholder { color: var(--pink-soft); font-weight: 600; }
.owl-note { font-weight: 700; color: var(--turq-deep); }
.remind__dot { font-weight: 800; }

/* submit */
.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  padding: 1.05rem;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--pink);
  color: var(--cream);
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: transform .12s ease, box-shadow .12s ease;
}
.submit:hover { transform: translate(-2px,-2px); box-shadow: 9px 9px 0 var(--ink); }
.submit:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.submit:disabled { opacity: .6; cursor: progress; }
.submit__spark { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.refill { text-align: center; font-size: .9rem; opacity: .7; margin: 1rem 0 0; }

/* confirmation */
.done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(255,244,234,.92);
  backdrop-filter: blur(4px);
  border-radius: 28px;
  animation: pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
.done__card { text-align: center; max-width: 30ch; }
.done__emoji { font-size: 3.5rem; display: block; }
.done__h { font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; margin: .4rem 0; }
.done__msg { font-size: 1.05rem; font-weight: 500; }
.done__again {
  margin-top: 1rem;
  font: inherit;
  font-weight: 700;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  cursor: pointer;
}
.done__again:hover { background: var(--ink); color: var(--cream); }

/* footer */
.foot { text-align: center; margin-top: 3rem; font-family: var(--font-mono); font-size: .85rem; opacity: .8; }
.foot .equalizer { margin-bottom: .8rem; }
.foot__tiny { font-size: .72rem; opacity: .7; margin-top: .4rem; }

/* confetti canvas */
#confetti { position: fixed; inset: 0; z-index: 50; pointer-events: none; }

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