/* ============================================================
   Trines 30 års — blødt, lyst festtema
   Palette: varm creme/beige, sart rosa, fersken og blød guld
   ============================================================ */

:root {
  --bg: #f7f0e4;            /* varm beige */
  --bg-soft: #fdf9f1;       /* lys creme til kort */
  --bg-tint: #f2e8d8;       /* dybere beige til skiftende sektioner */
  --surface: #ffffff;
  --ink: #4a3d33;           /* varm mørkebrun tekst */
  --muted: #96877a;
  --rose: #e2799f;          /* sart rosa — primær accent */
  --rose-deep: #d15f8b;
  --rose-tint: #fbe9f0;
  --peach: #f2b880;         /* fersken */
  --gold: #dfb571;          /* blød guld */
  --line: #eadfcd;
  --shadow: 0 10px 30px rgba(122, 96, 65, 0.10);
  --radius: 26px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1.6rem; }

a { color: var(--rose-deep); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.75rem;
}

/* ---------- layout ---------- */
.inner {
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
}

.band { padding: clamp(2rem, 4vw, 3rem) 0; }

.band-tint { background: var(--bg-tint); }

/* ---------- låseskærm ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 65% 50% at 50% -8%, rgba(242, 184, 128, 0.30), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 30%, rgba(226, 121, 159, 0.15), transparent 70%),
    var(--bg);
}

.gate[hidden] { display: none; }

.gate-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.3);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.gate-emoji { font-size: 2.6rem; }

.gate-title { font-size: 1.6rem; }

.gate-text { color: var(--muted); }

.gate-card input { text-align: center; font-weight: 700; }

.gate-error { color: var(--rose-deep); font-weight: 800; min-height: 1.3em; }

/* ---------- demo-banner ---------- */
.demo-banner {
  background: #f6e3b8;
  color: #6b5316;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 240, 228, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(1.25rem, 4vw, 4.5rem);
}

.topbar-inner .topbar-name { justify-self: start; }
.topbar-inner .topbar-nav { justify-self: center; }

.topbar-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  white-space: nowrap;
}

.topbar-nav { display: flex; gap: 1.6rem; }

.topbar-nav a {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.topbar-nav a:hover { color: var(--rose-deep); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(86vh - 62px);
  min-height: calc(86svh - 62px);
  padding: clamp(2rem, 4vh, 3.5rem) 1.25rem 2.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 65% 50% at 50% -8%, rgba(242, 184, 128, 0.30), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 30%, rgba(226, 121, 159, 0.15), transparent 70%),
    radial-gradient(ellipse 40% 35% at 12% 50%, rgba(223, 181, 113, 0.20), transparent 70%);
}

.hero-inner { max-width: 1000px; margin: 0 auto; }

