:root {
  --bg: #fff7f1;
  --bg-deep: #ffd6e8;
  --text: #180f2b;
  --muted: #5e5572;
  --line: rgba(24, 15, 43, 0.12);
  --card: rgba(255, 250, 255, 0.72);
  --card-strong: rgba(255, 255, 255, 0.84);
  --pink: #ff4fa3;
  --yellow: #ffd84d;
  --cyan: #74f2ff;
  --lime: #c7ff5e;
  --orange: #ff8744;
  --shadow: 0 24px 80px rgba(66, 24, 89, 0.18);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 79, 163, 0.28), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(116, 242, 255, 0.34), transparent 22%),
    radial-gradient(circle at 72% 82%, rgba(255, 216, 77, 0.28), transparent 22%),
    linear-gradient(140deg, #fff9eb 0%, #ffeef8 42%, #f4f4ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.95) 1.2px, transparent 1.6px),
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(14px);
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}

.ambient-one {
  top: 6vh;
  right: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 79, 163, 0.28);
}

.ambient-two {
  left: -30px;
  bottom: 18vh;
  width: 220px;
  height: 220px;
  background: rgba(116, 242, 255, 0.24);
  animation-duration: 16s;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  top: -10vh;
  width: 12px;
  height: 18px;
  border-radius: 6px;
  opacity: 0.6;
  animation: confetti-fall linear forwards;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 64px;
}

.admin-shell {
  width: min(920px, calc(100% - 28px));
}

.hero-card,
.form-card,
.info-card,
.ticker {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px 30px 30px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 79, 163, 0.18), rgba(255, 255, 255, 0.76) 32%, rgba(116, 242, 255, 0.2) 70%, rgba(255, 216, 77, 0.28)),
    var(--card);
  animation: intro 650ms ease both;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.hero-main,
.hero-side {
  display: grid;
  align-content: start;
}

.hero-notes {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.hero-side {
  gap: 18px;
  padding-top: 82px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -38% auto;
  width: 260px;
  height: 260px;
  border-radius: 40px;
  rotate: -10deg;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    radial-gradient(#180f2b 0.75px, transparent 0.75px),
    radial-gradient(#180f2b 0.75px, transparent 0.75px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.sticker {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 30px rgba(24, 15, 43, 0.14);
}

.sticker-top {
  top: 20px;
  right: 22px;
  rotate: 8deg;
  background: var(--lime);
}

.sticker-bottom {
  right: 110px;
  bottom: 26px;
  rotate: -9deg;
  background: var(--yellow);
}

.eyebrow,
.section-kicker,
.meta-label {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--pink);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2 {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  line-height: 0.92;
}

h1 {
  max-width: none;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-main h1 {
  color: transparent;
  background-image: linear-gradient(
    108deg,
    #180f2b 0%,
    #180f2b 34%,
    #fff7bf 46%,
    #ffffff 50%,
    #180f2b 58%,
    #180f2b 100%
  );
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.18));
  animation: title-shimmer 4.8s linear infinite;
}

h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 5vw, 2.7rem);
}

.hero-copy,
.section-head p,
.info-list li,
.submission-meta,
.empty-state,
.vibe-note,
.hero-counter,
.invite-note p {
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy,
.section-head p,
.form-status,
.submission-meta,
.empty-state,
textarea,
input,
button,
.vibe-note,
.hero-counter,
.invite-note {
  position: relative;
  z-index: 1;
}

.hero-counter {
  display: inline-grid;
  position: absolute;
  top: 42px;
  right: 24px;
  justify-items: start;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 15, 43, 0.08);
  box-shadow: 0 12px 28px rgba(24, 15, 43, 0.12);
  transform: rotate(8deg);
}

.hero-counter-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  line-height: 1.1;
}

.hero-counter strong {
  color: var(--text);
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1;
}

.hero-copy {
  max-width: 38rem;
  margin: 18px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.04rem;
  line-height: 1.6;
}

.invite-compact {
  display: none;
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(24, 15, 43, 0.08);
  color: var(--muted);
  font-family: "Sora", sans-serif;
  font-weight: 600;
  line-height: 1.45;
}

.hero-gif-card {
  position: relative;
  z-index: 1;
  display: inline-grid;
  gap: 10px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 15, 43, 0.08);
  box-shadow: 0 14px 32px rgba(24, 15, 43, 0.08);
}

.hero-gif {
  display: block;
  width: min(100%, 252px);
  border-radius: 18px;
  border: 1px solid rgba(24, 15, 43, 0.08);
}

.hero-gif-card span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.invite-note {
  max-width: 44rem;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(24, 15, 43, 0.08);
}

.invite-note p {
  margin: 0;
  font-size: 1rem;
}

.invite-note p + p {
  margin-top: 10px;
}

.invite-lead {
  color: var(--text) !important;
  font-size: 1.16rem !important;
  font-weight: 700;
}

.invite-signoff {
  color: var(--pink) !important;
  font-weight: 700;
}

.event-meta,
.cta-row,
.content-grid,
.stats,
.submission-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.event-meta {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 28px;
}

.meta-pill,
.stat-box {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(24, 15, 43, 0.08);
}

.meta-pill strong,
.stat-box strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.event-facts .meta-pill small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cta-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.calendar-button,
.ghost-button,
.submit-button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: none;
  border-radius: 18px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.calendar-button,
