/* =========================================================================
   Sanne's Verjaardagstuin — stijl
   Sfeer: Frans antiek · cottage garden · zacht, warm en romantisch.
   Mobile-first; grotere schermen krijgen meer ruimte verderop.
   ========================================================================= */

:root {
  /* --- Kleurenpalet (gevraagd) --- */
  --color-sage: #9caf88;
  --color-dusty-rose: #c9a2a4;
  --color-dusty-blue: #9fb2bd;
  --color-linen: #ece4d4;
  --color-cream: #faf5ec;
  --color-antique-gold: #b08d57;
  --color-ink: #4d473e;

  /* --- Aanvullende, harmonieuze tinten --- */
  --color-sage-dark: #74886a;
  --color-sage-soft: #c4d1b4;
  --color-dusty-rose-soft: #e7d2d2;
  --color-dusty-rose-deep: #a97c82;
  --color-dusty-blue-soft: #cdd9df;
  --color-parchment: #f5ecd6;
  --color-ink-soft: #6f685b;
  --color-line: rgba(176, 141, 87, 0.28);

  /* --- Typografie --- */
  --font-display: "Cormorant Garamond", "Garamond", "Hoefler Text", "Georgia", serif;
  --font-body: "Iowan Old Style", "Palatino Linotype", "Palatino", "Georgia", serif;

  /* --- Vorm & ritme --- */
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px -24px rgba(77, 71, 62, 0.45);
  --shadow-card: 0 14px 30px -20px rgba(77, 71, 62, 0.4);
  --maxw: 960px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-ink);
  background:
    linear-gradient(180deg, var(--color-cream) 0%, var(--color-linen) 100%)
    fixed;
}

/* Zachte aquarel-bloesems op de achtergrond */
.page-bloom {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 12% 18%, rgba(201, 162, 164, 0.20), transparent 70%),
    radial-gradient(closest-side at 88% 12%, rgba(159, 178, 189, 0.18), transparent 70%),
    radial-gradient(closest-side at 78% 86%, rgba(156, 175, 136, 0.20), transparent 70%),
    radial-gradient(closest-side at 22% 90%, rgba(176, 141, 87, 0.12), transparent 72%);
}

/* --- Tekstinstellingen --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--color-ink);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
p { margin: 0 0 1em; }
strong { color: var(--color-sage-dark); font-weight: 600; }
a { color: var(--color-sage-dark); text-decoration: none; }
a:hover { color: var(--color-antique-gold); }
img { max-width: 100%; height: auto; display: block; }

/* =========================================================================
   Layout: kader, header, footer
   ========================================================================= */
.garden-frame {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1.1rem 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 0.75rem 0 1.1rem;
  border-bottom: 1px solid var(--color-line);
}
.site-header__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--color-sage-dark);
}
.site-header__title:hover { color: var(--color-antique-gold); }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.site-nav a:hover { border-color: var(--color-antique-gold); }

.site-main {
  flex: 1;
  padding: 1.75rem 0;
  display: flex;
  flex-direction: column;
}

.site-footer {
  text-align: center;
  color: var(--color-ink-soft);
  font-style: italic;
  font-size: 0.9rem;
  padding-top: 1.5rem;
}
.site-footer p { margin: 0.75rem 0 0; }
.site-footer__divider {
  display: inline-block;
  width: 120px;
  height: 14px;
  background:
    radial-gradient(circle at center, var(--color-dusty-rose) 2.5px, transparent 3px) center/120px 14px no-repeat,
    linear-gradient(90deg, transparent, var(--color-line) 20%, var(--color-line) 80%, transparent) center/100% 1px no-repeat;
}

/* =========================================================================
   Meldingen
   ========================================================================= */
