/* Docs pages (owner, 2026-11-18): always dark, each product styled from its own listing video ("style B": real screens in
   a floating card with a pale border, Hanken Grotesk headline with one accent word), plus two reader themes.
   Loaded after site.css and the product stylesheets, only on pages with <html class="docs" data-product="..">.
   Every rule is scoped to html.docs, so no other page changes.

   Themes (data-theme on <html>, chosen with the switch at the top, saved per visitor by js/docs.js):
     dark  the product palette (default)
     hc    high contrast: near-black, white text, bright accents, nothing painted behind text
     soft  soft light: warm paper, never white, for readers whose eyes or browser overrides need a light page
   color-scheme follows the theme (dark, dark, only light) so browser auto-dark leaves the page alone.

   Product palettes (never shared between products):
     blueprintmover  blueprint blue + orange #FF6123            (Blueprint Mover listing video)
     padseat         navy-purple + yellow #FFC93C               (PadSeat listing video)
     spritefx        ink plum #140814-#09060C + holo foil #FF54B6-#B080FF (Sprite FX video, cover C)
     meshfx          plasma teal #031A1F-#0A3B42 + #2EF2D0, coral #FF5A5F, lit stage (MeshFX video)
     umg             the promo's card ink #0F1029 + its "rainbow" effect #5CF27A-#4FD8F0-#8A5CF6, periwinkle #A9B4FF
     poolkit         the demo floor's concrete graphite + the icon's azure #4DA3FF and its three pooled balls */

