html { color-scheme: dark; }
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
@property --tint { syntax: '<color>'; inherits: true; initial-value: #7a7a86; }
@property --t { syntax: '<color>'; inherits: true; initial-value: #7a7a86; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

  :root {
    color-scheme: dark;
    --bg: #0e0d11;
    --panel: #17161c;
    --field: #1e1d25;
    --ink: #efe9de;
    --ink-2: #aaa298;
    --ink-3: #6f6a66;
    --line: rgba(239, 233, 222, .14);
    --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    /* de flesjes vullen de hoogte die over is naast de kop en de tekst eronder, zodat de pagina nooit scrolt */
    --bh: clamp(156px, calc(100vh - 450px), 680px);
    --bh: clamp(156px, calc(100dvh - 450px), 680px);
    /* de breedte: het actieve flesje mag het middelpunt zijn, de buren zijn er vooral om aan te geven dat er meer is */
    --iw: min(var(--bh), 19vw);
  }

  html, body { height: 100%; }
  body {
    background: var(--bg);
    color: var(--ink);
    font: 400 1rem/1.5 var(--sans);
    -webkit-font-smoothing: antialiased;
  }
  * { box-sizing: border-box; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

  /* ---------- app shell: één vaste basis, alleen --tint verandert ---------- */
  .app {
    position: relative;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: --tint 1.5s ease;
    background: color-mix(in srgb, var(--tint) 13%, var(--bg));
    /* ruimte voor de inkeping/thuisbalk: hier (op de vaste 100dvh-doos) en niet op <html>,
       anders telt de telefoon hem dubbel en ontstaat er een scrollbalkje */
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* ---------- startscherm: de titel, dan een glimp van de collectie, dan schuift de titel naar zijn plek ---------- */
  /* geen los titel-element: de echte h1 uit de koptekst wordt tijdelijk verplaatst (zie .brand h1.pre-splash) */
  .splash {
    position: fixed; inset: 0; z-index: 998;
    overflow: hidden;
  }
  .splash[hidden] { display: none !important; }
  .splash-bg {
    position: absolute; inset: 0; z-index: -1; background: var(--bg);
    transition: opacity .9s var(--ease);
  }
  .splash.out .splash-bg { opacity: 0; }
  .splash.bottles-out .splash-viewport { opacity: 0; transition: opacity .5s ease; }
  /* elk flesje komt na elkaar tevoorschijn, in plaats van dat ze samen voorbijschuiven */
  .splash-viewport {
    position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%);
    width: min(640px, 86vw);
  }
  .splash-track { display: flex; align-items: flex-end; justify-content: center; gap: 16px; flex-wrap: wrap; }
  .splash-track .bottle {
    width: 78px; flex: none;
    opacity: 0; transform: translateY(22px) scale(.92);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .splash.show-bottles .splash-track .bottle { opacity: 1; transform: none; }
  .splash-track .bottle svg, .splash-track .bottle img { filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .5)); }

  .top {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 22px 24px 0;
  }
  .brand { display: flex; justify-content: center; }
  .brand h1 { margin: 0; font: 700 clamp(2.2rem, 4.6vw, 3.4rem)/1.05 var(--sans); letter-spacing: -.025em; text-align: center; text-wrap: balance; }
  /* startscherm: dezelfde titel staat eerst (onzichtbaar) gecentreerd op het scherm en schuift dan naar hier toe */
  .brand h1.pre-splash {
    position: relative; z-index: 999;
    opacity: 0; transform: translate(var(--sdx, 0px), calc(var(--sdy, 0px) + 10px));
    transition: opacity .8s var(--ease), transform 1s var(--ease);
  }
  .brand h1.pre-splash.show-title { opacity: 1; transform: translate(var(--sdx, 0px), var(--sdy, 0px)); }
  .brand h1.pre-splash.dismiss { transform: translate(0, 0); }
  .badge { font: 500 .875rem/1 var(--sans); color: var(--ink-3); }
  .actions { display: flex; gap: 8px 26px; flex-wrap: wrap; justify-content: center; }
  .btn {
    font: 500 .9375rem/1.2 var(--sans); color: var(--ink); background: none; border: 0; padding: 4px 0;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
    text-decoration-color: var(--ink-3); transition: text-decoration-color .25s;
  }
  .btn:hover { text-decoration-color: var(--ink); }
  /* vaste knoppen: een licht vlak in de kleur van het parfum veegt van onder naar boven over de knop */
  .btn.solid {
    --sweep: color-mix(in srgb, var(--tint) 45%, #fff);
    background: linear-gradient(var(--sweep), var(--sweep)) 0 100% / 100% 0% no-repeat, var(--ink);
    color: var(--bg); border-radius: 2px; padding: 14px var(--pad, 24px);
    text-decoration: none; font-weight: 600; transition: background-size .5s var(--ease);
  }
  .btn.solid:hover, .btn.solid:focus-visible { background-size: 100% 100%, auto; }
  /* "Bekijk geur" en "Kies voor mij": er schuift een pijltje in */
  /* de knop zelf blijft even groot: alleen het label schuift op en het pijltje komt op de vrije plek */
  #open, #t-go, .t-open { position: relative; padding-inline: var(--pad, 24px); }
  #open > span, #t-go > span, .t-open > span { display: inline-block; transition: transform .45s var(--ease); }
  #open::after, #t-go::after, .t-open::after {
    content: '→'; position: absolute; right: var(--arr, 14px); top: 50%; opacity: 0;
    transform: translate(-8px, -50%);
    transition: transform .45s var(--ease), opacity .3s;
  }
  #open:hover > span, #open:focus-visible > span, #t-go:hover > span, #t-go:focus-visible > span, .t-open:hover > span, .t-open:focus-visible > span { transform: translateX(-12px); }
  #open:hover::after, #open:focus-visible::after, #t-go:hover::after, #t-go:focus-visible::after, .t-open:hover::after, .t-open:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

  /* knoppen bovenin: gewone tekst, de lijn tekent zich van links naar rechts bij hoveren en trekt zich rechts weer terug */
  .actions .btn {
    text-decoration: none; padding: 4px 0 6px;
    background: linear-gradient(currentColor, currentColor) right bottom / 0% 1px no-repeat;
    transition: background-size .55s var(--ease);
  }
  .actions .btn:hover, .actions .btn:focus-visible, .actions .btn[aria-expanded="true"] {
    background-position: left bottom; background-size: 100% 1px;
  }
  .link { background: none; border: 0; padding: 0; color: var(--ink-2); font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; }
  .link:hover { color: var(--ink); }

  .eyebrow { margin: 0; font: 500 1rem/1.2 var(--sans); color: var(--ink-2); }

  /* ---------- etalage ---------- */
  main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 8px 20px; }
  .stage { position: relative; }
  .count {
    position: absolute; top: 4px; left: 24px; z-index: 2;
    font: 500 .9375rem/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums;
  }
  .count b { color: var(--ink); font-weight: 500; }

  .track {
    position: relative;
    display: flex; gap: clamp(8px, 2vw, 28px); align-items: flex-end;
    overflow-x: hidden; touch-action: pan-y; scrollbar-width: none;
    padding: 20px calc(50% - var(--iw) / 2) 0;
  }
  .track::-webkit-scrollbar { display: none; }
  .track { user-select: none; -webkit-user-select: none; }
  .track img, .track svg { -webkit-user-drag: none; pointer-events: none; }
  .item {
    flex: 0 0 var(--iw);
    background: none; border: 0; padding: 0; position: relative;
    transform-origin: 50% 100%; will-change: transform, opacity;
  }
  .bottle { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 100%; }
  .bottle svg, .bottle img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .5)); }
  .item:focus-visible { outline-offset: 6px; border-radius: 12px; }

  /* een echte plank: dikte, een lichte rand bovenop en een zachte schaduw + gloed eronder in de paginakleur */
  .shelf {
    height: 10px; margin: 0 auto; width: min(100% - 48px, 1100px);
    border-radius: 3px;
    background: color-mix(in srgb, var(--tint) 12%, var(--panel));
    box-shadow:
      0 10px 20px rgba(0, 0, 0, .4),
      0 3px 34px color-mix(in srgb, var(--tint) 26%, transparent),
      inset 0 1px 0 rgba(239, 233, 222, .1);
  }

  /* zijkanten: de naam van het vorige/volgende parfum staat verticaal langs de rand; bij hoveren groeit de lijn en schuift het pijltje op */
  .nav {
    position: absolute; top: 30%; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 12px 10px; background: none; border: 0; color: var(--ink-2); transition: color .3s, opacity .4s;
  }
  .nav.prev { left: 14px; } .nav.next { right: 14px; }
  .nav:hover, .nav:focus-visible { color: var(--ink); }
  .nav[disabled] { opacity: 0; pointer-events: none; }
  .nav svg { width: 20px; height: 20px; transition: transform .5s var(--ease); }
  .nav.prev:hover svg { transform: translateX(-5px); }
  .nav.next:hover svg { transform: translateX(5px); }
  .n-line { position: relative; width: 1px; height: 64px; }
  .n-line::before {
    content: ''; position: absolute; inset: 0; background: currentColor;
    transform: scaleY(.3); transform-origin: top; transition: transform .6s var(--ease);
  }
  .nav:hover .n-line::before, .nav:focus-visible .n-line::before { transform: scaleY(1); }
  .n-txt {
    writing-mode: vertical-rl; font: 500 .9375rem/1 var(--sans); letter-spacing: .02em;
    max-height: 190px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }
  .nav.prev .n-txt { transform: rotate(180deg); }

  .info { text-align: center; padding: 14px 24px 0; min-height: 232px; }
  .info.swap > * { animation: swap-in .7s cubic-bezier(.16, 1, .3, 1) both; }
  .info.swap > *:nth-child(2) { animation-delay: .05s; }
  .info.swap > *:nth-child(3) { animation-delay: .1s; }
  .info.swap > *:nth-child(4) { animation-delay: .15s; }
  .info.swap > *:nth-child(5) { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes swap-in { from { opacity: 0; transform: translateX(var(--dx, 0px)); } to { opacity: 1; transform: none; } }
  @keyframes pop-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes roll-in { from { opacity: 0; transform: translateY(var(--cy, .7em)); } to { opacity: 1; transform: none; } }

  /* teller: het cijfer rolt mee met de richting */
  #cur { display: inline-block; }
  #cur.roll { animation: roll-in .5s var(--ease); }

  /* flesjes tillen zacht op onder de muis (alleen met een muis) */
  .bottle { transition: transform .6s var(--ease); }
  @media (hover: hover) and (pointer: fine) { .item:hover .bottle { transform: translateY(-9px); } }

  /* puntjes onderaan groeien bij hoveren */
  .dot:hover::before { transform: scale(1.7); }

  /* ---------- binnenkomst na het startscherm ---------- */
  @keyframes bottle-in { from { opacity: 0; transform: translateY(80px) scale(.93); } to { opacity: 1; transform: none; } }
  @keyframes shelf-in { from { opacity: 0; transform: scaleX(.12); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } }
  .intro .item .bottle { animation: bottle-in 1.1s var(--ease) backwards; animation-delay: calc(.35s + var(--i, 0) * .11s); }
  .intro .shelf { animation: shelf-in 1.2s var(--ease) backwards .25s; }
  .intro-info .info.swap > * { animation: rise .9s var(--ease) both; animation-delay: .85s; }
  .intro-info .info.swap > *:nth-child(2) { animation-delay: .93s; }
  .intro-info .info.swap > *:nth-child(3) { animation-delay: 1.01s; }
  .intro-info .info.swap > *:nth-child(4) { animation-delay: 1.09s; }
  .intro-info .info.swap > *:nth-child(5) { animation-delay: 1.17s; }
  .intro .actions .btn { animation: rise .8s var(--ease) backwards; animation-delay: .55s; }
  .intro .actions .btn:nth-child(2) { animation-delay: .63s; }
  .intro .actions .btn:nth-child(3) { animation-delay: .71s; }
  .intro .actions .btn:nth-child(4) { animation-delay: .79s; }
  .intro .actions .btn:nth-child(5) { animation-delay: .87s; }
  .intro .count, .intro .nav, .intro .dots { animation: fade-in 1s ease backwards 1.1s; }
  .pname { margin: 8px 0 6px; font: 700 clamp(2.4rem, 6vw, 4.25rem)/1.02 var(--sans); letter-spacing: -.03em; text-wrap: balance; }
  .meta { margin: 0; color: var(--ink-2); font-size: .875rem; }
  .mini { margin: 12px 0 16px; font-size: .9375rem; color: var(--ink-2); text-wrap: balance; }

  .dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 10px 24px 0; }
  .dot { width: 22px; height: 22px; display: grid; place-items: center; background: none; border: 0; padding: 0; }
  .dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); transition: width .4s var(--ease), height .4s var(--ease), background-color .4s var(--ease), transform .4s var(--ease), opacity .4s var(--ease); }
  .dot[aria-current="true"]::before { width: 18px; border-radius: 4px; background: var(--ink); }
  .dot:hover::before { background: var(--ink); }
  .empty { padding: 90px 24px; text-align: center; color: var(--ink-2); }

  /* ---------- wat draag ik vandaag ---------- */
  .today {
    position: absolute; z-index: 30; top: 122px; right: 24px; width: min(370px, calc(100% - 32px));
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  }
  .today:not([hidden]) { animation: pop-in .5s var(--ease); transform-origin: 85% 0; }
  .today h2 { margin: 0 0 16px; padding-right: 34px; font: 700 1.375rem/1.1 var(--sans); letter-spacing: -.02em; }
  .today .x-btn { top: 8px; right: 8px; }
  .grp { margin: 0 0 12px; }
  .grp > span { display: block; margin-bottom: 8px; font: 500 .875rem/1 var(--sans); color: var(--ink-2); }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .pick {
    background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: 8px 12px; font-size: .875rem; color: var(--ink-2);
    transition: color .25s, background-color .25s, border-color .25s, opacity .25s, transform .25s;
  }
  .pick:hover { border-color: var(--ink-2); color: var(--ink); }
  .pick[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: transparent; }


  /* ---------- wat draag ik vandaag: een groot scherm, links de keuze in grote woorden, rechts het resultaat ---------- */
  .wear { overscroll-behavior: contain; position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 16px; background: rgba(6, 5, 8, .72); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
  .wear.in { opacity: 1; }
  .wear[hidden] { display: none; }
  .w-card {
    position: relative; width: min(1040px, 100%); max-height: calc(100% - 8px); overflow: auto;
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    background: color-mix(in srgb, var(--tint) 7%, var(--panel));
    border: 1px solid var(--line); border-radius: 20px; outline: none;
    transform: translateY(16px) scale(.985); transition: transform .55s var(--ease);
  }
  .wear.in .w-card { transform: none; }
  .w-pick { padding: 44px 40px 40px 48px; display: flex; flex-direction: column; gap: 34px; min-width: 0; }
  .w-pick h2 { margin: 0; font: 700 clamp(1.7rem, 3.4vw, 2.5rem)/1.04 var(--sans); letter-spacing: -.03em; text-wrap: balance; }
  .w-help { margin: -18px 0 0; max-width: 40ch; color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
  .w-label { display: block; margin-bottom: 16px; font: 500 .875rem/1 var(--sans); letter-spacing: .02em; color: var(--ink-2); }
  .w-words { display: flex; flex-wrap: wrap; gap: .6rem 2.6rem; }
  /* vier seizoenen: een nette 2 x 2 in plaats van drie op een rij en eentje alleen eronder */
  #t-season { display: grid; grid-template-columns: repeat(2, max-content); gap: .7rem 3.2rem; }
  .w-words button {
    position: relative; background: none; border: 0; padding: .1em 0 .32em;
    font: 700 clamp(1.5rem, 3vw, 2.25rem)/1.1 var(--sans); letter-spacing: -.025em; color: var(--ink-3);
    transition: color .35s;
  }
  .w-words button::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink);
    transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease);
  }
  .w-words button:hover { color: var(--ink-2); }
  .w-words button[aria-checked="true"] { color: var(--ink); }
  .w-words button[aria-checked="true"]::after { transform: scaleX(1); transform-origin: left; }
  .w-words button:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 2px; }

  .w-res {
    --t: #7a7a86; transition: --t .9s ease; position: relative; overflow: hidden;
    background: color-mix(in srgb, var(--t) 20%, var(--panel)); border-radius: 0 20px 20px 0;
    padding: 40px 30px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  }
  .w-res::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(70% 55% at 50% 38%, color-mix(in srgb, var(--t) 38%, transparent), transparent 72%);
  }
  .w-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
  .w-bottle { width: clamp(100px, 22vh, 180px); width: clamp(100px, 22dvh, 180px); aspect-ratio: 1 / 1; }
  .w-bottle svg, .w-bottle img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .5)); }
  .w-fits { margin: 6px 0 0; font-size: .875rem; color: var(--ink-2); }
  .w-name { margin: 0; font: 700 clamp(1.4rem, 2.5vw, 1.9rem)/1.12 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
  .w-brand { display: block; margin-bottom: 4px; font: 500 .9375rem/1.2 var(--sans); letter-spacing: 0; color: var(--ink-2); }
  .w-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; margin-top: 12px; }
  .w-link {
    background: none; border: 0; padding: 4px 0 6px; color: var(--ink-2); font: 500 .9375rem/1.2 var(--sans);
    background: linear-gradient(currentColor, currentColor) right bottom / 0% 1px no-repeat; transition: background-size .55s var(--ease), color .3s;
  }
  .w-link:hover, .w-link:focus-visible { color: var(--ink); background-position: left bottom; background-size: 100% 1px; }
  .w-more { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .w-count { font-size: .8125rem; color: var(--ink-2); }
  .w-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .w-thumb { width: 38px; height: 38px; padding: 4px; background: none; border: 1px solid transparent; border-radius: 8px; opacity: .55; transition: opacity .3s, border-color .3s, transform .4s var(--ease); }
  .w-thumb svg, .w-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
  .w-thumb:hover { opacity: .9; transform: translateY(-2px); }
  .w-thumb[aria-current="true"] { opacity: 1; border-color: var(--ink-3); }
  .w-none { margin: 0; max-width: 28ch; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }

  /* animaties: de woorden komen één voor één binnen, het resultaat bij elke wissel opnieuw */
  .wear.in .w-pick > * { animation: rise .7s var(--ease) backwards; animation-delay: .12s; }
  .wear.in .w-pick > :nth-child(2) { animation-delay: .19s; }
  .wear.in .w-pick > :nth-child(3) { animation-delay: .28s; }
  .wear.in .w-pick > :nth-child(4) { animation-delay: .38s; }
  .wear.in .w-words button { animation: rise .6s var(--ease) backwards; animation-delay: .3s; }
  .wear.in .w-words button:nth-child(2) { animation-delay: .35s; }
  .wear.in .w-words button:nth-child(3) { animation-delay: .4s; }
  .wear.in .w-words button:nth-child(4) { animation-delay: .45s; }
  .w-stage > * { animation: rise .6s var(--ease) backwards; }
  .w-stage > :nth-child(2) { animation-delay: .06s; } .w-stage > :nth-child(3) { animation-delay: .1s; }
  .w-stage > :nth-child(4) { animation-delay: .15s; } .w-stage > :nth-child(5) { animation-delay: .2s; }
  .w-stage > .w-bottle { animation: bottle-in .8s var(--ease) backwards; }

  @media (max-width: 800px) {
    .w-card { grid-template-columns: 1fr; }
    /* het kruisje blijft in beeld als de kaart scrolt */
    .w-card > .x-btn { position: sticky; top: 8px; right: auto; justify-self: end; margin: 8px 8px -48px 0; }
    .w-pick { padding: 26px 22px 18px; gap: 20px; }
    .w-pick h2 { padding-right: 36px; }
    .w-help { margin-top: -10px; font-size: .875rem; }
    .w-label { margin-bottom: 10px; }
    .w-words { gap: .4rem 1.6rem; }
    #t-season { gap: .4rem 2.2rem; }
    .w-res { border-radius: 0 0 20px 20px; min-height: 0; padding: 22px 20px 22px; }
    .w-bottle { width: 96px; }
  }

  /* ---------- detail ---------- */
  .overlay { overscroll-behavior: contain; position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(6, 5, 8, .72); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
  .overlay.in { opacity: 1; }
  .overlay[hidden] { display: none; }
  .d-card {
    position: relative; width: min(1000px, 100%); max-height: calc(100% - 8px); overflow: hidden;
    display: grid; grid-template-columns: minmax(240px, 5fr) 7fr;
    background: color-mix(in srgb, var(--tint) 7%, var(--panel));
    border: 1px solid var(--line); border-radius: 20px;
    transform: translateY(14px) scale(.985); transition: transform .5s var(--ease);
  }
  .overlay.in .d-card { transform: none; }
  .d-visual {
    display: grid; place-items: center; padding: 40px 28px; min-height: 100%;
    background: color-mix(in srgb, var(--tint) 16%, var(--panel));
    border-radius: 20px 0 0 20px;
  }
  .d-visual { position: relative; }
  .d-visual::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(70% 55% at 50% 58%, color-mix(in srgb, var(--tint) 34%, transparent), transparent 72%);
    opacity: 0; transition: opacity 1.4s ease .1s;
  }
  .overlay.in .d-visual::before { opacity: 1; }
  .d-visual .bottle { width: min(260px, 100%); }
  .overlay.in .d-visual .bottle { animation: bottle-in 1s var(--ease) .15s backwards; }
  .overlay.in .d-body > header > * { animation: rise .7s var(--ease) backwards; animation-delay: .2s; }
  .overlay.in .d-body > header > *:nth-child(2) { animation-delay: .27s; }
  .overlay.in .d-body > header > *:nth-child(3) { animation-delay: .34s; }
  .overlay.in .d-body > :nth-child(n+2) { animation: rise .7s var(--ease) backwards; animation-delay: .4s; }
  .overlay.in .d-body > :nth-child(n+3) { animation-delay: .5s; }
  .overlay.in .d-body > :nth-child(n+4) { animation-delay: .6s; }
  .overlay.in .d-body > :nth-child(n+5) { animation-delay: .68s; }
  /* de linkerkant (het flesje) blijft staan en in het midden; alleen de rechterkant scrolt */
  .d-body { padding: 36px 36px 32px 8px; display: flex; flex-direction: column; gap: 26px; min-width: 0; min-height: 0; overflow-y: auto; max-height: calc(100vh - 42px); max-height: calc(100dvh - 42px); }
  .d-body h2 { margin: 6px 0 4px; font: 700 clamp(2.2rem, 5vw, 3.5rem)/1.02 var(--sans); letter-spacing: -.03em; text-wrap: balance; }
  .d-body h3 { margin: 0 0 12px; font: 600 1rem/1 var(--sans); color: var(--ink); }
  .x-btn {
    position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px;
    background: none; border: 0; padding: 0; color: var(--ink-2); display: grid; place-items: center;
    transition: color .3s;
  }
  .x-btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
  .x-btn:hover, .x-btn:focus-visible { color: var(--ink); }
  .x-btn:hover svg { transform: rotate(90deg); }

  .accs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .acc { height: 30px; }
  /* de balk groeit echt in de breedte, dus de afgeronde kop beweegt de hele animatie mee */
  .acc .fill {
    display: block; height: 100%; width: 0; overflow: hidden; white-space: nowrap; text-indent: 12px;
    border-radius: 0 6px 6px 0;
    background: var(--c); color: var(--t, #111);
    font: 600 .8125rem/30px var(--sans); text-transform: lowercase;
    transition: width 1s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms);
  }
  .in .acc .fill { width: max(var(--w), 7rem); }

  .pyr { display: grid; }
  .layer { padding: 14px 0; border-top: 1px solid var(--line); }
  .layer:last-child { padding-bottom: 0; }
  .l-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
  .l-head b { font: 600 1rem/1.2 var(--sans); }
  .notes { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
  .note {
    display: inline-block; margin-right: .25em;
    opacity: 0; transform: translateY(6px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: calc(var(--k) * 550ms + var(--j) * 70ms + 300ms);
  }
  .in .note { opacity: 1; transform: none; }
  .tags { margin: 0; color: var(--ink-2); font-size: .9375rem; }
  .quote { margin: 0; font: italic 400 1.125rem/1.45 var(--sans); color: var(--ink); max-width: 38ch; }
  .frag { color: var(--ink-2); font-size: .8125rem; }

  /* ---------- beheer ---------- */
  .sheet { overscroll-behavior: contain; position: fixed; inset: 0; z-index: 60; overflow: auto; background: var(--bg); padding: 24px; opacity: 0; transition: opacity .3s; }
  .sheet.in { opacity: 1; }
  .sheet.in .s-inner { animation: rise .7s var(--ease) .05s backwards; }
  .lang-swap .brand h1, .lang-swap .top .actions { animation: fade-in .6s ease; }
  .sheet[hidden] { display: none; }
  .s-inner { max-width: 1100px; margin: 0 auto; }
  .s-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
  .s-head h2 { margin: 6px 0 0; font: 700 2.2rem/1 var(--sans); letter-spacing: -.03em; }
  .s-note { margin: 0 0 24px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 2px; color: var(--ink-2); font-size: .875rem; max-width: 70ch; }
  .s-grid { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
  .s-list ul { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 2px; }
  .s-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 2px; }
  .s-item.on { background: var(--field); }
  .s-item .grip { flex: none; background: none; border: 0; padding: 6px 2px; margin-left: -4px; color: var(--ink-3); cursor: grab; touch-action: none; border-radius: 2px; line-height: 0; }
  .s-item .grip svg { width: 18px; height: 18px; }
  .s-item .grip:hover, .s-item .grip:focus-visible { color: var(--ink); }
  /* slepen: het parfum komt los (het "spook" volgt je muis of vinger), de plek blijft zacht gemarkeerd en een blauw lijntje toont waar je het neerzet */
  .s-list ul { position: relative; }
  .s-item.lifted { opacity: .35; outline: 1px dashed var(--ink-3); outline-offset: -1px; }
  .s-ghost {
    position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; margin: 0; list-style: none;
    background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .3); scale: 1; opacity: .96;
    transition: scale .22s var(--ease), box-shadow .22s, opacity .18s;
  }
  .s-ghost.up { scale: 1.04; box-shadow: 0 22px 44px rgba(0, 0, 0, .55); }
  .s-ghost.drop { opacity: 0; scale: .98; }
  .s-ghost .grip { cursor: grabbing; color: var(--ink); }
  .drop-line { position: absolute; left: -6px; right: -6px; top: 0; height: 2px; border-radius: 2px; background: #4c8dff; pointer-events: none; box-shadow: 0 0 0 3px rgba(76, 141, 255, .18); transition: transform .12s var(--ease); z-index: 2; }
  .drop-line::before { content: ''; position: absolute; left: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #4c8dff; }
  html.ordering, html.ordering * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
  /* een blauw puntje laat zien welk parfum je hebt aangepast maar nog niet hebt opgeslagen */
  .s-item .ed { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: #4c8dff; vertical-align: middle; }
  .s-item .ed[hidden] { display: none; }
  .s-list .order-hint { margin: 0; }
  .s-item .th { width: 26px; flex: none; }
  .s-item .th svg, .s-item .th img { width: 100%; height: auto; display: block; }
  .s-item .nm { flex: 1; min-width: 0; font-size: .8125rem; line-height: 1.25; background: none; border: 0; padding: 0; text-align: left; }
  .s-item .nm small { display: block; color: var(--ink-3); font: 400 .8125rem/1.3 var(--sans); }
  .s-item .del { background: none; border: 0; padding: 4px 6px; color: var(--ink-3); font-size: .8125rem; border-radius: 2px; }
  .s-item .del:hover { color: var(--ink); }
  .s-item .del.sure { color: #ff9b8a; }

  .s-form { display: grid; gap: 20px; }
  .fs { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
  .fs > legend { padding: 0; margin-bottom: 10px; font: 600 1rem/1.2 var(--sans); color: var(--ink); }
  .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  label.f { display: grid; gap: 6px; font-size: .8125rem; color: var(--ink-2); }
  .in-t, select.in-t, textarea.in-t {
    width: 100%; background: var(--field); border: 1px solid transparent; border-radius: 2px; padding: 11px 12px; color: var(--ink); font-size: .9375rem;
  }
  .in-t:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
  .in-t.bad { border-color: #ff9b8a; }  textarea.in-t { resize: vertical; min-height: 44px; }
  .hint { margin: 0; font-size: .75rem; color: var(--ink-3); }
  .photo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
  .photo-prev { width: 76px; height: 108px; border-radius: 2px; background: var(--field); display: grid; place-items: center; overflow: hidden; flex: none; }
  .photo-prev img, .photo-prev svg { width: 100%; height: 100%; object-fit: contain; display: block; }
  .file-btn { display: inline-block; }
  .file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .file-btn:focus-within span { outline: 2px solid var(--ink); outline-offset: 3px; }
  .file-btn span { display: inline-block; cursor: pointer; }
  /* accord-rij: kleur | naam | hexcode | schuif | percentage | verwijderen */
  .arow { display: grid; grid-template-columns: 30px minmax(120px, 1.3fr) 92px minmax(90px, 2fr) 58px 28px; gap: 10px; align-items: center; }
  .ar-top, .ar-sub { display: contents; }
  .arow > *, .ar-top > *, .ar-sub > * { grid-row: 1; }
  .a-c { grid-column: 1; } .a-n { grid-column: 2; } .a-h { grid-column: 3; } .a-v { grid-column: 4; } .a-x { grid-column: 5; } .arow .x { grid-column: 6; }
  input.a-c { width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
  input.a-c::-webkit-color-swatch-wrapper { padding: 0; }
  input.a-c::-webkit-color-swatch { border: 0; border-radius: 2px; }
  input.a-c::-moz-color-swatch { border: 0; border-radius: 2px; }
  .in-t.a-h { padding: 10px 8px; font-size: .8125rem; letter-spacing: .02em; }
  .in-t.a-x { padding: 10px 4px; text-align: center; font-variant-numeric: tabular-nums; }
  .arow .x { background: none; border: 0; color: var(--ink-3); font-size: 1.25rem; line-height: 1; padding: 4px; }
  .arow .x:hover { color: var(--ink); }
  .custom-acc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .custom-acc[hidden] { display: none; }
  .cchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 2px; padding: 5px 4px 5px 10px; font-size: .8125rem; color: var(--ink-2); }
  .cchip i { width: 10px; height: 10px; border-radius: 2px; }
  .cchip button { background: none; border: 0; color: var(--ink-3); font-size: 1rem; line-height: 1; padding: 2px 6px; }
  .cchip button:hover { color: var(--ink); }
  input[type="range"] { accent-color: var(--ink); width: 100%; }
  .quick { display: flex; gap: 6px; flex-wrap: wrap; }
  .quick .pick { padding: 5px 10px; font-size: .75rem; }
  .cb { display: inline-flex; }
  .cb input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .cb span { display: inline-block; cursor: pointer; border: 1px solid var(--line); border-radius: 2px; padding: 8px 12px; font-size: .875rem; color: var(--ink-2); transition: color .25s, background-color .25s, border-color .25s, opacity .25s, transform .25s; }
  .cb span:hover { border-color: var(--ink-2); color: var(--ink); }
  .cb input:checked + span { background: var(--ink); color: var(--bg); border-color: transparent; }
  .cb input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
  /* rooster in het beheer: elk hokje is een combinatie van seizoen en moment */
  .wear-grid { border-collapse: separate; border-spacing: 6px; margin: 0 -6px; }
  .wear-grid th { font-weight: 500; text-align: left; padding: 0; }
  .wear-grid thead th { text-align: center; }
  .wg-h { background: none; border: 0; padding: 6px 10px; color: var(--ink-2); font-size: .875rem; border-radius: 2px; }
  .wg-h:hover, .wg-h:focus-visible { color: var(--ink); }
  .cb.cell span { display: block; width: 100%; min-width: 76px; height: 40px; padding: 0; position: relative; }
  .cb.cell { display: flex; }
  .cb.cell input:checked + span::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 15px; margin: -9px 0 0 -4px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(40deg); }
  .save-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 4px; }

  @media (max-width: 800px) {
    :root {
      --bh: clamp(150px, calc(100vh - 520px), 560px);
      --bh: clamp(150px, calc(100dvh - 520px), 560px);
      /* op de telefoon staat het actieve flesje voorop; de twee buren piepen er nog net bij */
      --iw: min(var(--bh), 32vw);
    }
    .info { min-height: 290px; }
    .top { padding: 16px 16px 0; }
    .count { left: 16px; }
    .nav { display: none; }
    .today { right: 16px; top: 164px; }
    .d-card { grid-template-columns: 1fr; overflow: auto; }
    .d-body { max-height: none; overflow: visible; }
    .d-visual { padding: 32px 20px 24px; min-height: 0; border-radius: 20px 20px 0 0; }
    .d-visual .bottle { width: 150px; }
    .d-body { padding: 20px 20px 28px; }
    .s-grid { grid-template-columns: 1fr; gap: 24px; }
    .sheet { padding: 16px; }
    .arow { grid-template-columns: 1fr; gap: 8px; }
    .ar-top { display: grid; grid-template-columns: 30px 1fr 28px; gap: 10px; align-items: center; }
    .ar-sub { display: grid; grid-template-columns: 92px 1fr 58px; gap: 10px; align-items: center; }
    .arow > *, .ar-top > *, .ar-sub > * { grid-row: auto; }
    .a-c, .a-n, .a-h, .a-v, .a-x, .arow .x { grid-column: auto; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
    .app { transition: none; }
  }

/* ---------- cursor: kleine punt met een ring die zacht meebeweegt (alleen met een muis) ---------- */
  .cur { position: fixed; inset: 0; z-index: 999; pointer-events: none; overflow: hidden; transition: opacity .25s; }
  .cur.hide { opacity: 0; }
  .c-dot, .c-ring { position: absolute; left: 0; top: 0; will-change: transform; }
  .c-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--ink); }
  .c-ring {
    width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
    border: 1px solid rgba(239, 233, 222, .65);
    transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s;
  }
  .c-ring.is-link { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(239, 233, 222, .12); }
  .c-ring.is-down { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: rgba(239, 233, 222, .22); }

  html.cur-on #app, html.cur-on #app * { cursor: none !important; }
  html.cur-on #app .sheet, html.cur-on #app .sheet * { cursor: auto !important; }
  html.cur-on #app .sheet :is(button, label, select, summary, a, input[type="range"], input[type="file"]) { cursor: pointer !important; }
  @media (pointer: coarse) { .cur { display: none; } }
  html:not(.cur-on) .cur { display: none; }
  #btn-cursor .s-off, #btn-cursor[aria-pressed="false"] .s-on { display: none; }
  #btn-cursor[aria-pressed="false"] .s-off { display: inline; }

.sheet-err { margin: 0 0 20px; padding: 10px 14px; border: 1px solid #ff9b8a; border-radius: 2px; color: #ff9b8a; font-size: .875rem; max-width: 70ch; }
.s-head .actions { display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: flex-end; }
#login .in-t { margin-bottom: 4px; }
/* taalknop: een kleine wereldbol maakt duidelijk dat je hier de taal wisselt */
#btn-lang, #s-lang { display: inline-flex; align-items: center; gap: 7px; }
#btn-lang .ico, #s-lang .ico { width: 16px; height: 16px; flex: none; }


/* ===================== v33: kopbalk, sfeer, beweging ===================== */
.skip { position: absolute; left: 12px; top: -64px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: var(--bg); font: 500 .875rem/1 var(--sans); border-radius: 4px; transition: top .2s; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* regels zonder puntjes: de woorden staan los van elkaar met ruimte ertussen */
.meta, .mini, .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .1em 1.15em; }
.d-body .meta, .d-body .tags { justify-content: flex-start; }
.info .eyebrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .9em; }

/* fijne filmkorrel over de hele pagina: stil, vast op het scherm en niet klikbaar */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .055;
  background: url(grain.png) 0 0 / 128px 128px repeat;
}

/* het actieve flesje staat in een lichtkegel en de flesjes staan echt op de plank (zachte contactschaduw) */
.stage::before {
  content: ''; position: absolute; inset: -30px 0 -10px; z-index: 0; pointer-events: none;
  background: radial-gradient(32% 72% at 50% 84%, color-mix(in srgb, var(--tint) 34%, transparent), transparent 72%);
}
.track { z-index: 1; }
.shelf { position: relative; z-index: 1; }
.item::after {
  content: ''; position: absolute; left: 12%; right: 12%; bottom: 1%; height: 8%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); filter: blur(2px);
}
@media (prefers-reduced-motion: no-preference) {
  .stage::before { animation: breathe 9s ease-in-out infinite alternate; }
}
@keyframes breathe { from { opacity: .68; } to { opacity: 1; } }

/* de puntjes als dock */
.dot::before { transform: scale(var(--s, 1)); transition: width .4s var(--ease), border-radius .4s var(--ease), background .4s var(--ease), transform .18s var(--ease); }
.dots-tip {
  position: fixed; z-index: 30; transform: translate(-50%, -100%); padding: 6px 10px; white-space: nowrap; pointer-events: none;
  font: 500 .8125rem/1 var(--sans); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  opacity: 0; transition: opacity .15s;
}
.dots-tip.on { opacity: 1; }

/* indrukken voelt fysiek, en de knop trekt naar je muis */
.btn:active { scale: .97; }
.btn { transition: text-decoration-color .25s, scale .15s var(--ease); }
.btn.solid { transition: background-size .5s var(--ease), scale .15s var(--ease); }
#open { transition: background-size .5s var(--ease), scale .15s var(--ease), translate .45s var(--ease); }
.item:active .bottle { transform: translateY(-3px) scale(.98); }
.overlay.flown .d-visual .bottle { animation: none; }

/* kopbalk: bovenin alleen wat bezoekers nodig hebben; Admin en de cursorknop staan klein in de hoek */
@media (min-width: 801px) {
  .act-main { display: contents; }
  .actions #btn-admin, .actions #btn-cursor { position: fixed; bottom: 14px; z-index: 6; font-size: .8125rem; color: var(--ink-2); }
  .actions #btn-admin { right: 22px; }
  .actions #btn-cursor { left: 22px; }
  #login { top: auto; bottom: 52px; right: 20px; transform-origin: 85% 100%; }
}
/* telefoon: de twee hoofdacties onderin, op duimhoogte */
@media (max-width: 800px) {
  .act-main {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--tint) 13%, var(--bg)); border-top: 1px solid var(--line);
  }
  .act-main .btn { flex: 1 1 0; min-width: 0; text-align: center; font-size: .875rem; padding: 10px 6px; }
  .act-main .lbl-l { display: none; }
  .act-main .lbl-s { display: inline; }
  .app { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 52px); }
  .act-main { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .brand h1 { font-size: 1.95rem; }
  .info { min-height: 266px; }
  main { padding-block: 6px 8px; }
  .dots { gap: 2px; padding-inline: 8px; }
  :root {
    --bh: clamp(128px, calc(100vh - 530px), 560px);
    --bh: clamp(128px, calc(100dvh - 530px), 560px);
  }
}
.lbl-s { display: none; }

/* v35: richtlijnen */
button, a, label, select, summary, [role="radio"] { touch-action: manipulation; }
html { -webkit-tap-highlight-color: transparent; }
@media (pointer: fine) { html { overscroll-behavior: none; } }


/* ---------- admin.html: alleen het beheer ---------- */
.admin-page .stage, .admin-page .dots, .admin-page .act-main, .admin-page #btn-cursor, .admin-page .info > :not(.empty) { display: none !important; }
.admin-page .brand h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin-page header.top { display: none; }   /* geen knoppen bovenin (terug naar de site, Admin, taal): het kruisje in het inlogvak en in het beheer gaat terug naar de site */
.admin-page #login { position: fixed; top: 50%; left: 50%; right: auto; bottom: auto; translate: -50% -50%; max-width: calc(100vw - 32px); transform-origin: 50% 50%; }
.admin-page .info { min-height: 0; }
.admin-page .app { padding-bottom: 20px; }
.site-link { text-decoration: none; display: inline-flex; align-items: center; }

/* ---------- scentmap met de hand aanpassen (alleen in het beheer) ---------- */
.s-map { display: none; }
.sheet.map-mode .s-grid { display: none; }
.sheet.map-mode .s-map { display: block; }
.s-map .hint { margin: 0 0 14px; max-width: 70ch; color: var(--ink-2); font-size: .9375rem; }
.mp-field {
  position: relative; height: min(82vh, 780px); min-height: 480px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; touch-action: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1.4px); background-size: 38px 38px; background-position: 19px 19px;
}
.mp-field::before, .mp-field::after { content: ""; position: absolute; background: var(--line); opacity: .7; pointer-events: none; }
.mp-field::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.mp-field::after { top: 50%; left: 0; right: 0; height: 1px; }
.mp-ax { position: absolute; z-index: 2; padding: 5px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); font: 500 .75rem/1 var(--sans); pointer-events: none; }
.mp-l { left: 10px; top: 50%; translate: 0 -50%; } .mp-r { right: 10px; top: 50%; translate: 0 -50%; }
.mp-t { top: 10px; left: 50%; translate: -50% 0; } .mp-b { bottom: 10px; left: 50%; translate: -50% 0; }
.mp-nodes { position: absolute; inset: 0; }
.mp-n { position: absolute; width: 92px; margin: -40px 0 0 -46px; display: grid; justify-items: center; gap: 4px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: left .45s var(--ease), top .45s var(--ease), opacity .3s; z-index: 1; }
.mp-n.is-drag { cursor: grabbing; transition: none; z-index: 4; }
.mp-n .art { display: flex; align-items: flex-end; justify-content: center; height: 64px; }
.mp-n .art img, .mp-n .art svg { height: 100%; width: auto; max-width: 78px; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.mp-n b { max-width: 92px; font: 500 .6875rem/1.15 var(--sans); text-align: center; color: var(--ink-2); }
.mp-n .pin { position: absolute; top: -4px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--bg); display: none; }
.mp-n.manual .pin { display: block; }
.mp-n.manual b { color: var(--ink); }
.mp-n:not(.manual) { opacity: .75; }
.mp-n:hover, .mp-n.is-drag { opacity: 1; }
.mp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.mp-status { flex: 1; min-width: 160px; color: var(--ink-2); font-size: .875rem; }
