@font-face {
  font-family: "SEGO";
  src: url("assets/SEGO.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300 950;
}

:root {
  color-scheme: light;
  --ink: #271820;
  --muted: #4d5660;
  --paper: #fff8d5;
  --paper-strong: #ffffff;
  --mist: #ffe7a5;
  --sage: #243746;
  --rose: #ff8750;
  --wine: #243746;
  --gold: #f6a12d;
  --acid: #ffcf57;
  --sky: #ffb06b;
  --sunset: #ff8848;
  --deep-sunset: #c94b12;
  --orange-dark: #a93b16;
  --orange-glow: #ffb15f;
  --plum: #243746;
  --display: "SEGO", Georgia, "Times New Roman", serif;
  --feature-copy: clamp(1.3rem, 2.4vw, 2rem);
  --disco-x: 50vw;
  --disco-y: 20vh;
  --line: rgba(32, 33, 35, 0.13);
  --shadow: 0 22px 70px rgba(95, 47, 53, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: var(--display) !important;
}

html {
  scroll-behavior: smooth;
  background: #fff8d5;
  /* Niets mag breder zijn dan het scherm: nooit een horizontale scrollbalk. */
  overflow-x: clip;
}

/* Zolang het openingsscherm toont, scrollt de pagina erachter niet: geen scrollbalken. */
html:has(.invite-gate:not(.is-open)),
html:has(.invite-gate:not(.is-open)) body {
  overflow: hidden;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  background: transparent;
  line-height: 1.5;
}

body.is-disco {
  overflow-y: auto;
  touch-action: pan-y;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 248, 213, 0.16), rgba(255, 248, 213, 0.3)),
    url("assets/sunset-water.jpg") center center / cover no-repeat,
    #fff8d5;
}

/* In disco-modus gaat het licht uit: de zonsondergang wordt een donkere dansvloer. */
body::before {
  transition: filter 0.5s ease;
}

body.is-disco::before {
  filter: brightness(0.22) saturate(1.8) hue-rotate(-20deg);
}

/* In het donker lichten de titels op, zoals de krijtletters op tidesco.be. */
h2,
.kicker,
.date-line,
.brand span,
.footer-brandline span {
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

body.is-disco h2,
body.is-disco .kicker,
body.is-disco .date-line,
body.is-disco .brand span,
body.is-disco .footer-brandline span {
  color: #fff4e2;
  text-shadow: 0 0 8px rgba(255, 136, 72, 0.9), 0 0 22px rgba(255, 60, 170, 0.6);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(100%, 1720px);
  min-height: 100vh;
  margin: 0 auto;
  background: transparent;
  border-inline: 0;
  box-shadow: none;
}

.site-header {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin-top: clamp(14px, 2.4vw, 34px);
  padding: 0 0 clamp(18px, 3vw, 34px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  min-width: 0;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  font-weight: 900;
}

.brand-mark {
  border: 0;
  display: inline-grid;
  width: clamp(48px, 5vw, 60px);
  height: clamp(48px, 5vw, 60px);
  place-items: center;
  flex: 0 0 auto;
  color: white;
  background: linear-gradient(135deg, var(--deep-sunset), var(--orange-glow));
  outline: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-mark:hover,
.brand-mark:focus-visible,
.disco-ball:hover,
.disco-ball:focus-visible,
body.is-disco .brand-mark,
body.is-disco .disco-ball {
  filter: saturate(1.55) brightness(1.18);
  transform: rotate(-5deg) scale(1.08);
  box-shadow: 0 0 0 5px rgba(255, 207, 87, 0.24), 0 0 28px rgba(255, 136, 72, 0.72);
  animation: disco-ball 900ms linear infinite;
}

.disco-ball:hover,
.disco-ball:focus-visible,
body.is-disco .disco-ball {
  transform: translateY(-50%) rotate(-5deg) scale(1.08);
}

.brand-mark:focus-visible,
.disco-ball:focus-visible {
  outline: 3px solid rgba(255, 207, 87, 0.95);
  outline-offset: 4px;
}

nav {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-weight: 900;
}

nav a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px clamp(15px, 2vw, 22px);
  border: 1px solid rgba(109, 49, 95, 0.22);
  border-radius: 999px;
  line-height: 1.1;
  box-shadow: 0 12px 28px rgba(109, 49, 95, 0.14);
}

nav a:nth-child(1) {
  background: #fff8d5;
}

nav a:nth-child(2) {
  background: #ffd8a8;
}

nav a:nth-child(3) {
  background: #ffcf57;
}

nav a:nth-child(4) {
  background: #ffb06b;
}

nav a:nth-child(5) {
  background: #ff8848;
  color: white;
}

nav a:hover {
  color: var(--wine);
}

.hero {
  position: relative;
  min-height: min(940px, 96svh);
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  padding: clamp(22px, 4vw, 44px) clamp(20px, 6vw, 96px) clamp(34px, 6vw, 70px);
  overflow: hidden;
  background: transparent;
}

.invite-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end start;
  padding: clamp(16px, min(5vw, 6vh), 74px);
  overflow-y: auto;
  background: var(--ink);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.invite-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 24, 26, 0.58), rgba(20, 24, 26, 0.08) 48%, rgba(255, 136, 72, 0.18)),
    linear-gradient(0deg, rgba(20, 24, 26, 0.72), transparent 58%);
}