.hero-item {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-item:nth-child(1) { animation-delay: 0.05s; }
.hero-item:nth-child(2) { animation-delay: 0.15s; }
.hero-item:nth-child(3) { animation-delay: 0.35s; }
.hero-item:nth-child(4) { animation-delay: 0.45s; }
.hero-item:nth-child(5) { animation-delay: 0.55s; }
.hero-item:nth-child(6) { animation-delay: 0.7s; }
.hero-item:nth-child(7) { animation-delay: 0.7s; }
.hero-item:nth-child(8) { animation-delay: 0.85s; }

/* svarfristen i heroen, lige under nedtællingen */
.hero .deadline-note {
  display: inline-block;
  margin-top: 1.8rem;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-title { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }

.hero-name {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* Det store bløde 30-tal — sidens signatur */
.thirty {
  position: relative;
  display: inline-block;
  font-size: clamp(7rem, 24vw, 16rem);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(130deg, var(--peach) 10%, var(--rose) 55%, var(--gold) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

/* bløde pastel-prikker omkring 30-tallet */
.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--peach);
  opacity: 0.7;
  animation: floaty 5s ease-in-out infinite;
}

.spark.s1 { top: 8%; left: -6%; animation-delay: 0s; background: var(--rose); }
.spark.s2 { top: -4%; left: 55%; animation-delay: 0.8s; }
.spark.s3 { top: 30%; right: -8%; animation-delay: 1.6s; background: var(--gold); }
.spark.s4 { bottom: 12%; left: -10%; animation-delay: 2.4s; }
.spark.s5 { bottom: -2%; right: 12%; animation-delay: 3.2s; background: var(--rose); }
.spark.s6 { top: 55%; left: 102%; animation-delay: 4s; width: 7px; height: 7px; background: var(--gold); }

@keyframes floaty {
  0%, 100% { transform: translateY(0) scale(0.9); opacity: 0.4; }
  50% { transform: translateY(-10px) scale(1.1); opacity: 0.9; }
}

/* scroll-hint fast i bunden af skærmen — forsvinder når man scroller */
.scroll-hint {
  position: fixed;
  bottom: 0.9rem;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: hintIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
  transition: opacity 0.4s ease;
}

@keyframes hintIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.scroll-hint-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 3px 10px rgba(122, 96, 65, 0.12);
  font-size: 1.1rem;
  color: var(--rose-deep);
  animation: hintBounce 1.7s ease-in-out infinite;
}

.scroll-hint:hover .scroll-hint-arrow { border-color: var(--rose); }

.scroll-hint.away { opacity: 0 !important; pointer-events: none; }

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  margin-top: 1.25rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(122, 96, 65, 0.07);
}

/* adresse-pillen er et link til Google Maps */
.fact-link {
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.fact-link:hover {
  border-color: var(--rose);
  color: var(--rose-deep);
  transform: translateY(-1px);
}

/* ---------- knapper ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 2.2rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 6px 20px rgba(226, 121, 159, 0.4);
}

.btn-primary:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(226, 121, 159, 0.5);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 3px 10px rgba(122, 96, 65, 0.07);
}

.btn-ghost:hover { border-color: var(--rose); color: var(--rose-deep); transform: translateY(-2px); }

.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}

/* ---------- nedtælling ---------- */
.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.6rem;
}

.count-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 86px;
  padding: 1rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.count-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--rose-deep);
  font-variant-numeric: tabular-nums;
}

.count-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--muted);
  margin-top: 0.2rem;
}

.countdown-done {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--rose-deep);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- info-kort ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.info-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.info-card:hover { transform: translateY(-4px); }

.info-icon { font-size: 1.8rem; display: block; margin-bottom: 0.6rem; }

.info-card h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.info-big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.info-card p { color: var(--muted); }
.info-card .info-big { color: var(--ink); }

.info-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 800;
  text-decoration: none;
}

.info-link:hover { text-decoration: underline; }

/* ---------- parkeringskort ---------- */
.parking-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.8rem;
  align-items: center;
  margin-top: 1.2rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
}

