/* ═══════════════════════════════════════════════════════════════════════════
   Bubbly theme engine: served at /assets/bubbly-themes.css, linked only by pages
   whose options.bubbly.theme is set (legacy pages never load it).

   A theme is a complete composition (palette + type + header + block skin).
   Everything is driven by custom properties scoped on <body>:
     body[data-bubbly-theme]    light | atelier | softpop | noir
     body[data-bubbly-palette]  per-theme background palette key
     body[data-bubbly-fonts]    modern | classic | creative
     body[data-bubbly-shape]    rounded | pill | square
     body[data-bubbly-style]    solid | outline | glass
     body[data-bubbly-shadow]   none | soft
     body[data-bubbly-header]   minimal | banner | portrait | poster
   Palette keys and values are an allowlist: src/bubbly-themes.ts (swatches) is
   checked against this file by test/themes.test.ts, including text contrast.

   Specificity note: per-element overrides are emitted AFTER this file as
   [data-bubbly-element="…"]{…!important}. Every !important below lives under
   :where() (zero specificity), so a user override always wins on a tie.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fonts (self-hosted, OFL; see public/assets/fonts/*-OFL.txt) ─────────── */
@font-face{font-family:"Bubbly Inter";src:url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Bubbly Fraunces";src:url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Bubbly Fraunces";src:url("/assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2");font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:"Bubbly Bricolage";src:url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap}