.invite-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 86%;
  filter: grayscale(1) contrast(1.06);
}

.invite-gate.is-open {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.invite-card {
  display: grid;
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  min-height: auto;
  place-items: start;
  gap: clamp(14px, min(5vw, 4.5vh), 54px);
  padding: clamp(14px, min(4vw, 4vh), 38px);
  color: white;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.invite-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 2.1vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.invite-title {
  display: grid;
  gap: clamp(8px, min(4vw, 3vh), 36px);
  max-width: 690px;
  color: var(--sunset);
  font-family: var(--display);
  /* Ook op de schermhoogte letten, zodat de knop altijd in beeld blijft. */
  font-size: clamp(3rem, min(14vw, 15vh), 11rem);
  font-variation-settings: "SOFT" 70, "WONK" 1;
  font-weight: 700;
  line-height: 0.82;
  text-transform: uppercase;
}

.invite-title span {
  display: block;
}

.invite-title span:nth-child(2) {
  font-size: 0.72em;
  line-height: 0.72;
}

.invite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 58px;
  margin-top: clamp(4px, min(2.5vw, 2.5vh), 28px);
  padding: 14px 24px;
  text-transform: uppercase;
}

.invite-button:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 800px;
  order: 2;
}

.kicker {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  display: grid;
  gap: clamp(14px, 3.4vw, 34px);
  margin: 0;
  color: var(--deep-sunset);
  font-family: var(--display);
  font-size: clamp(4.6rem, 12vw, 11rem);
  font-variation-settings: "SOFT" 70, "WONK" 1;
  font-weight: 760;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 16px 40px rgba(36, 55, 70, 0.15);
}

h1 span {
  display: block;
}

h1 span:nth-child(2) {
  font-size: 0.7em;
  line-height: 0.72;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1;
}

.date-line {
  max-width: 720px;
  margin: clamp(42px, 6vw, 76px) 0 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  font-weight: 900;
  line-height: 1.08;
}

.section-heading {
  margin-top: 28px;
}

.button,
.invite-button,
.map-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--sunset), var(--wine));
  box-shadow: 0 12px 28px rgba(109, 49, 95, 0.24);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.button:hover,
.invite-button:hover,
.map-card a:hover {
  transform: translateY(-1px);
}

.photo-stage {
  position: relative;
  z-index: 1;
  order: 1;
  min-height: clamp(420px, 62vw, 760px);
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
}

.photo-stage {
  outline: 4px solid transparent;
  outline-offset: 4px;
  transition: outline-color 0.25s ease, outline-offset 0.25s ease, box-shadow 0.25s ease;
}

/* Kader bij hover: laat zien dat je op de foto kan klikken voor de disco. */
.photo-stage:hover,
.photo-stage:focus-visible {
  outline-color: var(--deep-sunset);
  outline-offset: 10px;
  box-shadow: 0 0 0 6px #fff8ec, 0 0 46px rgba(255, 136, 72, 0.75);
}

.hero-photo {
  width: 100%;
  height: clamp(420px, 62vw, 760px);
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(79, 47, 95, 0.26);
  filter: grayscale(1) contrast(1.08);
  transform: translateY(var(--hero-photo-shift, 0%)) scale(var(--hero-photo-scale, 1));
  transform-origin: center 40%;
  transition: transform 160ms ease-out;
  will-change: transform;
}

.disco-ball {
  position: absolute;
  right: clamp(18px, 2vw, 42px);
  top: 34%;
  z-index: 2;
  width: clamp(180px, 24vw, 360px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  opacity: 0.52;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.disco-ball-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(36, 55, 70, 0.2));
  pointer-events: none;
}

.countdown-strip,
.rsvp-section,
.location-section,
.gift-section,
.music-section {
  padding: clamp(28px, 4vw, 52px) clamp(20px, 6vw, 96px);
}

.dresscode-bar {
  /* 100vw zonder de breedte van de scrollbalk, anders steekt de balk uit. */
  width: calc(100vw - var(--scrollbar, 0px));
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 clamp(4px, 1.2vw, 10px) calc(50% - 50vw + var(--scrollbar, 0px) / 2);
  padding: 10px clamp(18px, 4vw, 44px);
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, #ffd726 0%, #ff9a2e 24%, #ef4f3f 48%, #b51f5b 70%, #251047 100%);
  box-shadow: 0 18px 42px rgba(79, 47, 95, 0.16);
  transform: none;
}

