/* the fight HUD: curse, blessing and quest lists, the foe block, the Gilded Run and Spire HUDs, status rings, damage numbers, curses lifted, the timed continue (index.html links the css/ files in cascade order: a later file wins a tie) */
/* the top left in a fight (#kLists): the combat curses held (curseHUD, curses.js), the blessings (blessings.js) and the twist (mods.js) as ONE row of small sigils (#kSigils), 24px down on the 36px left edge:
   a curse's sigil on a red ring and a dark red ground, a blessing's on a gold ring and a dark gold ground (told apart by colour alone: no headings), the twist's a hexagon in its colour.
   The rows' names and lines are not drawn there; hud.js kListHUD names every row in #kSay, under the sigils, for the whole fight, a sigil lit (.say) for a moment as it comes (each fight's start) or is used up.
   Under it the left column (#kLeft, top left, 12px under #kLists when that holds a list: --kl-top, set by boonListHUD, hud.js, in the column's own units): the boons' tiles (#boons below), then dev mode's panel.
   No box of their own; sizes are real px, the column and the row grow 10% by --hx, each part by its HUD Scale (css/hud.css: --hs-curses, --hs-twist, --hs-boons) */
#kLists{position:absolute;left:36px;top:24px;zoom:calc(1 + .1 * var(--hx));display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:max-content}
#kSigils{display:flex;flex-direction:row;align-items:center;gap:12px;width:max-content}
#kLeft{position:absolute;left:36px;top:var(--kl-top,24px);zoom:calc(1 + .1 * var(--hx));display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:max-content}
#curseHud,#blessHud,#twistHud{display:flex;flex-direction:row;align-items:center;gap:5px;width:max-content}
#curseHud:empty,#blessHud:empty,#twistHud:empty{display:none}
#curseHud .hd,#blessHud .hd,#twistHud .hd,#curseHud .col,#blessHud .col,#twistHud .col{display:none} /* (the heading, the name and the line: the colours tell the lists apart, #kSay names them) */
#curseHud .row,#blessHud .row,#twistHud .row{display:flex;transition:filter .3s}
#curseHud .sig,#blessHud .sig{display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:30px;height:30px;border-radius:50%;border:2px solid #c0584a;background:radial-gradient(circle,rgba(70,14,14,.92),rgba(20,4,6,.94) 70%);box-shadow:0 0 8px rgba(200,60,40,.45),0 0 6px #000}
#blessHud .sig{border-color:#e8c66a;background:radial-gradient(circle,rgba(60,46,12,.92),rgba(16,12,3,.94) 70%);box-shadow:0 0 8px rgba(240,200,110,.45),0 0 6px #000}
#curseHud .sig svg,#blessHud .sig svg{width:18px;height:18px;fill:none;stroke:var(--c);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#twistHud .sig{display:inline-flex;align-items:center;justify-content:center;flex:none;width:31px;height:31px;clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);background:var(--c)}
#twistHud .sig i{display:flex;align-items:center;justify-content:center;width:27px;height:27px;clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);background:radial-gradient(circle,#0c1a26,#050a10 75%)}
#twistHud .sig svg{width:17px;height:17px;fill:none;stroke:var(--c);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#curseHud .row.say,#blessHud .row.say,#twistHud .row.say{filter:brightness(1.35) drop-shadow(0 0 5px var(--c))} /* (named in #kSay just now) */
#blessHud .row.used{opacity:.45;filter:grayscale(.7)} /* (a blessing used up: dim for the rest of the fight) */
/* the names (#kSay, hud.js kListHUD): a chip per row, in the row's colour, under the row of sigils for the whole fight, fading in as it comes; in #kLists' flow, wrapping under itself
   short of the act line at the top centre (max-width), so #kLists' height holds every line and the boons' column sits under it (boonListHUD); a blessing used up dimmed (.used), as its sigil */
#kSay{zoom:var(--hs-curses,1);display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:max-content;max-width:400px;pointer-events:none}
#kSay:empty{display:none}
#kSay span{display:inline-flex;align-items:baseline;gap:8px;padding:3px 10px 4px 8px;border-left:2px solid var(--c);border-radius:0 5px 5px 0;background:linear-gradient(90deg,rgba(8,6,6,.82),rgba(8,6,6,.55));font-family:var(--ui-head);font-size:15px;letter-spacing:.04em;line-height:1.1;color:color-mix(in srgb,var(--c) 80%,#fff);text-shadow:0 0 6px #000;white-space:nowrap;animation:kSayIn .3s ease-out}
#kSay span.used{opacity:.6}
#kSay span i{font:italic 13px Georgia,serif;letter-spacing:0;color:#e8dfc0}
@keyframes kSayIn{from{opacity:0;translate:-8px 0}}
/* the run's screens' "Cursed here" list (curses.js cursePlateHTML), in #curseHud's style at full size */
#cursePlate{position:absolute;left:36px;top:96px;z-index:2;display:flex;flex-direction:column;gap:10px;padding:12px 18px 12px 14px;border-left:2px solid rgba(160,50,60,.6);background:linear-gradient(90deg,rgba(16,5,8,.94),rgba(16,5,8,.82) 75%,rgba(16,5,8,0));border-radius:0;font-family:var(--ui-head);pointer-events:none}
#cursePlate:empty{display:none}
#cursePlate .hd{font:15px Georgia,serif;letter-spacing:.06em;color:#d0665a;text-transform:uppercase;text-shadow:0 1px 3px rgba(0,0,0,.85)}
#cursePlate .row{display:flex;align-items:center;gap:12px}#cursePlate .row.dim{opacity:.8}
#cursePlate .sig{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;border-radius:50%;border:1.5px solid var(--c);background:radial-gradient(circle,rgba(30,10,14,.92),rgba(6,4,6,.92) 70%);box-shadow:0 0 10px color-mix(in srgb,var(--c) 45%,transparent),0 0 6px #000}
#cursePlate .sig svg{width:21px;height:21px;fill:none;stroke:var(--c);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#cursePlate .col{display:flex;flex-direction:column;gap:1px}
#cursePlate .nm{font-size:19px;letter-spacing:.02em;color:color-mix(in srgb,var(--c) 70%,#fff);text-shadow:0 1px 3px rgba(0,0,0,.85)}
#cursePlate .tx{font:15px Georgia,serif;color:#ece4d6;text-shadow:0 0 4px #000}
#cursePlate .hd.bl{color:#f0d27a}#cursePlate .row.bl .nm{color:color-mix(in srgb,var(--c) 85%,#fff)}
#cursePlate.many{gap:5px;padding:10px 18px 10px 14px}#cursePlate:has(>.pc){flex-direction:row;gap:40px}#cursePlate .pc{display:flex;flex-direction:column;gap:5px}#cursePlate.many .col{flex-direction:row;align-items:baseline;gap:12px}#cursePlate.many .tx{white-space:nowrap;opacity:.85}#cursePlate.many .sig{width:26px;height:26px}#cursePlate.many .sig svg{width:16px;height:16px}#cursePlate.many .nm{font-size:17px;white-space:nowrap} /* four or more curses and blessings: one line each, the effect beside the name, so the list grows across, not down, and stays clear of the map: #858 */
/* the fight's boons (#boons, refreshBoonHUD in boons.js; boonListHUD in hud.js): a small tile per boon held, wrapping in rows under the curses: its glyph in its tier's colour on a dark tile, the rank
   (a boon with ranks) a small badge at its foot right; the name is not drawn (the tile's font-size 0 hides its text: the details and the pause list the names). A new tier starts a new row (.rsep).
   A boon at work (.live: hud-info.js boonLive) lights its tile and shows its value over it, a timed one (.timed) with a line draining along its foot from --u; a one-off fired flashes (.pop), then dims
   (.spent). .compact (boonListHUD): smaller tiles when the column would run past the flask card */
