/* ============ Tropical Disco ============ */
@font-face { font-family: "Anton"; src: url("fonts/Anton.woff") format("woff"); font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans.woff") format("woff"); font-weight: 100 1000; font-display: swap; }

:root {
  --night: #1a0b2e;
  --night-2: #2a1248;
  --night-3: #3b1a63;
  --pink: #ff2e88;
  --mango: #ffb02e;
  --sun: #ffd23f;
  --lagoon: #19e3c2;
  --leaf: #2bd97a;
  --ink: #fff6ec;
  --muted: #cbbbe3;
  --line: rgba(255, 246, 236, .14);
  --radius: 18px;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #12071f; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 46, 136, .28), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(25, 227, 194, .16), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, #12071f 100%);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { max-width: 100%; display: block; }

/* twinkling disco reflections */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.glint { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(255,255,255,.7); opacity: 0; animation: twinkle 4s infinite; }
.g1 { top: 12%; left: 8%;  animation-delay: .2s; background: var(--lagoon); }
.g2 { top: 28%; left: 88%; animation-delay: 1.1s; }
.g3 { top: 55%; left: 4%;  animation-delay: 2.3s; background: var(--pink); }
.g4 { top: 72%; left: 92%; animation-delay: .7s;  background: var(--sun); }
.g5 { top: 40%; left: 50%; animation-delay: 3s; }
.g6 { top: 86%; left: 30%; animation-delay: 1.8s; background: var(--lagoon); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; transform: scale(1); } }

main, header, footer { position: relative; z-index: 1; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 680px; margin-inline: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: grid;
  align-items: start;
  justify-items: center;
  text-align: center;
  padding: 0 16px 48px;
  overflow: hidden;
}
.hero-art { position: absolute; inset: 0; opacity: .95; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 7, 31, .85) 100%); }
.ball { transform-origin: 400px 0; animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.sparkle { animation: blink 2.4s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.hero-text { position: relative; margin-top: clamp(250px, 34vh, 330px); max-width: 760px; }
.kicker { display: inline-block; margin: 0 0 10px; padding: 6px 14px; border-radius: 999px; background: rgba(26, 11, 46, .8); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: 13px; color: var(--sun); }
.title { margin: 0; font-family: var(--display); font-weight: 400; line-height: .9; text-transform: uppercase; letter-spacing: .02em; }
.title-line { display: block; font-size: clamp(56px, 13vw, 132px); transform: skew(-8deg); }
.title-line:first-child {
  color: var(--ink);
  text-shadow: 0 0 2px #fff, 0 0 18px rgba(25,227,194,.9), 0 0 42px rgba(25,227,194,.5);
}
.title-disco {
  background: linear-gradient(180deg, var(--sun) 0%, var(--mango) 45%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 var(--night)) drop-shadow(0 0 26px rgba(255, 46, 136, .55));
}
.occasion { margin: 18px 0 4px; font-size: clamp(18px, 2.6vw, 24px); font-weight: 700; }
.hero-date { margin: 0; color: var(--muted); font-size: 18px; }
.dot { color: var(--pink); font-size: 10px; vertical-align: middle; margin: 0 6px; }

.countdown { display: flex; gap: 10px; justify-content: center; margin: 22px 0 6px; }
.countdown[hidden] { display: none; }
.countdown div { min-width: 70px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(26, 11, 46, .6); backdrop-filter: blur(6px); }
.countdown b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--sun); }
.countdown span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1 var(--body); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .chip input:focus-visible + span { outline: 3px solid var(--lagoon); outline-offset: 2px; }
.btn-hot { background: linear-gradient(135deg, var(--pink), var(--mango)); color: #1a0b2e; box-shadow: 0 8px 24px rgba(255, 46, 136, .4); }
.btn-hot:hover { box-shadow: 0 10px 30px rgba(255, 46, 136, .6); }
.btn-ghost { background: rgba(26, 11, 46, .5); color: var(--ink); border-color: rgba(255, 246, 236, .4); }
.btn-ghost:hover { border-color: var(--lagoon); color: var(--lagoon); }
.btn-big { width: 100%; padding: 18px; font-size: 18px; }
.link { color: var(--lagoon); text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; }
.link:hover { border-bottom-color: currentColor; }

/* ---------- sections ---------- */
.intro { padding: 32px 0 8px; }
.lede { max-width: 720px; margin: 0 auto; text-align: center; font-size: clamp(18px, 2.2vw, 21px); color: var(--ink); }
.section-title, .page-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(34px, 6vw, 52px); line-height: 1; margin: 0 0 22px;
  transform: skew(-6deg); display: inline-block;
  background: linear-gradient(90deg, var(--sun), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
section { margin-top: 56px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-2.tight { gap: 8px 32px; }
.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(59, 26, 99, .7), rgba(42, 18, 72, .55));
  border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.card h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: 22px; color: var(--sun); }
.card h3 { margin: 18px 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--lagoon); }
.card-when { border-top: 4px solid var(--pink); }
.card-where { border-top: 4px solid var(--lagoon); }
.big { font-size: 24px; font-weight: 800; margin: 0 0 6px; line-height: 1.25; }
address { font-style: normal; margin-bottom: 10px; }
.note { color: var(--muted); font-size: 15px; }
.links { display: flex; gap: 18px; flex-wrap: wrap; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px dashed rgba(255, 210, 63, .5); }
.timeline li { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 10px 0 10px 24px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 18px; width: 15px; height: 15px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--night), 0 0 14px var(--pink); }
.timeline li:nth-child(even)::before { background: var(--lagoon); box-shadow: 0 0 0 4px var(--night), 0 0 14px var(--lagoon); }
.timeline time { font-family: var(--display); font-size: 22px; color: var(--sun); line-height: 1.2; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.info { padding: 22px; border-radius: var(--radius); color: var(--night); }
.info h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; font-size: 22px; }
.info p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.info-1 { background: var(--sun); }
.info-2 { background: var(--lagoon); }
.info-3 { background: #ff8fbf; }
.info-0 { background: var(--mango); }

.rsvp-band {
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 30px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255, 46, 136, .25), rgba(255, 176, 46, .2)), var(--night-2);
  border: 1px solid rgba(255, 46, 136, .4);
}
.rsvp-band h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 34px; }
.rsvp-band p { margin: 4px 0 0; color: var(--muted); }
.contact { text-align: center; }
.contact .section-title { margin-bottom: 8px; }