.dresscode-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 1em;
  color: rgba(39, 24, 32, 0.9);
  font-size: clamp(1.15rem, 2.4vw, 1.9rem);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.countdown-strip {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background: transparent;
  border-block: 0;
}

.countdown-strip h2 span {
  display: block;
}

/* Zet in je agenda */
.calendar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: clamp(16px, 2.4vw, 26px);
}

.calendar-label {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid rgba(109, 49, 95, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(79, 47, 95, 0.12);
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.calendar-link:hover,
.calendar-link:focus-visible {
  background: linear-gradient(135deg, #ffcf57, #ff8848);
  transform: translateY(-2px);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 24px);
  justify-items: center;
}

.countdown div {
  width: 100%;
  max-width: 168px;
  aspect-ratio: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 48px rgba(79, 47, 95, 0.18);
  backdrop-filter: blur(8px);
  text-align: center;
}

.countdown strong {
  color: var(--wine);
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.9;
}

.countdown span {
  color: var(--muted);
  font-weight: 900;
}

.rsvp-section,
.gift-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.gift-section {
  align-items: center;
}

.rsvp-section {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.rsvp-section > div:first-child {
  max-width: 920px;
  text-align: center;
}

#rsvp-title {
  white-space: nowrap;
  font-size: clamp(2.45rem, 5.3vw, 5.7rem);
}

.rsvp-form {
  width: min(100%, 1180px);
}

.rsvp-form,
.rsvp-admin-panel,
.gift-card,
.playlist-panel,
.song-form {
  border: 1px solid rgba(109, 49, 95, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.rsvp-form,
.rsvp-admin-panel,
.gift-card {
  padding: clamp(18px, 3vw, 30px);
}

.rsvp-section p,
.gift-card p,
.location-section p,
.section-heading p,
.playlist-panel p {
  margin: 0;
  color: var(--muted);
}

.rsvp-admin-panel {
  grid-column: 2;
}

.rsvp-admin-panel[hidden] {
  display: none;
}

.rsvp-admin-panel h3 {
  font-size: var(--feature-copy);
  line-height: 1.16;
}

.rsvp-summary {
  margin: 0 0 16px;
  color: var(--wine);
  font-size: var(--feature-copy);
  font-weight: 900;
  line-height: 1.16;
}

#rsvp-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

#rsvp-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(109, 49, 95, 0.16);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.6);
}

#rsvp-list li > div {
  display: grid;
  gap: 6px;
}

#rsvp-list strong,
#rsvp-list span {
  font-size: var(--feature-copy);
  line-height: 1.12;
}

#rsvp-list span {
  color: var(--muted);
  font-weight: 900;
  text-align: right;
}

#rsvp-list em {
  color: #ff2f9a;
  font-size: clamp(1.08rem, 1.9vw, 1.45rem);
  font-style: normal;
  font-weight: 900;
  line-height: 1.16;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

legend {
  display: grid;
  grid-template-rows: clamp(134px, 12vw, 172px) minmax(70px, auto);
  justify-items: center;
  gap: 24px;
  margin-bottom: 18px;
  font-size: var(--feature-copy);
  font-weight: 800;
  line-height: 1.16;
  text-align: center;
}

.attendance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
  margin-bottom: 22px;
}

.attendance-grid fieldset {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  margin: 0;
}

.attendance-grid legend {
  flex: 0 0 292px;
  height: 292px;
  min-height: 268px;
  align-content: start;
}

