/* Hallmark · genre: playful · macrostructure: Marquee Hero (landing) · theme: studied-DNA (source: uitnodiging-kaart.jpeg)
 * enrichment: E-none (card is the hero visual) · nav: bottom tab bar (mobile) / N1 wordmark+links (desktop) · footer: Ft5 statement
 * pre-emit critique: P5 H4 E4 S5 R4 V4 · contrast: pass (40-41) · mobile: pass (34,49,50-57)
 * Deliberate DNA deviations from slop-test (the client card IS the locked design system):
 *   - gold-foil numeral uses background-clip:text (gate 2) — reproduces the card's 3D metallic "65"; one brand moment only.
 *   - script display face (Great Vibes) for "My / Birthday Party" — the card's calligraphy; roman everywhere else.
 */

/* ---------- tokens: kleur (card-DNA) ---------- */
:root {
  --color-paper:      #f7efe1;
  --color-paper-2:    #fdf8ef;
  --color-paper-3:    #ead9be;
  --color-ink:        #5a3d20;
  --color-ink-soft:   #7a5230;
  --color-muted:      #9a7a52;
  --color-gold:       #c9a24b;
  --color-gold-light: #e0c070;
  --color-gold-pale:  #f3dda0;
  --color-gold-dark:  #8c6d2f;
  --color-accent:     #c9a24b;
  --color-accent-ink: #3d2c10;   /* tekst op goud: ≥4.5:1 */
  --color-heart:      #d63a3a;
  --color-ok:         #2f6b34;
  --color-ok-bg:      #e7f2e6;
  --color-err:        #a52f2a;
  --color-err-bg:     #f8e9e7;
  --color-focus:      #8c6d2f;

  /* ---------- tokens: type (2+1) ---------- */
  --font-body:    "Nunito", system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script:  "Great Vibes", "Brush Script MT", cursive;

  /* ---------- tokens: ruimte (8pt) ---------- */
  --space-3xs: 4px;  --space-2xs: 8px;  --space-xs: 12px;  --space-sm: 16px;
  --space-md: 24px;  --space-lg: 32px;  --space-xl: 48px;  --space-2xl: 64px;  --space-3xl: 96px;

  /* ---------- tokens: motion ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0.35, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;

  /* ---------- tokens: vorm ---------- */
  --radius-sm: 8px; --radius: 14px; --radius-lg: 22px; --radius-pill: 999px;
  --shadow-soft: 0 8px 24px -12px rgba(90, 61, 32, 0.45);
  --shadow-lift: 0 14px 34px -14px rgba(90, 61, 32, 0.55);
  --border-gold: 1px solid rgba(201, 162, 75, 0.5);
  --measure: 62ch;

  /* ---------- tokens: layout ---------- */
  --tabbar-h: 60px;
  --z-sticky: 20; --z-tabbar: 30; --z-lightbox: 50; --z-toast: 60;
}

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

html, body { overflow-x: clip; }  /* gate 34: clip, niet hidden */

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

body {
  margin: 0;
  min-height: 100dvh;
  overscroll-behavior-y: none;   /* tegen rubber-band (003) */
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  background-color: var(--color-paper);
  background-image:
    radial-gradient(900px 480px at 50% -120px, var(--color-paper-2) 0%, transparent 62%),
    linear-gradient(165deg, var(--color-paper) 0%, var(--color-paper-3) 100%);
  background-attachment: fixed;
  /* ruimte voor bottom tab bar op mobiel */
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 60rem) { body { padding-bottom: 0; } }

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-style: normal; color: var(--color-ink); line-height: 1.12; margin: 0; overflow-wrap: anywhere; min-width: 0; }