#boons{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 9px;width:max-content;max-width:310px;font-family:Georgia,serif;font-size:17px;color:#e8dfc4;text-shadow:0 0 4px #000,0 0 8px #000}
#boons span{position:relative;display:flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:36px;height:36px;font-size:0;border-radius:7px;border:1px solid color-mix(in srgb,currentColor 38%,transparent);background:radial-gradient(circle at 50% 40%,rgba(22,20,16,.88),rgba(6,6,8,.92) 75%);box-shadow:0 0 6px rgba(0,0,0,.85);transform-origin:center}
#boons .rsep{flex-basis:100%;height:0}
#boons b{font-size:23px;line-height:1;font-weight:normal;color:#e8c66a;text-shadow:0 0 6px #000,0 0 10px rgba(232,198,106,.35)}
#boons b svg.bi{vertical-align:0}
#boons i{position:absolute;right:-4px;bottom:-6px;padding:0 3px;border-radius:3px;background:rgba(6,6,8,.88);font:bold 14px/1.05 Georgia,serif;font-style:normal;color:#e8c66a;letter-spacing:0}
#boons i:empty{display:none}
#boons span.pop{animation:boonpop .9s forwards}
#boons span.live{border-color:currentColor;background:radial-gradient(circle at 50% 40%,color-mix(in srgb,currentColor 34%,rgba(6,6,8,.85)),color-mix(in srgb,currentColor 12%,rgba(6,6,8,.9)) 75%);box-shadow:0 0 10px color-mix(in srgb,currentColor 55%,transparent)}
#boons em{display:none;position:absolute;left:50%;bottom:calc(100% - 6px);translate:-50% 0;z-index:1;padding:0 4px;border-radius:3px;background:rgba(6,6,8,.88);font:bold 15px/1.1 Georgia,serif;font-style:normal;letter-spacing:.5px;white-space:nowrap}#boons span.live em{display:block}
#boons span.timed::after{content:'';position:absolute;left:3px;bottom:2px;height:2px;width:calc(var(--u,1) * (100% - 6px));background:currentColor;opacity:.9;box-shadow:0 0 6px currentColor}
#boons.compact{gap:8px 7px;font-size:14px}#boons.compact span{width:28px;height:28px;border-radius:6px}#boons.compact b{font-size:17px}#boons.compact i{font-size:14px;bottom:-5px}
#boons span.spent{opacity:.45}#boons span.spent::before{content:'';position:absolute;left:5px;right:5px;top:50%;height:2px;background:currentColor;rotate:-40deg;opacity:.85}
@keyframes boonpop{0%,30%,60%{transform:scale(1.7);color:#fff;text-shadow:0 0 14px #fff,0 0 24px #9fd8ff}15%,45%{transform:scale(1.3);color:#e8c66a}100%{transform:none;opacity:.45}}
#boons .uncommon,#boons .uncommon b,#boons .uncommon i{color:#7cc4b0}
#boons .uncommon b{text-shadow:0 0 6px #000,0 0 10px rgba(110,190,165,.4)}
#boons .rare,#boons .rare b,#boons .rare i{color:#c9a2ff}
#boons .rare b{text-shadow:0 0 6px #000,0 0 10px rgba(190,140,255,.5)}
#boons .trophy,#boons .trophy i{color:#e6c46a}
#boons .trophy b{color:#b8ff6a;text-shadow:0 0 6px #000,0 0 10px rgba(156,255,74,.6)}
/* the foes' floating bars (Ole, 2026-11-13, variant C): #bossbar a layer of its own at the page's top left, fading in with the fight; one .bossRow per foe, placed every frame by hud.js floatBarsHUD over that foe's head
   (left, top: its bottom centre, so translate -50% -100%), clamped inside the screen and never above the top centre's words; drawn 130% (FLOAT_BARS.foeSize, hud.js), scaled by its HUD Scale and --hx from that foot.
   Each row: the name (15px, quiet) over a 264px by 13px bar in the HUD's gold line, draining right to left; its other words (the act line, a timed fight's ribbon) at the top centre in #foeTop; the status rings (#fxRings) to the upper right of the centre.
   A group: the locked foe's row as above, the others smaller and dimmed */
#bossbar{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;opacity:0;transition:opacity 1.5s}
#bossbar.on{opacity:1}
#bossbar .bossRow{position:absolute;left:0;top:0;width:264px;translate:-50% -100%;scale:calc(var(--hs-foe,1) * 1.3 * (1 + .1 * var(--hx)));transform-origin:50% 100%;display:flex;flex-direction:column;align-items:center;visibility:hidden;transition:opacity .3s}
#bossbar .bname{width:max-content;max-width:340px;text-align:center;text-wrap:balance;font:15px/18px var(--ui-head);letter-spacing:.02em;margin-bottom:4px;color:rgba(242,234,214,.72);text-shadow:0 0 3px #000,0 0 6px #000,0 1px 2px #000;transition:color .3s} /* (quiet: the page titles' small caps (#1108), dimmed; Ole 2026-11-13) */
#bossbar.group .bossRow:not(.locked){width:192px;opacity:.62} /* a group: the locked foe's row led by a gold diamond, the others smaller and dimmed */
#bossbar .lockm{display:none;width:7px;height:7px;rotate:45deg;background:#e9c46a;box-shadow:0 0 6px #e9c46a;margin:0 10px 2px 0;vertical-align:middle}
#bossbar.group .bossRow.locked .lockm{display:inline-block}
#bossbar .bossRow.down{opacity:.45}
#bossbar.held .bossRow,#bossbar.held.group .bossRow:not(.locked){opacity:0} /* a Boss's title card up: the bars wait under it and fade in once it has gone (hud.js TITLE_CARD; Ole 2026-11-20, #1188); the damage number still shows */
#bossbar .bar{width:100%;height:13px;margin-bottom:0;box-sizing:border-box}
#bossbar.group .bossRow:not(.locked) .bar{height:10px}
/* the foe's words at the top centre (#foeTop, Ole 2026-11-13: only the names stay by the bars): the act line and a Timed Fight's bonus gold, in a column under the screen's top edge, fading in and out with the foe block; the Health Bar of Enemies scale and --hx size it */
#foeTop{position:absolute;left:50%;top:calc(22px + 6px * var(--hx));translate:-50% 0;display:flex;flex-direction:column;align-items:center;gap:8px;scale:calc(var(--hs-foe,1) * (1 + .1 * var(--hx)));transform-origin:50% 0;opacity:0;transition:opacity 1.5s;pointer-events:none}
#bossbar.on+#foeTop{opacity:1}
#actLine{display:flex;gap:22px;font:15px var(--ui-head);letter-spacing:.02em;color:#a39880;text-shadow:0 0 6px #000,0 0 3px #000}#actLine span:empty{display:none}
/* a Timed Fight's bonus gold in the foe block (updateHUD): the extra gold still to win, ember red in the last quarter of its time (.low, timedRibbon) */
#timedRib{display:none;text-align:center}#timedRib.on{display:block}
#timedBonus{color:#f0d68a;font:600 30px/1 var(--ui-head);letter-spacing:1px;text-shadow:0 0 8px #000,0 0 14px rgba(232,198,106,.45)}
#timedBonus small{display:block;margin-top:2px;font:italic 16px Georgia,serif;color:#c9b27a;letter-spacing:1px}
#timedRib.low #timedBonus{color:#f6b080}
/* the Gilded Run's HUD (courseHUD, js/course.js), in the foe bar's place: the seconds left and the gold carried, the clock ember red in its last quarter (.low) as the Timed Fight's ribbon */
#courseHud{position:absolute;left:50%;top:calc(34px + 40px * var(--hx));translate:-50% 0;scale:var(--hs-foe,1);transform-origin:50% 0;display:none;gap:56px;align-items:flex-end;pointer-events:none}#courseHud.on{display:flex}
#courseHud>div{text-align:center;color:#f0d68a;font:600 38px/1 var(--ui-head);letter-spacing:1px;text-shadow:0 0 8px #000,0 0 14px rgba(232,198,106,.45)}
#courseHud small{display:block;margin-top:4px;font:italic 16px Georgia,serif;color:#c9b27a;letter-spacing:1px}
#courseHud .cg{display:inline-block;width:.62em;height:.62em;margin-right:.22em;border-radius:50%;vertical-align:.04em;background:radial-gradient(circle at 35% 35%,#fff3b0,#f1c84a 45%,#a67c24);box-shadow:0 0 8px rgba(241,200,74,.6)}
#courseHud.low #courseClockBox{color:#f6b080}
#courseClockBox{transform-origin:50% 60%}#courseHud.warn #courseClockBox{color:#ff7a5a;text-shadow:0 0 8px #000,0 0 18px rgba(255,90,60,.7)}
#courseHud.warn #courseClockBox.pulse{animation:coursePulse .9s ease-out}@keyframes coursePulse{0%{transform:scale(1.35)}100%{transform:scale(1)}}
/* until you step out of the start circle (.wait) a breathing line under the HUD says the clock waits for that; as you do, it fades and the clock pops (.go: courseHUD) */
#courseHud #courseWait{position:absolute;left:50%;top:100%;translate:-50% 0;margin-top:8px;padding:8px 40px;background:radial-gradient(closest-side,rgba(0,0,0,.5),transparent);white-space:nowrap;font:600 22px/1 var(--ui-head);color:#f3dc96;letter-spacing:2px;text-indent:2px;text-shadow:0 0 8px #000,0 0 3px #000;opacity:0;transition:opacity .6s}
#courseHud.wait #courseWait{opacity:1;animation:courseWait 2.4s ease-in-out infinite}@keyframes courseWait{0%,100%{text-shadow:0 0 8px #000,0 0 3px #000}50%{text-shadow:0 0 8px #000,0 0 3px #000,0 0 16px rgba(243,200,90,.85)}}
#courseClockBox.go{animation:courseGo .8s ease-out}@keyframes courseGo{0%{transform:scale(1.45);color:#fff6d0;text-shadow:0 0 8px #000,0 0 26px rgba(255,220,120,.95)}100%{transform:scale(1)}}
/* the Spire's HUD (spireHUD, js/spire.js), in the foe bar's place: the checkpoint reached and the five rewards in a row, those leaving now pays lit, the next one outlined */
#spireHud{position:absolute;left:50%;top:calc(30px + 40px * var(--hx));translate:-50% 0;scale:var(--hs-foe,1);transform-origin:50% 0;display:none;gap:26px;align-items:center;pointer-events:none}#spireHud.on{display:flex}
#spireCpBox{text-align:center;color:#f0d68a;font:600 40px/1 var(--ui-head);text-shadow:0 0 8px #000,0 0 14px rgba(232,198,106,.45)}
#spireCpBox small{display:block;margin-top:4px;font:italic 16px Georgia,serif;color:#c9b27a;letter-spacing:1px}
#spirePays{display:flex;gap:10px}
#spirePays i{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;border:1.5px solid rgba(201,178,122,.25);background:rgba(10,8,6,.55);opacity:.38;filter:grayscale(.8)}
#spirePays i svg{width:26px;height:26px;color:#f0d68a}
#spirePays i.got{opacity:1;filter:none;border-color:#e8c66a;box-shadow:0 0 14px rgba(232,198,106,.55),inset 0 0 10px rgba(232,198,106,.25)}
#spirePays i.next{opacity:.85;filter:grayscale(.35);border:1.5px dashed rgba(232,198,106,.75)}
/* a checkpoint's line (spireNote): comes in, holds, goes, by itself; it never takes a press, as a jump must never be eaten mid-climb */
#spireNote{position:absolute;left:50%;top:calc(150px + 40px * var(--hx));translate:-50% 0;text-align:center;pointer-events:none;opacity:0;white-space:nowrap}
#spireNote.on{animation:spireNote 3.4s ease-out forwards}
#spireNote b{display:block;font:600 44px/1.1 var(--ui-head);letter-spacing:6px;text-indent:6px;color:#f3dc96;text-shadow:0 0 10px #000,0 0 24px rgba(232,198,106,.6)}
#spireNote small{display:block;margin-top:8px;font:italic 19px Georgia,serif;color:#e6d4a4;text-shadow:0 0 8px #000,0 0 3px #000}
#spireNote.on.hold{animation:spireNoteIn .34s ease-out forwards} /* the opening line: in, then held until the start ring is left */
#spireNote.out{animation:spireNoteOut .75s ease-in forwards}
@keyframes spireNoteIn{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:none}}
@keyframes spireNoteOut{0%{opacity:1}100%{opacity:0}}
@keyframes spireNote{0%{opacity:0;transform:translateY(10px)}10%{opacity:1;transform:none}78%{opacity:1}100%{opacity:0}}
/* a checkpoint's reward shown big under its line (spireGot, js/spire.js): a medallion with its icon over slow rays, its words under it; spireGotTick moves
   the medallion (pops in, holds, flies into its row of #spireBank) on the world's clock, and .fly fades the rays and words as it goes */
#spireGot{position:absolute;left:50%;top:calc(222px + 40px * var(--hx));translate:-50% 0;display:none;flex-direction:column;align-items:center;pointer-events:none}#spireGot.on{display:flex}
#spireGot .sgRays{position:absolute;left:50%;top:64px;width:340px;height:340px;margin:-170px 0 0 -170px;border-radius:50%;background:repeating-conic-gradient(rgba(255,214,128,.30) 0 5deg,rgba(255,214,128,0) 5deg 20deg);-webkit-mask:radial-gradient(circle,#000 22%,transparent 68%);mask:radial-gradient(circle,#000 22%,transparent 68%);animation:spireRays 16s linear infinite;transition:opacity .25s}
@keyframes spireRays{to{rotate:360deg}}
#spireGotMed{position:relative;width:128px;height:128px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2.5px solid #e8c66a;background:radial-gradient(circle at 50% 38%,rgba(70,52,22,.96),rgba(14,11,6,.96) 72%);box-shadow:0 0 34px rgba(232,198,106,.65),0 0 10px #000,inset 0 0 22px rgba(232,198,106,.3);transform-origin:50% 50%}
#spireGotIc{display:flex}#spireGotIc svg{width:72px;height:72px;color:#f3dc96;filter:drop-shadow(0 0 8px rgba(255,214,128,.55))}
#spireGot .sgT{position:relative;margin-top:16px;white-space:nowrap;font:600 30px/1.1 var(--ui-head);letter-spacing:2px;color:#f3dc96;text-shadow:0 0 10px #000,0 0 3px #000,0 0 22px rgba(232,198,106,.5);transition:opacity .25s}
#spireGot.fly .sgRays,#spireGot.fly .sgT{opacity:0}
/* while on a checkpoint reached (spireBankTick): what leaving there pays, a row per reward, the next checkpoint's dimmed under them; the newest row waits
   unseen (.pend, its room kept) until its medallion lands in it */
#spireBank{position:absolute;right:36px;top:50%;translate:0 -50%;zoom:calc(var(--hs-foe,1) * (1 + .1 * var(--hx)));min-width:270px;padding:14px 22px 16px 20px;border-right:2px solid rgba(232,198,106,.7);border-radius:6px 0 0 6px;background:linear-gradient(270deg,rgba(14,11,6,.92),rgba(14,11,6,.8) 70%,rgba(14,11,6,0));opacity:0;transition:opacity .35s;pointer-events:none}#spireBank.on{opacity:1}
#spireBank .hd{font:15px Georgia,serif;letter-spacing:.06em;text-transform:uppercase;color:#cfc8b6;text-shadow:0 1px 3px rgba(0,0,0,.85)}
#spireBank .row{display:flex;align-items:center;gap:12px;margin-top:10px;font:19px Georgia,serif;color:#f0e6c8;white-space:nowrap}
#spireBank .row i{flex:none;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;border:1.5px solid #e8c66a;background:rgba(10,8,6,.6);box-shadow:0 0 12px rgba(232,198,106,.45),inset 0 0 8px rgba(232,198,106,.2)}
#spireBank .row i svg{width:23px;height:23px;color:#f0d68a}
#spireBank .row.pend{visibility:hidden}
#spireBank .row.land{animation:spireLand .8s ease-out}
@keyframes spireLand{0%{filter:brightness(2.4) drop-shadow(0 0 10px #ffd27a)}100%{filter:none}}
#spireBank .row.next{opacity:.6;margin-top:14px;padding-top:12px;border-top:1px solid rgba(201,178,122,.25)}
#spireBank .row.next i{border-style:dashed;box-shadow:none}
#spireBank .row.next small{font:15px Georgia,serif;letter-spacing:.06em;text-transform:uppercase;color:#cfc8b6}
#spireBank .ft{display:flex;align-items:center;gap:8px;margin-top:14px;font:italic 16px Georgia,serif;color:#c9b27a}#spireBank .ft svg{width:22px;height:12px}
/* the Spire's leave box (spireAsk, js/spire.js): the #ask look over the held 3D */
#spireAsk{position:fixed;inset:0;z-index:24;display:none;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,rgba(0,0,0,.6),rgba(0,0,0,0) 70%)}#spireAsk.on{display:flex}
#spireAsk .box{min-width:520px;padding:30px 48px 22px;text-align:center;background:rgba(18,16,10,.86);border:1px solid #8a7a3c;box-shadow:0 0 40px rgba(0,0,0,.8)}
#spireAsk .aq{font-family:var(--ui-head);font-size:26px;letter-spacing:.02em;color:#e5e0d6;margin-bottom:10px}
#spireAsk .at{font-family:Georgia,serif;font-size:19px;color:#b9b399}
#spireAsk .sap{display:flex;flex-direction:column;align-items:center;gap:6px;margin:12px 0 4px}
#spireAsk .sai{display:flex;align-items:center;gap:10px;font:19px Georgia,serif;color:#f0e6c8}#spireAsk .sai svg{width:24px;height:24px;color:#9fe08a}
#spireAsk .ab{display:flex;gap:14px;justify-content:center;margin-top:18px}
#spireAsk .ab span{font-family:var(--ui-head);font-size:18px;letter-spacing:.02em;padding:6px 22px;border:1px solid #4a4a3c;color:#8f8a78;cursor:pointer}
#spireAsk .ab span.sel{color:var(--ui-sel-fg);border-color:var(--ui-sel-line);background:var(--ui-sel-bg)}
#spireAsk .sah{margin-top:16px;font:15px Georgia,serif;color:#9a9480}
#actLine.hard #actR{color:#c98a5e}#actLine.timed #actR{color:#e8c66a}#actLine.boss #actR{color:#d0605a}
.boss .fill{background:linear-gradient(#cf3a3f,#9c2026 40%,#55090c)}
/* a frozen foe (Freeze, spells.js; updateHUD): its bar turns to ice, a snowflake after its name */
/* Executioner held: a notch on each foe's bar at EXEC.below (.exec); a foe at or under it (.execOn): its fill a striped dark red, the bar an ember glow, a ✖ after its name
   (before .frozen and .healing, whose name marks win over it) */
#bossbar .bar .exn{display:none;position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;z-index:2;background:#f0a080;box-shadow:0 0 4px #000,0 0 6px rgba(232,132,106,.7)}
#bossbar .exec .bar .exn{display:block}
#bossbar .execOn .bar.boss .fill{background:linear-gradient(#c02a20,#7a0e0e 40%,#300404)}
#bossbar .execOn .bar.boss .fill::before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(135deg,rgba(255,150,90,.35) 0 4px,rgba(0,0,0,0) 4px 12px)}
#bossbar .execOn .bar.boss{border-color:#ff9a6a;box-shadow:0 0 0 1px #000,0 0 18px 3px rgba(255,90,40,.7),inset 0 2px 4px #000}
#bossbar .execOn .bname{color:#ffc0a0}
#bossbar .execOn .bname::after{content:' \2716';color:#ff8a5a;text-shadow:0 0 8px #ff5a2a}
/* a slowed foe (Frost Bolt, spells-frostbolt.js; updateHUD): a cold cyan glow round its bar, its name pale cyan with an hourglass after it (before .blinded and .frozen, whose marks win) */
#bossbar .slowed .bar.boss{border-color:rgba(150,225,240,.95);box-shadow:0 0 10px rgba(130,215,235,.6)}
#bossbar .slowed .bname{color:#c8f0f6}
#bossbar .slowed .bname::after{content:' \231B\FE0E';color:#9fe8f0;text-shadow:0 0 8px #4fb8d0}
/* a blinded foe (Pocket Sand, spells-sand.js; updateHUD): a sand glow round its bar, its name sand with a crossed eye after it (before .frozen, whose mark wins) */
#bossbar .blinded .bar.boss{border-color:rgba(232,200,130,.95);box-shadow:0 0 10px rgba(232,196,120,.65)}
#bossbar .blinded .bname{color:#f0dca8}
#bossbar .blinded .bname::after{content:' \2298';color:#e8c878;text-shadow:0 0 8px #c89a40}
#bossbar .frozen .bar.boss .fill{background:linear-gradient(#eef9ff,#a4d2f0 40%,#5b93c4)}
#bossbar .frozen .bar.boss{border-color:rgba(170,220,255,.9);box-shadow:0 0 8px rgba(140,205,255,.55)}
#bossbar .frozen .bname{color:#cfeaff}
#bossbar .frozen .bname::after{content:' \2744';color:#a8dcff;text-shadow:0 0 8px #6ab8ff}
/* a foe healing (F.healing, updateHUD): the bar breathes a green glow, the health won back is green, what is still to come a faint pulsing green after it, a green cross after the name */
#bossbar .bar .heal,#bossbar .bar .healTo{position:absolute;top:0;bottom:0;display:none}
#bossbar .healing .bar .heal,#bossbar .healing .bar .healTo{display:block}
#bossbar .bar .heal{background:linear-gradient(#8dffa8,#1f8a3c);box-shadow:0 0 6px rgba(120,255,150,.8)}
#bossbar .bar .healTo{background:rgba(125,255,154,.3);animation:healTo .8s ease-in-out infinite alternate}
#bossbar .healing .bar{border-color:rgba(140,255,170,.9);animation:healGlow 1s ease-in-out infinite alternate}
#bossbar .healing .bname{color:#b4ffc6}
#bossbar .healing .bname::after{content:' \271A';color:#7dff9a;text-shadow:0 0 8px #3cff6a}
@keyframes healGlow{from{box-shadow:0 0 6px #000,0 0 6px rgba(80,255,120,.35)}to{box-shadow:0 0 6px #000,0 0 18px 3px rgba(80,255,120,.8)}}
@keyframes healTo{from{opacity:.4}to{opacity:1}}
/* the Bloodthirsty twist's heal (updateHUD): a green +N after the foe's name, the heals of the last moments added up, the health it drank a sliding green band on its bar (as the Rally's share on the player's), and a green flash of the bar as it drinks */
#bossbar .bname .drank{margin-left:14px;color:#7dff9a;font-weight:bold;letter-spacing:1px;text-shadow:0 0 6px #000,0 0 10px #1f8a3c;opacity:0;transition:opacity .4s}
#bossbar .bossRow.drank .bname .drank{opacity:1}
#bossbar .bar .drankSeg{position:absolute;top:0;bottom:0;display:none;background:repeating-linear-gradient(135deg,#9dffb4 0 3px,#2a9a48 3px 6px) 0 0/17px 17px;box-shadow:0 0 6px rgba(120,255,150,.85);animation:drankSlide .5s linear infinite}
#bossbar .bossRow.drank .bar .drankSeg{display:block}
@keyframes drankSlide{to{background-position:17px 0}}
#bossbar .bossRow.drankNew .bar.boss{border-color:rgba(140,255,170,.95);box-shadow:0 0 6px #000,0 0 18px 3px rgba(80,255,120,.8)}
#dmgNum{position:absolute;left:0;top:0;translate:0 -100%;white-space:nowrap;font-size:18px;color:#e9e2cf;opacity:0;transition:opacity .4s;text-shadow:0 0 6px #000}
#partner{position:absolute;width:52px;height:42px;margin:-21px 0 0 -26px;transform-origin:26px 21px;display:none;filter:drop-shadow(0 0 4px #000)} /* the off-screen warning's notched arrow, tip to the right before its rotate (hud.js partnerMark) */
#partner svg{display:block;fill:rgba(232,220,200,.6)}
#partner.atk svg{fill:#ff7a55;filter:drop-shadow(0 0 6px #e6281e);animation:partnerPulse .5s ease-in-out infinite alternate}
@keyframes partnerPulse{to{filter:drop-shadow(0 0 12px #ff3a20)}}
#edgeGlow{position:fixed;inset:0;pointer-events:none;display:none;--gx:50%;--gy:50%;--ga:0;background:radial-gradient(circle 450px at var(--gx) var(--gy),rgba(230,40,30,var(--ga)) 0%,rgba(230,40,30,0) 70%)} /* the edge an attack comes from, past the screen: only its inner part shows */
body.paused #edgeGlow{display:none!important}
#lock{position:absolute;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:radial-gradient(#fff,rgba(255,255,255,0) 70%);box-shadow:0 0 10px #fff;display:none}
#hint{position:absolute;left:8%;right:8%;top:30%;transform:translateY(-50%);text-align:center;font-size:30px;font-style:italic;letter-spacing:.02em;line-height:1.4;opacity:0;transition:opacity 1.6s;text-shadow:0 0 14px #000,0 0 4px #000;color:#d4dcc0}
/* the status rings (#fxRings, ringsHUD in hud.js), upper right of the screen's centre, clear of the floating foe bars (Ole, variant B), fading with the foe block; the Health Bar of Enemies and Status scales and --hx size it: FOE | YOU, each a 50px dark disc with its glyph, a ring draining with --u and the value under it */
#fxRings{position:absolute;left:calc(50% + 300px);top:calc(200px + 20px * var(--hx));display:flex;justify-content:center;align-items:flex-start;gap:14px;min-height:0;scale:calc(var(--hs-badges,1) * var(--hs-foe,1) * (1 + .1 * var(--hx)));transform-origin:0 0;opacity:0;transition:opacity 1.5s;pointer-events:none}
#bossbar.on~#fxRings{opacity:1}
#fxRings .grp{display:flex;flex-direction:column;align-items:center;gap:3px}
#fxRings .lab{font:bold 12px Georgia,serif;letter-spacing:2px;color:#8f866f;text-shadow:0 0 4px #000}
#fxRings .rrow{display:flex;gap:16px} /* (not .rs: the Rewards screen styles a bare .rs, which squeezed these rings to slivers) */
#fxRings .sep{align-self:stretch;width:1px;margin-top:15px;background:rgba(190,170,130,.3)}
#fxRings .ring{--u:1;--c:var(--st);position:relative;width:50px;height:50px;margin-bottom:23px;border-radius:50%;color:var(--c);background:conic-gradient(var(--c) calc(var(--u)*1turn),rgba(190,170,130,.22) 0);filter:drop-shadow(0 0 4px #000);animation:badgeIn .3s}
@keyframes badgeIn{from{opacity:0}}
#fxRings .ring::before{content:'';position:absolute;inset:4px;border-radius:50%;background:#0c0a0a}
#fxRings .ring .gl{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:26px Georgia,serif}
#fxRings .ring .gl svg{width:32px;height:32px;position:static;transform:none;filter:none}
#fxRings .ring .gl svg circle{fill:none;stroke:currentColor;stroke-width:1.8}
#fxRings .ring .v{position:absolute;left:-12px;right:-12px;top:54px;text-align:center;font:bold 17px Georgia,serif;color:var(--c);text-shadow:0 0 4px #000,0 0 8px #000;white-space:nowrap}
#fxRings .ring.full{--c:#e8c66a;animation:badgeIn .3s,badgeGlow 1.6s ease-in-out infinite}
@keyframes badgeGlow{50%{filter:drop-shadow(0 0 4px #000) drop-shadow(0 0 9px rgba(255,220,120,.7))}}
#fxRings .ring.drop{--c:#ff4a3a;animation:badgeIn .3s,badgeDrop .4s ease-out}
@keyframes badgeDrop{0%{filter:brightness(2) drop-shadow(0 0 10px #ff4a3a)}}
#fxRings .ring.pop{animation:badgeIn .3s,fervorPop .6s ease-out}
@keyframes fervorPop{0%{transform:scale(1.3);filter:brightness(2) drop-shadow(0 0 10px #ff4a3a)}}
#fxRings .ring.low{animation:badgeIn .3s,pulse .4s infinite}
#winded{position:fixed;inset:0;pointer-events:none;opacity:0;transition:opacity .3s;box-shadow:inset 0 0 70px 6px rgba(255,175,50,.7)}
#madness{position:fixed;inset:0;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,rgba(20,90,50,0) 30%,rgba(30,140,70,.55) 85%,rgba(60,10,70,.75) 100%);mix-blend-mode:screen}
#fade{position:fixed;inset:0;pointer-events:none;background:#000;opacity:0;transition:opacity .8s}
#fade.on{opacity:1}
#fade.top{z-index:40} /* (over the map and the top bar while a fight is entered: mapui.js fadeToFight) */
/* the loading screen before a fight (fightload.js; its card: mapboard.js fightNodeCard; Ole, 2026-12-01: mockup C, docs/superpowers/specs/2026-12-01-fight-loading-portrait-design.md):
   at the left the foe's name, the kind between two fading lines, its twist and the curses that bite, centred in that half (no foe's picture, no emblem: Ole, 2026-12-02 and 12-03); at the right (.rside)
   the build, the hint and the Continue; the act dim in the bottom-left corner. The name block and the build shrink by --fit900 at a big UI scale */
#fade .ld{position:absolute;inset:0;color:#e8dcc0;text-align:center;background:#000}
#fade .ld .top{position:absolute;left:40px;width:740px;top:calc(34px + 2*var(--vh));bottom:calc(58px + 2*var(--vh) + 34px);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;zoom:var(--fit900,1);
  text-shadow:0 1px 3px rgba(0,0,0,.85)}
#fade .ld .n{font-size:84px;letter-spacing:.02em;line-height:1;color:#f3e7c8;text-shadow:0 2px 6px rgba(0,0,0,.9)}
#fade .ld .top>.s{margin-top:6px;font:italic 22px Georgia,serif;letter-spacing:.02em;color:#a89c7c}
#fade .ld .top>.k{--kc:#cdbf98;margin-top:30px;display:flex;align-items:center;gap:18px;font-size:32px;letter-spacing:.02em;color:var(--kc)}
#fade .ld .top>.k.hard{--kc:#e89a5c}#fade .ld .top>.k.boss{--kc:#e0605a}#fade .ld .top>.k.timed{--kc:#7fc8d8}
#fade .ld .top>.k:before,#fade .ld .top>.k:after{content:'';width:110px;height:1px;background:linear-gradient(90deg,transparent,var(--kc))}#fade .ld .top>.k:after{background:linear-gradient(270deg,transparent,var(--kc))}

#fade .ld .tw{margin-top:20px;display:inline-flex;align-items:center;gap:16px;text-align:left}
#fade .ld .tw .sig{display:inline-flex;align-items:center;justify-content:center;flex:none;width:46px;height:46px;clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);background:var(--c)} /* (the twist's sigil as the fight HUD draws it: twistHUD) */
#fade .ld .tw .sig i{display:flex;align-items:center;justify-content:center;width:42px;height:42px;clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);background:radial-gradient(circle,#1a140c,#060504 75%)}
#fade .ld .tw .sig svg{width:26px;height:26px;fill:none;stroke:var(--c);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#fade .ld .tw .col{display:flex;flex-direction:column;gap:2px}#fade .ld .tw .nm{font-size:30px;letter-spacing:.02em;color:var(--c)}#fade .ld .tw .tx{font:21px Georgia,serif;color:#d0c8b4}
#fade .ld .mods{margin-top:48px;display:flex;flex-direction:column;align-items:flex-start;gap:20px} /* the twist and the curses that bite in this fight (mapboard.js fightNodeCard), each curse as a twist with its round sigil: one left-aligned column, centred as a block */
#fade .ld .mods .tw{margin-top:0}
#fade .ld .tw.cu .sig,#fade .ld .tw.cu .sig i{clip-path:circle(50%)}
#fade .ld .act{position:absolute;left:64px;bottom:34px;font-size:15px;color:#8a8170;letter-spacing:.02em}
/* the right side: the build in the room left over the hint and the Continue, which sit at its foot */
#fade .ld .rside{position:absolute;left:calc(42% + 20px);right:60px;top:calc(34px + 2*var(--vh));bottom:calc(58px + 2*var(--vh));display:flex;flex-direction:column;align-items:center;justify-content:flex-end}
#fade .ld .hint{flex:none;max-width:100%;margin-bottom:calc(var(--vh) + 34px);padding:0 28px;box-sizing:border-box;font:21px Georgia,serif;line-height:1.45;color:#cfc4a8}
#fade .ld .hint .hk{margin-right:14px;font:16px var(--ui-head);letter-spacing:.06em;text-transform:uppercase;color:#8f866f}
#fade .ld .go{flex:none;width:100%;height:58px;display:flex;justify-content:center} /* the Continue (fightload.js): a button that waits for the press, no ring; its room kept from the first frame */
#fade .ld .go .tcont{gap:14px;padding:0 40px 0 22px;border:1px solid #6d5f3e;background:linear-gradient(180deg,#1d1810,#0e0b07);font-size:24px;letter-spacing:.02em;color:#efe2bf;opacity:1;box-shadow:none}
#fade .ld .go:empty:before{content:'';align-self:center;width:34px;height:34px;box-sizing:border-box;border-radius:50%;border:3px solid rgba(221,213,195,.16);border-top-color:#ddd5c3;animation:ldSpin .9s linear infinite} /* the fight still building: a spinning ring where the Continue comes (Ole, 2026-11-20) */
@keyframes ldSpin{to{transform:rotate(360deg)}}
#fade .ld .go .tcRing{display:none}#fade .ld .go .tcBtn{width:auto;height:auto}#fade .ld .go .tcBtn .kk kbd{font-size:20px;padding:1px 14px;border-bottom-width:3px}
/* the build (fightload.js loadBuildHTML): the boon list as every screen draws it, centred in its room; fitLoadBuild gives it the first look that fits: c1 one column (a short
   list), c2 two, t1 and t2 closer rows, c3 three, brief each group's tiles in a row with no effect lines */
#fade .ld .bld{flex:1 1 0;min-height:0;width:100%;margin-bottom:calc(30px + 2*var(--vh));display:flex;flex-direction:column;justify-content:safe center;align-items:center;overflow:hidden;zoom:var(--fit900,1);text-align:left}
#fade .ld .bld .ledger{position:static;transform:none;flex:none;width:100%;column-gap:44px;font-size:16px}
#fade .ld .bld.c1 .ledger{width:520px;max-width:100%}#fade .ld .bld.c2 .ledger{column-count:2}#fade .ld .bld.c3 .ledger{column-count:3}
#fade .ld .bld .ledger>h4:first-child{column-span:all}#fade .ld .bld .lst{display:contents}
#fade .ld .bld .grp,#fade .ld .bld .li.keepsake{break-inside:avoid}#fade .ld .bld h4{break-after:avoid}
#fade .ld .bld.t1 .grp .li{margin-bottom:2px;padding:1px 6px 2px;line-height:1.22}#fade .ld .bld.t1 .grp{margin-bottom:10px}#fade .ld .bld.t1 .grp h5{margin-bottom:4px}
#fade .ld .bld.t1 .li:is(.common,.uncommon,.rare)>b{width:26px;height:26px;line-height:26px}#fade .ld .bld.t1 .li>b svg.bi{width:1.05em;height:1.05em}
#fade .ld .bld.t2 .ef{font-size:15px;line-height:1.18}#fade .ld .bld.t2 .grp .li{margin-bottom:1px}#fade .ld .bld.t2 .grp{margin-bottom:7px}#fade .ld .bld.t2 h4{margin-bottom:8px}#fade .ld .bld.t2 .keepH{margin-top:12px}
#fade .ld .bld.brief .ef{display:none}#fade .ld .bld.brief .li{margin-bottom:2px}#fade .ld .bld.brief .grp .li{display:inline-flex;padding:2px 3px}
#titleCard{position:fixed;left:0;right:0;top:24%;text-align:center;pointer-events:none;opacity:0;transition:opacity 1.4s}
#titleCard.on{opacity:1}#titleCard.cut{transition:none}
#tcMain{font-size:58px;letter-spacing:9px;color:#bff5d0;text-shadow:0 0 26px rgba(60,255,140,.6),0 0 4px #000}
#tcSub{margin-top:10px;font-size:22px;letter-spacing:6px;font-style:italic;color:#9fd8b4;text-shadow:0 0 10px #000}
#bars i{position:fixed;left:0;right:0;height:0;background:#000;pointer-events:none;transition:height 1.1s ease}
#bars i:first-child{top:0}
#bars i:last-child{bottom:0}
#bars.on i{height:calc(9*var(--vh))}
#cineSkip{position:fixed;left:50%;bottom:calc(4.5*var(--vh));transform:translate(-50%,50%);z-index:20;pointer-events:none;opacity:0;transition:opacity .6s}#cineSkip.on{opacity:.5}#cineSkip.on.held{opacity:1;transition:opacity .15s} /* hold to skip a foe's scene, centred in the bottom letterbox bar (main.js cineSkipTick; the look is .tcont's) */
body:not(:has(#bars.on)) #cineSkip.on:not(.held){opacity:.85}#cineSkip .tcLabel{text-shadow:0 1px 3px rgba(0,0,0,.9),0 0 8px #000} /* with no letterbox bar under it (an event's, a camp's or the Shop's scene) it sits on the scene itself: half faded it was lost on a lit floor */
#mgGlow{position:fixed;inset:0;pointer-events:none;opacity:0;mix-blend-mode:screen;background:radial-gradient(ellipse at center,rgba(255,214,150,.5),rgba(255,160,80,.2) 55%,rgba(60,20,0,0) 100%)} /* the warm glow over a won run's last blow (montage.js mgGlow) */
#mgCap{position:fixed;left:50%;top:calc(4.5*var(--vh));transform:translate(-50%,-50%);z-index:20;pointer-events:none;white-space:nowrap;font-size:19px;letter-spacing:6px;text-indent:6px;color:#cdbf98;opacity:0;transition:opacity .25s} /* the kill montage's caption in the top letterbox bar (montage.js): who was felled, a Boss in gold, the foe who killed you in red */
#mgCap.on{opacity:.9}#mgCap.boss{color:#e8c66a}#mgCap.death{color:#c8463e}#mgCap.moment,#mgCap.cast{color:#b9d4e2}#mgCap.final{color:#f1dc9a;text-shadow:0 0 16px rgba(232,198,106,.6)}
#vig{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,rgba(0,0,0,0) 55%,rgba(0,0,0,.7) 100%)}
#lowVig{position:fixed;inset:0;pointer-events:none;--vigIn:60%;--vigSolid:100%;--vigRgb:14,0,0;background:radial-gradient(ellipse at center,rgba(var(--vigRgb),0) var(--vigIn),rgba(var(--vigRgb),1) var(--vigSolid),rgba(var(--vigRgb),1) 100%);opacity:0}
#dotEdge{position:fixed;inset:0;pointer-events:none;--dot:255,90,28;background:radial-gradient(ellipse at center,rgba(var(--dot),0) 55%,rgba(var(--dot),.5) 100%);opacity:0}
#hurt{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,rgba(120,0,0,0) 35%,rgba(170,0,0,.6) 100%);opacity:0}
#ver{position:fixed;right:26px;bottom:12px;z-index:1000;pointer-events:none;font-family:Georgia,serif;font-size:12px;letter-spacing:1px;color:rgba(232,223,196,.55);text-shadow:0 0 3px #000}
body:has(#trek.on .actFrame .edge,#reward.on .actFrame .edge) #ver{bottom:24px} /* inside the run's frame (its edge sits 14px up, .actFrame .edge), never on its line */
#oleTag{display:none;position:fixed;left:50%;top:2px;transform:translateX(-50%);z-index:1000;pointer-events:none;font-family:Georgia,serif;font-size:13px;letter-spacing:.2em;text-indent:.2em;text-transform:uppercase;color:#e8c66a;text-shadow:0 0 3px #000,0 0 2px #000;white-space:nowrap}#oleTag.on{display:block} /* dev mode: the Ole bot is playing this fight (olebot-live.js) */
#devFps{display:none;position:fixed;right:26px;top:2px;z-index:1000;pointer-events:none;font-family:Georgia,serif;font-size:12px;letter-spacing:1px;color:rgba(232,223,196,.75);text-shadow:0 0 3px #000,0 0 2px #000;font-variant-numeric:tabular-nums;white-space:nowrap}#devFps.on{display:block} /* dev mode's frame rate (devpanel.js devFpsTick): the window's top right corner, above the top bar's plaques and the quests */
#gpuCost{display:none;position:fixed;right:26px;top:22px;z-index:1000;pointer-events:none;width:380px;padding:8px 10px;background:rgba(8,7,6,.82);border:1px solid rgba(232,223,196,.25);border-radius:4px;font-family:Georgia,serif;font-size:12px;color:#e8dfc4;font-variant-numeric:tabular-nums;line-height:1.5}#gpuCost.on{display:block} /* dev mode's GPU cost panel (gpu-cost.js, F4): under the frame rate, top right on every screen */
#gpuCost .gch{font-size:13px;letter-spacing:.5px}#gpuCost .gcs{font-size:11px;color:rgba(232,223,196,.6)}#gpuCost .gcr{display:flex;align-items:center;gap:8px}#gpuCost .gcr.off{color:rgba(232,223,196,.35)}
#gpuCost .gcl{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#gpuCost .gcl i{font-size:10px;color:rgba(232,223,196,.5)}#gpuCost .gcm{width:42px;text-align:right}#gpuCost .gcb{width:80px;height:6px;background:rgba(232,223,196,.1)}#gpuCost .gcb s{display:block;height:100%;background:#d9a54a}
#gpuCost .gcp{color:rgba(232,223,196,.6)}#gpuCost .hot{color:#ff7a5c;font-weight:bold}#gpuCost .gcx{display:flex;gap:8px;font-size:10px;letter-spacing:0;color:rgba(232,223,196,.45)}#gpuCost .gcg{display:block;width:100%;height:46px;margin-top:6px;background:rgba(232,223,196,.05)}#gpuCost .gcf b{font-weight:normal}#gpuCost .gcf b.hot{font-weight:bold}
#gpuCost .gct{border-top:1px solid rgba(232,223,196,.25);margin-top:3px;padding-top:2px;font-weight:bold}
#banner{position:fixed;left:0;right:0;top:42%;transform:translateY(-50%);text-align:center;pointer-events:none;opacity:0;transition:opacity 2.2s}
#banner.on{opacity:1}
#banner .strip{background:linear-gradient(90deg,transparent,rgba(0,0,0,.78) 20%,rgba(0,0,0,.78) 80%,transparent);padding:26px 0}
#bannerText{font-size:76px;letter-spacing:6px}
#bannerSub{margin-top:14px;font-size:18px;opacity:0;transition:opacity 1s;padding:12px 0;background:linear-gradient(90deg,transparent,rgba(0,0,0,.72) 20%,rgba(0,0,0,.72) 80%,transparent)} /* (a dim strip under the subtitle, as the title has, so it reads over the arena) */
#crit{position:fixed;left:50%;top:30%;margin-left:-100px;width:200px;text-align:center;font-size:44px;font-weight:bold;letter-spacing:6px;color:#ffe08a;text-shadow:0 0 18px #ffb52e,0 0 4px #000;pointer-events:none;opacity:0}
#crit.on{animation:critPop .55s ease-out}
#crit.on2{animation:critPop2 .55s ease-out}
/* floating damage numbers (dmgnums.js, Options > Display, on by default): placed each frame by a transform from the corner */
body.dmgnums #crit{display:none}
#atkNames{position:fixed;left:0;top:0;width:0;height:0;pointer-events:none;z-index:5}
.atkName{position:absolute;left:0;top:0;font:700 22px/1.2 monospace;color:#9fe8ff;white-space:nowrap;padding:2px 8px;border-radius:4px;background:rgba(0,0,0,.6);border:1px solid rgba(159,232,255,.45)}
#dmgNums{position:fixed;left:0;top:0;width:0;height:0;pointer-events:none;z-index:5}
.dmgNum{position:absolute;left:0;top:0;font-size:40px;font-weight:900;color:#fff;white-space:nowrap;-webkit-text-stroke:2px #000;paint-order:stroke fill;text-shadow:0 3px 0 #000,0 0 8px #000;will-change:transform,opacity}
.dmgNum.crit{font-size:84px;color:#ffe45c;-webkit-text-stroke:4px #7a2a00;text-shadow:0 0 18px #ff9a1e,0 0 36px #ff6a00,0 5px 0 #7a2a00}
.dmgNum.area{font-size:32px;color:#dcc6ff;-webkit-text-stroke:2px #24123f;text-shadow:0 3px 0 #24123f,0 0 12px rgba(160,120,255,.9)} /* a blast's blow, not the blade's: the plunge's shockwave, Frost Nova (dmgNumArea) */
.dmgNum.crit.area{font-size:62px;color:#ffe45c;-webkit-text-stroke:3px #7a2a00;text-shadow:0 0 14px #ff9a1e,0 0 28px #ff6a00,0 4px 0 #7a2a00}
.dmgNum.dot{font-size:28px;-webkit-text-stroke:1.5px #000;color:#ffa860}
.dmgNum.hurt{font-size:36px;color:#ff5a4a}
.dmgNum.heal{font-size:46px;color:#7dff9a;-webkit-text-stroke:2px #06260f;text-shadow:0 3px 0 #06260f,0 0 14px rgba(70,220,110,.9)}
.dmgNum.dmgUp{font-size:40px;color:#ff5a3c;-webkit-text-stroke:2px #3a0604;text-shadow:0 3px 0 #3a0604,0 0 14px rgba(255,70,30,.9)} /* a foe's blows grew harder (dmgNumDmgUp) */
.dmgNum.hot{font-size:32px;color:#c4ffd2;-webkit-text-stroke:1.5px #06260f;text-shadow:0 2px 0 #06260f,0 0 10px rgba(70,220,110,.7)}
.dmgNum.temp{font-size:36px;color:#dfeaff;-webkit-text-stroke:2px #1c2a44;text-shadow:0 3px 0 #1c2a44,0 0 12px rgba(150,190,255,.9)}
.dmgNum.temp svg{width:.62em;height:.7em;margin-right:.08em;vertical-align:-.04em;fill:#cfdcf0;stroke:#1c2a44;stroke-width:1.6}
.dmgNum.temp svg path+path{fill:none;stroke:#6d84a6;stroke-width:2}
.dmgNum.healSm{font-size:24px;color:#9dffb4;-webkit-text-stroke:1.5px #06260f;text-shadow:0 2px 0 #06260f}
/* the boon pop (boonpop.js boonPop): a save names its boon, its icon and name in its tier's colour (--bp) over what it did; one at a time, a newer one replacing it */
#boonPop{position:fixed;left:50%;top:34%;width:640px;margin-left:-320px;text-align:center;font-weight:bold;pointer-events:none;opacity:0;--bp:#e8c66a}
#boonPop.uncommon{--bp:#7cc4b0}#boonPop.rare{--bp:#c9a2ff}#boonPop.trophy{--bp:#e6c46a}#boonPop.bless{--bp:#ffd86a}
#boonPop .bpName{font-size:22px;letter-spacing:3px;text-indent:3px;color:var(--bp);text-shadow:0 0 12px color-mix(in srgb,var(--bp) 70%,transparent),0 0 4px #000,0 0 2px #000}
#boonPop .bpName svg.bi{margin-right:8px}
#boonPop .bpRes{margin-top:2px;font-size:34px;letter-spacing:3px;text-indent:3px;color:#fff;text-shadow:0 0 16px var(--bp),0 0 4px #000,0 0 2px #000}
#boonPop.on{animation:boonPopIn 1.1s ease-out}
@keyframes boonPopIn{0%{opacity:1;transform:scale(1.6)}22%{opacity:1;transform:scale(1)}65%{opacity:1;transform:translateY(-8px)}100%{opacity:0;transform:translateY(-30px) scale(.95)}}
#empower{position:fixed;left:50%;top:26%;margin-left:-300px;width:600px;text-align:center;font-size:58px;font-weight:bold;letter-spacing:8px;color:#fff6c8;-webkit-text-stroke:2px #8a5a00;text-shadow:0 0 26px #ffc93c,0 0 56px #ff9a1e,0 4px 0 #8a5a00;pointer-events:none;opacity:0} /* Empowered Weapon's blow (blessings.js chargedBlow) */
#empower.on{animation:empowerPop 1s ease-out}
#empowerFlash{position:fixed;inset:0;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,rgba(255,236,150,.05) 25%,rgba(255,200,70,.55) 100%)}
#empowerFlash.on{animation:empowerFlash .5s ease-out}
body.reduce-flash #empowerFlash.on{animation-duration:1s;background:radial-gradient(ellipse at center,rgba(255,236,150,0) 40%,rgba(255,200,70,.2) 100%)}
.dmgNum.empower{font-size:104px;color:#fff6c8;-webkit-text-stroke:5px #8a5a00;text-shadow:0 0 24px #ffc93c,0 0 48px #ff9a1e,0 6px 0 #8a5a00}
@keyframes empowerPop{0%{opacity:0;transform:scale(2.4)}12%{opacity:1;transform:scale(1)}65%{opacity:1;transform:translateY(-6px) scale(1.04)}100%{opacity:0;transform:translateY(-34px) scale(1)}}
@keyframes empowerFlash{0%{opacity:1}100%{opacity:0}}
@keyframes critPop{0%{opacity:1;transform:scale(1.9);color:#fff}25%{opacity:1;transform:scale(1);color:#ffe08a}55%{opacity:1;transform:translateY(-8px)}100%{opacity:0;transform:translateY(-34px) scale(.9)}}
@keyframes critPop2{0%{opacity:1;transform:scale(1.9);color:#fff}25%{opacity:1;transform:scale(1);color:#ffe08a}55%{opacity:1;transform:translateY(-8px)}100%{opacity:0;transform:translateY(-34px) scale(.9)}}
#curseMsg{position:fixed;left:0;right:0;top:38%;z-index:900;text-align:center;padding:22px 0;font-size:64px;font-weight:bold;letter-spacing:8px;color:#c58aff;text-shadow:0 0 30px #7a2eb5,0 0 4px #000;background:linear-gradient(90deg,rgba(0,0,0,.82),rgba(0,0,0,.92) 20%,rgba(0,0,0,.92) 80%,rgba(0,0,0,.82));pointer-events:none;opacity:0;box-shadow:0 0 0 100vmax rgba(0,0,0,.82)} /* the dim behind the banner: everything else (the map, the HUD) fades back with it */
#curseMsg.gold{font-size:40px;letter-spacing:5px;color:#ffe08a;text-shadow:0 0 30px #e0a010,0 0 6px #7a4a00,0 0 4px #000}
#curseMsg.gold small{color:#fff0c0}
#curseMsg.bless{color:#fff3c4;text-shadow:0 0 30px #e0b030,0 0 12px #fff0b0,0 0 4px #000;--tc:#ffe9a8}#curseMsg.bless small{color:#fffaf0} /* a blessing given (blessMsg, blessings.js): warm gold and white */
#curseMsg small{display:block;margin-top:10px;font-size:24px;font-weight:normal;letter-spacing:1px;color:#e6d8ff}
#curseMsg.on{animation:curseIn .4s ease-out forwards}#curseMsg.out{animation:curseOut .8s ease-in forwards} /* how long it holds: BANNER in events.js, its timed continue's ring */
@keyframes curseIn{0%{opacity:0;transform:scale(1.4)}100%{opacity:1;transform:scale(1)}}@keyframes curseOut{0%{opacity:1}100%{opacity:0}}
#curseMsg{--tc:#c58aff}#curseMsg.gold{--tc:#ffe08a}#curseMsg .tcont{position:absolute;left:50%;top:100%;margin-top:18px;transform:translateX(-50%)} /* the hold-to-continue ring centred just under the banner */
/* curses lifted (liftMsg, curse-give.js): pale silver and a cool glow, the CURSED banner's mirror. Each curse's sigil glows (to --k), shakes as pale cracks draw across it, and at --s
   shatters: shards fly, a flash and a ring, motes drift up, its name struck through; --d staggers the sigils. Keyframes only (delays from CURSE_GONE), so __dev.step frames them */
#curseMsg.lift{top:31%;padding:20px 0 24px;font-size:58px;letter-spacing:9px;color:#eef3ff;text-shadow:0 0 28px #6f93d0,0 0 10px #cfe0ff,0 0 4px #000;--tc:#dfe8ff}
#curseMsg .lh{text-indent:9px;animation:lhFlare 1.4s ease-out var(--s) both}
@keyframes lhFlare{0%{color:#eef3ff}12%{color:#fff;text-shadow:0 0 44px #a9c6ff,0 0 18px #fff,0 0 4px #000}100%{color:#eef3ff}}
#curseMsg .lsigs{display:flex;justify-content:center;gap:24px;margin-top:20px;letter-spacing:0}
#curseMsg .ls{position:relative;width:200px;display:flex;flex-direction:column;align-items:center}
#curseMsg .many .lsigs{gap:12px}#curseMsg .many .ls{width:150px}
#curseMsg .lsig{position:relative;width:88px;height:88px;border-radius:50%;border:2px solid var(--c);background:radial-gradient(circle,rgba(30,10,14,.95),rgba(6,4,6,.95) 70%);display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 14px color-mix(in srgb,var(--c) 50%,transparent),0 0 6px #000;animation:lsGlow calc(var(--k) - .05s) ease-in-out var(--d) both,lsShake calc(var(--s) - var(--k)) linear calc(var(--k) + var(--d)) both,lsGone .22s ease-in calc(var(--s) + var(--d)) forwards}
#curseMsg .lsig .ic{width:52px;height:52px;fill:none;stroke:var(--c);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#curseMsg .lsig .crk{position:absolute;left:-3px;top:-3px;width:94px;height:94px;fill:none;stroke:#f4f8ff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px #b4ccf6)}
#curseMsg .crk path{stroke-dasharray:1;stroke-dashoffset:1;animation:lsCrack calc(var(--s) - var(--k) - var(--j)) cubic-bezier(.3,.6,.4,1) calc(var(--k) + var(--d) + var(--j)) forwards}
@keyframes lsGlow{0%{filter:brightness(1)}100%{filter:brightness(1.3);box-shadow:0 0 30px color-mix(in srgb,var(--c) 80%,transparent),0 0 60px rgba(210,228,255,.35),0 0 6px #000}}
@keyframes lsShake{0%{transform:none}15%{transform:translate(-1px,1px)}30%{transform:translate(2px,-1px)}45%{transform:translate(-2px,-1px)}60%{transform:translate(2px,2px)}75%{transform:translate(-3px,1px)}90%{transform:translate(3px,-2px)}100%{transform:scale(1.05)}}
@keyframes lsCrack{to{stroke-dashoffset:0}}
@keyframes lsGone{0%{opacity:1;transform:scale(1.05)}100%{opacity:0;transform:scale(1.3)}}
#curseMsg .lfl,#curseMsg .lrg,#curseMsg .lgh{position:absolute;left:50%;top:44px;border-radius:50%;opacity:0;pointer-events:none}
#curseMsg .lfl{width:200px;height:200px;margin:-100px 0 0 -100px;background:radial-gradient(circle,#fff,rgba(220,232,255,.75) 26%,rgba(170,198,245,.3) 48%,rgba(160,190,240,0) 70%);animation:lsFlash .55s ease-out calc(var(--s) + var(--d)) forwards}
#curseMsg .lgh{width:88px;height:88px;margin:-44px 0 0 -44px;box-sizing:border-box;border:2px dashed rgba(220,232,255,.5);animation:lsGhost .8s ease-out calc(var(--s) + var(--d) + .35s) forwards} /* the empty seal left where the sigil was */
@keyframes lsGhost{0%{opacity:0;transform:scale(1.15)}100%{opacity:.45;transform:none}}
#curseMsg .lrg{width:92px;height:92px;margin:-46px 0 0 -46px;border:2px solid #e8f0ff;box-shadow:0 0 14px #9fbcef,inset 0 0 10px #9fbcef;animation:lsRing .85s ease-out calc(var(--s) + var(--d)) forwards}
@keyframes lsFlash{0%{opacity:.6;transform:scale(.55)}14%{opacity:1;transform:scale(.9)}100%{opacity:0;transform:scale(1.5)}}
@keyframes lsRing{0%{opacity:.95;transform:scale(.85)}100%{opacity:0;transform:scale(2.7)}}
#curseMsg .lsh i{position:absolute;left:50%;top:44px;width:var(--z);height:var(--z);margin:calc(var(--z) / -2) 0 0 calc(var(--z) / -2);background:var(--sc);clip-path:var(--p);opacity:0;animation:lsShard var(--u) cubic-bezier(.15,.7,.35,1) calc(var(--s) + var(--d)) forwards}
@keyframes lsShard{0%{opacity:1;transform:none}70%{opacity:.85}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--r))}}
#curseMsg .lmo b{position:absolute;left:calc(50% + var(--x));top:44px;width:5px;height:5px;margin:-2.5px;border-radius:50%;background:#eef4ff;box-shadow:0 0 6px #a9c4f2;opacity:0;animation:lsMote var(--u) ease-out calc(var(--s) + var(--d) + var(--w)) forwards}
@keyframes lsMote{0%{opacity:0;transform:none}15%{opacity:.95}100%{opacity:0;transform:translateY(var(--y))}}
#curseMsg .ln{position:relative;margin-top:14px;max-width:100%;font-size:20px;line-height:1.2;letter-spacing:1px;color:color-mix(in srgb,var(--c) 55%,#fff);text-shadow:0 0 6px #000;animation:lsName .6s ease-out calc(var(--s) + var(--d)) forwards}
#curseMsg .ln::after{content:'';position:absolute;left:-6px;right:-6px;top:50%;height:2px;background:#eef4ff;box-shadow:0 0 6px #b8cff5;transform:scaleX(0);transform-origin:left;animation:lsStrike .35s ease-out calc(var(--s) + var(--d) + .08s) forwards}
@keyframes lsName{to{color:#8f98a8}}@keyframes lsStrike{to{transform:scaleX(1)}}
body.paused #curseMsg *{animation-play-state:paused} /* (its sounds wait on the timed continue's clock, which holds in a pause) */
/* a timed continue (showTimedContinue, core.js): the confirm button in a ring that drains with the time left, a quiet "Continue" beside it; --tc, the ring's colour */
.tcont{display:inline-flex;align-items:center;gap:10px;font-size:20px;font-weight:normal;letter-spacing:1px;color:#cfc8b4;text-shadow:0 0 4px #000;opacity:.85;transform:none}
.tcBtn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px}
.tcRing{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.tcRing circle{fill:none;stroke-width:2}.tcBack{stroke:rgba(255,255,255,.14)}.tcLeft{stroke:var(--tc,#e2dcc4);stroke-linecap:round}
.tcBtn .kp.pb{margin:0}.tcBtn .kk kbd{font-size:11px;padding:0 .35em;min-width:0;border:1px solid #8a8466;border-bottom-width:2px;border-radius:4px;background:rgba(255,255,255,.08)} /* the key inside the drained ring keeps its cap */
.tcLabel{font-variant:normal}
#title{position:fixed;inset:0;display:flex;flex-direction:row;flex-wrap:wrap;gap:20px 48px;align-items:center;justify-content:center;overflow:auto;background:radial-gradient(ellipse at center,rgba(0,0,0,.2),rgba(0,0,0,.88));transition:opacity 1.2s}
#title.off{opacity:0;pointer-events:none}
#title.main .col.mcol{position:relative;left:-10px} /* the main page: the character stands on the left (customize.js lookCam), the logo and list between him and the Leaderboard (a full-height panel on the right, 560px wide: menus.css) (left, not a transform: a transform would make the column the fixed hint bar's box and lift it off the screen's foot) */
#devToast{position:absolute;top:32px;left:50%;transform:translateX(-50%);padding:10px 26px;border:1px solid rgba(214,180,110,.55);background:rgba(10,8,6,.85);color:#e8d9b0;font-size:19px;letter-spacing:.12em;text-indent:.12em;opacity:0;pointer-events:none;z-index:2}
#devToast.on{animation:devToast 2.6s ease-out forwards}
@keyframes devToast{0%{opacity:0;transform:translateX(-50%) translateY(-8px)}12%,75%{opacity:1;transform:translateX(-50%)}100%{opacity:0;transform:translateX(-50%)}}
#title .col{display:flex;flex-direction:column;align-items:center}