legend strong {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  width: clamp(112px, 12vw, 150px);
  aspect-ratio: 1;
  place-items: center;
  align-self: center;
  margin: clamp(10px, 1.4vw, 18px) 0 0;
  padding: 20px;
  color: var(--wine);
  background: radial-gradient(circle, #fff8d5 0 60%, #ffcf57 61% 78%, #ff8848 79% 100%);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(169, 59, 22, 0.18);
  font-family: var(--display) !important;
  font-size: clamp(1.03rem, 1.8vw, 1.35rem);
  font-weight: 850;
  line-height: 0.94;
  letter-spacing: 0;
  text-align: center;
  z-index: 0;
}

legend strong::before {
  content: "";
  position: absolute;
  inset: -34px;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='%23ffad00'%3E%3Cpath d='M100 2 C116 24 108 40 100 56 C92 40 84 24 100 2Z'/%3E%3Cpath d='M100 20 C110 34 106 47 100 61 C94 47 90 34 100 20Z' transform='rotate(15 100 100)'/%3E%3Cpath d='M100 2 C116 24 108 40 100 56 C92 40 84 24 100 2Z' transform='rotate(30 100 100)'/%3E%3Cpath d='M100 20 C110 34 106 47 100 61 C94 47 90 34 100 20Z' transform='rotate(45 100 100)'/%3E%3Cpath d='M100 2 C116 24 108 40 100 56 C92 40 84 24 100 2Z' transform='rotate(60 100 100)'/%3E%3Cpath d='M100 20 C110 34 106 47 100 61 C94 47 90 34 100 20Z' transform='rotate(75 100 100)'/%3E%3Cpath d='M100 2 C116 24 108 40 100 56 C92 40 84 24 100 2Z' transform='rotate(90 100 100)'/%3E%3Cpath d='M100 20 C110 34 106 47 100 61 C94 47 90 34 100 20Z' transform='rotate(105 100 100)'/%3E%3Cpath d='M100 2 C116 24 108 40 100 56 C92 40 84 24 100 2Z' transform='rotate(120 100 100)'/%3E%3Cpath d='M100 20 C110 34 106 47 100 61 C94 47 90 34 100 20Z' transform='rotate(135 100 100)'/%3E%3Cpath d='M100 2 C116 24 108 40 100 56 C92 40 84 24 100 2Z' transform='rotate(150 100 100)'/%3E%3Cpath d='M100 20 C110 34 106 47 100 61 C94 47 90 34 100 20Z' transform='rotate(165 100 100)'/%3E%3Cpath d='M100 2 C116 24 108 40 100 56 C92 40 84 24 100 2Z' transform='rotate(180 100 100)'/%3E%3Cpath d='M100 20 C110 34 106 47 100 61 C94 47 90 34 100 20Z' transform='rotate(195 100 100)'/%3E%3Cpath d='M100 2 C116 24 108 40 100 56 C92 40 84 24 100 2Z' transform='rotate(210 100 100)'/%3E%3Cpath d='M100 20 C110 34 106 47 100 61 C94 47 90 34 100 20Z' transform='rotate(225 100 100)'/%3E%3Cpath d='M100 2 C116 24 108 40 100 56 C92 40 84 24 100 2Z' transform='rotate(240 100 100)'/%3E%3Cpath d='M100 20 C110 34 106 47 100 61 C94 47 90 34 100 20Z' transform='rotate(255 100 100)'/%3E%3Cpath d='M100 2 C116 24 108 40 100 56 C92 40 84 24 100 2Z' transform='rotate(270 100 100)'/%3E%3Cpath d='M100 20 C110 34 106 47 100 61 C94 47 90 34 100 20Z' transform='rotate(285 100 100)'/%3E%3Cpath d='M100 2 C116 24 108 40 100 56 C92 40 84 24 100 2Z' transform='rotate(300 100 100)'/%3E%3Cpath d='M100 20 C110 34 106 47 100 61 C94 47 90 34 100 20Z' transform='rotate(315 100 100)'/%3E%3Cpath d='M100 2 C116 24 108 40 100 56 C92 40 84 24 100 2Z' transform='rotate(330 100 100)'/%3E%3Cpath d='M100 20 C110 34 106 47 100 61 C94 47 90 34 100 20Z' transform='rotate(345 100 100)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 10px 16px rgba(169, 59, 22, 0.16));
}

legend strong::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 248, 213, 0.98) 0 63%, rgba(255, 207, 87, 0.96) 64% 100%);
  border-radius: 50%;
}

legend span {
  display: block;
  max-width: 34ch;
  align-self: start;
  padding: 10px 0 12px;
}

#gift-title span {
  display: block;
  white-space: nowrap;
}

#gift-title {
  max-width: 100%;
  font-size: clamp(2.05rem, 3.6vw, 4.25rem);
  line-height: 0.96;
}

.choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 46px;
  gap: 10px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid rgba(109, 49, 95, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  line-height: 1;
}