.messages { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.5rem 0 0; }
.message {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
  font-size: 0.98rem;
  animation: fade-in 0.6s ease both;
}
.message__leaf {
  flex: 0 0 auto;
  width: 11px; height: 11px;
  border-radius: 50% 0 50% 50%;
  background: var(--color-sage);
  transform: rotate(45deg);
}
.message--success { border-color: rgba(156, 175, 136, 0.6); background: #f1f4ea; }
.message--success .message__leaf { background: var(--color-sage); }
.message--info { border-color: rgba(159, 178, 189, 0.6); background: #eef3f5; }
.message--info .message__leaf { background: var(--color-dusty-blue); }
.message--warning { border-color: rgba(176, 141, 87, 0.5); background: #f6efe1; }
.message--warning .message__leaf { background: var(--color-antique-gold); }
.message--error { border-color: rgba(169, 124, 130, 0.55); background: #f5ecec; }
.message--error .message__leaf { background: var(--color-dusty-rose-deep); }

/* =========================================================================
   Knoppen, links en formulieren
   ========================================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.25s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.btn--primary {
  background: var(--color-sage);
  color: #fbfdf8;
  box-shadow: 0 10px 22px -14px rgba(116, 136, 106, 0.9);
}
.btn--primary:hover {
  background: var(--color-sage-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--color-sage-dark);
  border-color: var(--color-sage);
}
.btn--ghost:hover {
  background: var(--color-sage-soft);
  color: var(--color-ink);
  transform: translateY(-2px);
}
.btn--lg { padding: 0.95rem 2.4rem; font-size: 1.1rem; }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.link-soft {
  display: inline-block;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-ink-soft);
  transition: color 0.3s ease;
}
.link-soft:hover { color: var(--color-antique-gold); }

.form { margin: 1.25rem 0 0.5rem; text-align: left; }
.field { margin-bottom: 1.1rem; }
.field__label {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: 0.4rem;
}
.input,
input[type="text"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-ink);
  padding: 0.85rem 1rem;
  background: #fffdf8;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(156, 175, 136, 0.25);
}
.input--code {
  text-align: center;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 1.2rem;
}
.field__error {
  margin: 0.45rem 0 0;
  color: var(--color-dusty-rose-deep);
  font-size: 0.9rem;
  font-style: italic;
}

/* =========================================================================
   Kaarten (algemeen)
   ========================================================================= */
.card {
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
}
.card__title { font-size: 1.9rem; margin-bottom: 0.4rem; }
.card__lead { color: var(--color-ink-soft); margin-bottom: 0.5rem; }

/* =========================================================================
   Landingspagina
   ========================================================================= */
.landing { text-align: center; max-width: 620px; margin: 0 auto; }
.landing__emblem { width: 132px; margin: 0 auto 0.5rem; }
.rose-emblem { width: 100%; height: auto; }
.landing__eyebrow,
.overview__eyebrow,
.finale__eyebrow {
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-antique-gold);
  margin-bottom: 0.3rem;
}
.landing__title { font-size: 2.7rem; margin-bottom: 0.6rem; }
.landing__intro { font-size: 1.12rem; color: var(--color-ink); max-width: 48ch; margin-inline: auto; }
.landing__intro--soft { color: var(--color-ink-soft); font-style: italic; font-size: 1.02rem; }
.landing .btn { margin-top: 1.4rem; }

/* Embleem op de codepagina */
.code-emblem { display: flex; justify-content: center; width: 86px; margin: 0 auto 0.75rem; }

/* =========================================================================
   Tuin-overzicht
   ========================================================================= */
.overview { width: 100%; }
.overview__head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.overview__title { font-size: 2.3rem; margin-bottom: 0.5rem; }
.overview__progress-text { color: var(--color-ink-soft); font-size: 1.05rem; }

.progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 420px;
  margin: 1rem auto 0;
}
.progress__track {
  flex: 1;
  height: 14px;
  background: var(--color-linen);
  border-radius: 999px;
  border: 1px solid var(--color-line);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(77, 71, 62, 0.12);
}
.progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-sage-soft), var(--color-sage));
  box-shadow: 0 0 8px rgba(156, 175, 136, 0.5);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress__label { font-size: 0.9rem; color: var(--color-sage-dark); min-width: 3ch; }
.overview__hint { text-align: center; font-style: italic; color: var(--color-ink-soft); margin-top: 0.75rem; }
.overview__hint--bloom { color: var(--color-sage-dark); }

.garden-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.bloom-card {
  position: relative;
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: fade-in 0.7s ease both;
}
.bloom-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.bloom-card.is-closed { background: #f3eee3; }
.bloom-card.is-closed .bloom-card__title { color: var(--color-ink-soft); }
.bloom-card__icon { width: 78px; height: 78px; }
.bloom-card.is-open .flower--open { animation: bloom 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; transform-origin: 50% 60%; }
.bloom-card__chapter {
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-antique-gold);
  margin: 0;
}
.bloom-card__title { font-size: 1.45rem; margin: 0; }
.bloom-card__type {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dusty-rose-deep);
  margin: 0.1rem 0 0.6rem;
}
.bloom-card__desc { color: var(--color-ink-soft); font-size: 0.98rem; margin: 0.3rem 0 0.8rem; }
.bloom-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-top: auto;
}
.lock-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--color-dusty-blue);
  box-shadow: 0 0 0 3px var(--color-dusty-blue-soft);
}
.bloom-card--finale {
  border-color: rgba(176, 141, 87, 0.5);
  background: linear-gradient(180deg, #fbf6ea, #f6eedd);
}
.bloom-card--finale.is-open { box-shadow: 0 16px 36px -20px rgba(176, 141, 87, 0.65); }

.overview__cta { text-align: center; margin-top: 2rem; }
.empty-note { text-align: center; color: var(--color-ink-soft); font-style: italic; }

/* =========================================================================
   Detailpagina
   ========================================================================= */
.detail { max-width: 680px; margin: 0 auto; width: 100%; }
.detail__head { text-align: center; margin-bottom: 1.5rem; }
.detail__icon { width: 80px; margin: 0 auto 0.75rem; }
.detail__chapter {
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--color-antique-gold);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}
.detail__title { font-size: 2.2rem; margin-bottom: 0.6rem; }
.type-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  background: var(--color-sage-soft);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}
.detail__actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
}
.detail__actions--center { justify-content: center; }

