:root {
  --bg: #130a2e;
  --bg-2: #1d1145;
  --card: #241558;
  --line: rgba(255, 255, 255, 0.14);
  --text: #fdf9ff;
  --muted: #c9bdf0;
  --pink: #ff3d9a;
  --cyan: #2ee6ff;
  --yellow: #ffd23f;
  --lime: #8dff6a;
  --orange: #ff8a3d;
  --display: "Bungee", "Arial Black", Impact, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -5%, rgba(255, 61, 154, 0.35), transparent 65%),
    radial-gradient(800px 500px at 95% 5%, rgba(46, 230, 255, 0.28), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(255, 210, 63, 0.16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* faint arcade grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

a { color: var(--cyan); }

.wrap {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}
.brand {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--yellow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #1a0b33;
  background: var(--yellow);
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 0 6px 0 #b98a00, 0 14px 30px rgba(255, 210, 63, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b98a00, 0 18px 36px rgba(255, 210, 63, 0.45); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b98a00; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.btn.big { font-size: 1.25rem; padding: 18px 40px; }
.btn.small { font-size: 0.85rem; padding: 10px 20px; box-shadow: 0 4px 0 #b98a00; }
.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--line);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.16); box-shadow: none; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 28px 0 40px;
  position: relative;
}
.pill {
  display: inline-block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  border-radius: 999px;
  padding: 7px 18px;
  box-shadow: 0 0 18px rgba(46, 230, 255, 0.45), inset 0 0 12px rgba(46, 230, 255, 0.2);
  animation: flicker 4s infinite;
}
.hero h1 {
  margin: 22px 0 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  text-wrap: balance;
}
.hero .name {
  display: block;
  font-size: clamp(3.6rem, 15vw, 9.5rem);
  background: linear-gradient(92deg, var(--pink), var(--orange) 40%, var(--yellow) 70%, var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35));
}
.hero .turns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  font-size: clamp(1.5rem, 5vw, 3rem);
  margin-top: 6px;
}
.seven {
  display: inline-grid;
  place-items: center;
  width: clamp(92px, 20vw, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: clamp(3.4rem, 12vw, 6.6rem);
  color: #1a0b33;
  background: radial-gradient(circle at 32% 28%, #fff7c2, var(--yellow) 45%, #f59e0b);
  box-shadow: 0 0 0 8px rgba(255, 210, 63, 0.22), 0 0 60px rgba(255, 210, 63, 0.7);
  animation: bob 2.6s ease-in-out infinite;
}
.hero .lead {
  max-width: 34em;
  margin: 26px auto 0;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--muted);
  font-weight: 700;
}
.hero .lead strong { color: var(--text); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.floaty {
  position: absolute;
  font-size: clamp(2rem, 6vw, 3.6rem);
  animation: bob 3.4s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
  user-select: none;
}
.floaty.f1 { left: 2%; top: 22%; animation-delay: -0.6s; rotate: -14deg; }
.floaty.f2 { right: 3%; top: 16%; animation-delay: -1.4s; rotate: 12deg; }
.floaty.f3 { left: 7%; bottom: 20%; animation-delay: -2.1s; rotate: 10deg; }
.floaty.f4 { right: 8%; bottom: 24%; animation-delay: -0.2s; rotate: -10deg; }

/* ---------- countdown ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 18px);
  margin: 34px auto 0;
}
.countdown .unit {
  min-width: clamp(70px, 18vw, 120px);
  padding: 14px 8px 10px;
  background: rgba(0, 0, 0, 0.38);
  border: 2px solid var(--line);
  border-radius: 18px;
}
.countdown .num {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(46, 230, 255, 0.7);
  font-variant-numeric: tabular-nums;
}
.countdown .lbl {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown-done {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--yellow);
  margin-top: 34px;
}

/* ---------- bowling lane ---------- */
.lane {
  position: relative;
  height: 74px;
  margin: 46px auto 0;
  max-width: 760px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 46px),
    linear-gradient(#f2c57c, #d99a4e);
  box-shadow: inset 0 0 0 4px #7a4a1c, 0 14px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.ball {
  position: absolute;
  top: 15px;
  left: -60px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 60% 30%, #130a2e 0 3px, transparent 4px),
    radial-gradient(circle at 74% 44%, #130a2e 0 3px, transparent 4px),
    radial-gradient(circle at 56% 52%, #130a2e 0 3px, transparent 4px),
    radial-gradient(circle at 30% 28%, #ff9ccb, var(--pink) 55%, #a8105a);
  animation: roll 4.5s cubic-bezier(0.3, 0, 0.6, 1) infinite;
}
.pins { position: absolute; right: 26px; top: 0; bottom: 0; display: flex; align-items: center; gap: 7px; }
.pin {
  width: 15px;
  height: 46px;
  border-radius: 8px 8px 6px 6px / 20px 20px 6px 6px;
  background: linear-gradient(#fff 0 22%, #e11d48 22% 34%, #fff 34%);
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.12);
  transform-origin: 50% 100%;
  animation: tip 4.5s ease-in infinite;
}
.pin:nth-child(2) { animation-name: tip2; }
.pin:nth-child(3) { animation-name: tip3; }
.pin:nth-child(4) { animation-name: tip2; }
.strike {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.7rem;
  color: #1a0b33;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: strike 4.5s ease infinite;
}

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  text-align: center;
  margin: 0 0 8px;
  text-wrap: balance;
}
.section-title .hl { color: var(--pink); text-shadow: 0 0 24px rgba(255, 61, 154, 0.6); }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 34px; max-width: 36em; font-weight: 700; }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  position: relative;
}
.card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.card p { margin: 0; color: var(--muted); font-weight: 700; }
.card .big-line { color: var(--text); font-size: 1.35rem; font-weight: 900; line-height: 1.25; }
.card .icon { font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 12px; }
.card.pink { border-color: var(--pink); box-shadow: 0 0 28px rgba(255, 61, 154, 0.28); }
.card.cyan { border-color: var(--cyan); box-shadow: 0 0 28px rgba(46, 230, 255, 0.25); }
.card.yellow { border-color: var(--yellow); box-shadow: 0 0 28px rgba(255, 210, 63, 0.25); }
.card.lime { border-color: var(--lime); box-shadow: 0 0 28px rgba(141, 255, 106, 0.22); }
.card.pink h3 { color: var(--pink); }
.card.cyan h3 { color: var(--cyan); }
.card.yellow h3 { color: var(--yellow); }
.card.lime h3 { color: var(--lime); }
.fun .card { text-align: center; transition: transform 0.18s ease; }
.fun .card:hover { transform: translateY(-6px) rotate(-1.5deg); }
.fun .card .icon { font-size: 3.6rem; }

.card-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.map {
  margin-top: 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--line);
  aspect-ratio: 16 / 7;
  min-height: 260px;
  width: 100%;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.banner {
  text-align: center;
  background: linear-gradient(120deg, var(--pink), #b83dff 55%, #5b6bff);
  border-radius: 32px;
  padding: clamp(34px, 6vw, 60px) 24px;
  box-shadow: 0 24px 60px rgba(184, 61, 255, 0.35);
}
.banner h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 5.5vw, 3rem);
  margin: 0 0 8px;
  text-wrap: balance;
}
.banner p { margin: 0 0 24px; font-weight: 800; font-size: 1.15rem; }

footer {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  padding: 30px 0 50px;
  font-size: 0.95rem;
}

/* ---------- RSVP form ---------- */
.rsvp-head { text-align: center; padding: 18px 0 8px; }
.rsvp-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 1;
  margin: 18px 0 12px;
  background: linear-gradient(92deg, var(--pink), var(--orange) 45%, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rsvp-head p { color: var(--muted); font-weight: 700; margin: 0 auto; max-width: 32em; }
.rsvp-head p strong { color: var(--text); }

.form-card {
  max-width: 660px;
  margin: 30px auto 0;
  padding: clamp(22px, 5vw, 40px);
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(46, 230, 255, 0.2);
}
.field { margin-bottom: 22px; }
.field > label, .field > .label, fieldset legend {
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
  padding: 0;
}
.hint { font-weight: 700; color: var(--muted); font-size: 0.88rem; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }

input[type="text"], input[type="tel"], input[type="email"], textarea, select {
  width: 100%;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 15px) 55%; background-size: 7px 7px; background-repeat: no-repeat; }
select option { color: #111; }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(201, 189, 240, 0.6); }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice label {
  display: block;
  text-align: center;
  font-weight: 900;
  padding: 16px 10px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.choice label:hover { transform: translateY(-2px); }
.choice .emoji { display: block; font-size: 2rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice input:checked + label.yes { border-color: var(--lime); background: rgba(141, 255, 106, 0.16); box-shadow: 0 0 22px rgba(141, 255, 106, 0.35); }
.choice input:checked + label.no { border-color: var(--pink); background: rgba(255, 61, 154, 0.16); box-shadow: 0 0 22px rgba(255, 61, 154, 0.35); }
.choice input:focus-visible + label { outline: 3px solid var(--cyan); outline-offset: 3px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

.form-msg {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
  background: rgba(255, 61, 154, 0.16);
  border: 2px solid var(--pink);
}
.thanks { text-align: center; }
.thanks .icon { font-size: 4.5rem; display: block; animation: bob 2.4s ease-in-out infinite; }
.thanks h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 10px 0; color: var(--yellow); }
.thanks p { color: var(--muted); font-weight: 700; margin: 0 0 22px; }

/* ---------- animation ---------- */
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes flicker { 0%, 92%, 96%, 100% { opacity: 1; } 94% { opacity: 0.45; } }
@keyframes roll {
  0% { left: -60px; rotate: 0deg; }
  55% { left: calc(100% - 150px); rotate: 900deg; }
  62%, 100% { left: calc(100% + 60px); rotate: 1260deg; }
}
@keyframes tip { 0%, 54% { rotate: 0deg; opacity: 1; } 62% { rotate: 80deg; opacity: 1; } 70%, 92% { rotate: 88deg; opacity: 0; } 100% { rotate: 0deg; opacity: 1; } }
@keyframes tip2 { 0%, 56% { rotate: 0deg; opacity: 1; } 64% { rotate: -75deg; opacity: 1; } 72%, 92% { rotate: -88deg; opacity: 0; } 100% { rotate: 0deg; opacity: 1; } }
@keyframes tip3 { 0%, 57% { rotate: 0deg; opacity: 1; } 66% { rotate: 84deg; opacity: 1; } 74%, 92% { rotate: 88deg; opacity: 0; } 100% { rotate: 0deg; opacity: 1; } }
@keyframes strike { 0%, 64% { opacity: 0; scale: 0.6; } 72%, 86% { opacity: 1; scale: 1; } 94%, 100% { opacity: 0; scale: 1.1; } }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .floaty { opacity: 0.55; }
  .floaty.f3, .floaty.f4 { display: none; }
  .two-col { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
  .map { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .ball { left: 40%; }
}