a { color: var(--color-gold-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.wrap { width: 100%; max-width: 60rem; margin-inline: auto; padding-inline: max(var(--space-sm), env(safe-area-inset-left, 0px)); }
.wrap-narrow { max-width: var(--measure); }

/* ---------- typografie: script + folie-cijfer (card-DNA) ---------- */
.script { font-family: var(--font-script); font-weight: 400; color: var(--color-gold-dark); line-height: 1; }

.foil-numeral {
  font-family: var(--font-display); font-weight: 700; line-height: 0.9; margin: 0;
  background: linear-gradient(180deg, var(--color-gold-pale) 0%, var(--color-gold-light) 38%, var(--color-gold) 62%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 3px rgba(140, 109, 47, 0.35));
}
.foil-numeral sup { font-size: 0.32em; }

/* ---------- knoppen (8 states) ---------- */
.btn {
  --btn-bg: var(--color-gold); --btn-ink: var(--color-accent-ink); --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: 48px; padding: 12px 26px;
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; line-height: 1;
  color: var(--btn-ink); background: var(--btn-bg); border: 2px solid var(--btn-border);
  border-radius: var(--radius-pill); cursor: pointer; text-decoration: none; white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.btn:hover { background: var(--color-gold-light); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-gold { box-shadow: var(--shadow-soft); }
.btn-outline { --btn-bg: var(--color-paper-2); --btn-ink: var(--color-ink); --btn-border: var(--color-gold); }
.btn-outline:hover { background: #fff8e8; }
.btn-big { min-height: 56px; font-size: 1.15rem; padding: 16px 34px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: center; margin-block-start: var(--space-md); }

/* ---------- formulieren (gate 39) ---------- */
input[type="text"], textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  font-family: var(--font-body); font-size: 1rem; color: var(--color-ink);
  background: var(--color-paper-2); border: 1px solid var(--color-gold); border-radius: var(--radius);
  transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:hover, textarea:hover { border-color: var(--color-gold-light); }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-gold); }
input:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field-label { display: block; font-weight: 700; margin-block-end: 6px; color: var(--color-ink); }
.helper { min-height: 1lh; font-size: 0.86rem; color: var(--color-muted); margin-block-start: 6px; }

/* ---------- secties / panelen ---------- */
.panel {
  background: color-mix(in srgb, var(--color-paper-2) 88%, transparent);
  border: var(--border-gold); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); padding: var(--space-lg) var(--space-md);
  margin-block: var(--space-md);
}
.section-title { font-size: clamp(1.9rem, 6vw, 2.6rem); text-align: center; margin-block-end: var(--space-sm); }
.subtitle { color: var(--color-ink-soft); text-align: center; margin: 0; font-size: 1.05rem; }

/* rule ornament tussen secties (gate 9) */
.ornament { display: flex; align-items: center; gap: var(--space-sm); justify-content: center; margin-block: var(--space-lg); color: var(--color-gold); }
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 1; max-width: 120px; background: linear-gradient(90deg, transparent, var(--color-gold), transparent); }
.ornament svg { width: 22px; height: 22px; flex: none; }

/* ---------- decor: confetti + ballonnen ---------- */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.confetti { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; opacity: 0.75; animation: confetti-fall linear infinite; }
@keyframes confetti-fall { to { transform: translateY(112vh) rotate(720deg); } }
.balloon { position: fixed; bottom: -90px; width: 58px; height: 72px; border-radius: 50% 50% 48% 48% / 56% 56% 44% 44%; opacity: 0.28; z-index: 0; pointer-events: none; animation: balloon-rise linear infinite; }
.balloon::after { content: ""; position: absolute; bottom: -26px; left: 50%; width: 1.5px; height: 26px; background: rgba(140, 109, 47, 0.45); }
@keyframes balloon-rise { to { transform: translateY(-122vh); } }

main, header, footer, nav { position: relative; z-index: 1; }

/* ---------- hero (marquee: card vult de fold) ---------- */
.hero { text-align: center; padding-block: var(--space-lg) var(--space-xl); }
.hero .kicker { font-family: var(--font-script); font-size: 1.9rem; color: var(--color-gold-dark); margin: 0; }
.hero .foil-numeral { font-size: clamp(4.2rem, 20vw, 8rem); }
.hero h1 { font-family: var(--font-script); font-size: clamp(2.4rem, 9vw, 4rem); color: var(--color-gold-dark); font-weight: 400; margin-block: -0.05em 0.1em; }
.hero .lede { color: var(--color-ink-soft); font-size: clamp(1.05rem, 4vw, 1.25rem); max-width: 34ch; margin-inline: auto; }

.card-frame { margin: var(--space-md) auto 0; max-width: 400px; background: var(--color-paper-2); border: 3px solid var(--color-gold); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding: 8px; }
.card-frame img { border-radius: var(--radius); width: 100%; }

/* ---------- datum-balk (card-DNA) ---------- */
.datebar { display: flex; max-width: 460px; margin: var(--space-lg) auto; background: var(--color-paper-2); border: 2px solid var(--color-gold); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; text-align: center; }
.datebar > div { flex: 1 1 0; min-width: 0; padding: var(--space-xs) var(--space-3xs); }
.datebar > div + div { border-inline-start: 2px solid var(--color-gold); }
.datebar .d-small { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-ink-soft); font-weight: 700; }
.datebar .d-big { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--color-ink); }

