
/* ---- banner: catalog css + a texture layer + shared ambient light (vignette, micro-grid) ---- */
.pl-banner { position: absolute; inset: 0; overflow: hidden; }
.pl-banner > i { position: absolute; inset: 0; pointer-events: none; }
.pl-banner .pl-amb { background:
    radial-gradient(120% 90% at 50% 120%, rgba(0,0,0,.55), transparent 60%),
    radial-gradient(60% 120% at 0% 50%, rgba(0,0,0,.45), transparent 70%),
    radial-gradient(60% 120% at 100% 50%, rgba(0,0,0,.45), transparent 70%),
    radial-gradient(70% 80% at 80% -10%, rgba(242,207,107,.22), transparent 60%),
    repeating-linear-gradient(135deg, rgba(212,175,55,.05) 0 1px, transparent 1px 14px); }
.pl-banner .pl-edge { box-shadow: inset 0 0 0 1px rgba(242,207,107,.18), inset 0 0 60px rgba(212,175,55,.12); }
.pl-tx-stars { background:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 68%, #c7d2fe, transparent),
    radial-gradient(1.5px 1.5px at 47% 30%, #fff, transparent), radial-gradient(1px 1px at 63% 76%, #e0e7ff, transparent),
    radial-gradient(1px 1px at 78% 18%, #fff, transparent), radial-gradient(1.5px 1.5px at 90% 58%, #c7d2fe, transparent),
    radial-gradient(1px 1px at 6% 80%, #fff, transparent), radial-gradient(1px 1px at 36% 12%, #fff, transparent),
    radial-gradient(60% 40% at 65% 40%, rgba(129,140,248,.18), transparent 70%); }
/* Ocean Drive (texture ocean; oceanHTML): the scene is one SVG; live, three layers move - the sun's road on the water
   shimmers (a slow stretch and fade), the halo breathes, and the aqua bar of one hotel's sign buzzes now and then.
   Reduce flashing: the sign burns steady. Low graphics / calm motion: all still. */
.pl-od { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-od svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-od > b { position: absolute; inset: 0; display: block; }
.pl-od-halo { opacity: .45; }
.pl-od-road { transform-origin: 57.5% 90%; }
.pl-od.live .pl-od-halo { animation: pl-od-halo 7s ease-in-out infinite; }
.pl-od.live .pl-od-road { animation: pl-od-road 3.8s ease-in-out infinite; }
.pl-od.live .pl-od-sign { animation: pl-od-sign 6s steps(1) infinite; }
@keyframes pl-od-halo { 0%, 100% { opacity: .35; } 50% { opacity: .75; } }
@keyframes pl-od-road { 0%, 100% { opacity: 1; transform: scaleX(1); } 50% { opacity: .6; transform: scaleX(1.08); } }
@keyframes pl-od-sign { 0%, 100% { opacity: 1; } 71% { opacity: .3; } 72% { opacity: 1; } 74% { opacity: .5; } 75% { opacity: 1; } }
html.calm-flash .pl-od.live .pl-od-sign { animation: none; }
/* Royal Velvet Gold (texture stage, anim banner-thread; Royal Velvet, static/js/material_art.js): the royal box's stage -
   a back wall of burgundy velvet woven with the crown-and-rose damask, drapes of the same velvet gathered to gold rope
   tie-backs at both sides, a swagged valance fringed in gold along the top with a gilded crown cartouche at its centre,
   footlights warming the boards. Each part is its own layer, sized to the banner (the drapes and valance are fixed in
   px against any width, so a profile strip and the Store's tall sheet both read as a stage). Live: the drapes sway a
   hair, the spotlight wanders the stage and the old gold thread combs the pile. Calm motion / low graphics: still. */
.pl-st { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-st > b, .pl-st > i { position: absolute; display: block; }
.pl-st svg { display: block; width: 100%; height: 100%; }
.pl-st-wall { inset: 0; }
.pl-st-spot { left: 22%; right: 22%; top: 8%; bottom: -30%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,228,170,.26), rgba(255,200,140,.1) 55%, transparent); }
.pl-st-foot { left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(to top, rgba(255,190,110,.22), transparent); }
.pl-st-floor { left: 0; right: 0; bottom: 0; height: max(5px, 6%);
    background: linear-gradient(#f6d77a, #8a5a12 40%, #2a1405 41%, #140904); box-shadow: 0 -1px 0 rgba(0,0,0,.5); }
.pl-st-dr { top: 0; bottom: 0; width: clamp(46px, 17%, 150px); transform-origin: 50% 0; }
.pl-st-dr.l { left: 0; } .pl-st-dr.r { right: 0; transform: scaleX(-1); }
.pl-st-tas { position: absolute; display: block; left: 26%; top: 60%; width: clamp(9px, 34%, 26px); aspect-ratio: .5; }
.pl-st-val { left: 0; right: 0; top: 0; height: clamp(18px, 22%, 44px); background-repeat: repeat-x; background-size: auto 100%; }
.pl-st-crest { left: 50%; top: 0; height: clamp(22px, 30%, 58px); aspect-ratio: 1.7; transform: translateX(-50%); }
.pl-st.live .pl-st-dr.l { animation: pl-st-sway 9s ease-in-out infinite; }
.pl-st.live .pl-st-dr.r { animation: pl-st-sway-r 11s ease-in-out infinite; }
.pl-st.live .pl-st-spot { animation: pl-st-spot 16s ease-in-out infinite alternate; }
@keyframes pl-st-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(.7deg); } }
@keyframes pl-st-sway-r { 0%, 100% { transform: scaleX(-1) rotate(0); } 50% { transform: scaleX(-1) rotate(.6deg); } }
@keyframes pl-st-spot { from { transform: translateX(-14%); opacity: .8; } to { transform: translateX(14%); opacity: 1; } }
html.calm-motion .pl-st > *, html.gfx-low .pl-st > * { animation: none !important; }
/* Emerald High Stakes (texture cardroom; Emerald Club, static/js/material_art.js): the card room after hours - green
   wool baize (its twill) under a banker's lamp whose warm pool falls on a fanned royal flush and two stacks of clay
   chips, the gold betting arc beyond and a mahogany rail with its brass strip along the front. Static (Rare). */
.pl-cr { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-cr > b, .pl-cr > i { position: absolute; display: block; }
.pl-cr-cloth { inset: 0; background:
    radial-gradient(160% 90% at 50% 150%, transparent 58%, rgba(242,207,107,.5) 58.4%, transparent 59%),
    repeating-linear-gradient(52deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-38deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px); }
.pl-cr-pool { left: 30%; right: 6%; top: -20%; bottom: -40%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,226,150,.34), rgba(255,214,130,.12) 55%, transparent); }
.pl-cr-props { bottom: max(6px, 10%); left: 60%; height: min(82%, 170px); max-width: 94%; aspect-ratio: 2.8; transform: translateX(-50%); }
.pl-cr-props svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pl-cr-rail { left: 0; right: 0; bottom: 0; height: max(7px, 10%);
    background: linear-gradient(#f6e2b4, #b08d57 18%, #5a4119 30%, #4a1e10 34%, #2a0f07 75%, #160703);
    box-shadow: 0 -2px 6px rgba(0,0,0,.5); }
/* Open All Night (texture diner; Fifties Diner, static/js/diner_art.js): a stainless-steel diner on the corner at night -
   one 1000 x 300 slice box (the street at y 236): the long fluted car with its cherry band and its row of lit windows, the
   EAT sign on its roof, a checkerboard step at the door, a streetlamp, and the wet street mirroring the windows. The sky is
   the catalog css. Static (Rare). */
.pl-dn { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-dn svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Cloud Town (texture cloudtown; Pastel Pop, static/js/pastel_art.js): a town in the sky on a sunny afternoon - the four-
   colour rainbow arching over the middle with a sleepy cloud at each foot, a cloud dozing on the left, the blob friends
   peeking out of a cloud on the right to wave, and a bank of cream cloud along the horizon. The sky itself is the catalog
   css; every prop keeps clear of the corners where the hero's chips and buttons sit. A light banner, so the shared
   ambient vignette is turned down over it (it would grey the cream). Static (Rare). */
.pl-ct { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-ct > b { position: absolute; display: block; }
.pl-ct svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pl-ct-sun { inset: 0; background: radial-gradient(60% 90% at 14% -10%, rgba(255,246,208,.85), transparent 60%),
    radial-gradient(40% 70% at 96% 0%, rgba(236,230,255,.6), transparent 70%); }
.pl-ct-bank { left: 0; right: 0; bottom: 0; height: clamp(18px, 26%, 70px); background-repeat: repeat-x; background-size: auto 100%; background-position: 30% 100%; }
.pl-ct-bow { left: 56%; bottom: max(4px, 6%); height: min(92%, 240px); aspect-ratio: 2.05; transform: translateX(-50%); }
.pl-ct-doze { left: 17%; top: 42%; height: min(34%, 74px); aspect-ratio: 1.75; transform: translateX(-50%); }
.pl-ct-pals { left: 84%; bottom: max(2px, 3%); height: min(62%, 150px); aspect-ratio: 1.6; transform: translateX(-50%); }
.pl-ct ~ .pl-amb { opacity: .28; }
/* Beach Day (texture beachday; Summer Beach, static/js/beach_art.js): a beach at high noon - the sky, the turquoise sea and
   the sand are the catalog css; over them the surf's white lines along the waterline (a tile repeated along any width), a
   row of coral-and-cream umbrellas planted along the shore on the right, a sandcastle with a beach ball by it on the left,
   two gulls far out and the noon glare up in the sky (no sun disc: the sun is the Eclipse line's). Every prop keeps clear
   of the corners where the hero's chips and buttons sit. A light banner, so the shared ambient vignette is turned down
   over it. Static (Rare). */
.pl-bd { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-bd > b { position: absolute; display: block; }
.pl-bd svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pl-bd-glare { inset: 0; background: radial-gradient(50% 80% at 30% -20%, rgba(255,253,236,.85), transparent 62%),
    linear-gradient(180deg, transparent 52%, rgba(255,255,255,.18) 57%, transparent 60%); }
.pl-bd-surf { left: 0; right: 0; top: 56%; height: 22%; background-repeat: repeat-x; background-size: auto 100%; background-position: 20% 0; }
.pl-bd-shade { left: 74%; bottom: max(4px, 5%); height: min(66%, 160px); aspect-ratio: 2.3; transform: translateX(-50%); }
.pl-bd-play { left: 21%; bottom: max(2px, 4%); height: min(42%, 100px); aspect-ratio: 1.7; transform: translateX(-50%); }
.pl-bd-gulls { left: 50%; top: 14%; height: min(16%, 36px); aspect-ratio: 3; transform: translateX(-50%); }
.pl-bd ~ .pl-amb { opacity: .3; }
/* The Star Atlas (texture atlas; atlasHTML): the engraved chart is one SVG over the lapis page; live, the sky wheels a few
   degrees about the pole below the banner and back, and the brightest stars twinkle. Calm motion / low graphics: still. */
.pl-sa { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-sa svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-sa > b { position: absolute; inset: 0; display: block; }
.pl-sa-sky { transform-origin: 50% 330%; }
.pl-sa.live .pl-sa-sky { animation: pl-sa-wheel 48s ease-in-out infinite alternate; }
.pl-sa.live .pl-sa-tw { animation: pl-sa-tw 4.6s ease-in-out infinite; }
@keyframes pl-sa-wheel { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
@keyframes pl-sa-tw { 0%, 100% { opacity: 1; } 40% { opacity: .35; } 70% { opacity: .85; } }
html.calm-motion .pl-sa > b, html.gfx-low .pl-sa > b { animation: none !important; }
/* Zodiac Ring (avatar ring zodiac, Celestial): a brass band round the crest engraved with the twelve signs and a star
   between each, turning once a minute; a degree scale on the inner rim, a gold star clasp at the foot, a soft gold glow.
   Every part is a .pl-ring, so row / inline (np-small) crests keep only the rim. */
.pl-ring.pl-zr svg, .pl-ring.pl-zr-turn svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pl-ring.pl-zr svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }
.pl-ring.pl-zr-turn { animation: pl-spin 60s linear infinite; }
html.calm-motion .pl-ring.pl-zr-turn, html.gfx-low .pl-ring.pl-zr-turn { animation: none !important; }
html.calm-motion .pl-od > b, html.gfx-low .pl-od > b { animation: none !important; }
/* The house banners (Part 5: obsidianHTML, carbonHTML, loungeHTML, vaultHTML): one sliced SVG each, the pieces that must
   stay whole in boxes of their own. */
.pl-hb { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-hb svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-hb > b { position: absolute; display: block; }
.pl-ob-line { left: 0; right: 0; bottom: max(5px, 6%); height: 1.5px; background: linear-gradient(90deg, #5a3a08, #f2cf6b 22%, #fff6d6 30%, #b9821f 48%, #f2cf6b 74%, #5a3a08);
    box-shadow: 0 1px 0 rgba(0,0,0,.7), 0 0 6px rgba(242,207,107,.35); }
.pl-cf-trim { left: 0; right: 0; bottom: 0; height: max(8px, 8%); border-top: 1px solid rgba(255,255,255,.55); box-shadow: 0 -2px 6px rgba(0,0,0,.6);
    background: radial-gradient(circle at 2.2% 50%, #eef1f5 0 1.5px, #59616b 2.2px 3.4px, rgba(0,0,0,.6) 3.8px, transparent 4.4px),
        radial-gradient(circle at 97.8% 50%, #eef1f5 0 1.5px, #59616b 2.2px 3.4px, rgba(0,0,0,.6) 3.8px, transparent 4.4px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 3px, rgba(0,0,0,.1) 3px 4px, transparent 4px 7px),
        linear-gradient(180deg, #f4f6f8, #b3bac3 35%, #6b737c 80%, #3a4047); }
.pl-lg-wall { inset: 0; }
.pl-lg-glow { top: -14%; width: min(30%, 360px); height: 92%; transform: translateX(-50%);
    background: radial-gradient(50% 50% at 50% 50%, rgba(255,196,110,.42), rgba(255,160,60,.12) 55%, transparent 72%); }
.pl-lg-lamp { top: 6%; height: 44%; aspect-ratio: .6; transform: translateX(-50%); }
.pl-lg-sofa { left: 0; right: 0; bottom: 0; height: 36%; }
.pl-lg-table { right: 6%; bottom: 3%; height: min(64%, 190px); aspect-ratio: 1.33; }
.pl-vd-wall { inset: 0; }
.pl-vd-door { left: 58%; top: 50%; height: 122%; aspect-ratio: 1; transform: translate(-50%, -50%); max-width: 82%; }
.pl-vd-door svg { overflow: visible; filter: drop-shadow(0 6px 10px rgba(0,0,0,.7)); }
/* The Vault Door (Epic, anim banner-vault): a 14 s cycle - the dial is worked to its combination, the handwheel turns,
   the bolts draw back, warm light shows round the seam and spills out, then it all locks again. Transform / opacity only.
   Calm motion / low graphics: shut and still. */
.pl-vd .vd-dial, .pl-vd .vd-wheel { transform-box: fill-box; transform-origin: 50% 50%; }
.pl-vd .vd-seam, .pl-vd .vd-spill { opacity: 0; }
.pl-vd.live .vd-dial { animation: pl-vd-dial 14s ease-in-out infinite; }
.pl-vd.live .vd-wheel { animation: pl-vd-wheel 14s ease-in-out infinite; }
.pl-vd.live .vd-bolt { animation: pl-vd-bolt 14s ease-in-out infinite; }
.pl-vd.live .vd-seam { animation: pl-vd-seam 14s ease-in-out infinite; }
.pl-vd.live .vd-spill { animation: pl-vd-spill 14s ease-in-out infinite; }
@keyframes pl-vd-dial { 0%, 3% { transform: rotate(0); } 9% { transform: rotate(-230deg); } 14% { transform: rotate(-95deg); } 19%, 84% { transform: rotate(-160deg); } 94%, 100% { transform: rotate(0); } }
@keyframes pl-vd-wheel { 0%, 21% { transform: rotate(0); } 31%, 80% { transform: rotate(140deg); } 90%, 100% { transform: rotate(0); } }
@keyframes pl-vd-bolt { 0%, 31% { transform: translateY(0); } 41%, 72% { transform: translateY(15px); } 81%, 100% { transform: translateY(0); } }
@keyframes pl-vd-seam { 0%, 40% { opacity: 0; } 50% { opacity: 1; } 62% { opacity: .75; } 73%, 100% { opacity: 0; } }
@keyframes pl-vd-spill { 0%, 42% { opacity: 0; } 54% { opacity: .9; } 64% { opacity: .6; } 74%, 100% { opacity: 0; } }
html.calm-motion .pl-vd .vd-dial, html.calm-motion .pl-vd .vd-wheel, html.calm-motion .pl-vd .vd-bolt, html.calm-motion .pl-vd .vd-seam, html.calm-motion .pl-vd .vd-spill,
    html.gfx-low .pl-vd .vd-dial, html.gfx-low .pl-vd .vd-wheel, html.gfx-low .pl-vd .vd-bolt, html.gfx-low .pl-vd .vd-seam, html.gfx-low .pl-vd .vd-spill { animation: none !important; }
html.gfx-low .pl-vd-door svg { filter: none; }
.pl-star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #c7d2fe;
    animation: pl-twinkle 3.2s ease-in-out infinite, pl-drift 22s linear infinite; }
@keyframes pl-twinkle { 50% { opacity: .15; } }
@keyframes pl-drift { to { transform: translateX(-60px); } }
/* Royal Velvet Gold (anim banner-thread): a slow thread of gold light combs through the pile, then runs the footlights. */
.pl-banner > .pl-thread { overflow: hidden; }
.pl-thread::before, .pl-thread::after { content: ''; position: absolute; pointer-events: none; }
.pl-thread::before { top: 0; bottom: 0; left: -40%; width: 40%;
    background: linear-gradient(100deg, transparent 20%, rgba(242,207,107,.09) 42%, rgba(255,241,176,.2) 50%, rgba(242,207,107,.09) 58%, transparent 80%);
    animation: pl-thread-a 12s ease-in-out infinite; }
.pl-thread::after { bottom: 0; height: 7px; left: -16%; width: 16%;
    background: linear-gradient(90deg, transparent, rgba(255,250,220,.95), transparent);
    animation: pl-thread-b 12s ease-in-out infinite; }
@keyframes pl-thread-a { 0% { transform: translateX(0); } 55%, 100% { transform: translateX(350%); } }
@keyframes pl-thread-b { 0%, 40% { transform: translateX(0); } 80%, 100% { transform: translateX(725%); } }

/* ---- Heraldic Sigil plates (sigilHTML): theme = --sg-* vars, shape = radius or clip-path ---- */
.pl-sg { position: relative; flex: none; display: inline-grid; place-items: center; width: var(--sgz); height: var(--sgz); box-sizing: border-box;
    background: var(--sg-bg); color: var(--sg-ink); box-shadow: inset 0 0 calc(var(--sgz) * .2) var(--sg-glow); border: max(1px, calc(var(--sgz) * .03)) solid var(--sg-edge);
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: calc(var(--sgz) * .44); line-height: 1; overflow: hidden; vertical-align: middle; }
.pl-sg > svg.pl-sg-ico { width: 54%; height: 54%; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0,0,0,.85)) drop-shadow(0 0 3px var(--sg-halo)); }
.pl-sg > svg.pl-sg-edge { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pl-sg > b { font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.pl-sg.s-circle { border-radius: 50%; }
.pl-sg.s-rounded_square { border-radius: 24%; }
.pl-sg.s-hexagon, .pl-sg.s-octagon { border: 0; }
.pl-sg.s-hexagon { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.pl-sg.s-octagon { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.pl-sg.t-obsidian { --sg-bg: radial-gradient(ellipse at top, #3f3f46, #171717 55%, #000); --sg-ink: #f59e0b; --sg-glow: rgba(245,158,11,.25); --sg-edge: rgba(245,158,11,.45); --sg-halo: rgba(245,158,11,.45); }
.pl-sg.t-imperial_gold { --sg-bg: radial-gradient(ellipse at top, #d97706, #451a03 58%, #0a0a0a); --sg-ink: #fef08a; --sg-glow: rgba(254,240,138,.3); --sg-edge: rgba(252,211,77,.65); --sg-halo: rgba(254,240,138,.5); }
.pl-sg.t-velvet_emerald { --sg-bg: radial-gradient(ellipse at top, #047857, #022c22 58%, #000); --sg-ink: #fbbf24; --sg-glow: rgba(16,185,129,.3); --sg-edge: rgba(16,185,129,.5); --sg-halo: rgba(251,191,36,.4); }
.pl-sg.t-royal_burgundy { --sg-bg: radial-gradient(ellipse at top, #9f1239, #1c0a0e 58%, #000); --sg-ink: #fcd34d; --sg-glow: rgba(244,63,94,.3); --sg-edge: rgba(244,63,94,.5); --sg-halo: rgba(252,211,77,.4); }
.pl-sg.t-midnight_sapphire { --sg-bg: radial-gradient(ellipse at top, #3730a3, #0b1024 58%, #000); --sg-ink: #38bdf8; --sg-glow: rgba(56,189,248,.28); --sg-edge: rgba(34,211,238,.5); --sg-halo: rgba(56,189,248,.5); }
.pl-sg.t-carbon { --sg-bg: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 4px), radial-gradient(circle at center, #2e2e2e, #171717 60%, #0a0a0a); --sg-ink: #e4e4e7; --sg-glow: rgba(228,228,231,.15); --sg-edge: rgba(115,115,115,.6); --sg-halo: rgba(228,228,231,.3); }
.pl-sg.t-initial { --sg-bg: radial-gradient(circle at 35% 30%, #3f3f46, #09090b); --sg-ink: #f6d77a; --sg-glow: transparent; --sg-edge: rgba(242,207,107,.45); --sg-halo: transparent; }
/* Inside an avatar frame (avatarHTML, or any position:relative .pl-sg-frame): a round plate fills the frame; other shapes sit in it as a badge. */
.pl-av-core > .pl-sg, .pl-sg-frame > .pl-sg { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 50%; }
.pl-av-core > .pl-sg:not(.s-circle), .pl-sg-frame > .pl-sg:not(.s-circle) { inset: 11%; width: 78%; height: 78%; }
.pl-av-core > .pl-sg.s-rounded_square, .pl-sg-frame > .pl-sg.s-rounded_square { border-radius: 24%; border: max(1px, calc(var(--sgz) * .03)) solid var(--sg-edge); }
.pl-av-core > .pl-sg.s-circle > svg.pl-sg-ico, .pl-sg-frame > .pl-sg.s-circle > svg.pl-sg-ico { width: 50%; height: 50%; }

/* ---- avatar ---- */
.pl-av { position: relative; flex: none; width: var(--sz); height: var(--sz); }
.pl-av-core { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: calc(var(--sz) * .42); color: #f6d77a;
    background: radial-gradient(circle at 35% 30%, #3f3f46, #09090b); }
.pl-ring { position: absolute; inset: calc(var(--sz) * -.14); pointer-events: none; }
/* Diamond Eternity (Legendary, ring diamond; diamondSVG): twenty brilliants in a white-gold band. The light runs round the
   stones one by one (.dm-f), spectral fire pops off them (.pl-dm-fire b); hovered, every stone flares at once (.dm-all)
   and fire bursts outward (.pl-dm-burst b) with a chime (RING_SOUNDS). All opacity / transform. Reduce flashing: the run
   at half strength, the hover glow soft and no burst. Calm motion / low graphics: still, no fire. */
.pl-ring-diamond svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)) drop-shadow(0 0 4px rgba(186,230,253,.35)); }
.pl-ring-diamond .dm-f { opacity: 0; animation: pl-dm-run 3s linear infinite; }
@keyframes pl-dm-run { 0%, 9%, 100% { opacity: 0; } 3% { opacity: .95; } }
.pl-ring-diamond .dm-all { opacity: 0; }
.pl-av:hover .pl-ring-diamond .dm-all { animation: pl-dm-all 1.1s ease-out 1; }
@keyframes pl-dm-all { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
.pl-dm-fire b, .pl-dm-burst b { position: absolute; width: max(3px, calc(var(--sz) * .075)); height: max(3px, calc(var(--sz) * .075)); margin: calc(var(--sz) * -.0375);
    background: var(--c); opacity: 0; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.pl-dm-fire b { animation: pl-dm-fire 2.6s ease-out var(--dl) infinite; }
@keyframes pl-dm-fire { 0%, 62%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 70% { opacity: 1; transform: scale(1.25) rotate(20deg); } 84% { opacity: 0; transform: scale(.4) rotate(45deg); } }
.pl-av:hover .pl-dm-burst b { animation: pl-dm-burst .9s ease-out 1; }
@keyframes pl-dm-burst { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: 1; transform: translate(0, 0) scale(1.3); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3) rotate(60deg); } }
html.calm-flash .pl-ring-diamond .dm-f { animation-name: pl-dm-run-soft; }
@keyframes pl-dm-run-soft { 0%, 12%, 100% { opacity: 0; } 5% { opacity: .45; } }
html.calm-flash .pl-av:hover .pl-ring-diamond .dm-all { animation: pl-dm-all-soft 1.6s ease-in-out 1; }
@keyframes pl-dm-all-soft { 0%, 100% { opacity: 0; } 45% { opacity: .35; } }
html.calm-flash .pl-dm-burst, html.calm-flash .pl-dm-fire { display: none; }
html.calm-motion .pl-ring-diamond .dm-f, html.calm-motion .pl-ring-diamond .dm-all, html.gfx-low .pl-ring-diamond .dm-f { animation: none !important; opacity: 0; }
html.calm-motion .pl-dm-fire, html.calm-motion .pl-dm-burst, html.gfx-low .pl-dm-fire, html.gfx-low .pl-dm-burst { display: none; }
/* Brushed Steel (the free ring, steelSVG) and Platinum Filigree (Rare, filigreeSVG): static SVG bands. */
.pl-ring-steel svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
/* Victor's Laurel (Epic; Royal Velvet): a gilded wreath of veined leaves and berries, open at the top round a little royal
   crown, its two branches tied under the crest with a burgundy velvet bow (its motion: below, with the Legendary rings). */
.pl-ring-laurel svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0,0,0,.7)); }
/* Brushed Brass (Rare, static; Emerald Club): a brass band turned on the lathe (fine circular grain catching the light
   in two broad streaks), milled at its outer edge, a channel of baize-green enamel round it, fixed with eight slotted screws
   and a brass escutcheon enamelled with a club at the top. */
.pl-ring-brass svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 2px rgba(0,0,0,.75)); }
/* Counter Stool (Rare, static; Fifties Diner, static/js/diner_art.js): the crest set in the top of a diner counter stool -
   a ring of cherry-red vinyl tufted into twelve puffs with a button between each, a cream piping on both edges, inside a
   ribbed chrome band with six slotted screws, polished to a mirror. */
.pl-ring-stool svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 2px rgba(30,4,10,.7)); }
/* Frosting (Rare, static; Pastel Pop, static/js/pastel_art.js): strawberry buttercream piped round the crest as a ring of
   shell swirls, each with the ridges the star nozzle leaves, a bead of cream icing along the inner edge, rainbow sprinkles
   scattered over the swirls and three sugar pearls. */
.pl-ring-frosting svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 2px rgba(60,20,40,.6)); }
/* Life Ring (Rare, static; Summer Beach, static/js/beach_art.js): a lifeguard's ring buoy round the crest - a fat foam
   ring in coral and cream quarters, lit along its inner curve and shaded along its outer one so it reads round, four rope
   clips wrapped round it, and a white grab line looped round the outside between them, sagging a little. */
.pl-ring-lifebuoy svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 2px rgba(8,50,60,.6)); }
/* Lasso (Epic; Frontier Saloon, static/js/frontier_art.js): a loop of twisted hemp rope thrown round the crest, running
   through the knotted honda at its foot with the rope's tail hanging free. Live, the loop pays out slowly through the
   honda (the rope's twist turns round the crest: .ls-run rotates). Calm motion / low graphics: still. */
.pl-ring-lasso svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 2px rgba(20,8,2,.7)); }
.pl-ring-lasso .ls-run { transform-box: view-box; transform-origin: 50px 50px; animation: pl-spin 16s linear infinite; }
html.calm-motion .pl-ring-lasso .ls-run, html.gfx-low .pl-ring-lasso .ls-run { animation: none; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
/* Knit Scarf (Epic; Winter Lodge, static/js/lodge_art.js): a hand-knitted scarf wound once round the crest - frost-blue wool
   in Fair Isle bands (cream stripes, a row of snow stars), its two fringed ends crossed and hanging at the foot. Live, snow
   drifts down past it (.sc-snow, two tiles of flakes sliding down in turn) and the fringe stirs (.sc-fringe). Calm motion /
   low graphics: still. */
.pl-ring-scarf svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 2px rgba(12,22,34,.65)); }
.pl-ring-scarf .sc-fringe { transform-box: fill-box; transform-origin: 50% 0; animation: pl-sc-fringe 3.8s ease-in-out infinite alternate; }
.pl-ring-scarf .sc-fringe.b { animation-delay: -1.6s; }
@keyframes pl-sc-fringe { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
.pl-ring-scarf .sc-snow { animation: pl-sc-snow 6s linear infinite; }
.pl-ring-scarf .sc-snow.b { animation-delay: -3s; }
@keyframes pl-sc-snow { 0% { transform: translateY(-40px); opacity: 0; } 15%, 80% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
html.calm-motion .pl-ring-scarf :is(.sc-fringe, .sc-snow), html.gfx-low .pl-ring-scarf :is(.sc-fringe, .sc-snow) { animation: none; }
html.calm-motion .pl-ring-scarf .sc-snow.b, html.gfx-low .pl-ring-scarf .sc-snow.b { display: none; }
/* Low Orbit (Legendary; Ad Astra, static/js/mission_art.js): the crest ringed by a mission clock - a navy band ticked
   off in cream (a long tick every five), a crimson keyline and index at the top, and along the foot a world's horizon
   glowing in sunset bands with a gold star at one end. Outside it a little white capsule flies its orbit on a dashed track
   (.lo-run, once round in 22 s), puffing its thrusters (.lo-puff). Every part is a .pl-ring, so row / inline (np-small)
   crests keep only the crimson rim. Calm motion: still, the capsule parked at the upper left; low
   graphics: no puffs. */
.pl-ring-orbit svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 2px rgba(6,10,22,.7)); }
.pl-ring-orbit .lo-run { transform-box: view-box; transform-origin: 50px 50px; transform: rotate(-40deg); animation: pl-lo-run 22s linear infinite; }
@keyframes pl-lo-run { from { transform: rotate(-40deg); } to { transform: rotate(320deg); } }
.pl-ring-orbit .lo-puff { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; animation: pl-lo-puff 2.2s ease-out infinite; }
.pl-ring-orbit .lo-puff.b { animation-delay: -.7s; }
.pl-ring-orbit .lo-puff.c { animation-delay: -1.4s; }
@keyframes pl-lo-puff { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 12% { opacity: .9; } 100% { opacity: 0; transform: translate(-5px, 0) scale(1.6); } }
.pl-ring-orbit .lo-glint { animation: pl-lo-glint 5.5s ease-in-out infinite; }
@keyframes pl-lo-glint { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
html.calm-motion .pl-ring-orbit :is(.lo-run, .lo-puff, .lo-glint), html.gfx-low .pl-ring-orbit :is(.lo-run, .lo-puff, .lo-glint) { animation: none; }
html.calm-motion .pl-ring-orbit .lo-puff, html.gfx-low .pl-ring-orbit .lo-puff { display: none; }
.pl-dot { position: absolute; right: 2%; bottom: 2%; width: calc(var(--sz) * .2); height: calc(var(--sz) * .2); min-width: 10px; min-height: 10px;
    border-radius: 50%; border: 2px solid #09090b; background: #52525b; z-index: 2; }
.pl-dot.online, .pl-dot.seated { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.9); }
.pl-dot.playing { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,.9); }

.pl-presence { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 800;
    letter-spacing: .06em; white-space: nowrap; color: #a1a1aa; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.1); }
.pl-presence::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #71717a; }
.pl-presence.online, .pl-presence.seated { color: #86efac; border-color: rgba(52,211,153,.35); }
.pl-presence.online::before, .pl-presence.seated::before { background: #34d399; box-shadow: 0 0 6px #34d399; }
.pl-presence.playing { color: #fde68a; border-color: rgba(251,191,36,.4); }
.pl-presence.playing::before { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }

.pl-title { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 4px; border-radius: 999px; font-size: 11px; font-weight: 800;
    letter-spacing: .04em; color: #fde68a; background: linear-gradient(180deg, rgba(245,158,11,.2), rgba(120,53,15,.25)); border: 1px solid rgba(245,158,11,.5); white-space: nowrap; }
.pl-title i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; background: rgba(0,0,0,.4); }
/* Career badge tiers (quest_catalog badge_tier) and the Pantheon's prismatic title. */
.pl-title.t-bronze { color: #fed7aa; border-color: rgba(194,120,62,.7); background: linear-gradient(180deg, rgba(180,83,9,.28), rgba(67,20,7,.35)); }
.pl-title.t-silver { color: #f1f5f9; border-color: rgba(203,213,225,.6); background: linear-gradient(180deg, rgba(148,163,184,.25), rgba(30,41,59,.4)); }
.pl-title.t-gold { color: #fef3c7; border-color: rgba(250,204,21,.75); background: linear-gradient(180deg, rgba(234,179,8,.3), rgba(120,53,15,.35)); box-shadow: 0 0 10px rgba(250,204,21,.25); }
.pl-title.t-signature { color: #f5d0fe; border-color: rgba(232,121,249,.6); background: linear-gradient(180deg, rgba(168,85,247,.25), rgba(59,7,100,.4)); box-shadow: 0 0 12px rgba(217,70,239,.3); }
.pl-title.s-prismatic { border-color: rgba(253,230,138,.9); background: linear-gradient(180deg, rgba(120,53,15,.5), rgba(24,16,4,.7)); box-shadow: 0 0 14px rgba(253,230,138,.45); }
.pl-title.s-prismatic b { font-weight: 900; background: linear-gradient(90deg, #fde68a, #fff7d6, #f59e0b, #f0abfc, #a5f3fc, #fde68a); background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: pl-prism 4s linear infinite; }
@keyframes pl-prism { to { background-position: 300% 0; } }
html.calm-motion .pl-title.s-prismatic b { animation: none; }

/* ---- The Eclipse set (career reward: Totality) ----
   The Diamond Ring banner (texture totality, anim banner-totality; totalityHTML): an umbral sky, a black sun off-centre
   (right of the hero's name) whose ragged corona - two counter-turning petal layers and the long equatorial streamers -
   reaches across the banner, a few cold stars. Every 16 s the light comes back: the stars fade and the corona dims,
   Baily's beads string along the upper-left rim and the diamond ring strikes there (a white bead, an anamorphic streak
   across the banner, a bloom in the sky), then totality returns. All sizes follow the sun (74% of the banner's height). */
.pl-tt { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-tt > b, .pl-tt-sun > i, .pl-tt-sun > b { position: absolute; display: block; pointer-events: none; }
.pl-tt-stars { inset: 0; background:
    radial-gradient(1.6px 1.6px at 6% 30%, #fff, transparent), radial-gradient(1.3px 1.3px at 14% 72%, #c7d2fe, transparent),
    radial-gradient(2px 2px at 23% 18%, #e0e7ff, transparent), radial-gradient(1.3px 1.3px at 31% 58%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 39% 86%, #c7d2fe, transparent), radial-gradient(2.2px 2.2px at 46% 26%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 55% 68%, #e0e7ff, transparent), radial-gradient(1.4px 1.4px at 61% 12%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 93% 16%, #c7d2fe, transparent), radial-gradient(1.3px 1.3px at 97% 78%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 88% 90%, #e0e7ff, transparent); }
.pl-tt-sun { position: absolute; left: 74%; top: 50%; height: 74%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.pl-tt-sun svg { position: absolute; display: block; width: 100%; height: 100%; overflow: visible; }
.pl-tt-cor { inset: -400%; }
.pl-tt-cor.a svg { filter: blur(2.4px); }
.pl-tt-cor.b svg { filter: blur(.7px); opacity: .85; }
.pl-tt-wind { inset: -400%; }
.pl-tt-wind svg { filter: blur(2.2px); }
.pl-tt-disc { inset: -70%; }
.pl-tt-bloom { inset: -150%; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle at 40.4% 42%, rgba(255,247,214,.42), rgba(253,230,138,.16) 14%, rgba(245,158,11,.05) 30%, transparent 46%); }
.pl-tt-dr { left: 11.7%; top: 17.9%; width: 100%; height: 100%; opacity: 0; transform: translate(-50%, -50%) scale(.4); }
.pl-tt-dr > b { position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle, #fff 0 7%, rgba(255,253,242,.95) 11%, rgba(255,247,214,.65) 19%, rgba(253,230,138,.25) 32%, transparent 50%); }
.pl-tt-dr::before, .pl-tt-dr::after { content: ''; position: absolute; }
.pl-tt-dr::before { left: -260%; right: -260%; top: 47%; height: 6%;
    background: radial-gradient(closest-side, #fff, rgba(255,253,242,.9) 6%, rgba(255,247,214,.45) 22%, rgba(253,230,138,.12) 60%, transparent); }
.pl-tt-dr::after { top: -60%; bottom: -60%; left: 48.5%; width: 3%;
    background: radial-gradient(closest-side, #fff, rgba(255,253,242,.8) 10%, rgba(255,247,214,.3) 40%, transparent); }
.pl-tt-beads { opacity: 0; }
.pl-tt.live .pl-tt-cor.a { animation: pl-spin 220s linear infinite; }
.pl-tt.live .pl-tt-cor.b { animation: pl-spin 300s linear infinite reverse; }
.pl-tt.live .pl-tt-wind { animation: pl-tt-wind 23s ease-in-out infinite; }
.pl-tt.live .pl-tt-cor, .pl-tt.live .pl-tt-wind > svg { will-change: transform; }
.pl-tt.live .pl-tt-wind > svg, .pl-tt.live .pl-tt-cor > svg { animation: pl-tt-dim 16s ease-in-out infinite; }
.pl-tt.live .pl-tt-stars { animation: pl-tt-stars 16s ease-in-out infinite; }
.pl-tt.live .pl-tt-dr { animation: pl-tt-dr 16s cubic-bezier(.3,0,.4,1) infinite; }
.pl-tt.live .pl-tt-bloom { animation: pl-tt-bloom 16s ease-out infinite; }
.pl-tt.live .pl-tt-beads { animation: pl-tt-beads 16s linear infinite; }
.pl-tt.live .pl-tt-prom { animation: pl-tt-prom 7s ease-in-out infinite; transform-origin: 0 0; }
@keyframes pl-tt-wind { 0%, 100% { transform: rotate(-1.6deg) scale(1); } 50% { transform: rotate(1.4deg) scale(1.03); } }
@keyframes pl-tt-dim { 0%, 68%, 100% { opacity: 1; } 79% { opacity: .5; } 86% { opacity: .55; } 95% { opacity: 1; } }
@keyframes pl-tt-stars { 0%, 66%, 100% { opacity: 1; } 78% { opacity: .2; } 88% { opacity: .25; } 97% { opacity: 1; } }
@keyframes pl-tt-beads { 0%, 72% { opacity: 0; } 73.5% { opacity: 1; } 74.5% { opacity: .55; } 75.5% { opacity: 1; } 76.5% { opacity: .7; } 77.6% { opacity: 1; } 78.6%, 100% { opacity: 0; } }
@keyframes pl-tt-dr { 0%, 77.5% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 79% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
    81.5% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 89%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.7); } }
@keyframes pl-tt-bloom { 0%, 77.5% { opacity: 0; } 79.5% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes pl-tt-prom { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
/* Reduce flashing: the diamond ring swells slowly to a third of its light (over 1.5 s) and fades; no strike, no beads flicker. */
html.calm-flash .pl-tt.live .pl-tt-dr { animation-name: pl-tt-dr-soft; }
html.calm-flash .pl-tt.live .pl-tt-bloom { animation-name: pl-tt-bloom-soft; }
html.calm-flash .pl-tt.live .pl-tt-beads { animation-name: pl-tt-beads-soft; }
@keyframes pl-tt-dr-soft { 0%, 72% { opacity: 0; transform: translate(-50%, -50%) scale(.8); } 82%, 86% { opacity: .32; transform: translate(-50%, -50%) scale(.8); } 95%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.8); } }
@keyframes pl-tt-bloom-soft { 0%, 72% { opacity: 0; } 82%, 86% { opacity: .3; } 95%, 100% { opacity: 0; } }
@keyframes pl-tt-beads-soft { 0%, 68% { opacity: 0; } 74%, 78% { opacity: .3; } 82%, 100% { opacity: 0; } }
/* Reduced motion: totality held still, the diamond ring resting softly on the rim. */
html.calm-motion .pl-tt .pl-tt-cor, html.calm-motion .pl-tt .pl-tt-wind, html.calm-motion .pl-tt .pl-tt-cor > svg, html.calm-motion .pl-tt .pl-tt-wind > svg,
    html.calm-motion .pl-tt .pl-tt-stars, html.calm-motion .pl-tt .pl-tt-bloom, html.calm-motion .pl-tt .pl-tt-beads, html.calm-motion .pl-tt .pl-tt-prom { animation: none !important; }
html.calm-motion .pl-tt .pl-tt-dr { animation: none !important; opacity: .45; transform: translate(-50%, -50%) scale(.75); }
/* Low graphics: the black sun, its rim, the inner corona and the stars; no petal fans, streamers, bloom or blur. */
html.gfx-low .pl-tt-cor, html.gfx-low .pl-tt-wind, html.gfx-low .pl-tt-bloom, html.gfx-low .pl-tt-dr::before, html.gfx-low .pl-tt-dr::after { display: none; }

/* Ring of Fire (avatar ring eclipse): the crest is the moon - a razor white-gold rim and a darkened limb - with a ragged
   corona turning behind it (two counter-turning petal layers over a pearly glow), crimson prominences licking at the
   edge and the diamond ring: a bead of light running round the rim that strikes as it comes over the top (every 10 s).
   Every part is a .pl-ring, so row / inline (np-small) crests drop it all and keep the rim. */
.pl-av[data-ring="eclipse"] > .pl-av-core { border: max(1px, calc(var(--sz) * .028)) solid #fffdf2 !important;
    box-shadow: 0 0 0 max(.5px, calc(var(--sz) * .014)) rgba(253,230,138,.9), 0 0 calc(var(--sz) * .1) rgba(255,247,214,.85), 0 0 calc(var(--sz) * .26) rgba(245,158,11,.5) !important; }
.pl-av[data-ring="eclipse"] > .pl-av-core::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
    box-shadow: inset 0 0 calc(var(--sz) * .16) calc(var(--sz) * .02) rgba(0,0,0,.9); }
.np-small .pl-av[data-ring="eclipse"] > .pl-av-core { box-shadow: none !important; }
.pl-ring.pl-ec-glow { inset: calc(var(--sz) * -.3); border-radius: 50%;
    background: radial-gradient(closest-side, transparent 58%, #fffdf2 62%, rgba(255,247,214,.8) 65%, rgba(253,230,138,.42) 72%, rgba(245,158,11,.16) 84%, transparent 100%); }
.pl-ring.pl-ec-cor { inset: calc(var(--sz) * -.4); }
.pl-ring.pl-ec-cor svg, .pl-ring.pl-ec-prom svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pl-ring.pl-ec-cor.a svg { filter: blur(max(.4px, calc(var(--sz) * .012))); }
.pl-ring.pl-ec-cor.a { animation: pl-spin 40s linear infinite; }
.pl-ring.pl-ec-cor.b { animation: pl-spin 64s linear infinite reverse; opacity: .9; }
.pl-ring.pl-ec-prom { inset: calc(var(--sz) * -.14); animation: pl-spin 90s linear infinite; }
.pl-ring.pl-ec-orbit { inset: 0; z-index: 2; animation: pl-spin 10s linear infinite; }
.pl-ec-orbit > i { position: absolute; left: 50%; top: 0; width: 0; height: 0; animation: pl-spin 10s linear infinite reverse; }
.pl-ec-orbit b { position: absolute; left: calc(var(--sz) * -.17); top: calc(var(--sz) * -.17); width: calc(var(--sz) * .34); height: calc(var(--sz) * .34);
    border-radius: 50%; opacity: .3; transform: scale(.5);
    background: radial-gradient(circle, #fff 0 9%, rgba(255,253,242,.95) 14%, rgba(255,247,214,.5) 26%, rgba(253,230,138,.15) 44%, transparent 68%);
    animation: pl-ec-flare 10s cubic-bezier(.3,0,.4,1) infinite; }
.pl-ec-orbit b::before, .pl-ec-orbit b::after { content: ''; position: absolute; }
.pl-ec-orbit b::before { left: -90%; right: -90%; top: 47.5%; height: 5%; background: linear-gradient(90deg, transparent, rgba(255,253,242,.9) 46%, #fff 50%, rgba(255,253,242,.9) 54%, transparent); }
.pl-ec-orbit b::after { top: -45%; bottom: -45%; left: 48%; width: 4%; background: linear-gradient(180deg, transparent, rgba(255,253,242,.85) 46%, #fff 50%, rgba(255,253,242,.85) 54%, transparent); }
@keyframes pl-ec-flare { 0% { opacity: .3; transform: scale(.5); } 3% { opacity: 1; transform: scale(1.3); } 7% { opacity: .95; transform: scale(1); }
    15%, 100% { opacity: .3; transform: scale(.5); } }
html.calm-flash .pl-ec-orbit b { animation-name: pl-ec-flare-soft; }
@keyframes pl-ec-flare-soft { 0% { opacity: .22; transform: scale(.55); } 6%, 9% { opacity: .33; transform: scale(.6); } 18%, 100% { opacity: .22; transform: scale(.55); } }
html.calm-motion .pl-ring.pl-ec-cor, html.calm-motion .pl-ring.pl-ec-prom, html.calm-motion .pl-ec-orbit > i, html.calm-motion .pl-ec-orbit b { animation: none !important; }
html.calm-motion .pl-ring.pl-ec-orbit { animation: none !important; transform: rotate(42deg); }
html.calm-motion .pl-ec-orbit > i { transform: rotate(-42deg); }
html.calm-motion .pl-ec-orbit b { opacity: .6; transform: scale(.7); }
html.gfx-low .pl-ring.pl-ec-cor, html.gfx-low .pl-ec-orbit b::before, html.gfx-low .pl-ec-orbit b::after { display: none; }

/* The Eclipse Rooster's flat preview (ProfileLook.runner, runner kind eclipse_rooster): the road's drawing as SVG - the
   corona comb flickers, the solar-wind tail sways, the halo breathes and a diamond ring strikes on its back every 6 s. */
.pl-run { display: grid; place-items: center; overflow: hidden; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(250,204,21,.35); }
.pl-run svg { width: 92%; height: 92%; overflow: visible; }
.pl-rr-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: pl-rr-flame .9s ease-in-out infinite alternate; }
.pl-rr-flame:nth-child(2) { animation-duration: .7s; animation-delay: -.3s; } .pl-rr-flame:nth-child(3) { animation-duration: 1.1s; animation-delay: -.5s; }
@keyframes pl-rr-flame { from { transform: scale(.95, .9) skewX(-4deg); } to { transform: scale(1.04, 1.14) skewX(4deg); } }
.pl-rr-tail { transform-box: fill-box; transform-origin: 100% 40%; animation: pl-rr-tail 3.2s ease-in-out infinite; }
@keyframes pl-rr-tail { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
.pl-rr-halo { animation: pl-rr-halo 4s ease-in-out infinite; }
@keyframes pl-rr-halo { 50% { opacity: .6; } }
.pl-rr-flare { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; animation: pl-rr-flare 6s cubic-bezier(.3,0,.4,1) infinite; }
@keyframes pl-rr-flare { 0%, 80% { opacity: 0; transform: scale(.4); } 83% { opacity: 1; transform: scale(1.15); } 87% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.7); } }
html.calm-flash .pl-rr-flare { animation-name: pl-rr-flare-soft; }
@keyframes pl-rr-flare-soft { 0%, 74% { opacity: 0; transform: scale(.8); } 84%, 88% { opacity: .32; transform: scale(.8); } 98%, 100% { opacity: 0; transform: scale(.8); } }
html.calm-motion .pl-rr-flame, html.calm-motion .pl-rr-tail, html.calm-motion .pl-rr-halo, html.calm-motion .pl-rr-flare { animation: none !important; }
html.calm-motion .pl-rr-flare { opacity: .4; transform: scale(.8); }
html.gfx-low .pl-rr-halo, html.gfx-low .pl-rr-flare circle.glow { display: none; }

/* ---- loadout previews ---- */
.pl-card { position: relative; width: var(--w, 64px); aspect-ratio: 5 / 7; border-radius: 8px; display: grid; place-items: center;
    border: 2px solid var(--frame, rgba(255,255,255,.25)); box-shadow: inset 0 0 0 3px rgba(0,0,0,.35), inset 0 0 0 4px var(--frame, rgba(255,255,255,.12)), 0 12px 22px rgba(0,0,0,.6);
    font-size: calc(var(--w, 64px) * .4); font-weight: 700; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.pl-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(125deg, rgba(255,255,255,.28), transparent 35%); pointer-events: none; }
.pl-tilt { transform: perspective(500px) rotateY(-20deg) rotateX(8deg) rotateZ(-4deg); }
.pl-tilt:hover { transform: perspective(500px) rotateY(0) rotateX(0) rotateZ(0) scale(1.05); }
.pl-chip { position: relative; width: var(--w, 64px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
    background: repeating-conic-gradient(var(--ring) 0 12deg, var(--base) 12deg 30deg);
    box-shadow: 0 6px 0 rgba(0,0,0,.55), 0 10px 18px rgba(0,0,0,.6), inset 0 0 0 2px rgba(0,0,0,.25); }
.pl-chip > b { width: 70%; height: 70%; border-radius: 50%; display: grid; place-items: center; background: var(--face); color: var(--txt);
    font: 800 calc(var(--w, 64px) * .2) 'Playfair Display', serif; box-shadow: inset 0 0 0 2px var(--ring), inset 0 2px 5px rgba(0,0,0,.35); }
.pl-chip-real { display: inline-flex; filter: drop-shadow(0 8px 10px rgba(0,0,0,.55)); }
.pl-throw { position: relative; display: grid; place-items: center; font-size: var(--w, 40px); line-height: 1; width: calc(var(--w, 40px) * 1.5); height: calc(var(--w, 40px) * 1.5);
    animation: pl-bob 3s ease-in-out infinite; filter: drop-shadow(0 8px 8px rgba(0,0,0,.6)); }
@keyframes pl-bob { 50% { transform: translateY(-5px) rotate(-6deg); } }
.pl-throw.gilded { filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.15) drop-shadow(0 0 10px rgba(242,207,107,.7)); }
.pl-ingot { width: calc(var(--w, 40px) * 1.3); height: calc(var(--w, 40px) * .6); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, #fff6c9, #f2cf6b 35%, #b8862a 75%, #7a4c0c); position: relative; }
.pl-ingot::after { content: ''; position: absolute; left: 22%; right: 22%; top: 18%; height: 22%; background: rgba(255,255,255,.45); }
/* Blot Out the Sun (art "eclipse"): a black moon with a white-gold rim inside a ragged turning corona, a diamond ring bead. */
.pl-blot { position: relative; width: calc(var(--w, 40px) * 1.05); height: calc(var(--w, 40px) * 1.05); border-radius: 50%;
    background: radial-gradient(circle, #000 0 52%, #fffdf2 54%, #fde68a 58%, rgba(245,158,11,.55) 66%, rgba(124,45,18,.25) 80%, transparent 96%); }
.pl-blot::before { content: ''; position: absolute; inset: -22%; border-radius: 50%; animation: pl-spin 14s linear infinite;
    background: conic-gradient(from 10deg, transparent 0 6%, rgba(253,230,138,.55) 9%, transparent 14% 30%, rgba(255,247,214,.5) 34%, transparent 40% 52%,
        rgba(245,158,11,.5) 57%, transparent 63% 74%, rgba(253,230,138,.45) 80%, transparent 86%);
    -webkit-mask: radial-gradient(circle, transparent 34%, #000 38%, transparent 70%); mask: radial-gradient(circle, transparent 34%, #000 38%, transparent 70%); }
.pl-blot::after { content: ''; position: absolute; left: 76%; top: 14%; width: 16%; height: 16%; border-radius: 50%;
    background: radial-gradient(circle, #fff 0 30%, rgba(255,253,242,.7) 45%, transparent 72%); }
.pl-smoke { position: absolute; right: 8%; top: 4%; width: 10px; height: 10px; border-radius: 50%; background: rgba(214,211,209,.45); filter: blur(3px);
    animation: pl-smoke 2.8s ease-out infinite; }
.pl-smoke:nth-child(3) { animation-delay: 1.4s; }
@keyframes pl-smoke { from { opacity: .8; transform: translate(0, 0) scale(.6); } to { opacity: 0; transform: translate(8px, -26px) scale(2.2); } }
/* A flat die (the dice skin previews): DiceSkin (static/js/dice_skin.js) draws the face, so it matches the 3D dice. */
.pl-die { position: relative; width: var(--w, 52px); aspect-ratio: 1; border-radius: var(--dk-r, 22%); box-shadow: 0 10px 16px rgba(0,0,0,.55); flex: none; }
.pl-die > .dk-face { position: absolute; inset: 0; padding: 16%; }
.pl-die3 { transform: perspective(400px) rotateX(18deg) rotateY(-24deg); }

.pl-md a { color: #fcd34d; text-decoration: underline; text-underline-offset: 2px; }
.pl-md strong { color: #fef3c7; }
/* Bullion Chain (Midas): twelve stamped ingots in perspective, each lit by where it sits on the ring, joined by round
   gold links; a glint (.ing-g, opacity only) runs round the chain one bar at a time. */
.pl-ring-chain svg, .pl-ring-neon svg, .pl-ring-roulette svg, .pl-ring-filigree svg { width: 100%; height: 100%; overflow: visible; }
/* Platinum Filigree (Rare, static): twelve platinum C-scrolls and beads between two hairline rings. */
.pl-ring-filigree svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.75)) drop-shadow(0 0 4px rgba(226,232,240,.35)); }
.pl-ring-chain svg { filter: drop-shadow(0 2px 2px rgba(0,0,0,.7)); }
.pl-ring-chain .ing-g { opacity: 0; animation: pl-ingot 3.6s linear infinite; }
@keyframes pl-ingot { 0%, 9%, 100% { opacity: 0; } 3% { opacity: .95; } }
/* Neon Tube (Synthwave): a hot-pink tube outside, an aqua one inside, on chrome brackets; the pink one buzzes now and then
   and the aqua one answers a beat later. */
.pl-ring-neon .pl-nt-a { animation: pl-neon 5.5s steps(1) infinite; }
.pl-ring-neon .pl-nt-b { animation: pl-neon-b 5.5s steps(1) infinite; }
@keyframes pl-neon { 0%, 100% { opacity: 1; } 61% { opacity: .35; } 62% { opacity: 1; } 64% { opacity: .55; } 65% { opacity: 1; } }
@keyframes pl-neon-b { 0%, 100% { opacity: 1; } 67% { opacity: .5; } 68% { opacity: 1; } }
/* Neon Tube's Legendary layers: a surge of current runs round the pink tube (.pl-nt-surge, one bright arc turned by a
   transform) and the electrodes at the top spit sparks as it arrives (.pl-nt-spk, transform / opacity). Reduce flashing:
   no sparks, the surge soft. Calm motion / low graphics: neither. */
.pl-ring-neon .pl-nt-surge { transform-box: view-box; transform-origin: 50% 50%; opacity: 0; animation: pl-nt-surge 4.4s linear infinite; }
@keyframes pl-nt-surge { 0% { transform: rotate(14deg); opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 96%, 100% { transform: rotate(346deg); opacity: 0; } }
.pl-nt-spk { position: absolute; inset: calc(var(--sz) * -.14); pointer-events: none; }
.pl-nt-spk b { position: absolute; left: var(--x); top: 3%; width: max(2px, calc(var(--sz) * .04)); height: max(2px, calc(var(--sz) * .04)); border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, #fff 0 30%, #ff9ed1 55%, rgba(255,60,172,0) 72%); animation: pl-nt-spark 4.4s ease-out var(--dl) infinite; }
@keyframes pl-nt-spark { 0%, 91% { opacity: 0; transform: translate(0, 0) scale(1); } 93% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--sz) * var(--dy))) scale(.3); } }
html.calm-flash .pl-nt-spk { display: none; }
html.calm-flash .pl-ring-neon .pl-nt-surge { animation-name: pl-nt-surge-soft; }
@keyframes pl-nt-surge-soft { 0% { transform: rotate(14deg); opacity: 0; } 10%, 85% { opacity: .45; } 96%, 100% { transform: rotate(346deg); opacity: 0; } }
html.calm-motion .pl-ring-neon .pl-nt-surge, html.gfx-low .pl-ring-neon .pl-nt-surge { animation: none; opacity: 0; }
html.calm-motion .pl-nt-spk, html.gfx-low .pl-nt-spk { display: none; }
/* Bullion Chain's Legendary layers: the Midas stater is the clasp at the top, it flares as the glint comes round to it
   (.pl-ch-flare, opacity), and gold dust shakes off the bars and falls (.pl-ch-dust, transform / opacity). Calm motion:
   still, no dust. Low graphics: no dust. */
.pl-ring-chain .pl-ch-flare { opacity: 0; animation: pl-ch-flare 3.6s ease-out infinite; }
@keyframes pl-ch-flare { 0%, 100% { opacity: 0; } 3% { opacity: .9; } 22% { opacity: 0; } }
.pl-ch-dust { position: absolute; inset: calc(var(--sz) * -.14); pointer-events: none; }
.pl-ch-dust b { position: absolute; left: var(--x); top: var(--y); width: max(1.5px, calc(var(--sz) * .032)); height: max(1.5px, calc(var(--sz) * .032)); opacity: 0;
    background: #fff3c4; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    animation: pl-ch-dust var(--d) ease-in var(--dl) infinite; }
@keyframes pl-ch-dust { 0% { opacity: 0; transform: translateY(0) scale(.6); } 18% { opacity: 1; transform: translateY(calc(var(--sz) * .04)) scale(1.1); }
    100% { opacity: 0; transform: translateY(calc(var(--sz) * .3)) scale(.4); } }
html.calm-motion .pl-ring-chain .pl-ch-flare { animation: none; }
html.calm-motion .pl-ch-dust, html.gfx-low .pl-ch-dust { display: none; }
/* Victor's Laurel (Epic): a gleam climbs both branches leaf by leaf from the bow to the tips (.lr-g, opacity only), then
   the little crown between the tips catches it; the bow's tails stir. Calm motion / low graphics: still. */
.pl-ring-laurel .lr-g { opacity: 0; animation: pl-lr-gleam 5s ease-in-out infinite; }
@keyframes pl-lr-gleam { 0%, 100% { opacity: 0; } 5% { opacity: .85; } 14% { opacity: 0; } }
.pl-ring-laurel .lr-cg { opacity: 0; animation: pl-lr-crown 5s ease-in-out infinite; }
@keyframes pl-lr-crown { 0%, 24%, 100% { opacity: 0; } 30% { opacity: .9; } 44% { opacity: 0; } }
.pl-ring-laurel .lr-tail { transform-box: fill-box; transform-origin: 50% 0; animation: pl-lr-tail 4s ease-in-out infinite; }
.pl-ring-laurel .lr-tail.r { animation-delay: -1.6s; }
@keyframes pl-lr-tail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(7deg); } }
html.calm-motion .pl-ring-laurel .lr-g, html.calm-motion .pl-ring-laurel .lr-cg, html.calm-motion .pl-ring-laurel .lr-tail,
    html.gfx-low .pl-ring-laurel .lr-g, html.gfx-low .pl-ring-laurel .lr-cg, html.gfx-low .pl-ring-laurel .lr-tail { animation: none; }
/* Morning Glory (Epic, ring asagao; Golden Hour, static/js/dusk_art.js): a morning-glory vine climbing round the crest
   as it climbs a summer fence - a green stem winding round in a soft wave, heart-shaped leaves along it, curling tendrils
   and five trumpets in blue, violet and rose with white throats. The leaves stir in an evening breeze (.ag-lf, each on its
   own beat), and every 10 s the bud at the top right unfurls into a sixth flower, holds open and folds back (.ag-bud /
   .ag-open). Calm motion / low graphics: still, the flower open. */
.pl-ring-asagao svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 2px rgba(30,26,50,.65)); }
.pl-ring-asagao .ag-lf { transform-box: fill-box; transform-origin: 50% 100%; animation: pl-ag-lf 4.8s ease-in-out infinite; }
.pl-ring-asagao .ag-lf:nth-of-type(3n+1) { animation-duration: 5.6s; animation-delay: -1.4s; }
.pl-ring-asagao .ag-lf:nth-of-type(3n+2) { animation-duration: 4.2s; animation-delay: -2.6s; }
@keyframes pl-ag-lf { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-9deg); } 70% { transform: rotate(4deg); } }
.pl-ring-asagao .ag-open { transform-box: fill-box; transform-origin: 50% 50%; animation: pl-ag-open 10s ease-in-out infinite; }
.pl-ring-asagao .ag-bud { transform-box: fill-box; transform-origin: 30% 80%; animation: pl-ag-bud 10s ease-in-out infinite; }
@keyframes pl-ag-open { 0%, 18% { opacity: 0; transform: scale(.2) rotate(-60deg); } 36% { opacity: 1; transform: scale(1.06) rotate(4deg); }
    42%, 80% { opacity: 1; transform: scale(1) rotate(0); } 94%, 100% { opacity: 0; transform: scale(.3) rotate(-40deg); } }
@keyframes pl-ag-bud { 0%, 16% { opacity: 1; transform: scale(1); } 30% { opacity: 0; transform: scale(1.3, .8); } 86% { opacity: 0; transform: scale(.8); } 96%, 100% { opacity: 1; transform: scale(1); } }
html.calm-motion .pl-ring-asagao *, html.gfx-low .pl-ring-asagao * { animation: none !important; }
html.calm-motion .pl-ring-asagao .ag-bud, html.gfx-low .pl-ring-asagao .ag-bud { opacity: 0; }
/* The Treasury (texture treasury, anim banner-treasury; Midas, static/js/material_art.js): King Midas's vault - a wall of
   black onyx veined with gold between fluted onyx pilasters, a Greek key frieze above and below, two pyramids of stamped
   bars and the crowned-rook stater on its stand at the centre. Live: the gilding - gold runs out through the onyx's veins
   from the coin, band by band (.pl-tr-g1..3, opacity only), and drains away again; a glint crosses the bars one by one and
   gold dust drifts up through the coin's light. Calm motion / low graphics: still, fully gilded; low graphics: no dust. */
.pl-tr { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-tr svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-tr > b { position: absolute; inset: 0; display: block; }
.pl-tr.live .pl-tr-g1 { animation: pl-tr-g1 10s ease-in-out infinite; }
.pl-tr.live .pl-tr-g2 { animation: pl-tr-g2 10s ease-in-out infinite; }
.pl-tr.live .pl-tr-g3 { animation: pl-tr-g3 10s ease-in-out infinite; }
.pl-tr-halo { opacity: .55; }
.pl-tr.live .pl-tr-halo { animation: pl-tr-halo 10s ease-in-out infinite; }
@keyframes pl-tr-g1 { 0%, 4% { opacity: 0; } 14%, 80% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes pl-tr-g2 { 0%, 12% { opacity: 0; } 24%, 80% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes pl-tr-g3 { 0%, 22% { opacity: 0; } 36%, 80% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes pl-tr-halo { 0%, 100% { opacity: .3; } 12% { opacity: .75; } 50% { opacity: .55; } }
.pl-tr .tr-glint { opacity: 0; }
.pl-tr.live .tr-glint { animation: pl-tr-glint 10s linear infinite; }
@keyframes pl-tr-glint { 0%, 100% { opacity: 0; } 2% { opacity: .9; } 6% { opacity: 0; } }
.pl-tr-dust > i { position: absolute; left: var(--x); bottom: 8%; width: 3px; height: 3px; opacity: 0; background: #fff3c4;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.pl-tr.live .pl-tr-dust > i { animation: pl-tr-dust var(--d) ease-out var(--dl) infinite; }
@keyframes pl-tr-dust { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -140px) scale(1.2); } }
html.calm-motion .pl-tr > b, html.calm-motion .pl-tr .tr-glint, html.gfx-low .pl-tr > b, html.gfx-low .pl-tr .tr-glint { animation: none !important; }
html.calm-motion .pl-tr > b.pl-tr-g, html.gfx-low .pl-tr > b.pl-tr-g { opacity: 1; }
html.calm-motion .pl-tr-dust, html.gfx-low .pl-tr-dust { display: none; }
/* The Dragon Gate (texture dragongate, anim banner-dragon; Dragon Court, static/js/dragon_art.js): dusk over the Court -
   a vermilion lacquer gate with a sweeping gold-trimmed roof, its jade plaque and two red lanterns, gold cloud scrolls
   drifting across, and the Court's one dragon coiling over the roof towards its flaming pearl. Live: two cloud layers
   drift against each other, the lanterns sway, the pearl's flame breathes, the dragon's breath glows out towards it now
   and then, and embers rise off the gate. Calm motion / low graphics: still; low graphics: no embers. */
.pl-dg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-dg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-dg > b { position: absolute; inset: 0; display: block; }
.pl-dg .dg-lant { transform-box: fill-box; transform-origin: 50% 0; }
.pl-dg .dg-flame { transform-box: fill-box; transform-origin: 50% 70%; }
.pl-dg.live .pl-dg-c1 { animation: pl-dg-drift 26s ease-in-out infinite alternate; }
.pl-dg.live .pl-dg-c2 { animation: pl-dg-drift 34s ease-in-out infinite alternate-reverse; }
.pl-dg.live .dg-lant { animation: pl-dg-sway 4.2s ease-in-out infinite; }
.pl-dg.live .dg-lant.r { animation-delay: -1.9s; }
.pl-dg.live .dg-flame { animation: pl-dg-flame 1.8s ease-in-out infinite; }
.pl-dg.live .pl-dg-breath { animation: pl-dg-breath 7s ease-in-out infinite; }
@keyframes pl-dg-drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@keyframes pl-dg-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes pl-dg-flame { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12, 1.2); opacity: 1; } }
@keyframes pl-dg-breath { 0%, 55%, 100% { opacity: 0; } 66% { opacity: 1; } 82% { opacity: 0; } }
.pl-dg .pl-dg-breath { opacity: 0; }
.pl-dg-emb > i { position: absolute; left: var(--x); bottom: 4%; width: 3px; height: 3px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, #fff6d0 0 25%, #ffb347 50%, rgba(255,110,24,0) 72%); }
.pl-dg.live .pl-dg-emb > i { animation: pl-dg-ember var(--d) ease-out var(--dl) infinite; }
@keyframes pl-dg-ember { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -160px) scale(.4); } }
html.calm-motion .pl-dg > b, html.calm-motion .pl-dg .dg-lant, html.calm-motion .pl-dg .dg-flame,
    html.gfx-low .pl-dg > b, html.gfx-low .pl-dg .dg-lant, html.gfx-low .pl-dg .dg-flame { animation: none !important; }
html.calm-motion .pl-dg-emb, html.gfx-low .pl-dg-emb { display: none; }
/* Main Street (texture mainstreet, anim banner-tumbleweed; Frontier Saloon, static/js/frontier_art.js): the frontier
   town's main street at high noon - mesas on the horizon under a dusty sky, a water tower and a ranch windmill behind the
   false fronts (the hotel, the general store, the saloon in the middle, the barber and the livery stable), their porches
   over the boardwalk, a hitching rail before the saloon and the rutted street in front. Live: the windmill's wheel turns,
   a haze of dust drifts down the street and every eleven seconds a tumbleweed bowls across it, bouncing as it rolls.
   Calm motion / low graphics: the still street. */
.pl-ms { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-ms > b, .pl-ms > i { position: absolute; inset: 0; display: block; }
.pl-ms svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-ms .fa-wheel { transform-box: fill-box; transform-origin: 50% 50%; }
.pl-ms.live .fa-wheel { animation: pl-spin 9s linear infinite; }
.pl-ms-haze { background: linear-gradient(90deg, transparent, rgba(231,194,140,.22) 30%, rgba(231,194,140,.08) 55%, rgba(231,194,140,.2) 78%, transparent);
    -webkit-mask-image: linear-gradient(to top, #000 0 18%, transparent 46%); mask-image: linear-gradient(to top, #000 0 18%, transparent 46%); opacity: .8; }
.pl-ms.live .pl-ms-haze { animation: pl-ms-haze 14s ease-in-out infinite alternate; }
@keyframes pl-ms-haze { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
.pl-ms-roll { opacity: 0; }
.pl-ms.live .pl-ms-roll { opacity: 1; animation: pl-ms-roll 11s linear infinite; }
.pl-ms-roll > b { position: absolute; left: -9%; bottom: 3%; width: min(48px, 9%); aspect-ratio: 1; }
.pl-ms.live .pl-ms-roll > b { animation: pl-ms-hop .62s cubic-bezier(.4,0,.6,1) infinite alternate; }
.pl-ms-roll > b > svg { animation: pl-spin .9s linear infinite; transform-origin: 50% 50%; }
@keyframes pl-ms-roll { 0% { transform: translateX(0); } 58%, 100% { transform: translateX(120%); } }
@keyframes pl-ms-hop { from { transform: translateY(0); } to { transform: translateY(-34%); } }
html.calm-motion .pl-ms *, html.gfx-low .pl-ms * { animation: none !important; }
/* The Lodge (texture lodge, anim banner-snowfall; Winter Lodge, static/js/lodge_art.js): a log lodge in a snowy valley at
   dusk - the first stars over the hills, spruce woods climbing them, the lodge in the middle with its windows lit, smoke
   from its chimney and a toboggan leaning by the door, snowfields and drifts in front. Live: snow falls across it all (two
   layers of flakes at different depths, each a tile sliding down), the chimney smoke sways and thins, the windows glow and
   now and then a load of snow slides off a big spruce's bough (every nine seconds). Calm motion / low graphics: the still
   valley with its snow hanging in the air. */
.pl-lg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-lg > b, .pl-lg > i { position: absolute; inset: 0; display: block; }
.pl-lg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-lg-snow { inset: -100% 0 0 0 !important; height: 200%; background-size: 260px 150px; background-repeat: repeat; }
.pl-lg-snow.near { background-size: 380px 210px; opacity: .9; }
.pl-lg.live .pl-lg-snow { animation: pl-lg-fall 12s linear infinite; }
.pl-lg.live .pl-lg-snow.near { animation-duration: 7.5s; }
@keyframes pl-lg-fall { from { transform: translate(0, 0); } to { transform: translate(-6%, 50%); } }
.pl-lg .wl-smoke { transform-box: fill-box; transform-origin: 50% 100%; }
.pl-lg.live .wl-smoke { animation: pl-lg-smoke 6s ease-in-out infinite alternate; }
@keyframes pl-lg-smoke { from { transform: skewX(-6deg); opacity: .7; } to { transform: skewX(8deg) translateY(-3%); opacity: 1; } }
.pl-lg.live .pl-lg-glow { animation: pl-lg-glow 4.4s ease-in-out infinite alternate; }
@keyframes pl-lg-glow { from { opacity: .7; } to { opacity: 1; } }
.pl-lg-drop { opacity: 0; }
.pl-lg.live .pl-lg-drop { animation: pl-lg-drop 9s ease-in infinite; }
@keyframes pl-lg-drop { 0%, 70% { opacity: 0; transform: translateY(0); } 72% { opacity: .95; } 86% { opacity: .6; transform: translateY(12%); } 90%, 100% { opacity: 0; transform: translateY(14%); } }
html.calm-motion .pl-lg *, html.gfx-low .pl-lg * { animation: none !important; }
html.gfx-low .pl-lg-snow.near { display: none !important; }
/* Launch Coast (texture launchcoast, anim banner-launch; Ad Astra, static/js/mission_art.js): launch evening on the
   coast, printed like a space-age art poster in flat bands with halftone and a paper grain - the rocket on its pad in the
   arms of its crimson service tower, lightning masts either side, the assembly hall far off across the flats where a great
   ringed world rises in a fan of rays, a small blue world and a constellation overhead, and all of it mirrored in the lagoon.
   Live: cold vapour curls off the rocket's sides (.mc-vapour), the tower's beacon blinks, two searchlights sweep slowly from
   the pad (.pl-lc-beam), the sunset glows and the first stars come and go (.pl-lc-warm / .pl-lc-stars, 16 s each way), and
   every 14 s a far rocket climbs away on its trail (.pl-lc-far). Calm motion / low graphics: one still frame, no far rocket. */
.pl-lc { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-lc > b { position: absolute; inset: 0; display: block; }
.pl-lc svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-lc-warm { background: radial-gradient(55% 75% at 66% 74%, rgba(255,217,130,.7), rgba(236,122,51,.28) 45%, transparent 75%); opacity: .6; }
.pl-lc.live .pl-lc-warm { animation: pl-lc-warm 16s ease-in-out infinite alternate; }
@keyframes pl-lc-warm { from { opacity: .35; } to { opacity: .95; } }
.pl-lc.live .pl-lc-stars { animation: pl-lc-stars 16s ease-in-out infinite alternate; }
@keyframes pl-lc-stars { from { opacity: 1; } to { opacity: .25; } }
.pl-lc .mc-vapour path { opacity: 0; stroke-width: 10px; stroke-opacity: .24; }
.pl-lc.live .mc-vapour path { transform-box: fill-box; transform-origin: 50% 100%; animation: pl-lc-vap 5s ease-out infinite; }
.pl-lc.live .mc-vapour .v1 { animation-delay: -1.7s; }
.pl-lc.live .mc-vapour .v2 { animation-delay: -3.3s; }
@keyframes pl-lc-vap { 0% { opacity: 0; transform: translateY(0) scale(.8); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateY(-14%) scale(1.25); } }
.pl-lc.live .mc-beacon { animation: pl-lc-blink 2.4s steps(1) infinite; }
@keyframes pl-lc-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }
.pl-lc-beam { transform-box: view-box; opacity: .2; }
.pl-lc.live .pl-lc-beam { animation: pl-lc-sweep 9s ease-in-out infinite alternate; }
.pl-lc.live .pl-lc-beam.b { animation-duration: 11s; animation-delay: -4s; }
@keyframes pl-lc-sweep { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.pl-lc-far { opacity: 0; }
.pl-lc.live .pl-lc-far { animation: pl-lc-far 14s linear infinite; }
@keyframes pl-lc-far { 0%, 6% { opacity: 0; } 8%, 52% { opacity: 1; } 70%, 100% { opacity: 0; } }
.pl-lc-far .tr, .pl-lc-far .hd { stroke-dasharray: 100 300; stroke-dashoffset: 100; }
.pl-lc-far .hd { stroke-dasharray: 2.4 300; stroke-dashoffset: 2.4; }
.pl-lc.live .pl-lc-far .tr { animation: pl-lc-trail 14s cubic-bezier(.45,.05,.7,.6) infinite; }
.pl-lc.live .pl-lc-far .hd { animation: pl-lc-head 14s cubic-bezier(.45,.05,.7,.6) infinite; }
@keyframes pl-lc-trail { 0%, 8% { stroke-dashoffset: 100; } 50%, 100% { stroke-dashoffset: 0; } }
@keyframes pl-lc-head { 0%, 8% { stroke-dashoffset: 2.4; } 50%, 100% { stroke-dashoffset: -97.6; } }
.pl-banner:has(> .pl-lc) .pl-edge { box-shadow: inset 0 0 0 1px rgba(251,244,226,.22), inset 0 -40px 70px -40px rgba(208,53,43,.35) !important; }
/* the lagoon's copy of the scene holds still (its vapour and beacon would be a second set of animations to paint) */
.pl-lc .pl-lc-refl * { animation: none !important; }
html.calm-motion .pl-lc *, html.gfx-low .pl-lc * { animation: none !important; }
html.calm-motion .pl-lc .pl-lc-far, html.gfx-low .pl-lc .pl-lc-far { display: none; }
html.calm-motion .pl-ms-roll, html.gfx-low .pl-ms-roll { display: none; }
/* Two-Page Spread (texture spread, anim banner-spread; Final Form, static/js/ink_art.js): the centre spread of a battle
   manga - the fighter (ink, blaze-orange aura) and his rival (paper white, a white aura in screentone) meeting fist to
   fist in mid-air over a ruined skyline, under focus lines, with the impact star and a hand-brushed ズドン where the blows
   meet. Live, on one 6 s beat: the auras flicker (two drawings each, swapped in steps), the speed lines stream, the
   fighters draw back and slam in again, the impact star bursts, a white impact frame flashes, the focus lines snap in
   and the page shakes. Reduce flashing: no white frame, no snap, no shake (the fighters still meet); calm motion / low
   graphics: the still page at the moment of impact. */
.pl-sp { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-sp svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-sp > b { position: absolute; inset: 0; display: block; }
.pl-sp .pl-sp-a1 { opacity: 0; }
.pl-sp.live { animation: pl-sp-shake 6s linear infinite; }
.pl-sp.live .pl-sp-l { animation: pl-sp-l 6s cubic-bezier(.5,0,.2,1) infinite; }
.pl-sp.live .pl-sp-r { animation: pl-sp-r 6s cubic-bezier(.5,0,.2,1) infinite; }
.pl-sp.live .pl-sp-hit { animation: pl-sp-hit 6s ease-out infinite; transform-origin: 50% 50%; }
.pl-sp.live .pl-sp-fx { animation: pl-sp-fx 6s ease-out infinite; transform-origin: 50% 50%; }
.pl-sp.live .pl-sp-flash { animation: pl-sp-flash 6s linear infinite; }
.pl-sp.live .pl-sp-spd { animation: pl-sp-stream 1.1s linear infinite; }
.pl-sp.live .pl-sp-spd.s1 { animation-delay: -.55s; }
.pl-sp .pl-sp-spd.s1 { opacity: 0; }
.pl-sp.live .pl-sp-a0 { animation: pl-sp-flick .28s steps(1) infinite; }
.pl-sp.live .pl-sp-a1 { animation: pl-sp-flick .28s steps(1) -.14s infinite; }
.pl-sp .pl-sp-flash { opacity: 0; background: #fffdf6; }
@keyframes pl-sp-flick { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pl-sp-stream { 0% { transform: translateX(3%); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translateX(-3%); opacity: 0; } }
@keyframes pl-sp-l { 0%, 8% { transform: translateX(0); } 58% { transform: translateX(-2.6%); } 66% { transform: translateX(.5%); } 72%, 100% { transform: translateX(0); } }
@keyframes pl-sp-r { 0%, 8% { transform: translateX(0); } 58% { transform: translateX(2.6%); } 66% { transform: translateX(-.5%); } 72%, 100% { transform: translateX(0); } }
@keyframes pl-sp-hit { 0%, 8% { transform: scale(1); opacity: 1; } 40%, 63% { transform: scale(.55); opacity: .35; } 67% { transform: scale(1.25); opacity: 1; } 78%, 100% { transform: scale(1); opacity: 1; } }
@keyframes pl-sp-fx { 0%, 63% { transform: scale(1); opacity: .8; } 66% { transform: scale(1.12); opacity: 1; } 76%, 100% { transform: scale(1); opacity: .8; } }
@keyframes pl-sp-flash { 0%, 65.5% { opacity: 0; } 66% { opacity: .9; } 67.5% { opacity: 0; } 68.5% { opacity: .55; } 70%, 100% { opacity: 0; } }
@keyframes pl-sp-shake { 0%, 65.9% { transform: translate(0, 0); } 66.5% { transform: translate(-3px, 2px); } 67.5% { transform: translate(3px, -2px); }
    68.5% { transform: translate(-2px, -1px); } 69.5% { transform: translate(2px, 1px); } 70.5%, 100% { transform: translate(0, 0); } }
html.calm-flash .pl-sp.live, html.calm-flash .pl-sp.live .pl-sp-fx, html.calm-flash .pl-sp.live .pl-sp-flash { animation: none; }
html.calm-flash .pl-sp.live .pl-sp-a0 { animation: pl-sp-fade 2.4s ease-in-out infinite; }
html.calm-flash .pl-sp.live .pl-sp-a1 { animation: pl-sp-fade 2.4s ease-in-out -1.2s infinite; }
@keyframes pl-sp-fade { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
html.calm-flash .pl-sp.live .pl-sp-hit { animation-name: pl-sp-hit-calm; }
@keyframes pl-sp-hit-calm { 0%, 8% { transform: scale(1); } 40%, 63% { transform: scale(.7); opacity: .6; } 72%, 100% { transform: scale(1); opacity: 1; } }
html.calm-motion .pl-sp, html.calm-motion .pl-sp > b, html.gfx-low .pl-sp, html.gfx-low .pl-sp > b { animation: none !important; }
html.calm-motion .pl-sp .pl-sp-a1, html.gfx-low .pl-sp .pl-sp-a1 { display: none; }
html.calm-motion .pl-sp .pl-sp-a0, html.gfx-low .pl-sp .pl-sp-a0 { opacity: 1; }
/* Red Umbrella (texture umbrella, anim banner-umbrella; Noir, static/js/noir_art.js): a rain-swept street at midnight from
   a high window - wet cobbles shining in a streetlamp's pool, the lamp's cone full of slanting rain, the far shopfront's
   blind-slatted window, fog lying along both kerbs, and one crimson umbrella crossing below. Same 1000 x 300 slice box as
   the other scenes: the lamp stands at x 590 and the umbrella is drawn at the centre, so a profile strip (y 95 - 205)
   and a Store card (x 250 - 750) both hold the lamp, its cone and the umbrella. Live: the rain falls (three tiles, each
   translated by exactly its own height; the brightest only inside the cone, a mask sized like the scene), the fog
   drifts along the kerbs and the umbrella crosses the street in 30 s (one transform). Calm motion / low graphics: one
   still, the umbrella at the edge of the lamplight. */
.pl-nu { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-nu svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-nu > b { position: absolute; inset: 0; display: block; }
.pl-nu-cone { -webkit-mask-size: cover; mask-size: cover; -webkit-mask-position: 50% 50%; mask-position: 50% 50%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.pl-nu-rain { position: absolute; left: -10%; right: -10%; bottom: 0; top: calc(var(--th) * -1); display: block; background-repeat: repeat; background-size: var(--tw) var(--th); }
.pl-nu.live .pl-nu-rain { animation: pl-nu-fall var(--d) linear infinite; }
@keyframes pl-nu-fall { from { transform: translateY(0); } to { transform: translateY(var(--th)); } }
.pl-nu.live .pl-nu-um { animation: pl-nu-walk 30s linear infinite; }
@keyframes pl-nu-walk { from { transform: translateX(-75%); } to { transform: translateX(75%); } }
.pl-nu.live .pl-nu-fog { animation: pl-nu-fog 22s ease-in-out infinite alternate; }
.pl-nu.live .pl-nu-fog.b { animation-duration: 29s; animation-delay: -9s; }
@keyframes pl-nu-fog { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
html.calm-motion .pl-nu > b, html.calm-motion .pl-nu-rain, html.gfx-low .pl-nu > b, html.gfx-low .pl-nu-rain { animation: none !important; }
html.gfx-low .pl-nu-rain.f { display: none; }
/* The Riverbank (texture riverbank, anim banner-riverbank; Golden Hour, static/js/dusk_art.js): a wide river on a summer
   evening from the grassy embankment - the painted sky from dusk blue to honey, a tower of summer cloud lit on its sunward
   side, the low sun over two rows of far hills, a long girder bridge on its piers across the river and the country line's
   one-car train crossing it (its lit windows doubled in the water), the sun's road glittering on the river, and the near
   bank's grass and poles in the foreground. Live: the clouds drift (.pl-rb-cl, 60 s there and back), the sun's glow
   breathes, the glitter twinkles (two sets of strokes trading places) and every 16 s the train rolls across the bridge
   with its reflection under it. Nothing flashes. Calm motion / low graphics: one still evening, the train mid-bridge. */
.pl-rb { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-rb svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-rb .rb-gl2 { opacity: 0; }
.pl-rb.live .rb-cl { animation: pl-rb-cl 60s ease-in-out infinite alternate; }
.pl-rb.live .rb-cl2 { animation: pl-rb-cl2 80s ease-in-out infinite alternate; }
.pl-rb.live .rb-sun { animation: pl-rb-sun 9s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.pl-rb.live .rb-gl1 { animation: pl-rb-gl 2.6s ease-in-out infinite; }
.pl-rb.live .rb-gl2 { animation: pl-rb-gl 2.6s ease-in-out -1.3s infinite; }
.pl-rb.live .rb-train { animation: pl-rb-train 16s linear infinite; }
@keyframes pl-rb-cl { from { transform: translateX(-30px); } to { transform: translateX(40px); } }
@keyframes pl-rb-cl2 { from { transform: translateX(25px); } to { transform: translateX(-35px); } }
@keyframes pl-rb-sun { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes pl-rb-gl { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
/* the train is drawn mid-bridge (x 600): it enters from off the left, crosses in 9 s and leaves off the right, then the
   bridge is empty for the rest of the loop */
@keyframes pl-rb-train { 0% { transform: translateX(-760px); } 56% { transform: translateX(560px); } 56.01%, 100% { transform: translateX(560px); visibility: hidden; } }
html.calm-motion .pl-rb *, html.gfx-low .pl-rb * { animation: none !important; }
html.calm-motion .pl-rb .rb-gl2, html.gfx-low .pl-rb .rb-gl2 { display: none; }
html.calm-motion .pl-rb .rb-gl1, html.gfx-low .pl-rb .rb-gl1 { opacity: .8; }
/* Dragonfire Crown (avatar ring dragonfire, Dragon Court): the crest ringed by the dragon's own scales between two gold
   rims (static/js/dragon_art.js), three gold horns rising from it like a crown and the jade pearl as its clasp; fire
   licks up between the horns (two flame layers breathing out of step, transform / opacity only) and embers rise off it.
   Every part is a .pl-ring, so row / inline (np-small) crests keep only the rim. */
.pl-ring.pl-df svg, .pl-ring.pl-df-fire svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pl-ring.pl-df svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }
.pl-ring.pl-df-fire { transform-origin: 50% 64%; }
.pl-ring.pl-df-fire.a { animation: pl-df-a 1.7s ease-in-out infinite; }
.pl-ring.pl-df-fire.b { animation: pl-df-b 2.3s ease-in-out infinite; }
@keyframes pl-df-a { 0%, 100% { transform: scale(1, 1); opacity: .95; } 50% { transform: scale(.97, 1.07); opacity: .7; } }
@keyframes pl-df-b { 0%, 100% { transform: scale(.98, .94); opacity: .35; } 45% { transform: scale(1.02, 1.08); opacity: .95; } }
.pl-ring.pl-df-emb { inset: calc(var(--sz) * -.3); }
.pl-df-emb b { position: absolute; left: var(--x); top: 22%; width: max(2px, calc(var(--sz) * .045)); height: max(2px, calc(var(--sz) * .045)); border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, #fff6d0 0 25%, #ffb347 50%, rgba(255,110,24,0) 72%); animation: pl-df-ember var(--d) ease-out var(--dl) infinite; }
@keyframes pl-df-ember { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--sz) * -.42)) scale(.4); } }
html.calm-motion .pl-ring.pl-df-fire, html.calm-motion .pl-df-emb b { animation: none !important; }
html.calm-motion .pl-df-emb { display: none; }
html.gfx-low .pl-ring.pl-df-fire.b, html.gfx-low .pl-df-emb { display: none; }
/* Vertical City (texture megacity, anim banner-megacity; Chrome Rain, static/js/chrome_art.js): looking straight up from
   the street - towers converging on a point above the banner, stacked into the smog, their windows lit, vertical neon
   signs in acid yellow, cyan and red down their edges, power lines strung across the gap and the House's hologram ad
   turning in it. Every part is its own whole layer: rain in two sheets (a tile falling by exactly its height, so it
   loops), two flying cars crossing (one behind the near towers, one in front), the signs stuttering in two groups, the
   hologram flickering and tearing sideways now and then, beads of rain on the lens. Reduce flashing: the signs and the
   hologram burn steady (the tear stays: it moves, it does not flash). Calm motion / low graphics: still; low graphics:
   one sheet of rain, no beads. */
.pl-mc { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-mc svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-mc > b { position: absolute; inset: 0; display: block; }
.pl-mc-rain { top: calc(var(--th) * -1) !important; background-repeat: repeat; background-size: var(--tw) var(--th); }
.pl-mc-rain.n { opacity: .8; }
.pl-mc.live .pl-mc-rain { animation: pl-mc-fall var(--d) linear infinite; }
@keyframes pl-mc-fall { from { transform: translateY(0); } to { transform: translateY(var(--th)); } }
.pl-mc-car { opacity: 0; }
.pl-mc.live .pl-mc-car.a { animation: pl-mc-car-a 9s linear infinite; }
.pl-mc.live .pl-mc-car.b { animation: pl-mc-car-b 13s linear -4s infinite; }
@keyframes pl-mc-car-a { 0% { transform: translateX(-75%); opacity: 1; } 55%, 100% { transform: translateX(75%); opacity: 1; } }
@keyframes pl-mc-car-b { 0% { transform: translateX(80%); opacity: 1; } 70%, 100% { transform: translateX(-80%); opacity: 1; } }
.pl-mc.live .pl-mc-sa { animation: pl-mc-stut 5.3s steps(1) infinite; }
.pl-mc.live .pl-mc-sb { animation: pl-mc-stut-b 3.7s steps(1) -1.2s infinite; }
@keyframes pl-mc-stut { 0%, 100% { opacity: 1; } 62% { opacity: .35; } 63% { opacity: 1; } 65% { opacity: .2; } 67% { opacity: 1; } }
@keyframes pl-mc-stut-b { 0%, 100% { opacity: 1; } 40% { opacity: .1; } 44% { opacity: 1; } 47% { opacity: .4; } 49%, 80% { opacity: 1; } 81% { opacity: .5; } 82% { opacity: 1; } }
.pl-mc.live .pl-mc-holo { animation: pl-mc-holo 7s steps(1) infinite; }
.pl-mc.live .pl-mc-tear { animation: pl-mc-tear 7s steps(1) infinite; }
@keyframes pl-mc-holo { 0%, 100% { opacity: .92; } 30% { opacity: .55; } 31% { opacity: .92; } 70% { opacity: .2; } 71% { opacity: .95; } 73% { opacity: .5; } 74% { opacity: .92; } }
@keyframes pl-mc-tear { 0%, 69%, 75%, 100% { opacity: 0; transform: translateX(0); } 70% { opacity: 1; transform: translateX(1.6%); } 72% { opacity: 1; transform: translateX(-1.1%); } 74% { opacity: .8; transform: translateX(.6%); } }
html.calm-flash .pl-mc.live .pl-mc-sa, html.calm-flash .pl-mc.live .pl-mc-sb { animation: none; }
html.calm-flash .pl-mc.live .pl-mc-holo { animation: none; opacity: .92; }
html.calm-motion .pl-mc > b, html.gfx-low .pl-mc > b { animation: none !important; }
html.calm-motion .pl-mc-car, html.gfx-low .pl-mc-car, html.calm-motion .pl-mc-tear, html.gfx-low .pl-mc-tear { display: none; }
html.gfx-low .pl-mc-rain.n, html.gfx-low .pl-mc-bead { display: none; }
/* Cyberware (avatar ring cyberware, Chrome Rain): the crest set in a machined chrome implant ring - a bright chamfered
   rim, a dark seam channel cut into the band, panel seams across it, four hex screws, a junction block at the foot with
   a bundle of sheathed cabling running out of it round the lower left and back under the band, and a status LED in its
   housing at the upper right. Data pulses run the seam channel (two lit arcs, cyan and acid yellow, each its own layer
   turned by a transform at its own speed) and the LED blinks cyan. Every part is a .pl-ring, so row / inline crests
   keep only the rim. Reduce flashing: the LED breathes instead of blinking. Calm motion: still; low graphics: no pulses. */
.pl-ring.pl-cw svg, .pl-ring.pl-cw-p svg, .pl-ring.pl-cw-led svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pl-ring.pl-cw svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.85)); }
.pl-ring.pl-cw-p.a { animation: pl-spin 3.2s linear infinite; }
.pl-ring.pl-cw-p.b { animation: pl-spin 5.4s linear infinite reverse; }
.pl-ring.pl-cw-led { animation: pl-cw-led 2.2s steps(1) infinite; }
@keyframes pl-cw-led { 0%, 100% { opacity: 1; } 12% { opacity: .15; } 18% { opacity: 1; } 24% { opacity: .15; } 30% { opacity: 1; } }
html.calm-flash .pl-ring.pl-cw-led { animation: pl-cw-led-soft 3.2s ease-in-out infinite; }
@keyframes pl-cw-led-soft { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
html.calm-motion .pl-ring.pl-cw-p, html.calm-motion .pl-ring.pl-cw-led { animation: none !important; }
html.gfx-low .pl-ring.pl-cw-p { display: none; }
/* Deep Field (texture deepfield, anim banner-deepfield; Deep Field, static/js/space_art.js): one dark patch of sky full of
   galaxies at every depth, painted ONCE per page into five textures (deepFieldPaint: a far layer of faint red and gold
   smudges, two middle and two near layers of spirals face on and edge on, ellipticals and a few foreground stars). Live:
   the far layer drifts, and each nearer depth is a pair of layers that swim up out of the dark in turn - each fades in
   small, grows towards you and fades out as its twin comes up behind it (transform / opacity only) - while far galaxies
   flare now and then. Calm motion / low graphics: one still picture (far + the first middle and near layers, no flares);
   reduce flashing: the flares only glow. */
.pl-df { position: absolute; inset: 0; pointer-events: none; overflow: hidden; background:
    radial-gradient(60% 80% at 30% 40%, rgba(76,29,149,.16), transparent 70%), radial-gradient(50% 70% at 78% 62%, rgba(15,77,92,.16), transparent 70%); }
.pl-df > b { position: absolute; inset: -6%; display: block; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }
.pl-df .df-far { background-image: var(--sx-df-far); }
.pl-df .df-m1 { background-image: var(--sx-df-mid-a); }
.pl-df .df-m2 { background-image: var(--sx-df-mid-b); opacity: 0; }
.pl-df .df-n1 { background-image: var(--sx-df-near-a); }
.pl-df .df-n2 { background-image: var(--sx-df-near-b); opacity: 0; }
.pl-df.live .df-far { animation: pl-df-far 70s ease-in-out infinite alternate; }
.pl-df.live .df-m1, .pl-df.live .df-m2 { animation: pl-df-come 40s linear infinite; }
.pl-df.live .df-m2 { animation-delay: -20s; }
.pl-df.live .df-n1, .pl-df.live .df-n2 { animation: pl-df-come 26s linear infinite; }
.pl-df.live .df-n2 { animation-delay: -13s; }
@keyframes pl-df-far { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.05) translate(-1%, .5%); } }
@keyframes pl-df-come { 0% { opacity: 0; transform: scale(.78); } 22% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; transform: scale(1.32); } }
.pl-df > i { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; margin: -9px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, #fff 0 10%, rgba(224,242,254,.7) 22%, rgba(167,139,250,.25) 48%, rgba(167,139,250,0) 72%); }
.pl-df.live > i { animation: pl-df-flare 13s ease-out var(--dl) infinite; }
@keyframes pl-df-flare { 0%, 88%, 100% { opacity: 0; transform: scale(.3); } 91% { opacity: 1; transform: scale(1.1); } 96% { opacity: .35; transform: scale(.8); } }
html.calm-flash .pl-df.live > i { animation-name: pl-df-flare-soft; }
@keyframes pl-df-flare-soft { 0%, 84%, 100% { opacity: 0; transform: scale(.6); } 92% { opacity: .4; transform: scale(.8); } }
.pl-banner:has(> .pl-df) .pl-amb { background: radial-gradient(120% 90% at 50% 120%, rgba(0,0,0,.5), transparent 60%),
    radial-gradient(60% 120% at 0% 50%, rgba(0,0,0,.4), transparent 70%), radial-gradient(60% 120% at 100% 50%, rgba(0,0,0,.4), transparent 70%); }
.pl-banner:has(> .pl-df) .pl-edge { box-shadow: inset 0 0 0 1px rgba(165,180,252,.2), inset 0 0 60px rgba(124,58,237,.12) !important; }
html.calm-motion .pl-df > b, html.calm-motion .pl-df > i, html.gfx-low .pl-df > b, html.gfx-low .pl-df > i { animation: none !important; }
html.calm-motion .pl-df .df-m1, html.calm-motion .pl-df .df-n1, html.gfx-low .pl-df .df-m1, html.gfx-low .pl-df .df-n1 { opacity: 1; transform: none; }
html.calm-motion .pl-df .df-m2, html.calm-motion .pl-df .df-n2, html.calm-motion .pl-df > i,
    html.gfx-low .pl-df .df-m2, html.gfx-low .pl-df .df-n2, html.gfx-low .pl-df > i { display: none; }
/* Ringed Giant (avatar ring ringed; Deep Field, static/js/space_art.js): the crest is a gas giant - lit from the upper left,
   its night side darkening to the lower right under a thin icy limb - and broad rings of ice lie round it, tilted towards
   you: a face-on set of ring bands (ringBands: lilac, ice and cream ringlets, the Cassini Division and a narrower gap
   further out) turned slowly on the compositor inside a box squashed into an ellipse - the whole set behind the crest with
   the planet's shadow across its far half, and again in front where the near half crosses the crest - dimmer on the
   right, away from the sun.
   A small icy moon rides round outside the rings, behind the crest and then in front of it, and the sunlit tip of the
   rings glints. Every part is a .pl-ring, so row / inline (np-small) crests keep only the limb. Calm motion: still, the moon
   parked in front at the lower right; low graphics: no moon. */
.pl-av[data-ring="ringed"] > .pl-av-core { border: max(1px, calc(var(--sz) * .012)) solid #e0e7ff !important;
    box-shadow: 0 0 calc(var(--sz) * .05) rgba(224,242,254,.7), 0 0 calc(var(--sz) * .16) rgba(167,139,250,.35) !important; }
.pl-av[data-ring="ringed"] > .pl-av-core::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
    background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.14) 0, rgba(255,255,255,0) 30%, rgba(5,6,26,0) 52%, rgba(5,6,26,.5) 82%, rgba(1,2,8,.82) 100%); }
.np-small .pl-av[data-ring="ringed"] > .pl-av-core { box-shadow: 0 0 calc(var(--sz) * .12) rgba(196,181,253,.7) !important; }
.pl-ring.pl-rg-glow { inset: calc(var(--sz) * -.3); border-radius: 50%;
    background: radial-gradient(closest-side, rgba(224,242,254,0) 56%, rgba(196,181,253,.22) 63%, rgba(125,211,252,.08) 76%, transparent 100%); }
.pl-ring.pl-rg-disk, .pl-ring.pl-rg-orbit { inset: calc(var(--sz) * -.38); transform: rotate(-9deg) scaleY(.26); }
.pl-ring.pl-rg-disk { -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, rgba(0,0,0,.45) 100%); mask-image: linear-gradient(90deg, #000 0%, #000 30%, rgba(0,0,0,.45) 100%); }
/* the planet's shadow across the far rings, cast away from the sun (to the right, just behind the globe): a hole in the
   back layer's mask (the sun's fall-off, intersected with the far half shadowed and the near half whole), so the rings
   only dim there, on a light page as on a dark one */
.pl-ring.pl-rg-disk.back {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, rgba(0,0,0,.45) 100%),
        linear-gradient(90deg, #000 0%, #000 50%, rgba(0,0,0,.1) 53%, rgba(0,0,0,.1) 84%, #000 96%), linear-gradient(#000, #000);
    mask-image: linear-gradient(90deg, #000 0%, #000 30%, rgba(0,0,0,.45) 100%),
        linear-gradient(90deg, #000 0%, #000 50%, rgba(0,0,0,.1) 53%, rgba(0,0,0,.1) 84%, #000 96%), linear-gradient(#000, #000);
    -webkit-mask-size: 100% 100%, 100% 50%, 100% 50%; mask-size: 100% 100%, 100% 50%, 100% 50%;
    -webkit-mask-position: 0 0, 0 0, 0 100%; mask-position: 0 0, 0 0, 0 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-composite: source-in, source-over; mask-composite: intersect, add; }
/* the near half only where it crosses the crest (the crest, r 50% of --sz, is a tall ellipse in the squashed box: x 21.6 -
   78.4%), so the two halves never meet in a seam where both show */
.pl-ring.pl-rg-disk.front { clip-path: polygon(21.6% 50%, 78.4% 50%, 75.2% 100%, 24.8% 100%); z-index: 2; }
.pl-rg-spin { position: absolute; inset: 0; animation: pl-spin 60s linear infinite reverse; will-change: transform; }
.pl-rg-spin svg { display: block; width: 100%; height: 100%; }
.pl-ring.pl-rg-gl { inset: calc(var(--sz) * -.38); transform: rotate(-9deg); z-index: 3; }
.pl-rg-glint { position: absolute; left: 12%; top: 50%; width: max(3px, calc(var(--sz) * .18)); height: max(3px, calc(var(--sz) * .18)); margin: max(-1.5px, calc(var(--sz) * -.09));
    z-index: 3; pointer-events: none;
    background: radial-gradient(circle, #fff 0 7%, rgba(224,242,254,.55) 14%, rgba(125,211,252,0) 30%),
        linear-gradient(90deg, transparent 0%, rgba(240,249,255,.9) 50%, transparent 100%) center / 100% 7% no-repeat,
        linear-gradient(transparent 0%, rgba(240,249,255,.9) 50%, transparent 100%) center / 7% 64% no-repeat;
    animation: pl-rg-glint 5s ease-in-out infinite; }
@keyframes pl-rg-glint { 0%, 100% { opacity: .7; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
/* the moon: a point turning round the squashed orbit, the moon itself un-squashed and upright again inside it */
.pl-ring.pl-rg-orbit.front { z-index: 2; }
.pl-rg-orb { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: pl-rg-orb 14s linear infinite;
    transform: rotate(30deg) translateX(calc(var(--sz) * .97)) rotate(-30deg); }
@keyframes pl-rg-orb { from { transform: rotate(0deg) translateX(calc(var(--sz) * .97)) rotate(0deg); } to { transform: rotate(360deg) translateX(calc(var(--sz) * .97)) rotate(-360deg); } }
.pl-rg-moon { position: absolute; left: 0; top: 0; width: max(3px, calc(var(--sz) * .08)); height: max(3px, calc(var(--sz) * .08));
    margin: max(-1.5px, calc(var(--sz) * -.04)); border-radius: 50%; transform: scaleY(3.846) rotate(9deg);
    background: radial-gradient(circle at 35% 30%, #ffffff 0, #cdd7ea 45%, #5b6680 100%); box-shadow: 0 0 calc(var(--sz) * .04) rgba(224,242,254,.6); }
.pl-rg-orbit.front .pl-rg-moon { animation: pl-rg-front 14s steps(1) infinite; }
.pl-rg-orbit.back .pl-rg-moon { animation: pl-rg-back 14s steps(1) infinite; }
@keyframes pl-rg-front { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pl-rg-back { 0% { opacity: 0; } 50% { opacity: .8; } }
html.calm-motion .pl-rg-spin, html.calm-motion .pl-rg-glint, html.calm-motion .pl-rg-orb, html.calm-motion .pl-rg-moon { animation: none !important; }
html.calm-motion .pl-rg-orbit.back, html.gfx-low .pl-rg-orbit { display: none; }
/* Aura (avatar ring aura, Final Form, static/js/ink_art.js): the fighter's aura burning round the crest - cel-shaded
   flame in three hard bands (blaze orange with an ink outline, light orange, a white-hot core), its tongues rooted on the
   rim and longest at the top. Three drawings swapped in steps make the flicker. Every 9 s, hovered (border_aura) or on a
   winning round (.pl-au-win, Insignia.celebrate on a seat) it flares up tall and throws off a ring of speed lines.
   Reduce flashing: a slow cross-fade for the flicker, no ring of lines; calm motion / low graphics: one still drawing. */
.pl-ring.pl-au svg, .pl-ring.pl-au-up svg, .pl-ring.pl-au-ln svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pl-ring.pl-au { opacity: 0; animation: pl-au-flick .36s steps(1) infinite; }
.pl-ring.pl-au.f1 { animation-delay: -.12s; }
.pl-ring.pl-au.f2 { animation-delay: -.24s; }
@keyframes pl-au-flick { 0% { opacity: 1; } 33.33% { opacity: 0; } }
.pl-ring.pl-au-up { transform-origin: 50% 50%; opacity: 0; animation: pl-au-up 9s ease-out infinite; }
.pl-ring.pl-au-ln { opacity: 0; animation: pl-au-ln 9s ease-out infinite; }
@keyframes pl-au-up { 0%, 86% { opacity: 0; transform: scale(.9, .7); } 89% { opacity: 1; transform: scale(1.04, 1.12); } 95% { opacity: .9; transform: scale(1, 1); } 100% { opacity: 0; transform: scale(.96, .9); } }
@keyframes pl-au-ln { 0%, 87% { opacity: 0; transform: scale(.8); } 89% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }
.pl-av:hover .pl-ring.pl-au-up, .pl-av.pl-au-win .pl-ring.pl-au-up { animation: pl-au-up-now 1.2s ease-out 1; }
.pl-av:hover .pl-ring.pl-au-ln, .pl-av.pl-au-win .pl-ring.pl-au-ln { animation: pl-au-ln-now 1s ease-out 1; }
@keyframes pl-au-up-now { 0% { opacity: 0; transform: scale(.9, .7); } 22% { opacity: 1; transform: scale(1.04, 1.12); } 60% { opacity: .9; transform: scale(1, 1); } 100% { opacity: 0; transform: scale(.96, .9); } }
@keyframes pl-au-ln-now { 0% { opacity: 0; transform: scale(.8); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }
html.calm-flash .pl-ring.pl-au { animation: pl-au-fade 1.8s ease-in-out infinite; }
html.calm-flash .pl-ring.pl-au.f1 { animation-delay: -.6s; }
html.calm-flash .pl-ring.pl-au.f2 { animation-delay: -1.2s; }
@keyframes pl-au-fade { 0%, 100% { opacity: 0; } 33% { opacity: 1; } 66% { opacity: 0; } }
html.calm-flash .pl-ring.pl-au-ln { display: none; }
html.calm-motion .pl-ring.pl-au, html.gfx-low .pl-ring.pl-au { animation: none !important; }
html.calm-motion .pl-ring.pl-au.f0, html.gfx-low .pl-ring.pl-au.f0 { opacity: 1; }
html.calm-motion .pl-ring.pl-au-up, html.calm-motion .pl-ring.pl-au-ln, html.gfx-low .pl-ring.pl-au-up, html.gfx-low .pl-ring.pl-au-ln { display: none; }
/* The Magnifier (avatar ring magnifier, Noir, static/js/noir_art.js): the crest seen through a detective's magnifying
   glass - a blackened steel rim with a bright silver bevel either side, its silver ferrule and black handle reaching
   down to the right (kept inside the ring's box, so it never reaches the name or the level tab), and over the crest the
   lens itself (.pl-mg-lens, the crest's own box): a faint cool tint, darker towards its edge, and the curved reflection
   of a window. Every 7 s a glint of light sweeps across the glass (one transform). Reduce flashing: the glint at a third;
   calm motion / low graphics: no glint. */
.pl-ring.pl-mg svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.75)); }
.pl-ring.pl-mg-lens { inset: 0; border-radius: 50%; overflow: hidden; z-index: 1;
    background: radial-gradient(circle at 50% 50%, rgba(230,231,234,0) 58%, rgba(52,55,61,.28) 86%, rgba(12,13,15,.5) 100%),
        radial-gradient(120% 90% at 30% 18%, rgba(230,231,234,.16), rgba(185,188,194,.05) 45%, transparent 70%); }
.pl-ring.pl-mg-lens::before { content: ''; position: absolute; left: 14%; top: 9%; width: 44%; height: 30%; border-radius: 50%;
    border-top: max(1px, calc(var(--sz) * .03)) solid rgba(255,255,255,.4); transform: rotate(-24deg); filter: blur(.4px); }
.pl-ring.pl-mg-lens > b { position: absolute; top: -30%; bottom: -30%; left: 0; width: 34%; display: block; opacity: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.08) 30%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.08) 70%, rgba(255,255,255,0));
    transform: translateX(-120%) skewX(-22deg); animation: pl-mg-glint 7s ease-in-out infinite; }
@keyframes pl-mg-glint { 0%, 62% { opacity: 0; transform: translateX(-120%) skewX(-22deg); } 64% { opacity: 1; } 84% { opacity: 1; } 86%, 100% { opacity: 0; transform: translateX(320%) skewX(-22deg); } }
html.calm-flash .pl-ring.pl-mg-lens > b { animation-name: pl-mg-glint-soft; }
@keyframes pl-mg-glint-soft { 0%, 62% { opacity: 0; transform: translateX(-120%) skewX(-22deg); } 64%, 84% { opacity: .33; } 86%, 100% { opacity: 0; transform: translateX(320%) skewX(-22deg); } }
html.calm-motion .pl-ring.pl-mg-lens > b, html.gfx-low .pl-ring.pl-mg-lens > b { animation: none; display: none; }
html.gfx-low .pl-ring.pl-mg svg { filter: none; }
/* The Manor (texture manor, anim banner-manor; Grim's Manor, static/js/manor_art.js): Grim's house on its hill at midnight,
   behind its gate. Live: two sheets of cloud drift, the candlelit windows gutter (two flickers in steps, out of step) and
   the rooms dim in turn as if a candle were carried out (a slow fade, one room at a time), the ghost-light goes round six
   windows one at a time (3 s each, fading across), the ravens wheel round the spire (each on its own orbit and pace,
   beating its wings, then gliding), the mist drifts along the foot of the hill and the pillar candles flicker. Every part
   that moves is its own layer (the windows and the candles are small SVGs of their own, so the house and the fence never
   repaint). Reduce flashing: the windows and the candles burn steady (the rooms still dim slowly, the ghost still fades
   from window to window). Calm motion / low graphics: one still night - the ghost-light in the tower, the ravens where they
   are; low graphics: no mist, one sheet of cloud. */
.pl-mn { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-mn svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-mn > b { position: absolute; inset: 0; display: block; }
.pl-mn > .mn-cl, .pl-mn > .mn-mist { left: -6%; right: -6%; }
.pl-mn .mn-gh, .pl-mn .mn-flap.b { opacity: 0; }
.pl-mn .mn-gh.s0 { opacity: 1; }
.pl-mn .mn-fl { transform-box: fill-box; transform-origin: 50% 100%; }
.pl-mn.live .mn-cl.a { animation: pl-mn-drift 70s ease-in-out infinite alternate; }
.pl-mn.live .mn-cl.b { animation: pl-mn-drift 96s ease-in-out -30s infinite alternate-reverse; }
.pl-mn.live .mn-mist.a { animation: pl-mn-drift 40s ease-in-out infinite alternate; }
.pl-mn.live .mn-mist.b { animation: pl-mn-drift 55s ease-in-out -20s infinite alternate-reverse; }
@keyframes pl-mn-drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.pl-mn.live .mn-w.f0 { animation: pl-mn-f0 4.6s steps(1) infinite; }
.pl-mn.live .mn-w.f1 { animation: pl-mn-f1 6.3s steps(1) infinite; }
@keyframes pl-mn-f0 { 0%, 100% { opacity: 1; } 37% { opacity: .62; } 39% { opacity: 1; } 41% { opacity: .78; } 43% { opacity: 1; } }
@keyframes pl-mn-f1 { 0%, 100% { opacity: 1; } 55% { opacity: .72; } 57% { opacity: .95; } 72% { opacity: .58; } 74% { opacity: 1; } }
.pl-mn.live .mn-room { animation: pl-mn-room 15s ease-in-out infinite; }
.pl-mn.live .mn-room.r1 { animation-delay: -5s; }
.pl-mn.live .mn-room.r2 { animation-delay: -10s; }
@keyframes pl-mn-room { 0%, 52%, 100% { opacity: 1; } 60%, 70% { opacity: .15; } 78% { opacity: 1; } }
.pl-mn.live .mn-gh { animation: pl-mn-ghost 18s ease-in-out infinite; }
@keyframes pl-mn-ghost { 0%, 14% { opacity: 1; } 17%, 97% { opacity: 0; } 100% { opacity: 1; } }
.pl-mn.live .mn-orb { animation: pl-spin 11s linear infinite; }
.pl-mn.live .mn-orb-c { animation: pl-mn-unspin 11s linear infinite; }
@keyframes pl-mn-unspin { to { transform: rotate(-360deg); } }
.pl-mn.live .mn-flap { animation: pl-mn-flap 2.6s steps(1) infinite; }
.pl-mn.live .mn-flap.b { animation-name: pl-mn-flap-b; }
@keyframes pl-mn-flap { 0%, 18%, 36%, 54% { opacity: 1; } 9%, 27%, 45% { opacity: 0; } }
@keyframes pl-mn-flap-b { 0%, 18%, 36%, 54% { opacity: 0; } 9%, 27%, 45% { opacity: 1; } }
.pl-mn.live .mn-fl { animation: pl-mn-fl 1.7s ease-in-out infinite; }
.pl-mn.live .mn-fire g + g .mn-fl { animation-duration: 2.3s; animation-delay: -.6s; }
@keyframes pl-mn-fl { 0%, 100% { transform: scale(1, 1); } 22% { transform: scale(.9, 1.14) skewX(3deg); } 41% { transform: scale(1.05, .93); } 63% { transform: scale(.94, 1.1) skewX(-3deg); } 82% { transform: scale(1.02, .97); } }
.pl-mn.live .mn-halo { animation: pl-mn-halo 2.9s steps(1) infinite; }
@keyframes pl-mn-halo { 0%, 100% { opacity: 1; } 31% { opacity: .78; } 34% { opacity: .95; } 66% { opacity: .7; } 69% { opacity: 1; } }
html.calm-flash .pl-mn.live .mn-w, html.calm-flash .pl-mn.live .mn-halo, html.calm-flash .pl-mn.live .mn-fl { animation: none; }
html.calm-motion .pl-mn *, html.gfx-low .pl-mn * { animation: none !important; }
html.gfx-low .pl-mn > .mn-mist, html.gfx-low .pl-mn > .mn-cl.b { display: none; }
.pl-banner:has(> .pl-mn) .pl-amb { background: radial-gradient(120% 90% at 50% 120%, rgba(0,0,0,.5), transparent 60%),
    radial-gradient(60% 120% at 0% 50%, rgba(0,0,0,.42), transparent 70%), radial-gradient(60% 120% at 100% 50%, rgba(0,0,0,.42), transparent 70%); }
.pl-banner:has(> .pl-mn) .pl-edge { box-shadow: inset 0 0 0 1px rgba(168,240,216,.16), inset 0 -40px 70px -40px rgba(168,240,216,.2) !important; }
/* Wrought Iron (avatar ring wrought; Grim's Manor, static/js/manor_art.js): the manor's ironwork round the crest - paired
   C-scrolls collared back to back between two hammered rails, spear finials standing off it and a raven perched on the
   top rail. A thread of ghost-light creeps round the scrolls (the mint drawing held still inside a turning conic mask:
   the outer <b> turns the mask, the inner one turns the drawing back), and every 9 s the raven turns its head to look back
   over its shoulder, then front again (its head is a layer of its own, flipped about its middle). Every part is a
   .pl-ring, so row / inline crests keep only the rim. Calm motion: still (the thread resting at the upper left, the raven
   facing out); low graphics: no thread. */
.pl-ring.pl-wi svg, .pl-ring.pl-wi-gl svg, .pl-ring.pl-wi-hd svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pl-ring.pl-wi svg { filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.85)); }
.pl-wi-gl b { position: absolute; inset: 0; display: block; }
.pl-wi-gl > b { animation: pl-spin 10s linear infinite;
    -webkit-mask-image: conic-gradient(from 0deg, transparent 0deg 230deg, rgba(0,0,0,.35) 300deg, #000 344deg, transparent 352deg);
    mask-image: conic-gradient(from 0deg, transparent 0deg 230deg, rgba(0,0,0,.35) 300deg, #000 344deg, transparent 352deg); }
.pl-wi-gl > b > b { animation: pl-spin 10s linear infinite reverse; }
.pl-ring.pl-wi-hd { animation: pl-wi-look 9s steps(1) infinite; }
@keyframes pl-wi-look { 0%, 100% { transform: none; } 68% { transform: scaleX(-1); } 82% { transform: none; } }
html.calm-motion .pl-wi-gl > b, html.calm-motion .pl-wi-gl > b > b, html.calm-motion .pl-ring.pl-wi-hd { animation: none !important; }
html.gfx-low .pl-ring.pl-wi-gl { display: none; }
/* Roulette Wheel (Legendary, rouletteSVG): the ball runs the track, slows and drops into 32 red at the top every 11 s
   (.pl-rl-ball turns, its <b> drops on a transform); the pocket lights gold (.rl-win) and sparks jump off it
   (.pl-rl-spk b); hovered, it drops at once (border_roulette). Reduce flashing: the pocket glows softly, no sparks. Calm
   motion: the ball rests in its pocket. Low graphics: no sparks. */
.pl-ring-roulette svg { filter: drop-shadow(0 2px 3px rgba(0,0,0,.75)); }
.pl-ring.pl-rl-ball { inset: calc(var(--sz) * -.1215); animation: pl-rl-run 11s linear infinite; }
.pl-rl-ball b { position: absolute; left: 50%; top: 0; width: max(4px, calc(var(--sz) * .075)); height: max(4px, calc(var(--sz) * .075)); margin-left: max(-2px, calc(var(--sz) * -.0375));
    border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e7e5e4 45%, #a8a29e 75%, #57534e); box-shadow: 0 1px 2px rgba(0,0,0,.7);
    animation: pl-rl-fall 11s linear infinite; }
@keyframes pl-rl-run { 0% { transform: rotate(0); animation-timing-function: cubic-bezier(.25,.55,.35,1); } 52%, 100% { transform: rotate(-1800deg); } }
@keyframes pl-rl-fall { 0%, 47% { transform: translateY(0); opacity: 1; } 53% { transform: translateY(calc(var(--sz) * .055)); }
    51% { transform: translateY(calc(var(--sz) * .03)); } 92% { transform: translateY(calc(var(--sz) * .055)); opacity: 1; } 96% { opacity: 0; } 99% { transform: translateY(0); opacity: 0; } 100% { opacity: 1; } }
.pl-ring-roulette .rl-win { opacity: 0; animation: pl-rl-win 11s ease-out infinite; }
@keyframes pl-rl-win { 0%, 52%, 90%, 100% { opacity: 0; } 55% { opacity: .9; } 72% { opacity: .45; } }
.pl-rl-spk b { position: absolute; left: 50%; top: 9.5%; width: max(2px, calc(var(--sz) * .045)); height: max(2px, calc(var(--sz) * .045)); border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, #fff 0 30%, #ffd877 55%, rgba(255,180,58,0) 72%); animation: pl-rl-spark 11s ease-out var(--dl) infinite; }
@keyframes pl-rl-spark { 0%, 53% { opacity: 0; transform: translate(0, 0) scale(1); } 55% { opacity: 1; } 63%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }
.pl-av:hover .pl-ring.pl-rl-ball { animation: pl-spin 1.1s cubic-bezier(.15,.7,.3,1) 1 forwards; }
.pl-av:hover .pl-rl-ball b { animation: pl-rl-drop 1.1s ease-in forwards; }
@keyframes pl-rl-drop { 0%, 70% { transform: translateY(0); } 100% { transform: translateY(calc(var(--sz) * .055)); } }
html.calm-flash .pl-ring-roulette .rl-win { animation-name: pl-rl-win-soft; }
@keyframes pl-rl-win-soft { 0%, 50%, 92%, 100% { opacity: 0; } 62%, 78% { opacity: .35; } }
html.calm-flash .pl-rl-spk, html.calm-motion .pl-rl-spk, html.gfx-low .pl-rl-spk { display: none; }
html.calm-motion .pl-ring.pl-rl-ball, html.calm-motion .pl-ring-roulette .rl-win { animation: none !important; }
html.calm-motion .pl-rl-ball b { animation: none !important; transform: translateY(calc(var(--sz) * .055)); }
html.calm-motion .pl-thread::before, html.calm-motion .pl-thread::after, html.calm-motion .pl-star, html.calm-motion .pl-throw, html.calm-motion .pl-smoke, html.calm-motion .pl-blot::before,
    html.calm-motion .pl-ring-chain .ing-g, html.calm-motion .pl-ring-neon g, html.calm-motion .pl-rl-ball, html.calm-motion .pl-rl-ball b { animation: none !important; }
/* ---- The Fortuna set (career reward: the Rites of Fortuna; static/js/fortuna_art.js) ----
   Fors Fortuna (texture fors, anim banner-fors; forsHTML): her June festival on the Tiber at dusk - a porphyry sky
   warming to amber at the horizon, the Aventine's hills, pines and a far bridge in shadow, and on the right bank her
   round marble temple (a ring of columns under a gilt dome, its doorway lit, oak festoons on the entablature, braziers
   on the steps) over its reflection. Three garlanded boats drift down toward it, torches at prow and stern, their light
   laid on the water in shimmering columns. Every 12 s a torch on the farthest boat flares and its light runs downriver
   along the water from boat to boat, each torch catching as it passes, to the temple, whose braziers and doorway
   answer. Each boat is its own layer (drift and bob are transforms on it, so its torches and flare go with it); the
   flames and their reflections cross-fade between two drawings; floating oil lamps dot the river. Same 1000 x 300 slice
   box as the other scenes: the temple stands at 668 and the boats ride at y 186 - 204, so a profile strip (y 95 - 205)
   holds the dome, the boats and their torches and a Store card (x 250 - 750) the two near boats and the temple. Reduce
   flashing: the flare is a slow soft glow at a third of its light, no bright run. Calm motion / low graphics: one still
   evening, every torch lit. */
.pl-ff { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl-ff svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-ff b { position: absolute; inset: 0; display: block; }
.pl-ff .ff-f1, .pl-ff .ff-fl, .pl-ff .ff-tfl { opacity: 0; }
.pl-ff .ff-run { opacity: 0; }
.pl-ff.live .ff-b { animation: pl-ff-drift var(--d) ease-in-out var(--dl) infinite alternate; }
.pl-ff.live .ff-bob { animation: pl-ff-bob var(--bd) ease-in-out infinite alternate; }
.pl-ff.live .ff-f0 { animation: pl-ff-flick 1.3s ease-in-out var(--fd, 0s) infinite alternate; }
.pl-ff.live .ff-f1 { animation: pl-ff-flick 1.3s ease-in-out calc(var(--fd, 0s) - 1.3s) infinite alternate; }
.pl-ff.live .ff-fl { animation: pl-ff-flare 12s ease-out var(--fl) infinite; }
.pl-ff.live .ff-tfl { animation: pl-ff-temple 12s ease-out infinite; }
.pl-ff.live .ff-run { animation: pl-ff-run 12s linear infinite; }
@keyframes pl-ff-drift { from { transform: translateX(-1.1%); } to { transform: translateX(1.1%); } }
@keyframes pl-ff-bob { from { transform: translateY(-.5%); } to { transform: translateY(.6%); } }
@keyframes pl-ff-flick { from { opacity: 1; } to { opacity: 0; } }
@keyframes pl-ff-flare { 0%, 54% { opacity: 0; } 56.5% { opacity: 1; } 62% { opacity: .55; } 72%, 100% { opacity: 0; } }
@keyframes pl-ff-temple { 0%, 74% { opacity: 0; } 77.5% { opacity: 1; } 84% { opacity: .6; } 96%, 100% { opacity: 0; } }
/* the run: from under the far boat's prow torch (188,191) to the middle boat's (371,199), the near boat's (560,209) and
   the temple's landing (664,184); each torch's flare (--fl) starts as it arrives */
@keyframes pl-ff-run { 0%, 54.5% { opacity: 0; transform: translate(188px, 191px) scaleX(.6); } 56.5% { opacity: 1; transform: translate(205px, 192px) scaleX(1); }
    62.5% { transform: translate(371px, 199px) scaleX(1.2); } 68.5% { transform: translate(560px, 209px) scaleX(1.2); }
    75.5% { opacity: .9; transform: translate(664px, 184px) scaleX(.8); } 79%, 100% { opacity: 0; transform: translate(676px, 182px) scaleX(.4); } }
html.calm-flash .pl-ff.live .ff-fl { animation-name: pl-ff-flare-soft; }
html.calm-flash .pl-ff.live .ff-tfl { animation-name: pl-ff-temple-soft; }
html.calm-flash .pl-ff.live .ff-run { animation-name: pl-ff-run-soft; }
@keyframes pl-ff-flare-soft { 0%, 50% { opacity: 0; } 60%, 64% { opacity: .33; } 80%, 100% { opacity: 0; } }
@keyframes pl-ff-temple-soft { 0%, 68% { opacity: 0; } 79%, 84% { opacity: .33; } 98%, 100% { opacity: 0; } }
@keyframes pl-ff-run-soft { 0%, 54.5% { opacity: 0; transform: translate(188px, 191px) scaleX(.6); } 58% { opacity: .3; }
    62.5% { transform: translate(371px, 199px) scaleX(1.2); } 68.5% { transform: translate(560px, 209px) scaleX(1.2); }
    75.5% { opacity: .3; transform: translate(664px, 184px) scaleX(.8); } 80%, 100% { opacity: 0; transform: translate(676px, 182px) scaleX(.4); } }
html.calm-motion .pl-ff *, html.gfx-low .pl-ff * { animation: none !important; }
html.calm-motion .pl-ff .ff-f1, html.gfx-low .pl-ff .ff-f1, html.calm-motion .pl-ff .ff-run, html.gfx-low .pl-ff .ff-run { display: none; }
/* Corona Civica (avatar ring civica; civicaRing): Rome's civic crown round the crest - a gilt oak crown (lobed leaves
   overlapping along two branches, acorns standing outward round the brow, tied at the foot with a porphyry ribbon) over
   Fortuna's steering oar and cornucopia crossed behind the crest (the oar's blade, an oak leaf enamelled in porphyry on
   it, out at the lower right; the horn's mouth spilling grapes, a pomegranate and wheat at the lower left) and, behind
   everything, the rim of her wheel - felloe, studs and spoke ends standing outside the crest - turning once in 90 s,
   forever. Every 11 s a glint of light runs round the crown and catches at the brow; hovered, it sweeps the crown at
   once. Small crests (under 50 px: rows, chat, seats) get a bolder crown of fewer, larger leaves and a plainer wheel;
   under 40 px the oar and horn are left out. Reduce flashing: the glint at a third, no hover sweep. Calm motion: the
   wheel and the glint hold. Low graphics: no glint, no shadow filter. Every part is a .pl-ring, so row / inline (np-
   small) crests keep only the gilt rim. */
.pl-ring.pl-cv svg, .pl-ring.pl-cv-arms svg, .pl-ring.pl-cv-wheel svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pl-ring.pl-cv svg { filter: drop-shadow(0 1px 1.5px rgba(20,4,10,.85)); }
.pl-ring.pl-cv-arms svg { filter: drop-shadow(0 1px 1.2px rgba(20,4,10,.7)); }
.pl-ring.pl-cv-wheel { animation: pl-spin 90s linear infinite; }
.pl-ring.pl-cv-orbit { animation: pl-spin 11s linear infinite; }
.pl-cv-orbit > i { position: absolute; left: 50%; top: 9%; width: 0; height: 0; animation: pl-spin 11s linear infinite reverse; }
.pl-cv-orbit b { position: absolute; left: calc(var(--sz) * -.13); top: calc(var(--sz) * -.13); width: calc(var(--sz) * .26); height: calc(var(--sz) * .26);
    border-radius: 50%; opacity: .25; transform: scale(.5);
    background: radial-gradient(circle, #fffaf0 0 8%, rgba(255,243,207,.9) 14%, rgba(242,211,138,.45) 28%, rgba(212,166,74,.12) 46%, transparent 66%);
    animation: pl-cv-glint 11s ease-in-out infinite; }
.pl-cv-orbit b::before { content: ''; position: absolute; left: -40%; right: -40%; top: 48%; height: 4%;
    background: linear-gradient(90deg, transparent, rgba(255,243,207,.85) 45%, #fffaf0 50%, rgba(255,243,207,.85) 55%, transparent); }
@keyframes pl-cv-glint { 0% { opacity: .25; transform: scale(.5); } 4% { opacity: 1; transform: scale(1.15); } 9% { opacity: .85; transform: scale(.9); }
    20%, 100% { opacity: .25; transform: scale(.5); } }
.pl-ring.pl-cv-sheen { border-radius: 50%; overflow: hidden; opacity: 0; }
.pl-ring.pl-cv-sheen::before { content: ''; position: absolute; inset: -20%;
    background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,243,207,0) 74%, rgba(255,243,207,.55) 86%, rgba(255,243,207,0) 98%);
    -webkit-mask: radial-gradient(closest-side, transparent 66%, #000 70%, #000 92%, transparent 96%); mask: radial-gradient(closest-side, transparent 66%, #000 70%, #000 92%, transparent 96%); }
.pl-av:hover .pl-ring.pl-cv-sheen { animation: pl-cv-sheen 1.4s ease-out 1; }
@keyframes pl-cv-sheen { 0% { opacity: 0; transform: rotate(-90deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: rotate(270deg); } }
html.calm-flash .pl-cv-orbit b { animation-name: pl-cv-glint-soft; }
@keyframes pl-cv-glint-soft { 0% { opacity: .2; transform: scale(.55); } 6%, 10% { opacity: .33; transform: scale(.65); } 22%, 100% { opacity: .2; transform: scale(.55); } }
html.calm-flash .pl-ring.pl-cv-sheen { display: none; }
html.calm-motion .pl-ring.pl-cv-wheel, html.calm-motion .pl-ring.pl-cv-orbit, html.calm-motion .pl-cv-orbit > i, html.calm-motion .pl-cv-orbit b { animation: none !important; }
html.calm-motion .pl-ring.pl-cv-sheen { display: none; }
html.gfx-low .pl-ring.pl-cv-orbit, html.gfx-low .pl-ring.pl-cv-sheen { display: none; }
/* Reduce flashing: the Neon Tube ring burns steady (no idle flicker). */
html.calm-flash .pl-ring-neon g { animation: none; }
/* Low graphics (COMFORT_AND_PERFORMANCE_PLAN.md 7; the loops already hold on their first frame, SceneLoop): no smoke or
   sparkles, and the rings, sigils and chips without their blur and glow filters (the gilded rose keeps its gold). */
html.gfx-low .pl-ring-chain .ing-g { animation: none; }
html.gfx-low .pl-smoke, html.gfx-low .pl-blot::before { display: none; }
html.gfx-low .pl-sg > svg.pl-sg-ico, html.gfx-low .pl-ring, html.gfx-low .pl-ring svg, html.gfx-low .pl-chip-real,
    html.gfx-low .pl-throw:not(.gilded) { filter: none; }
html.gfx-low .pl-throw.gilded { filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.15); }
