/* the map, event choices and stages, the camp, 3D-scene menus, the Shop and the Limited Sale (index.html links the css/ files in cascade order: a later file wins a tie) */
/* a colour per kind of place (the shape, NODE_SHAPE in mapui.js, carries the category too): fights steel, a Hard Fight ember, a solid diamond ringed with thorns, the boss crimson, events violet, places that serve you moss green; gold stays for the path walked and the focus */
:is(#trekMap,.nodeArt) .nd.fight,:is(#trekMap,.nodeArt) .nd.timed{--c:#7f98b0;--g:#c2dcf4}:is(#trekMap,.nodeArt) .nd.mod{--c:#c8693c;--g:#ff9e6e}:is(#trekMap,.nodeArt) .nd.boss{--c:#b8282e;--g:#ff6458}:is(#trekMap,.nodeArt) .nd.event{--c:#9a74c8;--g:#d8b6ff}
:is(#trekMap,.nodeArt) .nd.chest{--c:#d4a23c;--g:#ffd66e} :is(#trekMap,.nodeArt) .nd.enchanter{--c:#d98a2e;--g:#ffc861} /* (the Rare Chest: gold, named from afar as the boss is) */
:is(#trekMap,.nodeArt) .nd.rest,:is(#trekMap,.nodeArt) .nd.shop,:is(#trekMap,.nodeArt) .nd.armor,:is(#trekMap,.nodeArt) .nd.quests,:is(#trekMap,.nodeArt) .nd.tower,:is(#trekMap,.nodeArt) .nd.ringsmith{--c:#7fa45e;--g:#c2e69c}
:is(#trekMap,.nodeArt) .halo{fill:none;stroke:#f2d56f;stroke-width:1.2;opacity:0}
:is(#trekMap,.nodeArt) .disc{fill:var(--bg);stroke:var(--c);stroke-width:1.6;stroke-linejoin:round}
/* a Hard Fight: the diamond filled in its colour, the swords cut out of it, the thorns behind in its colour, a dark edge parting the two (the colour follows the place: lit, focus, done) */
:is(#trekMap,.nodeArt) .thorn{fill:var(--c);stroke:none;display:none}:is(#trekMap,.nodeArt) .nd.mod .thorn{display:inline}
:is(#trekMap,.nodeArt) .nd.mod .disc,:is(#trekMap,.nodeArt) .nd.mod.opt .disc,:is(#trekMap,.nodeArt) .nd.mod.sel .disc,:is(#trekMap,.nodeArt) .nd.mod.done .disc{fill:var(--c);stroke:var(--bg);stroke-width:3}
:is(#trekMap,.nodeArt) .nd.mod .gl,:is(#trekMap,.nodeArt) .nd.mod .gl path{fill:var(--bg)!important}:is(#trekMap,.nodeArt) .nd.mod .gl .s,:is(#trekMap,.nodeArt) .nd.mod .gl .s *{stroke:var(--c)}
:is(#trekMap,.nodeArt) .nd.mod.opt{--c:#ff9e6e}:is(#trekMap,.nodeArt) .nd.mod.sel{--c:#f2d56f}:is(#trekMap,.nodeArt) .nd.mod.done{--c:#e8c66a}
/* the emblem: filled in the place's colour; .k cut-outs in the disc's, .s parts edged in it, .ln/.tn strokes, .ring an open circle, .eye glowing eyes (beats :is(#trekMap,.nodeArt) path{fill:none}) */
:is(#trekMap,.nodeArt) .gl,:is(#trekMap,.nodeArt) .gl path{fill:var(--c);stroke:none}
:is(#trekMap,.nodeArt) .gl .k,:is(#trekMap,.nodeArt) .gl path.k{fill:var(--bg)}
:is(#trekMap,.nodeArt) .gl .s,:is(#trekMap,.nodeArt) .gl .s *{stroke:var(--bg);stroke-width:3;paint-order:stroke;stroke-linejoin:round}
:is(#trekMap,.nodeArt) .gl path.ln,:is(#trekMap,.nodeArt) .gl path.tn{fill:none;stroke:var(--c);stroke-width:4.6;stroke-linecap:round;stroke-linejoin:round}
:is(#trekMap,.nodeArt) .gl path.tn{stroke-width:3}
:is(#trekMap,.nodeArt) .gl .ring{fill:none;stroke:var(--c);stroke-width:2}
:is(#trekMap,.nodeArt) .gl path.eye{fill:var(--g)}
:is(#trekMap,.nodeArt) .nd.opt .gl,:is(#trekMap,.nodeArt) .nd.opt .gl path{fill:var(--g)}:is(#trekMap,.nodeArt) .nd.opt .gl path.k,:is(#trekMap,.nodeArt) .nd.opt .gl .k{fill:var(--bg)}
:is(#trekMap,.nodeArt) .nd.opt .gl path.ln,:is(#trekMap,.nodeArt) .nd.opt .gl path.tn,:is(#trekMap,.nodeArt) .nd.opt .gl .ring{stroke:var(--g);fill:none}:is(#trekMap,.nodeArt) .nd.opt .gl path.eye{fill:#fff2d0}
:is(#trekMap,.nodeArt) .nd.sel .gl,:is(#trekMap,.nodeArt) .nd.sel .gl path{fill:#f2d56f}:is(#trekMap,.nodeArt) .nd.sel .gl path.k,:is(#trekMap,.nodeArt) .nd.sel .gl .k{fill:var(--bg)}:is(#trekMap,.nodeArt) .nd.sel .gl path.ln,:is(#trekMap,.nodeArt) .nd.sel .gl path.tn,:is(#trekMap,.nodeArt) .nd.sel .gl .ring{stroke:#f2d56f;fill:none}
:is(#trekMap,.nodeArt) .nd.done{--bg:#2a2412}:is(#trekMap,.nodeArt) .nd.done .gl,:is(#trekMap,.nodeArt) .nd.done .gl path{fill:#e8c66a}:is(#trekMap,.nodeArt) .nd.done .gl path.k,:is(#trekMap,.nodeArt) .nd.done .gl .k{fill:var(--bg)}:is(#trekMap,.nodeArt) .nd.done .gl path.ln,:is(#trekMap,.nodeArt) .nd.done .gl path.tn,:is(#trekMap,.nodeArt) .nd.done .gl .ring{stroke:#e8c66a;fill:none}:is(#trekMap,.nodeArt) .nd.done .gl path.eye{fill:#fff2d0}
:is(#trekMap,.nodeArt) .nm{fill:#8d927c;font-family:var(--ui-head);font-size:15px;letter-spacing:.02em;text-anchor:middle;paint-order:stroke;stroke:#050604;stroke-width:3px}
:is(#trekMap,.nodeArt) .nm.pay{fill:#e8c66a;font-family:Georgia,serif;font-variant:normal;font-size:14px;letter-spacing:.02em}
:is(#trekMap,.nodeArt) .nm .pay{fill:#e8c66a;font-family:Georgia,serif;font-variant:normal;font-size:14px;letter-spacing:.02em} /* a fight's pay on its label's line, where every place is named */
:is(#trekMap,.nodeArt) .body{transform-box:fill-box;transform-origin:center;transition:transform .15s}
:is(#trekMap,.nodeArt) .nd.opt{opacity:1}:is(#trekMap,.nodeArt) .nd.opt .disc{stroke:var(--g)}:is(#trekMap,.nodeArt) .nd.opt .nm{fill:#cfd1b8}:is(#trekMap,.nodeArt) .nd.opt .nm.pay{fill:#e8c66a}
:is(#trekMap,.nodeArt) .nd.sel .body{transform:scale(1.08)}
:is(#trekMap,.nodeArt) .nd.sel .disc{stroke:#f2d56f;stroke-width:2.2}
:is(#trekMap,.nodeArt) .nd.sel .nm{fill:#f2d56f}:is(#trekMap,.nodeArt) .nd.sel .halo{opacity:.9}
:is(#trekMap,.nodeArt) .nd.opt{cursor:pointer}
:is(#trekMap,.nodeArt) .nd.done{opacity:.9}:is(#trekMap,.nodeArt) .nd.done .disc{fill:#2a2412;stroke:#e8c66a}:is(#trekMap,.nodeArt) .nd.done .nm{fill:#c9b25f}
/* out of reach (mapboard.js mapAhead, Ole 2026-11-14): a place passed by (.gone) or ahead but off every way on (.cut) fades into the dark, as does a trail from one */
:is(#trekMap,.nodeArt) :is(.nd.gone,.nd.cut){opacity:.2}
#trekMap .far.cut{stroke:#3a3f33;opacity:.45}
/* the focus on a place you cannot go to (mapboard.js mapCells, `look`): a cold dashed ring, no lift and no gold (gold is for a way on); the trails that reach it are lit,
   the ways on breathe, and the mouse shows no entry. Enter there (`nope`): it shakes its head with a red flash, and the ways on flash once (--nope keeps the place in it) */
#trekMap .nd[data-i]:not(.opt){cursor:not-allowed}
#trekMap .nd.look{opacity:.9}#trekMap .nd.look:is(.gone,.cut){opacity:.55}#trekMap .nd.look .nm{fill:#b3b6a0}#trekMap .nd.look .nm.pay,#trekMap .nd.look .nm .pay{fill:#c9b25f}
#trekMap .nd.look .halo{opacity:.85;stroke:#9da290;stroke-width:1.5;stroke-dasharray:3 3.5}
#trekMap .far.route{stroke:#a99a5e;stroke-width:2;stroke-dasharray:2 4;stroke-linecap:round;opacity:1}
#trekMap.looking .nd.opt .halo{animation:mapBeck 1.6s ease-in-out infinite;animation-delay:var(--ph)}
#trekMap.looking.nope .nd.opt .halo{animation:mapBeck 1.6s ease-in-out var(--ph) infinite,mapCall .7s ease-out var(--nope) both}
#trekMap .nd.nope .body{animation:mapShake .42s ease-out var(--nope) both}
#trekMap .nd.nope .halo{animation:mapNopeRing .7s ease-out var(--nope) both}
@keyframes mapBeck{0%,100%{opacity:.12}50%{opacity:.6}}
@keyframes mapCall{0%{opacity:1;stroke-width:3.2}100%{opacity:.12;stroke-width:1.2}}
@keyframes mapShake{0%,100%{transform:translateX(0)}15%{transform:translateX(-6px)}35%{transform:translateX(5px)}55%{transform:translateX(-4px)}75%{transform:translateX(2px)}}
@keyframes mapNopeRing{0%{stroke:#d0464c;opacity:1;stroke-width:2.8;stroke-dasharray:none}100%{stroke:#9da290;opacity:.85;stroke-width:1.5}}
:is(#trekMap,.nodeArt) .mkring{fill:none;stroke:#f2d56f;stroke-width:2.4;stroke-dasharray:3 4;transform-box:fill-box;transform-origin:center;animation:mkGlow 1.6s ease-in-out infinite}
#trekMap .nd.marked{--c:#e8c66a;--g:#ffe27a}#trekMap .nd.marked .nm{fill:#f2d56f}
#trekMap .nd.ping .mkring{stroke-width:4;stroke-dasharray:none;animation:mkPing 1s ease-out 3}
@keyframes mkGlow{50%{opacity:.35}}
@keyframes mkPing{0%{transform:scale(.6);opacity:1}100%{transform:scale(2.6);opacity:0}}
#trekMap .nd.start{--c:#7f8c6a;opacity:1}
#trekMap .nd.start .disc{fill:#2a2412;stroke:#e8c66a}
#trekMap .you{fill:#e8c66a;animation:trekBob 1.6s ease-in-out infinite}
@keyframes trekBob{50%{transform:translateY(4px)}}
/* a choice's reason sits inside or beside its own option, shown only while it is in focus (#543; mapui.js optInfo, goodInfo): a row, a camp box, a plate or a button keeps its room (.oInfo, hidden), a good hangs it in a band its row keeps free (.si), so nothing moves as focus does */
.oInfo{display:block;visibility:hidden;margin-top:6px;font-family:Georgia,serif;font-size:16px;line-height:1.45;letter-spacing:0;text-transform:none;font-style:normal;color:#b8b29a}.oInfo.on{visibility:visible}
.oInfo b,#shelf .si b{color:#ddd5c3;font-weight:normal;letter-spacing:.02em}
#shelf .sc{position:relative}#shelf .si{position:absolute;top:100%;left:50%;transform:translateX(-50%);width:380px;margin-top:10px;text-align:center;font-family:Georgia,serif;font-size:17px;line-height:1.5;color:#d8d2bc}
#shelf{padding-bottom:64px}
#trekList{display:flex;flex-direction:column;gap:4px;min-width:460px}
#trekList .hr{display:flex;justify-content:space-between;gap:30px;font-family:var(--ui-head);font-size:22px;letter-spacing:.02em;color:#8f8a78;padding:6px 22px;cursor:pointer}
#trekList .hr em{font-style:normal;font-family:Georgia,serif;color:#e8c66a}
#trekList .hr.sel{background:var(--ui-sel-bg);color:var(--ui-sel-fg);text-shadow:none} /* the one selection look: the dark block, its text near white; a price, a gain, a loss and a keyword keep their colors */
#trekList .hr.sel :is(.hl,.ho,.oInfo,.oInfo b){color:var(--ui-sel-fg);text-shadow:none}
#trekList .hr:has(em:empty){justify-content:center}#trekList .hr em:empty{display:none}
#trekList .hr.off{color:#4f4d42}#trekList .hr.off em{color:#4f4d42}
#trekList .hr.rule{margin-top:10px;border-top:1px solid #4a4a3c}
/* an event's choices: each row shows what it does beside its name, always */
#trekList.ev{gap:10px;min-width:0;width:min(1040px,calc(92*var(--vw)))}
#trekList.ev .hr{display:grid;grid-template-columns:minmax(300px,1fr) 1.45fr 110px;align-items:center;gap:8px 28px;padding:14px 22px;transition:background .15s,border-color .15s}
#trekList.ev .hl{font-family:var(--ui-head);font-size:20px;letter-spacing:.02em;color:#8f8a78}
#trekList.ev .ho{font-family:Georgia,serif;font-size:17px;line-height:1.45;letter-spacing:.02em;color:#9a9482;text-wrap:pretty}

#trekList.ev .hr.chosen .hl{color:#ddd5c3}#scrolls .qs.off{opacity:.3}#scrolls .qs.chosen{opacity:1}#trekList.ev .hr.off .hl{color:#8d8874}#trekList.ev .hr.off .ho{color:#c9a198} /* a row that cannot be taken: dimmer than the rest but readable, and its reason clear (#479) */
#trekList.ev .hr.rule{margin-top:6px;border-top:0}
#trekSub{margin-bottom:34px;max-width:880px;text-align:center}
#trekList.ev{gap:0;border-top:1px solid var(--act-line)}
#trekList.ev .hr{border-bottom:1px solid var(--act-line);padding:18px 20px}
#trekList.ev .hr.sel{background:var(--ui-sel-bg);box-shadow:none}
#trekList.ev .ho{border-left:1px solid var(--act-line);padding-left:28px}
#trekList.ev .hr em{text-align:right;white-space:nowrap}
s.was{color:#8a8470;font-size:.8em;margin-right:4px;text-decoration-thickness:2px} /* a price a modifier moved: the plain one struck through before it (luck.js wasPrice) */
.luckTags.prices{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin:10px auto 0;min-height:0} /* the modifiers that moved a price on this screen, one tag each (luck.js priceTagsHTML) */
#trekList.ev .hr:has(em:empty){display:grid;justify-content:normal}#trekList.ev .hr em:empty{display:block}
#trekList.ev .hr.rule{margin-top:0}
#trekList.ev.noprice .hr{grid-template-columns:minmax(300px,1fr) 1.6fr}#trekList.ev.noprice .hr em{display:none} /* no row has a price (renderList): no empty price column to wrap the descriptions early */
#trek .ps{margin-top:26px;text-align:center}
/* the key hints sit at the foot of every screen */
#trek .ps,#peek .ps,#pause .ps,#title .ps{position:fixed;left:0;right:0;bottom:22px;margin:0}
#trekBody.tall #trekList{margin:0}
#trekTitle{flex:none;display:flex;flex-direction:column;align-items:center}#trekBody.tall .fill{flex:1}#trekBody.tall .fill.gap{flex:.5}#trekBody.tall{padding-bottom:60px} /* an event's choices stand in the upper third of the height between its title and the key hints (Ole, 2026-11-18, #1112): a .fill.gap above them (mapui.js EV_GAP) takes half what the .fill under them takes, down to 60px from the foot (the key hints' top, and a little air); a beat has none above (its picture right under the title) */
#trekBody.tall #trekSub,#trekBody:not(.map) #trekSub:has(+.loreRule){margin-bottom:0} /* the lore rule keeps one gap under the words on every screen (the Quest Giver's too) */
#trekBody.tall #trekHead{margin-bottom:10px}
#trekBody.tall .ps{margin-top:0}
/* the lore (an event's title and words) stands apart from what is chosen: the words in italic, a short rule under them, then a gap before the choices (.loreRule, drawn by mapui.js renderList / renderBoxes / renderQuests) */
#trekBody:not(.map) #trekSub{font-style:italic;letter-spacing:.02em;line-height:1.6;color:#a9b096}
.loreRule{width:140px;height:9px;margin:24px auto 0;flex:none;background:linear-gradient(90deg,transparent,#6a6040 30%,#6a6040 70%,transparent) center/100% 1px no-repeat}#trekSub:empty+.loreRule{background:none} /* no words, nothing to set apart: the rule goes, its space stays */
#trekBody.tall #trekTitle{padding-bottom:40px}
#trekBody.beat #trekTitle{padding-bottom:0} /* an event's beat (evbeats.js eventBeat, gamble): the picture right under the title */
/* event stages (js/evstages.js): an event's own picture with its choices on it; one plate style, odds bars, rank tokens, cards, a wide button */
#stage{display:flex;flex-direction:column;align-items:center;font-family:Georgia,serif;color:#d8d2bc;margin:2px 0 4px}
#stage .stRow{display:flex;gap:26px;align-items:flex-start;justify-content:center}#stage .stRow.mid{align-items:center;gap:34px}#stage .stRow.eq{align-items:stretch}#stage .stRow.eq .stPlate{display:flex;flex-direction:column;justify-content:center}#stage .stRow.toks{gap:12px 28px;margin-top:10px;flex-wrap:wrap;max-width:1300px}
#stage .stCap{margin-top:12px;font-size:17px;color:#bdb6a0;text-align:center;max-width:900px;line-height:1.5}#stage .stCap b{color:#e8dfc4;font-weight:normal}
#stage .stKick{margin-top:18px;font-family:var(--ui-head);font-size:15px;letter-spacing:.02em;color:#8e88b8}
.stPill{display:inline-block;padding:3px 16px;border:1px solid transparent;border-radius:0;font-size:18px;color:#e8c66a;text-wrap:balance;text-shadow:0 1px 3px rgba(0,0,0,.9)}
.stPill.free{color:#9fd49a}.stPill.off{color:#c08070;font-size:16px;line-height:1.35}.stPill.done{color:#e8dfc4}
.gAmt.cost{color:#f0907a}.gAmt.gain{color:#9fe0a0}.stPill.gain{color:#9fe0a0}#trekList .hr.off em .gAmt{color:inherit} /* an event's gold on a choice (luck.js goldAmt): −N to pay in red, +N paid in green, the same green as the top bar's gain; a choice that cannot be taken keeps its dim colour */
.tcs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px}.tc{display:inline-flex;align-items:center;gap:7px;padding:3px 0;font-family:Georgia,serif;font-size:17px;line-height:1.25;letter-spacing:0;text-transform:none;font-style:normal;white-space:nowrap}.tc svg{width:18px;height:18px;flex:none}.tc svg.tcPk{width:15px;height:21px;margin:-1px 1px}.tc .was{opacity:.6;margin-right:-2px} /* an event choice's gains and losses (trade.js tradeHTML): a loss red, a gain green, a risk amber */
.tc .tcB{display:inline-flex;margin-left:2px;padding-left:7px;border-left:1px solid currentColor;color:#ddd5c3}.tc .tcB svg.bi{width:18px;height:18px}
.tc.lo{color:#f0907a}.tc.ga{color:#9fe0a0}.tc.ri{color:#e8b860} /* colored text beside its icon, no outline (#1363) */
.hr.sel .tc .tcB{color:var(--ui-sel-fg)}.stPlate .tcs,.stCard .tcs{justify-content:center}.hr.off .tc{filter:grayscale(.7);opacity:.7}
.stPlate{position:relative;width:340px;padding:18px 22px;box-sizing:border-box;background:radial-gradient(ellipse at 50% 30%,#2a2416,#0e0c07);border:1px solid #4a4128;box-shadow:0 6px 18px rgba(0,0,0,.6);opacity:.66;text-align:center;cursor:pointer;transition:transform .15s,opacity .15s}
.stPlate.sel{opacity:1;outline:2px solid #ddd5c3;box-shadow:0 6px 18px rgba(0,0,0,.6);transform:translateY(var(--focus-lift))}.stPlate.off,.stCard.off,.stBtn.off{filter:grayscale(.6)}.stPlate.off:not(.sel){opacity:.85}.stPlate.off{filter:none;border-color:#5a2a24;background:radial-gradient(ellipse at 50% 30%,#241412,#0c0807);cursor:not-allowed}.stPlate.off.sel{outline-color:#a0463a}.stPlate.off h3{text-decoration:line-through;text-decoration-color:#a0463a}.stPlate.off>:not(.stPill){filter:grayscale(1) brightness(.9)}.stPill.off{color:#ff7a66}
.stPlate.chosen{outline:2px solid #9fd49a}
/* the Alchemist's plates (evstages-2.js alchemist): the boon's own card is the plate, its curse tab hung under it; the plate's frame is the card's */
.alch .stPlate{width:260px;padding:0!important;background:none;border:0;box-shadow:none}.alch .stPlate .cards .slot{height:320px}.alch .stPlate .cards .slot:has(.bband){height:362px}.alch .stPlate .cards .slot.sel{transform:none}.alch .stPlate .cards .card{width:260px}.alch .stPlate .stPill{display:block;margin:8px 0 0}
.stPlate h3{margin:8px 0 10px;font-family:var(--ui-head);font-weight:normal;font-size:20px;letter-spacing:.02em;color:#e8dfc4;text-wrap:balance}.stPlate.sel h3{color:#f1e3b0} /* (balance: a title or reason that wraps splits evenly, never one word alone) */
.stPlate .lfIc svg{display:block;width:56px;height:56px;margin:4px auto 0;color:#c8bfa8}.stPlate.sel .lfIc svg{color:#efe6cf}#stage.st-resurrect .stPlate{width:300px;min-height:196px;display:flex;flex-direction:column;justify-content:center}#stage.st-resurrect .stPlate p{margin:10px 0 0;color:#b8ae98} /* the Resurrection's plates (extralife.js lifeStage): its choice's icon, the foe named under Fight again */
.stPlate p{margin:10px 0 0;font-size:16px;line-height:1.45;color:#d0c9b2}.stPlate .t-rare{color:#c8a0ff}.stPlate .t-unc{color:#82d2b9}
.stNum{margin-top:12px;font-family:var(--ui-head);font-size:22px;color:#cfc8ae}.stNum .to{color:#7fd1c4}.stNum .of{color:#8a8670}
/* a boon on an event's stage wears the boon list's look (.ledger .li>b, css/screens.css): its glyph on a square tile in its tier's tint, common a faint outline, uncommon and rare filled */
.stTok{display:inline-flex;align-items:center;gap:9px}
.stTok .d,.stMini .d{box-sizing:border-box;display:flex;align-items:center;justify-content:center;color:#d0c9b6;border:1px solid rgba(208,201,182,.22)}
.stTok .d{width:30px;height:30px;font-size:18px}
:is(.stTok,.stMini).uncommon .d{background:rgba(80,170,145,.45);border-color:#82d2b9;color:#e2fbf3}:is(.stTok,.stMini).rare .d{background:rgba(140,100,210,.5);border-color:#c8a6ff;color:#f1e8ff}
.stTok .n{font-size:16px;color:#d8d0bc;white-space:nowrap}.stTok .r{font-family:var(--ui-head);font-size:15px;color:#a99f84;letter-spacing:.02em}
.stToks{display:flex;flex-wrap:wrap;gap:8px 10px;justify-content:center;margin:2px 0 6px;min-height:58px;align-content:center}
.stMini{display:flex;flex-direction:column;align-items:center;gap:2px;width:40px}.stMini .d{width:34px;height:34px;font-size:18px}
.stMini .r{font-family:var(--ui-head);font-size:15px;line-height:1.1;color:#ddd5c3;letter-spacing:.02em}.stMini.more{width:auto;align-self:center;font-size:15px;color:#a8a28c}
.stToks.pay .stMini .d{outline:2px dashed #c0584a;outline-offset:2px}.stToks.pay .stMini .r{color:#e0a090}
.stLeave{opacity:.28}.stPlate.sel .stLeave{animation:stLeaveFade 1.4s ease-in-out infinite alternate}@keyframes stLeaveFade{from{opacity:.55}to{opacity:.12}}
.stHint{margin-top:10px;font-size:15px;font-style:italic;color:#a8a28c}.stHint.bad{color:#c0584a}
.stBtn{margin-top:18px;min-width:300px;padding:12px 28px;text-align:center;font-family:var(--ui-head);font-size:20px;letter-spacing:.02em;color:#cfc8ae;border-bottom:1px solid #4a4128;opacity:.7;cursor:pointer}
.stBtn.sel{opacity:1;color:var(--ui-sel-fg);background:var(--ui-sel-bg);border-bottom-color:var(--ui-sel-bg)}.stBtn small{font-family:Georgia,serif;font-size:16px;letter-spacing:0;color:#c08070}
.stBtn.bad.sel{color:#e8a0a0;border-bottom-color:#d9534f;background:linear-gradient(90deg,transparent,rgba(217,83,79,.16),transparent)}
.stPlate .t-com{color:#d8d0b0}

.stKick.sm{margin-top:12px;font-size:13px;letter-spacing:.02em;color:#a8a28c}.stPlate .stToks{margin-top:6px;min-height:52px}
/* Blessed by Magalan (evstages.js magalan): one plate, the boon and the hidden blessing side by side */
#stage.st-magalan .mgArt{margin-bottom:-6px}#stage.st-magalan .stPlate{width:860px;padding:22px 30px 20px}.mgGifts{display:flex;gap:20px}.mgHalf{flex:1;text-align:center}.mgKind{font:14px var(--ui-head);letter-spacing:.02em;color:#8a8670}.mgHalf:first-child .mgKind{color:#c8a0ff}.mgHalf:last-child .mgKind{color:#e7e3d9}.mgIc{height:74px;display:flex;align-items:center;justify-content:center}.mgGl{font-size:56px;line-height:1;color:#c8a0ff}.mgGl.q{color:#e7e3d9;font-family:var(--ui-head)}
.mgNm{font:25px var(--ui-head);letter-spacing:.02em;color:#e3ded3;margin-bottom:10px}.mgTx{font-size:19px;color:#e2ded2;line-height:1.4}#stage.st-magalan .stPlate h3{margin:20px 0 10px;font-size:23px}
#stage>.stFate{align-self:center;margin-top:16px}.stPill.bad{color:#e89a88}
#stage.st-collector .stArt{position:relative}#stage.st-collector .stArt .luckTags.side{left:calc(100% - 20px);top:20px;width:max-content;max-width:260px} /* the leaning luck's tags beside the picture */
/* Buried Treasure's dig beat (evstages-2.js digBeat): the shovel bites three times, the lid lifts, coins spill; every time is a share of --ds */
#beatStage:has(.cfBeat){height:24px} /* (the Cleansing Fountain's payoff plays in its 3D scene: cleanse3d.js) */
#beatStage:has(.digBeat){width:560px;height:430px}.digBeat{position:relative;width:520px;height:400px;margin:0 auto}.digBeat svg{width:100%;height:100%;overflow:visible}
.dgShovel{transform-box:view-box;transform-origin:0 0;transform:translate(170px,70px) rotate(14deg);animation:dgDig var(--ds) linear both}
@keyframes dgDig{0%{transform:translate(120px,40px) rotate(24deg)}12%,18%{transform:translate(170px,196px) rotate(6deg)}22%{transform:translate(150px,120px) rotate(16deg)}33%,37%{transform:translate(170px,196px) rotate(6deg)}41%{transform:translate(150px,120px) rotate(16deg)}53%,57%{transform:translate(170px,196px) rotate(6deg)}66%,100%{transform:translate(320px,150px) rotate(40deg)}}
.dgChest{opacity:0;animation:dgShow var(--ds) linear both}@keyframes dgShow{0%,48%{opacity:0;transform:translateY(14px)}58%,100%{opacity:1;transform:none}}
.dgLid{transform-box:fill-box;transform-origin:0 100%;animation:dgLid var(--ds) linear both}@keyframes dgLid{0%,74%{transform:none}84%,100%{transform:rotate(-62deg) translateY(-6px)}}
.dgGold{opacity:0;animation:dgGold var(--ds) linear both}@keyframes dgGold{0%,76%{opacity:0;transform:translateY(8px) scale(.6)}88%,100%{opacity:1;transform:none}}
.dgSparks{position:absolute;left:50%;top:64.6%}.dgSparks i{position:absolute;width:7px;height:7px;margin:-3px;border-radius:50%;background:#ffe49a;box-shadow:0 0 8px #e8c66a;opacity:0}
.digBeat.on .dgSparks i{animation:dgSpark .9s ease-out both}@keyframes dgSpark{from{opacity:1;transform:rotate(var(--a)) translateY(0)}to{opacity:0;transform:rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.4)}}
.stCloth{padding:16px 80px 14px;background:radial-gradient(ellipse at 50% 40%,rgba(70,30,60,.55),rgba(30,12,26,.35) 60%,transparent 75%);border-radius:50%}
#stage .stRow.cards{gap:70px;align-items:flex-end}.stCard{display:flex;flex-direction:column;align-items:center;gap:8px;opacity:.62;cursor:pointer;transition:transform .15s,opacity .15s}
.stCard.sel{opacity:1;transform:translateY(var(--focus-lift))}.stCard.sel svg{filter:drop-shadow(0 0 22px rgba(221,213,195,.5))}.stCardL{font-family:var(--ui-head);font-size:19px;letter-spacing:.02em;color:#cfc8ae;text-wrap:balance;text-align:center}.stCard.sel .stCardL{color:#f1e3b0}
.stFoot .cards .slot{height:330px}.stFoot .cards .slot.sel{transform:none}.stFoot .stGift{padding:30px 10px}.stCard.chosen{opacity:1}.stCard.chosen .stCardL{color:#9fd49a} /* (the Gambler's gift when too poor to bet, evstages.js gambler: the Rabbit's Foot card face up, or the handout's coins) */
#stage .stRow.glimpse{align-items:center;gap:18px;margin-top:8px}#stage .glimpse .stKick{margin:0;color:#8a8670;font-size:14px}
#trekBody.staged #trekList{margin-top:6px}
/* on a window under 1080 tall (the home 900, #558) an event's stage closes up so its info line and Leave clear the key hints (#575): the gap under the lore, the gaps between its parts and its picture shrink by --short / --tall, so at 1080 it is as it was. The picture alone shrinks (zoom on the art's svg), never the plates' words; an event that needs more sets --artShrink on its #stage */
#trekBody.staged #trekTitle{padding-bottom:calc(40px - var(--short) / 6)}#trekBody.staged #trekList{margin-top:calc(6px - var(--short) / 30)}
#stage .stArt>svg{zoom:calc(1 - (1 - var(--tall)) * var(--artShrink,1.2))}
#stage .stCap{margin-top:calc(12px - var(--short) / 30)}#stage .stKick{margin-top:calc(18px - var(--short) / 18)}#stage>.stFate{margin-top:calc(16px - var(--short) / 18)}#stage .stRow.toks{margin-top:calc(10px - var(--short) / 30)}#stage .stPlate{padding-top:calc(18px - var(--short) / 30);padding-bottom:calc(18px - var(--short) / 30)}#stage .fbCap{margin-bottom:calc(8px - var(--short) / 45)}#stage .fbNums{margin-bottom:calc(6px - var(--short) / 60)}
.stRow.toks.many{gap:8px 20px;max-width:1560px}.stRow.toks.many .stTok{gap:7px}.stRow.toks.many .stTok .d{width:24px;height:24px;font-size:15px}.stRow.toks.many .stTok .n{font-size:15px} /* the Broker's boons drawn smaller when there are more than BROKER_ROW (evstages.js), so they never push Leave off the screen */
#stage .stBtn{margin-top:calc(18px - var(--short) / 18);padding-top:calc(12px - var(--short) / 45);padding-bottom:calc(12px - var(--short) / 45)}
#stage.st-pool{--artShrink:.48}#stage.st-pool .stCap{margin-top:calc(12px - var(--short) / 10)} /* (the pool's odds are words in its picture: it shrinks less, to keep them 15px; the caption comes up into the picture's empty foot) */
#stage.st-toll{--artShrink:1.8}#stage.st-curse{--artShrink:1.45}#stage.st-curse>.stFate{margin-top:calc(16px - var(--short) / 6)} /* (the tree's whispers stay 15px at the least; the bar comes up into the empty foot of its picture) */
#stage.st-tarot .stCap{min-height:1.5em} /* (its line shows only while the Star is in focus: its room kept, so the centred stage never moves with the focus) */#stage.st-tarot .stCloth{padding-top:calc(16px - var(--short) / 15);padding-bottom:calc(14px - var(--short) / 18)}#stage.st-tarot .stCard{gap:calc(8px - var(--short) / 23)}#stage.st-tarot .stRow.glimpse{margin-top:calc(8px - var(--short) / 30)}
#beatStage:has(.stTreeBeat){width:900px;height:500px}.stTreeBeat{position:relative;display:flex;justify-content:center}.stTreeBeat>svg{width:900px;height:auto}
/* the Whispering Tree (evstages.js treeArt): whispers that reach you are lit (.on), their wisps run to you; the beat sends each along its own way (--dx --dy) to where you stand */
.trW{--lv:0;font-family:Georgia,serif;font-style:italic;fill:color-mix(in srgb,#f0b4c8 calc(var(--lv) * 100%),#7a5a68);paint-order:stroke;stroke:#0b0708;stroke-width:5px;stroke-linejoin:round;opacity:calc(.38 + .62 * var(--lv));transform-box:fill-box;transform-origin:center;filter:drop-shadow(0 0 7px rgba(217,83,110,calc(var(--lv) * .75)));transition:fill .5s,opacity .5s,filter .5s}
.trL{--lv:0;fill:none;stroke:#9a4a6a;stroke-width:2;stroke-dasharray:3 9;opacity:calc(.1 + .65 * var(--lv));transition:opacity .5s}.trL.on{animation:trFlow 1.1s linear infinite}
@keyframes trFlow{to{stroke-dashoffset:-24}}
.trMe{transition:filter .5s}
.stTreeBeat .trW.on{filter:none}
.stTreeBeat .trL{animation:none;transition:none}
.stTreeBeat.cursed .trW.on{animation:trCurse var(--toss) ease-in forwards}.stTreeBeat.freed .trW.on{animation:trFree var(--toss) ease-in-out forwards}
.stTreeBeat .trW:not(.on){animation:trFade calc(var(--toss) * .5) ease-out forwards}
@keyframes trCurse{0%{opacity:.55}45%{opacity:1;translate:calc(var(--dx) * .35) calc(var(--dy) * .35)}78%{opacity:1;translate:var(--dx) var(--dy);scale:.6}100%{opacity:0;translate:var(--dx) var(--dy);scale:.2}}
@keyframes trFree{0%{opacity:.55}45%,60%{opacity:1;translate:calc(var(--dx) * .35) calc(var(--dy) * .35)}100%{opacity:0;translate:calc(var(--dx) * -.2) calc(var(--dy) * -.2);scale:1.25}}
@keyframes trFade{to{opacity:0}}
.stTreeBeat.cursed .trMe{animation:trMeC var(--toss) ease-in forwards}.stTreeBeat.freed .trMe{animation:trMeF var(--toss) ease-in forwards}
@keyframes trMeC{0%,70%{filter:none}100%{filter:drop-shadow(0 0 14px var(--cc))}}@keyframes trMeF{0%,70%{filter:none}100%{filter:drop-shadow(0 0 12px rgba(221,213,195,.8))}}
.stTreeBeat.freed .trEye{animation:trEyeShut var(--toss) ease-in forwards}.stTreeBeat.cursed .trEye{animation:trEyeFlare var(--toss) ease-in forwards}
@keyframes trEyeShut{0%,45%{opacity:1}75%,100%{opacity:0}}@keyframes trEyeFlare{0%{opacity:.7}60%,100%{opacity:1;filter:drop-shadow(0 0 5px #ff5a40)}}
.trArt{overflow:visible}#beatStage:has(.stTreeBeat) .luckFlash{left:calc(100% + 8px);top:130px} /* the tree beat's stage is wide: its stamp stays on the screen */
#stage.st-curse .stArt svg{width:860px;height:auto}
.stDrawn{position:absolute;left:calc(50% + 40px);bottom:-4px;display:grid;grid-template-columns:auto auto;column-gap:14px;align-items:center;opacity:0;animation:stDrawn .7s ease-out calc(var(--toss) * .78) forwards}
.stDrawn svg{grid-row:1 / 3;width:64px;height:64px;filter:drop-shadow(0 0 12px var(--cc))}.stDrawn b{white-space:nowrap;font-family:var(--ui-head);font-weight:normal;font-size:24px;letter-spacing:.02em;color:var(--cc)}.stDrawn span{font-size:16px;color:#d0c9b2;max-width:330px}
@keyframes stDrawn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
/* the camp's own scene (camp3d.js) is behind the menu: the 3D shows through, the menu is a column on the right, its choices the events' rows (renderList, #trekBody.plain) */
#campFade{position:fixed;inset:0;background:#000;opacity:0;pointer-events:none;z-index:12} /* the black over a camp clip and as the camp opens (camp-clips.js, camp3d.js) */
body.campclip #trek{opacity:0!important;pointer-events:none!important;transition:opacity .8s}body.campclip #topBar{opacity:0;transition:opacity .8s}
/* the Shop's arrival scene (shop3d.js): the menu hidden while the wagon rolls in, then over its last shot with the wagon's wares showing through */
body.shopclip #trek,body.eventclip #trek{opacity:0!important;pointer-events:none!important;transition:none}body.shopclip #topBar,body.eventclip #topBar{opacity:0;transition:none} /* (an event scene's arrival, event3d.js, hides the menu the same way) */
body.sceneload #trek{opacity:0!important;pointer-events:none!important;transition:none} /* a camp's, Shop's or event's menu while its 3D scene waits for the LOADING cover (loadcover.js loadingScene): never seen laid out without it */
body.shop3d #trek{background:linear-gradient(180deg,rgba(6,5,3,.55),rgba(6,5,3,.35) 60%,rgba(6,5,3,0) 76%)}
body.shop3d #trekBody.shop #evLeave,body.shop3d #trekBody.shop #shelf .si{background:rgba(6,5,3,calc((1 - var(--tall)) * 4.8));box-shadow:0 0 54px 24px rgba(6,5,3,calc((1 - var(--tall)) * 4.8))} /* on a window under 1080 tall (the home 900, #576) the wagon rises behind Leave and the focused good's words: a soft dark plate under them, 80% at 900, none at 1080 (where they sit on the night sky) */
body.shop3d #shelf .sc{opacity:1}body.shop3d #shelf .sc:not(.sel) .sa{filter:brightness(.62)}body.shop3d #shelf .sc:not(.sel) .sn,body.shop3d #shelf .sc:not(.sel) .sp{opacity:.75} /* over the 3D, the goods not chosen are dimmed, never see-through */
body.camp3d #trek{background:linear-gradient(90deg,transparent 46%,rgba(6,5,3,.45) 62%,rgba(6,5,3,.8) 82%)}
body.camp3d #trek .actFrame,body.camp3d #trekBody .loreRule{display:none}
body.camp3d #trekBody:not(.map,.towerB,.sale){position:fixed;right:70px;top:0;width:640px;align-items:flex-start;padding-top:230px} /* (one :not() of a list: its weight is one class, so a full-screen body of its own (.sale) set later is never beaten by this column) */
body.camp3d #trekTitle{align-items:flex-start}body.camp3d #trekBody.tall #trekTitle{padding-bottom:34px}
/* an event's plain list in that column (an event with a 3D scene behind it, event3d.js): one 640px column ending 70px from the right edge, its rows narrower to fit */
body.camp3d #trekBody.plain,body.camp3d #trekBody.sided.plain{--col:640px}
body.camp3d #trekBody.plain #trekList.ev .hr,body.camp3d #trekBody.sided.plain #trekList.ev .hr{padding:18px 20px;grid-template-columns:minmax(215px,.95fr) 1.2fr 80px;gap:8px 14px}
body.camp3d #trekBody.plain #trekList.ev.noprice .hr,body.camp3d #trekBody.sided.plain #trekList.ev.noprice .hr{grid-template-columns:minmax(215px,.95fr) 1.2fr}
body.camp3d #trekBody.plain #trekList.ev .hl{font-size:19px;letter-spacing:.02em}body.camp3d #trekBody.plain #trekList.ev .ho{font-size:17px}
body.camp3d #trekList{width:560px;margin-top:20px}body.camp3d #trekList .hr{justify-content:flex-start}
/* the camp's Rest lifting one curse (curse-pick.js renderCursePick): in the camp's right-hand column, one row per curse held in #cursePlate's look at a larger size (its sigil in its colour, name, effect, turns left at the right); the focused row lit as the camp's (the selection block), the others dimmed; the pick flares the sigil pale and lets the row fade (.gone), the rest dim further (.still) */
#cpick{display:flex;flex-direction:column;gap:12px;width:560px;font-family:var(--ui-head)}
#cpick .cp{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:16px;padding:14px 20px 14px 16px;border-left:3px solid transparent;background:linear-gradient(90deg,rgba(16,5,8,.82),rgba(16,5,8,.5) 70%,rgba(16,5,8,0));border-radius:0;opacity:.62;cursor:pointer;transition:opacity .15s}
#cpick .cp.sel{opacity:1;border-left-color:var(--ui-sel-bg);background:var(--ui-sel-bg)}
#cpick .sig{position:relative;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;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}
#cpick .cp.sel .sig{box-shadow:0 0 18px color-mix(in srgb,var(--c) 70%,transparent),0 0 6px #000}
#cpick .sig svg{width:27px;height:27px;fill:none;stroke:var(--c);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#cpick .col{display:flex;flex-direction:column;gap:3px;min-width:0}
#cpick .nm{font-size:22px;letter-spacing:.02em;color:color-mix(in srgb,var(--c) 70%,#fff);text-shadow:0 0 6px #000,0 0 10px color-mix(in srgb,var(--c) 40%,transparent)}
#cpick .tx{font:17px Georgia,serif;color:#ece4d6;text-shadow:0 0 4px #000}
#cpick.many{gap:6px}#cpick.many .cp{padding:8px 18px 8px 14px}#cpick.many .sig{width:36px;height:36px}#cpick.many .sig svg{width:21px;height:21px}#cpick.many .nm{font-size:19px}#cpick.many .tx{font-size:16px}
#cpick .cp.still{opacity:.35;transition:opacity .5s}
#cpick .cp.gone{animation:cpGone .5s ease-in forwards}
#cpick .cp.gone .sig{animation:cpFlare .5s ease-out forwards}
#cpick .cp.gone .nm,#cpick .cp.gone .tx{text-decoration:line-through;text-decoration-color:rgba(255,240,200,.8)}
@keyframes cpFlare{0%{box-shadow:0 0 18px color-mix(in srgb,var(--c) 70%,transparent)}30%{border-color:#fff0c8;box-shadow:0 0 40px 10px rgba(255,240,200,.85);background:radial-gradient(circle,#fff6dc,rgba(255,240,200,.3) 70%)}100%{border-color:transparent;box-shadow:0 0 60px 20px rgba(255,240,200,0);background:transparent;transform:scale(1.5)}}
@keyframes cpGone{0%,30%{opacity:1}100%{opacity:0;transform:translateX(24px)}}
/* over a 3D scene (the Shop's wagon, the camp, an event's scene, a pack opened there) the key hints sit on a soft dark band rising from the foot, so they read over the bright wheels and the fire (#545); a pseudo-element, so it never takes a click from Leave above it */
body:is(.shop3d,.camp3d) #trek .ps::before,body:is(.shop3d,.camp3d) #levelup .ps::before{content:'';position:absolute;z-index:-1;left:0;right:0;bottom:-22px;height:var(--hintBand,84px);background:linear-gradient(0deg,rgba(6,5,3,.9),rgba(6,5,3,.78) 45%,rgba(6,5,3,0));pointer-events:none}

.stPlate .oInfo{margin-top:10px}.stPlate.sel .oInfo{color:#d8d2bc}#stage .stBtn+.oInfo,#stage .stCard .oInfo{margin-top:10px;text-align:center;max-width:520px}
@keyframes flame{0%,100%{transform:scale(1,1) skewX(0)}30%{transform:scale(.92,1.12) skewX(3deg)}60%{transform:scale(1.06,.94) skewX(-3deg)}}
@keyframes ember{0%{opacity:0;transform:translate(0,0)}15%{opacity:1}100%{opacity:0;transform:translate(14px,-46px)}}
#trekBody.sided #trekList.ev{width:min(1000px,calc(calc(100*var(--vw)) - 580px))}
#trekBody.sided #trekList.ev .hr{grid-template-columns:minmax(150px,.9fr) 1.3fr 130px;gap:8px 18px}
#trekBody.sided #trekList.ev.noprice .hr{grid-template-columns:minmax(150px,.9fr) 1.45fr}
/* an event with no picture of its own (renderList's `plain`, #80): the title, the words and the rows one centred block, one column wide (--col), the rows sized to it; the header keeps its one top */
#trekBody.plain{--col:min(960px,calc(92*var(--vw)))}#trekBody.sided.plain{--col:min(920px,calc(calc(100*var(--vw)) - 580px))}
#trekBody.plain #trekSub{max-width:var(--col)}
#trekBody.plain #trekList.ev{width:var(--col)}
#trekBody.plain #trekList.ev .hr{padding:26px 28px;grid-template-columns:minmax(300px,1.15fr) 1.35fr 90px}#trekBody.plain #trekList.ev.noprice .hr{grid-template-columns:minmax(300px,1fr) 1.6fr}#trekBody.plain #trekList.ev .hl{font-size:22px}#trekBody.plain #trekList.ev .ho{font-size:18px}
.pkcard{position:absolute;left:0;top:0;width:230px;height:330px;transform:scale(.652);transform-origin:0 0}.pkcard .slot,.pkcard .card{height:100%;cursor:inherit}
.pkart{position:absolute;inset:0;width:100%;height:100%;display:block}
.pkart.arch,.arch{clip-path:polygon(0 18%,2.4% 12.4%,9.5% 7.4%,20.6% 3.4%,34.6% .9%,50% 0,65.4% .9%,79.4% 3.4%,90.5% 7.4%,97.6% 12.4%,100% 18%,100% calc(100% - 8px),90% 100%,80% calc(100% - 8px),70% 100%,60% calc(100% - 8px),50% 100%,40% calc(100% - 8px),30% 100%,20% calc(100% - 8px),10% 100%,0 calc(100% - 8px))} /* the spell pack's rounded top (packArt) */
#flyLayer .fly.pack.spellpk .pkart{clip-path:polygon(0 18%,2.4% 12.4%,9.5% 7.4%,20.6% 3.4%,34.6% .9%,50% 0,65.4% .9%,79.4% 3.4%,90.5% 7.4%,97.6% 12.4%,100% 18%,100% calc(100% - 8px),90% 100%,80% calc(100% - 8px),70% 100%,60% calc(100% - 8px),50% 100%,40% calc(100% - 8px),30% 100%,20% calc(100% - 8px),10% 100%,0 calc(100% - 8px))}

#scrolls{display:flex;gap:44px;justify-content:center;align-items:center;margin:0 0 74px} /* the Quest Giver's slips (mapui.js QUEST_SLIP_SVG); (74px under them, the gap above is the title's, as on every event) */
#scrolls .qs{position:relative;width:270px;height:300px;cursor:pointer;filter:brightness(.8) drop-shadow(0 10px 14px rgba(0,0,0,.6));transition:transform .15s,filter .15s,rotate .15s} /* a slip out of focus stays paper, a little dimmer (dimmer reads as unavailable: issue #82) */
#scrolls .qs:nth-child(odd){rotate:-1.3deg}#scrolls .qs:nth-child(even){rotate:1.1deg} /* each slip pinned up by hand, leaning its own way */
#scrolls .qs.sel{filter:drop-shadow(0 16px 22px rgba(0,0,0,.75));transform:translateY(var(--focus-lift));rotate:0deg} /* the slip in focus (Ole, 2026-12-01: the lift alone was too slight to see): held straight, its torn edge in bone (the picture cards' focus frame, along the paper) and its pin red */
#scrolls .qs.sel .qpaper{stroke:var(--ui-accent);stroke-width:5}
#scrolls .qs.sel .qpin{fill:#b23a2c;stroke:#3a0d08}
#scrolls .qs>svg{position:absolute;inset:0;width:100%;height:100%}
#scrolls .qt{position:absolute;left:30px;right:30px;top:58px;bottom:30px;display:flex;flex-direction:column;text-align:center;color:#2b2416} /* the task centred, the pay pinned at the foot: the rows line up across slips whatever the task's length */
#scrolls .qq{flex:1;display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1.35;letter-spacing:.02em;text-wrap:balance}
#scrolls .kw{color:color-mix(in srgb,var(--k) 38%,#2b2416);font-weight:bold;text-shadow:none}
#scrolls .qr{flex:none;display:flex;align-items:center;justify-content:center;gap:8px;height:34px;font-size:18px;letter-spacing:.02em;color:#5a4a30;white-space:nowrap}#scrolls .qr svg{width:22px;height:22px;flex:none}
/* the tutorial's one-time offer (tutorial.js drawTutorOffer) takes the main menu's place under the logo: the menu, its controls and the Hall board
   hide while it is up (it brings its own key hints to the foot), the box a little larger where the list starts (the .mcol's top, as above, plus the
   logo), the forest left bright around it with only a soft darkening behind the box */
#ask{position:fixed;inset:0;z-index:5;display:flex;align-items:flex-start;justify-content:center;box-sizing:border-box;padding-top:calc(max(24px,calc((calc(100*var(--vh)) - 760px) / 2)) + 170px);background:radial-gradient(ellipse at center,rgba(0,0,0,.55),rgba(0,0,0,0) 70%)}
#ask .box{min-width:520px;padding:30px 48px 26px;text-align:center;background:rgba(18,16,10,.82);border:1px solid #998962;box-shadow:0 0 40px rgba(0,0,0,.8)}
#ask .aq{font-family:var(--ui-head);font-size:26px;letter-spacing:.02em;color:#ddd5c3;margin-bottom:10px}
#ask .at{font-family:Georgia,serif;font-size:19px;line-height:1.5;color:#b9b399}#ask .at b{color:#eae6de;font-weight:normal}
#ask .ab{display:flex;gap:14px;justify-content:center;margin-top:18px}
#ask .ab span{font-family:var(--ui-head);font-size:18px;letter-spacing:.02em;padding:6px 22px;border:1px solid #4a4a3c;color:#8f8a78;cursor:pointer}
#ask .ab span.sel{color:var(--ui-sel-fg);border-color:var(--ui-sel-line);background:var(--ui-sel-bg)}
#title:has(#ask) #menu,#title:has(#ask) #ctlBox,#title:has(#ask) #hallBoard{visibility:hidden}
#shelf{display:flex;gap:18px;justify-content:center;margin:6px 0 0;position:relative}
#shelf .luckTags.side{left:calc(50% + 214px);top:70px;width:290px}#shelf .luckFlash{position:static;margin-top:12px;font-size:20px} /* a pack: the Rabbit's Foot's tag beside it (mapui.js shopLuckHTML; 290px wide: clear of the quest panel at the right) */
/* the Shop's shelf (shelf.js): the Flask panel, the Common, Uncommon and Rare packs, the category packs, Leave */
#trek:has(#trekBody.shelf){zoom:var(--fit900,1);justify-content:flex-start}
#shelf.shop{position:fixed;left:44px;right:44px;top:224px;bottom:92px;display:grid;grid-template-columns:336px 1fr 336px;gap:18px;align-items:start;margin:0;padding:0;font-family:var(--ui-head)}
#shelf.shop .grp h4{margin:0 0 10px;font:400 16px var(--ui-head);letter-spacing:.06em;text-transform:uppercase;color:#ddd5c3;text-align:center;white-space:nowrap}
#shelf.shop .row{display:flex;gap:22px;justify-content:center;align-items:flex-end}
#shelf.shop .rail .grp{padding:10px 14px 12px;border:1px solid rgba(221,213,195,.25);border-radius:0;background:rgba(8,7,5,.72)}#shelf.shop .rail .grp+.grp{margin-top:10px}
#shelf.shop .sc{position:relative;width:auto;display:flex;flex-direction:column;align-items:center;cursor:pointer;text-align:center;opacity:1;transition:none}
#shelf.shop .sa{position:relative;box-shadow:0 6px 18px rgba(0,0,0,.6);outline:2px solid transparent}
#shelf.shop .sc.sel .sa{outline-color:#ddd5c3;box-shadow:none}
#shelf.shop .sn{margin:0;min-height:0;font:16px/1.3 var(--ui-head);letter-spacing:.02em;color:#cfc8ae;width:auto}
#shelf.shop .sp{display:inline-block;margin:6px 0 0;padding:2px 14px;border:1px solid transparent;border-radius:0;font:20px Georgia,serif;color:#e8c66a;white-space:nowrap;text-shadow:0 1px 3px rgba(0,0,0,.9)}#shelf.shop .sp i{font-style:normal;font-size:16px}#shelf.shop .sp.dim{opacity:.45}
#shelf.shop .spW{display:flex;flex-direction:column;align-items:center;gap:2px}#shelf.shop .sx{visibility:hidden;font:italic 15px Georgia,serif;color:#b8ad8e;white-space:nowrap}#shelf.shop .sc.sel .sx{visibility:visible}#shelf.shop .pl:not(.big) .spW{position:relative}#shelf.shop .pl:not(.big) .sx{position:absolute;top:100%;margin-top:2px} /* the next one's price, on the good in focus (#1111) */
#shelf.shop .broke .sp{color:#c0584a}#shelf.shop .sc.broke .sa::after{content:none}
/* the Common, Uncommon and Rare packs: the middle row, each pack's art large above its name and price */
#shelf.shop .grp.tiers{margin-top:30px} /* clear of the price tags over it (#priceTags) */
/* a good you cannot afford: its art greyed and darkened (less in focus, where the gold ring stays), its name grey, its plaque faded and its price a filled red pill, so what you can buy stands out at a glance (Ole, 2026-11-14) */
#shelf.shop .pl.broke .sa>*{filter:grayscale(1) brightness(.35)}#shelf.shop .pl.broke.sel .sa>*{filter:grayscale(1) brightness(.6)}#shelf.shop .pl.broke .sa{box-shadow:none}
#shelf.shop .pl.broke{background:rgba(6,5,4,.9)}#shelf.shop .pl.broke:not(.sel){border-color:rgba(221,213,195,.08)}
#shelf.shop .pl.broke .sn,#shelf.shop .pl.broke .sn *{color:#6e685a !important}
#shelf.shop .pl.broke .sp{color:#ff8a72}#shelf.shop .pl.broke .sp i{color:#ffb0a2}
/* a plaque: small art beside its name and price */
#shelf.shop .pl{flex-direction:row;gap:10px;align-items:center;text-align:left;width:100%;box-sizing:border-box;margin-top:6px;padding:3px 8px;height:92px;border:1px solid rgba(221,213,195,.22);border-radius:0;background:rgba(12,10,7,.9)}
#shelf.shop .pl.sel{border-color:var(--ui-sel-line);background:var(--ui-sel-bg);box-shadow:none}#shelf.shop .pl.sel :is(.sn,.sn *,.sx){color:var(--ui-sel-fg) !important;text-shadow:none} /* a row of the Shop's side panels in focus: the one selection block (#1363) */#shelf.shop .pl.sel .sa{outline-color:transparent;box-shadow:none}
#shelf.shop .pl .sa{flex:none;width:76px;height:76px}#shelf.shop .pl .plT{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex:1;gap:6px;min-width:0}
#shelf.shop .pl .sp{margin:0;font-size:18px;padding:2px 10px}
#shelf.shop .pl.flq .sa{background:radial-gradient(circle at 50% 58%,rgba(232,170,90,.22),transparent 68%);box-shadow:none}#shelf.shop .flb{width:100%;height:100%;display:block}
#shelf.shop .pl.big{height:222px;padding:6px 10px}#shelf.shop .pl.big .sa{width:146px;height:208px}#shelf.shop .pl.big .plT{flex-direction:column;align-items:center;justify-content:center;gap:12px}#shelf.shop .pl.big .sn{text-align:center}#shelf.shop .pl.big .pkart text{font-size:22px}
#shelf.shop .pl.tier{width:250px;height:auto;margin:0;padding:10px 10px 12px;flex-direction:column;gap:10px}#shelf.shop .pl.tier .sa{width:210px;height:300px}
#shelf.shop .pl.empty{opacity:.4}
/* what the good in focus does */
#shelf.shop .mInfo{position:absolute;left:50%;top:494px;transform:translateX(-50%);width:max-content;max-width:820px;box-sizing:border-box;text-align:center;font:18px/1.4 Georgia,serif;color:#e7e3d9;padding:6px 18px;background:rgba(6,5,3,.78);border-radius:0}
#shelf.shop .pkBack{background:repeating-linear-gradient(45deg,#16130e 0 7px,#1b1711 7px 14px);border:1px solid #7e7050;box-sizing:border-box}#shelf.shop .pkBack::after{content:'ᛟ';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:58px;color:#4a4232}
body.shop3d #shelf.shop .sc:not(.sel) .sa{filter:brightness(.72)}body.shop3d #shelf.shop .sc:not(.sel) .sn,body.shop3d #shelf.shop .sc:not(.sel) .sp{opacity:.9}
/* the dev Refresh Shop (shelf-refresh.js): the Flask panel, three face-up boon cards in the middle (a bought one face down, SOLD), Refresh in the right rail */
#trekBody.rfShop #shelf.shop .row{align-items:flex-start}#shelf.shop .bc .cards{display:block;margin:0}#shelf.shop .bc .slot{width:230px;height:372px}#shelf.shop .row:has(.bbRow+.bbRow) .bc .slot{height:404px} /* (every card one height, its band's room kept: cards side by side on fixed rows) */
#shelf.shop .bc .spW{margin-top:6px}#shelf.shop .bc.broke .card{filter:grayscale(.7) brightness(.55)}#shelf.shop .bc.broke.sel .card{filter:grayscale(.6) brightness(.8)}
#shelf.shop .bc .stamp{z-index:3}body.shop3d #shelf.shop .bc:not(.sel) .card{filter:brightness(.72)}body.shop3d #shelf.shop .bc.broke:not(.sel) .card{filter:grayscale(.7) brightness(.45)}
#shelf.shop .bc .slot.deal .card{animation:rfFlip .32s ease-out var(--d) both} /* a Refresh: each card turns in on its own beat (--d, from the time gone: shelf-refresh.js rfSlot) */
@keyframes rfFlip{from{transform:perspective(900px) rotateY(90deg);filter:brightness(2.4)}to{transform:none;filter:none}}
#shelf.shop .pl.rf .sa{display:flex;align-items:center;justify-content:center;box-shadow:none;color:#ddd5c3}#shelf.shop .rfI{width:54px;height:54px}#shelf.shop .pl.rf.off{opacity:.5}#shelf.shop .pl.rf.broke .sa{color:#6e685a}
/* the Limited Sale (sale.js renderSale): over its stall (sale3d.js, body.sale3d, whose own sign names it) the merchant's call at the top, the ten goods in one row along the bottom (the packs, then the
   category packs), Leave under them; the stall stands clear between them. No dark wash but a band behind the row, so the scene stays clear (Ole, 2026-11-07) */
body.sale3d #trek{background:none}
body.sale3d #trekBody.sale,#trekBody.sale{position:fixed;inset:0;width:auto;height:auto;display:block;align-items:initial} /* (its own padding is left alone: everything in it is placed absolutely, test/hunthead.test.js) */
#trekBody.sale::before{content:'';position:absolute;left:0;right:0;bottom:0;height:500px;background:linear-gradient(0deg,rgba(6,5,3,.94),rgba(6,5,3,.86) 50%,rgba(6,5,3,.5) 76%,rgba(6,5,3,0));pointer-events:none}
#trekBody.sale #trekHead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
#trekBody.sale #trekSub{position:absolute;left:0;right:0;top:94px;margin:0;max-width:none;text-align:center;font:italic 22px Georgia,serif;color:#ebe8e0;text-shadow:0 2px 8px #000,0 0 18px rgba(0,0,0,.8)}
#trekBody.sale .luckTags.prices{position:absolute;left:0;right:0;top:136px;margin:0}
#trekBody.sale .saleInfo{position:absolute;left:50%;bottom:432px;width:880px;min-height:80px;box-sizing:border-box;transform:translateX(-50%);padding:10px 28px 12px;display:flex;flex-direction:column;justify-content:center;text-align:center;text-shadow:0 2px 8px #000;background:rgba(10,8,5,.84);border:1px solid rgba(221,213,195,.35);border-radius:0;box-shadow:0 6px 24px rgba(0,0,0,.6)}#trekBody.sale .saleInfo:empty{display:none} /* (a plate behind the focused good's name and words, as the Shop's panels: the bright stall sits behind it; one size whichever good is in focus) */
#trekBody.sale .siN{font:400 24px var(--ui-head);letter-spacing:.02em;color:#d7d0c0}#trekBody.sale .siD{margin-top:4px;font:19px/1.4 Georgia,serif;color:#e6e2d8}
#saleRow{position:absolute;left:0;right:0;bottom:148px;display:flex;justify-content:center;align-items:flex-end;gap:16px} /* (its foot clear of the corner medallions, #navMed: npm run ui-clear) */
#saleRow .grp{position:relative;padding-top:34px}#saleRow .grp:first-child{padding-top:50px} /* (the big generic packs, lifted and scaled when selected, clear their heading: #856) */#saleRow .gs{display:flex;gap:16px;align-items:flex-end}
#saleRow h4{position:absolute;top:0;left:0;right:0;margin:0;text-align:center;font:400 15px var(--ui-head);letter-spacing:.06em;text-transform:uppercase;color:#c6bca6;border-bottom:1px solid rgba(221,213,195,.3);padding-bottom:6px}
#saleRow .sDiv{width:1px;height:220px;margin:0 14px;background:linear-gradient(transparent,rgba(221,213,195,.45),transparent)}
#saleRow .sg{position:relative;width:120px;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer}
#saleRow .sa{position:relative;width:120px;height:171px;transition:transform .15s,filter .15s}#saleRow .sa .pkart{width:100%;height:100%;display:block;border-radius:0}
#saleRow .sg.big{width:136px}#saleRow .sg.big .sa{width:136px;height:194px}
#saleRow .sg.sel .sa{transform:translateY(var(--focus-lift)) scale(1.06);filter:none}
#saleRow .sg:not(.sel) .sa{filter:brightness(.8)}#saleRow .sg.off:not(.sel) .sa{filter:grayscale(.75) brightness(.5)}#saleRow .sg.off.sel .sa{filter:grayscale(.6) brightness(.75)}
#saleRow .pkart text,#saleRow .pkart .pkRib{display:none}#saleRow .sn{margin-top:2px;font:400 15px var(--ui-head);letter-spacing:.06em;text-transform:uppercase;color:#d6cfbf;white-space:nowrap}#saleRow .sg.sel .sn{color:#d7d0c0}#saleRow .sg.off:not(.sel) .sn{opacity:.6}
#saleRow .sp{display:inline-flex;align-items:center;gap:5px;padding:2px 12px;border:1px solid transparent;border-radius:0;font:19px Georgia,serif;color:#f1dc9a;white-space:nowrap;text-shadow:0 1px 3px rgba(0,0,0,.9)}
#saleRow .sp i{font-style:normal;font-size:15px;color:#e8c66a}#saleRow .sp s.was{margin:0}
#saleRow .sg.broke .sp{color:#ec7a66}#saleRow .sg.off:not(.broke) .sp,#saleRow .sg.sold .sp{opacity:.55}
#saleRow .stamp{position:absolute;left:50%;top:50%;z-index:3;transform:translate(-50%,-50%) rotate(-14deg);padding:2px 10px;border:3px solid #c0392b;color:#c0392b;font:bold 24px var(--ui-head);letter-spacing:.02em;background:rgba(0,0,0,.72)}
#saleRow .sg.sold .sa{filter:none}#saleRow .sg.sold .sa .pkart{filter:grayscale(.6) brightness(.6)}
#saleRow.deal .sg{animation:saleDeal .5s cubic-bezier(.2,1.3,.5,1) backwards;animation-delay:calc(var(--i) * 55ms - var(--gone, 0ms))}
@keyframes saleDeal{from{opacity:0;transform:translateY(60px)}}
#shelf .sc{width:170px;display:flex;flex-direction:column;align-items:center;cursor:pointer;text-align:center;opacity:.62;transition:opacity .15s}#shelf .sa{transition:transform .15s}
#shelf .sc .pkcard{transform:scale(.739)}#shelf .sc .pkcard .tr,#shelf .sc .pkcard .rk,#shelf .sc .pkcard .ds{font-size:21px}
#shelf .pkcard .tr,#shelf .pkcard .rk,#shelf .pkcard .trophy .ds{font-size:17px}  /* the card is drawn at .87: 15px reads as 13px, the map labels' size */
#shelf .sc.sel{opacity:1}#shelf .sc.sel .sa{transform:translateY(var(--focus-lift))} /* only the good lifts: names and prices stay put */
#shelf .sa{position:relative;width:170px;height:242px;box-shadow:0 6px 18px rgba(0,0,0,.6);outline:2px solid transparent}
#shelf .sc.sel .sa{outline-color:#ddd5c3;box-shadow:none}
#shelf .sn{margin-top:10px;font-family:var(--ui-head);font-size:15px;letter-spacing:.02em;color:#cfc8ae;min-height:56px;width:100%}
#shelf .sp{display:inline-block;margin-top:auto;padding:3px 14px;border:1px solid transparent;border-radius:0;font-family:Georgia,serif;font-size:18px;color:#e8c66a;text-shadow:0 1px 3px rgba(0,0,0,.9)}
#shelf .sp i{font-style:normal;font-size:16px}#shelf .sp.free{color:#9fd49a}
#shelf .sc.off .sa{filter:grayscale(.7) brightness(.6)}#shelf .sc.off .sp{color:#a05a4a}
/* a good you cannot afford: struck through by a red slash, its price in red */
#shelf .sc.broke .sa{filter:none}#shelf .sc.broke .sa>*{filter:grayscale(.7) brightness(.6)} /* dim the art, not the slash over it */
#shelf .sc.broke .sa::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(to top right,transparent calc(50% - 3px),#ff5a44 calc(50% - 3px),#ff5a44 calc(50% + 3px),transparent calc(50% + 3px)),linear-gradient(to top right,transparent calc(50% - 7px),rgba(0,0,0,.6) calc(50% - 7px),transparent calc(50% + 7px));filter:drop-shadow(0 0 2px rgba(255,80,60,.6))}
#shelf .sc.broke .sp{color:#c0584a}
#shelf .si em{font-style:normal;color:#f0d488}
#shelf .stamp{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-14deg);padding:2px 12px;border:3px solid #c0392b;color:#c0392b;font:bold 26px var(--ui-head);letter-spacing:.02em;background:rgba(0,0,0,.5)}
@keyframes gotStamp{0%{opacity:0;transform:translate(-50%,-50%) rotate(-14deg) scale(1.8)}14%{opacity:1;transform:translate(-50%,-50%) rotate(-14deg) scale(1)}70%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) rotate(-14deg) scale(1)}}
@keyframes gotGlow{0%{box-shadow:0 0 50px rgba(221,213,195,.95)}100%{box-shadow:0 6px 18px rgba(0,0,0,.6)}}

/* Leave, on every place of a run (mapui.js evLeaveHTML): the one exit button, at the foot's centre over the key hints */
#evLeave{position:fixed;left:50%;bottom:62px;transform:translateX(-50%);z-index:3}#evLeave .xbtn{width:250px}
body.shop3d #trekBody.shop #evLeave{top:788px;bottom:auto} /* the Shop's alone keeps its 900 height on a taller window, so the wagon shows under it */
/* a new act's splash over the map (actsplash.js): the map dimmed, a band in the act's colours (--act-*) across it holding its number, name and the Bosses that end it (Ole picked this look, mockup A, 2026-11-27), faded in and out by its clock; z-index over the top bar and the medallions, under the pause */
#actSplash{position:fixed;inset:0;z-index:36;display:none;background:radial-gradient(ellipse at center,rgba(var(--act-deep),.58) 0%,rgba(0,0,0,.9) 85%);opacity:0;cursor:pointer;text-align:center}
#actSplash.on{display:block}
#actSplash .asBand{position:absolute;left:0;right:0;top:50%;height:340px;transform:translateY(-50%);background:linear-gradient(90deg,rgba(var(--act-bg),0) 0%,rgba(var(--act-bg),.97) 24%,rgba(var(--act-bg),.97) 76%,rgba(var(--act-bg),0) 100%)}
#actSplash .asBand::before,#actSplash .asBand::after{content:'';position:absolute;left:0;right:0;height:3px;opacity:.75;background:linear-gradient(90deg,transparent 8%,var(--act-acc) 50%,transparent 92%)}
#actSplash .asBand::before{top:0}#actSplash .asBand::after{bottom:0}
#actSplash .asText{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:6px}
#actSplash .asNum{font-family:var(--ui-head);font-size:34px;font-weight:500;text-transform:uppercase;letter-spacing:.4em;padding-left:.4em;color:var(--act-acc)}
#actSplash .asTitle{font-family:var(--ui-head);font-size:92px;line-height:1.05;text-transform:uppercase;letter-spacing:.1em;color:#f1e9d6;text-shadow:0 2px 6px rgba(0,0,0,.9)}
#actSplash .asLine{margin-top:18px;font-family:var(--ui-body);font-size:27px;letter-spacing:.02em;color:#cfc6b2;text-shadow:0 1px 3px rgba(0,0,0,.85)}
#actSplash .asLine b{font-weight:normal;color:var(--act-acc)}
