:root {
  --ink: #170c0a;
  --ink-2: #22120f;
  --wine: #3d1616;
  --wine-2: #5a1f1c;
  --cream: #f4e9d8;
  --cream-2: #e6d5bb;
  --muted: #b29e86;
  --dim: #7d6b5a;
  --brass: #d9a94f;
  --brass-2: #f3cd7d;
  --coral: #ec6a4c;
  --sage: #8fb08a;
  --line: rgba(244, 233, 216, 0.12);
  --line-2: rgba(244, 233, 216, 0.2);
  --card: rgba(36, 18, 15, 0.72);
  --radius: 18px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Instrument Sans', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--cream);
  background:
    radial-gradient(120% 70% at 85% -10%, rgba(217, 169, 79, 0.18), transparent 55%),
    radial-gradient(90% 60% at -10% 20%, rgba(90, 31, 28, 0.85), transparent 60%),
    radial-gradient(80% 50% at 50% 110%, rgba(61, 22, 22, 0.9), transparent 70%),
    var(--ink);
  background-attachment: fixed;
}
body.noscroll { overflow: hidden; }

.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100; opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -1%); }
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brass-2); }
img { display: block; }
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 2px; }

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

/* ---------- knoppen ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.7em 1.15em;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  color: var(--cream);
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn:hover { border-color: var(--brass); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(180deg, var(--brass-2), var(--brass));
  border-color: transparent;
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(217, 169, 79, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: rgba(244, 233, 216, 0.05); }
.btn.danger:hover { border-color: var(--coral); color: var(--coral); }
.btn.small { padding: 0.4em 0.8em; font-size: 0.85rem; }
.btn.big { padding: 0.95em 1.6em; font-size: 1.05rem; }
.btn.big span { font-size: 1.3em; line-height: 0; }

.link { background: none; border: 0; padding: 0; color: var(--brass-2); text-decoration: underline; text-underline-offset: 3px; }

.icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(244, 233, 216, 0.04);
}
.icon svg { width: 18px; height: 18px; }

/* ---------- gastenpagina ---------- */

.shell { max-width: 640px; margin: 0 auto; padding: 0 16px 140px; position: relative; }