.parking-text h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.parking-text p { color: var(--muted); }
.parking-text .info-big { color: var(--ink); }
.parking-text strong { color: #c23d4d; }

.parking-map {
  display: block;
  width: 75%;
  justify-self: center;
  padding: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(122, 96, 65, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.parking-map:hover {
  transform: scale(1.015);
  box-shadow: 0 8px 22px rgba(122, 96, 65, 0.2);
}

.parking-map img {
  display: block;
  width: 100%;
  height: auto;
}

/* lightbox: klik ved siden af, på krydset eller Esc lukker */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(42, 32, 24, 0.75);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
  animation: lightboxIn 0.22s ease;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  cursor: default;
  animation: lightboxImgIn 0.22s ease;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.lightbox-close:hover { transform: scale(1.08); background: #fff; }

@keyframes lightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightboxImgIn {
  from { transform: scale(0.94); }
  to { transform: scale(1); }
}

.deadline-note {
  margin-top: 1.5rem;
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius);
  background: var(--rose-tint);
  border: 1px solid #f3cddd;
  color: #a24a71;
  text-align: center;
  font-size: 1.05rem;
}

.deadline-note strong { color: #8d3a5f; }

/* ---------- beerpong ---------- */
.beerpong-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.3);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  box-shadow: var(--shadow);
}

.beerpong-text { max-width: 620px; }

.beerpong-text p { color: var(--muted); margin-top: 0.7rem; }
.beerpong-text strong { color: var(--ink); }

.beerpong-btn { margin-top: 1.5rem; }

.beerpong-visuals {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: min(360px, 100%);
}

.bp-game, .bp-bracket {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.8rem;
  box-shadow: 0 4px 14px rgba(122, 96, 65, 0.07);
}

/* Selve kampen styres fra app.js: bolden kastes, cups fjernes én ad
   gangen, og når en side er tom jubler vinderen og spillet starter forfra. */
.bp-ball { transition: opacity 0.15s ease; }

.bp-cup { transition: opacity 0.45s ease; }

.bp-arm-l, .bp-arm-r { transform-box: fill-box; transition: transform 0.22s ease; }

.bp-arm-l { transform-origin: 0% 50%; }
.bp-arm-l.throw { transform: rotate(-30deg); }

.bp-arm-r { transform-origin: 100% 50%; }
.bp-arm-r.throw { transform: rotate(30deg); }

/* ---------- tilmelding: to spalter ---------- */
.rsvp-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.rsvp-form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.3);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.field { display: flex; flex-direction: column; gap: 0.5rem; border: none; }

.field label, .field legend {
  font-weight: 800;
  font-size: 0.95rem;
}

.field small, .choice small { color: var(--muted); font-weight: 600; }

input[type="text"], textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

input[type="text"]::placeholder, textarea::placeholder { color: #c0b3a4; }

input[type="text"]:focus, textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(226, 121, 159, 0.15);
  outline: none;
}

textarea { resize: vertical; }

.radio-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.3rem; }

.choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem 1.15rem;
  cursor: pointer;
  font-weight: 700;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice:hover { border-color: var(--rose); }

.choice:has(input:checked) {
  border-color: var(--rose);
  background: var(--rose-tint);
}

.choice input { accent-color: var(--rose-deep); width: 18px; height: 18px; flex-shrink: 0; }

.choice-beerpong.disabled { opacity: 0.45; pointer-events: none; }

/* kort opmærksomheds-blink når man kommer fra "Jeg er klar ved bordet" */
.choice-beerpong.pulse { animation: choicePulse 1.3s ease-out; }

@keyframes choicePulse {
  0%, 60% { box-shadow: 0 0 0 0 rgba(226, 121, 159, 0); }
  20% { box-shadow: 0 0 0 6px rgba(226, 121, 159, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(226, 121, 159, 0); }
}

.btn-submit { align-self: flex-start; }

.btn-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }

.form-status { font-weight: 800; min-height: 1.4em; }
.form-status.ok { color: #4d9967; }
.form-status.error { color: var(--rose-deep); }

.form-hint { font-size: 0.88rem; color: var(--muted); }

/* ---------- sidekort ved tilmelding ---------- */
.rsvp-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.3);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 5rem;
}

.rsvp-aside h3 {
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.aside-list { list-style: none; display: flex; flex-direction: column; gap: 0.95rem; }

.aside-list li { display: flex; gap: 0.7rem; font-size: 0.96rem; color: var(--muted); }

.aside-list strong { color: var(--ink); }

.aside-icon { flex-shrink: 0; font-size: 1.15rem; line-height: 1.5; }

.aside-dog {
  margin-top: 1.3rem;
  padding: 0.9rem 1.1rem;
  background: var(--rose-tint);
  border-radius: 18px;
  font-size: 0.92rem;
  color: #a24a71;
}

/* ---------- gæsteliste ---------- */
.guest-stats { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.6rem; }

.stat-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(122, 96, 65, 0.07);
}

.stat-chip strong { color: var(--rose-deep); }

.guest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