.foot { text-align: center; padding: 60px 16px 40px; color: var(--muted); font-size: 14px; }
.foot-names { font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

/* ---------- RSVP page ---------- */
.rsvp-page, .admin { padding-top: 32px; }
.back { margin: 0 0 18px; }
.sub { margin: -10px 0 24px; color: var(--muted); }
.deadline { margin: 0 0 16px; padding: 10px 16px; border-radius: 12px; background: rgba(255, 210, 63, .12); border: 1px solid rgba(255, 210, 63, .35); }
.rsvp-form { display: grid; gap: 18px; }
fieldset.card { margin: 0; min-width: 0; }
legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 22px; color: var(--sun); }
legend em, .field em { font-family: var(--body); text-transform: none; letter-spacing: 0; font-style: normal; font-size: 14px; color: var(--muted); }
legend + * { clear: both; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: 15px; }
.field-inline { grid-template-columns: 1fr auto; align-items: center; }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(255, 246, 236, .25);
  background: rgba(18, 7, 31, .55); color: var(--ink); font: inherit; font-size: 16px;
}
input::placeholder, textarea::placeholder { color: rgba(203, 187, 227, .6); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lagoon) 50%), linear-gradient(135deg, var(--lagoon) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
select option { background: var(--night-2); }
.field-inline select { width: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--lagoon); outline: none; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-opt { position: relative; cursor: pointer; }
.choice-opt input { position: absolute; opacity: 0; inset: 0; }
.choice-opt span { display: grid; gap: 2px; height: 100%; padding: 18px; border-radius: 14px; border: 2px solid rgba(255, 246, 236, .25); background: rgba(18, 7, 31, .4); transition: .15s; }
.choice-opt b { font-size: 18px; }
.choice-opt small { color: var(--muted); }
.choice-opt.yes input:checked + span { border-color: var(--lagoon); background: rgba(25, 227, 194, .15); box-shadow: 0 0 20px rgba(25, 227, 194, .3); }
.choice-opt.no input:checked + span { border-color: var(--pink); background: rgba(255, 46, 136, .15); }
.choice-opt input:focus-visible + span { outline: 3px solid var(--lagoon); outline-offset: 2px; }

.guest { margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--line); }
.guest-title { margin: 0 0 10px !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1.5px solid rgba(255, 246, 236, .25); font-size: 14px; transition: .12s; user-select: none; }
.chip:hover span { border-color: var(--mango); }
.chip input:checked + span { background: var(--mango); border-color: var(--mango); color: var(--night); font-weight: 700; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--pink); flex: none; }
.privacy p { margin-top: 0; color: var(--muted); font-size: 15px; }
.alert { margin: 0 0 16px; padding: 14px 18px; border-radius: 12px; background: rgba(255, 46, 136, .16); border: 1px solid rgba(255, 46, 136, .55); }
.alert ul { margin: 0; padding-left: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* hidden-unless-yes, only when JS runs (without JS everything shows) */
.js [data-show-when].is-hidden, .js .guest.is-hidden { display: none; }

.unlock input[name=code] { font-size: 20px; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.thanks { text-align: center; }
.thanks h2 { font-size: 30px; }
.thanks .summary { text-align: left; display: inline-block; margin: 6px auto 12px; }
.thanks p .btn { margin: 4px; }
.thanks-ball {
  width: 90px; height: 90px; margin: 0 auto 14px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), transparent 35%),
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(26,11,46,.5) 9px 10px),
    repeating-linear-gradient(90deg, #d9d1ea 0 9px, rgba(26,11,46,.5) 9px 10px);
  box-shadow: 0 0 40px rgba(25, 227, 194, .6); animation: spin 5s linear infinite;
}
@keyframes spin { to { filter: hue-rotate(360deg); } }

