/*!
 * Card Looks on the public card page (my_profile.html + partial_profile.html).
 * Ported from the prototype's .phone/.card rules
 * (docs/superpowers/specs/assets/2026-11-13-card-looks-prototype.html), rescoped to
 * the attributes on <body>: data-look-style, -bg, -tiles, -type, -motion, -appearance.
 * The palette arrives as --look-* custom properties in an inline <style>
 * (vcard_profile/looks/web.py). Only a card that picked a look links this file.
 *
 * Rules: only transform-family properties and opacity animate; Reduce Motion turns
 * every look animation off; sides are logical (inline-start/end) so Arabic mirrors,
 * except inside the decorative background layer.
 */

/* ---------- the page ---------- */
/* The ground on the root too, so the overscroll and the safe areas behind Safari's
   bars show it, and the page is at least the screen tall. */
html:has(body[data-look-style]) { background: var(--look-base); min-height: 100vh; min-height: 100dvh; }
body[data-look-style] { padding-top: env(safe-area-inset-top, 0px); padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); min-height: 100vh; min-height: 100dvh; box-sizing: border-box; }
/* With the ground on the root, the body's own stops reaching the canvas and is
   painted as a box over the background layer (.look-bg, fixed at z-index -1):
   Pride's stripes, the field's rings and every other layer showed only above
   the body (Nico 2026-11-26). The body is clear wherever the root holds it. */
html:has(body[data-look-style]) body[data-look-style] { background: transparent; }
body[data-look-style] {
  /* Today's variables, pointed at the look, so the sheets, the Connect Back form
     and the inline colours that read them follow it. */
  --background-color: var(--look-base);
  --background-transparent-color: color-mix(in srgb, var(--look-ink) 4%, transparent);
  --transparent-border: 1px solid color-mix(in srgb, var(--look-ink) 20%, transparent);
  --text-color: var(--look-ink);
  --brand-primary-color: var(--look-accent);
  --brand-secondary-color: var(--look-ink);
  --icon-color: var(--look-ink);
  background: var(--look-base);
  color: var(--look-ink);
  font-family: var(--f-text);
}

/* ---------- backgrounds ---------- */
/* The page runs under Safari's bars (viewport-fit=cover): the background reaches behind them,
   over the largest the viewport gets with the bars tucked away. Its edges set its size, the
   viewport units only stretch it: an app's WebView laid out as wrap content gives 100vh as 0. */
.look-bg { position: fixed; top: calc(-1 * env(safe-area-inset-top, 0px)); right: 0; bottom: calc(-1 * env(safe-area-inset-bottom, 0px)); left: 0; min-height: calc(100vh + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)); min-height: calc(100lvh + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)); z-index: -1; background: var(--look-base); overflow: hidden; pointer-events: none; }
.look-bg i { position: absolute; display: none; }
body[data-look-bg="flow"] .look-bg .b1 { display: block; left: 0; right: 0; top: 0; height: 230%; background: linear-gradient(175deg, var(--look-base) 0%, var(--look-base2) 28%, color-mix(in srgb, var(--look-accent) 26%, var(--look-base)) 52%, var(--look-base2) 76%, var(--look-base) 100%); }
body[data-look-bg="aurora"] .look-bg :is(.b1, .b2, .b3),
body[data-look-bg="mesh"] .look-bg :is(.b1, .b2, .b3) { display: block; border-radius: 50%; aspect-ratio: 1; }
body[data-look-bg="aurora"] .look-bg .b1 { width: 120%; left: -45%; top: -12%; background: radial-gradient(closest-side, color-mix(in srgb, var(--look-accent) 75%, transparent), transparent); filter: blur(28px); opacity: .75; }
body[data-look-bg="aurora"] .look-bg .b2 { width: 110%; right: -55%; top: 22%; background: radial-gradient(closest-side, color-mix(in srgb, var(--look-glow) 70%, transparent), transparent); filter: blur(30px); opacity: .6; }
body[data-look-bg="aurora"] .look-bg .b3 { width: 130%; left: -20%; bottom: -30%; background: radial-gradient(closest-side, color-mix(in srgb, var(--look-accent) 45%, var(--look-glow)), transparent); filter: blur(34px); opacity: .45; }
body[data-look-bg="mesh"] .look-bg .b1 { width: 140%; left: -50%; top: -20%; background: radial-gradient(closest-side, var(--look-glow), transparent); opacity: .95; }
body[data-look-bg="mesh"] .look-bg .b2 { width: 130%; right: -60%; top: 18%; background: radial-gradient(closest-side, var(--look-accent), transparent); opacity: .55; }
body[data-look-bg="mesh"] .look-bg .b3 { width: 150%; left: -25%; bottom: -40%; background: radial-gradient(closest-side, var(--look-base2), transparent); opacity: 1; }
body:is([data-look-bg="mesh"], [data-look-bg="paper"], [data-look-bg="spotlight"]) .look-bg .g { display: block; inset: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); opacity: var(--look-grain, .16); mix-blend-mode: var(--look-grain-blend, multiply); }
body[data-look-bg="paper"] .look-bg { background: radial-gradient(120% 80% at 50% 0%, var(--look-base2), var(--look-base) 70%); }
body[data-look-bg="paper"] .look-bg .b1 { display: block; inset: 0; background: radial-gradient(140% 100% at 50% 40%, transparent 60%, color-mix(in srgb, var(--look-ink) 9%, transparent)); }
body[data-look-bg="dots"] .look-bg .b1 { display: block; inset: -40px; background-image: radial-gradient(color-mix(in srgb, var(--look-ink) 20%, transparent) 1.1px, transparent 1.6px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, .25) 70%, transparent); mask-image: linear-gradient(#000, rgba(0, 0, 0, .25) 70%, transparent); }
body[data-look-bg="dots"] .look-bg .b2 { display: block; width: 120%; aspect-ratio: 1; left: -10%; top: -30%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--look-accent) 35%, transparent), transparent); }
body[data-look-bg="dots"] .look-bg .b3 { display: block; width: 110%; aspect-ratio: 1; right: -50%; bottom: -25%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--look-glow) 30%, transparent), transparent); }
/* NFC field: rings centred on the photo as it sits when the page opens. */
body[data-look-bg="field"] .look-bg { background: radial-gradient(90% 50% at 50% var(--look-field-y), color-mix(in srgb, var(--look-accent) 14%, var(--look-base)), var(--look-base) 70%); }
body[data-look-bg="field"] .look-bg .r { display: block; left: 50%; top: var(--look-field-y); width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--look-accent) 60%, transparent); scale: var(--s); opacity: var(--o); }
body[data-look-bg="field"] .look-bg .r1 { --s: 1.25; --o: .55; }
body[data-look-bg="field"] .look-bg .r2 { --s: 1.9; --o: .35; }
body[data-look-bg="field"] .look-bg .r3 { --s: 2.6; --o: .2; }
body[data-look-bg="field"] .look-bg .r4 { --s: 3.4; --o: .1; }
body[data-look-style] { --look-field-y: 230px; }
body[data-look-bg="pride"] .look-bg .b1 { display: block; top: -60%; bottom: -60%; left: -120%; right: -20%; background: repeating-linear-gradient(135deg, #e40303 0 34px, #ff8c00 34px 68px, #ffed00 68px 102px, #008026 102px 136px, #004dff 136px 170px, #750787 170px 204px); }
body[data-look-bg="pride"] .look-bg .b2 { display: block; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--look-base) 78%, transparent) 0 16%, color-mix(in srgb, var(--look-base) 38%, transparent) 42%, color-mix(in srgb, var(--look-base) 52%, transparent)); }
body[data-look-bg="spotlight"] .look-bg .b1 { display: block; width: 170%; aspect-ratio: 1; left: -35%; top: -70%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--look-accent) 34%, transparent), transparent); }
body[data-look-bg="spotlight"] .look-bg .b2 { display: block; inset: -10% -30% 0; transform-origin: 50% 0; background: conic-gradient(from 0deg at 50% -6%, transparent 0deg 158deg, color-mix(in srgb, var(--look-accent) 18%, transparent) 168deg, transparent 178deg, color-mix(in srgb, var(--look-accent) 12%, transparent) 188deg, transparent 198deg 360deg); }
/* The showpiece backgrounds (holo, snow, terminal, galaxy, trans, ribbon), from the
   approved showpiece draft (artifact QkPKCECotCYZgmDyDbRLrG). Their light and dark
   values (--look-flake, --look-star, --look-foil, --look-ribbon, --look-veil-*) come
   with the palette (web.palette_vars), like --look-grain. Layers that move are drawn
   larger than the screen and moved with translate or rotate, never repainted. */