.guest-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 4px 14px rgba(122, 96, 65, 0.07);
  animation: pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.guest-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--peach), var(--rose));
}

.guest-name { font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }

.guest-badge {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #a2762f;
  background: #f8ecd4;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
}

.guest-msg { margin-top: 0.35rem; font-size: 0.88rem; color: var(--muted); font-style: italic; overflow-wrap: anywhere; }

.guest-empty { color: var(--muted); }

.declined-wrap { margin-top: 2.5rem; }

.declined-title { font-family: var(--font-body); font-size: 0.95rem; font-weight: 800; color: var(--muted); margin-bottom: 0.8rem; }

.declined-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.declined-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Lillie-spillet ---------- */
.spil-intro { max-width: 640px; color: var(--muted); }

.prize-note {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9rem 1.3rem;
  background: rgba(240, 195, 106, 0.14);
  border: 1px dashed rgba(223, 181, 113, 0.7);
  border-radius: 18px;
  color: #8a6a2f;
}

.prize-note strong { color: #6e5322; }

.spil-teaser-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 1.5rem;
}

.spil-teaser-wrap[hidden] { display: none; }

/* knappen der tigger om at blive trykket på */
.spil-teaser {
  font-size: 1.1rem;
  padding: 1.1rem 2.6rem;
  animation: teaserWiggle 2.6s ease-in-out infinite;
}

@keyframes teaserWiggle {
  0%, 100% { transform: rotate(0) scale(1); box-shadow: 0 6px 20px rgba(226, 121, 159, 0.4); }
  4% { transform: rotate(-2.5deg) scale(1.04); }
  8% { transform: rotate(2.5deg) scale(1.04); }
  12% { transform: rotate(-1.5deg) scale(1.04); }
  16% { transform: rotate(0) scale(1); }
  50% { box-shadow: 0 6px 34px rgba(226, 121, 159, 0.65); }
}

.game-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 2rem;
}

.game-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.3);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.game-frame { position: relative; }

#flappy-canvas {
  display: block;
  width: min(360px, 78vw);
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  cursor: pointer;
  /* undgå blåt blink og markering ved tryk på mobil */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.game-card, .game-frame {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.game-help {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

/* game over-overlay oven på canvas */
.game-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(74, 61, 51, 0.55);
  backdrop-filter: blur(3px);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
}

.game-over[hidden] { display: none; }

.go-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
}

.go-score { color: #fff; font-weight: 700; }
.go-score strong { color: var(--gold-soft, #f7dfae); font-size: 1.3em; }

.game-over label { color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; font-weight: 700; }

.game-over input {
  width: 100%;
  max-width: 220px;
  text-align: center;
  -webkit-user-select: text;
  user-select: text;
}

.game-over .btn { padding: 0.65rem 1.6rem; font-size: 0.95rem; }
.game-over .btn-ghost { background: rgba(255, 255, 255, 0.92); }

.go-status { color: #fff; font-weight: 700; min-height: 1.3em; font-size: 0.9rem; }

/* ---------- podiet ---------- */
.podium-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.3);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  max-width: 420px;
}

.podium-card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }

.podium-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.4rem; }

.podium {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  min-height: 150px;
}

.podium-spot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.podium-medal { font-size: 1.4rem; }