/* ---------- admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-actions form { margin: 0; }
.admin .card { margin-top: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 10px; }
.stat { padding: 18px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1; color: var(--sun); }
.stat span { color: var(--muted); font-size: 14px; }
.stat:nth-child(2) b { color: var(--lagoon); }
.stat:nth-child(3) b { color: var(--pink); }
.stat:nth-child(4) b { color: var(--mango); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 4px 0; }
.plain small { color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
td.msg { max-width: 260px; }
.nowrap { white-space: nowrap; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.pill-yes { background: rgba(25, 227, 194, .2); color: var(--lagoon); }
.pill-no { background: rgba(255, 46, 136, .2); color: #ff8fbf; }
.btn-del { background: none; border: 1px solid rgba(255, 46, 136, .5); color: #ff8fbf; border-radius: 8px; padding: 5px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.btn-del:hover { background: rgba(255, 46, 136, .2); }
.flash { padding: 10px 16px; border-radius: 12px; background: rgba(25, 227, 194, .15); border: 1px solid rgba(25, 227, 194, .4); }
code { background: rgba(18, 7, 31, .6); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-text { margin-top: 220px; }
  .countdown div { min-width: 60px; }
  .choice { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 64px 1fr; }
  .card { padding: 20px; }
}

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

/* keep hero text readable over the sun */
.occasion, .hero-date { text-shadow: 0 1px 2px rgba(18, 7, 31, .9), 0 0 14px rgba(18, 7, 31, .85); }
.hero-date { color: var(--ink); }