.submit-button {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 16px 32px rgba(255, 79, 163, 0.24);
}

.ghost-button,
.mini-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(24, 15, 43, 0.08);
}

.calendar-button:hover,
.ghost-button:hover,
.submit-button:hover,
.mini-button:hover,
.calendar-button:focus-visible,
.ghost-button:focus-visible,
.submit-button:focus-visible,
.mini-button:focus-visible {
  transform: translateY(-2px) rotate(-0.5deg);
  box-shadow: 0 18px 36px rgba(24, 15, 43, 0.14);
}

.content-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-top: 22px;
}

.admin-grid {
  grid-template-columns: 1fr;
}

.form-card,
.info-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.form-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62)),
    var(--card);
}

.section-head {
  margin-bottom: 22px;
}

.section-head p {
  margin: 12px 0 0;
}

.rsvp-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 10px;
  margin: 0;
}

.is-hidden {
  display: none !important;
}

.field-hint {
  min-height: 1.2rem;
  margin: 2px 0 0;
  color: #d13d5e;
  font-size: 0.9rem;
  font-weight: 700;
}

.field-error .choice {
  border-color: rgba(209, 61, 94, 0.42);
  box-shadow: 0 0 0 4px rgba(209, 61, 94, 0.08);
}

.field span,
legend {
  font-weight: 700;
}

input[type="text"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
  outline: none;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 79, 163, 0.45);
  box-shadow: 0 0 0 5px rgba(255, 79, 163, 0.12);
}

fieldset {
  padding: 0;
  border: none;
}

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

.kid-choice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72)),
    var(--card-strong);
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.choice::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(255, 79, 163, 0.12);
}

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  position: relative;
  z-index: 1;
  padding: 16px;
}

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

.choice:has(input:checked) {
  border-color: rgba(255, 79, 163, 0.46);
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.2), rgba(116, 242, 255, 0.18));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.form-status {
  min-height: 1.5rem;
  margin: -2px 0 0;
  font-weight: 600;
}

.form-status.success {
  color: #0b8d74;
}

.form-status.error {
  color: #d13d5e;
}

.vibe-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 216, 77, 0.24);
  border: 1px solid rgba(24, 15, 43, 0.06);
  font-weight: 500;
}

.stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.submission-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.submission-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.submission-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--card-strong);
  border: 1px solid rgba(24, 15, 43, 0.08);
}

.submission-item strong {
  display: block;
  font-size: 1rem;
}

.admin-item-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.admin-head-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-edit-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(24, 15, 43, 0.08);
}

.admin-form-actions {
  display: grid;
}

.admin-form-status {
  min-height: 1.2rem;
}

.submission-meta {
  margin-top: 8px;
  font-size: 0.94rem;
}

.submission-note {
  margin-top: 8px;
  font-size: 0.94rem;
}

.bounce-note {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 14px;
}

.bounce-gif {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(24, 15, 43, 0.08);
}

.dress-note {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 14px;
}

.dress-gif {
  display: block;
  width: 88px;
  height: 112px;
  margin: 0 auto;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(24, 15, 43, 0.08);
}

.empty-state {
  padding: 14px 0 4px;
}

@keyframes intro {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes title-shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -20% 0;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(20px, -18px, 0) scale(1.08);
  }
}

@keyframes confetti-fall {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  to {
    transform: translate3d(var(--drift, 0px), 120vh, 0) rotate(540deg);
    opacity: 0.2;
  }
}

@media (max-width: 840px) {
  .content-grid,
  .cta-row,
  .choice-grid,
  .stats {
    grid-template-columns: 1fr;
  }

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

  .shell {
    width: min(100% - 18px, 100%);
    padding-top: 10px;
  }

  .hero-card,
  .form-card,
  .info-card {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-card {
    padding-top: 20px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-main {
    justify-items: center;
    text-align: center;
  }

  .hero-counter {
    top: 8px;
    right: 6px;
    padding: 6px 8px;
    justify-items: center;
    transform: rotate(6deg) scale(0.74);
  }

  .hero-counter-label {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }

  .hero-counter strong {
    font-size: 0.88rem;
  }

  .hero-side {
    gap: 14px;
    padding-top: 0;
  }

  .bounce-note {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .dress-note {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .bounce-gif {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .dress-gif {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  h1 {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
    white-space: nowrap;
  }

  .hero-gif-card,
  .invite-note,
  .dress-gif,
  .bounce-gif {
    display: none;
  }

  .invite-compact {
    display: block;
  }

  .hero-copy {
    margin-top: 14px;
    font-size: 0.98rem;
    max-width: 32rem;
  }

  .event-meta {
    margin-top: 18px;
    gap: 10px;
    width: 100%;
  }

  .meta-pill,
  .stat-box {
    padding: 14px 15px;
    border-radius: 18px;
  }

  .event-facts .meta-pill,
  .hero-notes,
  .cta-row,
  .invite-compact {
    width: 100%;
  }

  .event-facts .meta-pill,
  .hero-notes .vibe-note {
    text-align: center;
  }

  .content-grid {
    margin-top: 16px;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .field {
    gap: 8px;
  }

  .choice {
    min-height: 82px;
    border-radius: 20px;
  }

  .vibe-note {
    margin-top: 10px;
    padding: 12px 14px;
  }

  .submission-list {
    gap: 10px;
    margin-top: 12px;
  }

  .submission-item {
    padding: 12px 14px;
  }
}