.hero { position: relative; padding: 56px 4px 22px; overflow: visible; }
/* De plaat: .vinyl staat stil (schaduw + lichtglans), .vinyl-disc draait (groeven, foto's, label). */
.vinyl {
  position: absolute; top: 18px; right: -70px;
  width: 250px; aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  opacity: 0.92;
}
.vinyl-disc {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: repeating-radial-gradient(circle, #120807 0 2px, #1d0f0c 2px 3.5px), #120807;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: spin 9s linear infinite;
}
.vinyl::after {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 20deg, transparent 0 12%, rgba(255, 255, 255, 0.11) 16%, transparent 22% 60%, rgba(255, 255, 255, 0.08) 66%, transparent 72%);
}
.vinyl-label {
  position: absolute; inset: 32%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-2), var(--brass) 60%, #a77a2d);
  display: grid; place-items: center;
  color: var(--wine); font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.6rem;
}
.vinyl-label::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.label-print { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.label-print text {
  font-family: var(--body); font-size: 5.6px; font-weight: 700; font-style: normal; fill: var(--wine);
  paint-order: stroke; stroke: rgba(243, 205, 125, 0.55); stroke-width: 0.7px;
}
.label-ring { fill: none; stroke: rgba(61, 22, 22, 0.4); stroke-width: 0.6; }
.label-num { position: absolute; top: 17%; line-height: 1; font-size: 1.5rem; }
.label-sub {
  position: absolute; bottom: 25%; line-height: 1;
  font-family: var(--body); font-style: normal; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase;
}
/* Picture disc: de foto schijnt door het gouden label heen. */
.vinyl-label.see-through {
  background: radial-gradient(circle at 35% 30%, rgba(243, 205, 125, 0.5), rgba(217, 169, 79, 0.38) 60%, rgba(167, 122, 45, 0.5));
}
.vinyl-label.see-through .label-num { font-size: 1.65rem; text-shadow: 0 0 8px rgba(243, 205, 125, 0.95), 0 0 2px rgba(243, 205, 125, 0.9); }
.vinyl-label.see-through .label-sub { text-shadow: 0 0 6px rgba(243, 205, 125, 1); }
.vinyl-label.see-through .label-print text { stroke: rgba(243, 205, 125, 0.85); stroke-width: 1.1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Foto's op de plaat zelf: draaien mee, met de groeven en glans erbovenop. Het label met "60" blijft. */
.vinyl.with-photo { width: 262px; right: -66px; opacity: 1; }
.hero-title, .hero-sub { text-shadow: 0 1px 10px rgba(10, 4, 3, 0.9), 0 0 2px rgba(10, 4, 3, 0.8); }
.vinyl-photos { position: absolute; inset: 0; z-index: 0; }
.vinyl-photos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) brightness(0.8) contrast(1.05);
  opacity: 0; transition: opacity 1.4s ease;
}
.vinyl-photos img.on { opacity: 1; }
.vinyl-grooves {
  position: absolute; inset: 0; z-index: 1; border-radius: 50%;
  background:
    /* fijne groeven */
    repeating-radial-gradient(circle, rgba(10, 4, 3, 0.42) 0 1px, rgba(10, 4, 3, 0) 1px 3px),
    /* donkere rand, lege zone rond het label en een paar bredere tussenruimtes zoals tussen nummers */
    /* (closest-side: 100% = rand van de plaat; het label loopt tot 36%) */
    radial-gradient(circle closest-side, transparent 0 35%, rgba(10, 4, 3, 0.88) 35.5% 42%, transparent 42.5% 61%,
      rgba(10, 4, 3, 0.65) 61.3% 62.3%, transparent 62.6% 79%, rgba(10, 4, 3, 0.65) 79.3% 80.3%, transparent 80.6% 95%,
      rgba(10, 4, 3, 0.92) 96% 100%),
    /* lichte vignet zodat het als een donkere plaat blijft lezen */
    radial-gradient(circle closest-side, rgba(10, 4, 3, 0) 45%, rgba(10, 4, 3, 0.4) 100%);
}
.vinyl-disc .vinyl-label { z-index: 2; box-shadow: 0 0 0 2px rgba(10, 4, 3, 0.6); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin: 14px 0; }
.photo-grid figure { position: relative; margin: 0; aspect-ratio: 1; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px var(--brass); }
.photo-grid button { position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--coral); color: var(--ink); font-weight: 800; }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Affiche: "Het feest van Geert" en een gedrukte 60. */
.hero-kicker {
  position: relative; margin: 0 0 2px;
  font-family: var(--display); font-size: 1.15rem; font-weight: 400; font-style: italic; color: var(--cream-2);
  animation: rise 0.9s var(--ease) both;
}
.hero-kicker em { font-weight: 700; color: var(--brass-2); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.hero-number {
  position: relative; width: max-content;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(6.5rem, 30vw, 10rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  color: var(--brass-2);
  /* tweekleurendruk die net niet op elkaar valt, zoals een oude affiche */
  text-shadow: 0.045em 0.045em 0 var(--coral), 0.09em 0.09em 0 rgba(10, 4, 3, 0.55);
  animation: rise 0.9s 0.05s var(--ease) both;
}
.hero-title {
  position: relative; margin: 10px 0 6px;
  font-family: var(--display); font-weight: 500; font-style: italic; font-size: 2.2rem; line-height: 1.05;
  font-variation-settings: 'SOFT' 100, 'opsz' 72;
  animation: rise 0.9s 0.12s var(--ease) both;
}
.hero-sub { position: relative; margin: 0; max-width: 26ch; color: var(--cream-2); animation: rise 0.9s 0.2s var(--ease) both; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.reveal { animation: rise 0.8s 0.28s var(--ease) both; }

/* Toegangsbewijs: crème papier met perforatie en inkepingen. */
.ticket {
  --paper: #f3e6cf;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 6px 0 22px;
  color: var(--ink); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
}
.ticket > div {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.45), transparent 50%),
    repeating-linear-gradient(115deg, rgba(120, 80, 40, 0.025) 0 2px, transparent 2px 5px),
    var(--paper);
}
/* Inkepingen boven- en onderaan de perforatie, zoals bij een echt ticket. */
.ticket-main {
  padding: 16px 18px 16px 20px; border-radius: 14px 0 0 14px;
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  -webkit-mask:
    radial-gradient(circle 11px at 100% 0, transparent 10.5px, #000 11px) top / 100% 51% no-repeat,
    radial-gradient(circle 11px at 100% 100%, transparent 10.5px, #000 11px) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 11px at 100% 0, transparent 10.5px, #000 11px) top / 100% 51% no-repeat,
    radial-gradient(circle 11px at 100% 100%, transparent 10.5px, #000 11px) bottom / 100% 51% no-repeat;
}
.ticket-stub {
  position: relative; padding: 14px 16px; border-radius: 0 14px 14px 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
  border-left: 2px dashed rgba(61, 22, 22, 0.28);
  -webkit-mask:
    radial-gradient(circle 11px at 0 0, transparent 10.5px, #000 11px) top / 100% 51% no-repeat,
    radial-gradient(circle 11px at 0 100%, transparent 10.5px, #000 11px) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 11px at 0 0, transparent 10.5px, #000 11px) top / 100% 51% no-repeat,
    radial-gradient(circle 11px at 0 100%, transparent 10.5px, #000 11px) bottom / 100% 51% no-repeat;
}
.ticket-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wine-2); }
.ticket-name {
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.7rem; line-height: 1.1;
  font-variation-settings: 'SOFT' 100, 'WONK' 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ticket-meta { font-size: 0.82rem; color: #6a5140; }
.ticket .link { color: var(--wine); font-weight: 600; font-size: 0.86rem; }

.ticket-join h2 { margin: 2px 0 10px; font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; }
.ticket-join p { margin: 10px 0 0; font-size: 0.82rem; color: #6a5140; }
.ticket-line { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid rgba(61, 22, 22, 0.35); }
.ticket-line span { font-family: var(--display); font-style: italic; color: var(--wine-2); }
.ticket .ticket-line input {
  flex: 1; padding: 6px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--ink); width: 100%; min-width: 0;
}
.ticket-join .btn.stamp { padding: 0.75em 0.85em; }
@media (max-width: 440px) { .ticket-join .ticket-stub { padding: 12px 10px; } }
.ticket .ticket-line input::placeholder { color: rgba(61, 22, 22, 0.35); }
.ticket-line:focus-within { border-bottom-color: var(--coral); }
.btn.stamp {
  padding: 0.8em 1.1em; border-radius: 10px; border: 2px solid var(--wine);
  background: var(--wine); color: var(--paper, #f3e6cf); font-weight: 700; transform: rotate(-4deg);
  box-shadow: 0 6px 14px -6px rgba(61, 22, 22, 0.6);
}
.btn.stamp:hover { background: var(--wine-2); border-color: var(--wine-2); }
.btn.stamp:active { transform: rotate(-4deg) scale(0.96); }
.ticket-join .ticket-stub { align-items: center; padding: 14px; }

.notice {
  margin: 0 0 18px; padding: 12px 16px; border-radius: 14px;
  border: 1px dashed var(--line-2); color: var(--cream-2); background: rgba(244, 233, 216, 0.04);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(10px);
}

input[type='text'], input[type='search'], input[type='number'], input:not([type]), select, textarea {
  padding: 0.75em 1em;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(10, 5, 4, 0.5);
  color: var(--cream);
  min-width: 0;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(217, 169, 79, 0.18); }

/* momenten-tabs als platenkanten */
.sides {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px 8px; padding: 4px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: none;
}
.sides::-webkit-scrollbar { display: none; }
.side {
  flex: 0 0 auto; scroll-snap-align: start;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 7px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(244, 233, 216, 0.04);
  text-align: left;
  transition: background 0.25s, border-color 0.25s, transform 0.2s var(--ease);
}
.side:active { transform: scale(0.97); }
.side-disc {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: repeating-radial-gradient(circle, #120807 0 1.5px, #24130f 1.5px 3px);
  box-shadow: inset 0 0 0 9px #1a0d0b; font-size: 1rem;
}
.side-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; }
.side-text small { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.side.active { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.side.active .side-text small { color: var(--wine-2); }
.side.active .side-disc { box-shadow: inset 0 0 0 9px var(--brass), 0 0 0 3px rgba(217, 169, 79, 0.25); }
.side.is-live .side-text small::after { content: ' · live'; color: var(--coral); }

.moment-head { display: flex; gap: 16px; align-items: flex-start; padding: 18px 4px 4px; }
.moment-side {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; margin-top: 4px; border-radius: 50%;
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.7rem; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--m) 70%, white), var(--m) 70%);
  box-shadow: 0 0 0 5px #1a0d0b, 0 0 0 6px color-mix(in srgb, var(--m) 50%, transparent), 0 10px 24px -8px #000;
}
.moment-head h2 { font-family: var(--display); font-weight: 600; font-size: 1.9rem; line-height: 1.05; margin: 2px 0 0; font-variation-settings: 'SOFT' 80; }
.moment-emoji { font-size: 0.8em; }
.moment-head p { margin: 6px 0 0; color: var(--cream-2); }

.meter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 14px 4px 0; font-size: 0.86rem; color: var(--muted); }
.meter b { color: var(--cream); font-weight: 700; }
.hearts { display: flex; gap: 3px; }
.hearts i { font-style: normal; font-size: 0.95rem; line-height: 1; color: var(--coral); transition: color 0.3s, transform 0.3s var(--ease); }
.hearts i.used { color: rgba(244, 233, 216, 0.16); transform: scale(0.85); }
.meter .bar {
  display: block; flex: 1 1 100%; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(244, 233, 216, 0.16) var(--p), var(--coral) var(--p));
}

.section-label {
  display: flex; align-items: baseline; gap: 10px;
  margin: 26px 4px 6px; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.15rem;
  color: var(--m, var(--brass-2)); font-variation-settings: 'SOFT' 100;
}
.section-label::after { content: ''; flex: 1; height: 1px; align-self: center; background: var(--line); }
.section-label em { order: 2; font-family: var(--body); font-style: normal; font-weight: 500; font-size: 0.8rem; color: var(--dim); }

.tracks { list-style: none; margin: 0; padding: 0; }
.track {
  display: grid; grid-template-columns: 26px 52px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 6px; border-bottom: 1px solid var(--line);
  animation: rise 0.55s calc(var(--i, 0) * 35ms) var(--ease) both;
}
.track:last-child { border-bottom: 0; }
@media (max-width: 440px) {
  .tracks:not(.results) .track { grid-template-columns: 24px 44px 1fr auto; gap: 9px; padding-inline: 2px; }
  .track .cover { width: 44px; height: 44px; }
  .track .num { font-size: 0.82rem; }
  .vote { min-width: 52px; padding: 0 9px; }
  .play { width: 36px; height: 36px; }
}
/* Tracknummers zoals op de achterkant van een hoes: A1, A2… */
.track .num { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 0.92rem; color: var(--dim); text-align: right; font-variant-numeric: tabular-nums; }
.dur { margin-left: 6px; font-size: 0.78rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.dur::before { content: '·'; margin-right: 6px; }
.cover { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--wine); box-shadow: 0 6px 16px -8px #000; }
.meta { min-width: 0; display: flex; flex-direction: column; }
.meta strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta > span { color: var(--muted); font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag {
  font-style: normal; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: rgba(236, 106, 76, 0.16); color: #ffb4a2;
}
.tag.soft { background: rgba(244, 233, 216, 0.07); color: var(--muted); }
.tag.gold { background: rgba(217, 169, 79, 0.16); color: var(--brass-2); }
.track.pending { opacity: 0.75; }
.track.playing .num { color: var(--coral); }
.track.playing .num::before { content: '♪'; font-style: normal; }
.track.playing .num span { display: none; }

.actions { display: flex; align-items: center; gap: 8px; }
.play {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; transition: background 0.2s, border-color 0.2s;
}
.play svg { width: 15px; height: 15px; }
.play:hover, .play.on { border-color: var(--brass); background: rgba(217, 169, 79, 0.12); }

.vote {
  display: inline-flex; align-items: center; gap: 6px; min-width: 64px; justify-content: center;
  height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.vote svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.vote:hover { border-color: var(--coral); }
.vote.on { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.vote.on svg { fill: currentColor; }
.vote.pop svg { animation: pop 0.45s var(--ease); }
.vote:disabled { opacity: 0.5; cursor: default; }
@keyframes pop { 40% { transform: scale(1.45) rotate(-8deg); } }

.embed { grid-column: 1 / -1; margin-top: 4px; border-radius: 12px; overflow: hidden; animation: rise 0.35s var(--ease) both; }
.embed iframe { display: block; width: 100%; height: 80px; border: 0; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 36px 12px 24px; color: var(--muted); }
.empty p { font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--cream); margin: 8px 0 0; }
.empty > span:not(.empty-disc) { margin-bottom: 12px; }
.empty-disc {
  width: 74px; height: 74px; border-radius: 50%; opacity: 0.85;
  background:
    radial-gradient(circle, var(--ink) 0 3px, var(--m, var(--brass)) 3.5px 15px, transparent 15.5px),
    repeating-radial-gradient(circle, #120807 0 1.5px, #24130f 1.5px 3px);
  box-shadow: 0 10px 24px -10px #000;
  animation: spin 6s linear infinite;
}

/* Afsluiter onderaan de pagina */
.signoff { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 48px 0 12px; text-align: center; color: var(--muted); }
.signoff p { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.05rem; line-height: 1.4; }
.signoff em { color: var(--brass-2); font-weight: 600; }
.signoff p span { font-family: var(--body); font-style: normal; font-size: 0.8rem; color: var(--dim); }
.signoff-disc {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, var(--ink) 0 1.5px, var(--brass) 2px 7px, transparent 7.5px), repeating-radial-gradient(circle, #120807 0 1px, #2a1611 1px 2px);
  animation: spin 4s linear infinite;
}

/* Confetti */
.confetti { position: fixed; z-index: 400; width: 0; height: 0; pointer-events: none; }
.confetti i {
  position: absolute; left: -4px; top: -6px; width: 8px; height: 12px; border-radius: 2px;
  animation: confetti-burst 1.25s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.confetti i.dot { width: 8px; height: 8px; border-radius: 50%; }
.confetti i.strip { width: 4px; height: 16px; }
@keyframes confetti-burst {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  55% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * 0.6)); opacity: 1; }
  100% { transform: translate(calc(var(--dx) * 1.15), calc(var(--dy) + var(--fall))) rotate(var(--r)); opacity: 0; }
}

/* Feestlichtjes in de verte: zacht, traag, warm */
body.guest::before {
  content: ''; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 196, 110, 0.13) 0 3%, transparent 7%),
    radial-gradient(circle at 82% 62%, rgba(236, 106, 76, 0.12) 0 4%, transparent 9%),
    radial-gradient(circle at 30% 85%, rgba(169, 163, 240, 0.09) 0 3%, transparent 8%),
    radial-gradient(circle at 70% 18%, rgba(143, 193, 169, 0.08) 0 2.5%, transparent 6%),
    radial-gradient(circle at 50% 50%, rgba(255, 196, 110, 0.06) 0 5%, transparent 12%);
  filter: blur(6px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(3%, -4%) scale(1.06); } }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(23, 12, 10, 0.92) 45%);
  pointer-events: none;
}
.dock .btn { pointer-events: auto; }

/* live-balk */
.live-bar {
  position: sticky; top: 0; z-index: 30; margin: 0 -16px;
  background: rgba(23, 12, 10, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.live-inner {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 16px; border: 0; background: none; text-align: left;
}
.live-inner img { width: 34px; height: 34px; border-radius: 6px; }
.live-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.live-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; color: var(--coral); text-transform: uppercase; }
.live-track { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-track span { color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); flex: none; box-shadow: 0 0 0 0 rgba(236, 106, 76, 0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(236, 106, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(236, 106, 76, 0); } }
.live-progress { display: block; height: 2px; background: linear-gradient(90deg, var(--coral) var(--p), transparent var(--p)); }

.upnext { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(236, 106, 76, 0.08); border: 1px solid rgba(236, 106, 76, 0.25); }
.upnext h3 { margin: 0 0 6px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.upnext ol { margin: 0; padding-left: 1.2em; color: var(--cream-2); font-size: 0.92rem; }
.upnext li span { color: var(--muted); }

/* bottom sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.backdrop { position: absolute; inset: 0; background: rgba(8, 3, 2, 0.6); opacity: 0; transition: opacity 0.3s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 680px;
  height: min(88vh, 860px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, #2a1512, var(--ink-2));
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: 26px 26px 0 0;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 0.42s var(--ease);
  box-shadow: 0 -30px 80px -20px #000;
}
.sheet::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 12px; }
.sheet-wrap.open .backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet header small { color: var(--dim); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.sheet header h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.seg { display: flex; gap: 4px; padding: 4px; margin: 14px 0 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.seg button { flex: 1; padding: 0.55em 0.8em; border-radius: 999px; border: 0; background: none; font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.seg button.on { background: var(--cream); color: var(--ink); }
.sheet .search { width: 100%; }
.sheet .hint { margin: 8px 4px 4px; font-size: 0.82rem; color: var(--dim); min-height: 1.2em; }
.sheet .results { overflow-y: auto; flex: 1; margin: 0 -8px; padding: 0 8px; overscroll-behavior: contain; }
.sheet .track { grid-template-columns: 52px 1fr auto; }
.propose { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--brass); background: transparent; color: var(--brass-2); font-weight: 700; font-size: 0.85rem; }
.propose.done { border-color: var(--sage); color: var(--sage); }

.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 14px;
  background: var(--cream); color: var(--ink); font-weight: 600; font-size: 0.92rem;
  width: max-content; box-shadow: 0 20px 50px -15px #000; transition: opacity 0.25s, transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--coral); }

/* Laden = een draaiend plaatje */
.spinner {
  width: 30px; height: 30px; margin: 30px auto; border-radius: 50%;
  background: radial-gradient(circle, var(--ink) 0 1.5px, var(--brass) 2px 6px, transparent 6.5px), repeating-radial-gradient(circle, #120807 0 1px, #2a1611 1px 2px);
  box-shadow: 0 0 0 1px var(--line);
  animation: spin 0.9s linear infinite;
}

/* ---------- beheer ---------- */

body.admin .grain { opacity: 0.06; }
.admin-shell { max-width: 1120px; margin: 0 auto; padding: 0 20px 80px; }
/* Als app op het beginscherm: niet onder de statusbalk van de iPhone schuiven. */
body.admin { padding-top: env(safe-area-inset-top); }
.steps { margin: 6px 0 0; padding-left: 1.3em; color: var(--cream-2); line-height: 1.7; }
@media (max-width: 640px) { .admin-shell { padding: 0 12px 60px; } .admin .card { padding: 16px; } }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand strong { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.brand small { color: var(--brass); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.7rem; font-weight: 700; }
.mini-vinyl { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, var(--brass) 0 20%, transparent 21%), repeating-radial-gradient(circle, #120807 0 1.5px, #26140f 1.5px 3px); animation: spin 6s linear infinite; }
.who { color: var(--muted); font-size: 0.9rem; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tabs button { flex: none; padding: 0.55em 1em; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--muted); font-weight: 600; }
.tabs button:hover { color: var(--cream); }
.tabs button.on { background: var(--cream); color: var(--ink); }
[hidden] { display: none !important; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 0.72rem; }

/* minmax(0, 1fr): inhoud mag een paneel nooit breder duwen dan het scherm */
.panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; animation: rise 0.45s var(--ease) both; }
.panel > *, .grid-2 > *, .card { min-width: 0; }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: start; }
.card h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 1.35rem; }
.card > p.muted { margin: 0 0 16px; font-size: 0.92rem; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 0.82rem; font-weight: 600; color: var(--cream-2); }
.field small { color: var(--dim); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1 1 200px; min-width: 0; }
select { max-width: 100%; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.switch div { display: grid; }
.switch small { color: var(--dim); }
.switch input { appearance: none; flex: none; width: 46px; height: 26px; border-radius: 999px; background: rgba(244, 233, 216, 0.15); position: relative; cursor: pointer; transition: background 0.2s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); transition: transform 0.25s var(--ease); }
.switch input:checked { background: var(--brass); }
.switch input:checked::after { transform: translateX(20px); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 14px; border-radius: 14px; background: rgba(244, 233, 216, 0.04); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--brass-2); line-height: 1; }
.stat span { font-size: 0.8rem; color: var(--muted); }

.qr { width: 180px; border-radius: 12px; background: var(--cream); padding: 6px; }
.share { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.share code { display: block; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); word-break: break-all; font-size: 0.88rem; margin-bottom: 10px; }

.list { display: grid; gap: 0; }
.list-row { display: grid; grid-template-columns: 30px 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .cover { width: 44px; height: 44px; border-radius: 6px; }
.list-row .rank { font-family: var(--display); font-style: italic; color: var(--dim); text-align: right; }
.list-row .meta small { color: var(--dim); font-size: 0.78rem; }
.list-row.compact { grid-template-columns: 44px minmax(0, 1fr) auto; }
/* Op een gsm: titel naast de hoes, de knoppen (momenten, goedkeuren…) op een eigen regel eronder. */
@media (max-width: 640px) {
  .list-row.stack { grid-template-columns: 44px minmax(0, 1fr); row-gap: 8px; }
  .list-row.stack > :last-child { grid-column: 1 / -1; justify-content: flex-start !important; }
  .list-row.stack > .row { flex-wrap: nowrap; align-items: flex-start; }
  .list-row.stack .chips { flex: 1; min-width: 0; justify-content: flex-start; }
}

.moment-edit { display: grid; grid-template-columns: 60px 1fr 1.6fr 110px auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.moment-edit input { width: 100%; }
.moment-edit .emoji { text-align: center; font-size: 1.2rem; padding: 0.5em; }
@media (max-width: 760px) { .moment-edit { grid-template-columns: 60px 1fr; } .moment-edit > :nth-child(n + 3) { grid-column: 1 / -1; } }

.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip { padding: 0.35em 0.75em; border-radius: 999px; border: 1px solid var(--line-2); background: none; font-size: 0.82rem; font-weight: 600; color: var(--muted); transition: all 0.15s; }
.chip:hover { border-color: var(--brass); color: var(--cream); }
.chip.on { background: var(--brass); border-color: var(--brass); color: var(--ink); }

.star { background: none; border: 0; font-size: 1.2rem; color: var(--dim); padding: 4px; }
.star.on { color: var(--brass-2); }

.playlist-pick { display: grid; grid-template-columns: auto 40px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.playlist-pick img, .playlist-pick .ph { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--wine); }
.playlist-pick.disabled { opacity: 0.45; }
.playlist-pick input { width: 18px; height: 18px; accent-color: var(--brass); }
.scroll { max-height: 440px; overflow-y: auto; padding-right: 6px; }

.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.now { display: flex; gap: 16px; align-items: center; }
.now img { width: 96px; height: 96px; border-radius: 10px; box-shadow: 0 12px 30px -10px #000; }
.now strong { display: block; font-family: var(--display); font-size: 1.4rem; font-weight: 600; }
.progress { height: 4px; border-radius: 4px; margin-top: 10px; background: linear-gradient(90deg, var(--coral) var(--p), rgba(244, 233, 216, 0.12) var(--p)); }

.login { max-width: 520px; margin: 12vh auto 0; text-align: center; }
.login .hero-number { font-size: 7rem; }
.login ol { text-align: left; color: var(--cream-2); line-height: 1.7; }
.login code { background: rgba(0, 0, 0, 0.35); padding: 2px 6px; border-radius: 6px; font-size: 0.85em; word-break: break-all; }
.login .hero-number { margin: 0 auto; }
.login-options { display: grid; gap: 14px; margin-top: 22px; text-align: left; }
.login-options > * { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.login-options h2 { margin: 0 0 4px; font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.login-options p { margin: 0 0 12px; font-size: 0.9rem; }
.login-options form { display: grid; gap: 10px; }
.waiting { display: grid; justify-items: center; gap: 10px; margin-top: 22px; }
.waiting .spinner { margin: 0; }
.waiting p { margin: 0; color: var(--cream-2); }
.error-box { margin: 16px 0; padding: 12px 16px; border-radius: 12px; background: rgba(236, 106, 76, 0.15); border: 1px solid rgba(236, 106, 76, 0.4); color: #ffc4b5; text-align: left; }

/* ---------- momentkleuren ---------- */

.sides-label { margin: 0 4px 8px; font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--muted); }
.side { --m: var(--brass); }
.side-disc { box-shadow: inset 0 0 0 9px #1a0d0b, 0 0 0 2px var(--m); }
.side.active { background: var(--m); border-color: var(--m); color: var(--ink); }
.side.active .side-text small { color: rgba(23, 12, 10, 0.6); }
.side.active .side-disc { box-shadow: inset 0 0 0 9px #1a0d0b, 0 0 0 2px var(--ink); }

.moment { --m: var(--brass); }
.moment-kicker { font-size: 0.8rem; font-weight: 600; color: var(--m); }

.propose-dock {
  --m: var(--brass);
  background: var(--m); border-color: transparent; color: var(--ink);
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--m) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  max-width: calc(100vw - 32px);
}
.propose-dock strong { font-weight: 800; white-space: nowrap; }

/* voorstel-venster */
.sheet { --m: var(--brass); }
.sheet-step { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-weight: 700; font-size: 0.92rem; }
.sheet-step b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 0.75rem; }
.moment-pick { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.moment-pick::-webkit-scrollbar { display: none; }
.moment-pick button {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5em 0.95em; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--m) 55%, transparent);
  background: transparent; font-weight: 700; font-size: 0.9rem; transition: background 0.2s, color 0.2s;
}
.moment-pick button.on { background: var(--m); border-color: var(--m); color: var(--ink); }
.moment-pick button.on::after { content: '✓'; font-weight: 800; }
.for-moment {
  display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 12px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--m) 16%, transparent); border: 1px solid color-mix(in srgb, var(--m) 60%, transparent);
  transition: background 0.3s, border-color 0.3s;
}
.fm-emoji { font-size: 2rem; line-height: 1; }
.for-moment div { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.for-moment small { font-family: var(--display); font-style: italic; font-size: 0.92rem; color: var(--m); }
.for-moment strong { font-family: var(--display); font-size: 1.45rem; font-weight: 700; }
.for-moment span { font-size: 0.85rem; color: var(--muted); }
.sheet .seg { margin-top: 0; }
.propose { border-color: var(--m); color: var(--m); white-space: nowrap; max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; }
.propose.elsewhere { border-style: dashed; font-weight: 600; font-size: 0.8rem; }

/* ---------- rondleiding ---------- */

.tour { position: fixed; inset: 0; z-index: 300; }
.tour-hole {
  position: fixed; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--brass-2), 0 0 0 9999px rgba(10, 4, 3, 0.8);
  transition: top 0.35s var(--ease), left 0.35s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease);
}
.tour-hole.none { top: 50% !important; left: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgba(10, 4, 3, 0.8); }
.tour-card {
  position: fixed; left: 16px; right: 16px; max-width: 420px; margin: 0 auto;
  padding: 18px 18px 14px; border-radius: 20px; background: var(--cream); color: var(--ink);
  box-shadow: 0 30px 70px -20px #000; animation: rise 0.35s var(--ease) both;
}
.tour-card.center { top: 50%; transform: translateY(-50%); animation: none; }
.tour-card h3 { margin: 6px 0 6px; font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.tour-card p { margin: 0 0 14px; color: #4a3a30; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(23, 12, 10, 0.2); }
.tour-dots i.on { width: 20px; border-radius: 4px; background: var(--wine-2); }
.tour-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.tour-actions .link { margin-right: auto; color: #7a5a3a; }
.tour-actions .btn.ghost { color: var(--ink); border-color: rgba(23, 12, 10, 0.25); }

/* ---------- swipen (beheer) ---------- */

.swipe-cta { border-color: color-mix(in srgb, var(--brass) 35%, transparent); }
.swipe-moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px; margin-top: 4px; }
.swipe-moment {
  --m: var(--brass);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-align: left;
  border: 1px solid color-mix(in srgb, var(--m) 55%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--m) 18%, transparent), transparent 70%);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.swipe-moment:hover { background: color-mix(in srgb, var(--m) 24%, transparent); }
.swipe-moment:active { transform: scale(0.98); }
.sm-emoji { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--m); font-size: 1.2rem; box-shadow: 0 0 0 4px #1a0d0b; }
.sm-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.sm-text strong { font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.sm-text small { color: var(--muted); font-size: 0.8rem; }
.sm-go { font-size: 1.3rem; color: var(--m); }
.swipe-start { width: 100%; margin: 4px 0 14px; }

.swipe {
  --m: var(--brass);
  position: fixed; inset: 0; z-index: 260; display: flex; flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background:
    radial-gradient(80% 50% at 50% 35%, color-mix(in srgb, var(--m) 22%, transparent), transparent 70%),
    var(--ink);
  opacity: 0; transform: translateY(16px); transition: opacity 0.25s, transform 0.3s var(--ease);
  overscroll-behavior: contain; user-select: none; -webkit-user-select: none;
}
.swipe.open { opacity: 1; transform: none; }
.swipe-top { display: flex; align-items: center; gap: 12px; }
.swipe-top .icon { flex: none; font-size: 1.1rem; }
.swipe-top .icon:disabled { opacity: 0.3; }
.swipe-title { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; line-height: 1.2; }
.swipe-title strong { font-family: var(--display); font-size: 1.25rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swipe-count { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.swipe-progress { height: 3px; margin: 10px 0 0; border-radius: 3px; background: rgba(244, 233, 216, 0.1); overflow: hidden; }
.swipe-progress i { display: block; height: 100%; width: 0; background: var(--m); transition: width 0.3s var(--ease); }

.deck { position: relative; flex: 1; display: grid; place-items: center; margin: 14px 0 8px; min-height: 0; }
.sw-card {
  grid-area: 1 / 1; position: relative; width: min(100%, 380px); max-height: 100%;
  display: flex; flex-direction: column; overflow: hidden; border-radius: 26px;
  background: linear-gradient(180deg, #2c1714, #1c0e0c);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px #000, 0 0 0 1px rgba(0, 0, 0, 0.3);
  transform: translateY(calc(var(--depth) * 16px)) scale(calc(1 - var(--depth) * 0.04));
  transition: transform 0.3s var(--ease);
  touch-action: none; will-change: transform;
}
.sw-card:not(.top) { pointer-events: none; filter: brightness(calc(1 - var(--depth) * 0.18)); }
.sw-card.top { cursor: grab; }
.sw-card.dragging { transition: none; cursor: grabbing; }
.sw-card.fly { transition: transform 0.24s ease-in; }
.sw-card.return-right { animation: back-right 0.35s var(--ease); }
.sw-card.return-left { animation: back-left 0.35s var(--ease); }
.sw-card.return-up { animation: back-up 0.35s var(--ease); }
@keyframes back-right { from { transform: translate(110vw, 20px) rotate(20deg); } }
@keyframes back-left { from { transform: translate(-110vw, 20px) rotate(-20deg); } }
@keyframes back-up { from { transform: translateY(-100vh); } }

.sw-cover { position: relative; aspect-ratio: 1; flex: 0 1 auto; min-height: 0; background: var(--wine); display: grid; place-items: center; }
.sw-cover img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sw-cover span { font-size: 4rem; color: var(--brass); opacity: 0.6; }
.sw-cover::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, #2c1714); }
.sw-info { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 20px 6px; margin-top: -42px; z-index: 1; }
.sw-info strong { font-family: var(--display); font-size: 1.55rem; font-weight: 700; line-height: 1.1; }
.sw-info > span { font-size: 1rem; color: var(--cream-2); }
.sw-info small { font-size: 0.8rem; color: var(--muted); }
.sw-info .sw-src { color: var(--dim); }
.sw-artist { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--cream-2); min-width: 0; }
.sw-avatar {
  flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  background: var(--wine-2); box-shadow: 0 0 0 2px #1c0e0c, 0 0 0 3px var(--line-2);
}
.sw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.sw-tags[hidden] { display: none; }
.sw-tag {
  padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: rgba(244, 233, 216, 0.08); color: var(--cream-2); border: 1px solid var(--line);
  text-transform: lowercase;
}
.sw-tag.year { text-transform: none; background: color-mix(in srgb, var(--m) 22%, transparent); border-color: color-mix(in srgb, var(--m) 50%, transparent); color: var(--cream); }
.sw-tag.explicit { text-transform: none; background: var(--cream-2); color: var(--ink); border-color: transparent; padding-inline: 7px; }
.sw-tag.loading { width: 64px; height: 22px; border: 0; background: linear-gradient(90deg, rgba(244, 233, 216, 0.06), rgba(244, 233, 216, 0.14), rgba(244, 233, 216, 0.06)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.sw-tag.loading + .sw-tag.loading { width: 44px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sw-badge {
  align-self: flex-start; margin-bottom: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--c); color: var(--ink); font-size: 0.78rem; font-weight: 700;
}
.sw-status { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sw-status .sw-badge { margin: 0; }
.sw-badge.hearts { background: rgba(23, 12, 10, 0.55); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-2); }
.swipe-moment:disabled { opacity: 0.45; cursor: default; }
.sw-by { font-style: italic; font-family: var(--display); color: var(--cream-2); font-size: 0.92rem; margin-bottom: 4px; }
.sw-play {
  margin: 8px 20px 16px; padding: 0.6em; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(244, 233, 216, 0.05); font-weight: 600;
}
.sw-embed:empty { display: none; }
.sw-embed { margin: -6px 16px 16px; border-radius: 12px; overflow: hidden; }
.sw-embed .embed { margin: 0; }

.sw-stamp {
  position: absolute; z-index: 2; top: 26px; padding: 4px 12px; border: 4px solid; border-radius: 10px;
  font-family: var(--body); font-weight: 900; font-size: 1.6rem; letter-spacing: 0.06em;
  opacity: 0; pointer-events: none; background: rgba(23, 12, 10, 0.25);
}
.sw-stamp.yes { left: 22px; color: var(--m); border-color: var(--m); transform: rotate(-14deg); }
.sw-stamp.no { right: 22px; color: var(--coral); border-color: var(--coral); transform: rotate(14deg); }
.sw-stamp.star { left: 50%; top: 38%; color: var(--brass-2); border-color: var(--brass-2); transform: translateX(-50%) rotate(-6deg); }

.swipe-legend { display: flex; justify-content: space-between; gap: 8px; margin: 0 4px 10px; font-size: 0.78rem; color: var(--dim); }
.swipe-buttons { display: flex; justify-content: center; align-items: center; gap: 22px; }
.sb {
  display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%;
  font-size: 1.7rem; font-weight: 800; background: #241310; border: 2px solid;
  box-shadow: 0 12px 26px -10px #000; transition: transform 0.15s var(--ease), background 0.2s;
}
.sb:active { transform: scale(0.9); }
.sb:disabled { opacity: 0.3; }
.sb.left { color: var(--coral); border-color: color-mix(in srgb, var(--coral) 70%, transparent); }
.sb.right { color: var(--ink); background: var(--m); border-color: var(--m); }
.sb.up { width: 52px; height: 52px; font-size: 1.3rem; color: var(--brass-2); border-color: color-mix(in srgb, var(--brass-2) 60%, transparent); }

.swipe-done { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 340px; text-align: center; color: var(--muted); }
.swipe-done p { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.8rem; color: var(--cream); }

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