.choice input[type="radio"] {
  appearance: auto;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.form-note {
  margin: 46px 0 0;
  color: #ff2f9a;
  font-size: var(--feature-copy);
  font-weight: 900;
  line-height: 1.18;
}

p.form-note,
.rsvp-section p.form-note,
.gift-card p.form-note,
.playlist-panel p.form-note {
  margin: 46px 0 0 !important;
  color: #ff2f9a !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.form-note:empty {
  display: none;
}

.location-section {
  background: transparent;
}

.section-heading {
  max-width: 760px;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(18px, 4vw, 42px);
  margin: 34px 0 0;
  align-items: stretch;
}

.venue-photo,
.map-card {
  min-height: 390px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.venue-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-card {
  position: relative;
  display: block;
  background: white;
}

/* Het infokaartje van Google ("Groter weergeven") linksboven valt buiten beeld:
   de kaart is 110px hoger en schuift 110px omhoog. Enkel onze eigen knop blijft. */
.map-card iframe {
  position: absolute;
  left: 0;
  top: -110px;
  width: 100%;
  height: calc(100% + 110px);
  border: 0;
  pointer-events: none;
}

.map-card a {
  position: absolute;
  left: 18px;
  bottom: 18px;
}

.gift-card p {
  max-width: 800px;
  font-family: var(--display);
  font-size: var(--feature-copy);
  line-height: 1.22;
}

.gift-iban-button {
  display: inline-flex;
  margin-top: 22px;
  padding: 12px 16px;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffcf57, #ff8848);
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(79, 47, 95, 0.14);
}

.gift-iban-button:hover {
  transform: translateY(-2px);
}

.music-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(260px, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
  margin-top: 34px;
}

.song-form,
.playlist-panel {
  padding: clamp(18px, 3vw, 28px);
  font-size: var(--feature-copy);
}

.playlist-panel h3 {
  font-size: var(--feature-copy);
  line-height: 1.16;
}

label {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--ink);
  font-weight: 800;
  font-size: var(--feature-copy);
  line-height: 1.16;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(109, 49, 95, 0.22);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.58);
  font-family: var(--display);
  font-size: var(--feature-copy);
  line-height: 1.16;
}

textarea {
  resize: vertical;
}

.rsvp-form textarea[name="note"] {
  height: 58px;
  min-height: 58px;
  overflow: hidden;
  resize: none;
}

.song-form textarea[name="request"] {
  height: 82px;
  min-height: 82px;
  overflow: hidden;
  resize: none;
  field-sizing: content;
}

input::placeholder,
textarea::placeholder {
  font-size: 0.82em;
  line-height: 1.16;
}

input:focus,
textarea:focus {
  border-color: var(--wine);
  outline: 3px solid rgba(199, 134, 126, 0.2);
}

.attendance-grid .choice {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  flex: 0 0 42px;
  width: 100%;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  gap: 10px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(109, 49, 95, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  font-size: var(--feature-copy);
  font-weight: 800;
  line-height: 1.05;
  overflow: hidden;
}

.attendance-grid .choice:first-of-type {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.attendance-grid .choice + .choice {
  margin-top: 6px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.attendance-grid .choice::before {
  content: "";
  grid-column: 1;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--wine);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.88);
}

.attendance-grid .choice:has(input[type="radio"]:checked)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sunset);
  transform: translateY(-50%);
}

.attendance-grid .choice input[type="radio"] {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0 !important;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Playlist: draaitafel + platenbak ---------- */

.jukebox-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
}

.jukebox-head h3 {
  margin: 0;
}

.record-count {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deck {
  display: grid;
  grid-template-columns: clamp(140px, 15vw, 210px) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: center;
  margin-top: 18px;
  padding: clamp(14px, 2vw, 20px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 177, 95, 0.35), transparent 55%),
    linear-gradient(145deg, #2b1a26, #1a1220);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 40px rgba(39, 24, 32, 0.28);
  color: #fff4e2;
}

.turntable {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 8%;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, #3a2a35, #23171f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.platter {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #120c10;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.vinyl {
  --label-a: #ffb15f;
  --label-b: #c94b12;
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, #161014 0 2px, #241a20 2px 3px);
  opacity: 0.35;
  animation: vinyl-spin 1.8s linear infinite;
  animation-play-state: paused;
  transition: opacity 0.3s ease;
}

.vinyl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 255, 0.16) 12%, transparent 18% 50%, rgba(255, 255, 255, 0.12) 56%, transparent 62%);
  pointer-events: none;
}

.vinyl-label {
  display: grid;
  width: 36%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--label-a), var(--label-b));
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: var(--display);
  font-size: clamp(0.7rem, 1.1vw, 0.95rem);
  font-weight: 900;
}

.turntable.has-record .vinyl {
  opacity: 1;
}

.turntable.is-playing .vinyl {
  animation-play-state: running;
}

.vinyl.is-dropping {
  animation: vinyl-drop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1), vinyl-spin 1.8s linear 0.5s infinite;
}

.turntable:not(.is-playing) .vinyl.is-dropping {
  animation-play-state: paused;
}