/* Holographic: a conic foil that turns slowly, a fine sheen over it, and the page
   colour at the top and bottom. The apps also turn it with the phone's tilt; the web
   has no tilt, only the sweep. The draft turns the gradient's angle; this turns a
   square layer wider than the screen's diagonal, which draws the same foil. */
body[data-look-bg="holo"] .look-bg .b1 { display: block; width: 130vmax; aspect-ratio: 1; left: 50%; top: 50%; margin: -65vmax 0 0 -65vmax; background: conic-gradient(from 0deg at 50% 50%, #ffb3e6, #c3b5ff, #9fe3ff, #b5ffe1, #fff1a8, #ffc3a0, #ffb3e6); filter: blur(22px) saturate(var(--look-foil-sat, 1.15)); opacity: var(--look-foil, .62); }
body[data-look-bg="holo"] .look-bg .b2 { display: block; inset: -40%; background: repeating-linear-gradient(115deg, transparent 0 26px, rgba(255, 255, 255, .42) 26px 28px, transparent 28px 64px); mix-blend-mode: soft-light; }
body[data-look-bg="holo"] .look-bg .b3 { display: block; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--look-base) 50%, transparent), transparent 28%, transparent 72%, color-mix(in srgb, var(--look-base) 40%, transparent)); }
/* Snowfall: two layers of flakes at different speeds over a light from below. Each
   layer reaches one fall above the screen and falls by it; the draft's sideways
   drift is a slow sway here, so the loop never jumps sideways. The warm light is a
   circle 150% of the screen wide whose bottom sits 35% of the screen's height below
   it, so its centre is at the bottom edge (the draft's -75% hid it entirely). */
body[data-look-bg="snow"] .look-bg { background: linear-gradient(180deg, var(--look-base2), var(--look-base) 62%); }
body[data-look-bg="snow"] .look-bg :is(.b1, .b2) { display: block; background-repeat: repeat; }
body[data-look-bg="snow"] .look-bg .b1 { inset: -770px 0 0 -30px; --drift: 30px; background-image: radial-gradient(circle, var(--look-flake) 0 1.3px, transparent 1.9px), radial-gradient(circle, var(--look-flake) 0 1px, transparent 1.6px); background-size: 90px 110px, 64px 70px; background-position: 30px 0, 61px 37px; opacity: .85; }
body[data-look-bg="snow"] .look-bg .b2 { inset: -680px -30px 0 0; --drift: -30px; background-image: radial-gradient(circle, var(--look-flake) 0 2.3px, transparent 3px); background-size: 150px 170px; background-position: 40px 20px; filter: blur(.5px); }
body[data-look-bg="snow"] .look-bg .b3 { display: block; width: 150%; aspect-ratio: 1; left: -25%; bottom: -35%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--look-glow) 34%, transparent), transparent); }
/* Scanlines: a phosphor glow from the top, fine lines, one slow scan band, and a
   cursor after the name (the type is usually Mono). */
