/* Widget style (Account): Default or Glass, each in four amounts (Default 0 / 50 / 75 / 100 %, Glass 25 / 50 / 75 / 100 %). JS/profile-glass.js sets data-ws ("default" | "glass") and
   data-wl (Default: 0 | 50 | 75 | 100; Glass: 25 | 50 | 75 | 100) on <html>; with neither set (an account that never chose) nothing here applies and the cards stay exactly as they were.
   --wt is the amount as a fraction. Plain CSS: no script, no filter, no sampling. */
html[data-wl="0"]{--wt:0}html[data-wl="25"]{--wt:.25}html[data-wl="50"]{--wt:.5}html[data-wl="75"]{--wt:.75}html[data-wl="100"]{--wt:1}

/* BLURRED (the "default" style): the same dark cards, much less solid and more blurred behind. 0 %: untouched. 50 %: 30 % opaque, 40 px blur;
   75 %: 12 % opaque, 56 px; 100 %: 4 % opaque, 72 px (the owner's steps, 23 October 2026: each step moved one up and a new, clearest 100 added) */
html[data-ws="default"][data-wl="50"]{--da:.3;--db:28px}
html[data-ws="default"][data-wl="75"]{--da:.12;--db:28px}
html[data-ws="default"][data-wl="100"]{--da:.04;--db:28px}
html[data-ws="default"]:not([data-wl="0"])[data-wl] .w{
 --wbf:blur(var(--db));--wbg:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.02)),rgba(11,15,20,var(--da));
 --win:inset 0 1px 0 rgba(255,255,255,.1);--wsh:0 24px 60px rgba(0,0,0,.35);--wtx:var(--wbg);   /* the card's own surface, for the toolbar-safe layer at the end of this file */
 background:var(--wbg);-webkit-backdrop-filter:var(--wbf);backdrop-filter:var(--wbf)}

/* GLASS: 100 % is the windows' own glass ("Modal Glass") exactly; lower amounts are the solid card with that glass faded in */
html[data-ws="glass"][data-wl] .w{position:relative;
 --wbf:blur(calc(8px + 20px*var(--wt))) saturate(calc(1 + .8*var(--wt)));
 --wbg:linear-gradient(160deg,rgba(255,255,255,calc(.075 + .125*var(--wt))) 0%,rgba(255,255,255,calc(.02 + .06*var(--wt))) 45%,rgba(255,255,255,calc(.03 + .1*var(--wt))) 100%),rgba(11,15,20,calc(1 - var(--wt)));
 --win:inset 0 1px 0 rgba(255,255,255,calc(.1 + .55*var(--wt))),inset 0 0 0 1px rgba(255,255,255,calc(.12*var(--wt)));
 --wsh:0 calc(24px + 6px*var(--wt)) calc(60px + 30px*var(--wt)) rgba(0,0,0,calc(.35 + .15*var(--wt)));
 --wtx:radial-gradient(120% 55% at 18% -8%,rgba(255,255,255,calc(.3*var(--wt))),transparent 58%),var(--wbg);   /* the card's surface with its highlight (the ::before below), for the chart's tooltip at the end of this file */
 background:var(--wbg);border:1px solid rgba(255,255,255,calc(.1 + .3*var(--wt)));
 -webkit-backdrop-filter:var(--wbf);backdrop-filter:var(--wbf);box-shadow:var(--wsh),var(--win)}
html[data-ws="glass"][data-wl] .w::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(120% 55% at 18% -8%,rgba(255,255,255,calc(.3*var(--wt))),transparent 58%)}
html[data-ws="glass"][data-wl] .acct .danger{border-color:rgba(255,90,106,.3)}

