/* =========================================================
   Donovan Halloween Party — theme
   ========================================================= */

:root {
  --bg: #0a0612;
  --bg-2: #150c26;
  --bg-3: #05030a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 138, 61, 0.22);
  --border-strong: rgba(255, 138, 61, 0.5);
  --orange: #ff7a1a;
  --orange-2: #ffb347;
  --purple: #8b5cf6;
  --purple-deep: #3b1a6e;
  --green: #86ff4d;
  --text: #f4ebdd;
  --muted: #b3a3c7;
  --danger: #ff6b6b;
  --font-display: 'Creepster', 'Impact', 'Arial Black', sans-serif;
  --font-accent: 'Special Elite', 'Courier New', monospace;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--orange-2); }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: #000; padding: .5rem 1rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container.narrow { max-width: 720px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .8rem;
  color: var(--orange-2);
  margin-bottom: .5rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1;
  color: var(--orange);
  text-shadow: 0 0 18px rgba(255, 122, 26, .45), 0 3px 0 #4a1f00;
  margin-bottom: .75rem;
}
.lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }
.eyebrow.no-caps { text-transform: none; letter-spacing: .12em; }
.asterisk { color: var(--orange); font-size: .8em; margin-left: .1em; }
.fine-print {
  font-family: var(--font-accent);
  font-size: .8rem; color: var(--muted); font-style: italic;
  margin: -1.4rem 0 2rem;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem;
  background: rgba(10, 6, 18, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 138, 61, .15);
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: .03em;
  white-space: nowrap;
}
.nav-xv { color: var(--green); }
.nav-links { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--text);
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a:focus-visible { background: rgba(255, 122, 26, .18); color: var(--orange-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6.5rem 1rem 10rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(139, 92, 246, .32), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 105%, rgba(255, 122, 26, .22), transparent 60%),
    linear-gradient(180deg, #0a0612 0%, #170d2b 55%, #0a0612 100%);
}
/* stars */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 28% 8%, #fff 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 41% 26%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 55% 12%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 67% 30%, #fff 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 78% 6%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 91% 22%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 8% 45%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 22% 60%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 86% 48%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 95% 62%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 48% 52%, #fff 60%, transparent 61%);
  opacity: .55;
  animation: twinkle 5s ease-in-out infinite alternate;
}

.moon {
  position: absolute; top: 8%; right: 8%; z-index: -1;
  width: clamp(100px, 15vw, 190px);
  aspect-ratio: 1;
}
/* soft halo behind the crescent */
.moon::before {
  content: ""; position: absolute; inset: -55%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 236, 170, .38) 0%,
    rgba(255, 224, 150, .22) 28%,
    rgba(255, 205, 110, .09) 50%,
    transparent 68%);
  animation: moon-pulse 7s ease-in-out infinite;
}
.moon svg {
  position: relative;
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 10px rgba(255, 236, 170, .75)) drop-shadow(0 0 34px rgba(255, 210, 120, .4));
}

.bats { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bat {
  position: absolute; left: -8%;
  width: var(--size, 36px);
  color: #05030a;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.6));
  animation: fly var(--dur, 22s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.bat svg { display: block; width: 100%; height: auto; animation: flap .35s ease-in-out infinite alternate; transform-origin: 50% 60%; }

.fog {
  position: absolute; left: -20%; width: 140%; height: 45%; bottom: -5%; z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 60%, rgba(180, 160, 220, .16), transparent 55%),
              radial-gradient(ellipse at 70% 70%, rgba(180, 160, 220, .12), transparent 55%);
  filter: blur(18px);
  animation: drift 26s ease-in-out infinite alternate;
}
.fog-2 { animation-duration: 38s; animation-direction: alternate-reverse; opacity: .7; height: 55%; }

.graveyard {
  position: absolute; left: 0; right: 0; bottom: -2px; z-index: 0;
  width: 100%; height: clamp(170px, 24vw, 300px);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 900px; }

.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 11.5vw, 7.6rem);
  line-height: .95;
  margin: .25rem 0 1.25rem;
  color: var(--orange);
  letter-spacing: .02em;
  text-shadow:
    0 0 12px rgba(255, 122, 26, .65),
    0 0 36px rgba(255, 122, 26, .35),
    0 5px 0 #4a1f00,
    0 8px 18px rgba(0,0,0,.7);
}
.flicker { animation: flicker 5s infinite; display: inline-block; }

