/* Legends window layout (on ui.css). Only what is specific to this window lives here. */
.lw-body{display:flex}
.lw-list{width:14.5em;flex:0 0 auto;display:flex;flex-direction:column;border-right:1px solid var(--fs-panel-line)}
.lw-list .fs-search{margin:.6em}
.lw-rows{flex:1;overflow:auto;padding:0 .4em .5em;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.13) transparent}
.fs-bar.thin{height:3px}
.lw-detail{flex:1;min-width:0;overflow:auto;padding:.9em 1.1em;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(15.5em,auto);grid-template-rows:auto auto minmax(0,1fr) auto;
  gap:.8em 1em;align-content:start;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.13) transparent}
.lw-detail>.fs-empty{grid-column:1/-1}
.ld-top{grid-column:1/3;display:flex;gap:1em;align-items:flex-start}
/* the small portrait (inside the name block) - not used now that every legend has the big layout below (.lw-detail.big) */
.ld-por{position:relative;width:7.9em;height:10.7em;flex:0 0 auto;border-radius:10px;overflow:hidden;background:#000;box-shadow:0 0 0 1px rgba(227,179,86,.5),0 6px 16px rgba(0,0,0,.5)}
.ld-por img{width:100%;height:100%;object-fit:cover;object-position:top;display:block}
.ld-lv{position:absolute;left:.35em;bottom:.35em;padding:.1em .45em;border-radius:999px;font-size:.85em;font-weight:750;background:#15161a;box-shadow:inset 0 0 0 1px rgba(227,179,86,.7)}
.ld-id{flex:1;min-width:0;display:flex;flex-direction:column;gap:.45em}
.ld-name{display:flex;align-items:center;gap:.3em}
.ld-name h4{margin:0;font-size:1.35em;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ld-sub{color:var(--fs-dim);font-size:.9em}
.st2{color:var(--fs-down)}.st8{color:#ffb35e}.st4{color:var(--fs-up)}
.ld-bar{display:flex;align-items:center;gap:.55em}
.ld-bar .fs-bar{flex:1}
.ld-bl{width:4em;flex:0 0 auto;color:var(--fs-dim);font-size:.85em}
.ld-bv{font-variant-numeric:tabular-nums;font-size:.92em;white-space:nowrap;min-width:9em;text-align:right}
.ld-note{font-size:.82em;color:var(--fs-dim);margin:-.2em 0 0 4.55em}
.ld-note.none{font-style:italic;opacity:.7}
.ld-stats{grid-column:1/2;grid-row:2;align-self:start}.ld-pts{grid-column:2/3;grid-row:2;align-self:start}
.ld-stats .fs-kv>.k{width:5.6em}
.ld-stats .fs-kv,.ld-pts .fs-kv{min-height:2em}
.ld-stats .fs-kv>.v,.ld-pts .fs-kv>.v{font-size:1.08em}
.ab.a2{color:var(--fs-q2)}.ab.a3{color:var(--fs-q3)}.ab.a4{color:var(--fs-q5)}
.ld-pts .fs-kv>.k{width:4.8em}
.lp-new{font-style:normal;color:var(--fs-gold-hi);font-size:.85em}
.lp-pot{margin-top:.25em;padding-top:.35em;border-top:1px solid var(--fs-panel-line)}
.lp-pot>.v{color:var(--fs-gold-hi);font-size:1.1em}
.lp-acts{display:flex;gap:.4em;margin-top:.5em}.lp-acts .fs-btn{flex:1}
/* equipment: two columns of cells, no figure */
.ld-gear{grid-column:3/4;grid-row:1/4;display:flex;flex-direction:column;min-width:15.5em}
.lg-cols{flex:1;display:flex;justify-content:center;gap:1.6em;padding:.5em 0}
.lg-col{display:flex;flex-direction:column;gap:.6em}
.ld-gear .fs-cell{width:4.6em;height:4.25em}
.ld-gear .fs-cell .br{font-size:.85em}.ld-gear .fs-cell .tl{font-size:.62em}
.lg-acts{display:flex;flex-direction:column;gap:.35em;margin-top:.4em}
.ld-foot{grid-column:1/-1;grid-row:4;display:flex;flex-wrap:wrap;gap:.5em;padding-top:.6em;border-top:1px solid var(--fs-panel-line)}
/* item tooltip parts (shared by every window that shows equipment) */
/* sub-windows (legends_sub.js) */
.sw-pad{padding:.8em .9em}
.sw-item .main i{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.sw-item.none .fs-cell,.sw-item.none .main{opacity:.55}
.sw-own{font-size:.85em;color:var(--fs-dim);white-space:nowrap}
.sw-gold{display:grid;place-items:center;width:100%;height:100%;color:var(--fs-gold-hi)}.sw-gold svg{width:1.8em;height:1.8em}
.sw-qty{display:flex;align-items:center;gap:.4em;margin:.6em 0}.sw-qty span{width:6em;color:var(--fs-dim);font-size:.88em}.sw-qty .fs-input{width:5em;text-align:center}
.sw-check{display:flex;align-items:center;gap:.5em;margin-top:.5em;font-size:.92em;cursor:pointer}
.sw-eff .main i,.sw-skill .main i{white-space:normal}
.sw-lv{min-width:2.2em;text-align:center;font-weight:700;color:var(--fs-gold-hi);background:rgba(227,179,86,.1);border-radius:6px;padding:.3em}
.sw-tf{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:.8em}
.sw-tf .fs-kv>.v{flex:0 1 auto;min-width:0}
.sw-tf .fs-kv>.k{width:5.2em}
.sw-arrow{color:var(--fs-dim);padding:0 .3em}
.sw-cls{display:flex;align-items:center;gap:.3em;font-size:1.05em;margin-bottom:.4em}
.sw-runes{display:flex;gap:.5em}
.sw-field{display:flex;flex-direction:column;gap:.35em;margin-top:.8em;font-size:.9em;color:var(--fs-dim)}
.sw-troops{display:grid;grid-template-columns:1.2fr 1fr;gap:.8em}
.sw-types{max-height:21em;overflow:auto}
.sw-sol{width:2.4em;height:2.4em;object-fit:contain;flex:0 0 auto}
.sw-amt{display:flex;align-items:center;gap:.6em;margin:.4em 0}.sw-amt input[type=range]{flex:1;accent-color:#e3b356}.sw-amt .fs-input{width:6.5em;text-align:right}
.sw-quick{display:flex;gap:.4em}
/* Level up: in the XP row when XP is full - a gold pill with a soft pulse */
.ld-lvup{display:inline-flex;align-items:center;gap:.3em;height:1.8em;padding:0 .8em 0 .6em;border-radius:999px;font-weight:750;font-size:.92em;white-space:nowrap;
  color:#2a1c05;background:linear-gradient(#ffe39a,#e3b356 55%,#b8862c);box-shadow:inset 0 1px 0 rgba(255,250,225,.7),0 0 0 1px rgba(110,70,10,.5),0 2px 8px rgba(0,0,0,.45);
  animation:ld-pulse 2.2s ease-in-out infinite}
.ld-lvup svg.ic{width:1.05em;height:1.05em;stroke-width:2.4}
.ld-lvup:hover{filter:brightness(1.08);animation-play-state:paused;box-shadow:inset 0 1px 0 rgba(255,250,225,.8),0 0 0 1px rgba(110,70,10,.6),0 0 14px rgba(240,199,102,.55)}
@keyframes ld-pulse{0%,100%{box-shadow:inset 0 1px 0 rgba(255,250,225,.7),0 0 0 1px rgba(110,70,10,.5),0 2px 8px rgba(0,0,0,.45)}
  50%{box-shadow:inset 0 1px 0 rgba(255,250,225,.7),0 0 0 1px rgba(110,70,10,.5),0 0 14px rgba(240,199,102,.6)}}
.ld-bar.full .ld-bv{color:var(--fs-gold-hi);font-weight:600}
@media (prefers-reduced-motion:reduce){.ld-lvup{animation:none}}
/* skills panel: fills the middle under the stats; two columns of skills, scrolls inside when there are many */
.ld-skills{grid-column:1/3;grid-row:3;min-height:6em;display:flex;flex-direction:column}
.ld-skills .fs-panel-h .ls-n{font-size:.95em}
.ls-list{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(15em,1fr));gap:.45em .7em;align-content:start;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.13) transparent}
.ls-skill{display:flex;gap:.6em;align-items:flex-start;padding:.45em .55em;border-radius:8px;background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.ls-lv{flex:0 0 auto;min-width:2.1em;padding:.25em .3em;border-radius:6px;text-align:center;font-weight:750;font-variant-numeric:tabular-nums;color:var(--fs-gold-hi);background:rgba(227,179,86,.1)}
.ls-t{min-width:0;display:flex;flex-direction:column;gap:.12em}
.ls-t b{font-weight:600}
.ls-t i{font-style:normal;font-size:.82em;line-height:1.35;color:rgba(232,230,227,.62);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ls-empty{grid-column:1/-1;padding:1em;color:var(--fs-dim);text-align:center}
/* level-up message (legends_sub.js levelUp): what the level gave, big, and the Restore Seed choice under it */
.fs-dialog.lu-dlg{width:min(34em,94%)}
.lu-box{display:flex;flex-direction:column;gap:.8em}
.lu-gain{padding:.8em .9em;border-radius:10px;background:linear-gradient(rgba(227,179,86,.12),rgba(227,179,86,.04));box-shadow:inset 0 0 0 1px rgba(227,179,86,.45)}
.lu-h{display:block;font-size:.8em;color:var(--fs-dim);margin-bottom:.3em}
.lu-gain p{margin:0;font-size:1.08em;line-height:1.45;color:#f3e7c8}
.lu-gain p b{color:var(--fs-gold-hi)}
.lu-seed{display:flex;align-items:center;gap:.65em}
.lu-seed .main{flex:1;min-width:0;display:flex;flex-direction:column;gap:.1em}
.lu-seed .main b{font-weight:600}
.lu-seed .main i{font-style:normal;font-size:.82em;color:var(--fs-dim);line-height:1.35}
.lu-seed .fs-btn{flex:0 0 auto}
/* attribute "+": fills gold while held; at 0.6 s the "how many points" box opens */
.ld-pts .fs-step[data-d="1"]{position:relative;overflow:hidden}
.ld-pts .fs-step[data-d="1"]::after{content:"";position:absolute;inset:0;background:rgba(227,179,86,.45);transform:scaleX(0);transform-origin:left;pointer-events:none}
.ld-pts .fs-step.holding::after{transform:scaleX(1);transition:transform .6s linear}
.lp-ask{display:flex;flex-direction:column;gap:.6em}
.lp-ask .fs-qty .fs-input{width:6.5em}
.lp-ask p{margin:0}
@media (prefers-reduced-motion:reduce){.ld-pts .fs-step.holding::after{transition:none}}

/* ---------- dismiss many legends (legends_sub.js dismissMany) */
.dm-body{display:flex;flex-direction:column;gap:.6em;padding:.75em .85em}
.dm-bar{display:flex;align-items:center;gap:.5em;flex-wrap:wrap}
.dm-bar .dm-lv{width:5em;text-align:center}
.dm-hint{margin:-.2em 0 0}
.dm-list{flex:1;min-height:0;display:flex;flex-direction:column;gap:.2em}
.dm-row{display:flex;align-items:center;gap:.6em;padding:.35em .5em;border-radius:8px;cursor:pointer}
.dm-row:hover{background:rgba(255,255,255,.05)}
.dm-row.on{background:rgba(255,107,94,.09);box-shadow:inset 0 0 0 1px rgba(255,107,94,.35)}
.dm-row.off{opacity:.45;cursor:default}
.dm-row input{width:1.05em;height:1.05em;accent-color:#e3b356;flex:0 0 auto}
.dm-row .main{flex:1;min-width:0;display:flex;flex-direction:column;gap:.1em}
.dm-row .main b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-row .main i{font-style:normal;font-size:.82em;color:var(--fs-dim)}
.dm-prog{display:flex;align-items:center;gap:.7em}
.dm-prog[hidden]{display:none}
.dm-prog .fs-bar span{width:0}
.dm-prog .fs-bar{flex:1}
.dm-prog .fs-bar span{transition:width .3s}
.dm-ptext{font-size:.88em;color:rgba(232,230,227,.8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%}

/* ---- big portrait (owner 2026-11-10: first only the video legends, then "all legends use the same layout with bigger profile view"
   - legends.js / legendview.js always add .big). The portrait is
   its own column beside the name and stats and exactly as tall as they are (rows 1-2: it never makes the top section taller); the
   picture / video fills that height (cover, cropped at the sides). The skills panel below runs the full width. */
.lw-detail.big{grid-template-columns:min(20em,22%) minmax(16em,1.12fr) minmax(13.5em,.88fr) minmax(15.5em,auto)}
@media (max-width:1400px){.lw-detail.big{grid-template-columns:min(20em,17%) minmax(13.5em,.9fr) minmax(16.5em,1.1fr) minmax(15.5em,auto)}}
.big .ld-top{grid-column:2/4;grid-row:1}
.big .ld-por{grid-column:1;grid-row:1/3;align-self:stretch;width:100%;height:auto;min-height:0;border-radius:14px;background:#0b0c0f;
  box-shadow:0 0 0 1px rgba(227,179,86,.55),0 0 0 4px rgba(0,0,0,.35),0 10px 26px rgba(0,0,0,.55)}
.big .ld-por::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,236,190,.12);
  background:linear-gradient(to top,rgba(8,8,10,.55),rgba(8,8,10,0) 22%)}
.big .ld-por img{position:absolute;inset:0}
.ld-por .ld-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;opacity:0;transition:opacity .35s ease}
.ld-por.on .ld-vid{opacity:1}
.big .ld-lv{z-index:1;left:.55em;bottom:.55em;padding:.15em .6em;font-size:1em;background:rgba(21,22,26,.88)}
.big .ld-stats{grid-column:2/3}.big .ld-pts{grid-column:3/4}
.big .ld-gear{grid-column:4/5}
.big .ld-skills{grid-column:1/4}
/* legends without a video (.pic, owner 2026-11-10 "for normal legends let's make it 30% smaller picture but keep the layout"): the same
   column and place, the portrait 70% of the video legends' box (column 70% as wide, the box's shape kept, top-aligned) */
.lw-detail.big.pic{grid-template-columns:min(14em,15.4%) minmax(16em,1.12fr) minmax(13.5em,.88fr) minmax(15.5em,auto)}
@media (max-width:1400px){.lw-detail.big.pic{grid-template-columns:min(14em,12%) minmax(13.5em,.9fr) minmax(16.5em,1.1fr) minmax(15.5em,auto)}}
.big.pic .ld-por{align-self:start;aspect-ratio:256/361}
/* ---- legend Sacrifice: the Altar (owner 2026-11-10: "re do the ladder ... compact view, although it needs to look sick").
   legends_sub.js dismissMany("sacrifice"): ember header with the count, one rail with six milestone medallions, the picked
   milestone's rewards, then the eligible legends. Reduced motion = no glow animation. */
.fs-win.dm.sac{background:#0f1013;background:radial-gradient(120% 60% at 0% 0%,rgba(196,55,43,.14),transparent 55%),linear-gradient(180deg,#16171b,#0e0f12)}
.dm.sac .dm-body{gap:.6em;padding:.7em .9em}
.dm.sac .dm-lv,.dm.sac .dm-sel,.dm.sac .dm-bar>span:first-child{display:none}
.sac-head{display:flex;flex-direction:column;gap:.6em}
/* header */
.sac-hero{position:relative;display:flex;align-items:center;gap:.9em;padding:.7em 1em;border-radius:14px;overflow:hidden;
  background:linear-gradient(100deg,rgba(150,36,22,.55),rgba(64,18,12,.55) 38%,rgba(20,14,12,.7) 70%,rgba(20,16,10,.4));
  box-shadow:inset 0 0 0 1px rgba(240,160,80,.28),0 8px 24px rgba(0,0,0,.35)}
.sac-hero::before{content:"";position:absolute;inset:-40% auto -40% -8%;width:46%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(255,140,60,.35),transparent);filter:blur(6px);animation:sacpulse 3.2s ease-in-out infinite}
/* Altar + Kunlun icons in the game's left column (owner 2026-11-11: game-icon size and spacing, stand out from the map, then
   "make them sleeker"): 33 x 33 of the 1000 x 600 stage on a 37 px pitch (top set by legends_sub.js place()). No ring or plate:
   a soft dark halo fading into the map, a crisp dark edge on the art, a coloured glow only on hover. z-index 1 = under every other
   web UI piece (windows 40+, HUD 2-8, chat 5+), only above the game and the web map base (0) - owner: "lower than any other UI" */
/* owner 2026-11-17 ("these icons are not aligned on the left edge ... a little bit more standing out from the background, maybe a little
   bit more darkened behind them"): the same box as the game's own left-column buttons above (measured: 0.96% in, 2.96% wide, square
   = 4.94% of the height), a darker rounded backdrop with a faint frame, the art centred in it */
#game .fs-altar,#game .fs-kunlun{position:absolute;left:.96%;top:30.08%;width:2.96%;height:4.94%;z-index:2;padding:0;border:0;cursor:pointer;
  display:grid;place-items:center;border-radius:18%;background:radial-gradient(closest-side,rgba(5,6,8,.82),rgba(5,6,8,.66) 70%,rgba(5,6,8,.5));
  box-shadow:0 0 0 1px rgba(255,255,255,.14),0 0 10px 2px rgba(0,0,0,.55);transition:transform .15s ease-out}
#game .fs-kunlun{top:36.25%}
#game .fs-altar img,#game .fs-kunlun img{width:108%;height:108%;max-width:none;object-fit:contain;pointer-events:none;
  filter:drop-shadow(0 0 1px rgba(0,0,0,.95)) drop-shadow(0 1px 2px rgba(0,0,0,.7));transition:filter .15s}
#game .fs-altar:hover,#game .fs-kunlun:hover{transform:scale(1.08)}
#game .fs-altar:hover img{filter:drop-shadow(0 0 1px rgba(0,0,0,.95)) drop-shadow(0 0 7px rgba(255,150,60,.85))}
#game .fs-kunlun:hover img{filter:drop-shadow(0 0 1px rgba(0,0,0,.95)) drop-shadow(0 0 7px rgba(110,205,255,.85))}
#game .fs-altar:focus-visible{outline:2px solid #ffd38a;outline-offset:1px}
#game .fs-kunlun:focus-visible{outline:2px solid #8fdcff;outline-offset:2px}
/* the Kunlun Store countdown on its icon (owner 2026-11-17: "a timer running like we have in the Kunlun market") */
#game .fs-kunlun .fs-kx-timer{position:absolute;left:50%;bottom:-.95em;transform:translateX(-50%);padding:.05em .4em;border-radius:6px;
  font-size:.62em;line-height:1.35;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:.02em;
  color:#bfeaff;background:rgba(5,8,12,.88);box-shadow:0 0 0 1px rgba(143,220,255,.45);pointer-events:none}
#game .fs-kunlun .fs-kx-timer:empty{display:none}
.fs-win.kx{background:radial-gradient(90% 60% at 50% 0%,rgba(60,170,230,.18),transparent 60%),linear-gradient(180deg,#14181d,#0e1013)}
.kx-body{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.55em;padding:1.2em 1.6em 1.6em}
.kx-art img{width:9.5em;height:9.5em;object-fit:contain;filter:drop-shadow(0 0 18px rgba(80,190,255,.6));animation:kxfloat 4s ease-in-out infinite}
.kx-soon{font-size:.78em;font-weight:750;letter-spacing:.14em;text-transform:uppercase;color:#0d1a22;background:linear-gradient(90deg,#8fdcff,#4fb4ea);
  padding:.25em .9em;border-radius:999px;box-shadow:0 0 14px rgba(90,200,255,.45)}
.kx-body h4{margin:.1em 0 0;font-size:1.35em;letter-spacing:.03em;color:#d8f2ff;text-shadow:0 0 12px rgba(90,200,255,.45)}
.kx-body p{margin:0;max-width:24em;line-height:1.5;color:rgba(230,245,255,.78)}.kx-body p b{color:#bfeaff}
@keyframes kxfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-.35em)}}
@media (prefers-reduced-motion:reduce){.kx-art img{animation:none}#game .fs-kunlun{transition:none}}
.sac-art{position:relative;width:4.6em;height:4.6em;margin:-.6em -.1em -.6em -.3em;flex:0 0 auto;object-fit:contain;
  filter:drop-shadow(0 0 10px rgba(255,140,60,.7));animation:sacart 3.2s ease-in-out infinite}
@keyframes sacart{0%,100%{filter:drop-shadow(0 0 8px rgba(255,140,60,.55))}50%{filter:drop-shadow(0 0 16px rgba(255,160,70,.95))}}
.sac-empty img{width:4.5em;height:4.5em;opacity:.85;filter:drop-shadow(0 0 10px rgba(255,140,60,.5))}
.sac-sigil{position:relative;display:grid;place-items:center;width:3em;height:3em;flex:0 0 auto;border-radius:50%;
  background:radial-gradient(circle at 40% 35%,#ffd38a,#e8794b 45%,#7a1d12 100%);box-shadow:0 0 0 2px rgba(255,214,150,.5),0 0 22px rgba(255,120,50,.6)}
.sac-sigil .ic{width:1.7em;height:1.7em;color:#2a0905}
.sac-ht{position:relative;display:flex;flex-direction:column;gap:.15em;min-width:0}
.sac-ht b{font-size:1.25em;letter-spacing:.04em;text-transform:uppercase;color:#ffe2b0;text-shadow:0 0 12px rgba(255,140,60,.55)}
.sac-ht span{font-size:.84em;color:rgba(255,235,210,.7)}
.sac-score{position:relative;margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;line-height:1.1;white-space:nowrap}
.sac-num{font-size:2.3em;font-weight:850;color:#ffd38a;text-shadow:0 0 16px rgba(255,150,60,.6)}
.sac-num em{font-style:normal;font-size:.5em;margin-left:.25em;color:#fff;background:rgba(240,199,102,.25);padding:.05em .4em;border-radius:999px;vertical-align:middle}
.sac-score>span:not(.sac-num){font-size:.8em;color:rgba(255,235,210,.65)}
.sac-score .sac-next{margin-top:.15em;color:#f0c766;font-weight:650}
/* rail + medallions */
.sac-ladder{position:relative;height:8.2em;margin:0 .2em}
.sac-rail{position:absolute;left:0;right:0;top:1.55em;height:.42em;border-radius:999px;background:rgba(255,255,255,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.6)}
.sac-rail .fill{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:linear-gradient(90deg,#7a1d12,#e8794b 55%,#ffd38a);
  box-shadow:0 0 12px rgba(255,140,60,.7)}
.sac-rail .add{position:absolute;top:0;bottom:0;background:repeating-linear-gradient(45deg,rgba(255,211,138,.9) 0 5px,rgba(255,211,138,.35) 5px 10px)}
.sac-node{position:absolute;top:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:.3em;width:7.4em;
  padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}
.sac-med{position:relative;display:grid;place-items:center;width:3.5em;height:3.5em;z-index:1}
.sac-med::before{content:"";position:absolute;inset:.35em;transform:rotate(45deg);border-radius:.45em;
  background:linear-gradient(135deg,#2c2d33,#18191d);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.18),0 4px 10px rgba(0,0,0,.5)}
.sac-med b{position:relative;font-weight:850;font-size:1em;color:rgba(255,255,255,.55)}
.sac-med .ic{position:absolute;right:-.15em;top:-.15em;width:1.15em;height:1.15em;color:#ffd38a;filter:drop-shadow(0 0 4px rgba(255,180,80,.8))}
.sac-top{width:3em;height:2.75em;opacity:.55;filter:grayscale(.6);transition:opacity .2s,filter .2s,transform .2s}
.sac-lbl{font-size:.74em;font-weight:650;letter-spacing:.03em;color:var(--fs-dim);text-align:center;line-height:1.15;max-width:9em}
.sac-node.done .sac-med::before{background:linear-gradient(135deg,#ffd38a,#c98a2e);box-shadow:inset 0 0 0 1.5px #fff2cf,0 0 14px rgba(255,180,80,.55)}
.sac-node.done .sac-med b{color:#2a1605}
.sac-node.done .sac-top,.sac-node.due .sac-top,.sac-node.reach .sac-top,.sac-node.pick .sac-top{opacity:1;filter:none}
.sac-node.done .sac-lbl{color:#ffd38a}
.sac-node.reach .sac-med::before,.sac-node.due .sac-med::before{background:linear-gradient(135deg,#e8794b,#7a1d12);box-shadow:inset 0 0 0 1.5px #ffd38a,0 0 18px rgba(255,120,50,.8)}
.sac-node.reach .sac-med b,.sac-node.due .sac-med b{color:#fff}
.sac-node.reach .sac-lbl,.sac-node.due .sac-lbl{color:#f0c766}
.sac-node.next:not(.reach):not(.due) .sac-med::before{box-shadow:inset 0 0 0 1.5px rgba(255,211,138,.7),0 0 0 rgba(255,140,60,.6);animation:sacnext 2.2s ease-in-out infinite}
.sac-node.next .sac-med b{color:#ffd38a}
.sac-node.pick .sac-top{transform:translateY(-2px) scale(1.06);box-shadow:0 0 0 2px #ffd38a,0 0 14px rgba(255,180,80,.45)}
.sac-node.pick .sac-lbl{color:#fff}
.sac-node:hover .sac-top{opacity:1;filter:none}
.sac-node:focus-visible{outline:2px solid #ffd38a;outline-offset:2px;border-radius:8px}
/* picked milestone */
.sac-detail{border-radius:12px;padding:.55em .7em .65em;background:rgba(0,0,0,.28);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.sac-detail.reach,.sac-detail.due{box-shadow:inset 0 0 0 1px rgba(240,199,102,.75),0 0 18px rgba(240,140,60,.18)}
.sac-detail.done{box-shadow:inset 0 0 0 1px rgba(143,209,158,.4)}
.sac-dh{display:flex;align-items:baseline;gap:.6em;margin-bottom:.45em}
.sac-dh b{font-size:1.02em;color:#ffe2b0}.sac-dh>span:not(.sac-st){font-size:.82em;color:var(--fs-dim)}
.sac-st{margin-left:auto;font-size:.78em;padding:.15em .65em;border-radius:999px;background:rgba(255,255,255,.07);color:var(--fs-dim)}
.sac-detail.done .sac-st{background:rgba(143,209,158,.15);color:#8fd19e}
.sac-detail.reach .sac-st,.sac-detail.due .sac-st{background:rgba(240,199,102,.18);color:#f0c766;font-weight:650}
.sac-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(12.5em,1fr));gap:.35em}
.sac-chip{display:flex;align-items:center;gap:.5em;padding:.18em .5em .18em .18em;border-radius:9px;background:rgba(255,255,255,.045);min-width:0}
.sac-chip .fs-cell{width:2.5em;height:2.3em;flex:0 0 auto}
.sac-cn{font-size:.84em;line-height:1.2;min-width:0}.sac-cn b{color:#ffd38a;font-weight:800}
.sac-listhead{display:flex;align-items:baseline;gap:.7em}.sac-listhead b{font-size:.98em}
.sac-empty{display:flex;flex-direction:column;align-items:center;gap:.35em;padding:2em 1em;text-align:center;color:var(--fs-dim)}
.sac-empty .ic{width:2.2em;height:2.2em;color:#e8794b;opacity:.75}.sac-empty b{color:#fff;font-size:1.05em}
.sac-claim{margin-left:.6em;padding:.3em .95em;font-weight:750;color:#2a1605!important;border:0;
  background:linear-gradient(180deg,#ffe2a6,#e3a53c)!important;box-shadow:0 0 0 1px #fff2cf inset,0 0 16px rgba(255,170,70,.55);animation:sacclaim 1.8s ease-in-out infinite}
.sac-claim .ic{width:1.05em;height:1.05em;margin-right:.35em;vertical-align:-.15em}
.sac-claim:disabled{animation:none;opacity:.7}
.sac-score .sac-next.ready{color:#fff;background:linear-gradient(90deg,#e8794b,#c9502c);padding:.1em .6em;border-radius:999px;box-shadow:0 0 12px rgba(232,121,75,.6)}
.sac-node.due .sac-med::before{animation:sacnext 1.6s ease-in-out infinite}
@keyframes sacclaim{0%,100%{box-shadow:0 0 0 1px #fff2cf inset,0 0 8px rgba(255,170,70,.35)}50%{box-shadow:0 0 0 1px #fff2cf inset,0 0 20px rgba(255,170,70,.8)}}
@keyframes sacpulse{0%,100%{opacity:.75}50%{opacity:1}}
@keyframes sacnext{0%,100%{box-shadow:inset 0 0 0 1.5px rgba(255,211,138,.7),0 0 0 rgba(255,140,60,.0)}50%{box-shadow:inset 0 0 0 1.5px rgba(255,211,138,.95),0 0 16px rgba(255,140,60,.65)}}
@media (prefers-reduced-motion:reduce){.sac-hero::before,.sac-node .sac-med::before,.sac-claim,.sac-art{animation:none!important}#game .fs-altar{transition:none}}
@media (max-width:820px){.sac-lbl{display:none}.sac-ladder{height:6.4em}.sac-score .sac-next{display:none}}
/* Kunlun Exchange store (owner 2026-11-14: Liquid Luck / Heaven's Favour, bought with Kunlun Jade) */
.fs-win.kx .kx-body{align-items:stretch;text-align:left;gap:.8em;padding:1em 1.2em 1.2em}
.kx-head{position:relative;display:flex;align-items:center;gap:.9em;padding:.6em 1em;border-radius:14px;overflow:hidden;
  background:linear-gradient(100deg,rgba(60,170,230,.22),rgba(20,40,60,.35) 60%,rgba(255,255,255,.03));box-shadow:inset 0 0 0 1px rgba(140,210,255,.18)}
.kx-crystal{width:4.4em;height:4.4em;margin:-.5em 0;object-fit:contain;filter:drop-shadow(0 0 14px rgba(80,190,255,.6));animation:kxfloat 4s ease-in-out infinite}
.kx-ht{display:flex;flex-direction:column;gap:.15em;min-width:0}
.kx-ht b{font-size:1.2em;letter-spacing:.05em;text-transform:uppercase;color:#d8f2ff;text-shadow:0 0 12px rgba(90,200,255,.45)}
.kx-ht span{font-size:.84em;color:rgba(230,245,255,.72)}
.kx-wallet{margin-left:auto;display:flex;align-items:center;gap:.4em;white-space:nowrap;padding:.3em .7em .3em .35em;border-radius:999px;background:rgba(0,0,0,.35)}
.kx-wallet .fs-cell{width:2em;height:1.85em}
.kx-wallet b{font-size:1.35em;font-weight:850;color:#bfeaff}.kx-wallet span:last-child{font-size:.78em;color:rgba(230,245,255,.65)}
.kx-offers{display:flex;flex-direction:column;gap:.6em}
.kx-offer{display:flex;align-items:center;gap:.9em;padding:.75em .9em;border-radius:14px;background:rgba(255,255,255,.045);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.kx-offer.luck{background:linear-gradient(100deg,rgba(150,70,220,.2),rgba(255,255,255,.03) 55%);box-shadow:inset 0 0 0 1px rgba(200,140,255,.25)}
.kx-offer.favour{background:linear-gradient(100deg,rgba(230,90,40,.24),rgba(255,255,255,.03) 55%);box-shadow:inset 0 0 0 1px rgba(255,170,90,.3)}
.kx-icon{width:4.2em;height:3.85em;flex:0 0 auto}
.kx-info{display:flex;flex-direction:column;gap:.2em;min-width:0;flex:1}
.kx-info b{font-size:1.1em;color:#fff}
.kx-tag{align-self:flex-start;font-size:.74em;font-weight:700;letter-spacing:.04em;padding:.12em .55em;border-radius:999px;background:rgba(240,199,102,.18);color:#f0c766}
.kx-info p{margin:0;font-size:.86em;line-height:1.4;color:rgba(255,255,255,.72)}
.kx-act{display:flex;flex-direction:column;align-items:flex-end;gap:.35em;flex:0 0 auto}
.kx-price{display:flex;align-items:center;gap:.3em;font-size:1.15em;font-weight:800;color:#bfeaff}
.kx-price .fs-cell{width:1.8em;height:1.65em}
.kx-need{font-size:.74em;color:var(--fs-dim)}
.kx-foot{margin:0;text-align:center}
@media (max-width:560px){.kx-offer{flex-wrap:wrap}.kx-act{flex-direction:row;align-items:center;width:100%;justify-content:flex-end}.kx-wallet span:last-child{display:none}}
@media (prefers-reduced-motion:reduce){.kx-crystal{animation:none}}