body[data-look-bg="terminal"] .look-bg { background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--look-glow) 16%, var(--look-base)), var(--look-base) 70%); }
body[data-look-bg="terminal"] .look-bg .b1 { display: block; inset: 0; background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--look-ink) 7%, transparent) 0 1px, transparent 1px 3px); }
body[data-look-bg="terminal"] .look-bg .b2 { display: block; left: 0; right: 0; top: -140px; height: 140px; background: linear-gradient(transparent, color-mix(in srgb, var(--look-glow) 16%, transparent), transparent); }
/* Star field: a nebula and two layers of stars that drift and twinkle. */
body[data-look-bg="galaxy"] .look-bg { background: radial-gradient(130% 80% at 30% 8%, color-mix(in srgb, var(--look-accent) 24%, var(--look-base)), var(--look-base) 66%); }
body[data-look-bg="galaxy"] .look-bg .b1 { display: block; width: 140%; aspect-ratio: 1; left: -10%; top: 30%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--look-glow) 30%, transparent), transparent); filter: blur(26px); }
body[data-look-bg="galaxy"] .look-bg .b2 { display: block; inset: -140px 0 0 -140px; background-image: radial-gradient(1px 1px at 12px 22px, var(--look-star), transparent), radial-gradient(1px 1px at 71px 49px, var(--look-star), transparent), radial-gradient(1.2px 1.2px at 110px 96px, var(--look-star), transparent), radial-gradient(1px 1px at 38px 118px, var(--look-star), transparent), radial-gradient(.9px .9px at 128px 14px, var(--look-star), transparent), radial-gradient(1px 1px at 89px 132px, var(--look-star), transparent); background-size: 140px 140px; opacity: .8; }
/* The near stars' tile is 230px: they drift one tile, at the draft's speed, so the
   loop does not jump. */
body[data-look-bg="galaxy"] .look-bg .b3 { display: block; inset: -230px 0 0 -230px; background-image: radial-gradient(1.8px 1.8px at 40px 60px, var(--look-star), transparent), radial-gradient(1.5px 1.5px at 170px 30px, var(--look-star), transparent), radial-gradient(2px 2px at 120px 190px, var(--look-star), transparent); background-size: 230px 230px; }
/* Trans stripes: built exactly like Pride's. */
body[data-look-bg="trans"] .look-bg .b1 { display: block; top: -60%; bottom: -60%; left: -120%; right: -20%; background: repeating-linear-gradient(135deg, #5bcefa 0 40px, #f5a9b8 40px 80px, #ffffff 80px 120px, #f5a9b8 120px 160px); }
body[data-look-bg="trans"] .look-bg .b2 { display: block; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--look-base) var(--look-veil-top, 74%), transparent) 0 16%, color-mix(in srgb, var(--look-base) var(--look-veil-mid, 30%), transparent) 42%, color-mix(in srgb, var(--look-base) var(--look-veil-end, 46%), transparent)); }
/* Pink ribbons: a blush page and a faint ribbon pattern, a vector mask, fading out
   down the card. */