/* ---------- Anniversary: wax seal + ribbon ---------- */
.anniversary {
  position: relative;
  display: inline-flex; align-items: center;
  margin: .4rem 0 1.5rem;
  padding-right: 36px; /* ribbon tail (30) + transparent margin on the seal (6) so the visible shape centers */
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
}
.seal {
  position: relative; z-index: 2;
  width: 96px; height: 96px;
  margin-right: -28px;
  animation: seal-glow 4s ease-in-out infinite;
}
.seal svg { display: block; width: 100%; height: 100%; }
.ribbon {
  position: relative; z-index: 1;
  padding: .55rem 1.5rem .55rem 2.5rem;
  background: linear-gradient(180deg, #d9541b 0%, #b8410f 55%, #9a3410 100%);
  color: #fff1dd;
  font-family: var(--font-accent);
  text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; line-height: 1.35;
  text-align: left; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -2px 0 rgba(0, 0, 0, .25);
}
.ribbon small { display: block; font-size: .7rem; letter-spacing: .22em; color: #ffd6a8; }
/* forked tail, tucked behind the right end of the band */
.ribbon::after {
  content: ""; position: absolute; top: 9px; right: -30px;
  width: 30px; height: 100%;
  background: #7f2b0c;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
}
.ribbon::before {
  content: ""; position: absolute; right: 0; bottom: -9px;
  width: 11px; height: 9px;
  background: #4d1a06;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.when { font-family: var(--font-accent); font-size: clamp(.95rem, 2.4vw, 1.15rem); color: var(--text); letter-spacing: .04em; }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: 1.75rem 0; }
.tile {
  min-width: 96px; padding: 1.1rem .75rem .8rem;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: 46px 46px 8px 8px;  /* tombstone */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
}
.tile .num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1;
  color: var(--green);
  text-shadow: 0 0 14px rgba(134, 255, 77, .55);
  font-variant-numeric: tabular-nums;
}
.tile .num.tick { animation: pop .3s ease-out; }
.tile .label {
  display: block; margin-top: .35rem;
  font-family: var(--font-accent);
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; color: var(--muted);
}
.countdown-label {
  font-family: var(--font-accent);
  text-transform: uppercase; letter-spacing: .2em; font-size: .8rem;
  color: var(--orange-2);
  margin: 1.5rem 0 -1rem;
}
.thanks { margin: .5rem 0 .25rem; }
.thanks-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1;
  color: var(--green); text-shadow: 0 0 16px rgba(134, 255, 77, .5), 0 3px 0 #1d4a0c;
  margin: 0 0 .5rem;
}
.thanks-text {
  font-family: var(--font-accent); font-size: clamp(.95rem, 2.4vw, 1.1rem);
  color: var(--text); letter-spacing: .03em; max-width: 34em; margin: 0 auto;
}
.countdown-done {
  font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--green); text-shadow: 0 0 16px rgba(134,255,77,.5);
  margin: 1.5rem 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-accent);
  text-transform: uppercase; letter-spacing: .14em; font-size: .9rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #ff8f33, var(--orange));
  color: #1a0a00;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255,180,100,.4) inset, 0 8px 24px rgba(255, 122, 26, .35);
}
.btn-primary:hover, .btn-primary:focus-visible { box-shadow: 0 0 0 1px rgba(255,200,120,.6) inset, 0 10px 32px rgba(255, 122, 26, .55); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost {
  background: rgba(10, 6, 18, .45);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255, 122, 26, .14); border-color: var(--orange); }
.btn-block { width: 100%; }
.hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.link {
  background: none; border: none; padding: 0;
  font: inherit; font-size: .9rem;
  color: var(--orange-2); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover { color: var(--orange); }

/* ---------- Details cards ---------- */
.details { position: relative; z-index: 1; margin-top: -2.5rem; padding-bottom: 3rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.card-icon { font-size: 2rem; line-height: 1; margin-bottom: .6rem; }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; color: var(--orange-2); margin-bottom: .4rem; }
.card p { margin-bottom: .5rem; }
.card-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; position: relative; }
.section.alt {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(139, 92, 246, .14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(255, 122, 26, .10), transparent 60%),
    var(--bg-2);
  border-top: 1px solid rgba(255,138,61,.1);
  border-bottom: 1px solid rgba(255,138,61,.1);
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  font-family: var(--font-accent);
  font-size: .85rem; letter-spacing: .06em;
  color: var(--orange-2);
}
.field legend { padding: 0; margin-bottom: .4rem; }
.req { color: var(--green); }
.opt { color: var(--muted); letter-spacing: 0; text-transform: none; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--text);
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .8rem .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23ffb347' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
  padding-right: 2.4rem;
}
select option { background: #150c26; color: var(--text); }
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .22);
}
input::placeholder, textarea::placeholder { color: rgba(179, 163, 199, .55); }
.radio-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.radio {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(0,0,0,.3);
  cursor: pointer; user-select: none;
  transition: border-color .2s, background .2s;
}
.radio:has(input:checked) { border-color: var(--orange); background: rgba(255, 122, 26, .15); }
.radio input { accent-color: var(--orange); margin: 0; }
.hidden-field { display: none; }
.form-status { min-height: 1.5em; margin: 0; font-family: var(--font-accent); letter-spacing: .03em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--danger); }
.dev-note {
  font-size: .8rem; color: var(--muted);
  border: 1px dashed rgba(179,163,199,.35); border-radius: 8px; padding: .6rem .8rem; margin: 0;
}

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: .7rem;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display); font-size: 1.6rem; line-height: 1;
  color: var(--orange);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.25rem 1.2rem; color: var(--muted); }