/* ── Font sets ───────────────────────────────────────────────────────────── */
body[data-bubbly-fonts="modern"]{--t-font-heading:"Bubbly Inter",Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--t-font-body:"Bubbly Inter",Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
body[data-bubbly-fonts="classic"]{--t-font-heading:"Bubbly Fraunces",Georgia,"Times New Roman",serif;--t-font-body:"Bubbly Inter",Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
body[data-bubbly-fonts="creative"]{--t-font-heading:"Bubbly Bricolage","Bubbly Inter",Inter,system-ui,sans-serif;--t-font-body:"Bubbly Inter",Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}

/* ── Palettes: --t-bg canvas · --t-surface cards · --t-text ink · --t-muted secondary text
      --t-border hairlines · --t-accent/--t-accent-ink interactive fill + its text
      --t-focus focus ring · --t-danger 18+ warning text ───────────────────── */
/* light */
body[data-bubbly-theme="light"][data-bubbly-palette="snow"]{--t-bg:#ffffff;--t-surface:#f3f7fb;--t-text:#0b1b2e;--t-muted:#526273;--t-border:#d9e3ec;--t-accent:#0a6bd0;--t-accent-ink:#ffffff;--t-focus:#0a6bd0;--t-danger:#b42318;--t-glow-a:#bfe6ff;--t-glow-b:#e4efff}
body[data-bubbly-theme="light"][data-bubbly-palette="sky"]{--t-bg:#e6f4ff;--t-surface:#ffffff;--t-text:#0a2540;--t-muted:#3f5b78;--t-border:#bcdcf3;--t-accent:#0a6bd0;--t-accent-ink:#ffffff;--t-focus:#0a6bd0;--t-danger:#b42318;--t-glow-a:#9fd8ff;--t-glow-b:#d4e4ff}
body[data-bubbly-theme="light"][data-bubbly-palette="mist"]{--t-bg:#edf0f5;--t-surface:#ffffff;--t-text:#14202e;--t-muted:#4b5968;--t-border:#d3d9e2;--t-accent:#0a6bd0;--t-accent-ink:#ffffff;--t-focus:#0a6bd0;--t-danger:#b42318;--t-glow-a:#d3e6fa;--t-glow-b:#e4e6f4}
/* atelier */
body[data-bubbly-theme="atelier"][data-bubbly-palette="cream"]{--t-bg:#f3ece1;--t-surface:#fbf7ef;--t-text:#231b14;--t-muted:#5b4f43;--t-border:#c9baa3;--t-accent:#a63d22;--t-accent-ink:#ffffff;--t-focus:#0a6bd0;--t-danger:#a8281a}
body[data-bubbly-theme="atelier"][data-bubbly-palette="sand"]{--t-bg:#e9dfcc;--t-surface:#f5eedf;--t-text:#241c12;--t-muted:#54483a;--t-border:#bfae90;--t-accent:#9a3a1e;--t-accent-ink:#ffffff;--t-focus:#0a6bd0;--t-danger:#a8281a}
body[data-bubbly-theme="atelier"][data-bubbly-palette="rose"]{--t-bg:#f1e2dc;--t-surface:#faf0ec;--t-text:#2b1a17;--t-muted:#62463f;--t-border:#d3b5ab;--t-accent:#a3321f;--t-accent-ink:#ffffff;--t-focus:#0a6bd0;--t-danger:#a8281a}
/* softpop: --t-pop-1..6 are the pastel fills the links cycle through (ink text on every one) */
body[data-bubbly-theme="softpop"]{--t-pop-1:#ffc2d9;--t-pop-2:#bfe3ff;--t-pop-3:#ffe58a;--t-pop-4:#bdf0d4;--t-pop-5:#d9c9ff;--t-pop-6:#ffcfa8}
body[data-bubbly-theme="softpop"][data-bubbly-palette="butter"]{--t-bg:#fff0b8;--t-surface:#ffffff;--t-text:#1c1530;--t-muted:#4a4166;--t-border:#1c1530;--t-accent:#4a28e0;--t-accent-ink:#ffffff;--t-focus:#4a28e0;--t-danger:#b42318}
body[data-bubbly-theme="softpop"][data-bubbly-palette="lilac"]{--t-bg:#e7dcff;--t-surface:#ffffff;--t-text:#1c1530;--t-muted:#4a4166;--t-border:#1c1530;--t-accent:#4a28e0;--t-accent-ink:#ffffff;--t-focus:#4a28e0;--t-danger:#b42318}
body[data-bubbly-theme="softpop"][data-bubbly-palette="mint"]{--t-bg:#cff3e1;--t-surface:#ffffff;--t-text:#1c1530;--t-muted:#3f4a4a;--t-border:#1c1530;--t-accent:#4a28e0;--t-accent-ink:#ffffff;--t-focus:#4a28e0;--t-danger:#b42318}
/* noir */
body[data-bubbly-theme="noir"][data-bubbly-palette="onyx"]{--t-bg:#09090a;--t-surface:#1b1b1d;--t-text:#f4f4f5;--t-muted:#a1a1aa;--t-border:#3a3a3f;--t-accent:#6cc2ff;--t-accent-ink:#04121f;--t-focus:#6cc2ff;--t-danger:#ff8a80;--t-glow-a:#26262b;--t-glow-b:#121214}
body[data-bubbly-theme="noir"][data-bubbly-palette="graphite"]{--t-bg:#151517;--t-surface:#232326;--t-text:#f4f4f5;--t-muted:#a8a8b0;--t-border:#46464c;--t-accent:#6cc2ff;--t-accent-ink:#04121f;--t-focus:#6cc2ff;--t-danger:#ff8a80;--t-glow-a:#303036;--t-glow-b:#1b1b1e}
body[data-bubbly-theme="noir"][data-bubbly-palette="midnight"]{--t-bg:#060b16;--t-surface:#141c2e;--t-text:#eef3ff;--t-muted:#9fb0cc;--t-border:#2c3a56;--t-accent:#6cc2ff;--t-accent-ink:#04121f;--t-focus:#6cc2ff;--t-danger:#ff8a80;--t-glow-a:#16284a;--t-glow-b:#0a1226}

/* ── Knobs ───────────────────────────────────────────────────────────────── */
/* shape: --t-radius = compact buttons · --t-radius-card = big cards · --t-radius-chip = icon chips */
body[data-bubbly-shape="rounded"]{--t-radius:16px;--t-radius-card:20px;--t-radius-chip:12px}
body[data-bubbly-shape="pill"]{--t-radius:999px;--t-radius-card:28px;--t-radius-chip:999px}
body[data-bubbly-shape="square"]{--t-radius:3px;--t-radius-card:3px;--t-radius-chip:2px}
/* shadow */
body[data-bubbly-theme="light"][data-bubbly-shadow="soft"]{--t-shadow:0 10px 28px -12px rgba(10,50,100,.28),0 2px 6px rgba(10,50,100,.06);--t-shadow-hover:0 14px 32px -12px rgba(10,50,100,.34),0 2px 8px rgba(10,50,100,.08)}
body[data-bubbly-theme="atelier"][data-bubbly-shadow="soft"]{--t-shadow:0 8px 22px -14px rgba(60,35,10,.45);--t-shadow-hover:0 12px 26px -14px rgba(60,35,10,.55)}
body[data-bubbly-theme="softpop"][data-bubbly-shadow="soft"]{--t-shadow:4px 4px 0 var(--t-text);--t-shadow-hover:6px 6px 0 var(--t-text)}
body[data-bubbly-theme="noir"][data-bubbly-shadow="soft"]{--t-shadow:0 14px 34px -14px rgba(0,0,0,.9);--t-shadow-hover:0 18px 38px -14px rgba(0,0,0,.95)}
body[data-bubbly-shadow="none"]{--t-shadow:none;--t-shadow-hover:none}
/* per-theme geometry and block materials */
body[data-bubbly-theme="light"]{--t-bw:1px;--t-outline:color-mix(in srgb,var(--t-text) 70%,var(--t-bg))}
body[data-bubbly-theme="atelier"]{--t-bw:1px;--t-outline:color-mix(in srgb,var(--t-text) 55%,var(--t-bg))}
body[data-bubbly-theme="softpop"]{--t-bw:3px;--t-outline:var(--t-text)}
body[data-bubbly-theme="noir"]{--t-bw:1px;--t-outline:color-mix(in srgb,var(--t-text) 62%,var(--t-bg))}
/* blockStyle: solid = filled surface · outline = hairline frame, no fill · glass = translucent blurred */
body[data-bubbly-style="solid"]{--t-block-bg:var(--t-surface);--t-block-border:var(--t-border);--t-block-blur:none}
body[data-bubbly-style="outline"]{--t-block-bg:transparent;--t-block-border:var(--t-outline);--t-block-blur:none}
body[data-bubbly-style="glass"]{--t-block-bg:color-mix(in srgb,var(--t-text) 9%,transparent);--t-block-border:color-mix(in srgb,var(--t-text) 20%,transparent);--t-block-blur:blur(18px) saturate(150%)}
body[data-bubbly-theme="softpop"][data-bubbly-style="solid"]{--t-block-border:var(--t-text)}
body[data-bubbly-theme="softpop"][data-bubbly-style="glass"]{--t-block-bg:rgba(255,255,255,.55);--t-block-border:var(--t-text)}
body[data-bubbly-theme="noir"][data-bubbly-style="solid"]{--t-block-border:color-mix(in srgb,var(--t-text) 14%,transparent)}
body[data-bubbly-theme="light"][data-bubbly-style="glass"]{--t-block-bg:rgba(255,255,255,.62);--t-block-border:rgba(255,255,255,.9)}

/* ── Captured block variables: the GMS block markup reads these, so mapping them
      re-skins every block (tile, card, quiz, tip, countdown, promo) in one place ── */
body[data-bubbly-theme]{
  --accent:var(--t-accent);--accent-soft:color-mix(in srgb,var(--t-accent) 14%,var(--t-surface));
  --text-primary:var(--t-text);--text-pure:var(--t-text);--text-secondary:color-mix(in srgb,var(--t-text) 82%,var(--t-bg));
  --text-tertiary:var(--t-muted);--text-muted:var(--t-muted);
  --tile-bg:var(--t-block-bg);--tile-border:var(--t-block-border);--tile-border-dashed:var(--t-block-border);
  --tile-shadow:var(--t-shadow);--tile-shadow-hover:var(--t-shadow-hover);--tile-overlay:none;
  --card-bg:var(--t-block-bg);--card-border:var(--t-block-border);--card-shadow:var(--t-shadow);--card-overlay:none;
  --bento-bg:color-mix(in srgb,var(--t-text) 6%,var(--t-surface));
  --radius:var(--t-radius-card);--radius-sm:var(--t-radius-chip);
}

/* ═══ Page ═══════════════════════════════════════════════════════════════════ */
body[data-bubbly-theme]{margin:0;min-height:100vh;background:var(--t-bg);color:var(--t-text);font-family:var(--t-font-body);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body[data-bubbly-theme="noir"]{color-scheme:dark}
body[data-bubbly-theme="light"],body[data-bubbly-theme="atelier"],body[data-bubbly-theme="softpop"]{color-scheme:light}
/* ambient backdrop behind the content: gives glass something to blur, costs no request */
body[data-bubbly-theme]::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:none}
body[data-bubbly-theme="light"]::before{background:radial-gradient(60vmax 40vmax at 85% -5%,var(--t-glow-a),transparent 60%),radial-gradient(50vmax 40vmax at -10% 35%,var(--t-glow-b),transparent 65%)}
body[data-bubbly-theme="noir"]::before{background:radial-gradient(70vmax 50vmax at 50% -10%,var(--t-glow-a),transparent 62%),radial-gradient(50vmax 40vmax at 110% 70%,var(--t-glow-b),transparent 60%)}
body[data-bubbly-theme="softpop"]::before{background-image:radial-gradient(color-mix(in srgb,var(--t-text) 16%,transparent) 1.6px,transparent 1.8px);background-size:22px 22px}
body[data-bubbly-theme="atelier"]::before{background:linear-gradient(180deg,color-mix(in srgb,var(--t-surface) 70%,transparent),transparent 40%)}

body[data-bubbly-theme] .bb-inner{max-width:480px;padding:0 16px 72px}
body[data-bubbly-theme] a{color:inherit}
body[data-bubbly-theme] ::selection{background:color-mix(in srgb,var(--t-accent) 30%,transparent)}
/* keyboard focus, everywhere, clearly visible on every palette */
body[data-bubbly-theme] :is(a,button,input,textarea,select,summary,[role="button"],[role="link"],[tabindex]):focus-visible{outline:3px solid var(--t-focus);outline-offset:3px;border-radius:var(--t-radius-chip)}
body[data-bubbly-theme] .bb-sig{color:var(--t-muted);font-size:11px;letter-spacing:.08em}
body[data-bubbly-theme] .spinner{border-color:color-mix(in srgb,var(--t-text) 18%,transparent);border-top-color:var(--t-text)}

/* ── Profile text ────────────────────────────────────────────────────────── */
body[data-bubbly-theme] .bb-prof{padding:44px 0 26px}
body[data-bubbly-theme] .bb-offer-hero{padding:64px 0 28px}
body[data-bubbly-theme] .bb-av{width:92px;height:92px;border:3px solid var(--t-bg);box-shadow:0 0 0 2px var(--t-accent),var(--t-shadow);margin-bottom:16px;background:var(--t-surface)}
body[data-bubbly-theme] .bb-name{font-family:var(--t-font-heading);font-size:30px;line-height:1.12;font-weight:750;letter-spacing:-.025em;margin:0 0 8px;color:var(--t-text);text-wrap:balance}
body[data-bubbly-theme] .bb-bio{font-size:15.5px;line-height:1.55;color:var(--t-muted);max-width:340px;text-wrap:pretty}
body[data-bubbly-theme] .bb-loc{color:var(--t-muted);font-size:13px}
body[data-bubbly-theme] .bb-soc{gap:8px;margin:16px 0 2px}
body[data-bubbly-theme] .bb-soc a{width:44px;height:44px;font-size:17px;background:var(--t-block-bg);border:var(--t-bw) solid var(--t-block-border);color:var(--t-text);-webkit-backdrop-filter:var(--t-block-blur);backdrop-filter:var(--t-block-blur);box-shadow:var(--t-shadow);border-radius:var(--t-radius-chip)}
body[data-bubbly-theme] .bb-soc a:hover{background:var(--t-accent);border-color:var(--t-accent);color:var(--t-accent-ink)}
body[data-bubbly-theme] .bb-music-wrap{border-radius:var(--t-radius-card)}
body[data-bubbly-theme] .bb-music-label{color:var(--t-text)}
body[data-bubbly-theme] .bb-music-desc{color:var(--t-muted)}
/* ── Status line: dot + text, pin + location (any header) ────────────────── */
body[data-bubbly-theme]{--t-live:#15803d}
body[data-bubbly-theme="noir"]{--t-live:#34d878}
body[data-bubbly-theme] .bb-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 16px;margin:0 0 10px;padding:0;font-size:14px;line-height:1.3;font-weight:500;color:var(--t-muted)}
body[data-bubbly-theme] .bb-status-item{display:inline-flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}
body[data-bubbly-theme] .bb-dot{flex:none;width:9px;height:9px;border-radius:50%;background:var(--t-muted)}
body[data-bubbly-theme] .bb-dot-live{background:var(--t-live);animation:bb-live 2.4s ease-out infinite}
@keyframes bb-live{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--t-live) 55%,transparent)}70%,100%{box-shadow:0 0 0 7px color-mix(in srgb,var(--t-live) 0%,transparent)}}
body[data-bubbly-theme] .bb-pin{flex:none;width:15px;height:15px}
body[data-bubbly-theme="atelier"] .bb-prof:not(.bb-prof-portrait):not(.bb-prof-poster) .bb-status,body[data-bubbly-theme="atelier"] .bb-offer-hero .bb-status{justify-content:flex-start}
body[data-bubbly-theme] .bb-prof-portrait .bb-status{margin-top:10px}

/* ── Header: banner (full-width cover, avatar overlapping) ───────────────── */
body[data-bubbly-theme] .bb-banner{max-width:720px;margin:0 auto;position:relative;background:linear-gradient(135deg,color-mix(in srgb,var(--t-accent) 55%,var(--t-bg)),color-mix(in srgb,var(--t-accent) 18%,var(--t-surface)));border-radius:0 0 var(--t-radius-card) var(--t-radius-card);min-height:150px}
body[data-bubbly-theme] .bb-banner img{height:clamp(190px,52vw,300px);border-radius:inherit}
body[data-bubbly-header="banner"] .bb-prof{padding-top:0}
body[data-bubbly-header="banner"] .bb-prof .bb-av{margin-top:-46px;position:relative;z-index:1}
/* ── Header: portrait (large photo card, name overlay) ───────────────────── */
body[data-bubbly-theme] .bb-prof-portrait{padding-top:22px;align-items:stretch}
body[data-bubbly-theme] .bb-portrait{position:relative;aspect-ratio:4/5;max-height:560px;overflow:hidden;border-radius:var(--t-radius-card);background:linear-gradient(160deg,color-mix(in srgb,var(--t-accent) 60%,var(--t-bg)),color-mix(in srgb,var(--t-accent) 20%,var(--t-surface)));border:var(--t-bw) solid var(--t-block-border);box-shadow:var(--t-shadow);text-align:left}
body[data-bubbly-theme] .bb-portrait-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
body[data-bubbly-theme] .bb-portrait-cap{position:absolute;left:0;right:0;bottom:0;padding:84px 22px 22px;background:linear-gradient(to top,rgba(5,8,14,.86) 0,rgba(5,8,14,.7) 45%,transparent 100%);color:#fff}
body[data-bubbly-theme] .bb-portrait-cap .bb-name{color:#fff;margin:0;font-size:32px;text-shadow:0 1px 14px rgba(0,0,0,.45)}
body[data-bubbly-theme] .bb-prof-portrait .bb-bio{margin:16px auto 0}

/* ═══ Blocks: shared skin ════════════════════════════════════════════════════ */
body[data-bubbly-theme] .grid-button-container{gap:10px}
/* separators / section titles */
body[data-bubbly-theme] [data-block-effect="7"] :is(.text-neutral-900,.text-white){color:var(--t-text)}
body[data-bubbly-theme] [data-block-effect="7"] .separator-block{padding-top:10px;font-family:var(--t-font-heading)}
body[data-bubbly-theme] [data-block-effect="7"] span[style*="border-top"]{opacity:1!important;border-top-color:var(--t-border)!important}
/* the theme-aware surface of every block type */
body[data-bubbly-theme] :is(.grid-button-container .shadow-xl,.promo-t5-card--theme-aware,.cd-t5-container--bento,.bb-music-wrap){
  background:var(--t-block-bg);background-image:none;
  border:var(--t-bw) var(--t-border-style,solid) var(--t-block-border);
  border-radius:var(--t-radius-card);box-shadow:var(--t-shadow);
  -webkit-backdrop-filter:var(--t-block-blur);backdrop-filter:var(--t-block-blur);
  color:var(--t-text);
}
body[data-bubbly-theme] :is([data-block-effect="2"],[data-block-effect="5"],[data-block-effect="8"]) .shadow-xl,
body[data-bubbly-theme] .promo-t5-card--theme-aware{border-radius:var(--t-radius)}
body[data-bubbly-theme] [data-block-effect="5"] .shadow-xl{border-radius:var(--t-radius-card)}
body[data-bubbly-theme] .grid-button-container .shadow-xl:hover{background:var(--t-block-bg);box-shadow:var(--t-shadow-hover)}
/* body copy inside surfaces follows the palette (light themes: the captured light palette uses neutrals) */
body[data-bubbly-theme="light"] :is(.shadow-xl,.cd-t5-container,.quiz-block) :is(.text-neutral-900,.text-neutral-800),
body[data-bubbly-theme="atelier"] :is(.shadow-xl,.cd-t5-container,.quiz-block) :is(.text-neutral-900,.text-neutral-800),
body[data-bubbly-theme="softpop"] :is(.shadow-xl,.cd-t5-container,.quiz-block) :is(.text-neutral-900,.text-neutral-800){color:var(--t-text)}
body[data-bubbly-theme="light"] :is(.shadow-xl,.cd-t5-container,.quiz-block) :is(.text-neutral-700,.text-neutral-600,.text-neutral-500),
body[data-bubbly-theme="atelier"] :is(.shadow-xl,.cd-t5-container,.quiz-block) :is(.text-neutral-700,.text-neutral-600,.text-neutral-500),
body[data-bubbly-theme="softpop"] :is(.shadow-xl,.cd-t5-container,.quiz-block) :is(.text-neutral-700,.text-neutral-600,.text-neutral-500){color:var(--t-muted)}
body[data-bubbly-theme] :is(.shadow-xl,.cd-t5-container) h3{font-family:var(--t-font-heading)}
body[data-bubbly-theme] .grid-button-container .shadow-xl p[style*="--text-tertiary"],
body[data-bubbly-theme] .grid-button-container .shadow-xl div[style*="--text-tertiary"]{color:var(--t-muted)!important}
/* icon chips */
body[data-bubbly-theme] .compact-link > div > div:first-child,
body[data-bubbly-theme] [data-block-effect="6"] .tip-header > div:first-child{border-radius:var(--t-radius-chip)!important;background:var(--accent-soft)!important}
body[data-bubbly-theme] .compact-link i,body[data-bubbly-theme] .compact-link svg{color:var(--t-accent)}
body[data-bubbly-theme] .compact-link .text-neutral-700{color:var(--t-accent)}
/* image overlays keep white text on a scrim, on every theme */
body[data-bubbly-theme] [data-block-effect="5"] :is(.text-white,.text-neutral-900,h3,p,span){color:#fff}
body[data-bubbly-theme] [data-block-effect="5"] .absolute.bottom-0{background:linear-gradient(to top,rgba(5,8,14,.82),rgba(5,8,14,.5) 60%,transparent)!important}
body[data-bubbly-theme] [data-block-effect="1"] .text-white,body[data-bubbly-theme] [data-block-effect="0"] .text-white{color:#fff}
body[data-bubbly-theme] .carousel-slide .text-white{color:#fff}
body[data-bubbly-theme] .carousel-slide{border-radius:max(calc(var(--t-radius-card) - 6px),2px);border-color:var(--t-block-border)}
body[data-bubbly-theme] [data-block-effect="0"] .absolute.bottom-0.left-0.right-0:not(.p-3),
body[data-bubbly-theme] [data-block-effect="1"] .relative > .absolute.bottom-0.left-0.right-0:first-of-type{background:linear-gradient(to top,var(--t-surface),transparent)!important}
/* product / creator card accents */
/* product CTA: its inline white text only works on the light accent; follow the palette's ink instead */
:where(body[data-bubbly-theme]) [data-block-effect="0"] .inline-flex.cursor-pointer{color:var(--t-accent-ink)!important;border-radius:var(--t-radius)!important;min-height:44px;padding-top:0!important;padding-bottom:0!important}
/* creator card: the price sits on a photo that fades into the card, so it gets its own scrim */
body[data-bubbly-theme] [data-block-effect="1"] .absolute.right-3.bottom-3{background:rgba(5,8,14,.7);padding:6px 10px;border-radius:10px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
body[data-bubbly-theme] [data-block-effect="1"] .absolute.right-3.bottom-3 .text-white\/\[0\.65\]{color:rgba(255,255,255,.9)}
/* tip */
body[data-bubbly-theme] .tip-pay-btn{background:var(--t-accent)!important;color:var(--t-accent-ink)!important;min-height:46px;border-radius:var(--t-radius)!important}
body[data-bubbly-theme] .tip-pay-btn:disabled{opacity:.62!important}
body[data-bubbly-theme] :is(.tip-message-toggle,.tip-custom-back){min-height:44px}
body[data-bubbly-theme] .tip-message-toggle{background:var(--accent-soft)!important;color:var(--t-muted)!important;border-radius:var(--t-radius-chip)!important}
body[data-bubbly-theme] .tip-custom-back{min-width:44px;color:var(--t-accent)!important}
body[data-bubbly-theme] :is(.tip-message-input,.tip-custom-input input){color:var(--t-text)!important;background:var(--t-surface)!important}
body[data-bubbly-theme] .tip-presets button{min-height:44px;border-radius:var(--t-radius-chip);border:var(--t-bw) solid var(--t-border);background:var(--t-surface);color:var(--t-text);font:inherit;font-weight:600}
/* countdown */
body[data-bubbly-theme] .cd-t5-container{color:var(--t-text)}
body[data-bubbly-theme] .cd-t5-message{font-family:var(--t-font-heading);color:var(--t-text)}
body[data-bubbly-theme] .cd-t5-unit{background:color-mix(in srgb,var(--t-text) 6%,transparent);border-radius:min(var(--t-radius-chip),14px);border:1px solid color-mix(in srgb,var(--t-text) 8%,transparent)}
body[data-bubbly-theme] .cd-t5-digit{font-family:var(--t-font-heading);color:var(--t-text)}
body[data-bubbly-theme] .cd-t5-label{color:var(--t-muted)}
body[data-bubbly-theme] .countdown-block[data-cd-days-zero] .cd-t5-unit--days{display:none}
/* promo */
body[data-bubbly-theme] .promo-t5-card{min-height:56px;border-style:dashed}
body[data-bubbly-theme] .promo-t5-card--theme-aware{border-style:dashed;border-width:max(var(--t-bw),1.5px)}
body[data-bubbly-theme] .promo-t5-label{color:var(--t-muted)}
body[data-bubbly-theme] .promo-t5-code{color:var(--t-text)}
body[data-bubbly-theme] .promo-t5-action{color:var(--t-accent)}
body[data-bubbly-theme] .promo-t5-icon{opacity:1;color:var(--t-accent)}
body[data-bubbly-theme] .promo-t5-card .copied-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--t-accent);color:var(--t-accent-ink);border-radius:inherit;font-weight:700;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:2}
body[data-bubbly-theme] .promo-t5-card.copied .copied-overlay{opacity:1}
body[data-bubbly-theme] .promo-t5-action .success-icon.hidden{display:none}
/* quiz: inline custom properties on the section need !important to be re-skinned */
:where(body[data-bubbly-theme]) .quiz-block{
  --quiz-accent:var(--t-accent)!important;--quiz-progress-on:var(--t-accent)!important;
  --quiz-progress-off:color-mix(in srgb,var(--t-text) 14%,transparent)!important;
  --quiz-answer-bg:color-mix(in srgb,var(--t-text) 5%,transparent)!important;
  --quiz-answer-border:color-mix(in srgb,var(--t-text) 16%,transparent)!important;
  --quiz-bar:color-mix(in srgb,var(--t-text) 8%,transparent)!important;
  --quiz-bar-picked:color-mix(in srgb,var(--t-accent) 24%,transparent)!important;
  --quiz-pct-picked:var(--t-text)!important;--quiz-muted:var(--t-muted)!important;
  --quiz-cta-bg:var(--t-accent)!important;--quiz-cta-fg:var(--t-accent-ink)!important;--quiz-check-fg:var(--t-accent-ink)!important;
}
body[data-bubbly-theme] .quiz-block{color:var(--t-text)}
body[data-bubbly-theme] .quiz-counter{color:var(--t-muted)}
body[data-bubbly-theme] .quiz-question{font-family:var(--t-font-heading);color:var(--t-text)}
body[data-bubbly-theme] .quiz-answer{border-radius:var(--t-radius-chip);min-height:48px;color:var(--t-text)}
body[data-bubbly-theme] .quiz-block .quiz-cta .quiz-button{border-radius:var(--t-radius);min-height:48px}
/* carousel dots and image grid */
body[data-bubbly-theme] .carousel-dot{background:color-mix(in srgb,var(--t-text) 30%,transparent)}
body[data-bubbly-theme] .image-grid-container img{border-radius:max(calc(var(--t-radius-card) - 8px),2px)}

/* ═══ Theme: light ═══════════════════════════════════════════════════════════ */
body[data-bubbly-theme="light"] .bb-av{box-shadow:0 0 0 2px #2f9bff,0 0 0 7px color-mix(in srgb,#6fd0ff 35%,transparent),var(--t-shadow)}

/* ═══ Theme: atelier ═════════════════════════════════════════════════════════ */
body[data-bubbly-theme="atelier"] .bb-inner{max-width:500px}
body[data-bubbly-theme="atelier"] .bb-prof:not(.bb-prof-portrait):not(.bb-prof-poster),body[data-bubbly-theme="atelier"] .bb-offer-hero{align-items:flex-start;text-align:left;border-bottom:1px solid var(--t-text);margin-bottom:6px;padding-bottom:22px}
body[data-bubbly-theme="atelier"] .bb-offer-hero{padding-top:56px}
body[data-bubbly-theme="atelier"] .bb-name{font-weight:420;font-size:44px;letter-spacing:-.02em;line-height:1.04}
body[data-bubbly-theme="atelier"][data-bubbly-fonts="classic"] .bb-name{font-style:italic;font-variation-settings:"opsz" 144}
body[data-bubbly-theme="atelier"] .bb-bio{max-width:none;font-size:15px;color:var(--t-muted)}
body[data-bubbly-theme="atelier"] .bb-bio::first-line{color:var(--t-text)}
body[data-bubbly-theme="atelier"] .bb-av{border-radius:2px;width:88px;height:112px;object-fit:cover;box-shadow:none;border:1px solid var(--t-text);padding:4px;background:var(--t-surface)}
body[data-bubbly-theme="atelier"] .bb-soc{justify-content:flex-start}
body[data-bubbly-theme="atelier"] .bb-soc a{border-radius:2px;box-shadow:none}
body[data-bubbly-theme="atelier"] .bb-banner{border-radius:0;border-bottom:1px solid var(--t-text)}
body[data-bubbly-theme="atelier"][data-bubbly-header="banner"] .bb-prof .bb-av{border-radius:2px;width:88px;height:88px;margin-top:-44px;border:1px solid var(--t-text);padding:4px}
body[data-bubbly-theme="atelier"] .bb-portrait{border-radius:2px;border:1px solid var(--t-text);box-shadow:none;aspect-ratio:4/5}
body[data-bubbly-theme="atelier"] .bb-portrait-cap{padding-top:96px}
body[data-bubbly-theme="atelier"] .bb-portrait-cap .bb-name{font-size:38px}
/* numbered list (counter on classic buttons) */
body[data-bubbly-theme="atelier"] .grid-button-container{counter-reset:atelier;gap:0 12px}
/* ruled rows touch; every other block (cards, quiz, music…) keeps breathing room */
body[data-bubbly-theme="atelier"] .grid-button-container > [data-block-effect]:not([data-block-effect="2"],[data-block-effect="7"]){margin:5px 0}
body[data-bubbly-theme="atelier"] [data-block-effect="2"]{counter-increment:atelier}
body[data-bubbly-theme="atelier"] .compact-link > div > div:first-child{width:auto!important;height:auto!important;background:none!important;border-radius:0!important;overflow:visible!important;font-family:var(--t-font-heading);font-style:italic;font-size:22px;line-height:1;color:var(--t-accent);min-width:34px;justify-content:flex-start!important}
body[data-bubbly-theme="atelier"] .compact-link > div > div:first-child::before{content:counter(atelier,decimal-leading-zero)}
body[data-bubbly-theme="atelier"] .compact-link > div > div:first-child > *{display:none}
/* outline + square = ruled rows (hairlines above/below, no frame) */
body[data-bubbly-theme="atelier"][data-bubbly-style="outline"][data-bubbly-shape="square"] [data-block-effect="2"] .shadow-xl{border-width:1px 0 0 0;border-color:var(--t-text);background:transparent;box-shadow:none;border-radius:0;padding-left:2px!important;padding-right:2px!important}
body[data-bubbly-theme="atelier"][data-bubbly-style="outline"][data-bubbly-shape="square"] [data-block-effect="2"]:not(:has(+ [data-block-effect="2"])) .shadow-xl,
body[data-bubbly-theme="atelier"][data-bubbly-style="outline"][data-bubbly-shape="square"] [data-block-effect="2"].grid-item-1x1:has(+ [data-block-effect="2"].grid-item-1x1 + :not([data-block-effect="2"])) .shadow-xl,
body[data-bubbly-theme="atelier"][data-bubbly-style="outline"][data-bubbly-shape="square"] [data-block-effect="2"].grid-item-1x1:has(+ [data-block-effect="2"].grid-item-1x1:last-child) .shadow-xl{border-bottom:1px solid var(--t-text)}
body[data-bubbly-theme="atelier"] [data-block-effect="2"] h3{font-family:var(--t-font-heading);font-size:19px;font-weight:450}
body[data-bubbly-theme="atelier"] [data-block-effect="2"] .shadow-xl:hover h3{color:var(--t-accent);text-decoration:underline;text-decoration-color:var(--t-focus);text-underline-offset:4px}
body[data-bubbly-theme="atelier"] [data-block-effect="7"] .text-base{font-family:var(--t-font-heading);font-style:italic;font-weight:450;font-size:20px;text-transform:none}
body[data-bubbly-theme="atelier"] .quiz-question,body[data-bubbly-theme="atelier"] .cd-t5-message{font-style:italic}

/* ═══ Theme: softpop ═════════════════════════════════════════════════════════ */
body[data-bubbly-theme="softpop"]{--t-font-heading-weight:900}
body[data-bubbly-theme="softpop"] .bb-name{display:inline-block;font-weight:900;font-size:32px;letter-spacing:-.03em;background:var(--t-pop-1);border:3px solid var(--t-text);border-radius:999px;padding:6px 22px 8px;box-shadow:var(--t-shadow);transform:rotate(-2.5deg);margin-bottom:14px}
body[data-bubbly-theme="softpop"] .bb-av{border:3px solid var(--t-text);box-shadow:var(--t-shadow);background:var(--t-pop-2)}
body[data-bubbly-theme="softpop"] .bb-bio{color:var(--t-text);font-weight:500}
body[data-bubbly-theme="softpop"] .bb-soc a{background:var(--t-pop-3);color:var(--t-text);border-width:3px}
body[data-bubbly-theme="softpop"] .bb-soc a:hover{background:var(--t-text);color:var(--t-surface)}
body[data-bubbly-theme="softpop"] .bb-banner{border:3px solid var(--t-text);border-top:0;box-shadow:var(--t-shadow)}
body[data-bubbly-theme="softpop"] .bb-portrait{border-width:3px;border-color:var(--t-text)}
body[data-bubbly-theme="softpop"] .bb-portrait-cap{padding:70px 14px 18px;background:linear-gradient(to top,rgba(28,21,48,.7),transparent)}
body[data-bubbly-theme="softpop"] .bb-portrait-cap .bb-name{color:var(--t-text);font-size:30px;text-shadow:none}
body[data-bubbly-theme="softpop"] .grid-button-container{gap:14px 12px}
/* each block in a different pastel, cycling by block index */
body[data-bubbly-theme="softpop"][data-bubbly-style="solid"] .grid-button-container > :nth-child(6n+1){--t-block-bg:var(--t-pop-1)}
body[data-bubbly-theme="softpop"][data-bubbly-style="solid"] .grid-button-container > :nth-child(6n+2){--t-block-bg:var(--t-pop-2)}
body[data-bubbly-theme="softpop"][data-bubbly-style="solid"] .grid-button-container > :nth-child(6n+3){--t-block-bg:var(--t-pop-3)}
body[data-bubbly-theme="softpop"][data-bubbly-style="solid"] .grid-button-container > :nth-child(6n+4){--t-block-bg:var(--t-pop-4)}
body[data-bubbly-theme="softpop"][data-bubbly-style="solid"] .grid-button-container > :nth-child(6n+5){--t-block-bg:var(--t-pop-5)}
body[data-bubbly-theme="softpop"][data-bubbly-style="solid"] .grid-button-container > :nth-child(6n+6){--t-block-bg:var(--t-pop-6)}
body[data-bubbly-theme="softpop"] .grid-button-container > [data-block-effect]{--accent-soft:rgba(255,255,255,.7)}
body[data-bubbly-theme="softpop"] [data-block-effect="2"] h3,body[data-bubbly-theme="softpop"] [data-block-effect="8"] .truncate{font-weight:800;font-size:16px}
body[data-bubbly-theme="softpop"] .compact-link > div > div:first-child{border:3px solid var(--t-text);background:#fff!important}
body[data-bubbly-theme="softpop"] .compact-link i,body[data-bubbly-theme="softpop"] .compact-link svg,body[data-bubbly-theme="softpop"] .compact-link .text-neutral-700{color:var(--t-text)}
body[data-bubbly-theme="softpop"] .grid-button-container .shadow-xl{transition:transform .12s ease,box-shadow .12s ease}
body[data-bubbly-theme="softpop"] .grid-button-container .shadow-xl:hover{transform:translate(-2px,-2px)}
body[data-bubbly-theme="softpop"] .grid-button-container .shadow-xl:active{transform:translate(3px,3px);box-shadow:0 0 0 var(--t-text)}
body[data-bubbly-theme="softpop"] .quiz-answer{border-width:3px;border-color:var(--t-text);background:#fff}
body[data-bubbly-theme="softpop"] .quiz-block{--quiz-answer-bg:#fff!important;--quiz-answer-border:var(--t-text)!important}
body[data-bubbly-theme="softpop"] .quiz-answer.quiz-picked{box-shadow:3px 3px 0 var(--t-text)}
body[data-bubbly-theme="softpop"] .quiz-block .quiz-cta .quiz-button,body[data-bubbly-theme="softpop"] .tip-pay-btn{border:3px solid var(--t-text)!important;box-shadow:3px 3px 0 var(--t-text)}
:where(body[data-bubbly-theme="softpop"]) [data-block-effect="0"] .inline-flex.cursor-pointer{border:3px solid var(--t-text);box-shadow:3px 3px 0 var(--t-text)}
body[data-bubbly-theme="softpop"] .cd-t5-unit{background:#fff;border:3px solid var(--t-text)}
body[data-bubbly-theme="softpop"] .promo-t5-card--theme-aware{border-style:dashed}
body[data-bubbly-theme="softpop"] .promo-t5-card--theme-aware .promo-t5-icon{color:var(--t-text)}
body[data-bubbly-theme="softpop"] .promo-t5-action{color:var(--t-text);font-weight:800}
body[data-bubbly-theme="softpop"] .cd-t5-container--bento{background:var(--t-pop-5)}
body[data-bubbly-theme="softpop"] :is(.text-neutral-900,.text-neutral-800){color:var(--t-text)}
body[data-bubbly-theme="softpop"] [data-block-effect="7"] .text-base{font-weight:900;font-size:19px}
body[data-bubbly-theme="softpop"] [data-block-effect="7"] span[style*="border-top"]{border-top-width:3px!important}

/* ═══ Theme: noir ════════════════════════════════════════════════════════════ */
body[data-bubbly-theme="noir"] .bb-name{font-size:46px;line-height:1;letter-spacing:-.035em;font-weight:300}
body[data-bubbly-theme="noir"] .bb-name-first{font-weight:200}
body[data-bubbly-theme="noir"] .bb-name-last{font-weight:800}
body[data-bubbly-theme="noir"] .bb-bio{color:var(--t-muted)}
body[data-bubbly-theme="noir"] .bb-av{box-shadow:0 0 0 1px color-mix(in srgb,var(--t-text) 30%,transparent),0 0 0 6px color-mix(in srgb,var(--t-text) 8%,transparent)}
/* cinematic hero: the photo melts into the canvas; name sits on the fade */
body[data-bubbly-theme="noir"] .bb-prof-portrait{padding-top:0}
body[data-bubbly-theme="noir"] .bb-portrait{margin:0 -16px;border:0;border-radius:0;box-shadow:none;aspect-ratio:4/5;max-height:620px;background:none;overflow:visible}
body[data-bubbly-theme="noir"] .bb-portrait-img{-webkit-mask-image:linear-gradient(to bottom,#000 62%,transparent 98%);mask-image:linear-gradient(to bottom,#000 62%,transparent 98%)}
body[data-bubbly-theme="noir"] .bb-portrait-cap{background:none;padding:120px 22px 4px;text-align:center}
body[data-bubbly-theme="noir"] .bb-portrait-cap .bb-name{text-shadow:none}
body[data-bubbly-theme="noir"][data-bubbly-header="banner"] .bb-banner{max-width:640px;border-radius:0;background:none;min-height:0}
body[data-bubbly-theme="noir"][data-bubbly-header="banner"] .bb-banner img{-webkit-mask-image:linear-gradient(to bottom,#000 50%,transparent 100%);mask-image:linear-gradient(to bottom,#000 50%,transparent 100%)}
body[data-bubbly-theme="noir"][data-bubbly-header="banner"] .bb-banner img{height:clamp(280px,84vw,420px)}
body[data-bubbly-theme="noir"][data-bubbly-header="banner"] .bb-prof{margin-top:-96px;position:relative;padding-bottom:30px}
body[data-bubbly-theme="noir"][data-bubbly-header="banner"] .bb-prof .bb-av{display:none}
body[data-bubbly-theme="noir"] .grid-button-container .shadow-xl:hover{background:color-mix(in srgb,var(--t-text) 14%,transparent)}
/* first link emphasised: inverted pill */
body[data-bubbly-theme="noir"] .grid-button-container > :nth-child(1 of [data-block-effect="2"],.bbn-b-link) .shadow-xl{background:var(--t-text);border-color:var(--t-text);-webkit-backdrop-filter:none;backdrop-filter:none}
body[data-bubbly-theme="noir"] .grid-button-container > :nth-child(1 of [data-block-effect="2"],.bbn-b-link) .shadow-xl:hover{background:color-mix(in srgb,var(--t-text) 88%,var(--t-accent))}
body[data-bubbly-theme="noir"] .grid-button-container > :nth-child(1 of [data-block-effect="2"],.bbn-b-link) :is(h3,.text-white,.text-neutral-300,.text-neutral-400,span,i,svg,p){color:var(--t-bg)!important}
body[data-bubbly-theme="noir"] .grid-button-container > :nth-child(1 of [data-block-effect="2"],.bbn-b-link) .compact-link > div > div:first-child{background:color-mix(in srgb,var(--t-bg) 12%,transparent)!important}
body[data-bubbly-theme="noir"] [data-block-effect="2"] h3{font-weight:500;letter-spacing:-.01em}
body[data-bubbly-theme="noir"] .compact-link > div > div:first-child{background:color-mix(in srgb,var(--t-text) 10%,transparent)!important}
body[data-bubbly-theme="noir"] .compact-link i,body[data-bubbly-theme="noir"] .compact-link svg{color:var(--t-text)}
body[data-bubbly-theme="noir"] .text-neutral-300{color:var(--t-muted)}
body[data-bubbly-theme="noir"] .text-neutral-400{color:var(--t-muted)}
body[data-bubbly-theme="noir"] [data-block-effect="7"] .text-base{font-weight:300;letter-spacing:.04em;text-transform:uppercase;font-size:13px}

/* ═══ Header: poster (full-screen cover photo, name pinned to the bottom of the first screen) ═══
   The photo is a fixed-height layer behind the header AND the first links; a bottom gradient built
   from --t-bg melts it into the page and keeps text readable on any photo. Dark themes keep white
   ink; light themes fade to their light canvas and flip the ink to --t-text. */
body[data-bubbly-theme]{--poster-ink:var(--t-text)}
body[data-bubbly-theme="noir"]{--poster-ink:#fff}
body[data-bubbly-theme] .bb-prof-poster{--poster-h:max(100vh,560px);--poster-reserve:262px;position:relative;justify-content:flex-end;min-height:calc(var(--poster-h) - var(--poster-reserve));padding:0 0 18px;color:var(--poster-ink)}
@supports (height:100svh){body[data-bubbly-theme] .bb-prof-poster{--poster-h:max(100svh,560px)}}
/* wide screens: the column keeps its phone proportions, a blurred copy of the same photo (same URL, already cached) fills the rest */
body[data-bubbly-theme] .bb-poster-ambient{display:none}
@media (min-width:561px){
  body[data-bubbly-theme] .bb-poster-ambient{display:block;position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:var(--t-bg)}
  body[data-bubbly-theme] .bb-poster-ambient img{position:absolute;inset:-80px;width:calc(100% + 160px);height:calc(100% + 160px);object-fit:cover;object-position:50% 30%;filter:blur(48px) saturate(1.2);opacity:.55}
  body[data-bubbly-theme] .bb-poster-ambient::after{content:"";position:absolute;inset:0;background:color-mix(in srgb,var(--t-bg) 58%,transparent)}
}
body[data-bubbly-theme] .bb-poster-bg{position:absolute;z-index:-1;top:0;left:-16px;right:-16px;height:var(--poster-h);overflow:hidden;background:color-mix(in srgb,var(--t-accent) 22%,var(--t-bg))}
body[data-bubbly-theme] .bb-poster-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%;display:block}
body[data-bubbly-theme] .bb-poster-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,var(--t-bg) 0,color-mix(in srgb,var(--t-bg) 94%,transparent) 8%,color-mix(in srgb,var(--t-bg) 62%,transparent) 22%,color-mix(in srgb,var(--t-bg) 24%,transparent) 40%,color-mix(in srgb,var(--t-bg) 0%,transparent) 62%)}
body[data-bubbly-theme] .bb-poster-copy{position:relative;z-index:0;width:100%;display:flex;flex-direction:column;align-items:center}
/* local scrim behind the text: contrast does not depend on the photo or on the viewport height */
body[data-bubbly-theme] .bb-poster-copy::before{content:"";position:absolute;z-index:-1;left:-16px;right:-16px;top:-170px;bottom:-170px;pointer-events:none;background:linear-gradient(to bottom,color-mix(in srgb,var(--t-bg) 0%,transparent) 0,color-mix(in srgb,var(--t-bg) 46%,transparent) 28%,color-mix(in srgb,var(--t-bg) 72%,transparent) 46%,color-mix(in srgb,var(--t-bg) 78%,transparent) 62%,color-mix(in srgb,var(--t-bg) 0%,transparent) 100%)}
body[data-bubbly-theme] .bb-prof-poster .bb-name{margin:0 0 12px;font-size:52px;line-height:1.02;font-weight:800;letter-spacing:-.03em;color:var(--poster-ink);text-align:center;text-wrap:balance}
body[data-bubbly-theme] .bb-prof-poster .bb-name.bb-name-l{font-size:44px}
body[data-bubbly-theme] .bb-prof-poster .bb-name.bb-name-m{font-size:36px}
body[data-bubbly-theme] .bb-prof-poster .bb-name :is(.bb-name-first,.bb-name-last){font-weight:inherit}
body[data-bubbly-theme="noir"] .bb-prof-poster .bb-name{text-shadow:0 2px 22px rgba(0,0,0,.35)}
body[data-bubbly-theme] .bb-prof-poster .bb-status{margin:0 0 14px;font-size:18px;font-weight:400;color:var(--poster-ink)}
body[data-bubbly-theme] .bb-prof-poster .bb-status-loc{font-weight:700}
body[data-bubbly-theme] .bb-prof-poster .bb-pin{width:17px;height:17px}
body[data-bubbly-theme] .bb-prof-poster .bb-bio{margin:0 auto;max-width:none;font-size:17px;line-height:1.35;font-weight:400;color:var(--poster-ink);text-align:center;text-wrap:balance}
body[data-bubbly-theme] .bb-prof-poster .bb-soc{margin:16px 0 0}
/* the links follow right under the header: a phone-width column of pills */
body[data-bubbly-header="poster"] .bb-inner{padding-bottom:40px}
body[data-bubbly-header="poster"] .grid-button-container{max-width:326px;margin-inline:auto;gap:18px}
/* atelier: editorial, left aligned */
body[data-bubbly-theme="atelier"] .bb-prof-poster .bb-poster-copy{align-items:flex-start}
body[data-bubbly-theme="atelier"] .bb-prof-poster :is(.bb-name,.bb-bio){text-align:left;margin-left:0;margin-right:0}
body[data-bubbly-theme="atelier"] .bb-prof-poster .bb-name{font-weight:450}
body[data-bubbly-theme="atelier"] .bb-prof-poster .bb-status{justify-content:flex-start}
/* softpop: the name stays a sticker */
body[data-bubbly-theme="softpop"] .bb-prof-poster .bb-name{font-weight:900;font-size:42px;padding:6px 22px 9px;margin-bottom:16px}
body[data-bubbly-theme="softpop"] .bb-prof-poster .bb-name.bb-name-l{font-size:36px}
body[data-bubbly-theme="softpop"] .bb-prof-poster .bb-name.bb-name-m{font-size:30px}
body[data-bubbly-theme="softpop"] .bb-prof-poster .bb-bio{font-weight:600}
@media (max-width:360px){
  body[data-bubbly-theme] .bb-prof-poster .bb-name{font-size:44px}
  body[data-bubbly-theme] .bb-prof-poster .bb-name.bb-name-l{font-size:38px}
  body[data-bubbly-theme] .bb-prof-poster .bb-name.bb-name-m{font-size:32px}
  body[data-bubbly-theme] .bb-prof-poster .bb-status{font-size:16px}
  body[data-bubbly-theme="softpop"] .bb-prof-poster .bb-name{font-size:34px;padding:5px 16px 7px}
  body[data-bubbly-theme="softpop"] .bb-prof-poster .bb-name.bb-name-l{font-size:30px}
  body[data-bubbly-theme="softpop"] .bb-prof-poster .bb-name.bb-name-m{font-size:27px}
}

/* ═══ Half-width classic buttons: label and chevron must never touch ═════════ */
body[data-bubbly-theme] .grid-item-1x1 .compact-link{height:100%}
body[data-bubbly-theme] .grid-item-1x1 .compact-link > .shadow-xl{gap:8px;padding-left:14px!important;padding-right:14px!important}
body[data-bubbly-theme="atelier"] [data-block-effect="2"].grid-item-1x1 h3{font-size:17px}
body[data-bubbly-theme="softpop"] .grid-item-1x1 .compact-link > div > div:first-child{width:34px!important;height:34px!important;border-width:2px}
/* at 320–360px a half-width cell has no room for chip + label + chevron: the chevron goes, the whole cell stays the link */
@media (max-width:380px){body[data-bubbly-theme] .grid-item-1x1 .compact-link > .shadow-xl > :last-child:not(:first-child){display:none}}

/* ═══ Block touch targets (≥44px) ════════════════════════════════════════════ */
body[data-bubbly-theme] .grid-button-container .shadow-xl,body[data-bubbly-theme] .promo-t5-card,body[data-bubbly-theme] .tip-header{min-height:44px}

/* ═══ Gate (direct page) ═════════════════════════════════════════════════════ */
body.bubbly-gate-page[data-bubbly-theme]{color:var(--t-text);padding:20px}
body.bubbly-gate-page[data-bubbly-theme] .bg-wrap{max-width:400px}
body.bubbly-gate-page[data-bubbly-theme] .bg-card{background:var(--t-block-bg);border:var(--t-bw) solid var(--t-block-border);border-radius:var(--t-radius-card);box-shadow:var(--t-shadow);-webkit-backdrop-filter:var(--t-block-blur);backdrop-filter:var(--t-block-blur);padding:36px 26px 28px;color:var(--t-text)}
body.bubbly-gate-page[data-bubbly-theme] .bg-card.is-media{padding:0 0 26px;overflow:hidden}
body.bubbly-gate-page[data-bubbly-theme] .bg-hero{height:200px;border-radius:0}
body.bubbly-gate-page[data-bubbly-theme] .bg-inner{padding:24px 26px 0}
body.bubbly-gate-page[data-bubbly-theme] .bg-av{width:88px;height:88px;border:3px solid var(--t-bg);box-shadow:0 0 0 2px var(--t-accent)}
body.bubbly-gate-page[data-bubbly-theme] .bg-title{font-family:var(--t-font-heading);font-size:26px;font-weight:750;letter-spacing:-.02em;line-height:1.15;color:var(--t-text);margin-bottom:10px;text-wrap:balance}
body.bubbly-gate-page[data-bubbly-theme] .bg-desc{font-size:15.5px;line-height:1.55;color:var(--t-muted);margin-bottom:24px}
body.bubbly-gate-page[data-bubbly-theme] .bg-age{display:inline-block;background:transparent;border:1.5px solid var(--t-danger);border-radius:999px;color:var(--t-danger);font-size:13px;font-weight:700;letter-spacing:.04em;padding:3px 12px;margin-bottom:16px}
body.bubbly-gate-page[data-bubbly-theme] .bg-btn{min-height:52px;background:var(--t-accent);color:var(--t-accent-ink);border-radius:var(--t-radius);font-family:var(--t-font-body);font-size:16px;font-weight:700;letter-spacing:.005em;transition:transform .12s ease,box-shadow .12s ease,background-color .12s ease;box-shadow:var(--t-shadow)}
body.bubbly-gate-page[data-bubbly-theme] .bg-btn:hover{opacity:1;box-shadow:var(--t-shadow-hover);transform:translateY(-1px)}
body.bubbly-gate-page[data-bubbly-theme] .bg-decline{min-height:44px;color:var(--t-muted);font-size:14px;margin-top:8px;text-decoration:underline;text-underline-offset:3px}
body.bubbly-gate-page[data-bubbly-theme] .bg-decline:hover{color:var(--t-text)}
body.bubbly-gate-page[data-bubbly-theme] .bg-sig{color:var(--t-muted);font-size:12px;letter-spacing:.02em;text-decoration:none;margin-top:20px}
body.bubbly-gate-page[data-bubbly-theme] .bg-sig:hover{color:var(--t-text);text-decoration:underline;text-underline-offset:3px}
body.bubbly-gate-page[data-bubbly-theme="atelier"] .bg-card{border-color:var(--t-text)}
body.bubbly-gate-page[data-bubbly-theme="atelier"] .bg-title{font-weight:420;font-size:32px}
body.bubbly-gate-page[data-bubbly-theme="atelier"][data-bubbly-fonts="classic"] .bg-title{font-style:italic}
body.bubbly-gate-page[data-bubbly-theme="atelier"] .bg-btn{background:var(--t-text);color:var(--t-bg);letter-spacing:.06em;text-transform:uppercase;font-size:13px}
body.bubbly-gate-page[data-bubbly-theme="atelier"] .bg-btn:hover{background:var(--t-accent);color:var(--t-accent-ink)}
body.bubbly-gate-page[data-bubbly-theme="softpop"] .bg-card{background:var(--t-pop-1)}
body.bubbly-gate-page[data-bubbly-theme="softpop"] .bg-desc{color:var(--t-text)}
body.bubbly-gate-page[data-bubbly-theme="softpop"] .bg-title{font-weight:900;font-size:28px}
body.bubbly-gate-page[data-bubbly-theme="softpop"] .bg-btn{border:3px solid var(--t-text);box-shadow:4px 4px 0 var(--t-text);font-weight:800}
body.bubbly-gate-page[data-bubbly-theme="softpop"] .bg-btn:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--t-text)}
body.bubbly-gate-page[data-bubbly-theme="softpop"] .bg-decline{color:var(--t-text)}
body.bubbly-gate-page[data-bubbly-theme="softpop"] .bg-age{background:#fff;border:2px solid var(--t-text);color:var(--t-text)}
body.bubbly-gate-page[data-bubbly-theme="noir"] .bg-title{font-weight:300;font-size:30px;letter-spacing:-.03em}
body.bubbly-gate-page[data-bubbly-theme="noir"] .bg-btn{background:var(--t-text);color:var(--t-bg);box-shadow:none}
body.bubbly-gate-page[data-bubbly-theme="noir"] .bg-btn:hover{background:color-mix(in srgb,var(--t-text) 86%,var(--t-accent))}

/* ═══ Motion preferences ═════════════════════════════════════════════════════ */
@media (prefers-reduced-motion:reduce){
  body[data-bubbly-theme],body[data-bubbly-theme] *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  body[data-bubbly-theme] .grid-button-container .shadow-xl:hover{transform:none}
}

/* ═══ Small screens (320–430px) ══════════════════════════════════════════════ */
@media (max-width:360px){
  body[data-bubbly-theme] .bb-name{font-size:26px}
  body[data-bubbly-theme="noir"] .bb-name{font-size:38px}
  body[data-bubbly-theme="atelier"] .bb-name{font-size:36px}
  body[data-bubbly-theme="softpop"] .bb-name{font-size:27px;padding:5px 16px 7px}
  body[data-bubbly-theme] .cd-t5-unit{min-width:48px}
  body[data-bubbly-theme] .cd-t5-units{gap:6px}
}
@media (max-width:480px){
  body[data-bubbly-theme] .bb-banner{border-radius:0 0 var(--t-radius-card) var(--t-radius-card)}
}
