/* =========================================================
   WEDDING SITE — grounded in the couple's actual invite:
   rust + deep teal + dusty slate-blue + sage, warm cream paper.
   ========================================================= */

:root {
  --ink: #2b2420;
  --cream: #faf5ec;
  --rust: #c1622f;
  --teal: #1f4a52;
  --dusty-blue: #5b7c8d;
  --sage: #8a9b7f;
  --teal-tint: #dfe9e7;
  --rust-tint: #f6e3d3;

  --font-display: "Fraunces", "Georgia", serif;
  --font-script: "Beau Rivage", "Brush Script MT", cursive;
  --font-body: "Inter", "Helvetica Neue", sans-serif;

  --max-width: 980px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--rust-tint);
  background-image: url('images/autumn-bg.svg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.65;
}
@media (max-width: 760px) {
  body { background-attachment: scroll; }
}

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* The cream "paper" the whole site sits on, floating over the fixed backdrop */
.page-shell {
  background: var(--cream);
  max-width: 1100px;
  margin: 1.5rem auto;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(43, 36, 32, 0.16);
}
@media (max-width: 760px) {
  .page-shell { margin: 0; border-radius: 0; box-shadow: none; }
}

#top, section[id] { scroll-margin-top: 88px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dusty-blue);
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.7rem;
}
.eyebrow-icon { width: 16px; height: 16px; margin-right: 0.45rem; stroke: currentColor; fill: none; flex-shrink: 0; }
.section-title { font-size: 2rem; font-style: italic; margin-bottom: 0.6rem; }
.section-intro { max-width: 560px; opacity: 0.8; margin-bottom: 2.4rem; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.76rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  padding: 0.85rem 2.1rem;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }

.btn-stud { background: var(--rust); border-color: var(--rust); color: var(--cream); }
.btn-stud:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }

.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-approve { background: var(--teal); border-color: var(--teal); color: var(--cream); }
.btn-approve:hover { background: var(--ink); border-color: var(--ink); }

.btn-reject { background: transparent; border-color: var(--rust); color: var(--rust); }
.btn-reject:hover { background: var(--rust); color: var(--cream); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-radius: 32px 32px 0 0;
}
@media (max-width: 760px) { .site-nav { border-radius: 0; } }
.site-nav::after {
  content: "";
  position: absolute; left: 10%; right: 10%; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rust), var(--teal), transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}
.nav-links { list-style: none; display: flex; gap: 1.8rem; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.65;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { opacity: 1; }
.nav-links a[aria-current="true"] { opacity: 1; color: var(--rust); border-color: var(--rust); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; }

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    border-bottom: 1px solid rgba(43,36,32,0.12);
    padding: 1rem 1.5rem;
    gap: 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 5rem 1.5rem 3.5rem; position: relative; overflow: hidden; }
.hero-sprig {
  position: absolute;
  width: 150px; height: 200px;
  opacity: 0.9;
  pointer-events: none;
}
.hero-sprig--tl { top: -10px; left: -20px; transform: rotate(-18deg); }
.hero-sprig--br { bottom: -20px; right: -20px; transform: rotate(160deg); }
@media (max-width: 640px) {
  .hero-sprig { width: 90px; height: 120px; opacity: 0.7; }
}

.hero-names {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  color: var(--rust);
  margin: 0.6rem 0 1.1rem;
  position: relative;
  z-index: 1;
}
.amp { font-family: var(--font-script); font-style: normal; color: var(--dusty-blue); font-size: 1.3em; margin: 0 0.15em; vertical-align: -0.08em; }

.hero-divider-sprig { width: 34px; height: 46px; margin: 0 auto 1.2rem; opacity: 0.85; }

.hero-meta {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--dusty-blue);
  opacity: 0.9;
  position: relative; z-index: 1;
}
.hero-meta span { margin: 0 0.7rem; color: var(--rust); }

.countdown { display: flex; justify-content: center; gap: 1rem; margin-top: 2.6rem; flex-wrap: wrap; position: relative; z-index: 1; }
.countdown-box { border: 1.5px solid var(--ink); border-radius: 16px; padding: 0.9rem 1.3rem; min-width: 78px; }
.countdown-box:nth-child(1) { border-color: var(--rust); }
.countdown-box:nth-child(2) { border-color: var(--teal); }
.countdown-box:nth-child(3) { border-color: var(--dusty-blue); }
.countdown-box:nth-child(4) { border-color: var(--sage); }
.countdown-num { font-family: var(--font-display); font-size: 1.8rem; display: block; }
.countdown-box:nth-child(1) .countdown-num { color: var(--rust); }
.countdown-box:nth-child(2) .countdown-num { color: var(--teal); }
.countdown-box:nth-child(3) .countdown-num { color: var(--dusty-blue); }
.countdown-box:nth-child(4) .countdown-num { color: var(--sage); }
.countdown-label { font-family: var(--font-body); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; }
.countdown-note { margin-top: 1.4rem; font-style: italic; opacity: 0.8; position: relative; z-index: 1; }