.prose { font-size: 1.08rem; line-height: 1.85; }
.prose p:last-child { margin-bottom: 0; }
.lead-soft { font-style: italic; color: var(--color-ink-soft); font-size: 1.1rem; text-align: center; margin-bottom: 1.25rem; }
.content-block { max-width: 60ch; margin: 0 auto; }

/* Brief op oud papier */
.letter-paper {
  position: relative;
  max-width: 60ch;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  color: #4a4032;
  background:
    radial-gradient(closest-side at 20% 15%, rgba(176, 141, 87, 0.08), transparent),
    radial-gradient(closest-side at 85% 80%, rgba(176, 141, 87, 0.08), transparent),
    linear-gradient(160deg, #f7efda 0%, var(--color-parchment) 55%, #efe4c8 100%);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    var(--shadow-soft);
  outline: 1px solid rgba(176, 141, 87, 0.35);
  outline-offset: -10px;
}
.letter-paper__intro {
  text-align: center;
  font-style: italic;
  color: var(--color-ink-soft);
  margin-bottom: 1.5rem;
}
.letter-paper__body {
  font-size: 1.12rem;
  line-height: 1.95;
  font-style: italic;
}
.letter-paper__body p:last-child { margin-bottom: 0; }

/* Cadeau-locatie */
.location-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-dusty-blue-soft);
  border-left: 3px solid var(--color-dusty-blue);
  border-radius: var(--radius-sm);
  text-align: left;
}
.location-note--inline { margin-top: 1.25rem; background: #eef3f5; }
.location-note__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  margin-bottom: 0.25rem;
}
.location-note p { margin: 0; font-size: 1.05rem; }

/* Opdracht */
.task-card {
  background: #f3f5ee;
  border: 1px dashed rgba(116, 136, 106, 0.5);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
}
.task-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  margin-bottom: 0.6rem;
}

/* Puzzel / raadsel */
.riddle {
  font-size: 1.15rem;
  line-height: 1.9;
  font-style: italic;
  text-align: center;
  color: var(--color-ink);
  padding: 0.5rem 0;
}

/* Herinnering met foto */
.memory-photo {
  margin: 0 auto 1.5rem;
  max-width: 420px;
  padding: 0.6rem 0.6rem 1.4rem;
  background: #fffdf8;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  transform: rotate(-1.2deg);
}
.memory-photo img { border-radius: 2px; }
.memory-photo--finale { transform: rotate(0); max-width: 480px; }

/* =========================================================================
   Hints
   ========================================================================= */
.hints {
  margin-top: 2.25rem;
  padding: 1.5rem;
  background: rgba(231, 210, 210, 0.28);
  border: 1px solid rgba(201, 162, 164, 0.4);
  border-radius: var(--radius-md);
  text-align: center;
}
.hints__title { font-size: 1.4rem; margin-bottom: 0.25rem; }
.hints__lead { color: var(--color-ink-soft); font-style: italic; font-size: 0.98rem; margin-bottom: 1.1rem; }
.hints__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.hint { display: flex; flex-direction: column; align-items: center; }
.hint.is-revealed {
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  text-align: left;
  width: 100%;
  animation: fade-in 0.5s ease both;
}
.hint__number {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-antique-gold);
  margin-bottom: 0.3rem;
}
.hint__text { margin: 0; }
.hint__text p:last-child { margin-bottom: 0; }

/* =========================================================================
   Finale — De Geheime Tuinkamer
   ========================================================================= */
.finale { position: relative; max-width: 680px; margin: 0 auto; text-align: center; width: 100%; }
.finale__emblem { width: 150px; margin: 0 auto 0.5rem; }
.rose-emblem--gold { filter: drop-shadow(0 6px 14px rgba(176, 141, 87, 0.4)); }
.finale__title { font-size: 2.6rem; margin-bottom: 0.5rem; }
.finale__intro { font-style: italic; font-size: 1.15rem; color: var(--color-ink-soft); max-width: 50ch; margin: 0 auto 1.5rem; }
.letter-paper--finale { margin-top: 1.5rem; text-align: left; }

