/* The interactive family tree (family-tree-v2.html, js/family-tree.js). The printed tree's look, without the banyan:
   warm paper, root-brown lines, gold diamonds for marriages, Cormorant names with italic captions, the Cinzel kicker.
   The paper stays paper in both themes, as the paintings do. */
.ft {
  --ft-paper: #f6eedc;
  --ft-paper-2: #efe3c8;
  --ft-ink: #33271a;
  --ft-cap: #6b5640;
  --ft-root: #7d5f42;
  --ft-gold: #b8862e;
  --ft-gold-hi: #d9a441;
  --ft-rose: #9c5a4c;
  --ft-rose-hi: #c4705c;
  --ft-edge: rgba(125, 95, 66, .22);
  max-width: 1180px !important;
  color-scheme: light;
  scroll-margin-top: 76px;
  margin: 30px auto 40px;
  position: relative;
}
.page > .ft { width: calc(100vw - 2 * var(--gutter)); margin-left: 50%; transform: translateX(-50%); }

.ft-paper {
  position: relative;
  color: var(--ft-ink);
  background:
    radial-gradient(1200px 500px at 12% -10%, rgba(255, 252, 240, .9), transparent 60%),
    radial-gradient(900px 600px at 105% 110%, rgba(214, 186, 130, .22), transparent 60%),
    radial-gradient(700px 420px at 70% 40%, rgba(255, 250, 236, .55), transparent 70%),
    var(--ft-paper);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(217, 164, 65, .22), 0 30px 80px -40px rgba(0, 0, 0, .7);
  overflow: hidden;
  isolation: isolate;
}
/* paper grain: a fine noise, multiplied */
.ft-paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .36  0 0 0 0 .24  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* soft watercolour edges, like a page's deckle */
.ft-paper::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  box-shadow: inset 0 0 60px rgba(176, 140, 86, .18), inset 0 0 2px rgba(125, 95, 66, .25);
  border-radius: inherit;
}