/* ---------- Map ---------- */
.map-canvas {
  height: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: #0d0a16;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.map-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.25rem;
}
.map-footer p { margin: 0; }
.map-actions { display: grid; justify-items: center; gap: .5rem; }
.link.small { font-size: .8rem; color: var(--muted); }
.map-fallback { display: grid; place-items: center; height: 100%; padding: 2rem; text-align: center; color: var(--muted); }
/* Turn the standard (light) OpenStreetMap tiles dark to match the theme.
   Only the tile pane is filtered, so the marker and popup keep their colors. */
.map-canvas .leaflet-tile-pane {
  filter: invert(1) hue-rotate(200deg) brightness(.72) contrast(1.05) saturate(.35);
}

.pumpkin-marker { position: relative; }
.pumpkin-marker .pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 34px; line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.7));
  animation: bob 2.2s ease-in-out infinite;
}
.pumpkin-marker .ring {
  position: absolute; left: 50%; top: 50%;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--orange);
  transform: translate(-50%, -50%);
  animation: ring 2.2s ease-out infinite;
}
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: #150c26; color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.leaflet-popup-content { margin: .8rem 1rem; line-height: 1.45; }
.leaflet-popup-close-button { color: var(--muted) !important; }
.leaflet-control-attribution { background: rgba(10,6,18,.75) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--orange-2) !important; }
.leaflet-bar a { background: #150c26 !important; color: var(--text) !important; border-color: var(--border) !important; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 3.5rem 1rem 2.5rem; background: var(--bg-3); border-top: 1px solid rgba(255,138,61,.12); }
.footer-title { font-family: var(--font-display); font-size: 1.8rem; color: var(--orange); margin-bottom: .25rem; }
.footer-icons { font-size: 1.4rem; letter-spacing: .4em; margin: 1rem 0 0; }

/* ---------- Sections that close ---------- */
/* script.js sets body[data-songs] (closes a week before) and body[data-rsvp] (closes when the party starts). */
body[data-songs="closed"] #songs,
body[data-songs="closed"] .hero-cta a[href="#songs"],
body[data-songs="closed"] .nav-links a[href="#songs"],
body[data-rsvp="closed"] #rsvp,
body[data-rsvp="closed"] .hero-cta a[href="#rsvp"],
body[data-rsvp="closed"] .nav-links a[href="#rsvp"] { display: none; }

.deadline {
  font-family: var(--font-accent); font-size: .9rem; letter-spacing: .04em;
  color: var(--orange-2);
  border-left: 3px solid var(--orange);
  padding: .35rem .9rem; margin: -1rem 0 2rem;
  background: rgba(255, 122, 26, .08);
}
.deadline strong { color: var(--text); }

/* ---------- Animations ---------- */
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; text-shadow: 0 0 12px rgba(255,122,26,.65), 0 0 36px rgba(255,122,26,.35), 0 5px 0 #4a1f00, 0 8px 18px rgba(0,0,0,.7); }
  20%, 24%, 55% { opacity: .55; text-shadow: 0 5px 0 #4a1f00; }
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .75; } }
@keyframes moon-pulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
@keyframes fly {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(28vw, -30px) rotate(6deg); }
  50%  { transform: translate(56vw, 10px) rotate(-4deg); }
  75%  { transform: translate(84vw, -20px) rotate(5deg); }
  100% { transform: translate(115vw, 0) rotate(0deg); }
}
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.55); } }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes seal-glow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 90, 60, .35)); }
  50%      { filter: drop-shadow(0 0 14px rgba(255, 90, 60, .65)); }
}
@keyframes pop { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes bob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -62%); } }
@keyframes ring { 0% { transform: translate(-50%,-50%) scale(.5); opacity: .9; } 100% { transform: translate(-50%,-50%) scale(1.8); opacity: 0; } }

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

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .nav { padding: .55rem .75rem; gap: .5rem; }
  .nav-brand { font-size: 1.35rem; }
  .nav-word { display: none; }                 /* brand collapses to "🎃 XV" */
  .nav-links { flex: 1; justify-content: space-between; }
  .nav-links a { font-size: .7rem; letter-spacing: .08em; padding: .4rem .45rem; }
  .hero { padding-top: 5.5rem; }
  .countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
    max-width: 360px;
    margin-inline: auto;
  }
  .tile { min-width: 0; padding: .85rem .25rem .6rem; border-radius: 34px 34px 6px 6px; }
  .tile .label { font-size: .58rem; letter-spacing: .1em; }
  .seal { width: 78px; height: 78px; margin-right: -24px; }
  .ribbon { font-size: .74rem; padding: .5rem 1.1rem .5rem 2.1rem; }
  .ribbon small { font-size: .64rem; }
  .map-canvas { height: 320px; }
  .section { padding: 3.5rem 0; }
}