/* Zacht dwarrelende blaadjes */
.finale__garland {
  position: absolute;
  inset: -10px 0 auto 0;
  height: 0;
  pointer-events: none;
}
.petal {
  position: absolute;
  top: -20px;
  width: 12px; height: 12px;
  background: var(--color-dusty-rose);
  border-radius: 50% 0 50% 50%;
  opacity: 0;
  animation: petal-fall 7s linear infinite;
}
.petal--1 { left: 12%; animation-delay: 0s; background: var(--color-dusty-rose); }
.petal--2 { left: 32%; animation-delay: 1.4s; background: var(--color-dusty-rose-soft); }
.petal--3 { left: 54%; animation-delay: 2.6s; background: var(--color-sage-soft); }
.petal--4 { left: 72%; animation-delay: 0.8s; background: var(--color-dusty-rose); }
.petal--5 { left: 88%; animation-delay: 3.4s; background: var(--color-dusty-blue-soft); }

/* =========================================================================
   Animaties
   ========================================================================= */
.fade-in { animation: fade-in 0.8s ease both; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bloom {
  0%   { transform: scale(0.6) rotate(-6deg); opacity: 0; }
  60%  { transform: scale(1.06) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes petal-fall {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  10%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(280px) rotate(220deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .petal { display: none; }
}

/* =========================================================================
   Grotere schermen
   ========================================================================= */
@media (min-width: 600px) {
  body { font-size: 1.08rem; }
  .garden-frame { padding: 1.5rem 1.5rem 3rem; }
  .site-header { flex-direction: row; justify-content: space-between; }
  .site-header__title { font-size: 1.7rem; }
  .card { padding: 2.5rem 2.25rem; }
  .garden-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .landing__title { font-size: 3.2rem; }
}

@media (min-width: 920px) {
  .garden-grid { grid-template-columns: repeat(3, 1fr); }
  .detail__title, .finale__title { font-size: 2.8rem; }
}

/* =========================================================================
   Intro — cadeau openen, felicitatie en voorwaarden
   ========================================================================= */
.gift-emblem { width: 100%; height: auto; }

/* Pagina /open/ : het cadeau gaat zachtjes open */
.open-gift { text-align: center; max-width: 560px; margin: 0 auto; }
.open-gift__scene { width: 200px; margin: 0 auto 1.25rem; }
.open-gift__svg { width: 100%; height: auto; overflow: visible; }
.open-gift__eyebrow {
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-antique-gold);
  margin-bottom: 0.3rem;
}
.open-gift__title { font-size: 2rem; margin-bottom: 0.5rem; }
.open-gift__intro { color: var(--color-ink-soft); font-style: italic; max-width: 44ch; margin: 0 auto 1.6rem; }

.open-gift__lid {
  transform-box: fill-box;
  transform-origin: center;
  animation: lid-lift 1.7s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.open-gift__card {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: card-rise 1.1s 0.95s ease both;
}
@keyframes lid-lift {
  0%   { transform: translateY(0) rotate(0); }
  100% { transform: translateY(-28px) rotate(-5deg); }
}
@keyframes card-rise {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(-4px); }
}

/* Pagina /felicitatie/ */
.message { max-width: 620px; margin: 0 auto; text-align: center; }
.message__emblem { width: 92px; margin: 0 auto 0.25rem; }
.message .letter-paper { text-align: left; margin-top: 1rem; }
.letter-paper__signoff {
  margin-top: 1.6rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-dusty-rose-deep);
}
.message__actions { margin-top: 1.85rem; }

/* Pagina /voorwaarden/ */
.terms { max-width: 560px; margin: 0 auto; }
.card--terms { position: relative; text-align: left; overflow: hidden; }
.card--terms .card__title { text-align: center; }
.terms__lead { color: var(--color-ink-soft); }
.terms__stamp {
  position: absolute; top: 18px; right: -38px;
  transform: rotate(12deg);
  background: var(--color-dusty-rose); color: #fff;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; text-align: center;
  padding: 0.45rem 2.6rem; line-height: 1.15;
  box-shadow: var(--shadow-card); opacity: 0.9;
}
.terms__list { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.terms__list li { margin-bottom: 0.55rem; }
.terms__form { text-align: center; }
.checkbox-row {
  display: flex; align-items: flex-start; gap: 0.65rem;
  text-align: left; cursor: pointer; margin-bottom: 1rem;
  background: var(--color-cream); border: 1px solid var(--color-line);
  border-radius: var(--radius-sm); padding: 0.9rem 1rem;
  transition: border-color 0.3s ease;
}
.checkbox-row:hover { border-color: var(--color-sage); }
.checkbox-row input[type="checkbox"] {
  width: 22px; height: 22px; margin-top: 2px;
  accent-color: var(--color-sage-dark); flex: 0 0 auto;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Overzicht: inleidende tekst */
.overview__lede { color: var(--color-ink-soft); max-width: 54ch; margin: 0 auto 1rem; }

/* =========================================================================
   Hulpcoupons
   ========================================================================= */
.coupon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 420px;
  margin: 1.5rem auto;
  padding: 1rem 1.25rem;
  text-align: center;
  background: rgba(245, 236, 214, 0.55);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}
.coupon-block__svg { width: 46px; height: auto; }
.coupon-block__text { margin: 0; font-size: 0.96rem; color: var(--color-ink); }
.coupon-block__text--empty { font-style: italic; color: var(--color-ink-soft); }

.coupon-disclaimer { text-align: left; margin: 0.5rem 0 1.25rem; }
.coupon-disclaimer__sub { font-weight: 600; color: var(--color-sage-dark); margin-bottom: 0.4rem; }

.card--coupon-result { text-align: center; }
.coupon-result__emblem { width: 84px; margin: 0 auto 0.5rem; }
.coupon-hint {
  margin: 1.25rem auto 1.5rem;
  padding: 1.1rem 1.3rem;
  max-width: 48ch;
  text-align: left;
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-sage);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
}
.coupon-hint p:last-child { margin-bottom: 0; }

/* =========================================================================
   Meerkeuzevraag
   ========================================================================= */
.card--question { text-align: center; }
.choices { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.choice-btn {
  font-size: 1.08rem;
  padding: 1rem 1.4rem;
  border-color: var(--color-dusty-blue);
  color: var(--color-ink);
}
.choice-btn:hover {
  background: var(--color-dusty-blue-soft);
  border-color: var(--color-dusty-blue);
  transform: translateY(-2px);
}
.card--wrong .wrong-text { text-align: left; font-style: italic; color: var(--color-ink); }
.card--correct { text-align: center; }

/* Knop op de roosdetail die naar de vraag leidt */
.question-cta {
  margin: 2rem auto 0;
  max-width: 60ch;
  padding: 1.25rem 1.4rem;
  text-align: center;
  background: var(--color-dusty-blue-soft);
  border: 1px solid rgba(159, 178, 189, 0.6);
  border-radius: var(--radius-md);
}
.question-cta p { margin: 0 0 0.85rem; font-style: italic; color: var(--color-ink); }

/* =========================================================================
   Hint-toggle, lege meldingen
   ========================================================================= */
.is-hidden { display: none !important; }
.messages:empty { display: none; }
.hint__text {
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  text-align: left;
  width: 100%;
  animation: fade-in 0.45s ease both;
}
.hint__text p:last-child { margin-bottom: 0; }
.coupon-block__hint { margin: 0; font-size: 0.9rem; font-style: italic; color: var(--color-ink-soft); }

/* =========================================================================
   Coupon-bevestiging (modal)
   ========================================================================= */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(77, 71, 62, 0.45);
  animation: fade-in 0.25s ease both;
  overflow-y: auto;
}
.modal {
  width: 100%; max-width: 480px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  margin: auto;
}
.modal__actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.75rem; }

/* =========================================================================
   Mobiele robuustheid — geen horizontale scroll, alles binnen het scherm
   ========================================================================= */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
.prose, .letter-paper__body, .locked-desc, .locked-note, .bloom-card__desc,
.coupon-hint, .hint__text, .wrong-text, .riddle, .finale__intro, .card__lead {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 480px) {
  .garden-frame { padding: 1rem 1rem 2.5rem; }
  .landing__title { font-size: 2.2rem; }
  .card { padding: 1.6rem 1.15rem; }
  .letter-paper { padding: 1.75rem 1.25rem; }
  .terms__stamp { right: -30px; padding: 0.4rem 2.2rem; font-size: 0.58rem; }
  .site-nav { gap: 1rem; }
  /* Knoppen vallen netjes onder elkaar en zijn ruim aantikbaar. */
  .btn { width: 100%; }
  .detail__actions { flex-direction: column; align-items: stretch; }
  .detail__actions--center { align-items: stretch; }
  /* Veilige ruimte onderaan, zodat de laatste knop nooit wordt afgesneden. */
  .site-main { padding-bottom: 1.75rem; }
}