/* ---------- the top: title, search ---------- */
.ft-top { position: relative; z-index: 5; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: 22px 26px 10px; }
.ft-kicker { margin: 0 0 6px !important; font: 500 11.5px/1.3 var(--caps); letter-spacing: .32em; text-transform: uppercase; color: #9a6a22; }
.ft-title { margin: 0 !important; font: 500 clamp(28px, 3vw, 38px)/1.05 var(--display); color: #2f4a6e; letter-spacing: -.005em; }
.ft-search { position: relative; flex: 0 1 360px; min-width: 240px; }
.ft-q {
  width: 100%; box-sizing: border-box; height: 46px; padding: 0 16px 0 42px; border-radius: 999px;
  font: 400 16.5px/1 var(--body); color: var(--ft-ink); background: rgba(255, 253, 246, .85);
  border: 1px solid rgba(154, 106, 34, .35); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 6px 18px -12px rgba(80, 50, 10, .5);
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.ft-q::placeholder { color: #8f7a60; font-style: italic; }
.ft-q:focus { outline: none; border-color: var(--ft-gold); background: #fffdf6; box-shadow: 0 0 0 3px rgba(217, 164, 65, .28), 0 6px 18px -12px rgba(80, 50, 10, .5); }
.ft-q::-webkit-search-cancel-button { filter: sepia(1) saturate(2) hue-rotate(-10deg); }
.ft-mag { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: #9a6a22; stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.ft-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0 !important; padding: 6px !important; list-style: none; z-index: 30;
  max-height: 360px; overflow: auto; background: #fffcf3; border: 1px solid rgba(154, 106, 34, .3); border-radius: 14px;
  box-shadow: 0 24px 50px -24px rgba(60, 36, 8, .55);
}
.ft-results li { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 6px 10px 6px 6px; border-radius: 10px; cursor: pointer; }
.ft-results li[aria-selected="true"], .ft-results li:hover { background: rgba(217, 164, 65, .16); }
.ft-results li span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ft-results b { font: 600 18px/1.15 var(--display); color: var(--ft-ink); }
.ft-results i { font: italic 400 14px/1.25 var(--display); color: var(--ft-cap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-results .ft-none { cursor: default; padding: 10px 12px; font-style: italic; color: var(--ft-cap); }
.ft-results .ft-none:hover { background: none; }
.ft-of { width: 42px; height: 42px; flex: none; }

.ft picture { display: contents; }   /* AVIF portraits with a WebP fallback; the <img> keeps its own layout */
/* small faces: the painted vignette in a circle, a little larger than the circle so the face fills it */
.ft-chf, .ft-of, .ft-rf, .ft-cf { border-radius: 50%; object-fit: cover; object-position: 50% 36%; background: radial-gradient(circle at 50% 40%, #fffaf0, #efe2c6); }
img.ft-chf, img.ft-of, img.ft-rf { transform: scale(1); }
.ft .mono { display: inline-grid; place-items: center; font: 600 17px/1 var(--caps); color: #fffaf0; background: var(--c); background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }

/* ---------- the names along the top ---------- */
.ft-chips {
  position: relative; z-index: 4; display: flex; gap: 8px; padding: 6px 26px 14px; overflow-x: auto; scroll-snap-type: x proximity;
  box-sizing: border-box; min-height: 64px;   /* the chips' height before the script adds them: no jump */
  scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 40px), transparent);
}
.ft-chips::-webkit-scrollbar { display: none; }
.ft-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 4px; scroll-snap-align: start;
  border-radius: 999px; border: 1px solid rgba(154, 106, 34, .28); background: rgba(255, 252, 242, .7); color: var(--ft-ink);
  font: 600 17px/1 var(--display); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.ft-chip:hover { border-color: var(--ft-gold); background: #fffdf5; }
/* the chosen name: the site's flat gold, as its buttons (author, 2026-11-26: no 3D gradient or glow) */
.ft-chip[aria-pressed="true"] { background: #d9a441; border-color: #d9a441; color: #1f1405; }
:root[data-theme="light"] .ft-chip[aria-pressed="true"] { background: #c58d36; border-color: #c58d36; color: #1c1205; }
.ft-chf { width: 36px; height: 36px; flex: none; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }
.ft-chip:focus-visible, .ft-controls button:focus-visible, .ft-card button:focus-visible, .ft-more:focus-visible { outline: 2px solid #9a6a22; outline-offset: 2px; }

/* ---------- the stage ---------- */
.ft-stage { position: relative; z-index: 1; height: clamp(520px, 74vh, 780px); border-top: 1px solid var(--ft-edge); }
.ft-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.ft-svg:active { cursor: grabbing; }
.ft:not(.ready) .ft-svg { opacity: 0; }
.ft.ready .ft-svg { animation: ft-in .9s ease-out both; }
@keyframes ft-in { from { opacity: 0; } to { opacity: 1; } }

/* lines: root brown, as printed */
.ft-link { fill: none; stroke: var(--ft-root); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity .5s, stroke .5s; }
.ft-link.married.curve { stroke-width: 1.5; }
.ft-link.secret { stroke: var(--ft-rose); stroke-dasharray: 14 8; stroke-width: 1.9; }   /* a son born before his mother married: long rose dashes */
.ft-link.sibling { stroke-dasharray: 0 7.5; stroke-width: 3.2; }                     /* brother and sister: round dots */
.ft-link.raised { stroke-dasharray: 10 6 0 6; stroke-width: 2; }                     /* raised by: dash and dot */
.ft-link.sibling.quiet { opacity: 0; }
.ft-mark { fill: var(--ft-root); stroke: var(--ft-paper); stroke-width: 1.5; transition: opacity .5s, fill .5s; }
.ft-group text { font: 500 15px/1 var(--caps); letter-spacing: .34em; fill: #8a6a45; }
.ft-group path { fill: none; stroke: #b39470; stroke-width: 1; }
.ft-group path.dia { fill: #b39470; stroke: none; }

/* people */
.ft-node { cursor: pointer; outline: none; transition: opacity .5s; }
.ft-node image { transition: transform .35s cubic-bezier(.2, .7, .2, 1); transform-box: fill-box; transform-origin: 50% 50%; }
.ft-node .halo { opacity: 0; transition: opacity .5s; }
.ft-node .ring { fill: none; stroke: var(--ft-gold-hi); stroke-width: 2.4; opacity: 0; transition: opacity .4s; }
.ft-node .hit { fill: transparent; }
.ft-node .wash { opacity: .85; }
.ft-node .seed { opacity: .75; stroke: var(--ft-paper); stroke-width: 2; }
.ft-node .mono { font: 600 26px/1 var(--caps); fill: #fffaf0; }
.ft-node .lbl { pointer-events: none; }
.ft-node .nm { font: 600 21px/1 var(--display); fill: var(--ft-ink); }
.ft-node .cp { font: italic 500 15.5px/1 var(--display); fill: var(--ft-cap); }
.ft-node.small .nm { font-size: 19px; }
.ft-node:hover image { transform: scale(1.06); }
.ft-node:hover .halo { opacity: .35; }
.ft-node:focus-visible { opacity: 1 !important; }
.ft-node:focus-visible .ring { opacity: 1; stroke: #9a6a22; stroke-dasharray: 4 4; }
.ft-svg.moving .halo, .ft-svg.moving .ft-glow { filter: none; }
.ft-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0 !important; }
.ft-svg.far .ft-node .cp { opacity: 0; }
.ft-svg.farther .ft-node .nm { opacity: 0; }

/* focus: the chosen person glows, their family stays bright, the bloodline is warm, everyone else fades */
.ft-node.is-focus .halo { opacity: .55; }
.ft-node.is-focus .ring { opacity: 1; animation: ft-ring 2.6s ease-in-out 3; }
.ft-node.is-focus image { transform: scale(1.1); }
.ft-node.is-focus .nm { fill: #1f160c; }
.ft-node.is-near .halo { opacity: .22; }
.ft-node.is-line { opacity: .62; }
.ft-node.is-dim { opacity: .16; }
.ft-node.is-dim:hover { opacity: .55; }
.ft-svg.far .ft-node.is-focus .cp, .ft-svg.far .ft-node.is-near .cp { opacity: 1; }
.ft-svg.farther .ft-node.is-focus .nm, .ft-svg.farther .ft-node.is-near .nm { opacity: 1; }
@keyframes ft-ring { 0%, 100% { stroke-width: 2.4; opacity: 1; } 50% { stroke-width: 4; opacity: .55; } }
.ft-link.is-dim { opacity: .1; }
.ft-link.is-warm { opacity: .7; stroke: #a67c3d; }
.ft-link.is-hot { opacity: 0; }
.ft-link.sibling.quiet.is-hot { opacity: 0; }
.ft-mark.is-dim { opacity: .15; }
.ft-mark.is-hot { fill: var(--ft-gold); }
.ft-glow { fill: none; stroke: var(--ft-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(217, 164, 65, .55)); }
/* patterned lines keep their pattern when they glow, so the three kinds never look alike */
.ft-glow.secret { stroke: var(--ft-rose-hi); stroke-dasharray: 14 8; stroke-width: 2.6; filter: drop-shadow(0 0 4px rgba(196, 112, 92, .5)); }
.ft-glow.sibling { stroke-dasharray: 0 7.5; stroke-width: 4.2; }
.ft-glow.raised { stroke-dasharray: 10 6 0 6; stroke-width: 2.8; }
.ft-glow.pattern { animation: ft-in .7s ease-out .25s both; }

/* ---------- controls, hints, legend ---------- */
.ft-controls { position: absolute; z-index: 6; right: 16px; top: 14px; display: flex; flex-direction: column; gap: 6px; }
.ft-controls button {
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 12px; cursor: pointer;
  background: rgba(255, 252, 242, .9); border: 1px solid rgba(154, 106, 34, .3); color: #7a5418;
  box-shadow: 0 8px 18px -14px rgba(80, 50, 10, .8); transition: background .2s, border-color .2s;
}
.ft-controls button:hover { background: #fff; border-color: var(--ft-gold); }
.ft-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ft-controls [aria-pressed="true"] { background: rgba(217, 164, 65, .22); border-color: var(--ft-gold); }
.ft-wheel {
  position: absolute; z-index: 7; left: 50%; top: 18px; transform: translate(-50%, -6px); margin: 0 !important; padding: 8px 16px; border-radius: 999px;
  font: 400 15px/1.2 var(--body); color: #fffaf0; background: rgba(36, 26, 14, .82); pointer-events: none; opacity: 0; transition: opacity .25s, transform .25s; white-space: nowrap;
}
.ft-wheel.on { opacity: 1; transform: translate(-50%, 0); }
.ft-wheel kbd { font: 600 12px/1 var(--caps); padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.ft-legend {
  position: absolute; z-index: 5; left: 18px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px 18px; max-width: calc(100% - 36px);
  font: italic 400 14px/1.3 var(--display); color: var(--ft-cap); pointer-events: none;
  padding: 8px 12px; border-radius: 10px; background: rgba(246, 238, 220, .9);
}
.ft-legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ft-legend svg { width: 34px; height: 12px; fill: none; stroke: var(--ft-root); stroke-width: 1.6; stroke-linecap: round; }
.ft-legend .d { fill: var(--ft-root); stroke: none; }
.ft-legend .dash { stroke: var(--ft-rose); stroke-dasharray: 9 5; stroke-width: 1.8; }
.ft-legend .dot { stroke-dasharray: 0 6; stroke-width: 3; }
.ft-legend .dashdot { stroke-dasharray: 8 4 0 4; stroke-width: 1.8; }
.ft-tip { position: absolute; z-index: 5; left: 22px; top: 16px; margin: 0 !important; font: italic 400 14px/1 var(--display); color: #8f7a60; pointer-events: none; transition: opacity .4s; }
.ft.focused .ft-tip { opacity: 0; }

/* ---------- the card ---------- */
.ft-card {
  position: absolute; z-index: 8; top: 14px; right: 68px; width: 330px; max-height: calc(100% - 28px); overflow: auto; overscroll-behavior: contain;
  box-sizing: border-box; padding: 20px 20px 18px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 253, 247, .97), rgba(250, 243, 228, .97));
  border: 1px solid rgba(154, 106, 34, .28); box-shadow: 0 30px 60px -30px rgba(60, 36, 8, .55), 0 0 0 4px rgba(255, 250, 236, .5);
  animation: ft-card .45s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes ft-card { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.ft-card[hidden] { display: none; }
.ft-x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: #8a6a45; font: 400 26px/1 var(--display); cursor: pointer; }
.ft-x:hover { background: rgba(217, 164, 65, .16); color: #4a3418; }
.ft-ch { display: flex; align-items: center; gap: 14px; padding-right: 26px; }
.ft-cf { width: 92px; height: 92px; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(184, 134, 46, .5), 0 10px 24px -14px rgba(60, 36, 8, .7); }
.ft-cf.mono { font-size: 34px; }
.ft-cn { margin: 0 !important; font: 600 30px/1.02 var(--display) !important; color: #24190d !important; }
.ft-aka { margin: 3px 0 0 !important; font: 500 11px/1.3 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: #9a6a22; }
.ft-cc { margin: 4px 0 0 !important; font: italic 400 16px/1.25 var(--display); color: var(--ft-cap); }
.ft-about { margin: 14px 0 6px !important; font: 400 15.5px/1.5 var(--body); color: #3b2e20; text-wrap: pretty; }
.ft-rel { margin-top: 12px; }
.ft-rl { margin: 0 0 6px !important; font: 500 10.5px/1.2 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: #9a6a22; display: flex; align-items: center; gap: 10px; }
.ft-rl::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(184, 134, 46, .45), transparent); }
.ft-rel ul { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.ft-rel li { margin: 0 !important; }
.ft-rel button {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 3px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(154, 106, 34, .25); background: rgba(255, 255, 255, .6); color: var(--ft-ink); font: 600 16px/1 var(--display);
  transition: background .2s, border-color .2s;
}
.ft-rel button:hover { background: #fff; border-color: var(--ft-gold); }
.ft-rf { width: 28px; height: 28px; flex: none; }
.ft-rf.mono { font-size: 12px; }
.ft-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; min-height: 40px; padding: 0 18px; border-radius: 4px;
  font: 600 12px/1 var(--caps) !important; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: #1f1405 !important; background: #d9a441; transition: background-color .2s ease;   /* the site's .btn-gold: flat, no glow */
}
.ft-more:hover { background: #e8bb5f; }
:root[data-theme="light"] .ft-more { color: #1c1205 !important; background: #c58d36; }
:root[data-theme="light"] .ft-more:hover { background: #d29c46; }

/* ---------- full screen ---------- */
html.ft-lock, html.ft-lock body { overflow: hidden; }
.ft.is-full { position: fixed !important; inset: 0; z-index: 1000; margin: 0 !important; width: auto !important; max-width: none !important; transform: none !important; }
.ft.is-full .ft-paper { height: 100%; border-radius: 0; display: flex; flex-direction: column; }
.ft.is-full .ft-stage { flex: 1; height: auto; min-height: 0; }
.ft.is-full .ft-top { padding-top: calc(14px + env(safe-area-inset-top)); }

/* ---------- phones ---------- */
.ft-whole { display: none; }
@media (max-width: 759px) {
  .page > .ft { width: 100vw; transform: none; margin-left: calc(50% - 50vw); }   /* no transform, so the sheet can be fixed to the screen */
  .ft-paper { border-radius: 0; }
  .ft-top { padding: 18px 16px 8px; align-items: stretch; flex-direction: column; gap: 12px; }
  .ft-search { flex: none; min-width: 0; }
  .ft-chips { padding: 4px 16px 12px; min-height: 60px; }
  .ft-stage { height: 64vh; height: 64svh; min-height: 340px; }
  .ft-controls { right: 10px; top: 10px; }
  .ft-controls button { width: 38px; height: 38px; }
  .ft-legend { display: none; }
  .ft-tip { left: 16px; top: 14px; }
  .ft-card {   /* a bottom sheet that stays on screen while the tree is in view (author, 2026-11-26) */
    position: fixed; z-index: 60; top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 48vh; max-height: 48svh;
    border-radius: 18px 18px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 36px -10px rgba(60, 36, 8, .35), 0 0 0 1px rgba(154, 106, 34, .25);
    animation-name: ft-sheet; transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  }
  .ft.ft-away .ft-card { transform: translateY(calc(100% + 24px)); }
  .ft-card .ft-x {   /* stays at the top of the sheet while its content scrolls under it (author, 2026-11-26) */
    position: sticky; z-index: 3; top: -6px; display: block; width: 40px; height: 40px; margin: -10px -6px -40px auto;
    background: rgba(255, 252, 244, .96); box-shadow: 0 2px 10px -3px rgba(60, 36, 8, .3);
  }
  .ft-card::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: rgba(125, 95, 66, .3); margin: -6px auto 10px; }
  .ft-cf { width: 72px; height: 72px; }
  .ft-cn { font-size: 26px !important; }
  @keyframes ft-sheet { from { transform: translateY(30px); opacity: 0; } }
  /* the whole tree as one picture, below the interactive one (author, 2026-11-26) */
  .ft-whole { display: block; margin: 18px 16px 0 !important; }
  .ft-whole a { display: block; border-radius: 12px; overflow: hidden; background: var(--ft-paper); box-shadow: 0 0 0 1px rgba(154, 108, 36, .25), 0 10px 26px -16px rgba(80, 55, 20, .5); }
  .ft-whole img { display: block; width: 100%; height: auto; }
  .ft-whole figcaption { margin-top: 8px; font: italic 400 14px/1.4 var(--body); color: var(--muted, #6b5d52); }
  .ft-whole a:focus-visible { outline: 2px solid #9a6a22; outline-offset: 2px; }
}
/* ---------- the whole-tree picture, opened over the page (phones) ---------- */
.ft-lb {
  position: fixed; inset: 0; z-index: 1100; color-scheme: light; overscroll-behavior: contain;
  background: radial-gradient(120% 80% at 50% 0%, #fbf5e8, #f1e6cc); animation: ft-in .25s ease-out both;
}
.ft-lb[hidden] { display: none; }
.ft-lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.ft-lb-stage:active { cursor: grabbing; }
.ft-lb img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.ft-lb-x {
  position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(154, 106, 34, .3); background: rgba(255, 252, 244, .96); color: #6b4a22; font: 400 30px/1 var(--display); cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(60, 36, 8, .45);
}
.ft-lb-x:focus-visible { outline: 2px solid #9a6a22; outline-offset: 2px; }
.ft-lb-tip {
  position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0 !important; padding: 8px 14px;
  border-radius: 999px; background: rgba(255, 252, 244, .92); box-shadow: 0 4px 14px -8px rgba(60, 36, 8, .4);
  font: italic 400 14px/1 var(--display); color: #6b5640; white-space: nowrap; pointer-events: none; transition: opacity .4s;
}
.ft-lb.zoomed .ft-lb-tip { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .ft *, .ft-card, .ft-lb, .ft-lb * { animation: none !important; transition: none !important; }
}