.tonearm {
  position: absolute;
  top: 6%;
  right: 6%;
  width: 6%;
  height: 52%;
  border-radius: 999px;
  background: linear-gradient(#e8d9c8, #b9a48f);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transform-origin: 50% 6%;
  transform: rotate(-4deg);
  transition: transform 0.6s cubic-bezier(0.3, 1.3, 0.5, 1);
}

.tonearm::before {
  content: "";
  position: absolute;
  top: -6%;
  left: 50%;
  width: 260%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d8c6b2;
  transform: translateX(-50%);
}

.tonearm::after {
  content: "";
  position: absolute;
  bottom: -4%;
  left: -40%;
  width: 180%;
  height: 14%;
  border-radius: 3px;
  background: var(--sunset);
}

.turntable.is-playing .tonearm {
  transform: rotate(24deg);
}

.now-playing {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.now-label {
  color: var(--orange-glow);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.now-playing strong {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.now-artist {
  min-height: 1.2em;
  color: rgba(255, 244, 226, 0.75);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.deck-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.deck-button {
  min-width: 46px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 244, 226, 0.25);
  border-radius: 999px;
  color: #fff4e2;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.deck-button:hover:not(:disabled),
.deck-button:focus-visible {
  background: linear-gradient(135deg, var(--sunset), #b51f5b);
  transform: translateY(-2px);
}

.deck-button:disabled {
  cursor: default;
  opacity: 0.4;
}

.deck-shuffle.is-rolling {
  animation: shuffle-wiebel 0.5s ease;
}

.spotify-link {
  justify-self: start;
  margin-top: 6px;
  color: #8dffc4;
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spotify-link[hidden] {
  display: none;
}

.record-crate {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.record-crate li {
  position: relative;
}

.sleeve {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  align-content: end;
  gap: 2px;
  padding: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.35), transparent 34%),
    linear-gradient(135deg, var(--sleeve-a), var(--sleeve-b));
  box-shadow: 0 10px 22px rgba(79, 47, 95, 0.22);
  text-align: left;
  cursor: pointer;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Een plaatje dat uit de hoes piept. */
.sleeve::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -46%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--sleeve-a) 0 16%, #111 17% 19%, transparent 19%),
    repeating-radial-gradient(circle, #161014 0 2px, #2a2026 2px 3px);
  transition: right 0.3s ease;
}

.sleeve strong,
.sleeve-artist {
  position: relative;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}

.sleeve strong {
  -webkit-line-clamp: 3;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.05;
}

.sleeve-artist {
  -webkit-line-clamp: 1;
  font-size: 0.85rem;
  opacity: 0.85;
}

.sleeve:hover,
.sleeve:focus-visible {
  transform: rotate(0deg) translateY(-6px) scale(1.04);
  box-shadow: 0 16px 30px rgba(79, 47, 95, 0.3);
}

.sleeve:hover::before,
.sleeve:focus-visible::before {
  right: -30%;
}

.sleeve.is-current {
  transform: rotate(0deg) translateY(-4px);
  outline: 3px solid var(--sunset);
  outline-offset: 3px;
}

.sleeve.is-current::before {
  right: -100%;
}

.record-crate .delete-request {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 1;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}

@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}

@keyframes vinyl-drop {
  from { opacity: 0; transform: translateY(-40%) scale(0.7) rotate(-40deg); }
  to { opacity: 1; transform: none; }
}

@keyframes shuffle-wiebel {
  25% { transform: rotate(-8deg) scale(1.08); }
  50% { transform: rotate(8deg) scale(1.08); }
  75% { transform: rotate(-4deg); }
}

@media (max-width: 560px) {
  .deck {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .turntable {
    width: min(62vw, 220px);
  }

  .now-playing {
    justify-items: center;
  }

  .deck-controls {
    justify-content: center;
  }

  .spotify-link {
    justify-self: center;
  }

  .record-crate {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .vinyl,
  .vinyl.is-dropping {
    animation: none;
  }
}

.empty-state {
  margin-top: 16px;
  font-size: var(--feature-copy);
  line-height: 1.18;
}

.form-note.is-error {
  color: #9f1d1d;
}

.delete-request {
  flex: 0 0 auto;
  border: 1px solid rgba(39, 24, 32, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: white;
  background: var(--wine);
  font-weight: 900;
  cursor: pointer;
}

.delete-request:disabled {
  cursor: wait;
  opacity: 0.55;
}

.pluis-pop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8vw) scale(0.82) rotate(-4deg);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s 180ms;
}

.pluis-pop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-8vw) scale(1) rotate(0deg);
  transition: opacity 160ms ease, transform 320ms cubic-bezier(0.18, 0.9, 0.25, 1.35);
}

.pluis-pop img {
  width: min(118vw, 1040px);
  max-height: 98svh;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 30px 62px rgba(39, 24, 32, 0.58));
  animation: pluis-spin-bounce 760ms cubic-bezier(0.18, 0.88, 0.26, 1.18) infinite;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 6vw, 80px);
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 207, 87, 0.9), rgba(255, 136, 72, 0.86));
  backdrop-filter: blur(8px);
}