/* ---------- tokens: generic dark, then per product ---------- */
html.docs {
  color-scheme: dark;
  --display: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --g0: #101214; --g1: #0B0C0E; --bg: #0E1012; --panel: #16191C; --panel2: #0A0B0D;
  --tx: #E2E4E6; --tx-strong: #FAFAFA; --mute: #A3A8AE; --rule: #2A2E33; --rule-strong: #454B52;
  --acc: #FF6123; --acc-2: #FF6123; --acc-tx: #FF8A5C; --link: #FF8A5C; --on-acc: #111111;
  --code-tx: #F0D9CF; --code-bg: rgba(255, 255, 255, .07); --code-line: rgba(255, 255, 255, .09);
  --note-bg: rgba(255, 255, 255, .05); --th-bg: rgba(255, 255, 255, .035);
  --warn: var(--tx-strong); --warn-bg: rgba(255, 255, 255, .05);
  --frame: #EDEDED; --frame-soft: rgba(255, 255, 255, .16); --card-r: 14px; --art-glow: rgba(0, 0, 0, 0);
  --hero-tx: #FAFAFA; --hero-dek: #D4D7DA; --hero-mute: #B8BDC2; --hero-rule: rgba(255, 255, 255, .2);
  --hero-bg: linear-gradient(160deg, var(--g0), var(--g1));
  --seg-bg: rgba(0, 0, 0, .3); --btn-line: rgba(255, 255, 255, .55); --head-bg: var(--g0);
  --shadow: 0 26px 44px rgba(0, 0, 0, .55); --sw-line: rgba(255, 255, 255, .5);
  --syn-k: var(--link); --syn-s: var(--code-tx); --syn-c: var(--mute); --syn-n: var(--tx-strong);
  --marker: transparent;
}
html.docs[data-product="blueprintmover"] {
  --g0: #0A1C40; --g1: #0F2C5E; --bg: #0A1833; --panel: #0E1F44; --panel2: #071228;
  --tx: #DCE5F5; --tx-strong: #F5F8FE; --mute: #9DAFD0; --rule: #1F3463; --rule-strong: #36508A;
  --acc: #FF6123; --acc-2: #FF6123; --acc-tx: #FF8A5C; --link: #FF936A; --on-acc: #0A1226;
  --code-tx: #FFC2A8; --code-bg: rgba(255, 97, 35, .1); --code-line: rgba(255, 140, 100, .16); --note-bg: rgba(255, 97, 35, .08);
  --frame: #E6EEFF; --frame-soft: rgba(184, 206, 255, .22); --card-r: 12px; --art-glow: rgba(70, 130, 255, .35);
  --hero-dek: #CBD6EC; --hero-mute: #A9BBDD;
  --hero-bg: radial-gradient(1100px 520px at 88% -10%, rgba(64, 120, 255, .24), transparent 62%), linear-gradient(165deg, #0A1C40 0%, #0F2C5E 100%);
}
html.docs[data-product="padseat"] {
  --g0: #1B1D4E; --g1: #3A1F68; --bg: #14153A; --panel: #1C1D49; --panel2: #0F102D;
  --tx: #E6E3F5; --tx-strong: #FBFAFF; --mute: #AEAAD2; --rule: #2C2B5E; --rule-strong: #4A478C;
  --acc: #FFC93C; --acc-2: #FFC93C; --acc-tx: #FFD35E; --link: #FFD769; --on-acc: #1A1530;
  --code-tx: #FFE3A0; --code-bg: rgba(255, 201, 60, .1); --code-line: rgba(255, 210, 100, .16); --note-bg: rgba(255, 201, 60, .08);
  --frame: #F1EDFF; --frame-soft: rgba(214, 205, 255, .22); --card-r: 16px; --art-glow: rgba(150, 110, 255, .4);
  --hero-dek: #D6D2EE; --hero-mute: #B6B1DB;
  --hero-bg: radial-gradient(900px 440px at 18% -10%, rgba(130, 115, 255, .22), transparent 66%), linear-gradient(135deg, #1B1D4E 0%, #2A1E5C 55%, #3A1F68 100%);
}
html.docs[data-product="spritefx"] {
  --g0: #140814; --g1: #09060C; --bg: #0D070F; --panel: #180C1B; --panel2: #08040A;
  --tx: #EDE3EE; --tx-strong: #FFF7FD; --mute: #BCA8BF; --rule: #2E1B31; --rule-strong: #4F3154;
  --acc: #FF54B6; --acc-2: #B080FF; --acc-tx: #FF7CC8; --link: #FF8ACF; --on-acc: #18060F;
  --code-tx: #E2CCFF; --code-bg: rgba(176, 128, 255, .12); --code-line: rgba(196, 160, 255, .18); --note-bg: rgba(255, 84, 182, .08);
  --warn: #B080FF; --warn-bg: rgba(176, 128, 255, .1);
  --frame: #F3E8FF; --frame-soft: rgba(243, 232, 255, .2); --card-r: 4px; --art-glow: rgba(255, 84, 182, .32);
  --hero-dek: #DCCDDD; --hero-mute: #C3AEC6;
  --hero-bg: radial-gradient(760px 440px at 94% -6%, #3A0524, transparent 70%), radial-gradient(640px 400px at -4% 104%, #03222A, transparent 70%), linear-gradient(160deg, #140814 0%, #09060C 100%);
  --syn-k: #FF8ACF; --syn-s: #E2CCFF;
}
html.docs[data-product="meshfx"] {
  --g0: #031A1F; --g1: #0A3B42; --bg: #041519; --panel: #072229; --panel2: #020D10;
  --tx: #DDEFEE; --tx-strong: #F2FBFA; --mute: #98BEBC; --rule: #12383D; --rule-strong: #1F5960;
  --acc: #2EF2D0; --acc-2: #FF5A5F; --acc-tx: #4FF5D9; --link: #5BF6DC; --on-acc: #03181C;
  --code-tx: #9BF9E9; --code-bg: rgba(46, 242, 208, .09); --code-line: rgba(46, 242, 208, .16); --note-bg: rgba(46, 242, 208, .07);
  --warn: #FF5A5F; --warn-bg: rgba(255, 90, 95, .09);
  --frame: #E2F5F0; --frame-soft: rgba(200, 240, 232, .2); --card-r: 16px; --art-glow: rgba(46, 242, 208, .3);
  --hero-dek: #C6E2E0; --hero-mute: #A2C9C6;
  --hero-bg: radial-gradient(780px 470px at 6% -8%, rgba(46, 242, 208, .22), transparent 64%), radial-gradient(640px 430px at 102% 104%, rgba(255, 90, 95, .22), transparent 64%), linear-gradient(170deg, #031A1F 0%, #0A3B42 100%);
  --syn-k: #5BF6DC; --syn-s: #FFB3B5;
}
html.docs[data-product="umg"] {
  --g0: #0F1029; --g1: #090A1A; --bg: #0B0C20; --panel: #131535; --panel2: #07081A;
  --tx: #E3E4F4; --tx-strong: #FAFAFF; --mute: #A8AACE; --rule: #24264D; --rule-strong: #3D4078;
  --acc: #A9B4FF; --acc-2: #4FD8F0; --acc-tx: #B9C2FF; --link: #BCC4FF; --on-acc: #0B0C20;
  --code-tx: #92E8F6; --code-bg: rgba(79, 216, 240, .09); --code-line: rgba(79, 216, 240, .16); --note-bg: rgba(169, 180, 255, .08);
  --frame: #ECEAFF; --frame-soft: rgba(210, 214, 255, .2); --card-r: 14px; --art-glow: rgba(120, 110, 255, .35);
  --hero-dek: #CFD1EA; --hero-mute: #ADB0D6;
  --hero-bg: radial-gradient(900px 460px at 82% -12%, rgba(138, 92, 246, .2), transparent 64%), radial-gradient(700px 380px at 0% 110%, rgba(79, 216, 240, .1), transparent 64%), linear-gradient(170deg, #0F1029 0%, #090A1A 100%);
  --marker: #4B3AB8; --syn-k: #BCC4FF; --syn-s: #9CF2B4;
}
html.docs[data-product="poolkit"] {
  --g0: #1B1F25; --g1: #111317; --bg: #131519; --panel: #1C1F25; --panel2: #0C0E11;
  --tx: #E3E6EA; --tx-strong: #FAFBFC; --mute: #A6ADB7; --rule: #2B3038; --rule-strong: #454D59;
  --acc: #4DA3FF; --acc-2: #6EE59A; --acc-tx: #6EB5FF; --link: #7DBDFF; --on-acc: #0B1420;
  --code-tx: #A9D4FF; --code-bg: rgba(77, 163, 255, .1); --code-line: rgba(110, 181, 255, .17); --note-bg: rgba(77, 163, 255, .08);
  --frame: #E8F1FF; --frame-soft: rgba(210, 226, 255, .2); --card-r: 12px; --art-glow: rgba(77, 163, 255, .32);
  --hero-dek: #CDD3DB; --hero-mute: #AEB6C1;
  --hero-bg: radial-gradient(1000px 480px at 72% -14%, rgba(77, 163, 255, .26), transparent 64%), linear-gradient(180deg, #1B1F25 0%, #111317 100%);
  --syn-k: #7DBDFF; --syn-s: #9BE8B8; --syn-n: #FFD45E;
}

/* ---------- high contrast (shared), then its bright accents per product ---------- */
html.docs[data-theme="hc"] {
  color-scheme: dark;
  --g0: #050505; --g1: #050505; --bg: #050505; --panel: #121212; --panel2: #000000;
  --tx: #FFFFFF; --tx-strong: #FFFFFF; --mute: #E4E4E4; --rule: #8A8A8A; --rule-strong: #D2D2D2;
  --code-tx: #FFFFFF; --code-bg: #1C1C1C; --code-line: #8A8A8A; --note-bg: #121212; --th-bg: #161616;
  --warn: #FFFFFF; --warn-bg: #121212;
  --frame: #FFFFFF; --frame-soft: #BDBDBD; --art-glow: rgba(0, 0, 0, 0);
  --hero-tx: #FFFFFF; --hero-dek: #FFFFFF; --hero-mute: #E4E4E4; --hero-rule: #8A8A8A; --hero-bg: #050505;
  --seg-bg: #000000; --btn-line: #FFFFFF; --head-bg: #000000; --shadow: none; --on-acc: #000000; --sw-line: #FFFFFF;
  --syn-k: var(--acc); --syn-s: #FFFFFF; --syn-c: #E4E4E4; --syn-n: #FFFFFF; --marker: transparent;
}
html.docs[data-product="blueprintmover"][data-theme="hc"] { --acc: #FF9A6E; --acc-2: #FF9A6E; --acc-tx: #FF9A6E; --link: #FFAD8A; }
html.docs[data-product="padseat"][data-theme="hc"] { --acc: #FFD966; --acc-2: #FFD966; --acc-tx: #FFD966; --link: #FFE08A; }
html.docs[data-product="spritefx"][data-theme="hc"] { --acc: #FF9AD4; --acc-2: #D2B6FF; --acc-tx: #FF9AD4; --link: #FFB0DE; --warn: #D2B6FF; }
html.docs[data-product="meshfx"][data-theme="hc"] { --acc: #5CFFE4; --acc-2: #FF9C9F; --acc-tx: #5CFFE4; --link: #8CFFEC; --warn: #FF9C9F; }
html.docs[data-product="umg"][data-theme="hc"] { --acc: #C9D0FF; --acc-2: #8FEFFF; --acc-tx: #C9D0FF; --link: #D6DBFF; }
html.docs[data-product="poolkit"][data-theme="hc"] { --acc: #8CC6FF; --acc-2: #9CF2BC; --acc-tx: #8CC6FF; --link: #A6D3FF; }

/* ---------- soft light (shared), then its dark accent inks per product ---------- */
html.docs[data-theme="soft"] {
  color-scheme: only light;
  --g0: #E6E1D8; --g1: #DCD6CB; --bg: #E6E1D8; --panel: #EDE9E2; --panel2: #DCD6CB;
  --tx: #24211D; --tx-strong: #121110; --mute: #554F48; --rule: #C6BEB1; --rule-strong: #968D80;
  --code-tx: #2A2522; --code-bg: rgba(60, 40, 20, .07); --code-line: rgba(60, 40, 20, .14); --note-bg: #EDE9E2; --th-bg: #E2DDD3;
  --warn: #4A443D; --warn-bg: #EDE9E2;
  --frame: #2B2824; --frame-soft: #B9B0A2; --art-glow: rgba(0, 0, 0, 0);
  --hero-tx: #121110; --hero-dek: #2B2824; --hero-mute: #4F4943; --hero-rule: #B5AC9E;
  --seg-bg: #DCD6CB; --btn-line: #57514A; --head-bg: #26231F; --shadow: 0 18px 30px rgba(70, 50, 30, .22);
  --on-acc: #FBF8F3; --sw-line: rgba(0, 0, 0, .45);
  --syn-c: #5E574F; --syn-n: #121110; --marker: transparent;
  --hero-bg: radial-gradient(900px 440px at 88% -10%, var(--soft-glow, rgba(0, 0, 0, .04)), transparent 70%), linear-gradient(180deg, #E9E4DB 0%, #DFD9CE 100%);
}
html.docs[data-product="blueprintmover"][data-theme="soft"] { --acc: #A83A0C; --acc-2: #A83A0C; --acc-tx: #9A3409; --link: #9A3409; --soft-glow: rgba(60, 110, 230, .14); --syn-k: #9A3409; --syn-s: #22427A; }
html.docs[data-product="padseat"][data-theme="soft"] { --acc: #6E4F00; --acc-2: #6E4F00; --acc-tx: #6E4F00; --link: #5F4400; --soft-glow: rgba(110, 80, 220, .14); --syn-k: #5F4400; --syn-s: #3F2E86; }
html.docs[data-product="spritefx"][data-theme="soft"] { --acc: #A3176B; --acc-2: #6A3FB8; --acc-tx: #A3176B; --link: #95135F; --warn: #6A3FB8; --soft-glow: rgba(220, 60, 160, .12); --syn-k: #95135F; --syn-s: #5A2FA8; }
html.docs[data-product="meshfx"][data-theme="soft"] { --acc: #006B5C; --acc-2: #B3262B; --acc-tx: #005E51; --link: #005E51; --warn: #B3262B; --soft-glow: rgba(20, 180, 160, .14); --syn-k: #005E51; --syn-s: #A3242A; }
html.docs[data-product="umg"][data-theme="soft"] { --acc: #4537B5; --acc-2: #0A6A80; --acc-tx: #4537B5; --link: #3D30A6; --soft-glow: rgba(110, 90, 230, .14); --syn-k: #3D30A6; --syn-s: #0B6A3A; }
html.docs[data-product="poolkit"][data-theme="soft"] { --acc: #1A5DB5; --acc-2: #1A7A45; --acc-tx: #1652A1; --link: #1652A1; --soft-glow: rgba(60, 140, 255, .16); --syn-k: #1652A1; --syn-s: #176A3D; --syn-n: #6B4E00; }

/* ---------- base ---------- */
html.docs { background: var(--bg); }
html.docs body { background: var(--bg); color: var(--tx); line-height: 1.65; }
html.docs ::selection { background: var(--acc); color: var(--on-acc); }
html.docs :focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
html.docs .site-head { background: var(--head-bg); }
html.docs .skip { background: var(--tx-strong); color: var(--bg); }

/* ---------- hero: the video's opening frame ---------- */
html.docs .opener { background: var(--hero-bg); background-color: var(--g0); color: var(--hero-tx); padding: 16px 0 clamp(52px, 6vw, 100px); isolation: isolate; }
html.docs .opener::before, html.docs .opener::after { content: ""; position: absolute; pointer-events: none; z-index: 0; }
html.docs .dd-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 18px; }
html.docs .opener .run { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; border: 0; font-family: var(--mono); font-size: 12.5px; font-weight: 500; line-height: 1.5; color: var(--hero-mute); }
html.docs .opener .run > span { display: inline; text-align: left; }
html.docs .opener .run > span + span::before { content: "/"; margin: 0 .75em; opacity: .65; }
html.docs .opener .run > :first-child { color: var(--hero-tx); }
@media (max-width: 639px) { html.docs .opener .run { flex-direction: column; gap: 2px; } html.docs .opener .run > span + span::before { content: none; } }
html.docs .dd-hero { display: grid; gap: 40px; margin-top: clamp(30px, 4.5vw, 64px); }
@media (min-width: 1024px) { html.docs .dd-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 80px); align-items: center; } }
html.docs .opener .phed { margin: 0; font-family: var(--text); font-stretch: 100%; text-transform: none; font-weight: 800; font-size: clamp(46px, 3.3vw + 28px, 86px); line-height: 1.0; letter-spacing: -.035em; max-width: 11ch; color: var(--hero-tx); text-wrap: balance; }
html.docs .opener .phed em { color: var(--acc); }
html.docs .opener .dek { margin-top: 22px; font-size: clamp(17px, .35vw + 15.6px, 20px); line-height: 1.5; color: var(--hero-dek); max-width: 40ch; }
html.docs .opener .acts { margin-top: 30px; }
html.docs .opener .btn { border: 1.5px solid var(--btn-line); border-radius: 10px; padding: 10px 18px; color: var(--hero-tx); }
html.docs .opener .btn:hover { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
html.docs .dd-art { margin: 0; min-width: 0; filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .5)) drop-shadow(0 0 46px var(--art-glow)); }
html.docs .dd-frame { display: block; padding: 2px; background: var(--frame); border-radius: var(--card-r); }
html.docs .dd-frame img { width: 100%; height: auto; border-radius: calc(var(--card-r) - 2px); background: var(--panel2); }
html.docs[data-theme="soft"] .dd-art { filter: drop-shadow(0 18px 26px rgba(70, 50, 30, .25)); }
html.docs[data-theme="hc"] .dd-art { filter: none; }
html.docs[data-theme="hc"] .opener::before, html.docs[data-theme="hc"] .opener::after,
html.docs[data-theme="soft"] .opener::before, html.docs[data-theme="soft"] .opener::after { display: none; }

/* product stages (dark theme only) */
html.docs[data-product="blueprintmover"] .opener::before { inset: 0; background-image: linear-gradient(rgba(150, 185, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 185, 255, .1) 1px, transparent 1px), linear-gradient(rgba(150, 185, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 185, 255, .05) 1px, transparent 1px); background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px; background-position: -1px -1px; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%); mask-image: linear-gradient(180deg, #000 20%, transparent 100%); }
html.docs[data-product="padseat"] .opener::after { left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #009E73 0 25%, #56B4E9 25% 50%, #E69F00 50% 75%, #CC79A7 75% 100%); }
html.docs[data-product="spritefx"] .opener::before { inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 8px 8px; -webkit-mask-image: radial-gradient(70% 90% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(70% 90% at 100% 0%, #000, transparent 70%); }
html.docs[data-product="spritefx"] .dd-art { filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .55)) drop-shadow(0 0 46px var(--art-glow)); }
html.docs[data-product="spritefx"] .dd-frame { padding: 3px; border-radius: 0; background: linear-gradient(135deg, #FF54B6, #B080FF);
  clip-path: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px)); }
html.docs[data-product="spritefx"] .dd-frame img { border-radius: 0; }
html.docs[data-product="spritefx"][data-theme="dark"] .opener .phed em { background: linear-gradient(100deg, #FF54B6 10%, #B080FF 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.docs[data-product="spritefx"][data-theme="hc"] .dd-frame, html.docs[data-product="spritefx"][data-theme="soft"] .dd-frame { background: var(--frame); }
html.docs[data-product="meshfx"] .opener::before { left: -30%; right: -30%; bottom: 0; height: 58%; background-image: linear-gradient(rgba(46, 242, 208, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 242, 208, .16) 1px, transparent 1px); background-size: 64px 64px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 80%); mask-image: linear-gradient(0deg, #000 0%, transparent 80%); }
html.docs[data-product="meshfx"] .opener::after { inset: 0; background-image: radial-gradient(circle, rgba(46, 242, 208, .7) 0 1px, transparent 1.8px), radial-gradient(circle, rgba(255, 90, 95, .6) 0 1px, transparent 1.8px); background-size: 190px 150px, 260px 210px; background-position: 30px 40px, 120px 90px; opacity: .55; }
html.docs[data-product="umg"] .opener::after { left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #5CF27A, #4FD8F0 50%, #8A5CF6); }
html.docs[data-product="umg"][data-theme="dark"] .opener .phed em { background: linear-gradient(95deg, #5CF27A 0%, #4FD8F0 50%, #8A5CF6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.docs[data-product="poolkit"] .opener::before { left: -40%; right: -40%; bottom: 0; height: 56%; background: repeating-conic-gradient(rgba(255, 255, 255, .045) 0 25%, transparent 0 50%) 0 0 / 120px 120px; transform: perspective(560px) rotateX(66deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 85%); mask-image: linear-gradient(0deg, #000 0%, transparent 85%); }
html.docs[data-product="poolkit"] .opener .run > :first-child::before { content: ""; display: inline-block; width: 30px; height: 10px; margin-right: 10px; vertical-align: -1px;
  background: radial-gradient(circle at 5px 5px, #6FD6FF 0 4px, transparent 4.5px), radial-gradient(circle at 15px 5px, #FFD45E 0 4px, transparent 4.5px), radial-gradient(circle at 25px 5px, #6EE59A 0 4px, transparent 4.5px); }

/* ---------- theme switch ---------- */
html.docs .dd-theme { display: none; align-items: center; gap: 10px; }
html.docs.dd-js .dd-theme { display: flex; }
html.docs .dd-theme-l { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--hero-mute); }
html.docs .dd-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 2px; padding: 3px; border: 1px solid var(--hero-rule); border-radius: 11px; background: var(--seg-bg); }
html.docs .dd-seg label { position: relative; display: block; cursor: pointer; }
html.docs .dd-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
html.docs .dd-seg span { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 13px; border-radius: 8px; font-size: 13.5px; font-weight: 650; line-height: 1.15; color: var(--hero-mute); white-space: nowrap; text-align: center; }
html.docs .dd-seg label:hover span { color: var(--hero-tx); }
html.docs .dd-seg input:checked + span { background: var(--acc); color: var(--on-acc); }
html.docs .dd-seg input:focus-visible + span { outline: 2px solid var(--hero-tx); outline-offset: 2px; }
@media (max-width: 639px) {
  html.docs .dd-theme { order: -1; width: 100%; }
  html.docs .dd-seg { flex: 1; grid-auto-columns: minmax(0, 1fr); }
  html.docs .dd-seg span { min-height: 42px; padding: 6px 6px; font-size: 13px; white-space: normal; }
}

/* ---------- reading surface ---------- */
html.docs .sec.white { background: var(--bg); color: var(--tx); padding-top: clamp(36px, 5vw, 72px); }
html.docs .ps-docbody { gap: 0 clamp(48px, 5vw, 80px); margin-top: 0; }
@media (max-width: 1099px) { html.docs .ps-docbody { display: block; } html.docs .ps-doc [id] { scroll-margin-top: 64px; } }
@media (min-width: 1100px) { html.docs .ps-docbody { grid-template-columns: 236px minmax(0, 1fr); } html.docs .ps-doc [id] { scroll-margin-top: 20px; } }

/* sticky table of contents with the reader's place marked */
html.docs .ps-toc { font-size: 14.5px; }
html.docs .ps-toc .lab { font-family: var(--mono); font-size: 12px; letter-spacing: 0; text-transform: lowercase; color: var(--mute); margin: 0 0 10px; }
html.docs .ps-toc .lab::first-letter { text-transform: uppercase; }  /* the label reads "On this page", not a shouted eyebrow */
html.docs .ps-toc a { display: block; padding: 7px 0 7px 14px; border: 0; border-left: 2px solid var(--rule); color: var(--mute); text-decoration: none; line-height: 1.35; }
html.docs .ps-toc a:hover { color: var(--tx-strong); border-left-color: var(--rule-strong); }
html.docs .ps-toc a[aria-current="location"] { color: var(--tx-strong); border-left-color: var(--acc); font-weight: 650; }
html.docs[data-product="umg"][data-theme="dark"] .ps-toc a[aria-current="location"] { background: linear-gradient(transparent 12%, var(--marker) 12% 88%, transparent 88%) no-repeat 8px 0 / calc(100% - 8px) 100%; }
html.docs .ps-toc--d { top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
html.docs .ps-toc--m { position: sticky; top: 0; z-index: 6; margin: 0 calc(-1 * var(--m)) 30px; padding: 0 var(--m); border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: var(--bg); }
html.docs .ps-toc--m summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; color: var(--tx-strong); font-weight: 700; list-style: none; }
html.docs .ps-toc--m summary::-webkit-details-marker { display: none; }
html.docs .ps-toc--m summary::after { content: ""; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: translateY(-3px) rotate(45deg); }
html.docs .ps-toc--m[open] summary::after { transform: translateY(2px) rotate(-135deg); }
html.docs .ps-toc--m nav { max-height: min(62vh, 540px); overflow-y: auto; padding: 0 0 14px; }

/* article type */
html.docs .ps-doc { color: var(--tx); }
html.docs .ps-doc p { max-width: 72ch; }
html.docs .ps-doc li { min-width: 0; }  /* list items are grid items: a long code line scrolls inside its box, not the page */
html.docs .ps-doc strong { color: var(--tx-strong); font-weight: 680; }
html.docs .ps-doc a, html.docs .se-how a, html.docs .ps-fig figcaption a { color: var(--link); text-decoration-color: currentColor; text-decoration-thickness: 1px; }
html.docs .ps-doc a:hover { text-decoration-thickness: 2px; }
html.docs .ps-doc h2 { font-family: var(--text); font-stretch: 100%; font-weight: 790; font-size: clamp(28px, 1.2vw + 21px, 40px); line-height: 1.1; letter-spacing: -.024em; color: var(--tx-strong);
  margin: clamp(60px, 6vw, 100px) 0 16px; padding-top: clamp(26px, 2.4vw, 34px); border-top: 1px solid var(--rule); }
html.docs .ps-doc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
html.docs .ps-doc h2 .h-n { font-family: var(--mono); font-weight: 500; font-size: .5em; letter-spacing: 0; color: var(--acc-tx); vertical-align: .34em; margin-right: .55em; }
html.docs .ps-doc h3 { font-family: var(--text); font-stretch: 100%; font-weight: 730; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; color: var(--tx-strong); margin: 40px 0 8px; }
html.docs .ps-doc h2 .tag { color: var(--mute); }
html.docs .ps-doc ul > li::before { width: 6px; height: 6px; top: .74em; background: var(--acc); }
html.docs[data-product="spritefx"] .ps-doc ul > li::before { border-radius: 0; width: 6px; height: 6px; }
html.docs .ps-list li::before { background: var(--acc); }

/* numbered steps: a rail of badges, the way the panels number their own steps */
html.docs .ps-doc ol { gap: 0; margin-top: 16px; }
html.docs .ps-doc ol > li { padding: 0 0 16px 46px; }
html.docs .ps-doc ol > li:last-child { padding-bottom: 0; }
html.docs .ps-doc ol > li::before { top: 0; left: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--acc); border-radius: 50%; background: var(--bg); color: var(--tx-strong); font: 500 13px/1 var(--mono); z-index: 1; }
html.docs .ps-doc ol > li::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1.5px; background: var(--rule-strong); }
html.docs .ps-doc ol > li:last-child::after { display: none; }
html.docs[data-product="spritefx"] .ps-doc ol > li::before { border-radius: 3px; }
html.docs .ps-doc .note ol > li::before { background: var(--panel); }

/* inline code, keys, code blocks */
html.docs .ps-doc code, html.docs .ps-table code, html.docs .ps-list code, html.docs .se-how code, html.docs .fx code, html.docs .se-row code {
  font-family: var(--mono); font-size: .86em; color: var(--code-tx); background: var(--code-bg); border: 1px solid var(--code-line); border-radius: 5px; padding: 0 5px; }
html.docs kbd { background: var(--panel); color: var(--tx-strong); border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px 1px; }
html.docs .ps-doc pre, html.docs .dd-code pre { margin: 0; padding: 16px 18px 18px; background: var(--panel2); color: var(--tx); border: 1px solid var(--rule); border-radius: 12px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.65; tab-size: 4; }
html.docs .ps-doc pre { margin-top: 18px; }
html.docs .ps-doc pre code, html.docs .dd-code pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; white-space: pre; }
html.docs .dd-code { margin-top: 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel2); overflow: hidden; }
html.docs .dd-code pre, html.docs .ps-doc .dd-code pre { margin: 0; border: 0; border-radius: 0; }
html.docs .dd-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 4px 6px 4px 16px; border-bottom: 1px solid var(--rule); background: var(--th-bg); font-family: var(--mono); font-size: 12px; color: var(--mute); }
html.docs .dd-copybtn { min-height: 32px; padding: 4px 12px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--panel); color: var(--tx-strong); font: 600 12.5px/1 var(--text); cursor: pointer; }
html.docs .dd-copybtn:hover { border-color: var(--acc); }
html.docs .tk-k { color: var(--syn-k); }
html.docs .tk-s { color: var(--syn-s); }
html.docs .tk-c { color: var(--syn-c); font-style: italic; }
html.docs .tk-n { color: var(--syn-n); }

/* callouts */
html.docs .ps-doc .note, html.docs .se-how { margin-top: 20px; padding: 14px 18px; background: var(--note-bg); border: 0; border-left: 3px solid var(--acc); border-radius: 0 12px 12px 0; color: var(--tx); }
html.docs .ps-doc .note.warn { border-left-color: var(--warn); background: var(--warn-bg); }
html.docs .ps-doc .note + .note { margin-top: 12px; }

/* tables: panels with a mono head */
html.docs .ps-table { margin-top: 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
html.docs .ps-doc .ps-table { margin-top: 18px; }
html.docs .ps-table th { padding: 11px 16px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .02em; color: var(--mute); background: var(--th-bg); border-bottom: 1px solid var(--rule-strong); }
html.docs .ps-table td, html.docs .ps-doc .ps-table td { padding: 11px 16px; border-bottom: 1px solid var(--rule); color: var(--tx); }
html.docs .ps-table tbody tr:last-child td { border-bottom: 0; }
html.docs .ps-table td:first-child { color: var(--tx-strong); }
html.docs .ps-table:focus-visible { outline-offset: 2px; }
@media (max-width: 699px) {
  html.docs .ps-table tr { padding: 12px 16px 13px; border-bottom: 1px solid var(--rule); }
  html.docs .ps-table tbody tr:last-child { border-bottom: 0; }
  html.docs .ps-table td, html.docs .ps-doc .ps-table td { padding: 4px 0 0; border-bottom: 0; }
  html.docs .ps-table td:first-child { padding-top: 0; }
  html.docs .ps-table td[data-label]:not(:first-child)::before { color: var(--mute); }
  html.docs .ps-table.bm-compact th, html.docs .ps-table.bm-compact td { padding: 9px 10px 10px; border-bottom: 1px solid var(--rule); }
  html.docs .ps-table.bm-compact tr { padding: 0; }
  html.docs .ps-table.fx-table tr.grp { padding: 14px 16px 4px; border-bottom: 1px solid var(--rule-strong); }
}

/* figures: real screens on a card, the video's floating card made quieter for long pages */
html.docs .ps-fig img, html.docs .bm-figs .ps-fig img { border: 2px solid var(--frame-soft); border-radius: var(--card-r); background: var(--panel2); box-shadow: var(--shadow); }
html.docs .ps-fig > a { border-radius: var(--card-r); }
html.docs .ps-fig figcaption { margin-top: 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--mute); }
html.docs .ps-figs { max-width: none; gap: 24px; margin-top: 20px; }
html.docs .bm-figs { margin-top: 22px; }
html.docs[data-product="spritefx"] .ps-fig img { border-radius: 4px; }

/* Blueprint Mover action key and other lists */
html.docs .bm-key { border-top: 1px solid var(--rule-strong); }
html.docs .bm-key li { border-bottom: 1px solid var(--rule); color: var(--tx); }
html.docs .bm-chip { box-shadow: inset 0 0 0 1px var(--rule-strong); }
html.docs .ps-doc dl.se-dl { border-top: 1px solid var(--rule-strong); }
html.docs .ps-doc dl.se-dl div { border-bottom: 1px solid var(--rule); }
html.docs .ps-doc dl.se-dl dt { color: var(--tx-strong); }

/* ---------- effect reference pages ---------- */
html.docs .se-find { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; }
html.docs .se-find label > span, html.docs .se-f legend { color: var(--mute); }
html.docs .se-find input[type="search"], html.docs .se-find select { background: var(--bg); color: var(--tx-strong); border: 1px solid var(--rule-strong); border-radius: 10px; }
html.docs .se-find input[type="search"]::placeholder { color: var(--mute); opacity: 1; }
html.docs .se-find input[type="search"]:focus-visible, html.docs .se-find select:focus-visible { outline: 2px solid var(--acc); }
html.docs .se-f input { accent-color: var(--acc); }
html.docs .se-status, html.docs .se-none { color: var(--tx-strong); }
html.docs .se-jump a { background: var(--panel); color: var(--tx-strong); border: 1px solid var(--rule); border-radius: 10px; }
html.docs .se-jump a span { color: var(--mute); }
html.docs .se-jump a:hover { background: var(--panel); color: var(--tx-strong); border-color: var(--acc); }
html.docs .se-jump a:hover span { color: var(--mute); }
html.docs .se-how { max-width: 96ch; }
html.docs .fx-cat h2 { font-family: var(--text); font-stretch: 100%; font-weight: 790; letter-spacing: -.024em; color: var(--tx-strong); padding-top: 26px; border-top: 1px solid var(--rule); }
html.docs .fx-cnt { color: var(--mute); }
html.docs .fx { border-bottom: 1px solid var(--rule); }
html.docs .fx h3 { font-family: var(--text); font-stretch: 100%; font-weight: 730; color: var(--tx-strong); letter-spacing: -.01em; }
html.docs .fx-n { color: var(--acc-tx); }
html.docs .fx-tags span { border: 1px solid var(--rule-strong); border-radius: 5px; color: var(--tx); }
html.docs .fx-meta div { border-top: 1px solid var(--rule); }
html.docs .fx-meta dt, html.docs .fx-c b { color: var(--mute); }
html.docs .fx-p summary { border: 1px solid var(--rule-strong); border-radius: 10px; color: var(--tx-strong); }
html.docs .fx-p summary:hover { background: var(--panel); color: var(--tx-strong); border-color: var(--acc); }
html.docs .fx-table tr.grp th { color: var(--tx-strong); border-bottom: 1px solid var(--rule-strong); background: transparent; }
html.docs .sw { border-color: var(--sw-line); }

/* ---------- Windows contrast themes and other forced colors ---------- */
@media (forced-colors: active) {
  html.docs .opener::before, html.docs .opener::after { display: none; }
  /* the studio header keeps its dark band so the light wordmark stays visible */
  html.docs .site-head { forced-color-adjust: none; background: #000000; color: #FFFFFF; }
  html.docs .site-head a:focus-visible { outline: 2px solid #FFFFFF; }
  html.docs[data-product][data-theme] .opener .phed em { -webkit-text-fill-color: currentColor; background: none; color: Highlight; forced-color-adjust: none; }
  html.docs .dd-seg { border: 1px solid CanvasText; }
  html.docs .dd-seg span { border: 1px solid transparent; }
  html.docs .dd-seg input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  html.docs .dd-seg input:focus-visible + span { outline: 2px solid CanvasText; }
  html.docs .dd-frame { padding: 0; border: 2px solid CanvasText; clip-path: none; }
  html.docs .dd-art { filter: none; }
  html.docs .ps-fig img { border: 1px solid CanvasText; }
  html.docs .ps-toc a { border-left: 2px solid GrayText; }
  html.docs .ps-toc a[aria-current="location"] { border-left: 4px solid Highlight; }
  html.docs .ps-doc ol > li::before { border: 1px solid CanvasText; }
  html.docs .ps-doc .note, html.docs .se-how { border: 1px solid CanvasText; border-left-width: 4px; }
  html.docs .ps-doc code, html.docs .ps-table code, html.docs kbd { border: 1px solid CanvasText; }
  html.docs .dd-code, html.docs .ps-table, html.docs .se-find, html.docs .se-jump a { border: 1px solid CanvasText; }
  html.docs .sw { forced-color-adjust: none; border: 1px solid CanvasText; }
  html.docs .bm-chip { border: 1px solid CanvasText; }
  html.docs[data-product="poolkit"] .opener .run > :first-child::before { display: none; }
}

@media print {
  html.docs, html.docs body, html.docs .sec.white, html.docs .opener { background: #FFFFFF; color: #000000; }
  html.docs .dd-theme, html.docs .ps-toc, html.docs .dd-copybtn { display: none !important; }
}