/* ---------- Wave dividers between sections ---------- */
.wave-divider { width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 56px; display: block; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; background: var(--cream); }
.section--teal-tint { background: var(--teal-tint); }
.section--rust-tint { background: var(--rust-tint); }
.section--rust-tint .btn-stud { background: var(--teal); border-color: var(--teal); }
.section--rust-tint .btn-stud:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
.section-head { text-align: center; margin-bottom: 2.8rem; }
.section-head .section-intro { margin: 0 auto; text-align: center; }
.section-number { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.12em; opacity: 0.45; margin-bottom: 0.3rem; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Slideshow (couple's curated gallery) ---------- */
.slideshow { max-width: 600px; margin: 0 auto; }
.slideshow-frame {
  position: relative;
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: var(--teal-tint);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.slideshow-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; }
.slideshow-frame img.fading { opacity: 0; }
.slideshow-caption { font-family: var(--font-display); font-style: italic; text-align: center; margin: 1.1rem 0 0.6rem; opacity: 0.85; }
.slideshow-controls { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 0.6rem; }
.slideshow-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.slideshow-btn:hover { background: var(--ink); color: var(--cream); }
.slideshow-dots { display: flex; gap: 0.5rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; padding: 0; cursor: pointer; }
.dot.active { background: var(--rust); border-color: var(--rust); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(43,36,32,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 2rem;
}
.lightbox img { max-height: 85vh; border-radius: 12px; border: 4px solid var(--cream); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: var(--cream);
  font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ---------- Snapshot grid (guest-submitted photos) ---------- */
.snapshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.snapshot-card {
  border: 1px solid rgba(43,36,32,0.12);
  border-radius: 16px;
  background: var(--cream);
  padding: 0.6rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.snapshot-card:nth-child(odd) { transform: rotate(-1deg); }
.snapshot-card:nth-child(even) { transform: rotate(1deg); }
.snapshot-card:hover { transform: translateY(-3px) rotate(0deg); box-shadow: 0 10px 24px rgba(193,98,47,0.2); }
.snapshot-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; margin-bottom: 0.5rem; }
.snapshot-caption { font-size: 0.78rem; text-align: center; opacity: 0.7; }

/* ---------- Day-of itinerary timeline ---------- */
.itinerary { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; position: relative; }
.itinerary::before {
  content: "";
  position: absolute; left: 86px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(to bottom, var(--rust), var(--dusty-blue), var(--teal));
  opacity: 0.4;
}
.itinerary-item { position: relative; display: flex; gap: 1.4rem; padding: 0 0 2.2rem; align-items: flex-start; }
.itinerary-item:last-child { padding-bottom: 0; }
.itinerary-time {
  width: 64px; flex-shrink: 0; text-align: right;
  font-family: var(--font-display); font-style: italic; font-size: 0.98rem; opacity: 0.75;
  padding-top: 0.1rem;
}
.itinerary-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream); border: 2.5px solid var(--rust);
  flex-shrink: 0; margin-top: 0.25rem; position: relative; z-index: 1;
}
.itinerary-body { padding-bottom: 0.2rem; }
.itinerary-title { font-family: var(--font-display); font-style: italic; font-size: 1.18rem; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.itinerary-detail { opacity: 0.75; font-size: 0.92rem; margin-top: 0.25rem; }
.itinerary-location { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dusty-blue); margin-top: 0.35rem; }

.itinerary-item--now .itinerary-dot { background: var(--rust); border-color: var(--rust); box-shadow: 0 0 0 5px rgba(193,98,47,0.18); animation: itinerary-pulse 1.8s ease-in-out infinite; }
.itinerary-now-badge {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.62rem; font-weight: 700;
  background: var(--rust); color: var(--cream); border-radius: 999px; padding: 0.22rem 0.6rem;
}
@keyframes itinerary-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(193,98,47,0.18); }
  50% { box-shadow: 0 0 0 9px rgba(193,98,47,0.08); }
}
@media (max-width: 540px) {
  .itinerary::before { left: 64px; }
  .itinerary-time { width: 48px; font-size: 0.84rem; }
  .itinerary-item { gap: 1rem; }
}

