/* the act palette, the top bar, the details view, the info card, the Codex side, Build, Controls, the tutorial panel, flying coins and packs (index.html links the css/ files in cascade order: a later file wins a tie) */
/* the act's palette on the run's screens (js/actstyle.js): body[data-act] is the act's place (a PLACES key, map.js); :root holds the look outside a run.
   bg/deep/fog/rbg are r,g,b; line the map's rule and list borders; far the walked-past lines and dots; num the rule's numerals; sub subtitles; acc the act's colour */
:root{--act-bg:10,14,8;--act-deep:0,0,0;--act-fog:120,140,110;--act-rbg:26,20,9;--act-line:#3a3a2e;--act-far:#8a8670;--act-sub:#9fb18f;--act-rule:#8a7a3c;--act-acc:#c8b878;--act-plq:rgba(221,213,195,.45)}
body[data-act=forest]{--act-bg:10,18,9;--act-deep:2,5,2;--act-fog:130,170,100;--act-rbg:10,18,9;--act-line:#3e4a2e;--act-far:#8c9474;--act-sub:#a6bd8e;--act-rule:#c8e68a;--act-acc:#c8e68a;--act-plq:rgba(200,230,138,.35)}
body[data-act=wizards]{--act-bg:18,10,40;--act-deep:4,2,12;--act-fog:150,120,240;--act-rbg:18,10,40;--act-line:#3c3664;--act-far:#8e88b8;--act-sub:#b4aae8;--act-rule:#8fe6ff;--act-acc:#8fe6ff;--act-plq:rgba(143,230,255,.35)}
body[data-act=peak]{--act-bg:34,12,6;--act-deep:9,3,1;--act-fog:220,110,60;--act-rbg:34,12,6;--act-line:#56321e;--act-far:#a88a74;--act-sub:#dcaa82;--act-rule:#ffb36a;--act-acc:#ffb36a;--act-plq:rgba(255,179,106,.35)}
body[data-act=rot]{--act-bg:3,22,30;--act-deep:0,5,8;--act-fog:80,190,215;--act-rbg:3,22,30;--act-line:#1e4252;--act-far:#7ea8b2;--act-sub:#8ad0dc;--act-rule:#7de8ff;--act-acc:#7de8ff;--act-plq:rgba(125,232,255,.35)}
body[data-act=monastery]{--act-bg:38,12,26;--act-deep:9,2,6;--act-fog:250,160,180;--act-rbg:38,12,26;--act-line:#5a3242;--act-far:#b48e98;--act-sub:#eab0bc;--act-rule:#ffb4c4;--act-acc:#ffb4c4;--act-plq:rgba(255,180,196,.35)}
body[data-act=heartwood]{--act-bg:22,20,17;--act-deep:5,4,3;--act-fog:200,180,150;--act-rbg:22,20,17;--act-line:#4a4238;--act-far:#a89c88;--act-sub:#d8c8aa;--act-rule:#ffc888;--act-acc:#ffc888;--act-plq:rgba(255,200,136,.35)}
/* the act's frame line (actstyle.js), behind the screen's content */
.actFrame{position:absolute;inset:0;pointer-events:none;z-index:0}
.actFrame .edge{position:absolute;left:14px;right:14px;top:84px;bottom:14px;border:1px solid var(--act-line);border-radius:0;opacity:.8}
#trekTop .actn{color:var(--act-acc);letter-spacing:.02em}
#trek{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .5s;background:radial-gradient(ellipse at center,rgba(var(--act-bg),.7),rgba(var(--act-deep),.94))}
#trek.on{opacity:1;pointer-events:auto}
#trekBody{display:flex;flex-direction:column;align-items:center;font-family:Georgia,serif;color:#bdb6a0}
/* the top bar is pinned: one spot on every run screen, a fixed-width cell per item (empty ones keep their room), so nothing shifts when a number grows or a curse comes and goes */
#trekTop{zoom:1.2;position:fixed;top:0;left:23px;right:23px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:0 28px;align-items:center;font-size:19px;line-height:24px;height:70px;white-space:nowrap;color:#e4dfd4;margin:0;z-index:2}
/* the details view (js/details.js; the peek grown up): what is open and the run's time top left, the tabs across the top, the tab under them, the key hints at the foot */
/* the info card (info.js infoCardHTML) and its placing (inspect.js): Square / I off a fight, a tap for tooltips beside the focus, a hold for the lens (the ring #ixVeil,
   the rest of the screen dimmed by its shadow, its own key hints #ixKeys over the screen's); a mouse resting on a name. Over the pause and the binder (z 44-46) */
#ixVeil{position:fixed;z-index:44;display:none;pointer-events:none;border:2px solid var(--ui-accent);box-shadow:0 0 0 9999px rgba(0,0,0,.52)}
#ixVeil.on{display:block}

#ixWrap{position:fixed;z-index:45;display:none;gap:10px;align-items:flex-start;pointer-events:none;left:0;top:0}
#ixWrap.on{display:flex}#ixWrap.flip{flex-direction:row-reverse}#ixWrap.stack{flex-direction:column}#ixWrap.stack .ixCol{width:400px}
#ixWrap.mouse{pointer-events:auto;cursor:pointer}
.ixCard{width:400px;box-sizing:border-box;padding:18px 20px 14px;background:linear-gradient(180deg,#12110d,#0a0a08);border:1px solid #5b513a;border-top:2px solid var(--c);
  box-shadow:0 14px 40px rgba(0,0,0,.75),0 0 0 1px rgba(0,0,0,.6);font-family:Georgia,serif;color:#d8d2c0;text-align:left}
.ixHead{display:flex;gap:14px;align-items:center;margin-bottom:12px}
.ixIco{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:50%;border:1.5px solid color-mix(in srgb,var(--c) 70%,transparent);color:var(--c);background:radial-gradient(circle,color-mix(in srgb,var(--c) 18%,transparent),transparent 70%)}
.ixIco svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ixIco.ixGl{font-size:22px}
.ixIco svg.mapGl{fill:currentColor;stroke:none}.ixIco svg.mapGl .k{fill:#16120a}.ixIco svg.mapGl .s,.ixIco svg.mapGl .s *{stroke:#16120a;stroke-width:3;paint-order:stroke}.ixIco svg.mapGl :is(.ln,.tn,.ring){fill:none;stroke:currentColor;stroke-width:2.4}.ixIco svg.mapGl .eye{fill:#ebe8e0}
.ixNm{font-family:var(--ui-head);font-size:22px;letter-spacing:.02em;color:var(--c);line-height:1.1}
.ixKind{font-size:15px;letter-spacing:.06em;text-transform:uppercase;color:#9b9378;margin-top:5px}
.ixBody{font-size:18px;line-height:1.45;color:#ddd6c2}
.ixFacts{margin-top:12px;border-top:1px solid #2f2b20;padding-top:8px}
.ixFacts div{display:flex;justify-content:space-between;font-size:16px;color:#a9a289;padding:3px 0}
.ixFacts b{font-weight:normal;color:#e6e2d8}
.ixFacts div.wide{display:block;padding:5px 0}.ixFacts div.wide b{display:block;margin-top:2px;line-height:1.3} /* (a fact too long for one row: its name over its text, the Rings card's effects) */
.ixRanks{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:4px;margin-top:10px}
.ixRanks span{text-align:center;font-size:15px;color:#8f8a78;border:1px solid #2f2b20;padding:3px 0}
.ixRanks span i{display:block;font-style:normal;font-size:15px;color:#cfc6a8}
.ixRanks span.on{border-color:var(--c);color:var(--c)}.ixRanks span.on i{color:#ebe8e0}
.ixNote{margin-top:10px;font-size:16px;line-height:1.45;font-style:italic;color:#bdb6a0}
.ixLadder{width:100%;margin-top:12px;border-collapse:collapse;font-size:16px;color:#cfc6a8}
.ixLadder th{font-weight:normal;font-size:15px;letter-spacing:.06em;text-transform:uppercase;color:#9b9378;padding:0 6px 6px;border-bottom:1px solid #2f2b20;text-align:center}
.ixLadder td{padding:3px 6px;text-align:center;line-height:1.35}.ixLadder td:first-child{color:#8f8a78;font-size:15px;letter-spacing:.02em;white-space:nowrap;width:2.6em}
.ixLadder.tx td:not(:first-child){text-align:left}.ixLadder tr.on td{color:#ebe8e0}.ixLadder tr.on td:first-child{color:var(--c)}
.ixCard.down .ixNm{color:#8f8a78}.ixCard.down .ixBody{font-style:italic;color:#bdb6a0}
/* the Codex's side: the focused entry's card with its column beside it (codexCardHTML: the title's #codexCards, the pause's #pauseCards, the Boon Binder's side) */
.ixPane{display:flex;gap:10px;align-items:flex-start}.ixPane .ixCard{box-shadow:0 10px 30px rgba(0,0,0,.6)}
#boonBinder .bdSide.card{padding:0;border:0;background:none;box-shadow:none;overflow:hidden}
#boonBinder .bdSide.card .ixPane{flex-direction:column;zoom:calc(1 + .2 * var(--hx))}#boonBinder .bdSide.card .ixCard,#boonBinder .bdSide.card .ixCol{width:calc(400px / (1 + .2 * var(--hx)))} /* (the card fills the side's 400px: its own size at the home 900, a size up at 1080 where the binder has the room) */
.ixFoot{margin-top:12px;font-size:15px;color:#8f8a78;display:flex;gap:6px;justify-content:flex-end;align-items:center}
.ixCol{display:flex;flex-direction:column;gap:8px;width:300px}
.ixTerm{padding:10px 14px 11px;background:#0c0c0a;border:1px solid #3b3628;border-left:2px solid var(--k);box-shadow:0 8px 24px rgba(0,0,0,.6);font-family:Georgia,serif;text-align:left}
.ixTerm .tn{font-family:var(--ui-head);font-size:16px;letter-spacing:.06em;color:var(--k);text-transform:uppercase}
.ixTerm .td{font-size:16px;line-height:1.4;color:#bdb6a0;margin-top:4px}
#ixKeys{position:fixed;z-index:46;left:0;right:0;bottom:0;display:none;pointer-events:none}
#ixKeys.on{display:block}
#ixKeys .ps{position:fixed;left:0;right:0;bottom:22px;margin:0;text-align:center;font-family:Georgia,serif;font-size:16px;letter-spacing:.02em;color:#bdb6a0;text-transform:none}
body.ixLens .ps{visibility:hidden}body.ixLens #ixKeys .ps{visibility:visible}
#peek{position:fixed;inset:0;z-index:30;display:none;flex-direction:column;align-items:center;justify-content:center;padding-top:96px;box-sizing:border-box;background:rgba(4,6,3,.97);backdrop-filter:blur(6px);font-family:Georgia,serif;color:#bdb6a0}
#peek.on{display:flex}
#peek.overPause{z-index:45} /* opened from the pause (pause.js pm.details): over the pause menu (#pause, 40) */
#peek::before{content:'';position:fixed;left:60px;right:60px;top:98px;height:1px;background:rgba(221,213,195,.22)}
body:has(#peek.on) #trek .ps,body:has(#peek.on) #levelup .ps,body:has(#peek.on) #topBar{visibility:hidden}
#peekHead{position:fixed;left:60px;top:44px;text-align:left}
#peekHead .ph{font:18px var(--ui-head);letter-spacing:.02em;color:#ddd5c3} /* mixed case, as the map's top bar names the act */
#peekHead .pm{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:16px;color:#a99f84}#peekHead .pm .pi{width:16px;height:16px}
#peekTabs{position:fixed;left:0;right:0;top:46px;display:flex;justify-content:center;align-items:center;gap:44px;font:19px var(--ui-head);letter-spacing:.02em;color:#8f866f}
#peekTabs span[data-t]{padding-bottom:12px;border-bottom:2px solid transparent;cursor:pointer}#peekTabs span[data-t]:hover{color:#d0c9b6}
#peekTabs span.on{color:#ddd5c3;border-bottom-color:#ddd5c3}
#peekTabs .kp,#peekTabs .kk{margin-bottom:14px;font-family:Georgia,serif;letter-spacing:normal;text-transform:none}
#peekBody{display:flex;flex-direction:column;align-items:center;width:100%}
#peek .ledger,#peek .sheet{overflow:auto;scrollbar-width:none} /* no scrollbar track: the lists scroll by wheel */
#peek .ledger::-webkit-scrollbar,#peek .sheet::-webkit-scrollbar{display:none}
#peek .ps{margin-top:26px;text-align:center;font-size:16px;letter-spacing:.02em}
#peekMid{width:460px;max-height:calc(70*var(--vh));overflow:auto;scrollbar-width:none;font-size:16px;color:#cfd1b8;text-align:left}#peekMid::-webkit-scrollbar{display:none}
/* Build: boons | spells | stats side by side; the boon list flows into more columns as it grows (details.js peekCols, c1 to c4) */
#peekBody.stats{--n:1;--cw:330px;--lw:calc(var(--cw)*var(--n) + 26px*(var(--n) - 1));display:grid;grid-template-columns:minmax(0,max-content) minmax(240px,1fr) max-content;align-items:center;column-gap:40px;padding:0 44px 0 0;box-sizing:border-box;flex:1;align-self:stretch} /* boons on the panel at the left edge, stats at the right, the middle centred between and starting at the top (Ole #1114): Ole's tuned placement, never pack them inward */
#peekBody.stats .bpSlot{grid-column:1;grid-row:1;width:calc(var(--lw) + 44px)} /* (the panel is fixed to the left edge, --lw + 84px wide: its slot keeps that room, the gap after it ending at its faded edge) */
#peekBody.stats .sheet{position:static;transform:none;grid-column:3;grid-row:1;max-height:calc(82*var(--vh) - 96px)}
#peekBody.stats #peekMid{grid-column:2;grid-row:1;justify-self:center;align-self:start;margin-top:33px;width:min(460px,100%);max-height:calc(82*var(--vh) - 96px)}
#peek .bpanel{top:99px;display:flex;flex-direction:column;justify-content:center}#peek .bpanel::before{content:'';flex:0 1 37px}#peek .bpanel .ledger{flex:none;height:auto;max-height:100%;overflow:auto} /* (under the header's rule; the boons centred top to bottom on the stats' centre line, Ole 2026-12-03: the 37px above them makes up for the panel's 30px top padding and its end 70px over #peekBody's, shrinking away when the list fills the panel) */#peek .ledger .keepH{margin-top:24px} /* (as .ledger's own: #peek h4 would take it) */
#peekBody.c2{--n:2;--cw:330px}#peekBody.c3{--n:3;--cw:300px}#peekBody.c4{--n:4;--cw:270px} /* (--cw: one column's width; narrower where the screen is short of room, at a big UI scale) */
#peekBody.c2 .lst,#peekBody.c3 .lst,#peekBody.c4 .lst{column-count:var(--n);column-gap:26px}
#peekBody.stats .lst .li{break-inside:avoid}#peekBody.stats .lst .grp{break-inside:avoid} /* (a group whole in one column while it fits) */
#peek .ledger .li{margin-bottom:calc(4px + (180px - var(--short)) / 20)}#peek .ledger .many .li{margin-bottom:calc(2px + (180px - var(--short)) / 20)} /* (a taller window gives the boon rows its room, up to 9px more each at 1080; 900 as before) */
/* the details' boon list (Ole's pick): no stripe, the name and glyph in the tier's colour with the rank right after the name, tight rows, so one column holds about 14 boons */
#peek h4{margin:0 0 12px;font:normal 15px var(--ui-head);letter-spacing:.02em;color:#a99f84}
#peek h4 small{margin-left:6px;font:15px Georgia,serif;letter-spacing:normal;color:#8f866f}
#peekMid .spg{display:flex;flex-wrap:wrap;gap:7px}#peekMid .sp{height:34px;display:flex;align-items:center;gap:7px;padding:0 10px 0 6px;border:1px solid rgba(255,255,255,.08);border-radius:0}#peekMid .sp svg{width:22px;height:22px;flex:none}#peekMid .sp b{font-weight:normal;font-size:15.5px}#peekMid .sp.on{border-color:#ddd5c3;background:rgba(221,213,195,.1)}
#peekMid .spn{margin-top:9px;font-size:15.5px;color:#a99f84}#peekMid .spn b{font-weight:normal;color:#ebe8e0} /* the spells held (details.js spellRows): icons in their colours, the equipped one framed and named */
#peek .none{color:#8f866f;font-style:italic}
/* Build's middle (details.js buildMidHTML): what is in effect (a fight's twist first), quests, the spells; you at the top right (peekYouHTML) */
body:has(#peek.overPause.on) #pauseMain,body:has(#peek.overPause.on) #pauseKeys{visibility:hidden} /* (the pause's column never shows through the details) */
#peekMid h4:not(:first-child){margin-top:20px}
#peekYou{position:fixed;right:60px;top:40px;display:flex;align-items:center;gap:26px;font-size:16px;color:#d0c9b6;white-space:nowrap}
#peekYou .yi{display:flex;align-items:center;gap:9px}#peekYou .yi>i{display:flex;width:18px;height:18px}#peekYou .yi>i svg,#peekYou .pi{width:18px;height:18px}
#peekYou b{font-weight:normal;color:#ebe8e0}#peekYou b.gold{color:#e8c66a}#peekYou .dbar{width:120px}
#peek .dbar{display:block;height:6px;background:rgba(255,255,255,.08);position:relative}#peek .dbar b{position:absolute;left:0;top:0;bottom:0}
#peek .efr{display:grid;grid-template-columns:22px 1fr auto;gap:0 10px;margin-bottom:8px}#peek .efr .pi{width:18px;height:18px;color:var(--c);margin-top:2px}
#peek .efr b{font-weight:normal;color:#ebe8e0}#peek .efr small{display:block;font-size:15px;color:#a99f84;line-height:1.3}#peek .efr em{font-style:normal;color:#8f866f;font-size:15px;white-space:nowrap}#peek .efr.off{opacity:.45}
#peek .qd{display:grid;grid-template-columns:20px 1fr auto;gap:5px 10px;align-items:center;font-size:16px;margin-bottom:9px}#peek .qd .pi{width:17px;height:17px;color:#9fc1d8}
#peek .qd em{font-style:normal;color:#d0c9b6;font-size:15px}#peek .qd .dbar{grid-column:2/4;height:3px}#peek .qd .dbar b{background:#9fc1d8}
#peek .qd.done em{color:#7cc4b0}#peek .qd.failed{opacity:.5}#peek .qd.failed span{text-decoration:line-through}
/* Controls: the title's controls table (menu.js controlsHTML) */
#peek .ctlTab{display:grid;grid-template-columns:auto auto auto;font-family:Georgia,serif;color:#bdb6a0;gap:9px 34px;font-size:17px;align-items:center;padding:18px 28px;background:var(--ui-panel);border:1px solid var(--ui-panel-line);border-radius:0;text-align:left}
#peek .ctlTab .h{color:#8a957f;font-size:15px;letter-spacing:.06em;text-transform:uppercase}#peek .ctlTab b{color:#e6e2d8;font-weight:normal}
#peek .ctlTab>*{white-space:nowrap}#peek .ctlTab .kp{display:inline-block}#peek .ctlTab .kk{display:inline}#peek .ctlTab .kk kbd{margin:0 1px}#peek .ctlTab i{color:#8a957f;font-size:15px}
#trekQuests{position:fixed;right:36px;top:92px;width:400px;max-height:calc(26*var(--vh));overflow:auto;font-size:16px;color:#cfd1b8;text-align:left;font-family:Georgia,serif;text-shadow:0 0 6px #000,0 0 3px #000} /* top right under the top bar's gold on the map; in a fight in the corner itself (#questLog, below) */
#trekQuests h4{margin:0 0 6px;font-weight:normal;letter-spacing:.02em;color:#beb399;font-size:16px;font-family:var(--ui-head)}
#trekQuests .q{display:flex;justify-content:space-between;gap:10px;padding:3px 0;border-top:1px solid rgba(203,195,174,.15)}
#trekQuests .q small{color:#8c8f78;font-size:16px;white-space:nowrap} /* (the reward never splits across lines) */
#trekQuests .q em{font-style:normal;color:#e8c66a;white-space:nowrap}
#trekQuests .q.done{opacity:.5}
#trekQuests .q.failed{color:#7a6a64;text-decoration:line-through}#trekQuests .q.failed em{color:#7a6a64}
.mapTitle #trekQuests{position:static;margin:16px 8px 0 auto} /* on the map in the top-right block (.mapTitle, 76px / 28px), at the fight's place under any news */
/* the tutorial's step panel (js/tutorial.js), at the right edge, halfway down (Ole: on the side, not in the middle): the step's number and title, its goals as a checklist; it glows gold as a step is passed, then shows the step's tip */
#tutor{position:absolute;right:30px;top:130px;width:460px;max-width:calc(50% - 80px);padding:14px 22px 16px;background:linear-gradient(rgba(14,12,9,.88),rgba(14,12,9,.72));border:1px solid #6b5a38;border-radius:0;box-shadow:0 4px 24px rgba(0,0,0,.6);opacity:0;transition:opacity .5s;pointer-events:none}
#questLog #trekQuests{right:30px;top:30px;width:380px;font-size:14.5px;zoom:calc(var(--hs-top,1) / 1.1 * (1 + .1 * var(--hx)))}#questLog #trekQuests h4{font-size:14.5px}#questLog #trekQuests .q small{font-size:14.5px} /* the fight's quests: the map's panel, top right (a fight shows no gold, Ole 2026-11-12) */
#tutor.on{opacity:1}
#tutorHead{font-size:20px;letter-spacing:.02em;color:#ddd5c3;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid rgba(107,90,56,.6)}
#tutorHead .tn{color:#a89a78;font-size:15px;letter-spacing:.02em;margin-right:10px}
#tutorText{font-family:Georgia,serif;font-size:19px;line-height:1.45;color:#dcd6c8} /* the goals are sentences: the body face, as every description */
#tutorText .nw{white-space:nowrap}
#tutorText .goal{display:flex;align-items:baseline;gap:10px;margin:5px -6px;padding:0 6px;border-radius:0}
#tutorText .ck{flex:none;width:14px;height:14px;border:2px solid #a89a78;border-radius:0;transform:translateY(1px)} /* the goal's box: ticked gold once met */
#tutorText .gt{flex:1}
#tutorText .gn{flex:none;font-family:inherit;font-size:16px;color:#ddd5c3}
#tutorText .goal.ok{color:#8f8a76}
#tutorText .goal.ok .ck{background:#ddd5c3;border-color:#ddd5c3;box-shadow:inset 0 0 0 2px #2a2216}
#tutorText .goal.ok .gn{color:#8f8a76}
#tutorText .tip{margin:5px 0;color:#e4e0d5}
#tutorText .goal.lit{animation:goalLit .7s ease-out} /* a goal that just moved on (a roll counted, a hit landed, a goal met): its line flashes gold */
@keyframes goalLit{0%{background:rgba(221,213,195,.55);color:#fff6d8;box-shadow:0 0 18px rgba(221,213,195,.6)}100%{background:rgba(221,213,195,0);box-shadow:0 0 0 rgba(221,213,195,0)}}
#tutorText .cont{margin-top:12px;padding-top:8px;border-top:1px solid rgba(107,90,56,.6);font-size:17px;color:#cfc7ae;text-align:right} /* a tip waits for A / Cross (Enter) */#tutorText .tip b{font-weight:normal;color:#dcd6c8}
#tutor.pass{animation:tutorPass 1.4s ease-out}
@keyframes tutorPass{0%{box-shadow:0 0 0 2px #ddd5c3,0 0 40px rgba(221,213,195,.8)}100%{box-shadow:0 4px 24px rgba(0,0,0,.6)}}
#trekTop .gold,#peekYou .gold{color:#e8c66a}
/* the top bar's own layer (setTop, topBarTick: mapui.js), over the run's screens, the fight, the reward screen and the pack; off in a fight (the foe block carries the act line) */
/* #trekTop is drawn 20% larger (Ole's ask) by zoom, which scales its offsets too: the bar spans the screen top to the act frame's top edge (height 70px x 1.2 = 84px, .actFrame .edge), so its act line and plaques centre in that band; its 23px sides land at about 28 */
#topBar{position:fixed;left:0;top:0;width:0;height:0;z-index:32;pointer-events:none;opacity:0;transition:opacity .5s}
#topBar.on{opacity:1}
#trekTop .plq.pop{animation:rwPop .45s ease-out}
/* coins and bottles flying from the reward rows to the top bar (fly: reward.js) */
#flyLayer{position:fixed;left:0;top:0;width:0;height:0;z-index:33;pointer-events:none}
#flyLayer .fly{position:absolute;left:0;top:0;width:24px;height:24px;margin:-12px 0 0 -12px;opacity:0;animation:flyUp var(--d) cubic-bezier(.45,0,.55,1) forwards}
#flyLayer .fly svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 6px rgba(255,214,90,.85))}
#flyLayer .gtag{position:absolute;margin:-10px 0 0 -14px;font:700 20px var(--ui-head);color:#ffcf6a;text-shadow:0 0 10px rgba(255,150,40,.9);animation:gainTag .9s ease-out forwards} /* the +1 over a capacity gain (gain.js) */
@keyframes gainTag{0%{opacity:0;transform:translateY(8px) scale(.6)}20%{opacity:1;transform:translateY(-6px) scale(1.2)}100%{opacity:0;transform:translateY(-34px) scale(1)}}
#trekTop .plq .of.cap{display:inline-block;animation:gainCap .7s ease-out}
@keyframes gainCap{0%{transform:scale(1);color:#ffcf6a}25%{transform:scale(1.5);color:#fff0b0;text-shadow:0 0 14px rgba(255,170,50,1)}100%{transform:scale(1)}}
#flyLayer .fly.crys svg{width:24px;height:24px;filter:drop-shadow(0 0 8px rgba(255,143,208,.9))}
#flyLayer .fly.bottle{width:20px;height:28px;margin:-14px 0 0 -10px}
#flyLayer .fly.bottle svg{filter:drop-shadow(0 0 8px rgba(255,150,40,.9))}
#flyLayer .fly.life svg{filter:drop-shadow(0 0 8px rgba(191,232,240,.95))} /* an Extra Life flying to its plaque (reward.js REWARD_CLAIM.life) */
/* flask capacity changing (js/flaskcap.js): a big flask in the middle that shakes and pulses on three beats (CAP_PULSE.beats: 12%, 32%, 53% of --d),
   in teal and growing for a rise (its bottle leaves at CAP_PULSE.fly, 76%), in red and shrinking for a fall; the slots under it light up or crack off */
#flyLayer .cpulse{position:absolute;width:0;height:0;--c:127,209,196;--t:#bff5ea}
#flyLayer .cpulse.down{--c:232,86,70;--t:#ffb8a8}
.cpulse .cpGlow{position:absolute;width:560px;height:560px;margin:-280px 0 0 -280px;border-radius:50%;background:radial-gradient(circle,rgba(var(--c),.34),rgba(var(--c),.1) 42%,transparent 70%),radial-gradient(circle,rgba(6,6,5,.82),rgba(6,6,5,.65) 40%,transparent 68%);animation:cpGlow var(--d) ease-out forwards}
@keyframes cpGlow{0%{opacity:0;transform:scale(.4)}10%{opacity:1;transform:scale(1)}12%,32%,53%{transform:scale(1.12)}22%,42%,64%{transform:scale(.96)}78%{opacity:.9}100%{opacity:0;transform:scale(.7)}}
.cpulse .cpRing{position:absolute;width:260px;height:260px;margin:-130px 0 0 -130px;border-radius:50%;border:4px solid rgba(var(--c),.95);box-shadow:0 0 26px rgba(var(--c),.85),inset 0 0 20px rgba(var(--c),.55);opacity:0;animation:cpRingOut .75s ease-out forwards}
.cpulse.down .cpRing{animation-name:cpRingIn}
@keyframes cpRingOut{0%{opacity:1;transform:scale(.55)}100%{opacity:0;transform:scale(2.3)}}
@keyframes cpRingIn{0%{opacity:0;transform:scale(2.3)}40%{opacity:.9}100%{opacity:0;transform:scale(.5)}}
.cpulse .cpShake{position:absolute;left:0;top:0;animation:cpShake .07s linear infinite}
@keyframes cpShake{0%{transform:translate(0,0) rotate(0)}25%{transform:translate(4px,-2px) rotate(2deg)}50%{transform:translate(-3px,3px) rotate(-1.5deg)}75%{transform:translate(3px,2px) rotate(1deg)}100%{transform:translate(-4px,-2px) rotate(-2deg)}}
.cpulse .cpBeat{position:absolute;width:170px;height:238px;margin:-119px 0 0 -85px;animation:cpBeatUp var(--d) ease-in-out forwards}
.cpulse.down .cpBeat{animation-name:cpBeatDown}
.cpulse .cpBeat svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 18px rgba(var(--c),.95)) drop-shadow(0 0 4px rgba(var(--c),1))}
.cpulse.down .cpBeat svg{filter:drop-shadow(0 0 18px rgba(var(--c),.95)) drop-shadow(0 0 4px rgba(var(--c),1)) saturate(.55) brightness(.85)}
@keyframes cpBeatUp{0%{opacity:0;transform:scale(.2)}8%{opacity:1;transform:scale(1)}12%{transform:scale(1.22)}22%{transform:scale(.98)}32%{transform:scale(1.36)}42%{transform:scale(1.08)}53%{transform:scale(1.5)}64%,76%{opacity:1;transform:scale(1.24)}100%{opacity:0;transform:scale(.2) translateY(-60px)}}
@keyframes cpBeatDown{0%{opacity:0;transform:scale(.2)}8%{opacity:1;transform:scale(1.18)}12%{transform:scale(.88)}22%{transform:scale(1.04)}32%{transform:scale(.76)}42%{transform:scale(.9)}53%{transform:scale(.6)}64%,76%{opacity:1;transform:scale(.68)}100%{opacity:0;transform:scale(.5) translateY(90px)}}
.cpulse .cpArrows{position:absolute;top:0;width:44px;height:120px;margin:-60px 0 0 -22px;display:flex;flex-direction:column;justify-content:space-between;color:rgb(var(--c));filter:drop-shadow(0 0 8px rgba(var(--c),.9));animation:cpFade var(--d) ease-out forwards}
.cpulse .cpArrows.l{left:-190px}.cpulse .cpArrows.r{left:190px}
.cpulse .cpArrows svg{width:44px;height:26px;animation:cpRise .55s linear infinite}
.cpulse .cpArrows svg:nth-child(2){animation-delay:-.18s}.cpulse .cpArrows svg:nth-child(3){animation-delay:-.36s}
.cpulse.down .cpArrows svg{transform:rotate(180deg);animation-name:cpSink}
@keyframes cpRise{0%{opacity:0;translate:0 24px}40%{opacity:1}100%{opacity:0;translate:0 -24px}}
@keyframes cpSink{0%{opacity:0;translate:0 -24px}40%{opacity:1}100%{opacity:0;translate:0 24px}}
@keyframes cpFade{0%{opacity:0}10%,76%{opacity:1}100%{opacity:0}}
.cpulse .cpTag{position:absolute;left:0;top:172px;width:600px;margin-left:-300px;text-align:center;font:700 34px var(--ui-head);letter-spacing:.04em;color:var(--t);text-shadow:0 0 14px rgba(var(--c),.9),0 2px 4px #000;white-space:nowrap;animation:cpTag var(--d) ease-out forwards}
.cpulse .cpTag b{font-size:58px;vertical-align:-6px;margin-right:12px;color:#fff;text-shadow:0 0 18px rgba(var(--c),1),0 0 4px rgba(var(--c),1),0 2px 4px #000}
@keyframes cpTag{0%{opacity:0;transform:translateY(16px) scale(.7)}12%{opacity:1;transform:translateY(0) scale(1.08)}20%{transform:scale(1)}80%{opacity:1}100%{opacity:0;transform:translateY(-8px)}}
.cpulse .cpSlots{position:absolute;left:0;top:250px;width:600px;margin-left:-300px;display:flex;justify-content:center;gap:8px;animation:cpFade var(--d) ease-out forwards}
.cpulse .cpSlots i{width:16px;height:26px;border-radius:0 4px 7px 7px;border:2px solid rgba(255,210,122,.55);background:rgba(30,26,20,.75)}
.cpulse .cpSlots i.f{background:linear-gradient(#ffcf6a,#c8560e);border-color:#ffd27a}
.cpulse .cpSlots i.new{border-color:rgb(var(--c));box-shadow:0 0 12px rgba(var(--c),.9);opacity:0;animation:cpSlotNew .45s ease-out forwards;animation-delay:calc(.2s + var(--k) * .35s)}
.cpulse .cpSlots i.lost{border-color:rgb(var(--c));box-shadow:0 0 12px rgba(var(--c),.9);animation:cpSlotLost .6s ease-in forwards;animation-delay:calc(.55s + var(--k) * .3s)}
@keyframes cpSlotNew{0%{opacity:0;transform:scale(2.2)}60%{opacity:1;transform:scale(.9)}100%{opacity:1;transform:scale(1)}}
@keyframes cpSlotLost{0%{transform:none;opacity:1}25%{transform:translateX(-3px) rotate(-10deg)}45%{transform:translateX(3px) rotate(12deg)}100%{opacity:0;transform:translateY(46px) rotate(40deg) scale(.6)}}
#flyLayer .fly.trophy{width:40px;height:40px;margin:-20px 0 0 -20px;display:flex;align-items:center;justify-content:center}
#flyLayer .fly.trophy .gl{font-size:38px;font-weight:normal;color:rgb(190,255,120);text-shadow:0 0 18px rgba(190,255,120,.9)}
/* the boon pack's flight from its Spoils row to the pack-opening screen (reward.js flyPack): a lift with a tilt, then a swoop to the middle, growing to full size */
#flyLayer .fly.pack{font-style:normal;width:210px;height:300px;margin:-150px 0 0 -105px;opacity:1;animation:flyPack var(--d) cubic-bezier(.5,0,.3,1) forwards;filter:drop-shadow(0 0 14px rgba(var(--gc),.3))}
#flyLayer .fly.pack .pkart{position:absolute;inset:0;clip-path:polygon(0 8px,10% 0,20% 8px,30% 0,40% 8px,50% 0,60% 8px,70% 0,80% 8px,90% 0,100% 8px,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 crimped foil edges of #lvlPack's pack */
#flyLayer .fly.pack .rsparks{position:absolute;left:50%;top:50%}
#flyLayer .fly.pack.landed{animation:flyPackLand .35s ease-out forwards}
@keyframes flyPack{0%{transform:translate(var(--x0),var(--y0)) scale(var(--s0));filter:drop-shadow(0 0 6px rgba(var(--gc),.9))}22%{transform:translate(var(--x0),calc(var(--y0) - 46px)) scale(calc(var(--s0) * 1.8)) rotate(-8deg);filter:drop-shadow(0 0 22px rgba(var(--gc),1))}70%{filter:drop-shadow(0 0 40px rgba(var(--gc),.8))}100%{transform:translate(var(--x1),var(--y1)) scale(1);filter:drop-shadow(0 0 14px rgba(var(--gc),.3))}}
@keyframes flyPackLand{0%{transform:translate(var(--x1),var(--y1)) scale(1)}35%{transform:translate(var(--x1),calc(var(--y1) + 6px)) scale(1.04,.97)}100%{transform:translate(var(--x1),var(--y1)) scale(1)}}
@keyframes flyUp{0%{opacity:0;transform:translate(var(--x0),var(--y0)) scale(.6)}12%{opacity:1}50%{transform:translate(var(--xm),var(--ym)) scale(1.15)}92%{opacity:1}100%{opacity:.4;transform:translate(var(--x1),var(--y1)) scale(.7)}}
#trekTop .tl,#trekTop .tc,#trekTop .tr{display:flex;gap:18px;align-items:center;zoom:var(--hs-top,1)}#trekTop .tl span+span::before{content:'·';margin-right:18px;opacity:.55} /* the left cell's parts (act, fight and twist, blight, coal) read as one line, each set off by a dot */#trekTop .tl{justify-content:flex-start;min-width:0;flex-wrap:wrap;row-gap:0;white-space:normal} /* (wraps only where its cell is too narrow, a long act and its blight at a large UI scale beside the flask plaque and its REST, so it never runs under them) */#trekTop .tc{justify-content:center;gap:30px}#trekTop .tr{justify-content:flex-end}
#trekBody:not(.map){height:calc(100*var(--vh));box-sizing:border-box;padding:120px 0 28px;justify-content:flex-start} /* every run screen but the map: the header (title, rule, words) at this one top, so the title never moves between screens; what is chosen follows a fixed gap under it (test/hunthead.test.js) */
#trekHead{text-align:center;font-family:var(--ui-head);font-size:30px;letter-spacing:.02em;color:#ddd5c3;text-shadow:0 1px 3px rgba(0,0,0,.85);margin-bottom:6px}
#trekHead.long{letter-spacing:.02em} /* a title over TREK_HEAD_LONG letters (mapui.js hookClicks): one line in the 3D events' 640px column */
#trekHead i{font-style:normal;font-family:Georgia,serif;font-size:17px;letter-spacing:.02em;color:var(--act-sub)}
#trekHead .badHead{color:#d9534f;text-shadow:0 1px 3px rgba(0,0,0,.85)}
#trekSub{font-size:17px;letter-spacing:.02em;color:var(--act-sub);margin-bottom:14px}
#trek::before,#trek::after{content:"";position:absolute;inset:-10%;pointer-events:none;background:radial-gradient(ellipse 40% 22% at 25% 60%,rgba(var(--act-fog),.10),transparent),radial-gradient(ellipse 35% 20% at 75% 35%,rgba(var(--act-fog),.08),transparent);animation:trekFog 38s ease-in-out infinite alternate}
#trek::after{background:radial-gradient(ellipse 45% 18% at 70% 75%,rgba(var(--act-fog),.09),transparent),radial-gradient(ellipse 30% 25% at 20% 25%,rgba(var(--act-fog),.07),transparent);animation-duration:51s;animation-direction:alternate-reverse}
@keyframes trekFog{from{transform:translateX(-4%)}to{transform:translateX(4%)}}
#trekBody{position:relative;z-index:1}
#trekHead::after{content:"";display:block;height:9px;margin-top:8px} /* no hairline under the title (#1363): its room kept, so nothing under it moves */
#trekMapWrap{position:relative;padding:0 18px} /* moved up or down by mapboard.js mapCentreTick: its places and labels midway between the panels over it and the hints */
#trekBody.map{height:calc(100*var(--vh));box-sizing:border-box;justify-content:center} /* centred, as the all-names map (#peek), so the board does not move when M is pressed */
#trekMap{display:block;width:min(calc(92*var(--vw)),calc((calc(100*var(--vh)) - 260px) * 2.44));overflow:visible} /* as large as the screen allows (the map is 1000 x 410) */
.mapTitle{position:fixed;top:76px;right:28px;max-width:calc(34*var(--vw));text-align:right}
.mapTitle #trekHead{font-size:22px;letter-spacing:.02em;text-indent:0;margin:0}.mapTitle #trekHead::after{display:none}
.mapTitle #trekSub{margin:14px 0 0;max-width:none;font-size:16px;letter-spacing:.02em;text-align:right}
#trekMap path{fill:none}
#trekMap .cs .bg{fill:#0d0709;stroke:var(--cc);stroke-width:1.3;filter:drop-shadow(0 0 3px color-mix(in srgb,var(--cc) 60%,transparent))}
#trekMap .cs g *{fill:none;stroke:var(--cc);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#trekMap .cs.bs .bg{fill:#171205}
#trekMap .far{stroke:var(--act-far);stroke-width:1.8;opacity:.9}
#trekMap .go{stroke:#cdb868;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:4 5;animation:trekAnts 1.1s linear infinite;animation-delay:var(--ph)}
#trekMap .go.pick{stroke:#f2d56f;stroke-width:3}
#trekMap .walked{stroke:#e8c66a;stroke-width:3;stroke-linecap:round}
@keyframes trekAnts{to{stroke-dashoffset:-9}}
:is(#trekMap,.nodeArt) .nd{--c:#7a8c6e;--g:#c8d6b0;--bg:#0a0c07;opacity:.72}
/* the corner medallions, Map, Character and Info (details.js navMedTick): bottom left on every screen the details open over; the hint bars leave those keys to them */
#navMed{position:fixed;left:28px;bottom:14px;z-index:31;display:flex;gap:26px;font-family:var(--ui-head);opacity:0;pointer-events:none;transition:opacity .4s}
#navMed.on{opacity:1;pointer-events:auto}
body.campclip #navMed,body.shopclip #navMed,body.eventclip #navMed{opacity:0;pointer-events:none}
#navMed .m{position:relative;display:flex;flex-direction:column;align-items:center;gap:22px;cursor:pointer}
#navMed .disc{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 50% 35%,rgba(60,52,34,.95),rgba(14,12,9,.95));border:2px solid var(--act-acc,#bfb49c);box-shadow:0 0 16px rgba(0,0,0,.9),0 0 0 4px rgba(10,9,7,.85),0 0 0 5px rgba(201,161,90,.45);color:#dbd5c7;transition:box-shadow .15s,filter .15s}
#navMed .disc .pi,#navMed .disc svg{width:38px;height:38px}
#navMed .badge{position:absolute;top:70px;left:50%;transform:translateX(-50%);white-space:nowrap;line-height:1}
#navMed .badge .kp.pb{width:22px;min-width:22px;height:22px;line-height:22px;margin:0;vertical-align:middle;box-shadow:0 0 0 2px #0c0b08,0 0 0 3px #a89a77}
#navMed .badge .kp.pw{font-size:14px;margin:0;box-shadow:0 0 0 2px #0c0b08}
#navMed .badge .kk kbd{font-size:16px;padding:1px 6px;border:1px solid #8a8268;border-bottom-width:2px;border-radius:0;background:#1c1a14;color:#e1dcd0}
#navMed .t{font-size:15px;letter-spacing:.06em;color:#d3ccbb;text-transform:uppercase}
#navMed .on .disc{filter:brightness(1.15);box-shadow:0 0 0 4px rgba(10,9,7,.85),0 0 0 5px rgba(221,213,195,.6)}
#navMed .on .disc,#navMed .on .t{color:var(--act-acc,#ddd5c3)}
#navMed .m:hover .disc{box-shadow:0 0 16px rgba(0,0,0,.9),0 0 0 4px rgba(10,9,7,.85),0 0 0 5px rgba(221,213,195,.8)}
#navMed .m:hover .t{color:#e7e3d9}
body:not(.ixNames) #navMed [data-nav="info"]{display:none} /* Info: only while a name on screen can be read (inspect.js ixNamesTick) */
body.navMed .ixHint{display:none} /* the bar's info hint: the Info medallion names it */