.footer-brandline {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-disco {
  margin: 0;
  padding: 0;
  color: var(--ink);
  border: 0;
  background: transparent;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
  font-weight: 900;
  cursor: pointer;
}

.footer-brandline span {
  color: rgba(39, 24, 32, 0.72);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
}

footer a {
  color: var(--ink);
  font-weight: 800;
}

@keyframes disco-wash {
  0% {
    background-position: 0% 42%, 100% 30%, 0 0;
    filter: hue-rotate(0deg);
  }

  50% {
    background-position: 100% 58%, 0% 70%, 0 0;
    filter: hue-rotate(130deg);
  }

  100% {
    background-position: 0% 42%, 100% 30%, 0 0;
    filter: hue-rotate(360deg);
  }
}

@keyframes disco-spots {
  0% {
    background-position: 0% 25%;
  }

  100% {
    background-position: 100% 72%;
  }
}

@keyframes disco-ball {
  to {
    filter: hue-rotate(360deg) saturate(1.55) brightness(1.18);
  }
}

/* ---------- Lichtshow, zelfde als op tidesco.be ---------- */

.disco-room {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

body.is-disco .disco-room {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

.disco-wash {
  position: absolute;
  inset: -75%;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 0, 140, 0.35), transparent 40%),
    radial-gradient(circle at 80% 75%, rgba(0, 170, 255, 0.35), transparent 42%),
    radial-gradient(circle at 50% 10%, rgba(140, 60, 255, 0.3), transparent 45%);
  mix-blend-mode: screen;
  animation: td-wash 4s linear infinite;
}

.disco-beams {
  position: absolute;
  left: var(--bx, 50vw);
  top: var(--by, 20vh);
  width: 260vmax;
  height: 260vmax;
  margin: -130vmax 0 0 -130vmax;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 60, 170, 0.5) 0deg 2.5deg,
    transparent 2.5deg 22deg,
    rgba(60, 190, 255, 0.5) 22deg 24.5deg,
    transparent 24.5deg 44deg,
    rgba(255, 225, 80, 0.45) 44deg 46.5deg,
    transparent 46.5deg 66deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 1.2vmax, #000 3vmax, rgba(0, 0, 0, 0.6) 40vmax, transparent 70vmax);
  mask: radial-gradient(circle, transparent 0 1.2vmax, #000 3vmax, rgba(0, 0, 0, 0.6) 40vmax, transparent 70vmax);
  filter: blur(3px);
  mix-blend-mode: screen;
  animation: td-draai 7s linear infinite;
}

.disco-beams-2 {
  opacity: 0.7;
  filter: blur(6px) hue-rotate(120deg);
  animation: td-draai 11s linear infinite reverse;
}

.disco-spots {
  position: absolute;
  left: var(--bx, 50vw);
  top: var(--by, 20vh);
  width: 0;
  height: 0;
  animation: td-draai 9s linear infinite;
}

.disco-spots i {
  position: absolute;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 calc(var(--s) * 0.8) var(--c);
  transform: rotate(var(--a)) translateX(var(--d)) scaleX(1.5);
  animation: td-fonkel 0.9s ease-in-out var(--t) infinite alternate;
  mix-blend-mode: screen;
}

.disco-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
}

.disco-room.go .disco-flash {
  animation: td-flits 0.6s ease-out both;
}

/* De running joke: verschijnt bij het aanzetten en verdwijnt na een paar seconden. */
.tidisco {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  gap: 0.02em;
  font-family: Monoton, var(--display), sans-serif;
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.disco-room.go .tidisco {
  animation: td-tekst-weg 0.7s ease 3.2s both;
}

.tidisco span {
  display: inline-block;
  color: hsl(calc(var(--i) * 50deg) 100% 72%);
  text-shadow:
    0 0 6px hsl(calc(var(--i) * 50deg) 100% 60%),
    0 0 18px hsl(calc(var(--i) * 50deg) 100% 55%),
    0 0 40px hsl(calc(var(--i) * 50deg) 100% 50%);
  opacity: 0;
}

.disco-room.go .tidisco span {
  animation:
    td-binnen 0.5s cubic-bezier(0.3, 1.8, 0.5, 1) calc(0.35s + var(--i) * 0.09s) both,
    td-spring 0.5s ease-in-out calc(1.2s + var(--i) * 0.06s) infinite alternate,
    td-kleur 2s linear calc(var(--i) * -0.28s) infinite;
}

@keyframes td-wash {
  from { filter: hue-rotate(0deg); transform: rotate(0deg) scale(1.1); }
  to { filter: hue-rotate(360deg); transform: rotate(360deg) scale(1.1); }
}

@keyframes td-draai {
  to { rotate: 360deg; }
}

@keyframes td-fonkel {
  from { opacity: 0.25; }
  to { opacity: 1; }
}

@keyframes td-flits {
  0% { opacity: 0.85; }
  100% { opacity: 0; }
}

@keyframes td-binnen {
  from { opacity: 0; transform: translateY(1.5em) scale(0.3) rotate(-30deg); }
  to { opacity: 1; transform: none; }
}

@keyframes td-spring {
  from { transform: translateY(0); }
  to { transform: translateY(-0.12em) rotate(4deg); }
}

@keyframes td-kleur {
  to { filter: hue-rotate(360deg); }
}

@keyframes td-tekst-weg {
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

@keyframes pluis-spin-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(-10deg);
  }

  32% {
    transform: translateY(-46px) scale(1.1) rotate(15deg);
  }

  58% {
    transform: translateY(14px) scale(0.98) rotate(370deg);
  }

  82% {
    transform: translateY(-18px) scale(1.04) rotate(346deg);
  }
}