.podium-name {
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.podium-bar {
  width: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  border-radius: 12px 12px 0 0;
  animation: podiumRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.podium-spot.first .podium-bar { height: 96px; background: var(--gold); animation-delay: 0.25s; }
.podium-spot.second .podium-bar { height: 68px; background: #c3b8a6; }
.podium-spot.third .podium-bar { height: 50px; background: #d8a37a; animation-delay: 0.12s; }

@keyframes podiumRise {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

.podium-rest {
  list-style: none;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.podium-empty { color: var(--muted); }

/* ---------- footer ---------- */
.footer {
  padding: 4rem 0 8rem; /* ekstra plads i bunden så hunden ikke dækker teksten */
  text-align: center;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 90% at 50% 115%, rgba(242, 184, 128, 0.25), transparent 70%);
}

.footer-big {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--rose-deep);
  margin-bottom: 1rem;
}

.footer p { margin-bottom: 0.5rem; }

.footer-dog { color: var(--muted); }

.footer-small { margin-top: 1.6rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- Lillie (hvid doodle) ---------- */
.dog {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 130px;
  z-index: 30;
  cursor: pointer;
  will-change: transform;
  transform-origin: 50% 100%;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.dog-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 4px rgba(74, 61, 51, 0.16));
}

/* vend hunden når den løber mod venstre */
.dog.flip .dog-svg { transform: scaleX(-1); }

/* ben-trin når hun løber */
.dog .leg { transform-box: fill-box; transform-origin: 50% 10%; }

.dog.walking .l1, .dog.walking .l3 {
  animation: dogstep 0.3s ease-in-out infinite;
}

.dog.walking .l2, .dog.walking .l4 {
  animation: dogstep 0.3s ease-in-out infinite;
  animation-delay: 0.15s;
}

@keyframes dogstep {
  0%, 100% { transform: rotate(13deg); }
  50% { transform: rotate(-13deg); }
}

/* kroppen bouncer lidt når hun løber */
.dog-body-group { transform-box: fill-box; transform-origin: center; transition: transform 0.15s ease; }

.dog.walking .dog-body-group { animation: dogbob 0.3s ease-in-out infinite; }

@keyframes dogbob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* i luften: benene strakt og kroppen let vippet */
.dog.jumping .l1, .dog.jumping .l2 { animation: none; transform: rotate(16deg); }
.dog.jumping .l3, .dog.jumping .l4 { animation: none; transform: rotate(-16deg); }
.dog.jumping .dog-body-group { animation: none; transform: rotate(-7deg); }

/* tungen — kun fremme når den er glad */
.dog-tongue { opacity: 0; transition: opacity 0.2s ease; }
.dog.happy .dog-tongue { opacity: 1; }

/* talebobler */
.dog-bubble {
  position: absolute;
  bottom: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%) scale(0.6);
  opacity: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.25rem 0.75rem;
  font-weight: 800;
  font-size: 0.88rem;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.dog-bubble.show { opacity: 1; transform: translateX(-50%) scale(1); }

/* ---------- konfetti ---------- */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .rsvp-layout { grid-template-columns: 1fr; }
  .rsvp-aside { position: static; }
  .parking-card { grid-template-columns: 1fr; }
  .game-layout { grid-template-columns: 1fr; justify-items: center; }
  .podium-card { width: 100%; }
}

/* ---------- mobil ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }

  .topbar-inner { grid-template-columns: 1fr; }
  .topbar-inner .topbar-name { justify-self: center; }
  .topbar-nav { display: none; }

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

  .beerpong-card { flex-direction: column; align-items: flex-start; }
  .beerpong-visuals { align-self: center; }
  .beerpong-btn { width: 100%; text-align: center; }

  .count-tile { min-width: 70px; padding: 0.8rem 0.5rem; }
  .count-num { font-size: 1.5rem; }

  .radio-row { flex-direction: column; }
  .choice { width: 100%; }

  .btn-submit { align-self: stretch; text-align: center; }

  .guest-list { grid-template-columns: 1fr; }

  .dog { width: 88px; }
}

/* ---------- reduceret bevægelse ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-item { animation: none; opacity: 1; transform: none; }
  .thirty { animation: none; }
  .spark { animation: none; }
  .bp-ball, .bp-arm-l, .bp-arm-r { animation: none; }
  .spil-teaser { animation: none; }
  .podium-bar { animation: none; }
  .scroll-hint { animation: none; opacity: 1; }
  .scroll-hint-arrow { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .guest-card { animation: none; }
  .btn, .info-card, .topbar-cta { transition: none; }
  .dog .leg, .dog-body-group { animation: none !important; }
}
