/* Sorto design tokens, generated from design/tokens.json */
:root {
  --paper: #fcfcf9;
  --surface: #ffffff;
  --grid: #dde5f3;
  --line: #c8d2e8;
  --ink: #1a1d2b;
  --muted: #535b74;
  --bic: #2440b3;
  --bic-deep: #142a80;
  --bic-tint: #e4eaff;
  --margin: #df4558;
  --night: #16267a;
  --night-ink: #ffffff;
  --night-soft: #cfd7fb;
  --holly: #c8302f;
  --holly-text: #c8302f;
  --holly-deep: #861d1c;
  --holly-light: #d94a48;
  --pine: #1f6b4f;
  --pine-light: #2f8f69;
  --gold: #ffd34d;
  --gold-deep: #b8900f;
  --gold-knot: #e9b928;
  --kraft: #d6ab78;
  --kraft-ink: #3b2c18;
  --wa: #1a8245;
  --wa-deep: #11592f;
  --done-bg: #dff1e8;
  --done-ink: #17533c;
  --wait-bg: #eef1f8;
  --taken-bg: #f1f3f8;
  --taken-ink: #8a93ad;
  --placeholder: #68708a;
  --chain-empty: #aab6d3;
  --tape-gold: rgba(255, 211, 77, 0.85);
  --tape-kraft: rgba(214, 171, 120, 0.9);
  --tape-red: rgba(200, 48, 47, 0.75);
  --scrim: rgba(16, 20, 40, 0.55);
  --shadow-sheet: 5px 6px 0 #1a1d2b;
  --shadow-slip: 0 8px 12px rgba(26, 29, 43, 0.2);
  --shadow-sticky: 0 8px 14px rgba(26, 29, 43, 0.16);
  --shadow-press-bic: 0 4px 0 #142a80;
  --shadow-press-holly: 0 4px 0 #861d1c;
  --shadow-press-wa: 0 4px 0 #11592f;
  --shadow-press-gold: 0 4px 0 #b8900f;
  --shadow-press-paper: 0 4px 0 #1a1d2b;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;
  --space-7: 56px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;
  --tilt-chain: -1.2deg;
  --tilt-tape: -6deg;
  --tilt-sticky: -1.5deg;
  --tilt-stamp: -10deg;
  --font-display: "Familjen Grotesk", "Familjen Fallback", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: Kalam, "Segoe Print", "Bradley Hand", cursive;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12141c;
    --surface: #191c27;
    --grid: #1f2537;
    --line: #2c3349;
    --ink: #e9ebf3;
    --muted: #9ba2ba;
    --bic: #8199ff;
    --bic-deep: #a9b8ff;
    --bic-tint: #232c52;
    --margin: #ff6b7c;
    --night: #0c1440;
    --night-soft: #b9c3ef;
    --holly-text: #ff8f87;
    --done-bg: #1d3a2e;
    --done-ink: #8fd6b3;
    --wait-bg: #232838;
    --taken-bg: #1d2130;
    --taken-ink: #6d7590;
    --placeholder: #8b94ad;
    --chain-empty: #47506a;
    --shadow-sheet: 5px 6px 0 #000000;
    --shadow-slip: 0 8px 14px rgba(0, 0, 0, 0.5);
    --shadow-press-paper: 0 4px 0 #000000;
    color-scheme: dark;
  }
}

/* Sorto. Components follow the Sorto Design System's components/bundle.css, adapted to the site's markup. */

/* @font-face rules (self-hosted, SIL Open Font License) */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-ext-98740c.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-d4c6b2.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-ext-0fa996.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-16709f.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/fonts/familjen-grotesk-latin-ext-330ebc.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/fonts/familjen-grotesk-latin-c2c51a.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/kalam-latin-ext-9048a2.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/kalam-latin-794c16.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/kalam-latin-ext-b85fae.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/kalam-latin-9c682b.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Arial (or Helvetica, Roboto) scaled to Familjen Grotesk's width and line height, so headings keep their line
   breaks while the web font loads and nothing jumps when it arrives. Measured: Familjen is 92.3% as wide as Arial;
   its ascent and descent are 1230 and 270 on 1200 units per em. */
@font-face { font-family: "Familjen Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); font-weight: 600 700; size-adjust: 92.3%; ascent-override: 111%; descent-override: 24.4%; line-gap-override: 0%; }

/* Colours, fonts, spacing, radius, shadows and tilt come from the design tokens, which the build puts above this file. */

/* ---------- base ---------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 17px/1.5 var(--font-body);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
}
main { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; }
.main-content { flex: 1; padding-bottom: 56px; }
.site-header { flex: none; overflow: hidden; }
p { margin: 0; }
a { color: var(--bic); }
a:hover { color: var(--bic-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* Browsers show focus on a text field after a mouse click too, so a field gets a quiet pen-blue line on its own edge
   instead of the thick gold ring. :where keeps this as weak as the rule above, so .note and .tag still win. */
:where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="file"]), textarea, select):focus-visible {
  outline: 2px solid var(--bic); outline-offset: -2px;
}
.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding-left: max(var(--space-5), env(safe-area-inset-left)); padding-right: max(var(--space-5), env(safe-area-inset-right)); }
.wrap.wide { max-width: 1120px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.center { text-align: center; }

h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 700; margin: 0; text-wrap: balance; }
.h1, h1 { font-size: clamp(38px, 10vw, 58px); line-height: 1.02; letter-spacing: -0.035em; }
.h2, h2 { font-size: 27px; line-height: 1.1; letter-spacing: -0.02em; }
.h3, h3 { font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; }
.hand { font-family: var(--font-hand); color: var(--bic); }
.hint { font-size: 14px; line-height: 1.45; color: var(--muted); }
.small { font-size: 13px; }
.soft { color: var(--night-soft); }
.lead { font-size: 18px; line-height: 1.45; }
.mark { background: var(--gold); color: #1a1d2b; padding: 0 6px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.squiggle { position: relative; display: inline-block; padding-bottom: 10px; }
.squiggle::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--bic);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10'><path d='M1 6c5-5 10 5 15 0s10-5 15 0 10 5 15 0 10-5 13 0' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>") left center / 36px 8px repeat-x;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10'><path d='M1 6c5-5 10 5 15 0s10-5 15 0 10 5 15 0 10-5 13 0' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>") left center / 36px 8px repeat-x; }

/* ---------- bands: night (December ground) and paper ---------- */

.band { position: relative; overflow: hidden; }
.night { background: var(--night); color: var(--night-ink); }
.night a { color: var(--night-ink); }
.night .hint { color: var(--night-soft); }
.night .hand { color: var(--night-ink); }
.night .slip .hand, .night .slip a { color: var(--bic); }
.band.night { padding-bottom: 28px; }
/* The night ground stops 150px early, so the bottom of the hero (the form on home) lies on the paper. */
.band.night.lifted { background: linear-gradient(var(--night) calc(100% - 150px), transparent calc(100% - 150px)); padding-bottom: 0; }