/* Pc: het eerste scherm (foto + TIM & NINA) past volledig in beeld, ook op lage schermen. */
@media (min-width: 861px) {
  .hero {
    min-height: 100svh;
    padding-top: clamp(10px, 2vh, 44px);
    padding-bottom: clamp(16px, 4vh, 70px);
  }

  .site-header {
    margin-top: clamp(8px, 2vh, 34px);
    padding-bottom: clamp(8px, 2vh, 34px);
  }

  .photo-stage {
    min-height: 0;
  }

  .hero-photo {
    height: clamp(300px, min(62vw, 100svh - 215px), 760px);
  }

  h1 {
    gap: clamp(8px, min(3.4vw, 3vh), 34px);
    font-size: clamp(3.6rem, min(12vw, 18vh), 11rem);
  }

  .date-line {
    margin-top: clamp(16px, min(6vw, 5vh), 76px);
    font-size: clamp(1.3rem, min(3.2vw, 4.4vh), 2.65rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .disco-room .disco-wash,
  .disco-room .disco-beams,
  .disco-room .disco-spots {
    animation: none;
  }

  .disco-room.go .disco-flash {
    animation: none;
  }

  .disco-room.go .tidisco span {
    animation: td-binnen 0.01s both;
  }

  .pluis-pop img {
    animation: none;
  }

  .hero-photo {
    transform: none;
    transition: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    margin-top: 10px;
  }

  .hero,
  .countdown-strip,
  .rsvp-section,
  .gift-section,
  .music-layout {
    grid-template-columns: 1fr;
  }

  .rsvp-admin-panel {
    grid-column: auto;
  }

  .hero {
    min-height: auto;
    padding: 24px 18px 54px;
    gap: 28px;
  }

  .photo-stage,
  .hero-photo {
    min-height: 380px;
    height: 58svh;
  }

  .invite-photo {
    object-position: center 62%;
  }

  .pluis-pop,
  .pluis-pop.is-visible {
    transform: translateX(-7vw) scale(1) rotate(0deg);
  }

  .hero-copy {
    order: 1;
    max-width: 100%;
  }

  .photo-stage {
    order: 2;
  }

  .disco-ball {
    right: -18px;
    top: 18%;
    width: clamp(130px, 38vw, 220px);
    opacity: 0.34;
  }

  h1 {
    font-size: clamp(4.2rem, 22vw, 7.2rem);
  }

  .location-layout {
    grid-template-columns: 1fr;
  }

  .countdown-strip,
  .rsvp-section,
  .location-section,
  .gift-section,
  .music-section {
    padding: 34px 18px;
  }

  .dresscode-bar {
    min-height: 42px;
  }

  .rsvp-form {
    padding-block: 28px;
  }

  .rsvp-form > label:first-child {
    margin-bottom: 34px;
  }

  .attendance-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .attendance-grid fieldset {
    display: flex;
    gap: 0;
  }

  .attendance-grid legend {
    grid-template-rows: auto auto;
    flex-basis: auto;
    height: auto;
    min-height: 0;
    margin-bottom: 24px;
  }

  legend strong {
    width: clamp(104px, 34vw, 132px);
    margin-top: 14px;
  }

  legend span {
    padding: 16px 0 18px;
  }
}

@media (max-width: 560px) {
  .countdown {
    grid-template-columns: 1fr;
  }

  .countdown div {
    max-width: min(68vw, 220px);
  }

  .calendar-link {
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .button,
  .invite-button,
  .map-card a {
    width: 100%;
  }

  .invite-card {
    min-height: auto;
    gap: 28px;
    padding: 22px 18px;
  }

  .invite-title {
    font-size: clamp(4rem, 24vw, 7.4rem);
  }

  .date-line {
    max-width: 92%;
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  #gift-title {
    font-size: clamp(1.85rem, 10vw, 2.85rem);
  }

  #rsvp-title {
    white-space: normal;
    font-size: clamp(1.95rem, 9vw, 2.85rem);
  }

  .dresscode-bar span {
    font-size: clamp(1rem, 5.2vw, 1.25rem);
  }

  .gift-iban-button {
    width: 100%;
    justify-content: center;
  }

  .map-card a {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: calc(100% - 24px);
    min-height: 50px;
    padding: 12px 16px;
    text-align: center;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
