/* the boon-gain moment, the boon panel, the plaques, the Cursed Wheel, the Boon Binder (index.html links the css/ files in cascade order: a later file wins a tie) */
/* the boon-gain moment (js/boongain.js): the full form's stage in #trekBody (#bgStage, centred on .stg: the card's middle), the short form's layer #boonFly (z 34: over #flyLayer, under the pause) */
#boonFly{position:fixed;inset:0;z-index:34;pointer-events:none;font-family:var(--ui-head);color:#e8dcc0}body.paused #boonFly{display:none}
#bgStage{position:relative;width:1000px;height:470px;margin:0 auto;font-family:var(--ui-head)}
#bgStage .stg{position:absolute;left:50%;top:238px;width:0;height:0}
@keyframes bgIn{from{opacity:0}to{opacity:1}}
@keyframes bgShow{to{opacity:1}}
@keyframes bgHide{to{opacity:0}}
#bgStage .glow{position:absolute;left:-520px;top:-300px;width:1040px;height:600px;opacity:0;background:radial-gradient(ellipse at 50% 50%,rgba(var(--gc),.16),transparent 62%);animation:bgIn .5s ease-out forwards}
#bgStage .rays{position:absolute;left:-440px;top:-440px;width:880px;height:880px;opacity:0;background:repeating-conic-gradient(rgba(var(--gc),.42) 0 5deg,transparent 5deg 15deg);-webkit-mask:radial-gradient(circle,#000 0,transparent 64%);mask:radial-gradient(circle,#000 0,transparent 64%);animation:aRays 1.2s ease-in calc(var(--rise) - .05s) forwards,aSpin 40s linear infinite}
@keyframes aRays{60%{opacity:.55}to{opacity:.85}}
@keyframes aSpin{to{transform:rotate(360deg)}}
#bgStage .hold{position:absolute;top:-165px;width:230px;height:330px;transform:translateY(300px) scale(.32);opacity:0;animation:aRise var(--rise) cubic-bezier(.2,.85,.3,1.08) forwards}
@keyframes aRise{15%{opacity:1}to{opacity:1;transform:scale(1.12)}}
#bgStage .cards{position:absolute;inset:0;margin:0}
#bgStage .slot{position:absolute;inset:0;height:330px}
#bgStage .bkS .bk{color:rgb(var(--gc));font-size:76px}
#bgStage .bkS .card{animation:teaseShake .08s linear var(--rise) 10,teaseGlow var(--tease) ease-in var(--rise) forwards,aOut .14s ease-in calc(var(--B) - .15s) forwards;border-color:rgb(var(--gc))}
@keyframes aOut{to{transform:scaleX(0)}}
#bgStage.hid .frS .card{transform:scaleX(0);animation:aIn .42s cubic-bezier(.3,1.5,.5,1) calc(var(--B) - .01s) forwards}
@keyframes aIn{0%{transform:scale(0,1.15)}60%{transform:scale(1.1)}100%{transform:none}}
#bgStage .frS .card{box-shadow:0 0 50px 8px rgba(var(--gc),.7),0 0 18px #000}
#bgStage .ring{position:absolute;inset:0;opacity:0;border:3px solid rgb(var(--gc));box-shadow:0 0 30px 6px rgba(var(--gc),.8),inset 0 0 30px rgba(var(--gc),.6);animation:aRing .8s ease-out calc(var(--B) + .05s) forwards}
@keyframes aRing{0%{opacity:1;transform:scale(1.12)}100%{opacity:0;transform:scale(1.9,1.7)}}
#bgStage .flash{position:absolute;left:-260px;top:-260px;width:520px;height:520px;border-radius:50%;opacity:0;background:radial-gradient(circle,#fff 0,rgba(var(--gc),.85) 22%,transparent 62%);animation:aFlash .55s ease-out var(--B) forwards}
@keyframes aFlash{0%{opacity:0;transform:scale(.3)}25%{opacity:1}100%{opacity:0;transform:scale(1.4)}}
#bgStage .sps,#boonFly .sps{position:absolute;left:0;top:0;opacity:0;animation:bgShow .01s var(--at) forwards}
#bgStage .sps i,#boonFly .sps i{position:absolute;left:0;top:0;width:6px;height:6px;margin:-3px;border-radius:50%;opacity:0;background:#fff;box-shadow:0 0 10px 3px rgba(var(--gc),.95);animation:bgSpark var(--d) cubic-bezier(.1,.7,.4,1) var(--at) forwards}
@keyframes bgSpark{from{transform:none;opacity:1}to{transform:translate(var(--dx),var(--dy)) scale(.2);opacity:0}}
#bgStage .head{position:absolute;left:-400px;width:800px;top:-236px;text-align:center;font-size:22px;letter-spacing:.02em;color:rgb(var(--gc));text-shadow:0 0 18px rgba(var(--gc),.8),0 0 4px #000;opacity:0;animation:bgIn .5s ease-out calc(var(--B) + .2s) forwards}
#bgStage .rank{position:absolute;width:400px;top:204px;text-align:center;opacity:0;animation:bgIn .4s ease-out calc(var(--B) + .35s) forwards}
#bgStage .pill{display:inline-block;padding:5px 18px;border:1px solid rgba(143,209,138,.6);border-radius:20px;background:rgba(20,34,18,.85);font:19px Georgia,serif;letter-spacing:.06em;color:#cfe8c8}
#bgStage .pill b{font-weight:normal;color:#8fd18a}
#bgStage.done *{animation-delay:-20s!important}
body.reduce-flash #bgStage .flash,body.reduce-flash #bgStage .ring{display:none}
/* the short form: the list slides in, the card arcs into its row */
#boonFly .lift{position:absolute;width:230px;height:330px;opacity:1;transform:scale(var(--s0));animation:cLift .4s ease-out var(--at) forwards,cArc .7s cubic-bezier(.45,0,.4,1) var(--arc) forwards}
@keyframes cLift{from{transform:scale(var(--s0))}to{transform:translateY(-16px) scale(calc(var(--s0) * 1.1))}}
@keyframes cArc{0%{transform:translateY(-16px) scale(calc(var(--s0) * 1.1))}45%{transform:translate(calc(var(--dx) * .45),calc(var(--dy) * .45 - 120px)) scale(.62) rotate(-8deg);opacity:1}100%{transform:translate(var(--dx),var(--dy)) scale(.16) rotate(-4deg);opacity:0}}
#boonFly .lift .cards{position:absolute;inset:0;margin:0}#boonFly .lift .slot{position:absolute;inset:0;height:330px}
#boonFly .lift .card{box-shadow:0 0 50px 8px rgba(var(--gc),.75),0 0 18px #000}
#boonFly .lift .card::after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.35) 50%,transparent 65%);background-size:260% 100%;background-repeat:no-repeat;animation:cSheen .5s ease-out var(--at) forwards}
@keyframes cSheen{from{background-position:150% 0}to{background-position:-100% 0}}
/* the boon panel (boonPanelHTML, boons.js): the boon list at the left edge with no backing (Ole, 2026-11-26), under the top and above the key hints, sliding in from the left;
   one look wherever the list comes forward: the details' Build (#peek: --lw grows with its columns) and the short form here. The panel is --lw + 84px wide in all */