.top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 700 27px/1 var(--font-display); letter-spacing: -0.035em; color: var(--bic); text-decoration: none; text-transform: lowercase; }
.night .logo { color: var(--night-ink); }
.logo-mark { width: 32px; height: 32px; flex: none; background: url("/favicon.svg") center / contain no-repeat; }
/* The language: a pill with the current code, which opens the list of languages under it */
.lang-switch { anchor-name: --lang; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 13px 0 15px; border: 1.5px solid currentColor; border-radius: var(--radius-pill); background: none; color: inherit; font: 700 13px/1 var(--font-display); letter-spacing: .08em; cursor: pointer; }
.lang-switch::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.lang-switch:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.lang-menu { position-anchor: --lang; inset: auto; top: anchor(bottom); right: anchor(right); margin: 6px 0 0; min-width: 168px; padding: 6px; list-style: none; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sheet); }
/* Browsers without anchor positioning: under the header, on the right. */
@supports not (anchor-name: --lang) { .lang-menu { position: fixed; top: 64px; right: 16px; } }
.lang-menu a, .lang-menu [aria-current] { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm); color: var(--ink); font: 600 16px/1 var(--font-display); text-decoration: none; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--bic-tint); color: var(--bic); }
.lang-menu [aria-current] { background: var(--ink); color: var(--surface); }
.hero { position: relative; display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.home-text > .chip { align-self: flex-start; }
.hero > .confetti { left: 50%; }
.hero .lead { color: var(--night-soft); }

.foot { margin-top: auto; padding-bottom: max(26px, env(safe-area-inset-bottom)); overflow: hidden; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 18px; font-size: 15px; }
.foot-inner p { color: var(--night-soft); }
.foot-links { display: flex; gap: 18px; }

/* Paper chain garland */
.chain { display: flex; align-items: center; height: 30px; padding-left: 4px; overflow: hidden; transform: rotate(var(--tilt-chain)); margin: -2px -6px 0; }
.chain i { flex: none; width: 32px; height: 16px; border: 5px solid var(--holly); border-radius: 9px; margin-left: -7px; }
.chain i:nth-child(4n+2) { border-color: var(--gold); width: 14px; height: 26px; }
.chain i:nth-child(4n+3) { border-color: var(--pine-light); }
.chain i:nth-child(4n) { border-color: var(--night-ink); width: 14px; height: 26px; }
.site-header:not(.night) .chain i:nth-child(4n) { border-color: var(--bic); }

/* Progress chain on the organiser page: one link per person */
.chain-progress { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; padding-left: 8px; min-height: 34px; }
.chain-progress i { flex: none; width: 40px; height: 18px; border: 6px solid var(--holly); border-radius: 10px; margin-left: -8px; }
.chain-progress i:nth-child(even) { width: 16px; height: 30px; }
.chain-progress i:nth-child(4n+2) { border-color: var(--gold); }
.chain-progress i:nth-child(4n+3) { border-color: var(--pine-light); }
.chain-progress i:nth-child(4n) { border-color: var(--bic); }
.chain-progress i.empty { border: 3px dashed var(--chain-empty); margin-left: -6px; }

/* Cut-paper snowflakes. Faint, because they lie behind text wherever the width and the words happen to put them. */
.flakes { position: absolute; inset: 0; pointer-events: none; }
.flakes span { position: absolute; width: 34px; height: 34px; background: var(--night-ink); opacity: .2;
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'><defs><path id='a' d='M-4 2V-38l4-8 4 8V2z M0-20l-13-11 3-4 10 9 10-9 3 4z M0-6l-9-7 3-3 6 5 6-5 3 3z'/></defs><use href='%23a'/><use href='%23a' transform='rotate(60)'/><use href='%23a' transform='rotate(120)'/><use href='%23a' transform='rotate(180)'/><use href='%23a' transform='rotate(240)'/><use href='%23a' transform='rotate(300)'/><circle r='9'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'><defs><path id='a' d='M-4 2V-38l4-8 4 8V2z M0-20l-13-11 3-4 10 9 10-9 3 4z M0-6l-9-7 3-3 6 5 6-5 3 3z'/></defs><use href='%23a'/><use href='%23a' transform='rotate(60)'/><use href='%23a' transform='rotate(120)'/><use href='%23a' transform='rotate(180)'/><use href='%23a' transform='rotate(240)'/><use href='%23a' transform='rotate(300)'/><circle r='9'/></svg>") center / contain no-repeat; }
.flakes span:nth-child(1) { left: 3%; top: 42%; width: 30px; height: 30px; transform: rotate(10deg); }
.flakes span:nth-child(2) { left: 88%; top: 46%; width: 40px; height: 40px; transform: rotate(-14deg); }
.flakes span:nth-child(3) { left: 66%; top: 34%; width: 20px; height: 20px; }
.flakes span:nth-child(4) { left: 91%; top: 58%; width: 28px; height: 28px; transform: rotate(20deg); }
.flakes span:nth-child(5) { left: 6%; top: 76%; width: 36px; height: 36px; transform: rotate(-8deg); }
.flakes span:nth-child(6) { left: 48%; top: 88%; width: 22px; height: 22px; }
.flakes span:nth-child(7) { left: 78%; top: 84%; width: 32px; height: 32px; transform: rotate(16deg); }
.flakes span:nth-child(8) { left: 60%; top: 70%; width: 18px; height: 18px; }

/* Torn-paper confetti */
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti span { position: absolute; width: 10px; height: 16px; background: var(--holly); clip-path: polygon(0 8%, 100% 0, 92% 100%, 6% 90%); }
.confetti span:nth-child(3n+2) { background: var(--gold); width: 14px; height: 9px; }
.confetti span:nth-child(3n) { background: var(--bic); }
.confetti span:nth-child(5n) { background: var(--pine-light); }
.night .confetti span:nth-child(3n) { background: var(--night-ink); }
.confetti span:nth-child(1) { left: 8%; top: 6%; transform: rotate(20deg); }
.confetti span:nth-child(2) { left: 22%; top: 14%; transform: rotate(-30deg); }
.confetti span:nth-child(3) { left: 38%; top: 4%; transform: rotate(50deg); }
.confetti span:nth-child(4) { left: 55%; top: 12%; transform: rotate(-12deg); }
.confetti span:nth-child(5) { left: 70%; top: 6%; transform: rotate(35deg); }
.confetti span:nth-child(6) { left: 86%; top: 15%; transform: rotate(-45deg); }
.confetti span:nth-child(7) { left: 14%; top: 26%; transform: rotate(70deg); }
.confetti span:nth-child(8) { left: 32%; top: 22%; transform: rotate(10deg); }
.confetti span:nth-child(9) { left: 63%; top: 24%; transform: rotate(-60deg); }
.confetti span:nth-child(10) { left: 80%; top: 28%; transform: rotate(25deg); }
.confetti span:nth-child(11) { left: 4%; top: 40%; transform: rotate(-20deg); }
.confetti span:nth-child(12) { left: 93%; top: 42%; transform: rotate(40deg); }
.confetti span:nth-child(13) { left: 47%; top: 32%; transform: rotate(-35deg); }
.confetti span:nth-child(14) { left: 26%; top: 38%; transform: rotate(55deg); }

/* ---------- paper ---------- */

.slip-w { position: relative; display: block; filter: drop-shadow(var(--shadow-slip)); }
.slip {
  position: relative; display: block; background-color: var(--surface);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 16px 16px;
  clip-path: polygon(0% 6px, 5% 2px, 11% 5px, 18% 0, 25% 4px, 32% 1px, 40% 5px, 47% 0, 55% 4px, 62% 1px, 70% 5px, 77% 0, 85% 4px, 92% 1px, 100% 5px, 100% 100%, 0% 100%);
  padding: 24px 16px 18px 34px;
  color: var(--ink);
}
.slip::before { content: ""; position: absolute; top: 0; bottom: 0; left: 18px; width: 1.5px; background: var(--margin); }
.slip.plain { padding-left: 16px; }
.slip.plain::before { display: none; }
.slip.taken { background-color: var(--taken-bg); }
.tape { position: absolute; z-index: 2; top: -9px; left: 50%; width: 64px; height: 20px; margin-left: -32px; background: var(--tape-gold); transform: rotate(var(--tilt-tape)); clip-path: polygon(3% 0, 97% 6%, 100% 100%, 0 94%); }
.tape.kraft { background: var(--tape-kraft); transform: rotate(calc(var(--tilt-tape) * -0.8)); }
.tape.red { background: var(--tape-red); transform: rotate(calc(var(--tilt-tape) * 0.5)); }
.sheet {
  position: relative; background-color: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-xl);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 18px 18px; box-shadow: var(--shadow-sheet);
  padding: 22px 20px 24px;
  color: var(--ink);
}
.night .sheet .hint, .night .slip .hint { color: var(--muted); }
.night .sheet a { color: var(--bic); }
.lined { background-color: var(--surface); background-image: linear-gradient(transparent 31px, var(--grid) 31px); background-size: 100% 32px; background-position: 0 14px; }
.margin-line { position: relative; }
.margin-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 26px; width: 1.5px; background: var(--margin); z-index: 1; pointer-events: none; }
.sticky { position: relative; background: var(--gold); color: #1a1d2b; padding: 18px; transform: rotate(var(--tilt-sticky)); box-shadow: var(--shadow-sticky); }
.sticky.green { background: var(--done-bg); color: var(--done-ink); }
.kraftcard { position: relative; background: var(--kraft); color: #1a1d2b; border-radius: var(--radius-sm); padding: 22px 20px; transform: rotate(0.6deg); }
.kraftcard a, .kraftcard .hint { color: var(--kraft-ink); }

/* Gift tag with a string, for links people copy */
.tag-wrap { position: relative; margin-left: 30px; }
.tag-string { position: absolute; left: -36px; top: 50%; width: 48px; height: 2px; background: var(--holly); transform: rotate(-14deg); }
.tag { position: relative; display: flex; align-items: center; gap: 8px; background: var(--kraft); color: #1a1d2b; clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 50%); padding: 12px 14px 12px 46px; transform: rotate(-1.5deg); }
.tag::before { content: ""; position: absolute; left: 18px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px rgba(26, 29, 43, .35); }
.night .tag::before { background: var(--night); }
.tag input { flex: 1; min-width: 0; border: 0; background: transparent; color: #1a1d2b; font: 600 15px/1.2 ui-monospace, "SF Mono", Menlo, monospace; padding: 6px 0; text-overflow: ellipsis; }
.tag input:focus { outline: none; }
/* The clip-path on the tag would cut off an outline, so focus shows as a line inside the field. */
.tag input:focus-visible { box-shadow: inset 0 -3px 0 #1a1d2b; }

/* Stamp */
.stamp { display: inline-grid; place-items: center; text-align: center; border: 3px solid var(--holly-text); color: var(--holly-text); font: 700 13px/1.1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; transform: rotate(var(--tilt-stamp)); background: var(--surface); }
.stamp.round { width: 112px; height: 112px; border-radius: 50%; box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 6px var(--holly-text); padding: 14px; letter-spacing: .06em; }
.stamp.gold { border-color: var(--gold); color: var(--gold); background: transparent; box-shadow: inset 0 0 0 4px var(--night), inset 0 0 0 6px var(--gold); width: 104px; height: 104px; font-size: 11px; letter-spacing: .02em; }

/* ---------- controls ---------- */

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 var(--space-5); border: 0; border-radius: var(--radius-lg); font: 700 18px/1 var(--font-display); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; text-align: center; }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn[hidden] { display: none; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-holly, .btn-holly:hover { background: var(--holly); color: #ffffff; box-shadow: var(--shadow-press-holly); }
.btn-bic, .btn-bic:hover { background: var(--bic); color: var(--surface); box-shadow: var(--shadow-press-bic); }
.btn-wa, .btn-wa:hover { background: var(--wa); color: #ffffff; box-shadow: var(--shadow-press-wa); }
.btn-paper, .btn-paper:hover { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--shadow-press-paper); }
.btn-ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.night .btn-ghost { color: var(--night-ink); }
.btn-text { background: none; color: var(--holly-text); min-height: 44px; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
.btn-small { min-height: 44px; font-size: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); font: 700 14px/1 var(--font-display); white-space: nowrap; }
.chip.gold { background: var(--gold); border-color: var(--gold); color: #1a1d2b; }
.night .chip.ghost { background: transparent; color: var(--night-ink); border-color: var(--night-ink); }
.night .slip .chip.ghost { color: var(--ink); border-color: var(--ink); }
button.chip { cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.label { display: block; font: 700 17px/1.2 var(--font-display); margin: 0 0 8px; }
.input, .field input[type="text"], .field input[type="date"], .field select {
  display: block; width: 100%; border: 2px solid var(--ink); border-radius: var(--radius-md); background: var(--surface);
  padding: 12px 14px; font: 17px/1.4 var(--font-body); color: var(--ink);
}
textarea.input { resize: vertical; }
.input.handwritten { font: 400 23px/1.32 var(--font-hand); color: var(--bic); }
.input::placeholder { color: var(--placeholder); }
.field + .field, .field + .fold, .fold + .fold { margin-top: 20px; }
.field .hint { margin-top: 8px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 400px) { .row { grid-template-columns: minmax(0, 1fr); } }

/* Optional parts of the form */
.fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 14px; background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius-md); font: 600 16px/1.2 var(--font-display); color: var(--ink); cursor: pointer; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; font: 700 22px/1 var(--font-display); color: var(--bic); }
.fold[open] > summary::after { content: "−"; }
.fold-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 2px 2px; }
.rules { display: flex; flex-direction: column; gap: 12px; }
.name-picker { display: flex; flex-direction: column; gap: 10px; }
.name-picker[hidden] { display: none; }
.name-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* The names look as they were written in the list above: handwritten, in pen. */
.name-chip { position: relative; min-height: 44px; padding: 4px 14px; border: 1.5px dashed var(--bic); border-radius: var(--radius-pill); background: var(--surface); color: var(--bic); font: 400 21px/1.1 var(--font-hand); cursor: pointer; }
.name-chip[aria-pressed="true"] { border-style: solid; background: var(--bic); color: var(--surface); }
/* A dot for a name that is already in a rule. */
.name-chip.in-rule::after { content: ""; position: absolute; top: 4px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.name-chip:disabled { opacity: .35; cursor: default; text-decoration: line-through; }
.pick-status:empty { display: none; }
.one-way { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.one-way input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--bic); }
.rule-list { margin: 0; padding: 0; list-style: none; }
.rule-list[hidden], .rules textarea[hidden] { display: none; }
.chip.rule { gap: 4px; padding: 0 0 0 12px; font-size: 15px; white-space: normal; }
.chip.rule.unknown { column-gap: 8px; border-color: var(--holly-text); border-style: dashed; color: var(--holly-text); }
.rule-text { white-space: nowrap; }
.rule-note { font: 400 13px/1.2 var(--font-body, inherit); }
.rule-remove { display: inline-grid; place-items: center; width: 40px; min-height: 40px; border: 0; background: none; color: inherit; font: 700 20px/1 var(--font-display); cursor: pointer; }
.create .btn-holly { margin-top: 24px; }

/* Honeypot: off-screen instead of display:none, so bots that skip hidden fields still see it. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Doodles in ballpoint (masks, so they take a token colour) */
.doodle { display: inline-block; flex: none; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; pointer-events: none; }
.d-star { width: 36px; height: 36px; background: var(--bic);
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><path d='M20 4l4.5 11.5L37 16l-9.8 7.6L30.5 36 20 28.8 9.5 36l3.3-12.4L3 16l12.5-.5z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><path d='M20 4l4.5 11.5L37 16l-9.8 7.6L30.5 36 20 28.8 9.5 36l3.3-12.4L3 16l12.5-.5z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/></svg>"); }
.d-arrow { width: 64px; height: 48px; background: var(--bic);
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'><path d='M6 8c20 2 44 10 56 38' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/><path d='M50 40l12 8 4-14' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'><path d='M6 8c20 2 44 10 56 38' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/><path d='M50 40l12 8 4-14' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.night .d-arrow { background: var(--night-ink); }
.d-heart { width: 30px; height: 28px; background: var(--holly);
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30'><path d='M16 27C6 20 2 14 3 9s7-7 10-3l3 4 3-4c3-4 9-2 10 3s-3 11-13 18z' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30'><path d='M16 27C6 20 2 14 3 9s7-7 10-3l3 4 3-4c3-4 9-2 10 3s-3 11-13 18z' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'/></svg>"); }
.check { display: inline-block; width: 24px; height: 24px; flex: none; background: var(--bic);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path d='M4 16c4 3 6 6 8 9 4-9 9-15 15-21' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path d='M4 16c4 3 6 6 8 9 4-9 9-15 15-21' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; }
.strike { position: relative; }
.strike::after { content: ""; position: absolute; left: -6px; right: -6px; top: 52%; height: 3px; background: var(--bic); border-radius: 2px; transform: rotate(-5deg); }

/* A present, drawn in paper */
.present { position: relative; width: 170px; height: 130px; margin: 0 auto; }
.present .body { position: absolute; left: 10px; right: 10px; bottom: 0; height: 96px; background: var(--holly); border-radius: 6px; }
.present .lid { position: absolute; left: 0; right: 0; bottom: 92px; height: 30px; background: var(--holly-light); border-radius: 6px; transform: translate(-26px, -34px) rotate(-20deg); }
.present .rib { position: absolute; left: 50%; width: 22px; margin-left: -11px; bottom: 0; height: 96px; background: var(--gold); }
.present .lid::after { content: ""; position: absolute; left: 50%; width: 22px; margin-left: -11px; top: 0; bottom: 0; background: var(--gold); }

/* ---------- sections ---------- */

.section { padding-top: 56px; display: flex; flex-direction: column; gap: 22px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps li:nth-child(1) { transform: rotate(-1.5deg); }
.steps li:nth-child(2) { transform: rotate(1.2deg); }
.steps li:nth-child(3) { transform: rotate(-1deg); }
.steps li:nth-child(1) .tape { left: 20%; }
.steps li:nth-child(2) .tape { left: 80%; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 10px; }
.step-n { grid-row: span 2; font: 700 40px/1 var(--font-hand); color: var(--bic); }

.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 86%; padding: 10px 12px; border-radius: 16px; font-size: 16px; line-height: 1.4; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--bic-tint); border-color: var(--bic-tint); border-bottom-right-radius: 4px; font: 400 19px/1.3 var(--font-hand); }
.bubble.them { border-bottom-left-radius: 4px; }
.code { display: block; background: rgba(255, 255, 255, .55); border-radius: var(--radius-sm); padding: 8px 10px; font: 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; color: #1a1d2b; }
.ai-tech { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }

.keep { position: relative; }
.keep .stamp { position: absolute; right: 0; top: 40px; }
.keep h2, .keep .checks { max-width: calc(100% - 130px); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 10px; }

.faq-item { border-bottom: 1.5px dashed var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font: 700 18px/1.3 var(--font-display); cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--bic); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 0 16px; color: var(--muted); }
.see-also { margin-top: 18px; }
.see-also a { color: inherit; }

/* Hero slips on home */
.fan { display: flex; justify-content: center; gap: 10px; padding-top: 22px; }
.fan .slip { width: 76px; height: 62px; padding-top: 18px; font: 700 24px/1 var(--font-hand); color: var(--bic); }
.fan .slip-w:nth-child(1) { transform: rotate(-8deg) translateY(6px); }
.fan .slip-w:nth-child(2) { transform: rotate(5deg); }
.fan .slip-w:nth-child(3) { transform: rotate(-3deg) translateY(10px); }
.fan .slip-w:nth-child(4) { transform: rotate(9deg) translateY(2px); }
.fan .slip-w:nth-child(4) .slip { text-align: center; font-size: 34px; padding-top: 12px; color: var(--holly-text); }
.fan .slip-w:nth-child(2) .tape { background: var(--tape-kraft); }
.fan .slip-w:nth-child(3) .tape { background: var(--tape-red); }
.create .d-star { position: absolute; right: -10px; top: -18px; transform: rotate(14deg); }
.form-error { margin-bottom: 20px; }
.form-error p:first-child { font: 700 17px/1.3 var(--font-display); }

/* Home: hero text and form; side by side on large screens */
.home-grid { display: flex; flex-direction: column; gap: 30px; }
.home-text h1 { font-size: clamp(40px, 11vw, 74px); }

/* The duplicate name gets a red circle, drawn on a layer behind the textarea with the same text. */
.names-box { position: relative; }
.mirror { position: absolute; inset: 0; color: transparent; white-space: pre-wrap; overflow-wrap: break-word; overflow: hidden; pointer-events: none; }
.has-ring textarea { position: relative; background: transparent; }
.ringed { position: relative; }
.ringed::after { content: ""; position: absolute; inset: -8px -14px; pointer-events: none; background: var(--holly);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50' preserveAspectRatio='none'><path d='M10 28c2-16 40-22 70-20s34 14 30 22-30 14-62 12S6 36 12 22c4-8 18-12 30-13' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50' preserveAspectRatio='none'><path d='M10 28c2-16 40-22 70-20s34 14 30 22-30 14-62 12S6 36 12 22c4-8 18-12 30-13' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat; }

@media (min-width: 960px) {
  .home-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .home-text { padding-top: 28px; gap: 22px; }
  .home-text .lead { font-size: 21px; max-width: 34ch; }
  .home-text .fan { justify-content: flex-start; gap: 16px; padding-top: 30px; }
  .home-text .fan .slip { width: 100px; height: 76px; padding-top: 22px; font-size: 30px; }
  .home-text .fan .slip-w:nth-child(4) .slip { font-size: 44px; padding-top: 14px; }
  .wide .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .wide .step { grid-template-columns: minmax(0, 1fr); gap: 6px; min-height: 190px; align-content: start; }
  .wide .step-n { grid-row: auto; font-size: 52px; }
  .duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; align-items: start; }
}

/* Shuffle screen while the draw is made */
.shuffle { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; text-align: center; }
.shuffle[hidden] { display: none; }
.shuffle-stage { position: relative; width: 300px; height: 300px; }
.shuffle-stage .present { position: absolute; left: 65px; bottom: 0; }
.shuffle-stage .slip-w { position: absolute; }
.shuffle-stage .slip { width: 78px; height: 54px; padding-top: 14px; font: 700 22px/1 var(--font-hand); color: var(--bic); }
.shuffle-stage .slip-w:nth-child(1) { left: 10px; top: 40px; transform: rotate(-24deg); animation: float 1.6s ease-in-out infinite; }
.shuffle-stage .slip-w:nth-child(2) { left: 110px; top: 0; transform: rotate(8deg); animation: float 1.6s .3s ease-in-out infinite; }
.shuffle-stage .slip-w:nth-child(3) { left: 210px; top: 50px; transform: rotate(28deg); animation: float 1.6s .6s ease-in-out infinite; }
.shuffle-stage .slip-w:nth-child(4) { left: 50px; top: 130px; transform: rotate(14deg); animation: float 1.6s .9s ease-in-out infinite; }
.shuffle-stage .slip-w:nth-child(5) { left: 180px; top: 136px; transform: rotate(-16deg); animation: float 1.6s 1.2s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -14px; } }

/* ---------- organiser ---------- */

.sheet > h3 { margin-bottom: 6px; }

/* ---------- pick, claim ---------- */

.names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; padding-top: 6px; }
@media (min-width: 560px) { .names { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.names > * { text-decoration: none; }
.names > *:nth-child(4n+1) { transform: rotate(-2deg); }
.names > *:nth-child(4n+2) { transform: rotate(1.5deg); }
.names > *:nth-child(4n+3) { transform: rotate(1deg); }
.names > *:nth-child(4n) { transform: rotate(-1.5deg); }
.names > *:nth-child(3n+2) .tape { background: var(--tape-kraft); }
.names > *:nth-child(3n) .tape { background: var(--tape-red); }
.names .slip { min-height: 84px; display: flex; flex-direction: column; justify-content: center; padding-top: 22px; }
.names .n { font: 700 28px/1.05 var(--font-hand); color: var(--bic); overflow-wrap: anywhere; }
.names a:hover .slip { background-color: var(--bic-tint); }
.names .taken .n { color: var(--taken-ink); }
.names small { font: 600 12px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.pick-title { display: flex; align-items: flex-end; gap: 6px; }
.pick-title .d-arrow { transform: rotate(18deg) scale(.8); }

.claim { display: flex; flex-direction: column; gap: 26px; padding-top: 32px; }
.claim .slip-w { align-self: center; width: min(100%, 300px); transform: rotate(-3deg); }
.claim .slip { padding: 34px 22px 30px 40px; }
.claim .slip-w > .tape + .tape { left: 72%; transform: rotate(8deg); }
.claim .lead-in { font: 700 22px/1.2 var(--font-display); }
.claim .big { font: 700 clamp(52px, 16vw, 76px)/1 var(--font-hand); color: var(--bic); overflow-wrap: anywhere; }
.claim .taken .big { color: var(--taken-ink); }
.claim .stamp { position: absolute; right: -6px; bottom: -14px; transform: rotate(-14deg); }
.claim .slip-w.is-taken { transform: rotate(3deg); }

/* ---------- your own slip ---------- */

.reveal { position: relative; border-radius: var(--radius-xl); }
.reveal > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 32px 0 8px; }
.reveal > summary::-webkit-details-marker { display: none; }
.reveal > summary:focus-visible { outline-offset: 6px; }
.wrapped { position: relative; width: 270px; height: 200px; }
.wrapped .slip-w { position: absolute; inset: 20px 0 0 0; transform: rotate(-4deg); }
.wrapped .slip { height: 180px; padding: 0; }
.wrapped .rib-h, .wrapped .rib-v { position: absolute; background: var(--gold); }
.wrapped .rib-h { left: 0; right: 0; top: 50%; height: 26px; margin-top: -13px; }
.wrapped .rib-v { top: 0; bottom: 0; left: 50%; width: 26px; margin-left: -13px; }
.wrapped .loop { position: absolute; top: 0; width: 56px; height: 38px; border: 8px solid var(--gold); border-radius: 50%; }
.wrapped .loop:nth-of-type(1) { left: 76px; transform: rotate(-22deg); }
.wrapped .loop:nth-of-type(2) { right: 80px; transform: rotate(14deg); }
.wrapped .knot { position: absolute; left: 50%; top: 18px; width: 22px; height: 22px; margin-left: -9px; background: var(--gold-knot); border-radius: 6px; }
.open-me { display: flex; align-items: flex-start; gap: 4px; font: 700 28px/1.2 var(--font-hand); color: var(--night-ink); }
.open-me .d-arrow { transform: rotate(200deg) scale(.8); }
.drawn { width: 100%; }
.drawn .slip-w { transform: rotate(-2.5deg); }
.drawn .slip { padding: 34px 20px 26px 42px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.drawn .tape { left: 24%; }
.drawn .tape + .tape { left: 78%; transform: rotate(7deg); background: var(--tape-red); }
.drawn .label-in { font: 600 18px/1.3 var(--font-display); color: var(--muted); }
.drawn .name { font: 700 clamp(64px, 20vw, 104px)/.95 var(--font-hand); color: var(--bic); overflow-wrap: anywhere; transform: rotate(-3deg); transform-origin: left; }
.drawn .name .squiggle::after { height: 11px; -webkit-mask-size: 50px 11px; mask-size: 50px 11px; }
.drawn .d-heart { position: absolute; right: 26px; top: 82px; transform: rotate(12deg); }
.drawn .chips { margin-top: 14px; }
.hide-me { font: 600 14px/1 var(--font-display); color: var(--night-soft); text-decoration: underline; text-underline-offset: 3px; }
.reveal:not([open]) .drawn, .reveal:not([open]) .hide-me, .reveal:not([open]) .confetti,
.reveal[open] .wrapped, .reveal[open] .open-me, .reveal[open] .warn { display: none; }
.warn { text-align: center; }
.reveal[open] .drawn .slip-w { animation: unfold .45s ease-out; }
@keyframes unfold { from { transform: rotate(-8deg) scale(.85); opacity: 0; } }
/* Already opened on an earlier visit: no unwrapping again. */
.reveal.seen .confetti { display: none; }
.reveal.seen .drawn .slip-w { animation: none; }
.after-reveal { padding-top: 28px; }

.wish { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 22px/32px var(--font-hand); color: var(--ink); padding: 14px 16px 16px 40px; }
.wish a { font: 700 13px/1 var(--font-display); color: var(--bic); background: var(--bic-tint); border-radius: var(--radius-pill); padding: 4px 9px; text-decoration: none; vertical-align: 3px; white-space: nowrap; }
.save-row { display: flex; align-items: center; gap: 14px; }
.save-row .stamp { transform: rotate(-8deg); font-size: 12px; background: transparent; }

/* ---------- dead ends ---------- */

.message { display: flex; flex-direction: column; align-items: center; gap: 26px; padding-top: 48px; text-align: center; }
.message .btn { max-width: 360px; }

.prose { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.prose h2 { font-size: 20px; margin-top: 16px; }

/* Privacy, terms and the help page: the title with a list of sections beside the text on desktop */
.doc-side { display: flex; flex-direction: column; gap: 8px; }
.doc-side h1 { font-size: clamp(34px, 8vw, 48px); line-height: 1.02; letter-spacing: -.04em; overflow-wrap: break-word; }
.doc-toc { display: none; }
.doc-body { margin-top: 18px; }
.doc-body section { scroll-margin-top: 20px; }
@media (min-width: 1024px) {
  .doc { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 16px; }
  .doc-side { position: sticky; top: 24px; }
  /* Long Dutch words (Gebruiksvoorwaarden) must fit the column whole, or break with a hyphen. */
  .doc-side h1 { font-size: 34px; hyphens: auto; overflow-wrap: normal; }
  .doc-toc { display: block; margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--ink); }
  .doc-toc ol { list-style: none; margin: 0; padding: 0; }
  .doc-toc a { display: block; padding: 7px 0; color: var(--ink); font: 600 15px/1.3 var(--font-display); text-decoration: none; }
  .doc-toc a:hover { color: var(--bic); text-decoration: underline; text-underline-offset: 3px; }
  .doc-body { max-width: 780px; margin-top: 0; padding: 40px 56px 48px; gap: 0; }
  .doc-body section { display: flex; flex-direction: column; gap: 10px; padding: 22px 0; border-top: 1px dashed var(--line); }
  .doc-body section:first-child { padding-top: 0; border-top: 0; }
  .doc-body h2 { margin-top: 0; font-size: 23px; }
  .doc-body p { max-width: 66ch; font-size: 17px; line-height: 1.6; }
}

/* Guides for one occasion: the article with the draw form beside it on desktop. On a phone the form follows the
   first paragraph, or the article when the guide comes first. */
.landing { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.landing-head { display: flex; flex-direction: column; gap: 10px; }
.landing-head h1 { font-size: clamp(34px, 8vw, 48px); line-height: 1.02; letter-spacing: -.04em; overflow-wrap: break-word; }
.landing-lede { max-width: 66ch; font-size: 18px; line-height: 1.55; }
.guide-first .landing-tool { order: 3; }
.landing-body { margin-top: 0; }
.landing-body section { display: flex; flex-direction: column; gap: 10px; }
.book.landing-book { display: flex; flex-direction: column; padding: 0; gap: 0; }
.landing-book .page { padding: 22px 18px 24px 44px; }
.landing-book .page::before { left: 30px; }
.landing-tool-title { font-size: 22px; margin-bottom: 12px; }
.landing-book .book-form { overflow: visible; }
.landing-book .names-field { min-height: 0; }
.landing-book .lined { flex: none; height: 232px; }
@media (min-width: 1024px) {
  .landing { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 40px; row-gap: 24px; align-items: start; }
  .landing-head, .landing-body { grid-column: 1; }
  .landing-tool { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 24px; }
  .landing-head h1 { font-size: 48px; }
  .landing-body { max-width: none; }
}

/* Gift guides and tips (src/guides.ts): the occasion-guide layout, with numbered picks and a comparison table. */
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: inherit; }
.guide-disclosure { max-width: 66ch; }
.picks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pick { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); }
.pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pick-head h3 { font-size: 19px; }
.pick-n { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 4px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 15px; vertical-align: 2px; }
.pick-price { flex: none; font: 700 18px/1 var(--font-display); white-space: nowrap; }
.pick-facts { font: 600 14px/1.3 var(--font-display); color: var(--muted); }
.pick-link { font-weight: 700; text-underline-offset: 3px; }
.compare { width: 100%; margin: 4px 0 8px; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); }
.compare th, .compare td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px dashed var(--line); }
.compare td { white-space: nowrap; }
.compare thead th { font: 700 13px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.compare tbody th { font: 700 15px/1.3 var(--font-display); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare td.compare-price { font-weight: 700; }
@media (max-width: 560px) {
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 8px 4px; }
  .compare th:first-child { padding-left: 8px; }
  .compare tbody th { font-size: 14px; }
  .compare-price { display: none; }
}
@media (max-width: 400px) {
  .compare { width: calc(100% + 24px); margin-inline: -12px; font-size: 13px; }
  .compare td { white-space: normal; }
  .compare thead th { font-size: 11px; letter-spacing: 0; }
  .compare tbody th { font-size: 13px; }
}
.guide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guide-list li { display: flex; flex-direction: column; gap: 2px; }
.guide-list a { font: 700 17px/1.3 var(--font-display); }
.guides-index { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.guides-index > section > h2 { margin-bottom: 12px; }
.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px 18px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-press-paper); }
.guide-card:hover { color: var(--ink); transform: translateY(-1px); }
.guide-card-title { font: 700 19px/1.2 var(--font-display); color: var(--bic); }
.guide-card-sum { font-size: 15px; line-height: 1.45; color: var(--muted); }
.guides-more { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
@media (min-width: 1024px) {
  .guide .doc-body .picks { gap: 16px; }
  .guide .doc-body section.guide-next { border-top: 2px solid var(--ink); }
}

/* ---------- confirm sheet ---------- */

.confirm { width: 100%; max-width: 640px; margin: auto auto 0; border: 0; padding: 0; background: transparent; color: var(--ink); filter: drop-shadow(0 -6px 18px rgba(0, 0, 0, .25)); }
.confirm::backdrop { background: var(--scrim); }
.confirm .slip { padding: 40px 24px max(30px, env(safe-area-inset-bottom)) 46px; display: flex; flex-direction: column; gap: 18px; clip-path: polygon(0% 14px, 5% 4px, 11% 12px, 18% 0, 25% 10px, 32% 3px, 40% 12px, 47% 0, 55% 10px, 62% 3px, 70% 12px, 77% 0, 85% 10px, 92% 3px, 100% 12px, 100% 100%, 0% 100%); }
.confirm-text { font: 700 22px/1.3 var(--font-display); }
.confirm form { display: flex; flex-direction: column; gap: 10px; }

/* ---------- home: the open notebook ---------- */
/* The left page explains, the right page is the form. On small screens the pages stack on the night ground; from
   1024 × 700 the notebook fills exactly one screen. The index tabs turn the left page with :target, so no script. */

body.onepager { background: var(--night); }
.onepager .main-content { flex: none; padding: 0; }
.onepager .band { flex: 1; display: flex; flex-direction: column; }

.book { position: relative; display: flex; flex-direction: column; gap: 20px; padding-bottom: 24px; color: var(--ink); }
.book a { color: var(--bic); }
.book .hint { color: var(--muted); }
.book .hand { color: var(--bic); }
.page { position: relative; display: flex; flex-direction: column; background-color: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow-sheet); padding: 26px 20px 28px 46px; }
/* The red margin line of a school notebook */
.page::before { content: ""; position: absolute; top: 0; bottom: 0; left: 32px; width: 2px; background: var(--margin); opacity: .75; }
.page-left { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 22px 22px; }

.leaf { position: relative; display: flex; flex-direction: column; gap: 18px; }
.leaf-more { display: none; }
.leaf-more:target { display: flex; }
.book:has(.leaf-more:target) .leaf-intro { display: none; }
.leaf-more h2 { font-size: 30px; }
.leaf-more p { max-width: 52ch; }
.leaf-legal, .legal-text { gap: 8px; }
.legal-text { display: flex; flex-direction: column; }
.leaf-legal h3 { margin-top: 14px; font-size: 18px; }
.leaf-legal p { font-size: 15px; line-height: 1.55; }
/* The guides leaf: a plain list of links, gift ideas first. */
.leaf-guides h3 { margin-top: 4px; font-size: 18px; }
.guide-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.guide-links a { display: inline-block; padding: 4px 0; font: 700 18px/1.3 var(--font-display); text-underline-offset: 3px; }
/* Privacy and terms: one quiet line under the notebook, on the night ground. */
.book-legal { display: flex; justify-content: center; gap: 18px; font-size: 13px; }
.book-legal a { color: var(--night-soft); text-underline-offset: 3px; }
.book-legal a:hover { color: var(--night-ink); }
.leaf-back { align-self: flex-start; font: 700 15px/1 var(--font-display); padding: 12px 0 4px; }

.today { align-self: flex-end; min-height: 1.3em; font-size: 20px; transform: rotate(-2deg); }
.book-title { font-size: clamp(40px, 10vw, 64px); line-height: 1; letter-spacing: -0.045em; }
.book-sub { display: block; margin-top: .22em; font-size: .52em; letter-spacing: -0.025em; }
.fix { position: relative; white-space: nowrap; }
.fix s { color: var(--muted); text-decoration-color: var(--bic); text-decoration-thickness: .09em; }
/* The correction, written in pen next to the crossed-out word */
.fix-word { position: absolute; left: calc(100% + .2em); bottom: -.05em; font: 700 1.15em/1 var(--font-hand); letter-spacing: 0; color: var(--bic); transform: rotate(-7deg); white-space: nowrap; }
.book-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.book-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; }
.book-steps p { font: 700 20px/1.3 var(--font-display); letter-spacing: -0.01em; }
/* Line height 1 and a nudge down: Kalam's tall line box otherwise lifts the digit off the middle of its ring. */
.ring-n { display: grid; place-items: center; width: 40px; height: 40px; padding-top: 3px; border: 2.5px solid var(--bic); border-radius: 50% 46% 52% 48% / 48% 54% 46% 52%; font-size: 22px; font-weight: 700; line-height: 1; transform: rotate(-6deg); }
.book-steps li:nth-child(2) .ring-n { border-radius: 46% 54% 48% 52% / 54% 46% 52% 48%; transform: rotate(5deg); }

/* The way in for ChatGPT and Claude: a note in pen under the steps, with a scribbled arrow */
.ai-scribble { margin: 4px 0 0 54px; transform: rotate(-2deg); transform-origin: left; }
/* Inline, so on a narrow screen the arrow wraps along with the last word */
.book .ai-scribble a { display: inline-block; padding: 8px 0; font-size: 22px; line-height: 1.3; text-decoration: none; }
.book .ai-scribble a:hover { text-decoration: underline; text-underline-offset: 5px; }
.ai-scribble svg { display: inline-block; width: 40px; height: 20px; margin-left: 6px; vertical-align: middle; }
/* The popup with the ChatGPT and Claude buttons, each in its own brand colours */
.ai-dialog { width: min(420px, calc(100% - 32px)); border: 0; padding: 0; background: transparent; color: var(--ink); }
.ai-dialog::backdrop { background: var(--scrim); }
.ai-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 18px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sheet); }
.ai-card h2 { font-size: 26px; line-height: 1.1; padding-right: 36px; }
.ai-card p { color: var(--muted); }
.ai-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
.ai-brands { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.brand { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: var(--radius-lg); font: 700 18px/1 var(--font-display); text-decoration: none; }
.brand-chatgpt, .brand-chatgpt:hover { background: #000000; color: #ffffff; }
.brand-claude, .brand-claude:hover { background: #d97757; color: #141413; }
.brand:hover { filter: brightness(1.08); }
.ai-more { align-self: center; padding: 10px 0 4px; font-size: 15px; }
.ai-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-buttons .btn { width: auto; padding: 0 18px; }

/* De Warmste Week, on a red gift tag at the foot of the left page */
.charity { max-width: 420px; margin-top: 8px; }
.charity .tag-string { background: var(--gold); }
.charity-tag { flex-direction: column; align-items: flex-start; gap: 6px; background: var(--holly); color: #ffffff; padding: 14px 18px 14px 46px; transform: rotate(-2deg); }
.charity-kicker { font: 700 19px/1 var(--font-hand); color: var(--gold); /* 3.7:1 on holly: large text only */ transform: rotate(-2deg); }
/* The official logo, stuck on the tag's corner like a sticker, but straight: the terms allow it only unchanged. */
.charity-logo { position: absolute; z-index: 3; top: -36px; right: -10px; width: 60px; height: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.charity:has(.charity-logo) .charity-kicker { padding-right: 34px; white-space: nowrap; }
.charity-leaf-logo { width: 96px; height: auto; }
.charity-title { font: 700 19px/1.2 var(--font-display); letter-spacing: -0.01em; }
.charity-links { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
.charity-links a { display: inline-flex; align-items: center; min-height: 28px; }
.book .charity-tag a { color: #ffffff; font-weight: 700; text-underline-offset: 3px; }
.tab.holly { background: var(--holly); }
.book a.tab.holly { color: #ffffff; }

/* The form, on the right page */
.book-form { display: flex; flex-direction: column; gap: 16px; }
.book-label { display: block; font: 700 19px/1.2 var(--font-display); margin-bottom: 6px; }
.book-label.small-label { font: 400 14px/1.2 var(--font-body); color: var(--muted); margin-bottom: 2px; }
.input.on-line { border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; padding: 4px 2px; font-size: 28px; }
/* A field that is only a line gets a blue, thicker line on focus, not a box. */
.input.on-line:focus-visible { outline: 0; border-bottom-color: var(--bic); box-shadow: 0 1px 0 var(--bic); }
.lined { display: flex; height: 264px; }
.line-nos { flex: none; width: 26px; padding: 4px 8px 4px 0; overflow: hidden; white-space: pre; text-align: right; font-size: 13px; line-height: 32px; color: var(--muted); }
.lined .names-box { flex: 1; min-width: 0; }
.lined .input { height: 100%; border: 0; border-radius: 0; padding: 4px; font-size: 24px; line-height: 32px; resize: none;
  background: transparent linear-gradient(transparent 31px, var(--line) 31px) 0 4px / 100% 32px local; }
/* Inset, so the notebook's scroll container cannot clip keyboard focus. */
.lined .input:focus-visible { outline: 0; box-shadow: inset 2px 0 0 var(--bic); }
@media (forced-colors: active) {
  .lined .input:focus-visible, .tag input:focus-visible, .input.on-line:focus-visible { outline: 3px solid Highlight; outline-offset: -3px; }
}
.tick > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 44px; padding: 10px 0; cursor: pointer; }
.tick > summary::-webkit-details-marker { display: none; }
.tick strong { font: 700 16px/1.3 var(--font-display); }
.tick-box { position: relative; align-self: center; flex: none; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 3px; }
.tick[open] .tick-box::after { content: ""; position: absolute; left: 4px; top: -7px; width: 8px; height: 16px; border: solid var(--bic); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.tick .fold-body { padding: 4px 0 8px 30px; }
.book-submit { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 8px; }
.ready-hint { align-self: flex-end; display: flex; align-items: flex-end; gap: 4px; margin-right: 10%; font-size: 20px; transform: rotate(-3deg); }
.ready-hint svg { width: 44px; height: 30px; }
.book-form .btn-holly { margin-top: 0; }

/* Index tabs; on small screens a row under the notebook */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.book a.tab { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-md); color: #1a1d2b; font: 700 15px/1 var(--font-display); text-decoration: none; }
.tab.gold { background: var(--gold); }
.tab.blue { background: #cfd7fb; }
.tab.kraft { background: var(--kraft); }

/* Phones and tablets: the title on the night ground, then the form, then the rest of the left page. */
@media (max-width: 1023px), (max-height: 699px) {
  .leaf-intro, .leaf-followup { display: contents; }
  .page-left, .today { display: none; }
  .book-title { order: 1; color: var(--night-ink); }
  .fix s { color: var(--night-soft); text-decoration-color: var(--gold); }
  .book .fix-word { position: static; display: inline-block; margin-left: .2em; color: var(--gold); }
  .page-right { order: 2; }
  .leaf-more:target { order: 1; background-color: var(--paper); border-radius: var(--radius-sm); padding: 20px; }
  /* Under the form the steps are a recap, not headings: three short columns, the number above the words. */
  .book-steps { order: 3; flex-direction: row; gap: 12px; color: var(--night-ink); padding-top: 18px; }
  .book-steps li { flex: 1 1 0; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; align-items: start; gap: 8px; text-align: center; }
  .book-steps p { font: 600 15px/1.3 var(--font-display); letter-spacing: 0; hyphens: auto; }
  .book .book-steps .hand { color: var(--gold); }
  .ring-n { width: 34px; height: 34px; padding-top: 2px; border-color: var(--gold); font-size: 19px; }
  .ai-scribble { order: 3; margin-left: 0; }
  .book .ai-scribble a { font-size: 20px; }
  .book .ai-scribble a { color: var(--gold); }
  .charity { order: 4; }
  .tabs { order: 6; }
}

@media (min-width: 1024px) and (min-height: 700px) {
  body.onepager { height: 100vh; height: 100dvh; }
  .onepager .wrap.wide { max-width: 1240px; }
  .onepager .hero { flex: 1; min-height: 0; gap: 8px; padding: 6px 0 10px; }
  .book { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); gap: 0; padding: 0 46px 0 0; }
  .page { min-height: 0; padding: 30px 40px 26px 66px; }
  .page::before { left: 46px; }
  /* The fold in the middle of the spread */
  .page-left { position: absolute; inset: 0 auto 0 0; width: calc((100% - 46px) / 2); pointer-events: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); box-shadow: var(--shadow-sheet), inset -24px 0 26px -22px rgba(22, 38, 122, .35); }
  .page-right { grid-column: 2; grid-row: 1 / 3; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow-sheet), inset 24px 0 26px -22px rgba(22, 38, 122, .35); }
  .leaf { flex: 1; min-height: 0; overflow: auto; }
  .leaf-intro { grid-column: 1; grid-row: 1; margin: 30px 40px 0 66px; overflow: visible; container-type: inline-size; }
  .leaf-followup { grid-column: 1; grid-row: 2; margin: 18px 40px 26px 66px; padding-bottom: 160px; }
  .today { position: absolute; top: -14px; right: 0; }
  /* As high as the screen allows, but never wider than the page. --fit is the width the heading needs, in font
     sizes: the second line plus the pen word that hangs past its end, or the title if that is wider. Measured per
     language, with a little room; e2e/home.e2e.ts checks every language, so a new wording that no longer fits
     fails there. */
  .book-title { --fit: 7.2; font-size: min(clamp(48px, 8.4vh, 78px), calc(100cqi / var(--fit))); }
  :lang(es) .book-title { --fit: 7; }
  :lang(en) .book-title, :lang(it) .book-title { --fit: 7.55; }
  :lang(de) .book-title { --fit: 7.65; }
  :lang(fr) .book-title { --fit: 8.6; }
  .book-steps { margin-top: 10px; }
  /* The tag hangs at the foot of the left page. On the paper its hole shows paper. */
  .charity { position: absolute; left: 0; right: 0; bottom: 4px; z-index: 2; max-width: 360px; margin: 0; }
  .book .charity-tag::before { background: var(--paper); }
  .charity-title { font-size: 17px; }
  .charity-links { font-size: 13px; }
  /* An open leaf gets the whole left page; the form stays in the right-hand column. */
  .book:has(.leaf-more:target) .leaf-followup { display: none; }
  .leaf-more { grid-column: 1; grid-row: 1 / 3; padding: 30px 40px 28px 66px; }
  /* The names take the free height; the form only scrolls when an option is open on a small screen. */
  .book-form { flex: 1; min-height: 0; overflow: auto; padding: 2px 4px 4px 2px; }
  .names-field { flex: 1 1 auto; min-height: 170px; display: flex; flex-direction: column; }
  .lined { flex: 1; min-height: 0; height: auto; }
  /* The tabs get smaller on a short screen, so the last one still hangs on the notebook. */
  .tabs { position: absolute; right: 0; top: clamp(20px, 5vh, 56px); flex-direction: column; gap: clamp(6px, 1.1vh, 10px); width: 46px; }
  .book a.tab { writing-mode: vertical-rl; width: 46px; min-height: 0; padding: clamp(10px, 2vh, 18px) 0; font-size: clamp(13px, 1.9vh, 15px); border-radius: 0 10px 10px 0; box-shadow: 2px 2px 0 rgba(0, 0, 0, .18); }
}

/* ---------- the organiser's page and your own page: the plakboek ---------- */
/* Both lie on the December night. White paper holds the lists, yellow what you write or send next, kraft the questions
   and the link. Wide screens show three columns; a phone shows two tabs at the bottom. */

body.night-page { background: var(--night); }
.night-page .main-content { color: var(--night-ink); padding-top: 8px; }
.board-top { position: relative; display: flex; flex-direction: column; gap: 6px; }
.board-top h1 { font-size: clamp(34px, 8vw, 48px); line-height: 1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.board-top .meta { color: var(--night-soft); font-size: 17px; }
.board-top .title-row { align-items: center; }
.board-top .sticky { align-self: flex-start; max-width: 560px; margin-top: 10px; }
.board-top .inline-body { max-width: 560px; margin-top: 12px; padding: 18px; background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); }
/* The details under the title: budget and date as pills, and a filled pencil pill that says they can change. Any of
   them opens the form. */
.edit-details > summary { list-style: none; display: block; width: fit-content; cursor: pointer; border-radius: var(--radius-pill); }
.edit-details > summary::-webkit-details-marker { display: none; }
.edit-details > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fact { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border: 1.5px solid color-mix(in srgb, var(--night-ink) 40%, transparent); border-radius: var(--radius-pill); color: var(--night-ink); font: 600 15px/1 var(--font-display); }
.fact.add { border-style: dashed; color: var(--night-soft); }
.fact.edit { border-color: var(--night-ink); background: var(--night-ink); color: var(--night); }
.fact.edit svg { width: 16px; height: 16px; }
.edit-details > summary:hover .fact:not(.edit) { border-color: var(--night-ink); }
.edit-details > summary:hover .fact.edit, .edit-details[open] .fact.edit { border-color: var(--gold); background: var(--gold); color: #1a1d2b; }
.title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: start; }
.title-row .inline-edit[open] { grid-column: 1 / -1; }
.inline-edit > summary, .add-row > summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font: 600 15px/1.2 var(--font-display); color: var(--bic); text-decoration: underline; text-underline-offset: 4px; }
.board-top .inline-edit > summary { color: var(--night-ink); }
.inline-edit > summary::-webkit-details-marker, .add-row > summary::-webkit-details-marker { display: none; }
.inline-body { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 4px; }
.notice { margin-top: 0; margin-bottom: 28px; max-width: 560px; }
.next-year { margin: 0 0 32px; padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.next-year textarea.input { resize: vertical; }

.board { display: flex; flex-direction: column; gap: 28px; }
.board-col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.calendar-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 600 15px/1.2 var(--font-display); }
.links form { display: contents; }
.links a, .linkb { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: 600 15px/1.2 var(--font-display); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.linkb[hidden] { display: none; }
.on-night { display: flex; flex-direction: column; gap: 10px; color: var(--night-ink); }
.on-night h2 { font-size: 18px; line-height: 1.2; letter-spacing: -.01em; }
.on-night a, .board-top a { color: var(--night-ink); }
.on-night .soft, .linkb.soft { color: var(--night-soft); }
.btn-dark { width: auto; flex: none; min-height: 44px; padding: 0 16px; font-size: 16px; background: #1a1d2b; color: #ffffff; }

/* White paper: the people, and the wish list of whoever you drew */
.scrap { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px 18px 18px 42px; background: var(--surface); color: var(--ink); box-shadow: 0 10px 18px rgba(0, 0, 0, .3); }
.scrap::before { content: ""; position: absolute; top: 0; bottom: 0; left: 26px; width: 1.5px; background: var(--margin); }
.scrap h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.scrap .wish { padding: 0; font-size: 23px; line-height: 34px; background: linear-gradient(transparent 33px, var(--line) 33px) 0 0 / 100% 34px; }
.people h2 .mark { margin-right: 2px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; border-bottom: 1.5px dashed var(--line); }
.status-row .who { font: 700 26px/1.1 var(--font-hand); color: var(--bic); overflow-wrap: anywhere; min-width: 0; }
.status-row .st { font-size: 14px; line-height: 1.3; color: var(--muted); }
.status-row .st b { color: var(--done-ink); }
.status-row form { display: flex; align-items: center; gap: 6px; flex: none; }
.status-row.is-disputed { flex-wrap: wrap; background: color-mix(in srgb, var(--holly) 10%, transparent); margin: 0 -12px; padding: 8px 12px; }
.status-row.is-disputed .st { color: var(--holly-text); font-weight: 700; }
/* A small pill at the end of the row, not a bar across it: it asks for a look, the name already says what is wrong. */
.status-row.is-disputed form { flex: none; margin-left: auto; }
.status-row.is-disputed .btn { width: auto; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); font-size: 14px; box-shadow: none; }
.who-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 0; }
.release { border: 0; background: none; font: 600 14px/1 var(--font-display); color: var(--holly-text); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 4px; cursor: pointer; }
.row-menu { position: relative; flex: none; }
.row-menu > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 22px/1 var(--font-display); color: var(--muted); cursor: pointer; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu[open] > summary { background: var(--bic-tint); color: var(--bic); }
.row-menu-body { position: absolute; right: 0; top: 46px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; padding: 4px 12px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-sheet); white-space: nowrap; }
/* The menu for the whole group, beside the title: a ring on the night like the pills under it, and a popover like the language menu. */
.group-menu-btn { anchor-name: --group-menu; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid color-mix(in srgb, var(--night-ink) 40%, transparent); border-radius: 50%; background: none; color: var(--night-ink); font: 700 20px/1 var(--font-display); cursor: pointer; }
.group-menu-btn:hover, .group-menu-btn:has(+ .group-menu:popover-open) { border-color: var(--night-ink); background: var(--night-ink); color: var(--night); }
.group-menu { min-width: 220px; padding: 6px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sheet); }
/* Under the button where the browser can anchor it; otherwise the popover keeps its own place, in the middle. */
@supports (anchor-name: --group-menu) { .group-menu { position-anchor: --group-menu; inset: auto; top: anchor(bottom); right: anchor(right); margin: 6px 0 0; } }
.group-menu a, .group-menu button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); font: 600 16px/1 var(--font-display); text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
.group-menu button[hidden] { display: none; }
.group-menu a:hover, .group-menu a:focus-visible, .group-menu button:hover, .group-menu button:focus-visible { background: var(--bic-tint); color: var(--bic); }
.group-menu .danger, .group-menu .danger:hover, .group-menu .danger:focus-visible { color: var(--holly-text); }
.add-row > summary { text-decoration: none; }
.add-row > summary::before { content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border: 2px solid currentColor; border-radius: 50%; font-size: 18px; }
.qr-box { display: flex; align-items: center; gap: 18px; }
.qr { flex: none; width: 140px; height: 140px; border: 2px solid var(--ink); border-radius: var(--radius-sm); }

/* Yellow: the message to send now, and your own wish list */
.note { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 24px; background: var(--gold); color: #1a1d2b; box-shadow: 0 10px 18px rgba(0, 0, 0, .3); }
.note h2 { font-size: 22px; line-height: 1.15; letter-spacing: -.015em; }
.note .msg { font: 400 20px/1.35 var(--font-hand); overflow-wrap: anywhere; }
.note textarea { display: block; width: 100%; min-height: 230px; border: 0; padding: 0; resize: vertical; background: linear-gradient(transparent 31px, rgba(26, 29, 43, .3) 31px) 0 0 / 100% 32px local; font: 400 22px/32px var(--font-hand); color: #1a1d2b; }
/* The gold focus ring would vanish on the gold note. */
.note :focus-visible { outline-color: #1a1d2b; }

/* The share card: the message to send now, WhatsApp first, then e-mail and copy side by side, and one quiet link */
.share-card { gap: 14px; }
.share-row { display: flex; gap: 8px; }
.pill { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1.5px solid #1a1d2b; border-radius: var(--radius-pill); background: transparent; color: #1a1d2b; font: 600 15px/1 var(--font-display); text-decoration: none; cursor: pointer; }
.pill:hover { background: rgba(26, 29, 43, .08); }
.pill[hidden] { display: none; }

/* Kraft: questions, with the conversation as bubbles */
.qcard { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--kraft); color: #1a1d2b; border-radius: var(--radius-sm); box-shadow: 0 8px 14px rgba(0, 0, 0, .25); }
.qcard h2 { font-size: 18px; line-height: 1.2; letter-spacing: -.01em; }
.qcard .ask-hint { margin: 0; font-size: 14px; line-height: 1.45; color: var(--kraft-ink); }
.ask-hint-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--bic); }
#ask-question { scroll-margin-top: 24px; }
.thread { display: flex; flex-direction: column; gap: 6px; }
.qcard .bubble { margin: 0; border: 0; }
.qcard .bubble.me { color: var(--ink); }
.waiting { align-self: flex-end; font-size: 13px; color: var(--kraft-ink); }
.compose { display: flex; gap: 8px; align-items: flex-end; }
.compose textarea { flex: 1; min-width: 0; min-height: 44px; padding: 9px 12px; border: 2px solid #1a1d2b; border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 16px/1.35 var(--font-body); resize: none; field-sizing: content; }
.compose textarea::placeholder { color: var(--placeholder); }

/* Your own page: the slip with their list and questions beside it, your own list last */
.me-give .after-reveal { display: flex; flex-direction: column; gap: 28px; padding-top: 0; }
.reveal[open] .after-reveal { padding-top: 8px; }

/* Bottom tabs on a phone. Which part shows: the one a link points at, else the page's own choice (start-b). */
.tabbar { display: none; }
@media (max-width: 959px) {
  /* A floating pill on the night: frosted, with the open tab as a white pill inside it. */
  .tabbar { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom, 0px)); z-index: 30; width: min(calc(100% - 32px), 380px); transform: translateX(-50%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 5px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--night) 70%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 12px 32px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08); }
  .tabbar a { position: relative; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border-radius: var(--radius-pill); color: var(--night-soft); font: 700 15px/1 var(--font-display); letter-spacing: -.005em; text-decoration: none; transition: background-color .2s ease, color .2s ease; -webkit-tap-highlight-color: transparent; }
  .tabbar a:active { transform: scale(.97); }
  .tabbar svg { width: 21px; height: 21px; flex: none; }
  .tabbar a[aria-current="page"] { background: var(--night-ink); color: var(--night); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
  .tabbar a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
  .tabbar .badge { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px; background: var(--holly); color: #ffffff; font-size: 12px; }
  body:has(.tabbar) { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .board > [id] { scroll-margin-top: 12px; }
  .board:not(.start-b) .tab-b, .board.start-b .tab-a { display: none; }
  .board:has(.tab-a:target, .tab-a :target) .tab-a, .board:has(.tab-b:target, .tab-b :target) .tab-b { display: flex; }
  .board:has(.tab-a:target, .tab-a :target) .tab-b, .board:has(.tab-b:target, .tab-b :target) .tab-a { display: none; }
  .me-give, .me-wish { flex-direction: column; gap: 28px; }
  /* In Delen the message to send comes first, the link after it. */
  #next { order: -1; }
}

@media (min-width: 960px) {
  .wrap.full { max-width: 1440px; padding-left: 48px; padding-right: 48px; }
  .board { display: grid; grid-template-columns: 340px minmax(0, 1fr) 380px; gap: 30px 36px; align-items: start; }
  .me-wish { display: flex; flex-direction: column; gap: 28px; }
  .me-give { grid-column: 1 / 3; }
  .me-give .reveal[open] { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 30px 36px; align-items: start; }
  .me-give .reveal > summary { padding-top: 8px; }
  .board .scrap { transform: rotate(.5deg); }
  .board .note { transform: rotate(1.2deg); }
  .board .qcard { transform: rotate(-.6deg); }
  /* The organiser: the people, and beside them the message to send. Together they fill the width. */
  .admin-board { grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr); }
  .admin-board .share-card { padding: 28px 28px 30px; gap: 16px; transform: rotate(.6deg); }
  .admin-board .share-card h2 { font-size: 26px; }
  .admin-board .share-card .msg { font-size: 23px; }
  /* The menu sits right after the title and opens to the right, where there is room. */
  .board-top .title-row { grid-template-columns: minmax(0, auto) auto; justify-content: start; }
  @supports (anchor-name: --group-menu) { .group-menu { right: auto; left: anchor(left); } }
}

/* Cards to print: a QR code per name */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; padding: 24px 0 40px; }
.card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; background: var(--surface); border: 2px dashed var(--ink); text-align: center; break-inside: avoid; }
.card .qr { width: 150px; height: 150px; border: 0; }
.card-name { font: 700 26px/1.1 var(--font-hand); color: var(--bic); }
@media print {
  body { background: #ffffff; }
  .site-header, .band, .foot, .print-intro { display: none; }
  .cards { grid-template-columns: repeat(3, 1fr); padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- wish lists: rows with a photo and price, and the bol.com search ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wish-photo { flex: none; width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #ffffff; border: 1.5px solid var(--line); }
.price { display: inline-flex; padding: 5px 9px; border-radius: var(--radius-pill); background: var(--gold); color: #1a1d2b; font: 700 13px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.shop-link { display: inline-flex; align-items: center; min-height: 32px; font: 700 14px/1.2 var(--font-display); color: var(--bic); text-decoration: underline; text-underline-offset: 3px; }

/* Their list on the white scrap */
.wish-rows, .own-rows { list-style: none; margin: 0; padding: 0; }
.wish-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1.5px dashed var(--line); }
.wish-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
/* The wish list heading is handwritten; the wishes themselves are plain text, easier to read and to search for. */
.their-list h2, .wish-note h2 { font: 700 28px/1.15 var(--font-hand); letter-spacing: 0; }
.their-list h2 { color: var(--bic); }
.wish-title { font: 600 18px/1.3 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.wish-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.wish-detail { font: 15px/1.4 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.gift-actions { flex: 0 1 auto; max-width: 45%; align-self: center; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 12px; text-align: right; }
.gift-actions form { min-width: 0; }
.gift-actions .add-small { max-width: 100%; padding: 8px 12px; line-height: 1.3; }
.gift-bought { font: 700 14px/1.4 var(--font-display); color: var(--holly-text); }
.shared-link { margin-top: 4px; }
.shared-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.shared-board { display: grid; gap: 24px; align-items: start; }
.list-picker > summary { font: 700 22px/1.3 var(--font-display); cursor: pointer; }
.list-picker nav { display: flex; flex-direction: column; margin-top: 12px; }
.list-picker nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; overflow-wrap: anywhere; border-top: 1px dashed var(--line); }
.list-picker nav a[aria-current] { font-weight: 700; }
.shared-board #gift-list { scroll-margin-top: 16px; }
@media (min-width: 900px) {
  .shared-board { grid-template-columns: minmax(220px, 300px) minmax(0, 640px); }
}

/* Search result prices and shared list actions */
.add-small { flex: none; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 700 15px/1 var(--font-display); cursor: pointer; }

/* Your own list on the yellow note */
.wish-note .note-hint { font-size: 14px; line-height: 1.45; color: #4a4224; }
.note-alert { font-weight: 700; }
[data-wish-form] button:disabled { opacity: .6; cursor: wait; }
.own-row { position: relative; border-bottom: 1.5px solid rgba(26, 29, 43, .28); }
/* The wish itself is the button that opens its editor; the remove button sits on top, at the right. */
.own-line { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 6px 48px 6px 0; cursor: pointer; list-style: none; }
.own-line::-webkit-details-marker { display: none; }
.own-pencil { flex: none; width: 16px; height: 16px; color: #4a4224; }
.own-edit[open] .own-pencil { visibility: hidden; }
.own-row .wish-photo { width: 44px; height: 44px; border-radius: 6px; border-color: rgba(26, 29, 43, .2); }
.own-remove-form { position: absolute; top: 7px; right: 0; }
.own-editor { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 0 14px; }
.own-editor .add-fields { align-self: stretch; }
.own-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.own-title { font: 600 17px/1.3 var(--font-body); overflow-wrap: anywhere; }
.own-sub { font-size: 14px; color: #4a4224; font-variant-numeric: tabular-nums; }
.own-detail { font-size: 14px; line-height: 1.35; color: #4a4224; overflow-wrap: anywhere; }
.own-remove { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: #1a1d2b; cursor: pointer; }
.own-remove:hover { background: rgba(26, 29, 43, .1); }
.own-remove svg { width: 18px; height: 18px; }
.add-wish { display: flex; flex-direction: column; gap: 8px; }
.add-line { display: flex; gap: 8px; }
.add-line input { flex: 1; min-width: 0; min-height: 44px; padding: 9px 12px; border: 2px solid #1a1d2b; border-radius: var(--radius-md); background: #ffffff; color: #1a1d2b; font: 16px/1.3 var(--font-body); }
.add-line input::placeholder { color: #68708a; }
/* The link and details stay visible for a link-only wish too. Browsers without :has() always show them. */
.add-wish:has(#wish:placeholder-shown):has(#wish-link:placeholder-shown) .add-extra { display: none; }
.add-fields { display: flex; flex-direction: column; gap: 4px; }
.add-fields label { margin-top: 4px; font-size: 14px; font-weight: 700; }
.add-fields input { min-height: 44px; padding: 9px 12px; border: 2px solid #1a1d2b; border-radius: var(--radius-md); background: #ffffff; color: #1a1d2b; font: 16px/1.3 var(--font-body); }
.add-fields input::placeholder { color: #68708a; }

/* The bol.com search */

/* "Email me my link": an address and a button on one line, wrapping on a narrow phone. */
.keep-mail .mail-line { display: flex; flex-wrap: wrap; gap: 8px; }
.keep-mail .mail-line .input { flex: 1 1 200px; min-width: 0; }
.keep-mail .sticky { transform: none; margin: 0; }
/* In Messenger, Facebook or Instagram: the same box as a yellow note right under the title, because their browser can
   forget the picked name. Its result notes are white paper on the yellow. */
.keep-mail.in-app { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 560px; margin-top: 12px; padding: 18px; background: var(--gold); color: #1a1d2b; box-shadow: var(--shadow-sticky); }
.keep-mail.in-app h2 { font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.keep-mail.in-app .mail-line { align-self: stretch; }
.keep-mail.in-app .sticky:not(.green) { background: #ffffff; box-shadow: none; }
.keep-mail.in-app .input { border-color: #1a1d2b; background: #ffffff; color: #1a1d2b; }
.keep-mail.in-app .input::placeholder { color: #68708a; }
.lost-form { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; text-align: left; }

.wish-note .finder-wish-link a { color: inherit; text-underline-offset: 2px; }

/* ---------- the gift finder: an open notebook on the December night ---------- */
/* The left page asks, as a sentence to fill in; the right page holds what bol has and the notes from our own guide.
   On desktop the left page stays put while the right page scrolls. On a phone the pages stack. */

.fv-book { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 8px 0 40px; color: var(--ink); }
.fv-book a { color: var(--bic); text-underline-offset: 3px; }
.fv-book .hint { color: var(--muted); }
.fv-page { position: relative; min-width: 0; background-color: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow-sheet); padding: 24px 20px 28px 46px; }
.fv-page::before { content: ""; position: absolute; top: 0; bottom: 0; left: 32px; width: 2px; background: var(--margin); opacity: .75; }
.fv-left { container-type: inline-size; display: flex; flex-direction: column; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 22px 22px; }
.fv-left .today { position: absolute; top: 14px; right: 22px; color: var(--bic); }
.fv-title { font-size: min(64px, calc(100cqi / 5.9)); line-height: 1; letter-spacing: -.045em; margin-top: 10px; }
.fv-sub { margin: 6px 0 26px; font: 700 clamp(19px, 4.6vw, 24px)/1.25 var(--font-display); letter-spacing: -.02em; }
.fv-sub .fix { white-space: normal; }
.fv-sub .fix s { white-space: nowrap; color: var(--muted); text-decoration-color: var(--bic); }
.fv-book .fv-sub .fix-word { position: static; color: var(--bic); display: inline-block; margin-left: .15em; font-size: 1.2em; }

/* The sentence: a blank line to write on, then amounts to circle with a red pen. */
.fv-form { display: flex; flex-direction: column; gap: 6px; }
.fv-line { display: block; padding: 0; font: 400 clamp(22px, 5.6vw, 27px)/1.2 var(--font-hand); color: var(--ink); }
.fv-blank { width: 100%; min-height: 48px; margin-bottom: 14px; padding: 2px 4px 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; font: 400 clamp(24px, 6vw, 30px)/1.3 var(--font-hand); color: var(--bic); }
.fv-blank::placeholder { color: var(--placeholder); opacity: 1; }
.fv-blank:focus { outline: none; border-bottom-color: var(--bic); box-shadow: 0 2px 0 var(--bic); }
.fv-amounts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: 0 0 18px; padding: 0; border: 0; }
.fv-amounts legend { float: left; width: 100%; margin-bottom: 6px; }
.fv-amount { position: relative; cursor: pointer; }
.fv-amount input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fv-amount span { position: relative; display: inline-block; padding: 6px 12px; font: 400 25px/1.2 var(--font-hand); color: var(--muted); }
.fv-amount:last-child span { font-size: 20px; }
.fv-amount input:checked + span { color: var(--bic); }
.fv-amount input:checked + span::after { content: ""; position: absolute; inset: 0 -2px 2px; border: 2.5px solid var(--holly-text); border-radius: 52% 46% 55% 44% / 58% 50% 52% 46%; transform: rotate(-5deg); animation: circle .3s ease-out; }
.fv-amount input:focus-visible + span { outline: 2px solid var(--bic); outline-offset: 2px; border-radius: 6px; }
@keyframes circle { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.fv-form .btn { margin-top: 4px; }
.fv-form[aria-busy="true"] .btn { opacity: .7; }

/* Hobbies as little paper labels; the chosen one is highlighted in yellow. */
.fv-chips { margin-top: 24px; }
.fv-chips-label { margin-bottom: 10px; font: 700 15px/1.3 var(--font-display); color: var(--muted); }
.fv-chips ul { display: flex; flex-wrap: wrap; gap: 10px 8px; margin: 0; padding: 0; list-style: none; }
.fv-chips li:nth-child(3n+1) { --r: -1.5deg; }
.fv-chips li:nth-child(3n+2) { --r: 1.2deg; }
.fv-chips li:nth-child(3n) { --r: -.6deg; }
.fv-book a.fv-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 8px; box-shadow: 2px 3px 0 var(--ink); color: var(--ink); font: 700 15px/1 var(--font-display); text-decoration: none; transform: rotate(var(--r)); transition: transform .15s; }
.fv-book a.fv-chip:hover { transform: rotate(0) translateY(-2px); }
.fv-book a.fv-chip[aria-current] { background: var(--gold); color: #1a1d2b; }
.fv-photo { display: none; }

/* The right page */
.fv-for { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; }
.fv-for h2 { font: 400 clamp(24px, 6vw, 30px)/1.15 var(--font-hand); color: var(--bic); overflow-wrap: anywhere; }
.fv-for h2 span { color: var(--muted); font-size: .8em; }
.fv-for a { font: 700 14px/1 var(--font-display); }
.fv-alert { margin: 4px 0 22px; font-size: 15px; }
.fv-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.fv-book a.fv-product { position: relative; display: flex; flex-direction: column; height: 100%; padding: 8px 8px 12px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 4px 0 var(--ink); color: var(--ink); text-decoration: none; transition: transform .15s; }
.fv-book a.fv-product:hover { transform: translateY(-3px) rotate(-.6deg); }
.fv-product-photo { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #ffffff; color: var(--bic); }
.fv-product-photo img { width: 100%; height: 100%; object-fit: contain; }
.fv-product-photo svg { width: 48%; }
.fv-price { position: absolute; top: 14px; right: -9px; padding: 4px 10px 4px 16px; background: var(--kraft); color: var(--kraft-ink); font: 700 14px/1.2 var(--font-display); clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%); transform: rotate(4deg); }
.fv-product-title { margin: 10px 4px 0; font: 700 14px/1.3 var(--font-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fv-direct { margin: 22px 0 0; font-weight: 700; font-size: 15px; }
.fv-pages { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-top: 20px; font-weight: 700; font-size: 15px; }
/* Order: small handwritten options, the chosen one underlined like a pen stroke. */
.fv-sorts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; margin: 0 0 18px; padding: 0; border: 0; }
.fv-sorts legend { float: left; margin-right: 6px; font: 700 14px/2 var(--font-display); color: var(--muted); }
.fv-sort { position: relative; cursor: pointer; }
.fv-sort input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fv-sort span { display: inline-block; padding: 4px 6px; font: 400 18px/1.2 var(--font-hand); color: var(--muted); }
.fv-sort input:checked + span { color: var(--bic); text-decoration: underline wavy var(--holly-text) 1.5px; text-underline-offset: 5px; }
.fv-sort input:focus-visible + span { outline: 2px solid var(--bic); outline-offset: 1px; border-radius: 6px; }

/* Before the first search: a pen arrow towards the form. */
.fv-empty { display: flex; flex-direction: column; gap: 10px; max-width: 460px; padding: 40px 0; }
.fv-empty h2 { font: 400 clamp(28px, 6vw, 36px)/1.1 var(--font-hand); color: var(--bic); }
.fv-empty p { color: var(--muted); }
.fv-empty-arrow { width: 70px; color: var(--bic); }
@media (max-width: 1023px) { .fv-empty { padding: 8px 0; } .fv-empty-arrow { transform: rotate(80deg); } }

/* bol's categories for this search, to narrow it down */
.fv-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.fv-book .fv-cats a { padding: 6px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 600 14px/1.2 var(--font-display); text-decoration: none; }
.fv-book .fv-cats a:hover { border-color: var(--bic); }
.fv-book .fv-cats a[aria-current] { border-color: var(--bic); background: var(--bic-tint); color: var(--bic-deep); }
.fv-none { margin: 8px 0; color: var(--muted); }
.fv-price s { margin-right: 6px; font-weight: 400; opacity: .75; }
.fv-rating { margin: 6px 4px 0; font: 600 13px/1 var(--font-body); color: var(--muted); }
.fv-stars { position: relative; display: inline-block; color: var(--line); letter-spacing: 1px; }
.fv-stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; overflow: hidden; color: var(--gold-deep); width: calc(var(--fill, 0) * 1%); }
.fv-stars.s1 { --fill: 10; } .fv-stars.s2 { --fill: 20; } .fv-stars.s3 { --fill: 30; } .fv-stars.s4 { --fill: 40; } .fv-stars.s5 { --fill: 50; }
.fv-stars.s6 { --fill: 60; } .fv-stars.s7 { --fill: 70; } .fv-stars.s8 { --fill: 80; } .fv-stars.s9 { --fill: 90; } .fv-stars.s10 { --fill: 100; }
.fv-delivery { margin: 6px 4px 0; font-size: 12px; line-height: 1.3; color: var(--pine); }
[data-finder-results][aria-busy="true"] .fv-products, [data-finder-results][aria-busy="true"] .fv-cats { opacity: .45; transition: opacity .2s .15s; }
.fv-blank::-webkit-search-cancel-button { display: none; }

@media (min-width: 560px) {
  .fv-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* "Trek een cadeau": the results as cards lying face down, turned over one by one (app.js). Without JavaScript these
   parts stay hidden and the list shows. */
[data-finder-modes][hidden], .fv-draw[hidden], .fv-draw-actions[hidden], .fv-hand[hidden], .fv-hand-empty[hidden], .fv-hand-actions[hidden] { display: none; }
.fv-drawing .fv-products, .fv-drawing .fv-pages { display: none; }
.fv-draw { overflow-x: clip; }
.fv-modes { display: flex; gap: 6px; margin: 0 0 4px; border-bottom: 2px solid var(--ink); }
.fv-modes button { margin-bottom: -2px; padding: 9px 14px 7px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--taken-bg);
  color: var(--muted); font: 700 15px/1 var(--font-display); white-space: nowrap; cursor: pointer; }
.fv-modes button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.fv-modes button span { font-weight: 400; }
.fv-modes button:focus-visible { outline: 3px solid var(--bic); outline-offset: 2px; }

.fv-table { position: relative; display: grid; place-items: center; min-height: 460px; padding: 22px 0 36px; perspective: 1400px; }
.fv-draw-hint { position: absolute; top: 10px; left: 0; max-width: 11em; margin: 0; font-size: 21px; line-height: 1.15; color: var(--bic); transform: rotate(-3deg); transition: opacity .3s; }
.fv-draw-hint svg { display: block; width: 70px; margin: 2px 0 0 60px; }
.fv-draw.started .fv-draw-hint { opacity: 0; }
.fv-stack-left { position: absolute; right: 0; bottom: 0; margin: 0; font-size: 17px; color: var(--muted); }

.fv-deck { position: relative; width: 230px; height: 330px; }
.fv-card { --x: 0px; --r: 0deg; position: absolute; inset: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transform: translateX(var(--x)) rotate(var(--r)); transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .35s, filter .35s; }
.fv-card:nth-child(1) { --x: -118px; --r: -9deg; }
.fv-card:nth-child(2) { --r: 1.5deg; z-index: 1; }
.fv-card:nth-child(3) { --x: 118px; --r: 10deg; }
.fv-card:hover:not(.open) { transform: translateX(var(--x)) translateY(-14px) rotate(var(--r)); }
.fv-card:focus-visible { outline: none; }
.fv-card:focus-visible .fv-card-back, .fv-card:focus-visible .fv-card-front { outline: 3px solid var(--gold); outline-offset: 4px; }
.fv-card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.3, .5, 1); }
.fv-card.open { --x: 0px; --r: -1deg; z-index: 3; cursor: default; transform: translateY(-4px) scale(1.1) rotate(var(--r)); }
.fv-card.open .fv-card-inner { transform: rotateY(180deg); }
.has-open .fv-card:not(.open) { filter: saturate(.4) brightness(.92); opacity: .55; }
.has-open .fv-card:nth-child(1):not(.open) { --x: -150px; --r: -16deg; }
.has-open .fv-card:nth-child(n+2):not(.open) { --x: 150px; --r: 16deg; }
.fv-card.tossed { transform: translate(260px, 120px) rotate(38deg); opacity: 0; }
.fv-card.kept { transform: translate(-40px, 320px) scale(.25) rotate(-8deg); opacity: 0; }
.fv-card.dealt { transform: translate(0, -260px) rotate(-20deg); opacity: 0; transition: none; }

.fv-card-back, .fv-card-front { position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-sheet); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* The back: a wrapped present with a gold ribbon and a kraft tag */
.fv-card-back { overflow: hidden; background:
  linear-gradient(90deg, transparent calc(50% - 14px), var(--gold) calc(50% - 14px), var(--gold) calc(50% + 14px), transparent calc(50% + 14px)),
  linear-gradient(transparent calc(42% - 14px), var(--gold) calc(42% - 14px), var(--gold) calc(42% + 14px), transparent calc(42% + 14px)),
  repeating-linear-gradient(45deg, var(--holly) 0 14px, var(--holly-light) 14px 28px); }
.fv-card-back::before, .fv-card-back::after { content: ""; position: absolute; top: calc(42% - 30px); width: 46px; height: 34px; border: 7px solid var(--gold-knot); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.fv-card-back::before { left: calc(50% - 50px); transform: rotate(-24deg); }
.fv-card-back::after { left: calc(50% + 4px); transform: rotate(24deg); }
.fv-card-tag { position: absolute; left: 50%; top: 58%; width: 92px; margin-left: -46px; padding: 14px 6px 10px; background: var(--kraft); color: var(--kraft-ink);
  font: 700 44px/1 var(--font-hand); text-align: center; transform: rotate(-7deg); clip-path: polygon(22% 0, 78% 0, 100% 20%, 100% 100%, 0 100%, 0 20%); }
.fv-card-tag::before { content: ""; position: absolute; top: 6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--holly); }
.fv-card-tag small { display: block; margin-top: 4px; font: 700 11px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
/* The front: the gift */
.fv-card-front { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); transform: rotateY(180deg); }
.fv-card-photo { display: grid; place-items: center; flex: none; height: 168px; background: #ffffff; border-bottom: 2px solid var(--ink); color: var(--bic); }
.fv-card-photo img { max-width: 86%; max-height: 150px; object-fit: contain; }
.fv-card-photo svg { width: 40%; }
.fv-card-price { position: absolute; top: 12px; right: -6px; padding: 8px 12px 6px 16px; background: var(--gold); color: #1a1d2b; font: 700 21px/1 var(--font-display); letter-spacing: -.02em;
  transform: rotate(5deg); box-shadow: var(--shadow-sticky); clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.fv-card-price s { display: block; margin-bottom: 2px; font: 400 12px/1 var(--font-body); color: #4a3d12; }
.fv-card-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 12px 14px 12px; }
.fv-card-title { font: 700 18px/1.2 var(--font-display); letter-spacing: -.015em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fv-card-when { font-size: 14px; color: var(--done-ink); }
.fv-card-when::first-letter { text-transform: uppercase; }
.fv-card-shop { margin-top: auto; align-self: flex-end; font: 700 13px/1 var(--font-display); color: var(--muted); }

.fv-draw-status { display: grid; place-items: center; min-height: 54px; margin: 8px 0 0; text-align: center; font: 400 18px/1.2 var(--font-hand); color: var(--muted); }
.fv-draw-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 4px; }
.fv-draw-actions .btn { width: auto; min-width: 150px; }
.fv-draw-actions .btn-holly::before { content: "♥"; font-size: 20px; }
.fv-draw-actions .btn-holly:disabled::before { content: none; }
.fv-draw-actions .btn:disabled { opacity: .6; cursor: default; }
.fv-book a.fv-draw-bol { font: 700 15px/1 var(--font-display); }

/* Your hand: the gifts you kept, as small taped photos */
.fv-hand { position: relative; margin-top: 24px; padding: 16px 14px 14px; border: 2px dashed var(--line); border-radius: 14px; }
.fv-hand h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 700 17px/1 var(--font-display); }
.fv-hand h2 span { font-size: 16px; font-weight: 400; color: var(--muted); }
.fv-hand ul { display: flex; flex-wrap: wrap; gap: 16px 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.fv-hand ul:empty { display: none; }
.fv-hand li { position: relative; width: 100px; transform: rotate(var(--r, -2deg)); }
.fv-hand li:nth-child(2n) { --r: 2.5deg; }
.fv-hand li:nth-child(3n) { --r: -1deg; }
.fv-hand li.fresh { animation: fv-kept .45s cubic-bezier(.3, 1.4, .5, 1); }
.fv-book .fv-hand a { display: block; padding: 6px 6px 8px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow-slip); color: var(--ink); text-decoration: none; }
.fv-hand .tape { width: 40px; height: 14px; margin-left: -20px; top: -7px; }
.fv-hand img, .fv-hand-gift { display: grid; place-items: center; width: 100%; height: 64px; object-fit: contain; background: #ffffff; font-size: 34px; }
.fv-hand b { display: block; margin-top: 5px; font: 700 14px/1 var(--font-display); }
.fv-hand-remove { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--surface); color: var(--ink);
  font: 700 18px/1 var(--font-display); cursor: pointer; }
.fv-hand-empty { margin: 12px 0 0; font-size: 18px; color: var(--muted); }
.fv-hand-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fv-hand-actions .btn { width: auto; padding: 0 18px; }
.fv-book .fv-hand-actions .btn-ghost { color: var(--ink); }
@keyframes fv-kept { from { transform: translateY(-40px) rotate(-20deg) scale(1.4); opacity: 0; } }

@media (max-width: 559px) {
  .fv-table { min-height: 0; padding: 22px 0 0; }
  .fv-draw-hint { position: static; margin-bottom: 6px; } .fv-draw-hint svg { display: none; }
  .fv-draw.started .fv-draw-hint { display: none; }
  .fv-deck { width: 200px; height: 300px; }
  .fv-card:nth-child(1) { --x: -64px; } .fv-card:nth-child(3) { --x: 64px; }
  .has-open .fv-card:nth-child(1):not(.open) { --x: -84px; }
  .has-open .fv-card:nth-child(n+2):not(.open) { --x: 84px; }
  .fv-card-photo { height: 140px; } .fv-card-photo img { max-height: 124px; }
  .fv-stack-left { position: static; justify-self: end; margin-top: 24px; }
  .fv-modes button { padding: 8px 10px 6px; font-size: 14px; }
  .fv-draw-actions { gap: 8px; }
  .fv-draw-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 15px; white-space: nowrap; }
  .fv-draw-bol { flex-basis: 100%; text-align: center; padding: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fv-card, .fv-card-inner { transition: none; }
  .fv-hand li.fresh { animation: none; }
}


/* Phones and tablets: the title on the night ground, the hobbies in one row to swipe. */
@media (max-width: 1023px) {
  .fv-left { padding-top: 20px; }
  .fv-left .today { display: none; }
  .fv-chips ul { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding: 2px 20px 8px 2px; scrollbar-width: none; }
  .fv-chips li { flex: none; }
  .fv-cats { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding: 2px 20px 6px 0; scrollbar-width: none; }
  .fv-book .fv-cats a { flex: none; }
}

/* Desktop: one open notebook. The left page stays in view while the results scroll past on the right. */
@media (min-width: 1024px) {
  .fv-book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 0; padding-top: 12px; }
  .fv-page { padding: 34px 40px 34px 66px; }
  .fv-page::before { left: 46px; }
  .fv-left { position: sticky; top: 16px; min-height: calc(100vh - 120px); border-radius: var(--radius-sm) 0 0 var(--radius-sm); box-shadow: var(--shadow-sheet), inset -24px 0 26px -22px rgba(22, 38, 122, .35); }
  .fv-right { min-height: calc(100vh - 120px); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow-sheet), inset 24px 0 26px -22px rgba(22, 38, 122, .35); padding-left: 56px; }
  .fv-right::before { left: 36px; }
  .fv-title { margin-top: 18px; }
  .fv-form .btn { width: auto; align-self: flex-start; padding: 0 28px; }
  .fv-photo { display: block; position: relative; width: 210px; margin: auto 0 0 auto; padding: 8px 8px 26px; background: var(--surface); box-shadow: var(--shadow-slip); transform: rotate(3deg); translate: 0 18px; }
  .fv-photo img { display: block; width: 100%; height: auto; }
}