/* ---------- countdown ---------- */
.countdown { text-align: center; font-weight: 700; color: var(--color-gold-dark); margin-block-end: var(--space-md); font-size: 1.02rem; }
.countdown .cd-num { display: inline-block; min-width: 2.1em; padding: 4px 7px; margin-inline: 2px; background: var(--color-paper-2); border: 1.5px solid var(--color-gold); border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }

/* ---------- info-grid (feestinfo) ---------- */
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
@media (min-width: 40rem) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.info-item { display: flex; gap: var(--space-xs); align-items: flex-start; }
.info-item .ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius); background: var(--color-paper); border: var(--border-gold); color: var(--color-gold-dark); }
.info-item .ico svg { width: 22px; height: 22px; }
.info-item h3 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-gold-dark); margin-block-end: 2px; }
.info-item p { margin: 0; line-height: 1.5; }
.info-item a { font-weight: 700; }

/* cadeutip: envelop-met-hartje (002) */
.gift-note { display: flex; gap: var(--space-sm); align-items: center; background: linear-gradient(120deg, var(--color-paper-2), #fff8e8); border: var(--border-gold); border-radius: var(--radius); padding: var(--space-sm); margin-block-start: var(--space-md); }
.gift-note .envelope { flex: none; width: 64px; height: 64px; }
.gift-note p { margin: 0; font-size: 0.98rem; }

/* ---------- gallerij: masonry (002) ---------- */
.gallery { columns: 2; column-gap: var(--space-2xs); }
@media (min-width: 40rem) { .gallery { columns: 3; } }
@media (min-width: 60rem) { .gallery { columns: 4; } }
.gallery .tile { break-inside: avoid; margin-block-end: var(--space-2xs); display: block; border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(201, 162, 75, 0.45); background: var(--color-paper-2); box-shadow: var(--shadow-soft); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.gallery .tile img { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .gallery .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
}
.gallery .tile:active { transform: translateY(0); }

.uploader-filter { display: flex; flex-wrap: wrap; gap: var(--space-2xs); justify-content: center; margin-block-end: var(--space-sm); }
.chip { min-height: 44px; padding: 10px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-gold); background: var(--color-paper-2); color: var(--color-ink); font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; cursor: pointer; touch-action: manipulation; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.chip[aria-pressed="true"] { background: var(--color-gold); color: var(--color-accent-ink); }
.chip:hover { background: var(--color-gold-light); color: var(--color-accent-ink); }

.empty-state { text-align: center; padding: var(--space-xl) var(--space-sm); color: var(--color-ink-soft); }
.empty-state .emoji { font-size: 2.4rem; }
.empty-state p { font-style: normal; margin: var(--space-2xs) 0 var(--space-sm); }

/* skeleton loading */
.skeleton { background: linear-gradient(90deg, var(--color-paper-3) 25%, #f2e6d2 50%, var(--color-paper-3) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- upload ---------- */
.dropzone { border: 3px dashed var(--color-gold); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--color-paper-2) 70%, transparent); padding: var(--space-lg) var(--space-sm); text-align: center; cursor: pointer; touch-action: manipulation; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.dropzone:hover, .dropzone.drag { background: #fff8e8; border-color: var(--color-gold-light); }
.dropzone .dz-emoji { font-size: 2.6rem; }
.dropzone p { margin: var(--space-2xs) 0 0; font-weight: 700; }
.dropzone .hint { font-weight: 400; font-size: 0.88rem; color: var(--color-ink-soft); }

.upload-list { list-style: none; margin: var(--space-sm) 0 0; padding: 0; }
.upload-list li { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-3xs); border-block-end: 1px solid rgba(201, 162, 75, 0.22); font-size: 0.94rem; }
.upload-list .fname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-list .fstatus { flex: none; font-weight: 600; font-size: 0.86rem; }
.upload-list progress { flex: none; width: 84px; height: 8px; accent-color: var(--color-gold); }
.status-done { color: var(--color-ok); }
.status-fail { color: var(--color-err); }

.msg { padding: var(--space-xs) var(--space-sm); border-radius: var(--radius); margin-block-start: var(--space-sm); font-weight: 600; }
.msg-ok { background: var(--color-ok-bg); border: 1px solid #a9cfa6; color: var(--color-ok); }
.msg-err { background: var(--color-err-bg); border: 1px solid #e0b3ae; color: var(--color-err); }

/* ---------- wensenmuur ---------- */
.wish { background: var(--color-paper-2); border: var(--border-gold); border-radius: var(--radius); padding: var(--space-sm); margin-block-end: var(--space-xs); box-shadow: var(--shadow-soft); }
.wish .who { font-weight: 800; color: var(--color-gold-dark); }
.wish .when { color: var(--color-muted); font-size: 0.82rem; }
.wish p { margin: 6px 0 0; line-height: 1.5; }

/* ---------- posts / linkwall (002) ---------- */
.post-card { display: flex; gap: var(--space-xs); align-items: center; background: var(--color-paper-2); border: var(--border-gold); border-radius: var(--radius); padding: var(--space-xs); margin-block-end: var(--space-xs); text-decoration: none; color: var(--color-ink); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); } }
.post-card .thumb { flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--color-paper-3); }
.post-card .no-thumb { flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--color-paper-3); color: var(--color-gold-dark); font-size: 1.6rem; }
.post-card .pc-body { flex: 1 1 auto; min-width: 0; }
.post-card .pc-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-card .pc-meta { font-size: 0.84rem; color: var(--color-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-card .pc-open { flex: none; color: var(--color-gold-dark); font-size: 1.3rem; }

/* ---------- per-foto ---------- */
.photo-page { text-align: center; padding-block: var(--space-md) var(--space-xl); }
.photo-page img.full { max-width: 100%; max-height: 74dvh; margin-inline: auto; border-radius: var(--radius-lg); border: 3px solid var(--color-gold); box-shadow: var(--shadow-lift); background: var(--color-paper-2); }
.photo-meta { margin: var(--space-sm) 0; color: var(--color-ink-soft); }
.share-url { word-break: break-all; font-size: 0.9rem; color: var(--color-muted); margin-block-start: var(--space-xs); }

/* ---------- lightbox ---------- */
#lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); display: none; place-items: center; background: rgba(30, 20, 8, 0.94); }
#lightbox.open { display: grid; }
#lightbox img { max-width: 96vw; max-height: 88dvh; border-radius: var(--radius); }
#lightbox .lb-close { position: absolute; top: calc(var(--space-sm) + env(safe-area-inset-top, 0px)); right: var(--space-sm); width: 48px; height: 48px; font-size: 1.8rem; color: #fff; background: rgba(0,0,0,0.35); border: none; border-radius: var(--radius-pill); cursor: pointer; }

/* ---------- TV-modus ---------- */

/* ---------- QR ---------- */
.qr-frame { background: var(--color-paper-2); border: 3px solid var(--color-gold); border-radius: var(--radius-lg); padding: var(--space-md); display: inline-block; box-shadow: var(--shadow-lift); }
.qr-frame img { width: min(72vw, 320px); height: auto; }
.qr-note { max-width: 52ch; margin: var(--space-md) auto 0; font-size: 0.92rem; line-height: 1.6; color: var(--color-ink-soft); }
.qr-warn { background: var(--color-err-bg); border: 1px solid #e0b3ae; color: var(--color-err); }

/* ---------- desktop top-nav (verborgen op mobiel, tab bar i.p.v.) ---------- */
.topnav { display: none; }
@media (min-width: 60rem) {
  .topnav { display: flex; gap: var(--space-3xs); justify-content: center; flex-wrap: wrap; padding-block: var(--space-sm) 0; }
  .topnav a { color: var(--color-ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 10px 16px; border-radius: var(--radius-pill); border: 1.5px solid transparent; white-space: nowrap; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
  .topnav a:hover, .topnav a[aria-current="page"] { border-color: var(--color-gold); background: color-mix(in srgb, var(--color-paper-2) 70%, transparent); }
}

/* ---------- bottom tab bar (mobiel app-gevoel, 003) ---------- */
.tabbar { position: fixed; z-index: var(--z-tabbar); inset-inline: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: color-mix(in srgb, var(--color-paper-2) 96%, transparent); backdrop-filter: blur(8px); border-block-start: 1px solid rgba(201, 162, 75, 0.5); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; text-decoration: none; color: var(--color-muted); font-size: 0.68rem; font-weight: 700; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: color var(--dur-short) var(--ease-out); }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--color-gold-dark); }
.tabbar a.tab-upload { position: relative; }
.tabbar a.tab-upload .fab { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -22px; border-radius: var(--radius-pill); background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold)); color: var(--color-accent-ink); box-shadow: var(--shadow-lift); border: 3px solid var(--color-paper-2); }
.tabbar a.tab-upload .fab svg { width: 26px; height: 26px; }
.tabbar a.tab-upload span { margin-top: 2px; }
@media (min-width: 60rem) { .tabbar { display: none; } }

/* ---------- footer (Ft5 statement) ---------- */
footer { text-align: center; padding: var(--space-xl) var(--space-sm) var(--space-lg); color: var(--color-ink-soft); font-size: 0.92rem; }
footer .heart { color: var(--color-heart); }
footer .foot-rule { display: flex; align-items: center; gap: var(--space-xs); justify-content: center; margin-block-end: var(--space-sm); color: var(--color-gold); }
footer .foot-rule::before, footer .foot-rule::after { content: ""; height: 1px; width: 40px; background: var(--color-gold); opacity: 0.5; }

/* ---------- toast (003: vibrate + bevestiging bij onzichtbaar effect) ---------- */
#toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(var(--tabbar-h) + var(--space-md) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); font-weight: 700; box-shadow: var(--shadow-lift); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 60rem) { #toast { bottom: var(--space-md); } }

/* ---------- feest-modus vs aanloop-modus (002) ---------- */
body[data-mode="party"] .buildup-only { display: none !important; }
body[data-mode="buildup"] .party-only { display: none !important; }
.party-hero { text-align: center; padding-block: var(--space-lg); }
.party-hero .foil-numeral { font-size: clamp(3.4rem, 15vw, 6rem); }

/* install-prompt (003) */
.install-banner { display: flex; align-items: center; gap: var(--space-xs); background: linear-gradient(120deg, var(--color-paper-2), #fff8e8); border: var(--border-gold); border-radius: var(--radius); padding: var(--space-xs) var(--space-sm); margin-block: var(--space-sm); }
.install-banner p { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 0.92rem; }
.install-banner[hidden] { display: none; }

/* ---------- reveal (één georkestreerde entrance, IO) ---------- */
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.in { opacity: 1; transform: none; transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }

/* ---------- confetti-burst bij geslaagde upload ---------- */
.burst { position: fixed; z-index: var(--z-toast); width: 10px; height: 14px; border-radius: 2px; pointer-events: none; will-change: transform, opacity; }

/* ---------- reduced motion (gate 27) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 150ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; scroll-behavior: auto !important; }
  .confetti-layer, .balloon { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- beheer (organizer-only UI) ---------- */
.tabstrip { display: flex; gap: var(--space-2xs); flex-wrap: wrap; margin-block: var(--space-sm) var(--space-xs); }
.admin-h { font-size: 1.6rem; margin-block: var(--space-md) var(--space-2xs); }
.queue-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs);
  background: var(--color-paper-2); border: var(--border-gold); border-radius: var(--radius);
  padding: var(--space-sm); margin-block-end: var(--space-xs);
}
@media (min-width: 40rem) { .queue-card { grid-template-columns: 140px minmax(0, 1fr); } }
.queue-thumb { width: 100%; max-height: 140px; object-fit: cover; border-radius: var(--radius-sm); border: var(--border-gold); }
.queue-thumb.queue-link { display: grid; place-items: center; background: var(--color-paper); font-size: 1.6rem; min-height: 84px; }
.queue-meta { margin: 0; font-size: 0.86rem; color: var(--color-ink-soft); }
.queue-caption { margin: 4px 0; overflow-wrap: anywhere; }
.queue-url { font-size: 0.86rem; overflow-wrap: anywhere; }
.queue-status { display: inline-block; margin: 4px 0 0; padding: 2px 10px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 700; border: 1px solid var(--color-gold); }
.status-pending { background: #fff3d6; color: var(--color-gold-dark); }
.status-approved { background: var(--color-ok-bg); color: var(--color-ok); }
.status-rejected, .status-takedown { background: var(--color-err-bg); color: var(--color-err); }
.row-actions { display: flex; gap: var(--space-2xs); flex-wrap: wrap; margin-top: var(--space-2xs); }
.embed-preview { margin-top: var(--space-2xs); border: var(--border-gold); border-radius: var(--radius-sm); padding: var(--space-2xs); overflow-x: clip; }
.album-strip { display: flex; gap: 4px; overflow-x: auto; margin-block: var(--space-2xs); }
.album-strip img { height: 72px; border-radius: var(--radius-sm); border: 1px solid var(--color-gold); }
.preview-btn { min-height: 44px; padding: 8px 16px; font-size: 0.9rem; }