.bpanel{position:fixed;z-index:3;left:0;top:96px;bottom:70px;width:calc(var(--lw,330px) + 42px);padding:30px 22px 0 20px;overflow:hidden;animation:bpIn .38s cubic-bezier(.2,.8,.3,1)}
@keyframes bpIn{from{transform:translateX(-100%)}}
.bpanel .ledger{position:static;transform:none;width:var(--lw,330px);height:100%;overflow:hidden}
#boonFly .bpanel{position:absolute;transform:translateX(-380px);animation:cPanel .38s cubic-bezier(.2,.8,.3,1) var(--pin) forwards,cPanelOut .4s ease-in var(--out) forwards} /* (boonFly measures its rows at the start, -380px: boongain.js) */
@keyframes cPanel{to{transform:none}}
@keyframes cPanelOut{from{transform:none}to{transform:translateX(-380px)}}
#boonFly .bpanel .li.got{max-height:0;overflow:hidden;opacity:0;margin-bottom:0;padding-top:0;padding-bottom:0;animation:cRow .35s ease-out var(--rowAt) forwards}
@keyframes cRow{to{max-height:80px;opacity:1;margin-bottom:7px;padding-top:3px;padding-bottom:5px}}
#boonFly .bpanel .li.got,#boonFly .bpanel .li.gotUp{position:relative;--t:#8fd18a;background:linear-gradient(90deg,rgba(143,209,138,.22),rgba(143,209,138,0))}
#boonFly .bpanel .li.got::after,#boonFly .bpanel .li.gotUp::after{content:'';position:absolute;inset:0;opacity:0;background:linear-gradient(90deg,rgba(220,255,210,.55),transparent 70%);animation:bgHide .7s ease-out calc(var(--rowAt) + .07s) backwards}
#boonFly .bpanel .li.got>b,#boonFly .bpanel .li.gotUp>b{animation:cGlyph .6s ease-out calc(var(--rowAt) + .05s)}
@keyframes cGlyph{40%{transform:scale(1.8);text-shadow:0 0 14px #8fd18a}}
@keyframes cwHalo{to{opacity:1}}
@keyframes cwDrop{0%{opacity:0;transform:translateY(-110px) rotate(-6deg)}25%{opacity:1}85%{opacity:1;transform:translateY(8px) rotate(1deg)}100%{opacity:1;transform:none}}
@keyframes cwFlash{0%{opacity:1;transform:scale(.6)}100%{opacity:0;transform:scale(2)}}
@keyframes cwRing{0%{opacity:.9;transform:scale(.5)}100%{opacity:0;transform:scale(2.6)}}
@keyframes cwSpark{0%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:rotate(var(--a)) translateX(var(--d)) translate(0,-30px)}}
#trekTop .curse{color:#c0584a;text-shadow:0 1px 3px rgba(0,0,0,.85)}
#trekTop .pv{color:#9be8c8;font-weight:normal;text-shadow:0 1px 3px rgba(0,0,0,.85)}
#trekTop .pv.gv{color:#f0d890;text-shadow:0 1px 3px rgba(0,0,0,.85)}#trekTop .pv.spend,#trekTop .pv.lose{color:#f0907a;text-shadow:0 1px 3px rgba(0,0,0,.85)}
#trekTop .pv.short{color:#ff8a7a;text-shadow:0 1px 3px rgba(0,0,0,.85)}
/* flasks and gold sit in framed plaques: an icon, a small tracked label and the number in the head face (--ui-head) */
#trekTop .plq,#peekYou .plq{display:flex;align-items:center;gap:10px;padding:4px 14px;border:1px solid transparent;text-shadow:0 1px 3px rgba(0,0,0,.85)} /* an icon and a number, no box (#1363); the border kept clear so nothing moves */
#trekTop .plq .lbl,#peekYou .plq .lbl{font:15px/1 Georgia,serif;letter-spacing:.06em;text-transform:uppercase;color:#8f9a80}#trekTop .plq.gold .lbl,#peekYou .plq.gold .lbl{color:#b39a58}
#trekTop .plq .num,#peekYou .plq .num{font-family:var(--ui-head);font-size:22px;letter-spacing:.02em}#trekTop .plq .of,#peekYou .plq .of{color:#8f8670;font-size:17px}
#topBar #topCrys{opacity:var(--crys,1)}#trekTop .plq.crys .crysIco,#peekYou .plq.crys .crysIco{width:24px;height:24px;filter:drop-shadow(0 0 4px rgba(255,143,208,.6))}#trekTop .plq.crys .lbl,#peekYou .plq.crys .lbl{color:#d896bd} /* the Crystals' plaque (mapui.js crysPlaque), once rings are open */
#trekTop .plq.life .lfIco,#peekYou .plq.life .lfIco{width:22px;height:22px;filter:drop-shadow(0 0 4px rgba(191,232,240,.6))}#trekTop .plq.life .lbl,#peekYou .plq.life .lbl{color:#9ccad4}#trekTop .plq.life.due{visibility:hidden} /* the Extra Life plaque (extralife.js lifePlaqueHTML), its place kept unseen while a Boss's first life flies to it */
#trekTop .flico,#peekYou .flico{width:15px;height:21px;filter:drop-shadow(0 0 4px rgba(255,150,40,.7))}#trekTop .coin,#peekYou .coin{width:28px;height:28px;filter:drop-shadow(0 0 4px rgba(232,198,106,.55))}
/* the plaque the option in focus would change (trekTop, mapui.js; Ole 2026-11-12): its frame, label and icon's halo lit green for a gain (.ga), red for a loss (.lo), and in its own colour, the flasks' amber or the gold's gold, for both at once (the Gambler's bet); flaring as it lights and then breathing softly; drawn on ::after, so a landing's pop (.pop) still plays on the plaque, and the bar is rebuilt only when its words change, so moving between two rows that cost the same keeps the breath going */
#trekTop .plq{position:relative}#trekTop .plq.hot{--hg:255,172,64}#trekTop .plq.gold.hot{--hg:240,206,112}#trekTop .plq.hot.ga{--hg:124,226,150}#trekTop .plq.hot.lo{--hg:240,104,84}#trekTop .plq.hot .lbl{color:rgba(var(--hg),.9)}#trekTop .plq.hot.ga :is(.flico,.coin),#trekTop .plq.hot.lo :is(.flico,.coin){filter:drop-shadow(0 0 5px rgba(var(--hg),.85))}

#evArt{position:relative;width:270px;height:270px;margin:0 auto 28px;flex:none}
.sPool{position:absolute;left:20px;top:110px;width:300px;height:140px}.sPool svg{width:100%;height:100%;overflow:visible}.sPool .sWater{transition:fill 1s}
.sPool i{position:absolute;display:block;opacity:0;pointer-events:none}
.sPool .sCoin{left:0;top:0;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff2b8,#e8c66a 45%,#8a6a2a);animation:sToss .85s cubic-bezier(.3,0,.7,1) forwards}
.sPool.drop .sCoin{opacity:0;animation:none}
.sPool .sRing{left:50%;top:50%;width:40px;height:10px;margin:-5px 0 0 -20px;border-radius:50%;border:2px solid rgba(170,190,200,.55)}
.sPool.drop .sRing{animation:sRing 1.5s ease-out forwards}.sPool.drop .sRing:nth-of-type(2){animation-delay:.3s}.sPool.drop .sRing:nth-of-type(3){animation-delay:.6s}
.sPool.hush .sWater{fill:#030405}
.sPool .sRise{left:15%;top:-140%;width:70%;height:190%;border-radius:50%;transform:scaleY(.1);transform-origin:50% 100%}
.sPool.pack .sRise{background:radial-gradient(ellipse at 50% 85%,rgba(255,236,170,.9),rgba(201,162,255,.4) 40%,transparent 70%);animation:sRise 1s ease-out forwards}
.sPool .sCard{left:50%;top:50%;width:36px;height:50px;margin:-25px 0 0 -18px;border-radius:4px;background:linear-gradient(160deg,#4a3a6a,#221a34);border:2px solid #c9a2ff;box-shadow:0 0 18px rgba(201,162,255,.8)}
.sPool.pack .sCard{animation:sCard 1s cubic-bezier(.2,1.2,.4,1) forwards}
.sPool .sCol{left:50%;top:50%;width:26px;height:110px;margin:-110px 0 0 -13px;border-radius:13px 13px 4px 4px;background:linear-gradient(to top,rgba(127,209,196,.85),rgba(127,209,196,.15));transform:scaleY(0);transform-origin:50% 100%}
.sPool.charge .sCol{animation:sCol 1.2s ease-out forwards}.sPool.charge .sWater{fill:#0a1a1a}
.sPool .sGlint{left:50%;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff6c8,#e8c66a 50%,#8a6a2a);box-shadow:0 0 10px rgba(232,198,106,.9)}
.sPool.double .sGlint{animation:sGlint .9s cubic-bezier(.2,.9,.4,1) forwards}
.sPool.double .sGlint:nth-of-type(8){--gx:-25px;--gy:-62px}.sPool.double .sGlint:nth-of-type(9){--gx:-60px;animation-delay:.12s}.sPool.double .sGlint:nth-of-type(10){--gx:10px;--gy:-70px;animation-delay:.24s}.sPool.double .sGlint:nth-of-type(11){--gx:45px;animation-delay:.36s}.sPool.double .sGlint:nth-of-type(12){--gx:75px;--gy:-38px;animation-delay:.48s}
.sPool.none .sWater{fill:#000}.sPool.none .sRise{background:radial-gradient(ellipse at 50% 85%,rgba(150,165,175,.55),rgba(60,70,80,.3) 40%,transparent 70%);animation:sRise 1.4s ease-out forwards}
.sPool.none .sGlint{width:7px;height:7px;margin:-3px 0 0 -3px;background:radial-gradient(circle at 35% 35%,#e8f0f4,#6a7a84 70%);box-shadow:0 0 6px rgba(170,190,200,.6);animation:sBub 1.4s ease-out forwards}
.sPool.none .sGlint:nth-of-type(8){--gx:-14px}.sPool.none .sGlint:nth-of-type(9){--gx:-4px;animation-delay:.2s}.sPool.none .sGlint:nth-of-type(10){--gx:12px;animation-delay:.4s}.sPool.none .sGlint:nth-of-type(11){--gx:4px;animation-delay:.6s}.sPool.none .sGlint:nth-of-type(12){--gx:20px;animation-delay:.8s}
.sPool.curse .sWater{fill:#1e0705}.sPool.curse .sRise{background:radial-gradient(ellipse at 50% 85%,rgba(224,96,80,.85),rgba(120,20,16,.45) 40%,transparent 70%);animation:sRise 1s ease-out forwards}
@keyframes sToss{0%{opacity:1;transform:translate(300px,-90px) scale(1.3)}55%{opacity:1;transform:translate(210px,-110px) scale(1.1)}100%{opacity:1;transform:translate(150px,70px) scale(.6)}}
@keyframes sBub{0%{opacity:0;transform:translate(0,10px) scale(.5)}30%{opacity:.9}100%{opacity:0;transform:translate(var(--gx,0),-34px) scale(1)}}
@keyframes sRing{0%{opacity:.9;transform:scale(.3)}100%{opacity:0;transform:scale(5.5)}}
@keyframes sRise{0%{opacity:0;transform:scaleY(.1)}35%{opacity:1;transform:scaleY(1.1)}100%{opacity:.8;transform:scaleY(1)}}
@keyframes sCard{0%{opacity:0;transform:translateY(10px) scale(.4)}100%{opacity:1;transform:translateY(-75px) scale(1)}}
@keyframes sCol{0%{opacity:0;transform:scaleY(0)}40%{opacity:1;transform:scaleY(1)}100%{opacity:.6;transform:scaleY(.92)}}
@keyframes sGlint{0%{opacity:0;transform:translate(0,0) scale(.4)}40%{opacity:1}100%{opacity:1;transform:translate(var(--gx,0),var(--gy,-50px)) scale(1)}}
#beatStage.wheel{width:380px;height:380px;margin:6px 0 0}
.whW{position:absolute;inset:0}.whW svg{width:100%;height:100%;display:block;overflow:visible}.whW text{font-family:var(--ui-head)}
#whRot{transform-origin:150px 150px}#whPt{transform-origin:150px 0}#whPt .crack{filter:drop-shadow(0 0 5px #e8c66a)}
/* the Cursed Wheel Of Fortune: the wheel big on the left, its outcomes listed on the right with Spin and Leave under them (renderList with an `aside`; the spin is a beat with the same split, evbeats.js eventBeat) */
#trekBody.tall #trekTitle:has(+#evSplit){padding-bottom:calc(24px - var(--short) / 30)} /* the event and its spin alike, so the wheel never moves as it is spun */
#evSplit{display:flex;align-items:center;justify-content:center;gap:calc(100px - var(--short) / 18);width:1500px;max-width:calc(96*var(--vw));translate:96px 0} /* (a little right of center: the wheel clears the corner medallions, details.css #navMed) */
#evSplit #evArt.big,#evSplit #beatStage.wheel{width:calc(680px - var(--short) * .5);height:calc(680px - var(--short) * .5);margin:0;flex:none}
#evSide{flex:none;width:720px;display:flex;flex-direction:column}
#evSide #trekList.ev{width:100%;margin-top:calc(30px - var(--short) / 22)}
#evSide #trekList.ev .hr{grid-template-columns:minmax(260px,1fr) 1.3fr;padding:14px 22px}
#evSide #beatLine{text-align:center;margin-top:calc(30px - var(--short) / 22)}#evSide #beatGo #trekList.ev{margin-top:4px}
#evSide>.luckTags.side{position:static;width:auto;flex-direction:row;flex-wrap:wrap;gap:10px;min-height:40px;margin-bottom:12px} /* luck's tags over the list (events.js wheel `aside`) */
#evSide #beatLine{font-size:20px;letter-spacing:.02em;line-height:1.4;min-height:56px}
#evSplit #beatStage.wheel .luckFlash{left:50%;top:auto;bottom:70px;translate:-50% 0} /* the stamp over the stopped wheel, clear of the list */
.whL{display:flex;flex-direction:column;gap:10px}
.whR{display:grid;grid-template-columns:8px 50px 1fr auto;align-items:center;column-gap:16px;padding:12px 20px 12px 0;background:rgba(0,0,0,.28);border-radius:4px;transition:opacity .6s,background .15s,box-shadow .15s}
.whSw{align-self:stretch;border-radius:4px 0 0 4px;background:var(--c)}
.whI{font-size:30px;text-align:center;font-style:normal}
.whN{font-family:var(--ui-head);font-size:22px;letter-spacing:.02em;color:#e8dfc4}
.whP{font-family:var(--ui-head);font-size:28px;color:#e8dfc4;min-width:70px;text-align:right}
.whR.bad{background:rgba(120,30,30,.22)}.whR.bad .whN,.whR.bad .whP{color:#e07a6a}
.whPips{display:inline-flex;gap:4px;margin-left:12px;vertical-align:middle}.whPips i{display:block;height:8px;background:var(--c);border-radius:2px;opacity:.8}
.whR.cur{background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px var(--c)} /* the wedge under the crack as the wheel turns */
.whL.done .whR{opacity:.3}.whL.done .whR.won{opacity:1;background:color-mix(in srgb,var(--c) 14%,transparent);box-shadow:0 0 0 2px var(--c),0 0 26px color-mix(in srgb,var(--c) 30%,transparent)}
.whW .wg{transition:opacity .6s}.whW .hl{fill-opacity:0;transition:fill-opacity .6s}
.whW.done .wg{opacity:.3}.whW.done .wg.won{opacity:1}.whW.done .wg.won .hl{fill-opacity:.5}
#beatLine{min-height:40px;margin-top:14px;font-family:var(--ui-head);font-size:24px;letter-spacing:.02em;opacity:0;transition:opacity .4s}
#beatLine.on{opacity:1}#beatLine.win{color:#ddd5c3;text-shadow:0 1px 3px rgba(0,0,0,.85)}#beatLine.lose{color:#9a6a5a}
#trekList.ev.go{width:320px;margin:22px auto 0;border-top:0}#trekList.ev.go.gamble{width:420px;min-height:150px}#trekList.ev.go.gamble .ho{border-left:0;padding:0;text-align:center;font-size:16px} /* the Gambler's Roll / next bet rows (events.js gamble) */#trekList.ev.go .hr{grid-template-columns:1fr;justify-items:center;cursor:pointer}
body.paused #trek.on{opacity:.6} /* under the Edge's blur: the screen paused, never its words read through it */
body.paused #trek .ps,body.paused #levelup .ps{visibility:hidden} /* the pause menu brings its own hint bar: the run view's (or the boon pick's) would show through beside it */
body.paused #hud{opacity:0;transition:none} /* the pause screen lists what the HUD would only crowd */
/* the Boon Binder (binder.js): the one boon picker, a full-screen book of cards laid out for 1920x900 and drawn there at its own size (#558); a taller window opens its gaps and cards by --short up to the 1920x1080 look; fitBinder shrinks it only for a UI scale above 100% (--bdH: a card's height) */
#boonBinder{position:fixed;inset:0;z-index:29;display:none;background:radial-gradient(ellipse at 40% 40%,#1c2117,#0a0c08 70%,#050604);color:#d8d2c0;font-family:Georgia,serif;overflow:hidden}
#boonBinder.on{display:block}#boonBinder.top{z-index:41} /* over the pause menu when opened from its Codex; under it (and the peek) when opened over a screen it can pause */
body.paused #boonBinder:not(.top){opacity:.25}
#boonBinder .bdStage{--bdH:calc(287px - var(--short) * .15);position:relative;width:1920px;height:calc(1080px - var(--short))}
#boonBinder .bdHd{position:absolute;left:0;right:0;text-align:center;top:calc(38px - var(--short) / 11)} /* (centred, as every page title; a little higher than --pageTop, as the tabs stand right under it) */
#boonBinder .bdHd h1{margin:0;font-family:var(--ui-head);font-weight:normal;font-size:34px;letter-spacing:.02em;color:#ddd5c3;text-shadow:0 1px 3px rgba(0,0,0,.85)}
#boonBinder .bdHd p{margin:6px 0 0;font-style:italic;font-size:17px;color:#a9b096;letter-spacing:.02em}
#boonBinder .bdTabs{position:absolute;left:60px;right:460px;top:calc(132px - var(--short) * .18);display:flex;gap:6px;align-items:flex-end}
#boonBinder .bdTab{padding:9px 20px 8px;font-family:var(--ui-head);font-size:16px;letter-spacing:.06em;text-transform:uppercase;color:#8f8a78;border:1px solid rgba(190,170,130,.25);border-bottom:none;background:rgba(20,18,12,.7);border-radius:6px 6px 0 0;cursor:pointer}
#boonBinder .bdTab.on{color:#eae6de;background:rgba(48,40,24,.95);border-color:rgba(221,213,195,.6);box-shadow:inset 0 3px 0 var(--c)}
#boonBinder .bdTab.here{color:#cfc6aa;background:rgba(44,39,28,.85);box-shadow:inset 0 2px 0 var(--c)} /* (the focused card's tier is on; another tier on the page turned to is here) */
#boonBinder .bdTab em{font-style:normal;opacity:.6;margin-left:8px}
#boonBinder .bdSearch{align-self:center;margin-left:20px;width:150px;height:22px;padding:8px 14px;border:1px solid rgba(190,170,130,.3);border-radius:18px;color:#7a7564;font-style:italic;font-size:15px;background:rgba(0,0,0,.35);cursor:text;white-space:nowrap;overflow:hidden}
#boonBinder .bdSearch.q{color:#e6e2d8;font-style:normal}#boonBinder .bdSearch.on{border-color:rgba(221,213,195,.7);box-shadow:none}
#boonBinder .bdView{align-self:center;display:flex;margin-left:20px;border:1px solid rgba(190,170,130,.3);border-radius:18px;overflow:hidden;background:rgba(0,0,0,.35)} /* the Codex's Held / All switch (binder.js binderView): a hand with the held count, a book with every boon's */
#boonBinder .bdView span{display:flex;align-items:center;gap:8px;padding:6px 16px;font:15px Georgia,serif;color:#8f8a78;cursor:pointer}
#boonBinder .bdView span.on{color:var(--ui-sel-fg);background:var(--ui-sel-bg)}
#boonBinder .bdView .pi{width:18px;height:18px}
#boonBinder .bdCat{position:relative;align-self:center;display:flex;align-items:center;gap:8px;padding:4px 12px 4px 8px;border:1px solid rgba(190,170,130,.3);border-radius:18px;background:rgba(0,0,0,.35);font:15px Georgia,serif;color:#a9a28a;cursor:pointer;white-space:nowrap} /* the category filter, one control (binder.js binderCat): the category shown, its list under it on a click; R3 / V steps */
#boonBinder .bdCat.pick{color:#eae6de;border-color:var(--c);box-shadow:none}#boonBinder .bdCat:hover,#boonBinder .bdCat.open{border-color:rgba(221,213,195,.7)}
#boonBinder .bdCat>b{font-weight:normal;font-size:12px;opacity:.7}#boonBinder .bdCat .pi{width:22px;height:22px}
#boonBinder .bdCatMenu{position:absolute;right:0;top:calc(100% + 6px);z-index:5;display:flex;flex-direction:column;min-width:180px;padding:6px;border:1px solid rgba(221,213,195,.6);border-radius:8px;background:rgba(28,25,18,.98);box-shadow:0 10px 30px #000}
#boonBinder .bdCatMenu span{display:flex;align-items:center;gap:10px;padding:5px 10px;border-radius:5px;color:#cfc6aa}
#boonBinder .bdCatMenu span:hover{background:rgba(48,40,24,.95);color:#eae6de}#boonBinder .bdCatMenu span.on{color:#eae6de;box-shadow:inset 3px 0 0 var(--c)}#boonBinder .bdCatMenu span.off{opacity:.35}
#boonBinder .bdCatMenu .pi{width:22px;height:22px}
#boonBinder .bdSearch i{display:inline-block;width:2px;height:17px;margin-left:2px;vertical-align:-3px;background:#ddd5c3;animation:bdCaret 1s steps(1) infinite}
@keyframes bdCaret{50%{opacity:0}}
#boonBinder .bdBook{position:absolute;left:60px;top:calc(172px - var(--short) * .18);width:1400px;height:calc(800px - var(--short) * .75);box-sizing:border-box;border:1px solid rgba(221,213,195,.5);border-radius:0 8px 8px 8px;background:linear-gradient(rgba(48,40,24,.55),rgba(26,23,17,.7)),repeating-linear-gradient(90deg,rgba(255,255,255,.012) 0 2px,transparent 2px 6px);box-shadow:inset 0 0 80px rgba(0,0,0,.7),0 10px 40px #000}
#boonBinder .bdGrid{position:absolute;left:66px;top:calc(34px - var(--short) / 22);display:grid;grid-template-columns:repeat(5,236px);grid-auto-rows:calc(366px - var(--short) * .4);gap:calc(20px - var(--short) / 30) 22px}
#boonBinder .bdEmpty{grid-column:1/-1;padding-top:calc(300px - var(--short) / 2);text-align:center;font-style:italic;font-size:19px;color:#8f8a78}
#boonBinder .bdCell{position:relative;display:flex;flex-direction:column;align-items:center;cursor:pointer}
#boonBinder .bdCw{position:relative;width:200px;height:var(--bdH);transition:transform .2s}
#boonBinder .bdCell.sel .bdCw{transform:translateY(var(--focus-lift))}
#boonBinder .bdCell.dim .bdCw{filter:brightness(.62)}
#boonBinder .bdCw>.cards{position:absolute;left:0;top:0;width:200px;height:var(--bdH);display:block}
#boonBinder .cards .slot{width:200px;height:var(--bdH);cursor:pointer}#boonBinder .cards .slot.sel{transform:none} /* (the cell lifts as a whole, its stack with it) */
/* (tight for the category band at the foot, boons.js boonBandHTML; a taller window opens the gaps by --short, 0 at 1080: about 55% of what the cards would need to reach the old look; the ranks are the pips under the card, so no Rank line) */
#boonBinder .cards .card{width:200px;padding:calc(22.4px - var(--short) * .0244) 14px 20px}#boonBinder .cards .card:has(>.bband){padding-bottom:38px}
#boonBinder .cards .tr{margin:-10px 0 calc(5.3px - var(--short) * .0183)}#boonBinder .cards .slot:is(.common,.uncommon,.rare) .card{padding-top:calc(34px - var(--short) * .0244)}#boonBinder .cards :is(.common,.uncommon,.rare) .tr{height:26px;margin:0} /* (a rolled tier's head band, a little lower than the boon pick's: the tightest cards' text must clear their foot band) */#boonBinder .cards .gl{font-size:calc(37.3px - var(--short) * .0183);line-height:1}
#boonBinder .cards .nm{margin-top:calc(5.3px - var(--short) * .0183);font-size:19px;letter-spacing:.02em;min-height:2.3em}
#boonBinder .cards .rk{display:none}
#boonBinder .cards .ds{margin-top:calc(6.4px - var(--short) * .0244);font-size:17px;line-height:calc(22.7px - var(--short) * .0052)}
#boonBinder .bdCell.long .cards .gl{display:none}#boonBinder .bdCell.long .cards .ds{font-size:15px;line-height:calc(21.1px - var(--short) * .0047)}
#boonBinder .gone{color:#d0584a;font-style:italic}#boonBinder .lose{color:#d0584a}#boonBinder .gain{color:#8fd18a}
#boonBinder .bdBack{position:absolute;width:200px;height:var(--bdH);box-sizing:border-box;border:1px solid rgba(221,213,195,.55);background:repeating-linear-gradient(45deg,#1d1810 0 7px,#262016 7px 14px);box-shadow:0 2px 8px #000}
#boonBinder .bdPeel{position:absolute;inset:0;border:2px dashed #d0584a;background:rgba(70,20,14,.35);transform:translate(18px,-16px) rotate(6deg);box-shadow:none;pointer-events:none}
#boonBinder .bdTag{position:absolute;top:-14px;right:-10px;z-index:3;padding:4px 12px;border-radius:14px;font-family:var(--ui-head);font-size:16px;letter-spacing:.02em;background:#1a140a;border:1px solid #ddd5c3;color:#ddd5c3;box-shadow:0 0 12px #000;white-space:nowrap}
#boonBinder .bdTag.lose{border-color:#d0584a;color:#ffb0a0}#boonBinder .bdTag.gain{border-color:#8fd18a;color:#8fd18a}
#boonBinder .bdPips{display:flex;gap:7px;margin-top:14px;height:14px;align-items:center}
#boonBinder .bdPips i{width:11px;height:11px;transform:rotate(45deg);border:1px solid rgba(221,213,195,.45);box-sizing:border-box}
#boonBinder .bdPips i.on{background:#ddd5c3;border-color:#ddd5c3;box-shadow:none}
#boonBinder .bdPips i.cut{background:rgba(208,88,74,.2);border:2px dashed #d0584a;box-shadow:none}
#boonBinder .bdPips i.up{background:rgba(143,209,138,.25);border:2px dashed #8fd18a;box-shadow:none}
#boonBinder .bdLk{margin-top:12px;font-family:var(--ui-head);letter-spacing:.06em;font-size:15px;text-transform:uppercase;color:#7a7564}
#boonBinder .bdStep{margin-top:8px;font-family:var(--ui-head);font-size:18px;letter-spacing:.02em;color:#ddd5c3}
#boonBinder .bdStep b{font-weight:normal;color:#eae6de;padding:0 8px}#boonBinder .bdStep .ra{cursor:pointer}
#boonBinder .bdArr{position:absolute;top:calc(300px - var(--short) * .38);width:56px;height:200px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(221,213,195,.7);border-radius:8px;background:linear-gradient(rgba(60,48,24,.95),rgba(26,21,12,.95));box-shadow:0 4px 14px #000;color:#ebe8e0;cursor:pointer;font-family:var(--ui-head)}
#boonBinder .bdArr b{font-weight:normal;font-size:56px;line-height:44px;text-shadow:0 1px 3px rgba(0,0,0,.85)}
#boonBinder .bdArr:hover{border-color:#ebe8e0;box-shadow:0 4px 14px #000}
#boonBinder .bdArr.l{left:6px}#boonBinder .bdArr.r{right:6px}#boonBinder .bdArr.off{opacity:.15;box-shadow:none;cursor:default}
#boonBinder .bdTab.off{opacity:.4} /* (the search hides every card of it) */
#boonBinder .bdPage{position:absolute;left:60px;width:1400px;top:calc(982px - var(--short) * .93);text-align:center;font-family:var(--ui-head);letter-spacing:.06em;font-size:15px;text-transform:uppercase;color:#dcd6c8}#boonBinder .bdPage span{margin-left:22px;color:#8f8a78}#boonBinder .bdPage b{font-weight:normal}
#boonBinder .bdReset{flex-shrink:0;margin:auto 0 10px;padding:9px;text-align:center;font-family:var(--ui-head);letter-spacing:.06em;font-size:15px;text-transform:uppercase;color:#ddd5c3;border:1px solid rgba(221,213,195,.5);cursor:pointer}
#boonBinder .bdReset.dim{color:#6f6a5a;border-color:rgba(190,170,130,.2);cursor:default}#boonBinder .bdReset+.bdBtn{margin-top:0}
#boonBinder .bdSide{position:absolute;right:40px;top:calc(132px - var(--short) * .18);width:400px;bottom:70px;box-sizing:border-box;padding:18px;border:1px solid rgba(221,213,195,.35);background:linear-gradient(rgba(24,20,12,.92),rgba(10,9,6,.95));box-shadow:0 10px 40px #000;display:flex;flex-direction:column}
#boonBinder .bdSide h2{margin:0 0 4px;font-family:var(--ui-head);font-weight:normal;font-size:20px;letter-spacing:.02em;color:#ddd5c3}
#boonBinder .bdSide .s{font-size:15px;color:#8f8a78;font-style:italic;margin-bottom:12px}
#boonBinder .bdList{overflow:auto;scrollbar-width:none;min-height:0}
#boonBinder .bdStrip{display:flex;align-items:center;gap:12px;height:44px;flex-shrink:0;margin-bottom:6px;padding:0 12px;border-left:4px solid var(--c);background:linear-gradient(90deg,rgba(255,255,255,.05),rgba(0,0,0,.2));font-family:var(--ui-head);font-size:16px;letter-spacing:.02em;color:#e4dfd4}
#boonBinder .bdStrip .g{width:22px;text-align:center;font-family:Georgia,serif;font-size:19px}#boonBinder .bdStrip .n{flex:1}
#boonBinder .bdStrip .r{font-family:Georgia,serif;color:#ddd5c3;letter-spacing:.02em}
#boonBinder .bdStrip.hot{outline:1px solid #ddd5c3;box-shadow:none}
#boonBinder .bdNone{font-style:italic;font-size:16px;color:#7a7564;padding:8px 4px}
#boonBinder .bdBig{font-size:17px;line-height:1.55;padding:12px 4px 14px;border-bottom:1px solid rgba(190,170,130,.2);margin-bottom:12px}
#boonBinder .bdBig.none{border:none;font-style:italic;color:#8f8a78}
#boonBinder .bdDelta{font-size:16px;line-height:1.7}#boonBinder .bdDelta div{display:flex;justify-content:space-between}#boonBinder .bdDelta .a{color:#8f8a78}
#boonBinder .bdSlots{display:flex;gap:12px;margin:6px 0 14px}
#boonBinder .bdSlots div{flex:1;height:52px;border:1px dashed rgba(221,213,195,.45);display:flex;align-items:center;justify-content:center;color:#6f6a5a;font-size:15px}
#boonBinder .bdSlots div.f{border:1px solid #d0584a;background:rgba(50,16,12,.7);color:#ffb0a0;font-size:16px}
#boonBinder .bdBtn{margin-top:auto;flex-shrink:0;padding:14px;text-align:center;font-family:var(--ui-head);letter-spacing:.02em;font-size:20px;color:var(--ui-sel-fg);background:var(--ui-sel-bg);border:1px solid var(--ui-sel-line);box-shadow:none;cursor:pointer}
#boonBinder .bdBtn.dim{color:#8f8a78;background:rgba(40,34,22,.8);box-shadow:none;border:1px solid rgba(190,170,130,.3);cursor:default}
#boonBinder .ps{position:absolute;left:0;right:0;bottom:24px;margin:0;font-family:Georgia,serif;font-size:16px;letter-spacing:.02em;color:#bdb6a0;text-align:center}