/* ---------- Forms ---------- */
.form-card { background: transparent; max-width: 540px; margin: 0 auto; }
.field { margin-bottom: 1.3rem; text-align: left; }
.field label { display: block; font-family: var(--font-body); text-transform: uppercase; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 0.45rem; opacity: 0.65; }
.field input[type="text"], .field input[type="number"], .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  background: transparent;
  padding: 0.5rem 0.2rem;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rust); }
.field textarea { resize: vertical; min-height: 80px; }

.file-field { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.file-field input[type="file"] { display: none; }
.file-field .file-btn { font-family: var(--font-body); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; border: 1px dashed var(--ink); border-radius: 999px; padding: 0.55rem 1.3rem; cursor: pointer; }
.file-field .file-btn:hover { background: var(--ink); color: var(--cream); border-style: solid; }
.file-field .file-name { font-size: 0.83rem; opacity: 0.6; }

.radio-toggle { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.radio-toggle label { flex: 1; text-align: center; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.65rem 1.1rem; cursor: pointer; font-size: 0.92rem; margin: 0; }
.radio-toggle input { display: none; }
.radio-toggle label:has(input:checked) { background: var(--teal); border-color: var(--teal); color: var(--cream); }

.form-msg { margin-top: 1rem; font-style: italic; min-height: 1.4em; }
.form-msg.success { color: var(--teal); }
.form-msg.error { color: var(--rust); }

/* ---------- Quiz ---------- */
.quiz-card { max-width: 580px; margin: 0 auto; padding: 2.2rem; border: 1px solid rgba(43,36,32,0.12); border-radius: 24px; background: var(--cream); text-align: center; }
.quiz-progress { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.55; margin-bottom: 1rem; }
.quiz-question { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; margin-bottom: 1.6rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.7rem; }
.quiz-option { font-family: var(--font-body); font-size: 0.98rem; text-align: left; background: transparent; border: 1.5px solid var(--ink); border-radius: 14px; padding: 0.7rem 1.3rem; cursor: pointer; }
.quiz-option:hover:not(:disabled) { background: rgba(43,36,32,0.05); }
.quiz-option.correct { background: var(--teal-tint); border-color: var(--teal); }
.quiz-option.incorrect { background: var(--rust-tint); border-color: var(--rust); }
.quiz-option:disabled { cursor: default; }
.quiz-feedback { margin-top: 1.3rem; font-style: italic; min-height: 2em; opacity: 0.85; }
.quiz-next { margin-top: 1.4rem; }
.quiz-result-score { font-family: var(--font-display); font-style: italic; font-size: 3.2rem; margin-bottom: 0.5rem; color: var(--rust); }

/* ---------- Well wishes wall ---------- */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.7rem; margin-top: 3rem; }
.tag { background: var(--cream); border: 1px solid rgba(43,36,32,0.12); border-top: 3px solid var(--rust); border-radius: 16px; padding: 1.4rem; }
.tag:nth-child(odd) { transform: rotate(-0.6deg); border-top-color: var(--rust); }
.tag:nth-child(even) { transform: rotate(0.6deg); border-top-color: var(--teal); }
.tag img { border-radius: 10px; margin-bottom: 0.9rem; }
.tag-message { font-family: var(--font-display); font-style: italic; margin-bottom: 0.9rem; }
.tag-name { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem; opacity: 0.6; text-align: right; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 3.2rem 1.5rem 3.6rem; background: var(--ink); color: var(--cream); border-radius: 0 0 32px 32px; position: relative; }
@media (max-width: 760px) { .site-footer { border-radius: 0; } }
.site-footer .nav-brand { color: var(--cream); margin-bottom: 0.6rem; display: inline-block; }
.footer-credit { font-size: 0.8rem; opacity: 0.65; }

.admin-empty { text-align: center; opacity: 0.55; font-style: italic; padding: 2rem 0; grid-column: 1 / -1; }

/* ---------- Scroll progress + back to top ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--rust), var(--dusty-blue), var(--teal));
  z-index: 100;
}
.back-to-top {
  position: fixed; bottom: 1.8rem; right: 1.8rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  border: none; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 80;
  box-shadow: 0 6px 18px rgba(43,36,32,0.3);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--rust); }

/* ---------- Login page ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.login-card {
  position: relative;
  background: var(--cream);
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(43, 36, 32, 0.18);
  padding: 3rem 2.4rem 2.6rem;
  text-align: center;
  overflow: hidden;
}
.login-card .hero-sprig { width: 110px; height: 146px; opacity: 0.8; }
.login-card .hero-sprig--tl { top: -16px; left: -16px; }
.login-card .hero-sprig--br { bottom: -16px; right: -16px; }
.login-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--rust);
  margin: 0.4rem 0 0.6rem;
  position: relative; z-index: 1;
}
.login-subtitle { opacity: 0.75; margin-bottom: 1.8rem; position: relative; z-index: 1; }
.login-card .field { position: relative; z-index: 1; }
.login-card .btn { width: 100%; margin-top: 0.4rem; position: relative; z-index: 1; }
.login-card .form-msg { position: relative; z-index: 1; }
.login-card .form-msg.error.shake { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ---------- Admin ---------- */
.admin-shell { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }
.admin-header { text-align: center; margin-bottom: 2rem; }
.admin-tabs { display: flex; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.admin-tab { font-family: var(--font-body); text-transform: uppercase; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; background: transparent; border: 1px solid var(--ink); border-radius: 999px; padding: 0.55rem 1.3rem; cursor: pointer; }
.admin-tab.active { background: var(--ink); color: var(--cream); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.admin-card { background: var(--cream); border: 1px solid rgba(43,36,32,0.12); border-radius: 16px; padding: 1rem; }
.admin-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; margin-bottom: 0.7rem; }
.admin-card-name { font-size: 0.8rem; opacity: 0.6; margin-bottom: 0.3rem; }
.admin-card-message { margin-bottom: 0.9rem; font-family: var(--font-display); font-style: italic; }
.admin-card-actions { display: flex; gap: 0.6rem; }
.admin-card-actions .btn { flex: 1; padding: 0.55rem 0.8rem; font-size: 0.7rem; }

.admin-summary { display: flex; gap: 1.2rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.summary-pill { border: 1px solid var(--ink); border-radius: 999px; padding: 0.6rem 1.4rem; font-size: 0.8rem; }
.summary-pill strong { font-family: var(--font-display); font-size: 1.1rem; margin-right: 0.3rem; color: var(--rust); }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.admin-table th, table.admin-table td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid rgba(43,36,32,0.12); vertical-align: top; }
table.admin-table th { text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.05em; opacity: 0.6; }

/* ---------- Share card (QR code) ---------- */
.share-card {
  display: flex; align-items: center; justify-content: center; gap: 1.8rem;
  flex-wrap: wrap; background: var(--teal-tint); border-radius: 20px;
  padding: 1.4rem 1.8rem; margin-bottom: 2.2rem;
}
.share-card-info { text-align: center; }
.share-link { font-family: var(--font-body); font-size: 0.85rem; opacity: 0.75; margin-bottom: 0.7rem; word-break: break-all; }
.share-copy-btn { padding: 0.5rem 1.2rem; font-size: 0.7rem; }
.share-card-qr { text-align: center; }
.share-card-qr img { border-radius: 8px; border: 1px solid rgba(43,36,32,0.15); background: var(--cream); }
.share-qr-download { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.5rem; opacity: 0.6; }
.share-qr-download:hover { opacity: 1; }

/* ---------- Stats dashboard ---------- */
.stats-block { margin-bottom: 2.4rem; }
.stats-block-title { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; margin-bottom: 1rem; }
.stat-bars { display: flex; flex-direction: column; gap: 0.7rem; }
.stat-bar-row { display: flex; align-items: center; gap: 0.8rem; }
.stat-bar-label { width: 110px; flex-shrink: 0; font-size: 0.84rem; }
.stat-bar-track { flex: 1; height: 14px; background: rgba(43,36,32,0.08); border-radius: 999px; overflow: hidden; }
.stat-bar-fill { height: 100%; background: linear-gradient(90deg, var(--rust), var(--teal)); border-radius: 999px; transition: width 0.5s ease; }
.stat-bar-count { width: 28px; flex-shrink: 0; text-align: right; font-size: 0.84rem; opacity: 0.65; }
.stats-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.stats-list li { background: var(--cream); border: 1px solid rgba(43,36,32,0.12); border-radius: 12px; padding: 0.7rem 1rem; font-size: 0.88rem; }
.stats-list li strong { font-family: var(--font-display); font-style: italic; margin-right: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .hero { padding: 3.5rem 1rem 2.6rem; }
  .countdown-box { min-width: 64px; padding: 0.7rem 0.8rem; }
  .back-to-top { width: 42px; height: 42px; bottom: 1.2rem; right: 1.2rem; }
}