/* the phone layout's full-bleed chart stays bare in every style (same switch as the layout's: phones and touch tablets up to 1399) */
@media (max-width:850px), (pointer:coarse) and (max-width:1399px){html[data-ws]:not([data-wl="0"])[data-wl] .w.hero{--wbf:none;--wbg:none;--win:none;--wsh:none;--wtx:none;--wbw:0px;background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}html[data-ws]:not([data-wl="0"])[data-wl] .w.hero::before{display:none}}
@media (prefers-reduced-transparency:reduce){html[data-ws]:not([data-wl="0"])[data-wl] .w{--wbf:none;--wbg:#0f141a;--wtx:none;background:#0f141a;-webkit-backdrop-filter:none;backdrop-filter:none}html[data-ws]:not([data-wl="0"])[data-wl] .w::before{display:none}}

/* Chrome's own toolbar never tints a card (the owner's videos, 23 October and 1 November 2026: the red tab theme showed at the top of a card
   scrolled under it). Chrome blurs what lies under the card's own box, and the part of a card scrolled above the window lies under the browser's
   tab strip and address bar, so their colour came into the card (measured in a red-themed Chromium: (180,90,114) at the edge instead of grey).
   A filter, then a clip-path on the whole page fixed it and drew ghost rectangles (see "Never a glitch" in CLAUDE.md), so neither is used.
   Instead, in Chromium (JS/profile-glass.js; Safari and Firefox keep the card's own blur), a card that scrolls with the page gets an <rc-bk>
   layer under its content: its ::before carries the blur and is sticky at the top of the window, so the blurred box never reaches above the
   page; its ::after paints the card's own fill and inner rim over the blur. The card keeps its border and drop shadow and stays a stacking
   context, as its blur made it, so a pressed card (Trophy Road shrinks) looks the same. Nothing here applies at Blurred 0 %. */
html.wbk-on[data-ws]:not([data-wl="0"])[data-wl] .app{overflow:clip}   /* hidden made it the sticky layer's scroller; clip draws the same */
html[data-ws]:not([data-wl="0"])[data-wl] .w.wbk{isolation:isolate;background:none;box-shadow:var(--wsh);-webkit-backdrop-filter:none;backdrop-filter:none}   /* isolation, not a z-index: a page's own z-index on a card still applies */
.w.ms-chat{--wbk:off}   /* never lifted: sized to the window it never reaches above it, on a phone it is a bare full-screen sheet, and its header's own blur must keep seeing only the card (as it did) */
html[data-ws]:not([data-wl="0"])[data-wl] .w.wbk-c{overflow:clip;overflow-clip-margin:var(--wbw,1px)}   /* a card that only clips its content (Friends, the chat list); the margin lets the layer reach under its border */
.w>rc-bk{position:absolute;inset:calc(-1*var(--wbw,1px));z-index:-1;overflow:clip;border-radius:inherit;border-color:inherit;pointer-events:none}   /* the card's border colour (hover, Delete account) passes to ::after */
.w>rc-bk>rc-bk-in{position:absolute;left:0;right:0;top:0;height:200%;display:block}   /* twice the card: the room the blur slides down in */
.w>rc-bk>rc-bk-in::before{content:"";display:block;position:sticky;top:calc(-1*var(--wsl,0px));height:50%}   /* --wsl: how far the hand scroll has slid the page */
html.rc-pin .w>rc-bk>rc-bk-in::before{position:relative;top:var(--wpin,0px)}   /* a window open pins the page, and a sticky blur in a fixed body read the toolbar again: placed where it stuck instead (--wpin, JS/profile-glass.js) */
html[data-ws]:not([data-wl="0"])[data-wl] .w>rc-bk>rc-bk-in::before{-webkit-backdrop-filter:var(--wbf);backdrop-filter:var(--wbf)}
html[data-ws]:not([data-wl="0"])[data-wl] .w>rc-bk::after{content:"";position:absolute;inset:0;border:var(--wbw,1px) solid;border-color:inherit;border-radius:inherit;background:var(--wbg);box-shadow:var(--win)}
/* the chart's tooltip has its own blur. While the card blurred for itself, that blur saw only the card, so the card's surface came into the
   tooltip a second time and it read lighter. A lifted card no longer limits it, so --wtx paints that second surface under the tooltip's
   own white, sized to the card and placed where the tooltip sits in it (--tcs and --tcp, set by JS/profile.js as it moves). The owner kept
   the original look (1 November 2026). */
html[data-ws]:not([data-wl="0"])[data-wl] .w.wbk .tip{background:linear-gradient(rgba(255,255,255,.14),rgba(255,255,255,.14)),var(--wtx,none);background-size:var(--tcs,100% 100%);background-position:var(--tcp,0 0)}