body[data-look-bg="ribbon"] .look-bg { background: linear-gradient(170deg, var(--look-base2), var(--look-base) 55%, color-mix(in srgb, var(--look-glow) 28%, var(--look-base))); }
body[data-look-bg="ribbon"] .look-bg .b1 { display: block; inset: -156px 0 0 -52px; background: var(--look-accent); opacity: var(--look-ribbon, .13);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 60'><path d='M13 55 L24 31 C29 21 27 8 20 8 C13 8 11 21 16 31 L27 55' fill='none' stroke='black' stroke-width='4.6'/></svg>") 0 0/52px 78px repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 60'><path d='M13 55 L24 31 C29 21 27 8 20 8 C13 8 11 21 16 31 L27 55' fill='none' stroke='black' stroke-width='4.6'/></svg>") 0 0/52px 78px repeat; }
body[data-look-bg="ribbon"] .look-bg .b2 { display: block; inset: 0; background: linear-gradient(180deg, transparent 0 18%, color-mix(in srgb, var(--look-base) 85%, transparent) 70%, var(--look-base)); }

/* ---------- tile styles ---------- */
body[data-look-tiles="outline"] { --tile-bg: color-mix(in srgb, var(--look-ink) 2.5%, transparent); --tile-border: 1px solid color-mix(in srgb, var(--look-ink) 20%, transparent); --tile-r: 30px; --tile-shadow: none; --tile-blur: none; --lt-r: 30px; }
body[data-look-tiles="solid"] { --tile-bg: var(--look-base2); --tile-border: 1px solid transparent; --tile-r: 22px; --tile-shadow: none; --tile-blur: none; --lt-r: 22px; }
body[data-look-tiles="glass"] { --tile-bg: color-mix(in srgb, var(--look-base2) 34%, transparent); --tile-border: 1px solid color-mix(in srgb, #fff 24%, transparent); --tile-r: 26px; --tile-shadow: inset 0 1px 0 color-mix(in srgb, #fff 28%, transparent), 0 14px 30px -20px rgba(0, 0, 0, .55); --tile-blur: blur(18px) saturate(160%); --lt-r: 24px; }
body[data-look-tiles="lifted"] { --tile-bg: var(--look-base2); --tile-border: 1px solid color-mix(in srgb, var(--look-ink) 6%, transparent); --tile-r: 18px; --tile-shadow: 0 1px 2px rgba(0, 0, 0, .07), 0 14px 28px -14px rgba(0, 0, 0, .32); --tile-blur: none; --lt-r: 18px; }
body[data-look-tiles="ledger"] { --tile-bg: transparent; --tile-border: 1px solid color-mix(in srgb, var(--look-ink) 24%, transparent); --tile-r: 3px; --tile-shadow: none; --tile-blur: none; --lt-r: 3px; }
body[data-look-tiles="metal"] { --tile-bg: linear-gradient(180deg, color-mix(in srgb, var(--look-base2), #fff 9%), var(--look-base2) 55%, color-mix(in srgb, var(--look-base2), #000 12%)); --tile-border: 1px solid color-mix(in srgb, var(--look-accent) 42%, transparent); --tile-r: 14px; --tile-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 26px -16px rgba(0, 0, 0, .75); --tile-blur: none; --lt-r: 14px; }
body[data-look-tiles="glow"] { --tile-border: 1.5px solid transparent; --tile-r: 22px; --tile-shadow: 0 0 22px -6px color-mix(in srgb, var(--look-accent) 45%, transparent); --tile-blur: none; --lt-r: 20px; }
body[data-look-tiles="soft"] { --tile-bg: var(--look-base); --tile-border: 1px solid transparent; --tile-r: 26px; --tile-shadow: 7px 7px 16px var(--look-sd), -7px -7px 16px var(--look-sl); --tile-blur: none; --lt-r: 24px; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- typefaces ---------- */
body[data-look-type="titillium"] { --f-name: 'Titillium Web', system-ui, sans-serif; --f-text: 'Titillium Web', system-ui, sans-serif; --f-label: var(--f-text); --f-val: var(--f-text); --nm-size: 29px; --nm-w: 700; --nm-ls: 0; --st-size: 12.5px; --st-ls: .02em; }
body[data-look-type="serif"] { --f-name: 'Newsreader', Georgia, serif; --f-text: 'Geist', system-ui, sans-serif; --f-label: 'Geist', system-ui, sans-serif; --f-val: 'Newsreader', Georgia, serif; --nm-size: 34px; --nm-w: 400; --nm-ls: -.01em; --st-size: 10px; --st-ls: .18em; --val-size: 16.5px; }
body[data-look-type="grotesk"] { --f-name: 'Geist', system-ui, sans-serif; --f-text: 'Geist', system-ui, sans-serif; --f-label: 'Geist Mono', ui-monospace, monospace; --f-val: var(--f-text); --nm-size: 28px; --nm-w: 600; --nm-ls: -.025em; --st-size: 10px; --st-ls: .1em; --val-size: 14px; }
body[data-look-type="rounded"] { --f-name: 'Nunito', system-ui, sans-serif; --f-text: 'Nunito', system-ui, sans-serif; --f-label: var(--f-text); --f-val: var(--f-text); --nm-size: 29px; --nm-w: 800; --nm-ls: -.01em; --st-size: 12px; --st-ls: .06em; }
body[data-look-type="display"] { --f-name: 'Bricolage Grotesque', system-ui, sans-serif; --f-text: 'Bricolage Grotesque', system-ui, sans-serif; --f-label: var(--f-text); --f-val: var(--f-text); --nm-size: 42px; --nm-w: 700; --nm-ls: -.03em; --nm-stretch: 75%; --st-size: 11px; --st-ls: .12em; }
body[data-look-type="friendly"] { --f-name: 'Gabarito', system-ui, sans-serif; --f-text: 'Gabarito', system-ui, sans-serif; --f-label: var(--f-text); --f-val: var(--f-text); --nm-size: 31px; --nm-w: 800; --nm-ls: -.015em; --st-size: 12.5px; --st-ls: .03em; }
body[data-look-type="didone"] { --f-name: 'Playfair Display', Georgia, serif; --f-text: 'Geist', system-ui, sans-serif; --f-label: 'Geist', system-ui, sans-serif; --f-val: var(--f-text); --nm-size: 33px; --nm-w: 600; --nm-ls: -.005em; --st-size: 10px; --st-ls: .2em; --val-size: 15px; }
body[data-look-type="plex"] { --f-name: 'IBM Plex Sans', system-ui, sans-serif; --f-text: 'IBM Plex Sans', system-ui, sans-serif; --f-label: 'IBM Plex Mono', ui-monospace, monospace; --f-val: var(--f-text); --nm-size: 30px; --nm-w: 600; --nm-ls: -.015em; --st-size: 10.5px; --st-ls: .08em; --val-size: 15px; }
body[data-look-type="geometric"] { --f-name: 'Sora', system-ui, sans-serif; --f-text: 'Sora', system-ui, sans-serif; --f-label: var(--f-text); --f-val: var(--f-text); --nm-size: 28px; --nm-w: 600; --nm-ls: -.03em; --st-size: 10.5px; --st-ls: .14em; --val-size: 14px; }
body[data-look-type="condensed"] { --f-name: 'Barlow Condensed', 'Arial Narrow', sans-serif; --f-text: 'Barlow', system-ui, sans-serif; --f-label: 'Barlow Condensed', 'Arial Narrow', sans-serif; --f-val: var(--f-text); --nm-size: 42px; --nm-w: 700; --nm-ls: 0; --st-size: 13px; --st-ls: .12em; --val-size: 15.5px; }
body[data-look-type="mono"] { --f-name: 'Geist Mono', ui-monospace, monospace; --f-text: 'Geist Mono', ui-monospace, monospace; --f-label: 'Geist Mono', ui-monospace, monospace; --f-val: var(--f-text); --nm-size: 25px; --nm-w: 600; --nm-ls: -.03em; --st-size: 10.5px; --st-ls: .08em; --val-size: 13.5px; }

/* ---------- the card ---------- */
body[data-look-style] .look-name h1 { font-family: var(--f-name); font-size: var(--nm-size); font-weight: var(--nm-w); letter-spacing: var(--nm-ls); font-stretch: var(--nm-stretch, 100%); line-height: 1.05; text-wrap: balance; color: var(--look-ink); }
body[data-look-style] .rounded-section { background: var(--tile-bg); border: var(--tile-border); border-radius: var(--tile-r); box-shadow: var(--tile-shadow); -webkit-backdrop-filter: var(--tile-blur); backdrop-filter: var(--tile-blur); position: relative; overflow: hidden; color: var(--look-ink); }
/* A header photo stays the header tile's picture. */
body[data-look-style] .look-head[style*="background-image"] { background-size: cover; }
body[data-look-style] .avatar-circle { box-shadow: var(--look-av-ring); }
body[data-look-style] svg.avatar { fill: var(--look-muted); }
body[data-look-style] .section-title { font-family: var(--f-label); font-size: var(--st-size); letter-spacing: var(--st-ls); text-transform: uppercase; color: var(--look-muted); font-weight: 400; margin-inline: 14px 0; text-align: start; }
body[data-look-style] .subsection-title { color: var(--look-muted); font-family: var(--f-label); font-size: 12.5px; }
body[data-look-style] .rounded-section :is(p, span) { font-family: var(--f-val); font-size: var(--val-size, inherit); }
body[data-look-style] .rounded-section .subsection-title { font-family: var(--f-label); font-size: 12.5px; }
body[data-look-style] .rounded-section a,
body[data-look-style] .rounded-section a:is(:hover, :focus, :active) { color: var(--look-link); font-family: var(--f-val); font-size: var(--val-size, inherit); }
body[data-look-style] .divider { color: var(--look-ink); background-color: var(--look-ink); border-color: var(--look-ink); opacity: .12; }
/* Scanlines: a block cursor after the name, in the accent. */
body[data-look-bg="terminal"] .look-name h1::after { content: ""; display: inline-block; width: .52em; height: .92em; margin-inline-start: .14em; vertical-align: -.1em; background: var(--look-accent); }

/* Link and social tiles */
body[data-look-style] .look-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
body[data-look-style] .rounded-section.look-link { flex: 1 1 calc(50% - 10px); min-width: 0; box-sizing: border-box; padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: var(--lt-r); color: var(--look-ink); font-family: var(--f-text); text-align: center; text-decoration: none; transition: scale .18s ease, translate .18s ease, box-shadow .18s ease; }
@media (min-width: 769px) { body[data-look-style] .rounded-section.look-link.url-link-item { flex-basis: calc(33.33% - 10px); } }
body[data-look-style] .look-link .platform-icon { margin: 0; width: 42px; height: 42px; }

/* Platform icons drawn per appearance follow the card's appearance, not the phone's. */
body[data-look-appearance="light"] .platform-internet::before { content: url("../icons/link-light.63f72f1e0b5d.svg"); }
body[data-look-appearance="light"] .platform-x::before { content: url("../icons/x-light.856e2168d526.svg"); }
body[data-look-appearance="light"] .platform-github::before { content: url("../icons/github-light.b067f826367d.svg"); }
body[data-look-appearance="light"] .platform-tiktok::before { content: url("../icons/tiktok-light.3faf2969bf2f.svg"); }
body[data-look-appearance="light"] .platform-threads::before { content: url("../icons/threads-light.1a3f1402ad71.svg"); }
body[data-look-appearance="dark"] .platform-internet::before { content: url("../icons/link-dark.5abdcb4e4e63.svg"); }
body[data-look-appearance="dark"] .platform-x::before { content: url("../icons/x-dark.5fc8a170c112.svg"); }
body[data-look-appearance="dark"] .platform-github::before { content: url("../icons/github-dark.c75382769a6b.svg"); }
body[data-look-appearance="dark"] .platform-tiktok::before { content: url("../icons/tiktok-dark.8a49b01a311a.svg"); }
body[data-look-appearance="dark"] .platform-threads::before { content: url("../icons/threads-dark.92644df804ce.svg"); }

/* Save Contact: fixed at the bottom like today, in the palette's colours.
   Centred with logical insets instead of left: 50%. */
body[data-look-style] .look-save { position: fixed; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); inset-inline: 0; margin-inline: auto; z-index: 100; width: fit-content; max-width: 260px; padding: 0 38px; overflow: hidden; }
body[data-look-style] :is(.download_vcard_button, .connect-back-button),
body[data-look-style] :is(.download_vcard_button, .connect-back-button):is(:hover, :focus, :active) {
  background: var(--look-save-bg) !important;
  color: var(--look-save-ink) !important;
  font-family: var(--f-text);
  /* the loading spinner's bars, drawn in these two */
  --brand-primary-color: var(--look-save-ink);
  --brand-secondary-color: color-mix(in srgb, var(--look-save-ink) 50%, transparent);
}
/* A gradient Save (Pride) carries its label with a dark halo instead of
   darkening the stripes, and so does a flat one under 4.5:1 (web.save_vars);
   --look-save-shadow is none otherwise. */
body[data-look-style] :is(.download_vcard_button, .connect-back-button) { text-shadow: var(--look-save-shadow, none); }

/* Save Contact takes its tile style: radius, border, fill, shadow and the
   tile's own treatment, the type's font, and the palette's colours. Each tile
   sets --save-*; the one rule below draws them, in every state, over
   common.css's blue pill. Outline is today's pill. */
body[data-look-style] .look-save {
  --save-paint: var(--look-save-paint);
  --save-ink: var(--look-save-ink);
  --save-carry: var(--look-save-shadow, none);
  --save-border: 0 solid transparent;
  --save-r: var(--tile-r);
  --save-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55);
  --save-blur: none;
}
body[data-look-style] .look-save,
body[data-look-style] .look-save:is(:hover, :focus, :active) {
  background: var(--save-paint) !important;
  color: var(--save-ink) !important;
  border: var(--save-border) !important;
  border-radius: var(--save-r) !important;
  box-shadow: var(--save-shadow) !important;
  -webkit-backdrop-filter: var(--save-blur);
  backdrop-filter: var(--save-blur);
  text-shadow: var(--save-carry);
  font-family: var(--f-name);
  --brand-primary-color: var(--save-ink);
  --brand-secondary-color: color-mix(in srgb, var(--save-ink) 50%, transparent);
  transition: scale .15s ease;
}
body[data-look-style] .look-save:active { scale: .96; }
body[data-look-style] .look-save::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); translate: -140% 0; pointer-events: none; }
body[data-look-tiles="outline"] .look-save { --save-r: 30px; }
/* Solid: filled like a solid tile, the tile colour on the Save colour. */
body[data-look-tiles="solid"] .look-save { --save-ink: var(--look-save-solid-ink); --save-carry: var(--look-save-solid-shadow, none); --save-shadow: 0 8px 18px -12px rgba(0, 0, 0, .45); }
/* Glass: the Save colour, frosted and translucent, with the tile's hairline. */
body[data-look-tiles="glass"] .look-save { --save-paint: var(--look-save-glass); --save-ink: var(--look-save-glass-ink); --save-carry: var(--look-save-glass-shadow, none); --save-border: 1px solid color-mix(in srgb, #fff 34%, transparent); --save-shadow: inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent), 0 14px 30px -14px rgba(0, 0, 0, .55); --save-blur: blur(18px) saturate(160%); }
/* Lifted: a solid Save on a real shadow, like paper above the page. */
body[data-look-tiles="lifted"] .look-save { --save-border: 1px solid color-mix(in srgb, var(--look-ink) 6%, transparent); --save-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 6px 12px -4px rgba(0, 0, 0, .22), 0 18px 30px -12px rgba(0, 0, 0, .42); }
body[data-look-tiles="lifted"] .look-save:active { translate: 0 2px; }
/* Ledger: sharp corners, a hairline, and an uppercase label in the label face. */
body[data-look-tiles="ledger"] .look-save { --save-border: 1px solid color-mix(in srgb, var(--look-ink) 24%, transparent); --save-shadow: 0 8px 18px -14px rgba(0, 0, 0, .5); }
body[data-look-tiles="ledger"] .look-save,
body[data-look-tiles="ledger"] .look-save:is(:hover, :focus, :active) { font-family: var(--f-label); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
/* Metal: brushed, lit from above, the accent's hairline, and the sheen. */
body[data-look-tiles="metal"] .look-save { --save-paint: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 38%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px), var(--look-save-paint); --save-ink: var(--look-save-metal-ink); --save-carry: var(--look-save-metal-shadow, none); --save-border: 1px solid color-mix(in srgb, var(--look-accent), #fff 45%); --save-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 26px -14px rgba(0, 0, 0, .75); }
body[data-look-tiles="metal"] .look-save::after { background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); }
/* Glow: the Save colour inside the glow tile's turning accent/glow edge. Set
   here, on the button, because --ang turns per element. */
body[data-look-tiles="glow"] .look-save { --save-border: 2px solid transparent; --save-shadow: 0 0 24px -4px color-mix(in srgb, var(--look-accent) 70%, transparent), 0 10px 24px -12px rgba(0, 0, 0, .55); }
body[data-look-tiles="glow"] .look-save,
body[data-look-tiles="glow"] .look-save:is(:hover, :focus, :active) { background: var(--look-save-paint) padding-box, conic-gradient(from var(--ang, 0deg), var(--look-glow), color-mix(in srgb, var(--look-glow), #fff 60%), transparent 34%, transparent 66%, var(--look-glow)) border-box !important; }
/* Soft: pressed into the page, the soft tiles' neumorphic light turned inward. */
body[data-look-tiles="soft"] .look-save { --save-shadow: inset 4px 4px 9px rgba(0, 0, 0, .3), inset -4px -4px 9px rgba(255, 255, 255, .3), 0 1px 0 var(--look-sl); }
body[data-look-tiles="soft"] .look-save:active { --save-shadow: inset 6px 6px 12px rgba(0, 0, 0, .36), inset -3px -3px 8px rgba(255, 255, 255, .24), 0 1px 0 var(--look-sl); }

/* The sheets (Connect Back, PIN, plan) take the card's type */
body[data-look-style] .modal { font-family: var(--f-text); }
body[data-look-style] #contact-form h2 { font-family: var(--f-name); font-weight: var(--nm-w); }
body[data-look-style] #contact-form :is(input, textarea),
body[data-look-style] :is(.country-picker-button, .country-search) { font-family: inherit; }

/* ---------- per tile style details ---------- */
body[data-look-tiles="ledger"] .rounded-section:not(.look-head):not(.look-link) { text-align: start; padding: 6px 16px; }
body[data-look-tiles="ledger"] .divider { margin-block: 6px; }
body[data-look-tiles="ledger"] .rounded-section .subsection-title { display: inline-block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding-top: 8px; }
body[data-look-tiles="ledger"] .look-grid { flex-direction: column; gap: 8px; }
body[data-look-tiles="ledger"] .rounded-section.look-link { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; padding: 10px 14px; gap: 10px; }
body[data-look-tiles="ledger"] .look-link .platform-icon { width: 26px; height: 26px; }
body[data-look-tiles="ledger"] .look-link .platform-icon::before { filter: none; }
body[data-look-tiles="ledger"] .look-link::after { content: "\2192"; margin-inline-start: auto; color: var(--look-muted); }
body[data-look-tiles="ledger"] .look-link:dir(rtl)::after { content: "\2190"; }
body[data-look-tiles="ledger"] .section-title { margin-inline: 2px 0; }
/* Pride and Trans: text that sits straight on the stripes (section titles, Made
   with) goes in ink on a small base-coloured pill, so it reads at 4.5:1 without
   dimming the stripes. Made with by its class: a card's own link to the same
   page is a tile like any other. */
body[data-look-bg="pride"] .section-title,
body[data-look-bg="trans"] .section-title,
body[data-look-bg="pride"] .look-card a.made-with,
body[data-look-bg="trans"] .look-card a.made-with { width: fit-content; box-sizing: border-box; padding: 2px 10px; border-radius: 999px; color: var(--look-ink); background: color-mix(in srgb, var(--look-base) 88%, transparent); }
body[data-look-bg="pride"] .look-card a.made-with,
body[data-look-bg="trans"] .look-card a.made-with { padding: 6px 14px; border-radius: 14px; }
body[data-look-tiles="metal"] .rounded-section::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); translate: -130% 0; pointer-events: none; }
/* Glow draws its moving edge on the tile itself: --ang is animated per tile, and a
   variable that used it on <body> would be worked out there, once. */
body[data-look-tiles="glow"] .rounded-section { background: linear-gradient(var(--look-base2), var(--look-base2)) padding-box, conic-gradient(from var(--ang, 0deg), var(--look-accent), var(--look-glow), transparent 34%, transparent 66%, var(--look-accent)) border-box; }
body[data-look-tiles="glass"] .look-link:active { background: color-mix(in srgb, var(--look-base2) 55%, transparent); }
body[data-look-tiles="lifted"] .look-link:active { translate: 0 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
body[data-look-tiles="soft"] .look-link:active { box-shadow: inset 4px 4px 10px var(--look-sd), inset -4px -4px 10px var(--look-sl); }
body[data-look-tiles="glow"] .look-link:active { scale: .96; }
body[data-look-motion="lively"] .look-link:active { scale: .94; }

/* ---------- motion ----------
   Arrival runs once as the page opens, with fill-mode backwards: nothing keeps a
   transform afterwards, so the fixed Save Contact button and the sheets stay
   fixed to the screen. The name's section holds Save Contact, so its heading
   rises instead of the section. */
@keyframes look-rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes look-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes look-avin { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
@keyframes look-savein { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes look-sheen { from { translate: -130% 0; } to { translate: 130% 0; } }
@keyframes look-spin { to { --ang: 360deg; } }
@keyframes look-flow { from { translate: 0 0; } to { translate: 0 -56%; } }
@keyframes look-drift1 { from { translate: 0 0; scale: 1; } to { translate: 38% 18%; scale: 1.15; } }
@keyframes look-drift2 { from { translate: 0 0; scale: 1.1; } to { translate: -30% 24%; scale: .92; } }
@keyframes look-pan { to { translate: 16px 16px; } }
@keyframes look-ripple { from { scale: .75; opacity: .75; } to { scale: 3.8; opacity: 0; } }
@keyframes look-sway { from { rotate: -5deg; } to { rotate: 5deg; } }
@keyframes look-pride { to { translate: 288.5px 0; } }
@keyframes look-trans { to { translate: 226.27px 0; } }
@keyframes look-holo { to { rotate: 360deg; } }
@keyframes look-snow1 { to { translate: 0 770px; } }
@keyframes look-snow2 { to { translate: 0 680px; } }
@keyframes look-snow-drift { to { transform: translateX(var(--drift)); } }
@keyframes look-scan { to { translate: 0 calc(100vh + 140px); } }
@keyframes look-blink { 50% { opacity: 0; } }
@keyframes look-stars { to { translate: 140px 140px; } }
@keyframes look-stars-near { to { translate: 230px 230px; } }
@keyframes look-twinkle { from { opacity: .45; } to { opacity: 1; } }
@keyframes look-ribbons { to { translate: 52px 156px; } }
@keyframes look-burst { 0% { translate: 0 0; rotate: 0deg; opacity: 1; scale: 1; } 100% { translate: var(--dx) var(--dy); rotate: var(--r); opacity: 0; scale: .6; } }

/* Lively: a burst of shapes from Save Contact when the contact is saved
   (lookSaveBurst in js/profile.js places them at the button's centre). */
.look-burst { position: fixed; width: 8px; height: 8px; margin: -4px 0 0 -4px; pointer-events: none; z-index: 101; border-radius: 2px; animation: look-burst .85s cubic-bezier(.2, .7, .3, 1) forwards; }
.look-burst.round { border-radius: 50%; }

/* the order things arrive in */
.look-card > :nth-of-type(2) { --i: 1; }
.look-card > :nth-of-type(3) { --i: 2; }
.look-card > :nth-of-type(4) { --i: 3; }
.look-card > :nth-of-type(5) { --i: 4; }
.look-card > :nth-of-type(6) { --i: 5; }
.look-card > :nth-of-type(7) { --i: 6; }
.look-card > :nth-of-type(8) { --i: 7; }
.look-card > :nth-of-type(9) { --i: 8; }
.look-card > :nth-of-type(10) { --i: 9; }
.look-card > :nth-of-type(11) { --i: 10; }
.look-card > :nth-of-type(12) { --i: 11; }
.look-card > :nth-of-type(13) { --i: 12; }
.look-card > :nth-of-type(n+14) { --i: 13; }
.look-card .look-name { --i: 0; }

body[data-look-motion="still"] .look-card { animation: look-fade .3s ease-out backwards; }
body:is([data-look-motion="calm"], [data-look-motion="lively"]) .look-card > .section:not(.look-name),
body:is([data-look-motion="calm"], [data-look-motion="lively"]) .look-name h1 { animation: look-rise .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
body[data-look-motion="lively"] .look-card > .section:not(.look-name),
body[data-look-motion="lively"] .look-name h1 { animation-timing-function: cubic-bezier(.3, 1.35, .5, 1); }
body:is([data-look-motion="calm"], [data-look-motion="lively"]) .avatar-circle { animation: look-avin .8s .15s cubic-bezier(.2, .7, .2, 1) backwards; }
body:is([data-look-motion="calm"], [data-look-motion="lively"]) .look-save { animation: look-savein .5s .35s cubic-bezier(.2, .8, .2, 1) backwards; }
body:is([data-look-motion="calm"], [data-look-motion="lively"]) .look-save::after { animation: look-sheen 1.1s 1.1s ease-in-out backwards; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-tiles="glow"] .look-save { animation: look-savein .5s .35s cubic-bezier(.2, .8, .2, 1) backwards, look-spin 7s linear infinite; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-tiles="metal"] .rounded-section::after { animation: look-sheen 1.4s ease-in-out backwards; animation-delay: calc(.5s + var(--i, 0) * 110ms); }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-tiles="glow"] .rounded-section { animation: look-spin 7s linear infinite; animation-delay: calc(var(--i, 0) * -1.1s); }

/* ambient background motion: Calm and Lively only */
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="flow"] .look-bg .b1 { animation: look-flow 22s ease-in-out infinite alternate; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="aurora"] .look-bg .b1 { animation: look-drift1 26s ease-in-out infinite alternate; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="aurora"] .look-bg .b2 { animation: look-drift2 32s ease-in-out infinite alternate; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="aurora"] .look-bg .b3 { animation: look-drift1 38s -9s ease-in-out infinite alternate-reverse; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="mesh"] .look-bg .b1 { animation: look-drift2 40s ease-in-out infinite alternate; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="mesh"] .look-bg .b2 { animation: look-drift1 46s ease-in-out infinite alternate; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="dots"] .look-bg .b1 { animation: look-pan 9s linear infinite; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="field"] .look-bg .r { animation: look-ripple 7.2s cubic-bezier(.15, .5, .35, 1) infinite; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="field"] .look-bg .r2 { animation-delay: -1.8s; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="field"] .look-bg .r3 { animation-delay: -3.6s; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="field"] .look-bg .r4 { animation-delay: -5.4s; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="spotlight"] .look-bg .b2 { animation: look-sway 11s ease-in-out infinite alternate; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="pride"] .look-bg .b1 { animation: look-pride 14s linear infinite; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="trans"] .look-bg .b1 { animation: look-trans 14s linear infinite; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="holo"] .look-bg .b1 { animation: look-holo 16s linear infinite; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="snow"] .look-bg .b1 { animation: look-snow1 22s linear infinite, look-snow-drift 22s ease-in-out infinite alternate; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="snow"] .look-bg .b2 { animation: look-snow2 15s linear infinite, look-snow-drift 15s ease-in-out infinite alternate; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="terminal"] .look-bg .b2 { animation: look-scan 8s linear infinite; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="terminal"] .look-name h1::after { animation: look-blink 1.1s steps(1) infinite; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="galaxy"] .look-bg .b2 { animation: look-stars 90s linear infinite; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="galaxy"] .look-bg .b3 { animation: look-stars-near 98.6s linear infinite, look-twinkle 3.2s ease-in-out infinite alternate; }
body:is([data-look-motion="calm"], [data-look-motion="lively"])[data-look-bg="ribbon"] .look-bg .b1 { animation: look-ribbons 40s linear infinite; }

/* Off, and the phone's Reduce Motion whatever the owner picked: nothing moves,
   and no burst is drawn (profile.js does not start one either). */
body[data-look-motion="off"] :is(.look-bg i, .look-card, .look-card .section, .look-card h1, .avatar-circle, .rounded-section, .look-save, .look-burst),
body[data-look-motion="off"] :is(.rounded-section, .look-save, .look-name h1)::after { animation: none !important; transition: none !important; }
body[data-look-motion="off"] .look-burst { display: none; }
@media (prefers-reduced-motion: reduce) {
  body[data-look-style] :is(.look-bg i, .look-card, .look-card .section, .look-card h1, .avatar-circle, .rounded-section, .look-save, .look-burst),
  body[data-look-style] :is(.rounded-section, .look-save, .look-name h1)::after { animation: none !important; transition: none !important; }
  body[data-look-style] .look-burst { display: none; }
}
/* Safari 26 behind its bars (Nico 2026-11-26: "black bars"). It fills a bar with the colour of a
   fixed element at that edge, so the fixed layer made both bars the plain ground and the pattern
   stopped at them. The layer scrolls with the page instead (absolute on the root, as tall as the
   page): the pattern runs on under the bottom toolbar. The status bar is always the ground
   (html's background, theme-color), never a picture, so the pattern fades into the ground at the
   top: the bar reads as the page's own edge. Short fades at both ends (Nico 2026-11-26). */
html:has(body[data-look-style]) { position: relative; }
.look-bg { position: absolute; bottom: 0; min-height: calc(100lvh + env(safe-area-inset-top, 0px)); }
.look-bg::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 32px; background: linear-gradient(var(--look-base), transparent); pointer-events: none; z-index: 1; }
/* And at the page's end, under the toolbar, the same fade into the ground (Nico 2026-11-26). */
.look-bg::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(32px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--look-base)); pointer-events: none; z-index: 1; }
