/* Aura Farm, 28 Oct progression update: shards and volume, stars and shinies, bulk summons, automation switches,
   the Ascend tab and shard shop, the Journal (quests, index, stats), and the Inferno and Zenith traits. */

/* shards and volume in the header */
.shard-ic { display: inline-grid; place-items: center; color: #c9a8ff; filter: drop-shadow(0 0 6px rgba(160,120,255,.7)); }
.shard-ic svg { width: 16px; height: 16px; }
.shards { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: rgba(160,120,255,.1); box-shadow: inset 0 0 0 1px rgba(160,120,255,.3); }
.shards b { font: 900 italic 15px/1 var(--display); color: #e4d6ff; font-variant-numeric: tabular-nums; }
.shards.big { padding: 8px 14px; }
.shards.big b { font-size: 20px; }
.shards.big .shard-ic svg { width: 20px; height: 20px; }
.vol { display: flex; align-items: center; gap: 8px; padding-right: 6px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 96px; height: 6px; border-radius: 9px; cursor: pointer;
  background: linear-gradient(90deg, var(--red), var(--orange)) 0 0 / var(--v, 70%) 100% no-repeat, var(--fill3); box-shadow: inset 0 0 0 1px var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 0 #000, 0 0 0 3px rgba(244,49,32,.35); transition: transform .25s cubic-bezier(.3,1.7,.5,1); }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.25); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
input[type="range"].off { filter: grayscale(1) brightness(.6); }
.set-vol { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text2); font-size: 13px; }
.set-vol input { width: 220px; }
.btn.row { flex-direction: row; gap: 6px; }
.btn.row .shard-ic { color: #3a1a6a; filter: none; }
.floater.violet { color: #e4d6ff; -webkit-text-stroke-color: #1c0b3a; font-size: 24px; }

/* stars and shiny on cards */
.ucard-stars { position: absolute; left: 4cqw; top: 15cqw; z-index: 3; display: flex; gap: .4cqw; }
.ucard-stars i, .stars-big i { display: grid; color: #3a3a44; }
.ucard-stars svg { width: 6cqw; height: 6cqw; filter: drop-shadow(0 .5cqw 0 #000); }
.ucard-stars i.on, .stars-big i.on { color: #ffd23a; }
.foil { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; border-radius: inherit; opacity: .5; mix-blend-mode: color-dodge; }
.foil::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 220%;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 6%, rgba(255,255,255,.4) 9%, rgba(200,240,255,.38) 13%, rgba(255,210,240,.36) 17%,
    rgba(255,244,210,.34) 21%, rgba(225,230,255,.36) 25%, rgba(255,255,255,0) 28% 34%);
  animation: foil 4s linear infinite; }
@keyframes foil { to { transform: translateX(-27%); } }
.shtag { position: absolute; left: 50%; top: 4cqw; z-index: 3; transform: translateX(-50%); padding: 1.6cqw 3cqw; border-radius: 99px;
  font: 900 italic 4cqw/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #10131a;
  background: linear-gradient(90deg, var(--pearl)); box-shadow: 0 .8cqw 0 rgba(0,0,0,.6), 0 0 4cqw rgba(255,255,255,.5); }
/* (30 Oct, "make shiny its own color so it doesnt get confused for mythic"): pearl */
:root { --pearl: #ffffff, #d6f6ff, #ffd8f4, #fff4d0, #e4e8ff, #ffffff; }
.banner.bn-low { top: 72%; }
.ucard.shiny .ucard-frame { box-shadow: 0 0 0 1px #000, 0 0 0 .8cqw rgba(255,255,255,.5), 0 14px 30px -14px rgba(0,0,0,.9); }
.ucard.shiny .chip { top: 13cqw; }

/* unit view: stars */
.um-star { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,210,58,.08), var(--fill2)); box-shadow: inset 0 0 0 1px rgba(255,210,58,.22); }
.stars-big { display: flex; gap: 2px; }
.stars-big svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 0 #000); }
.um-star-t { font-size: 13px; color: var(--text2); }
.um-star-t small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.um-stats { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.um-stats .shinyst dd { color: transparent; background: linear-gradient(90deg, var(--rainbow)); -webkit-background-clip: text; background-clip: text; }

/* summon: bulk and options; area: automation switches */
.bulkrow .btn { min-width: 120px; flex-direction: row; gap: 8px; }
.sum-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.autos { display: flex; flex-wrap: wrap; gap: 22px; margin: -6px 0 16px; padding: 10px 16px; border-radius: 14px; width: fit-content;
  background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.reveal.bulk .rv-bulk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: min(900px, 94vw); }
.orb.one { width: 170px; height: 170px; }
.bulk-sum { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bc { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 99px; font: 800 13px/1 var(--display);
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line2); }
.bc b { font-weight: 900; color: #fff; }
.bc.shinyc { color: #10131a; background: linear-gradient(90deg, var(--pearl)); }
.bc.shinyc b { color: #10131a; }
.bc.newc { color: #160300; background: linear-gradient(180deg, #fff09a, #ffc21e); }
.bc.newc b { color: #160300; }
.bc.relc { color: var(--muted); }
.bulk-grid { display: grid; grid-template-columns: repeat(5, 150px); gap: 16px; justify-content: center; }
.rkshiny { --bc: #fff; }
.rkshiny .bn-t span { color: transparent; background: linear-gradient(90deg, var(--pearl)); -webkit-background-clip: text; background-clip: text; }
.rkshiny .bn-band { border-image: linear-gradient(90deg, var(--pearl)) 1; }

/* Ascend */
.asc-hero { position: relative; display: grid; grid-template-columns: 1fr 360px; gap: 30px; padding: 28px; border-radius: 22px; overflow: hidden; margin-bottom: 26px;
  background: radial-gradient(600px 300px at 85% 30%, rgba(160,120,255,.22), transparent 70%), linear-gradient(180deg, var(--fill), var(--bg2));
  box-shadow: inset 0 0 0 1px rgba(160,120,255,.25); }
.asc-hero h1 { font-size: 40px; font-style: italic; }
.asc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.asc-cols ul { margin: 0; padding-left: 18px; color: var(--text2); display: flex; flex-direction: column; gap: 5px; }
.asc-r { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.asc-k { font: 800 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.asc-n { display: flex; align-items: center; gap: 12px; }
.asc-n .shard-ic svg { width: 40px; height: 40px; }
.asc-n b { font: 900 italic 60px/1 var(--display); color: #e4d6ff; text-shadow: 0 0 30px rgba(160,120,255,.6); font-variant-numeric: tabular-nums; }
.asc-meter { width: 100%; height: 8px; border-radius: 9px; background: var(--fill3); overflow: hidden; }
.asc-meter i { display: block; height: 100%; background: linear-gradient(90deg, #7fe3ff, #c9a8ff, #ffd0f0); }
.asc-r .btn { min-width: 240px; }
.shop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.shop-head h2 { font-size: 22px; font-weight: 900; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.upg { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s cubic-bezier(.3,1.6,.5,1), box-shadow .2s; }
.upg:hover { transform: translateY(-3px); }
.upg.can { box-shadow: inset 0 0 0 1.5px rgba(201,168,255,.55), 0 10px 30px -14px rgba(160,120,255,.7); }
.upg.unlock { background: linear-gradient(160deg, rgba(127,227,255,.07), var(--fill) 50%); }
.upg.maxed { opacity: .75; }
.upg-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.upg-h b { font: 800 15px/1.2 var(--display); }
.upg-h span { font: 800 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #c9a8ff; }
.upg p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.upg em { font: normal 700 12px/1 var(--display); color: #7dffa8; }
.upg-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.upg-f .btn { margin-left: auto; }
.maxtag { margin-left: auto; font: 800 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Journal */
.journal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.seg .cnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 99px;
  font: normal 900 10px/1 var(--display); color: #160300; background: var(--gold); }
.qsec { margin-top: 18px; }
.qlist { display: flex; flex-direction: column; gap: 8px; }
.quest { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 14px;
  background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.quest.ready { box-shadow: inset 0 0 0 1.5px rgba(255,210,58,.6), 0 0 24px -8px rgba(255,210,58,.6); background: linear-gradient(90deg, rgba(255,210,58,.08), var(--fill) 60%); }
.quest.claimed { opacity: .55; }
.q-main { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; }
.q-main b { font: 700 14px/1.2 var(--display); }
.q-bar { grid-column: 1 / -1; grid-row: 2; height: 6px; border-radius: 9px; background: var(--fill3); overflow: hidden; }
.q-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--red), var(--orange)); }
.quest.ready .q-bar i, .quest.claimed .q-bar i { background: linear-gradient(90deg, #ffd23a, #fff3a8); }
.q-prog { grid-column: 2; grid-row: 1; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-rew { display: flex; align-items: center; gap: 6px; font: 900 italic 16px/1 var(--display); color: #e4d6ff; min-width: 54px; }
.q-done { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--good); color: #032010; }
.q-done svg { stroke-width: 3; }
.quest .btn { min-width: 84px; }
.graph { margin-bottom: 18px; }
.g-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.g-head h3 { margin: 0; }
.g-head b { font: 800 italic 15px/1 var(--display); color: #ffb08a; }
#incG { display: block; width: 100%; height: 220px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.stile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.stile span { font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stile b { font: 800 17px/1.2 var(--display); font-variant-numeric: tabular-nums; }

/* Inferno (x50) and Zenith (x3,000): the two in-between traits */
.tt3.x-inferno { --tc: #ff4a1a; }
.tt5.x-zenith { --tc: #fff2c0; }
.x-inferno .tdot { background: #ff4a1a; box-shadow: 0 0 8px #ff4a1a; }
.x-zenith .tdot { background: linear-gradient(90deg, #fff, #9feaff, #ffe48a); box-shadow: 0 0 8px #fff2c0; }
.chip.x-inferno { color: #fff; background: linear-gradient(180deg, #ffb07a, #ff3d1a); box-shadow: 0 calc(.8 * var(--cu, 1cqw)) 0 rgba(0,0,0,.6), 0 0 calc(5 * var(--cu, 1cqw)) rgba(255,70,20,.8); }
.chip.x-zenith { color: #10131a; background: linear-gradient(90deg, #ffffff, #9feaff, #ffe48a, #ffffff); box-shadow: 0 0 calc(6 * var(--cu, 1cqw)) rgba(255,240,180,.85); }
.ucard.x-inferno::before { content: ""; position: absolute; inset: 0; border-radius: 7.5cqw; pointer-events: none;
  box-shadow: 0 0 6cqw rgba(255,80,20,.85), 0 0 12cqw rgba(255,160,40,.4); animation: pulseo 1.2s ease-in-out infinite; }
.ucard.x-zenith::before { box-shadow: 0 0 9cqw rgba(255,246,216,.95), 0 0 18cqw rgba(159,234,255,.55); animation-duration: 1.6s; }
.sigil.x-inferno { background: radial-gradient(circle at 50% 35%, #5a1a08, #1a0804 75%); box-shadow: inset 0 0 0 2px #ff4a1a, 0 0 80px -6px #ff4a1a, 0 0 140px -20px #ffb02e; }
.sigil.x-inferno .sg-glyph { color: #fff; background: linear-gradient(135deg, #ffb07a, #ff3d1a); }
.sigil.x-zenith { background: radial-gradient(circle at 50% 35%, #3a3826, #0c0c14 75%); box-shadow: inset 0 0 0 2px #fff6d8, 0 0 100px -6px #ffe48a, 0 0 170px -20px #9feaff; }
.sigil.x-zenith .sg-glyph { background: linear-gradient(135deg, #ffffff, #9feaff, #ffe48a); }
.hchip.x-inferno { color: #fff; background: linear-gradient(135deg, #ffb07a, #ff3d1a); }
.hchip.x-zenith { background: linear-gradient(135deg, #ffffff, #9feaff, #ffe48a); }
.tbin { --bc: #ff5a1a; }
.tbin .bn-t span { color: transparent; background: linear-gradient(180deg, #ffe08a, #ff5a1a 60%, #c81a00); -webkit-background-clip: text; background-clip: text; }
.tb5.x-zenith { --bc: #fff6d8; }
/* the clip has to be restated after the background shorthand, or the gradient fills each letter's box */
.tb5.x-zenith .bn-t span { color: transparent; background: linear-gradient(90deg, #ffffff, #9feaff, #ffe48a, #ffffff);
  -webkit-background-clip: text; background-clip: text; }

@media (max-width: 1180px) { .asc-hero { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .bulk-grid { grid-template-columns: repeat(3, 100px); }
  .asc-cols { grid-template-columns: 1fr; }
  .vol input { display: none; }
  .quest { grid-template-columns: 1fr auto; }
  .q-rew { display: none; }
}

/* auto pills (29 Oct): automation still running on another tab */
#pills { position: fixed; left: 20px; bottom: 20px; z-index: 46; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pill { display: flex; align-items: center; gap: 12px; padding: 7px 14px 7px 7px; border-radius: 99px; background: rgba(14,15,18,.9);
  backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line2), 0 16px 40px -14px #000; }
.pill-go { display: flex; align-items: center; gap: 11px; text-align: left; }
.pill-roll { display: grid; place-items: center; width: 42px; height: 42px; flex: none; }
.orb.mini { width: 36px; height: 36px; }
.orb.mini i { inset: 14%; }
:where(.msig) { --tc: #2a2c33; }
.msig { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font: 900 italic 13px/1 var(--display); color: #10131a;
  background: var(--tc); box-shadow: 0 3px 0 rgba(0,0,0,.5), 0 0 14px var(--tc); transform: rotate(-6deg); }
.msig.tt-1 { color: var(--muted); box-shadow: 0 3px 0 rgba(0,0,0,.5); }
.msig.tt4 { color: #fff; background: linear-gradient(135deg, #ff3b6b, #8a2be2); }
.msig.tt5 { background: linear-gradient(135deg, #7fe3ff, #ffe48a, #c9a8ff); }
.msig.tt6 { background: conic-gradient(var(--rainbow)); }
.msig.x-inferno { color: #fff; background: linear-gradient(135deg, #ffb07a, #ff3d1a); }
.msig.x-zenith { background: linear-gradient(135deg, #ffffff, #9feaff, #ffe48a); }
.pill-txt { display: flex; flex-direction: column; gap: 4px; }
.pill-txt b { font: 800 13px/1 var(--display); }
.pill-txt span { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill-last { display: flex; gap: 6px; }
.pill-last .chip { position: static; font-size: 12px; padding: 5px 9px; gap: 5px; max-width: none; box-shadow: none; }
.pl { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; font: 800 12px/1 var(--display); white-space: nowrap;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); }
.pl.sh { color: #10131a; background: linear-gradient(90deg, var(--rainbow)); }
/* auto summon reveals start below the tabs, so you can still switch away */
.reveal.auto { top: 124px; }
.reveal.auto .rv-dim { border-radius: 22px 22px 0 0; }
/* Journal: claim all */
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { #pills { left: 12px; right: 12px; bottom: 104px; } .pill-last { display: none; } }
/* the hidden attribute must win over the display rules above (it showed an empty automation bar, and would have
   shown the bulk row and Auto Equip before they were bought) */
[hidden] { display: none !important; }

/* auto reroll hit its target on another tab: the Lab's reveal, full screen (29 Oct) */
.reveal.tgt { z-index: 46; }
.tgt-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 40px; }
.tgt-stage .ucard.lg { width: 280px; }
.tgt-stage .sigil { width: 380px; }
@media (max-width: 760px) { .tgt-stage { flex-direction: column; gap: 16px; } .tgt-stage .ucard.lg { width: 190px; } .tgt-stage .sigil { width: min(90vw, 340px); } }

/* ================= 29 Oct: rarities above Divine ================= */
.r-transcendent { --rc: #7dffcf; } .r-primordial { --rc: #ff6a1a; } .r-eternal { --rc: #ffffff; }
.r-transcendent .rdot { background: conic-gradient(#7dffcf, #4fb8ff, #a07bff, #ff7ad9, #7dffcf); box-shadow: 0 0 10px #7dffcf; }
.r-primordial .rdot { background: radial-gradient(#ffd27a, #ff6a1a 55%, #3a0a00); box-shadow: 0 0 10px #ff6a1a; }
.r-eternal .rdot { background: conic-gradient(#fff, #ff3b4e, #ffe93a, #4dff7a, #2ee6ff, #b84dff, #fff); box-shadow: 0 0 0 1px #000, 0 0 12px #fff; }
.rtag.r-transcendent { color: #04121a; background: linear-gradient(90deg, #7dffcf, #4fb8ff, #a07bff); }
.rtag.r-primordial { color: #fff; background: linear-gradient(90deg, #ffb02e, #ff2a00); }
.rtag.r-eternal { color: #fff; background: #000; box-shadow: 0 0 0 1px #fff, -2px 0 0 rgba(255,59,200,.8), 2px 0 0 rgba(46,230,255,.8); }

/* Transcendent: a turning aurora */
.r-transcendent .ucard-frame { background: #001018; box-shadow: 0 0 0 1px #000, 0 0 8cqw rgba(125,255,207,.45); }
.r-transcendent .ucard-frame::before { content: ""; background: conic-gradient(#7dffcf, #4fb8ff, #a07bff, #ff7ad9, #7dffcf); animation-duration: 5s; }
.r-transcendent .ucard-glow { background: conic-gradient(#7dffcf, #4fb8ff, #a07bff, #ff7ad9, #7dffcf); filter: blur(5cqw); opacity: .6; animation: pulseo 2.6s ease-in-out infinite; }
.r-transcendent .ucard-in { background: radial-gradient(120% 75% at 50% 30%, #0f4a5a, #0a1c34 45%, #04060e); }
.r-transcendent .ucard-in::before { background: radial-gradient(closest-side, rgba(125,255,207,.55), transparent); }
.r-transcendent .ucard-in::after { content: ""; position: absolute; left: -30%; right: -30%; top: -5%; height: 65%; pointer-events: none; filter: blur(8px);
  background: repeating-linear-gradient(100deg, transparent 0 10%, rgba(125,255,207,.28) 16%, rgba(160,123,255,.22) 22%, transparent 28%);
  animation: aurora 6s ease-in-out infinite alternate; }
@keyframes aurora { from { transform: translateX(-8%) skewX(6deg); } to { transform: translateX(8%) skewX(-8deg); } }
.r-transcendent .ucard-inc span { color: #c9fff0; --ol: #00222a; }

/* Primordial: obsidian with lava veins */
.r-primordial .ucard-frame { background: #120400; box-shadow: 0 0 0 1px #000, 0 0 9cqw rgba(255,90,20,.6); }
.r-primordial .ucard-frame::before { content: ""; background: conic-gradient(#ff2a00, #ffb02e, #1a0500 22%, #1a0500 46%, #ff6a1a 58%, #1a0500 72%, #ff2a00); animation-duration: 6s; }
.r-primordial .ucard-glow { box-shadow: 0 0 9cqw rgba(255,80,10,.75); animation: pulseo 1.8s ease-in-out infinite; }
.r-primordial .ucard-in { background: radial-gradient(120% 75% at 50% 72%, #7a1c00, #2a0800 45%, #070100); }
.r-primordial .ucard-in::before { background: radial-gradient(closest-side, rgba(255,120,30,.6), transparent); }
.r-primordial .ucard-in::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 18%, rgba(255,90,20,.3) 19%, transparent 21%), repeating-linear-gradient(35deg, transparent 0 23%, rgba(255,170,40,.2) 24%, transparent 25.5%);
  animation: pulseo 2.4s ease-in-out infinite; }
.r-primordial .ucard-inc span { color: #ffb070; --ol: #1a0400; }

/* Eternal: black and every colour, starlight turning behind the card */
.r-eternal .ucard-frame { background: #000; box-shadow: 0 0 0 1px #fff, 0 0 10cqw rgba(255,255,255,.75); }
.r-eternal .ucard-frame::before { content: ""; background: conic-gradient(#fff, #ff3b4e, #ffe93a, #4dff7a, #2ee6ff, #b84dff, #fff, #000, #fff); animation-duration: 2.4s; }
.r-eternal .ucard-glow { inset: auto; left: 50%; top: 50%; width: 175%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,.55) 0 4deg, transparent 4deg 12deg);
  -webkit-mask: radial-gradient(closest-side, #000 35%, transparent); mask: radial-gradient(closest-side, #000 35%, transparent); animation: rot 12s linear infinite; }
.r-eternal .ucard-in { background: radial-gradient(120% 75% at 50% 30%, #ffffff 0%, #d8e0ff 10%, #2a1a4a 42%, #000 100%); }
.r-eternal .ucard-in::before { background: radial-gradient(closest-side, rgba(255,255,255,.85), transparent); }
.r-eternal .ucard-in::after { content: ""; position: absolute; inset: 0; pointer-events: none; animation: pulseo 1.6s ease-in-out infinite;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 82% 14%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 64%, #ffe93a, transparent),
    radial-gradient(1px 1px at 24% 70%, #2ee6ff, transparent), radial-gradient(1.5px 1.5px at 48% 8%, #ff3bc8, transparent), radial-gradient(1px 1px at 90% 44%, #fff, transparent); }
.r-eternal .ucard-inc span { --ol: #000; color: transparent; background: linear-gradient(90deg, var(--rainbow)); -webkit-background-clip: text; background-clip: text; }
.r-eternal .ucard-name { text-shadow: -.5cqw 0 rgba(255,59,200,.7), .5cqw 0 rgba(46,230,255,.7), 0 .8cqw 0 #000; }

/* summon orbs for the new rungs of the ladder */
.orb.o-7 { background: conic-gradient(from var(--spin), #7dffcf, #4fb8ff, #a07bff, #ff7ad9, #7dffcf); animation: spin 1.4s linear infinite, trem .09s linear infinite;
  box-shadow: 0 0 90px rgba(125,255,207,.9), 0 0 180px rgba(160,123,255,.5); }
.orb.o-8 { background: radial-gradient(circle at 40% 35%, #fff6c8, #ffb02e 30%, #ff2a00 60%, #2a0600); animation: trem .07s linear infinite;
  box-shadow: 0 0 100px rgba(255,90,20,.95), 0 0 220px rgba(255,40,0,.5); }
.orb.o-9 { background: radial-gradient(circle, #000 42%, #fff 46%, transparent 52%), conic-gradient(from var(--spin), #ff3b4e, #ffe93a, #4dff7a, #2ee6ff, #b84dff, #ff3b4e);
  animation: spin .8s linear infinite, trem .05s linear infinite; box-shadow: 0 0 80px #fff, 0 0 200px rgba(255,255,255,.8), 0 0 320px rgba(255,59,200,.5); }
/* banners */
.rk7 { --bc: #7dffcf; } .rk8 { --bc: #ff6a1a; } .rk9 { --bc: #ffffff; }
.rk7 .bn-t span { color: transparent; background: linear-gradient(90deg, #7dffcf, #4fb8ff, #a07bff, #ff7ad9); -webkit-background-clip: text; background-clip: text; }
.rk8 .bn-t span { color: transparent; background: linear-gradient(180deg, #ffe08a, #ff6a1a 55%, #a01000); -webkit-background-clip: text; background-clip: text; }
.rk9 .bn-t span { color: transparent; background: linear-gradient(90deg, #ffffff, #ff3b4e, #ffe93a, #4dff7a, #2ee6ff, #b84dff, #ffffff); -webkit-background-clip: text; background-clip: text; }
.rk9 .bn-band, .rk7 .bn-band { border-image: linear-gradient(90deg, var(--rainbow)) 1; }
.rk9 .bn-t { font-size: 92px; }
/* the portal fades out before its canvas edge (29 Oct: the Void Gate glow showed a square edge) */
.portal { -webkit-mask: radial-gradient(closest-side, #000 72%, transparent); mask: radial-gradient(closest-side, #000 72%, transparent); }
.sum-auto { display: inline-flex; align-items: center; gap: 10px; }
/* QoL unlocks wait for ascensions (29 Oct) */
.upg.locked { opacity: .7; }
.upg.locked:hover { transform: none; }
.asc-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 800 11px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.asc-lock svg { width: 14px; height: 14px; }

/* ---- 29 Oct progression update: Nebula and Infinity, the Ascension path, slots 13-15, Aura Surges, the Rift ---- */
.tt4.x-nebula { --tc: #b89cff; }
.tt6.x-infinity { --tc: #ffffff; }
.x-nebula .tdot { background: linear-gradient(90deg, #8a5cff, #ff5ad8, #4fd8ff); box-shadow: 0 0 8px #b89cff; }
.x-infinity .tdot { background: radial-gradient(circle, #fff 32%, #000 36%, #000 54%, transparent 58%), conic-gradient(var(--rainbow)); box-shadow: 0 0 10px #fff; }
.chip.x-nebula { color: #fff; background: linear-gradient(90deg, #6a3cff, #ff5ad8, #4fd8ff); box-shadow: 0 calc(.8 * var(--cu, 1cqw)) 0 rgba(0,0,0,.6), 0 0 calc(5 * var(--cu, 1cqw)) rgba(150,100,255,.8); }
.chip.x-infinity { color: #000; background: linear-gradient(90deg, #ffffff, #fff2b8, #ffffff); box-shadow: 0 0 0 calc(.5 * var(--cu, 1cqw)) #000, 0 0 0 calc(1 * var(--cu, 1cqw)) rgba(255,255,255,.9), 0 0 calc(8 * var(--cu, 1cqw)) rgba(255,255,255,.9); }
.ucard.x-nebula::before { box-shadow: 0 0 7cqw rgba(138,92,255,.95), 0 0 14cqw rgba(255,90,216,.5); animation-duration: 1.4s; }
.ucard.x-infinity::before { content: ""; position: absolute; inset: 0; border-radius: 7.5cqw; pointer-events: none;
  box-shadow: 0 0 0 .8cqw rgba(255,255,255,.9), 0 0 10cqw rgba(255,255,255,1), 0 0 22cqw rgba(255,242,184,.6); animation: pulseo 1s ease-in-out infinite; }
.sigil.x-nebula { background: radial-gradient(circle at 30% 30%, rgba(255,90,216,.35), transparent 50%), radial-gradient(circle at 70% 65%, rgba(79,216,255,.3), transparent 50%), radial-gradient(circle at 50% 40%, #2a1650, #0a0618 75%);
  box-shadow: inset 0 0 0 2px #b89cff, 0 0 90px -6px #8a5cff, 0 0 160px -20px #ff5ad8; }
.sigil.x-nebula .sg-glyph { color: #fff; background: linear-gradient(135deg, #6a3cff, #ff5ad8 55%, #4fd8ff); }
.sigil.x-infinity { background: radial-gradient(circle at 50% 40%, #1a1a1a, #000 70%); box-shadow: inset 0 0 0 2px #fff, inset 0 0 40px rgba(255,255,255,.25); }
.sigil.x-infinity .sg-glyph { color: #000; background: #fff; box-shadow: 0 0 0 4px #000, 0 0 0 7px #fff, 0 0 40px 10px rgba(255,255,255,.7); font-style: normal; font-size: 52px; }
.sigil.x-infinity .sg-name { color: #fff; background: none; -webkit-background-clip: border-box; background-clip: border-box; animation: none; filter: drop-shadow(0 0 12px rgba(255,255,255,.9)); }
.hchip.x-nebula { color: #fff; background: linear-gradient(135deg, #6a3cff, #ff5ad8, #4fd8ff); }
.hchip.x-infinity { color: #000; background: #fff; box-shadow: 0 0 0 2px #000, 0 0 0 3px #fff, 0 0 12px #fff; }
.msig.x-nebula { color: #fff; background: linear-gradient(135deg, #6a3cff, #ff5ad8, #4fd8ff); }
.msig.x-infinity { color: #000; background: #fff; box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #fff, 0 0 16px #fff; font-style: normal; font-size: 18px; }
.tb4.x-nebula { --bc: #b06cff; }
/* the clip has to be restated after the background shorthand, or the gradient fills each letter's box */
.tb4.x-nebula .bn-t span { color: transparent; background: linear-gradient(90deg, #8a5cff, #ff5ad8, #4fd8ff, #8a5cff) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; animation: letter .55s cubic-bezier(.2,1.6,.4,1) both, slide 2.2s linear infinite; }
.tb4.x-nebula .bn-band { border-image: linear-gradient(90deg, #8a5cff, #ff5ad8, #4fd8ff) 1; }
.tb6.x-infinity { --bc: #ffffff; }
.tb6.x-infinity .bn-t span { color: transparent; background: linear-gradient(90deg, #ffffff, #fff2b8, #ffffff, var(--rainbow)) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; animation: letter .55s cubic-bezier(.2,1.6,.4,1) both, slide 2.4s linear infinite; }

/* Ascension path and bonus */
.asc-bonus { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: var(--text2);
  background: rgba(160,120,255,.08); box-shadow: inset 0 0 0 1px rgba(160,120,255,.22); }
.asc-bonus svg { width: 18px; height: 18px; color: #c9a8ff; flex: none; }
.asc-bonus b { font-family: var(--display); color: #7dffa8; }
.apath { margin-bottom: 26px; }
.apath-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.apath-h h2 { font-size: 22px; font-weight: 900; }
.apath-h .lede { margin: 0; }
.apath-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(128px, 1fr); overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.an-top { position: relative; display: flex; align-items: center; height: 36px; }
.an-n { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none;
  font: 900 italic 14px/1 var(--display); color: var(--muted); background: var(--fill2); box-shadow: inset 0 0 0 1.5px var(--line2); }
.an-line { position: absolute; left: 36px; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: var(--fill3); }
.anode:last-child .an-line { display: none; }
.anode ul { list-style: none; margin: 10px 0 0; padding: 0 12px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.anode.done .an-n { color: #10131a; background: linear-gradient(135deg, #c9a8ff, #7fe3ff); box-shadow: 0 0 16px rgba(160,120,255,.5); }
.anode.done .an-line { background: linear-gradient(90deg, #c9a8ff, #7fe3ff); }
.anode.done ul { color: var(--text2); }
.anode.next .an-n { color: #e4d6ff; box-shadow: inset 0 0 0 2px #c9a8ff, 0 0 0 5px rgba(160,120,255,.16); animation: breathe 1.6s ease-in-out infinite; }
.anode.next ul { color: var(--text); }

/* slots 13-15 wait for ascensions */
.slot.locked.asc { color: #c9a8ff; box-shadow: inset 0 0 0 1px rgba(160,120,255,.3); }
.slot.locked.asc small { max-width: 80%; font-size: 12px; color: var(--muted); }

/* Aura Surge: the orb you catch, and the timer in the header */
.surge { position: fixed; z-index: 48; width: 92px; height: 92px; margin: -46px 0 0 -46px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  display: grid; place-items: center; animation: surgeIn .5s cubic-bezier(.3,1.6,.5,1) both, surgeBob 2.4s ease-in-out .5s infinite; }
.surge::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: conic-gradient(#7dffcf, #ffd76a, #c9a8ff, #7dffcf);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%, #000 66%, transparent 68%); mask: radial-gradient(circle, transparent 58%, #000 60%, #000 66%, transparent 68%);
  animation: rot 2.4s linear infinite; }
.surge .sg-core { position: absolute; inset: 12px; border-radius: 50%; box-shadow: 0 0 40px 12px rgba(61,255,200,.45);
  background: radial-gradient(circle at 40% 35%, #ffffff, #b8ffe8 30%, #3dffc8 62%, rgba(61,255,200,.2) 74%); animation: pulseo 1.1s ease-in-out infinite; }
.surge span { position: relative; font: 900 italic 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #053326; }
.surge:focus-visible { outline: 2px solid #fff; outline-offset: 8px; }
.surge.leaving { animation: surgeOut .5s ease-in both; }
@keyframes surgeIn { from { transform: scale(0); opacity: 0; } }
@keyframes surgeBob { 50% { transform: translateY(-10px); } }
@keyframes surgeOut { to { transform: scale(.2); opacity: 0; } }
.surgechip { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: rgba(61,255,200,.12);
  box-shadow: inset 0 0 0 1px rgba(61,255,200,.45), 0 0 18px rgba(61,255,200,.3); }
.surgechip b { font: 900 italic 15px/1 var(--display); color: #7dffcf; }
.surgechip span { min-width: 26px; font: 700 12px/1 var(--display); color: var(--text2); font-variant-numeric: tabular-nums; }
.um-stats .surgest dd { color: #7dffcf; }

/* the Rift */
.rift-note { color: #7dffcf; }
.ucard.riftc .ucard-name small::after { content: " \00B7  Rift"; color: #3dffc8; }

/* ---- 29 Oct: trait icons, gate icons ---- */
.chip .ti { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-right: .1em; flex: none; }
.chip .ti svg { width: 100%; height: 100%; stroke-width: 2.4; }
.sigil .sg-glyph svg { width: 58%; height: 58%; stroke-width: 2.2; }
.sigil .sg-glyph { font-style: normal; }
.hchip { padding: 0 4px; }
.hchip svg { width: 16px; height: 16px; stroke-width: 2.4; }
.msig b { display: grid; place-items: center; }
.msig b svg { width: 22px; height: 22px; stroke-width: 2.4; transform: rotate(6deg); }
.tico { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; color: var(--tc); filter: drop-shadow(0 0 4px var(--tc)); }
.tico svg { width: 100%; height: 100%; stroke-width: 2.2; }
.x-infinity .tico, .tt6 .tico { color: #fff; }

/* gate icons: a badge in the gate's colours, its own little motion, grey and still while locked */
.gate-ic { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--g1) 85%, #fff), var(--g1) 45%, var(--g2) 110%);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 18px -2px var(--g1); grid-row: span 2; }
.gate-ic::before { content: ""; position: absolute; inset: -3px; border-radius: 15px; pointer-events: none; opacity: 0; }
.gate-ic svg { position: relative; width: 24px; height: 24px; stroke-width: 2.2; filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }
.gate.locked .gate-ic { background: var(--fill3); color: var(--dim); box-shadow: inset 0 0 0 1px var(--line2); }
.gate.locked .gate-ic svg { filter: none; }
.gate:not(.locked) .gate-ic[data-gi="ember"] svg { animation: gi-flick 1.1s ease-in-out infinite; transform-origin: 50% 90%; }
.gate:not(.locked) .gate-ic[data-gi="tide"] svg { animation: gi-bob 1.8s ease-in-out infinite; }
.gate:not(.locked) .gate-ic[data-gi="storm"] svg { animation: gi-zap 2.2s steps(1) infinite; }
.gate:not(.locked) .gate-ic[data-gi="void"] svg { animation: rot 6s linear infinite; }
.gate:not(.locked) .gate-ic[data-gi="genesis"]::before { opacity: .9; background: conic-gradient(from 0deg, transparent, rgba(255,242,184,.9), transparent 30%, transparent 50%, rgba(125,255,207,.8), transparent 80%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%); mask: radial-gradient(circle, transparent 60%, #000 62%); animation: rot 3s linear infinite; border-radius: 50%; inset: -6px; }
.gate:not(.locked) .gate-ic[data-gi="genesis"] svg { animation: gi-pulse 2s ease-in-out infinite; }
.gate:not(.locked) .gate-ic[data-gi="rift"] svg { animation: gi-glitch 2.6s steps(1) infinite; }
.gate:not(.locked) .gate-ic[data-gi="aurora"] svg { animation: gi-pulse 2.4s ease-in-out infinite; }
.gate:not(.locked) .gate-ic[data-gi="chrono"] svg { animation: rot 12s steps(12) infinite; }
.gate:not(.locked) .gate-ic[data-gi="origin"] svg { animation: gi-bob 2.2s ease-in-out infinite; }
.gate.on .gate-ic { animation: gi-glow 1.6s ease-in-out infinite; }
@keyframes gi-flick { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.94, 1.1); } 60% { transform: scale(1.05, .95); } }
@keyframes gi-bob { 50% { transform: translateY(-2px) rotate(-4deg); } }
@keyframes gi-zap { 0%, 8%, 14%, 100% { opacity: 1; } 6%, 12% { opacity: .25; } }
@keyframes gi-pulse { 50% { transform: scale(1.12) rotate(20deg); } }
@keyframes gi-glitch { 0%, 100% { transform: none; } 70% { transform: translate(2px, -1px); } 73% { transform: translate(-2px, 1px); } 76% { transform: none; } }
@keyframes gi-glow { 50% { box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 28px 2px var(--g1); } }
@media (prefers-reduced-motion: reduce) { .gate-ic svg, .gate-ic::before, .gate.on .gate-ic { animation: none !important; } }

/* ---- 29 Oct: the summon reveal opens with the gate's portal ---- */
.rv-portal { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rv-tier { position: absolute; left: 50%; top: calc(50% + 33vmin); transform: translate(-50%, 0); opacity: 0; pointer-events: none; white-space: nowrap;
  font: 900 italic clamp(28px, 5vmin, 56px)/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--rc, #fff);
  text-shadow: 0 4px 0 rgba(0,0,0,.6), 0 0 30px var(--rc, #fff); transition: opacity .25s; }
.rv-tier.on { opacity: 1; }
.rv-tier.r-common { --rc: var(--c-common); } .rv-tier.r-rare { --rc: var(--c-rare); } .rv-tier.r-epic { --rc: var(--c-epic); }
.rv-tier.r-legendary { --rc: var(--c-legendary); } .rv-tier.r-secret { --rc: #ffffff; } .rv-tier.r-divine { --rc: #fff2b8; }
.rv-tier.r-transcendent { --rc: #7dffcf; } .rv-tier.r-primordial { --rc: #ff6a1a; }
.rv-tier.r-absolute { color: #000; text-shadow: -3px 0 rgba(255,59,78,.85), 3px 0 rgba(46,230,255,.85), 0 0 0 #fff; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 14px #fff) drop-shadow(0 4px 0 rgba(0,0,0,.4)); }
.rv-tier.r-mythic, .rv-tier.r-eternal { color: transparent; background: linear-gradient(90deg, var(--rainbow)) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text;
  animation: slide 1.2s linear infinite; text-shadow: none; filter: drop-shadow(0 4px 0 rgba(0,0,0,.6)); }
.reveal .rv-grid, .reveal .rv-bulk { z-index: 1; }

/* ---- 29 Oct: game-icons.net icons (filled artwork, drawn in currentColor) ---- */
.gi { display: block; width: 100%; height: 100%; }
.chip .ti .gi { filter: drop-shadow(0 0 calc(.6 * var(--cu, 1cqw)) rgba(0,0,0,.35)); }
.sigil .sg-glyph .gi { width: 66%; height: 66%; }
.hchip .gi { width: 17px; height: 17px; }
.msig b .gi { width: 24px; height: 24px; transform: rotate(6deg); }
.tico .gi { width: 18px; height: 18px; }

/* gate emblems: a dark round badge lit from inside in the gate's colours, a bright rim, a sheen turning round the
   rim, and the gate's own motion on the icon (none of it while locked) */
.gate-ic { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; grid-row: span 2; overflow: visible;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--g1) 70%, #000) 0%, color-mix(in srgb, var(--g2) 35%, #07060a) 62%, #07060a 100%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--g1) 75%, #fff), inset 0 -6px 12px rgba(0,0,0,.55), 0 0 20px -3px var(--g1); }
.gate-ic::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none; opacity: .95;
  background: conic-gradient(from 0deg, transparent 0 62%, color-mix(in srgb, var(--g2) 60%, #fff) 72%, #fff 76%, transparent 86%);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 68%); mask: radial-gradient(circle, transparent 66%, #000 68%); animation: rot 3.2s linear infinite; }
.gate-ic::after { content: ""; position: absolute; inset: 4px 9px 50% 9px; border-radius: 50% 50% 40% 40%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0)); }
.gate-ic-in { position: relative; display: grid; place-items: center; width: 30px; height: 30px; color: color-mix(in srgb, var(--g2) 35%, #fff);
  filter: drop-shadow(0 0 5px var(--g1)) drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
.gate-ic svg { stroke: none; }
.gate.locked .gate-ic { background: var(--fill3); box-shadow: inset 0 0 0 1.5px var(--line2); }
.gate.locked .gate-ic::before, .gate.locked .gate-ic::after { display: none; }
.gate.locked .gate-ic-in { color: var(--dim); filter: none; }
.gate:not(.locked) .gate-ic[data-gi="ember"] .gate-ic-in { animation: gi-flick 1.1s ease-in-out infinite; transform-origin: 50% 85%; }
.gate:not(.locked) .gate-ic[data-gi="tide"] .gate-ic-in { animation: gi-bob 1.8s ease-in-out infinite; }
.gate:not(.locked) .gate-ic[data-gi="storm"] .gate-ic-in { animation: gi-zap 2.2s steps(1) infinite; }
.gate:not(.locked) .gate-ic[data-gi="void"] .gate-ic-in { animation: rot 5s linear infinite reverse; }
.gate:not(.locked) .gate-ic[data-gi="genesis"] .gate-ic-in { animation: gi-pulse 2.4s ease-in-out infinite; }
.gate:not(.locked) .gate-ic[data-gi="rift"] .gate-ic-in { animation: gi-glitch 2.6s steps(1) infinite; }
.gate .gate-ic svg, .gate .gate-ic-in { animation-play-state: running; }
.gate-ic svg { animation: none !important; }
.gate.on .gate-ic { animation: gi-glow 1.6s ease-in-out infinite; }
@keyframes gi-glow { 50% { box-shadow: inset 0 0 0 2px #fff, inset 0 -6px 12px rgba(0,0,0,.55), 0 0 30px 2px var(--g1); } }
/* the gate's icon by its name under the portal */
.portal-name { display: flex; align-items: center; justify-content: center; gap: 10px; }
.gn-ic { display: grid; place-items: center; width: 34px; height: 34px; color: color-mix(in srgb, var(--g2) 35%, #fff); filter: drop-shadow(0 0 8px var(--g1)); }
@media (prefers-reduced-motion: reduce) { .gate-ic::before, .gate-ic-in, .gate.on .gate-ic { animation: none !important; } }

/* ---- 29 Oct: the trait roll is a slot reel (reelRoll in ui.js) ---- */
.sigil.rolling .sg-in { opacity: 0; }
.sg-reel { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: inherit; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); }
.sg-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.sg-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.sg-item .sg-glyph, .sg-item .sg-name, .sg-item .sg-mult { flex: none; }
/* each item wears its own trait's colours (the plate's .sigil.ttN rules, per item) */
.sg-item.tt4 .sg-glyph { color: #fff; background: linear-gradient(135deg, #ff3b6b, #8a2be2); }
.sg-item.tt5 .sg-glyph { background: linear-gradient(135deg, #7fe3ff, #ffe48a, #c9a8ff); }
.sg-item.tt6 .sg-glyph { background: linear-gradient(90deg, var(--rainbow)); }
.sg-item.tt6 .sg-name { color: transparent; background: linear-gradient(90deg, var(--rainbow)); -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 3px 0 #000); }
.sg-item.x-inferno .sg-glyph { color: #fff; background: linear-gradient(135deg, #ffb07a, #ff3d1a); }
.sg-item.x-zenith .sg-glyph { background: linear-gradient(135deg, #ffffff, #9feaff, #ffe48a); }
.sg-item.x-nebula .sg-glyph { color: #fff; background: linear-gradient(135deg, #6a3cff, #ff5ad8 55%, #4fd8ff); }
.sg-item.x-infinity .sg-glyph { color: #000; background: #fff; box-shadow: 0 0 0 4px #000, 0 0 0 7px #fff, 0 0 30px 6px rgba(255,255,255,.7); }
.sg-item.x-infinity .sg-name { color: #fff; background: none; -webkit-background-clip: border-box; background-clip: border-box; filter: drop-shadow(0 0 12px rgba(255,255,255,.9)); }
/* the big one lands as a glowing question mark; the big reveal takes it from there */
.sg-item.myst { --tc: #fff; }
.sg-item.myst .sg-glyph { color: #10131a; background: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.5), 0 0 40px 6px rgba(255,255,255,.75); }
.sg-item.myst .sg-name { text-shadow: 0 3px 0 #000, 0 0 30px #fff; }

/* ---- 29 Oct: Twin Roll shows both rolls: the plate split in two, each half a reel, and it stays split at rest (twinview) ---- */
.sigil .sg-half { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1; transition: opacity .25s, filter .25s; }
.sigil .sg-half.h0 { left: 0; }
.sigil .sg-half.h1 { right: 0; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .14); }
.sigil.twinview .sg-in { opacity: 0; }
.sg-half .sg-item { gap: 6px; padding: 0 6px; }
.sg-half .sg-item .sg-glyph { width: 62px; height: 62px; border-radius: 18px; font-size: 26px; }
.sg-half .sg-item .sg-name { font-size: 19px; }
.sg-half .sg-item .sg-mult { font-size: 15px; }
.sg-half.lost { opacity: .35; filter: grayscale(.85); }
.sg-half.kept { filter: drop-shadow(0 0 16px rgba(255, 255, 255, .45)); }
.sg-keep { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); z-index: 3; padding: 3px 10px; border-radius: 999px;
  background: #2fbf6f; color: #04130a; font: 800 11px/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.sg-keep.dbl { color: #2a1600; background: linear-gradient(180deg, #fff09a, #ffc21e 55%, #ff9a1a); box-shadow: 0 0 14px rgba(255,200,60,.6); } /* both rolls the same trait */

/* ---- 29 Oct: Golden, the farm trait: polished gold with a slow shine ---- */
.tt3.x-golden { --tc: #ffd23a; }
.x-golden .tdot { background: linear-gradient(135deg, #fff2a8, #ffc21a 55%, #c8860a); box-shadow: 0 0 8px #ffd23a; }
.chip.x-golden { color: #3a2400; background: linear-gradient(100deg, #c8860a, #ffd23a 30%, #fff6c8 45%, #ffd23a 60%, #c8860a) 0 0 / 220% 100%; animation: slide 2.6s linear infinite;
  box-shadow: 0 calc(.8 * var(--cu, 1cqw)) 0 rgba(0,0,0,.6), 0 0 calc(5 * var(--cu, 1cqw)) rgba(255,200,40,.85); }
.ucard.x-golden::before { content: ""; position: absolute; inset: 0; border-radius: 7.5cqw; pointer-events: none;
  box-shadow: 0 0 6cqw rgba(255,200,40,.9), 0 0 12cqw rgba(255,240,170,.45); animation: pulseo 1.5s ease-in-out infinite; }
.sigil.x-golden { background: radial-gradient(circle at 50% 35%, #4a3608, #140e02 75%); box-shadow: inset 0 0 0 2px #ffd23a, 0 0 80px -6px #ffc21a, 0 0 140px -20px #fff2a8; }
.sigil.x-golden .sg-glyph, .sg-item.x-golden .sg-glyph, .hchip.x-golden, .msig.x-golden { color: #3a2400; background: linear-gradient(135deg, #fff2a8, #ffc21a 55%, #c8860a); }
.tb3.x-golden { --bc: #ffd23a; }
.tb3.x-golden .bn-t span { color: transparent; background: linear-gradient(90deg, #c8860a, #ffd23a, #fff6c8, #ffd23a, #c8860a) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; animation: letter .55s cubic-bezier(.2,1.6,.4,1) both, slide 2.2s linear infinite; }

/* ---- 29 Oct: everything a trait does: the hover card, and the compact lines on the plate, unit window and odds ---- */
.perktip { position: fixed; z-index: 120; pointer-events: none; min-width: 170px; padding: 10px 12px; border-radius: 12px;
  background: rgba(12,13,16,.96); box-shadow: inset 0 0 0 1px var(--line2), 0 0 0 1px color-mix(in srgb, var(--tc, #fff) 40%, transparent), 0 14px 34px -12px #000;
  display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.perktip b { font: 900 italic 14px/1 var(--display); color: var(--tc, #fff); }
.perktip div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.perktip em { font-style: normal; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.sg-mult .sg-perk { display: block; margin-top: 6px; font: 700 12px/1.2 var(--body, inherit); font-style: normal; color: var(--text2); text-shadow: none; letter-spacing: .02em; }
.um-perk { margin-left: 10px; font-size: 12px; color: var(--text2); }
.otab .tperk { display: block; margin-top: 3px; font: 600 11px/1.3 var(--body, inherit); color: var(--muted); }
/* (29 Oct, "trait odds messed up"): the per-stat perks ("ATK x1.4 · SPA x1.3 faster") are longer than the old one-word
   Defense line, and with nothing allowed to wrap they pushed the multiplier and odds out of the panel */
.otab td:first-child { white-space: normal; }

/* ================= 29 Oct: Absolute ("Inverted prismatic": the photo negative of every other card, colour taken away
   but for a thin prismatic edge) ================= */
.r-absolute { --rc: #ffffff; }
.r-absolute .rdot { background: #fff; box-shadow: 0 0 0 1.5px #000, -2px 0 0 1px rgba(255,59,78,.8), 2px 0 0 1px rgba(46,230,255,.8), 0 0 12px #fff; }
.rtag.r-absolute { color: #000; background: #fff; box-shadow: 0 0 0 1px #000, -2px 0 0 rgba(255,59,78,.85), 2px 0 0 rgba(46,230,255,.85); }
.r-absolute .ucard-frame { background: #fff; box-shadow: 0 0 0 1px #000, 0 0 10cqw rgba(255,255,255,.85); }
.r-absolute .ucard-frame::before { content: ""; animation-duration: 3.2s;
  background: conic-gradient(#000 0 8%, #fff 12%, #ff3b4e 15%, #ffe93a 17%, #4dff7a 19%, #2ee6ff 21%, #b84dff 23%, #fff 27%, #000 34% 58%, #fff 62%, #000 70% 100%); }
/* the glow: Eternal's starburst in negative, dark rays turning on a white bloom */
.r-absolute .ucard-glow { inset: auto; left: 50%; top: 50%; width: 175%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(rgba(0,0,0,.5) 0 3deg, rgba(255,255,255,.75) 3deg 12deg);
  -webkit-mask: radial-gradient(closest-side, #000 35%, transparent); mask: radial-gradient(closest-side, #000 35%, transparent); animation: rot 14s linear infinite reverse; }
.r-absolute .ucard-in { background: radial-gradient(120% 75% at 50% 30%, #000 0%, #16161a 12%, #9a9aa2 40%, #f4f4f6 68%, #fff 100%); }
.r-absolute .ucard-in::before { background: radial-gradient(closest-side, rgba(0,0,0,.7), transparent); }
/* a thin prismatic line sweeping down the card now and then */
.r-absolute .ucard-in::after { content: ""; position: absolute; left: 0; right: 0; top: -10%; height: 2.2%; pointer-events: none; opacity: .85;
  background: linear-gradient(90deg, transparent, #ff3b4e 15%, #ffe93a 30%, #4dff7a 45%, #2ee6ff 60%, #b84dff 75%, transparent);
  animation: abssweep 3.4s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes abssweep { 0%, 35% { transform: translateY(0); } 100% { transform: translateY(5200%); } }
.r-absolute .ucard-name { color: #050505; text-shadow: -.5cqw 0 rgba(255,59,78,.75), .5cqw 0 rgba(46,230,255,.75), 0 0 3cqw #fff, 0 0 1cqw #fff; }
.r-absolute .ucard-inc { background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.8) 40%); border-top-color: rgba(0,0,0,.18); }
.r-absolute .ucard-inc span { --ol: #fff; color: #000; filter: drop-shadow(-.8cqw 0 0 rgba(255,59,78,.85)) drop-shadow(.8cqw 0 0 rgba(46,230,255,.85))
  drop-shadow(.7cqw 0 0 #fff) drop-shadow(-.7cqw 0 0 #fff) drop-shadow(0 .7cqw 0 #fff) drop-shadow(0 -.7cqw 0 #fff); }
.orb.o-10 { background: radial-gradient(circle, #fff 40%, #000 44%, transparent 50%), conic-gradient(from var(--spin), #000, #fff, #ff3b4e, #ffe93a, #4dff7a, #2ee6ff, #b84dff, #fff, #000);
  animation: spin .7s linear infinite, trem .045s linear infinite; box-shadow: 0 0 0 3px #000, 0 0 90px #fff, 0 0 220px rgba(255,255,255,.85), -14px 0 120px rgba(255,59,78,.45), 14px 0 120px rgba(46,230,255,.45); }
.rk10 { --bc: #ffffff; }
.rk10 .bn-t span { color: #000; text-shadow: -4px 0 rgba(255,59,78,.85), 4px 0 rgba(46,230,255,.85), 0 0 24px #fff, 0 0 6px #fff; }
.rk10 .bn-band { border-image: linear-gradient(90deg, #000, #fff, #ff3b4e, #2ee6ff, #fff, #000) 1; }
.rk10 .bn-t { font-size: 96px; }

/* ================= 30 Oct: Rebirth and the star map ================= */
.stl-ic { display: inline-grid; place-items: center; color: #dff2ff; filter: drop-shadow(0 0 6px rgba(160,210,255,.8)); }
.stl-ic svg { width: 16px; height: 16px; }
.shards.stl { background: rgba(140,200,255,.1); box-shadow: inset 0 0 0 1px rgba(140,200,255,.35); }
.shards.stl b { color: #e6f4ff; }
.shards.stl.big .stl-ic svg { width: 22px; height: 22px; }
.reb-hero { position: relative; display: grid; grid-template-columns: 1fr 360px; gap: 30px; padding: 28px; border-radius: 22px; overflow: hidden; margin-bottom: 26px;
  background: radial-gradient(600px 300px at 85% 30%, rgba(140,200,255,.16), transparent 70%), radial-gradient(400px 200px at 10% 100%, rgba(255,220,140,.08), transparent 70%), linear-gradient(180deg, #10131c, var(--bg2));
  box-shadow: inset 0 0 0 1px rgba(140,200,255,.22); }
.reb-hero.can { box-shadow: inset 0 0 0 1px rgba(170,220,255,.55), 0 0 40px -10px rgba(140,200,255,.5); }
.reb-hero h2 { font-size: 34px; font-style: italic; margin: 0 0 8px; }
.reb-hero .lede b { color: #e6f4ff; }
.reb-r { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.reb-r .btn { min-width: 240px; }
.reb-n { display: flex; align-items: center; gap: 12px; }
.reb-n .stl-ic svg { width: 40px; height: 40px; }
.reb-n b { font: 900 italic 60px/1 var(--display); color: #e6f4ff; text-shadow: 0 0 30px rgba(140,200,255,.7); font-variant-numeric: tabular-nums; }
.reb-btn:not([disabled]) { color: #06101e; background: linear-gradient(180deg, #ffffff, #a8d8ff); box-shadow: 0 6px 0 #4a7aa8, 0 0 30px rgba(140,200,255,.5); }
.smap-btn { flex-direction: row; gap: 8px; color: #e6f4ff; box-shadow: inset 0 0 0 1px rgba(140,200,255,.4); }
.smap-btn em { font-style: normal; padding: 2px 7px; border-radius: 99px; background: rgba(140,200,255,.2); font: 800 12px/1.2 var(--display); color: #e6f4ff; }
.reb-bn .bn-t span { color: #fff; text-shadow: 0 0 24px #9fd8ff, 0 0 6px #fff; }
@media (max-width: 1180px) { .reb-hero { grid-template-columns: 1fr; } }
/* the star map */
.smap { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden;
  background: radial-gradient(1200px 700px at 50% 45%, #121a36, #070914 70%, #030408); color: var(--text); }
.smap-sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; animation: smsky 6s ease-in-out infinite alternate; }
@keyframes smsky { to { opacity: .7; } }
.smap-top { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 28px 0; }
.smap-top h2 { font: italic 32px/1 var(--display); margin: 0 auto 0 0; }
.smap-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 4px 16px; }
.smap-svg { width: min(100%, calc((100vh - 230px) * 1.4286)); height: auto; max-height: 100%; overflow: visible; }
.smap-svg .sl { stroke: rgba(255,255,255,.12); stroke-width: 2; }
.smap-svg .sl.half { stroke: var(--c); stroke-opacity: .45; stroke-dasharray: 5 7; }
.smap-svg .sl.on { stroke: var(--c); stroke-width: 3; filter: drop-shadow(0 0 5px var(--c)); }
.sn { cursor: pointer; }
.sn .sn-glow { fill: var(--c); opacity: 0; }
.sn .sn-ring { fill: #0b0f1e; stroke: rgba(255,255,255,.22); stroke-width: 2; }
.sn .sn-star { fill: rgba(255,255,255,.25); }
.sn .sn-cost { fill: rgba(255,255,255,.4); font: 13px var(--display); text-anchor: middle; }
.sn.open .sn-ring { stroke: var(--c); stroke-opacity: .8; }
.sn.open .sn-star { fill: var(--c); opacity: .7; }
.sn.open .sn-cost { fill: var(--c); }
.sn.afford .sn-ring { stroke-width: 3; animation: snpulse 1.4s ease-in-out infinite; }
.sn.own .sn-glow { opacity: .22; }
.sn.own .sn-ring { fill: var(--c); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 0 8px var(--c)); }
.sn.own .sn-star { fill: #fff; }
.sn.sel .sn-ring { stroke: #fff; stroke-width: 4; }
.sn:hover .sn-ring { stroke: #fff; }
@keyframes snpulse { 50% { stroke-opacity: .35; } }
.smap-info { position: relative; display: flex; justify-content: center; padding: 0 20px 10px; min-height: 64px; }
.smap-hint { margin: 0; color: var(--muted); font-size: 13px; align-self: center; }
.smap-card { display: flex; align-items: center; gap: 22px; padding: 12px 14px 12px 18px; border-radius: 16px; background: rgba(12,16,30,.92); box-shadow: inset 0 0 0 1px var(--c), 0 0 30px -12px var(--c); }
.smap-card > div { display: flex; flex-direction: column; gap: 4px; }
.smap-card b { font: italic 20px/1 var(--display); color: var(--c); }
.smap-card span { color: var(--text2); font-size: 13px; }
.smap-card .btn { flex-direction: row; gap: 8px; white-space: nowrap; }
.smap-lit, .smap-shut { font: 800 12px/1 var(--display); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.smap-lit { color: var(--c); }
.smap-sum { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 0 24px 22px; font-size: 12.5px; color: var(--text2); }
.smap-sum b { font: 800 11px/1.6 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .smap-sky, .sn.afford .sn-ring { animation: none; } }

/* (30 Oct, "the ascend animation ... should be its own thing with the new 3d crystal"): the interface steps aside while
   the crystal does the show, then the Ascension title: its count as a big Roman numeral in the crystal's colours */
body.asc-show #app { opacity: 0; transition: opacity .35s ease; pointer-events: none; }
body:not(.asc-show) #app { transition: opacity .5s ease .1s; }
.ascx { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding-left: 30vw;
  background: radial-gradient(42% 50% at 65% 50%, rgba(20, 8, 46, .6), rgba(20, 8, 46, 0) 72%); cursor: pointer; animation: ascx-in .3s ease both; }
@media (max-width: 760px) { .ascx { padding-left: 0; background: radial-gradient(70% 45% at 50% 50%, rgba(20, 8, 46, .6), rgba(20, 8, 46, 0) 72%); } }
.ascx.out { animation: ascx-out .55s ease-in both; }
.ascx-k { display: flex; gap: .42em; font: 800 19px/1 var(--display); color: #e6dcff; letter-spacing: .1em;
  text-shadow: 0 0 14px rgba(176, 138, 255, .9), 0 2px 0 #1a0b33; }
.ascx-k span { display: inline-block; animation: ascx-letter .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.ascx-n { position: relative; font: 400 clamp(96px, 15vw, 180px)/0.9 var(--display); letter-spacing: .02em; color: transparent;
  background: linear-gradient(100deg, #b08aff 0%, #7fe3ff 32%, #ffffff 50%, #ffd0f0 68%, #b08aff 100%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 22px rgba(176, 138, 255, .75)) drop-shadow(0 4px 0 #22104a);
  animation: ascx-num .9s cubic-bezier(.16, 1, .3, 1) .15s both, ascx-shine 2.4s linear .9s infinite; }
.ascx-line { display: block; width: min(420px, 70vw); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(176, 138, 255, 0), #c9a8ff 30%, #ffffff 50%, #7fe3ff 70%, rgba(127, 227, 255, 0));
  box-shadow: 0 0 12px rgba(176, 138, 255, .9); transform-origin: center; animation: ascx-draw .7s cubic-bezier(.2, .8, .2, 1) .45s both; }
.ascx-s { display: flex; align-items: center; gap: 8px; font: 800 30px/1 var(--display); color: #fff; animation: ascx-up .5s ease .55s both;
  text-shadow: 0 0 16px rgba(127, 227, 255, .7), 0 2px 0 #12082a; }
.ascx-s svg { width: 30px; height: 30px; }
.ascx-s b { font-variant-numeric: tabular-nums; font-weight: 800; }
.ascx-s span { font-size: 16px; color: #d8ccff; margin-left: 2px; }
.ascx-b { font: 700 14px/1 var(--display); color: #cfc2f2; animation: ascx-up .5s ease .7s both; text-shadow: 0 2px 0 #12082a; }
.ascx-b b { color: #fff; }
.ascx-new { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; max-width: 80vw; margin-top: 6px; animation: ascx-up .5s ease .85s both; }
.ascx-new span { font: 700 12px/1 var(--display); color: #a99ad0; letter-spacing: .06em; text-transform: uppercase; margin-right: 2px; }
.ascx-new em { font: 700 13px/1 var(--display); font-style: normal; color: #fff; padding: 6px 10px; border-radius: 999px;
  background: rgba(176, 138, 255, .22); box-shadow: inset 0 0 0 1px rgba(201, 168, 255, .6); }
@keyframes ascx-in { from { opacity: 0; } }
@keyframes ascx-out { to { opacity: 0; transform: scale(1.04); filter: blur(4px); } }
@keyframes ascx-letter { from { opacity: 0; transform: translateY(10px) scale(.6); filter: blur(4px); } }
@keyframes ascx-num { from { opacity: 0; transform: scale(1.7); filter: blur(16px) drop-shadow(0 0 22px rgba(176, 138, 255, .75)); } }
@keyframes ascx-shine { to { background-position: -220% 0; } }
@keyframes ascx-draw { from { transform: scaleX(0); opacity: 0; } }
@keyframes ascx-up { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .ascx, .ascx * { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* (30 Oct) Relics: tiles in their rarity's colour (--rc), the collection, the roll reveal */
.relics { margin: 0 0 26px; display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; border-radius: 22px;
  background: linear-gradient(180deg, var(--fill), var(--bg2)); box-shadow: inset 0 0 0 1px var(--line); }
.rl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rl-head h2 { margin: 0 0 4px; }
.rl-head .lede { margin: 0; max-width: 60ch; }
.rl-roll { display: flex; gap: 10px; }
.rl-roll .btn small { display: inline-flex; align-items: center; gap: 4px; }
.rl-roll .btn small svg { width: 13px; height: 13px; }
.rl-shut { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--line2); color: var(--muted); }
.rl-shut svg { width: 18px; height: 18px; }
.rl-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.relic { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; min-width: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 22%, #15171e), #101219 70%); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 70%, transparent), 0 6px 18px rgba(0,0,0,.35); }
/* (30 Oct) relics are coins */
.relic .rl-coin { flex: none; width: 54px; height: 54px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.relic.sm .rl-coin { width: 38px; height: 38px; }
.rl-rv-grid.one .relic .rl-coin { width: 86px; height: 86px; }
.mr-k { display: block; font: 800 12px var(--body); letter-spacing: .18em; text-transform: uppercase; color: #ffcf6a; }
.tab-mr { color: #ffd76a; }
.tab-mr:hover { color: #ffe9a8; }
.tab-mr.on { color: #160300; }
.relics.mr-busy { opacity: 0; pointer-events: none; transition: opacity .3s; }
.rl-out { position: fixed; left: 50%; bottom: 34px; translate: -50% 0; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.rl-out-row { display: grid; grid-template-columns: repeat(5, 210px); gap: 10px; justify-content: center; }
.rl-out.one .rl-out-row { grid-template-columns: 300px; }
.rl-out-it { position: relative; }
.rl-out-it .relic { background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 26%, #15171e), rgba(16,18,25,.94) 70%); }
.rl-out-hint { font: 700 13px var(--body); color: #fff; text-shadow: 0 1px 4px #000; min-height: 1em; }
.rl-out-it .rl-scrapped { opacity: 1; }
.relic .rl-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--rc) 85%, #fff), var(--rc) 55%, color-mix(in srgb, var(--rc) 50%, #000)); box-shadow: 0 0 14px color-mix(in srgb, var(--rc) 55%, transparent); }
.relic .rl-ic svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); }
.relic .rl-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.relic .rl-t b { font: 400 16px/1.15 var(--display); color: #fff; }
.relic .rl-r { font: 700 11px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--rc) 75%, #fff); }
.relic .rl-v { font: 600 13px/1.3 var(--body); color: #e8ecf6; }
.relic.rr-mythic { box-shadow: inset 0 0 0 2px transparent, 0 6px 18px rgba(0,0,0,.35); background: linear-gradient(#14161d, #14161d) padding-box, conic-gradient(var(--rainbow)) border-box; border: 2px solid transparent; }
.relic.rr-mythic .rl-ic { background: conic-gradient(from 30deg, var(--rainbow)); }
.relic.rr-mythic .rl-r { color: #fff; }
.relic.empty { justify-content: center; min-height: 72px; color: var(--muted); background: transparent; box-shadow: none; border: 1.5px dashed var(--line2); font-weight: 700; }
.relic.empty .rl-ic { display: none; }
.rl-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: #dfe6ff; }
.rl-sum b { font: 800 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rl-sum span { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); }
.rl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rl-count { color: var(--muted); font-weight: 700; margin-right: auto; }
.rl-count b { color: #fff; }
.rl-cut { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 13px; }
.rl-inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; max-height: 380px; overflow-y: auto; scrollbar-width: thin; padding: 4px 4px 4px 0; }
.relic.sm { padding: 8px 10px; gap: 9px; border-radius: 12px; cursor: pointer; transition: transform .12s; }
.relic.sm:hover { transform: translateY(-2px); }
.relic.sm .rl-ic { width: 34px; height: 34px; border-radius: 10px; }
.relic.sm .rl-ic svg { width: 21px; height: 21px; }
.relic.sm .rl-t b { font-size: 13px; }
.relic.sm .rl-r { font-size: 9.5px; }
.relic.sm .rl-v { font-size: 11.5px; }
.relic.sm.on { outline: 2px solid #fff; outline-offset: 1px; }
.relic .rl-worn { position: absolute; top: -7px; right: 8px; padding: 2px 7px; border-radius: 999px; font: 800 9.5px/1.2 var(--body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #10131a; background: #fff; }
.rl-rv-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 230px); gap: 14px; align-content: center; justify-content: center; }
.rl-rv-grid.one { grid-template-columns: 320px; }
.rl-rv-grid.one .relic { padding: 22px; } .rl-rv-grid.one .relic .rl-ic { width: 72px; height: 72px; } .rl-rv-grid.one .relic .rl-ic svg { width: 44px; height: 44px; }
.rl-rv-grid.one .relic .rl-t b { font-size: 22px; } .rl-rv-grid.one .relic .rl-v { font-size: 15px; }
.rl-flip { position: relative; perspective: 800px; min-height: 92px; }
.rl-flip > .relic, .rl-flip > .rl-back { position: absolute; inset: 0; backface-visibility: hidden; transition: transform .45s cubic-bezier(.2,.9,.3,1.15); }
.rl-flip > .relic { transform: rotateY(180deg); }
.rl-flip > .rl-back { border-radius: 16px; background: linear-gradient(160deg, #2a2440, #12111c); box-shadow: inset 0 0 0 1.5px rgba(201,168,255,.45); display: grid; place-items: center; }
.rl-flip > .rl-back i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(201,168,255,.6); box-shadow: 0 0 18px rgba(201,168,255,.4); }
.rl-flip.open > .relic { transform: none; }
.rl-flip.open > .rl-back { transform: rotateY(-180deg); }
.rl-rv-grid.one .rl-flip { min-height: 128px; }
.rl-scrapped { position: absolute; z-index: 2; bottom: -9px; left: 50%; translate: -50% 0; padding: 2px 9px; border-radius: 999px; font: 800 10px/1.3 var(--body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #3a3f4c; opacity: 0; transition: opacity .2s .35s; }
.rl-flip.open .rl-scrapped { opacity: 1; }
.rl-flip:has(.rl-scrapped).open > .relic { filter: grayscale(.6) brightness(.75); }
@media (max-width: 1250px) { .rl-rv-grid { width: 100%; grid-template-columns: repeat(auto-fill, 200px); padding: 0 40px; } }
.reb-shop { margin-top: 30px; flex-wrap: wrap; }
.reb-shop .lede { margin: 0; flex-basis: 100%; }

/* (30 Oct) the Underworld and Evolution */
.tab-uw { color: #ff6a74; text-shadow: 0 0 10px rgba(255,42,58,.45); }
.tab-uw:hover { color: #ff9aa0; }
.tab-uw.on { color: #fff; }
.tabs:has(.tab-uw.on) .tab-ind { background: linear-gradient(180deg, #5a0a14, #22040a); box-shadow: 0 6px 18px -6px rgba(255,42,58,.8), inset 0 0 0 1px rgba(255,80,90,.55); }
#p-evolve { --uwr: #ff2a3a; }
.uw-panel { position: relative; padding: 24px 26px; border-radius: 22px; background: linear-gradient(180deg, rgba(30,6,10,.94), rgba(10,3,5,.96));
  box-shadow: inset 0 0 0 1px rgba(255,60,70,.35), 0 20px 50px -20px rgba(255,30,40,.35); }
.uw-panel h1 { margin: 0 0 10px; font-size: 40px; color: #fff; text-shadow: 0 0 24px rgba(255,42,58,.6); }
.uw-k { display: block; font: 800 12px var(--body); letter-spacing: .18em; text-transform: uppercase; color: #ff6a74; }
.uw-panel .lede { color: #e6c8cc; margin: 0 0 14px; }
.uw-panel h1 { margin-bottom: 2px; }
.uw-panel .ucard-glow { display: none; }
.uw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.uw-c { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.uw-c .ucard { width: 100%; }
.uw-st { font: 700 11.5px/1.2 var(--body); color: #ffb0b6; text-align: center; }
.uw-st.done { color: #7dffb0; } .uw-st.no { color: #8a7074; }
.uw-sel { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.uw-sel .ucard { width: 150px; }
.uw-arrow { width: 34px; height: 34px; color: #ff4a5a; filter: drop-shadow(0 0 8px rgba(255,42,58,.7)); }
.uw-arrow svg { width: 100%; height: 100%; }
.uw-panel h3 { margin: 6px 0 8px; font: 800 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: #ff8a92; }
.uw-reqs { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.uw-reqs li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,60,70,.22); color: #f0dcde; font-weight: 600; }
.uw-reqs li svg { flex: none; width: 18px; height: 18px; color: #ff4a5a; }
.uw-reqs li.ok { box-shadow: inset 0 0 0 1px rgba(125,255,176,.4); } .uw-reqs li.ok svg { color: #7dffb0; }
.uw-reqs li.uw-give { display: flex; gap: 8px; padding: 6px 10px 10px 40px; background: none; box-shadow: none; }
.uw-gv { width: 74px; flex: none; }
.uw-gv .ucard { width: 100%; }
.uw-gv:not(:has(.ucard)) { aspect-ratio: 240 / 330; border-radius: 10px; border: 1.5px dashed rgba(255,80,90,.45); display: grid; place-items: center; }
.uw-gv span { font: 700 10px/1.2 var(--body); color: #c89aa0; text-align: center; padding: 4px; }
.uw-reqs li em { margin-left: auto; font-style: normal; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.uw-panel .note { color: #b8999d; }
.uw-panel .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn.uw-seal, .btn.uw-yes { color: #fff; background: linear-gradient(180deg, #d81a2a, #7a0610); box-shadow: 0 8px 22px -8px rgba(255,30,40,.8), inset 0 1px 0 rgba(255,255,255,.25); }
/* (30 Oct, "make this look like actual game ui"): the Keeper's dialogue: portrait, nameplate, a framed box */
.uw-talk { position: relative; margin-top: 18px; display: flex; align-items: flex-end; cursor: pointer; filter: drop-shadow(0 14px 30px rgba(0,0,0,.6)); }
.uw-port { position: relative; z-index: 2; flex: none; width: 190px; height: 230px; margin: 0 -34px 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.uw-port { overflow: hidden; }
.uw-port::before { content: ""; position: absolute; inset: 8% 0 0; border-radius: 50% 50% 0 0; background: radial-gradient(ellipse at 50% 55%, rgba(255,40,50,.7), rgba(120,0,10,.3) 45%, transparent 72%); }
.uw-port canvas { position: relative; width: 100%; height: 100%; display: block; }
/* (the fill sits on its own layer, uw-bg, so the cut corners don't clip the nameplate hanging over the top) */
.uw-box { position: relative; flex: 1; min-width: 0; padding: 30px 34px 22px 56px; min-height: 132px; }
.uw-box > .uw-line, .uw-box > .uw-ch { position: relative; z-index: 1; }
.uw-bg { position: absolute; inset: 0;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
  background: radial-gradient(120% 140% at 0% 100%, rgba(120,8,18,.55), transparent 55%), linear-gradient(180deg, #1c0508, #0a0204 70%); }
/* the double edge: an outer crimson line and an inner faint one, following the cut corners */
.uw-box::before, .uw-box::after { content: ""; position: absolute; pointer-events: none;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px); }
.uw-box::before { inset: 0; background: linear-gradient(90deg, #ff2a3a, #8a0a14 45%, #ff2a3a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 2px; }
.uw-box::after { inset: 6px; border: 1px solid rgba(255,120,110,.18); }
.uw-cn { position: absolute; width: 12px; height: 12px; background: #e8b54a; z-index: 1; transform: rotate(45deg); box-shadow: 0 0 10px rgba(232,181,74,.7); }
.uw-cn.tl { left: 10px; top: 10px; } .uw-cn.tr { right: 10px; top: 10px; } .uw-cn.bl { left: 10px; bottom: 10px; } .uw-cn.br { right: 10px; bottom: 10px; }
.uw-box > .uw-who { position: absolute; z-index: 2; left: 44px; top: 0; transform: translateY(-58%); }
.uw-who b { display: block; padding: 7px 26px 8px 18px; font: 400 20px/1 var(--display); letter-spacing: .03em; color: #fff; text-shadow: 0 2px 0 #4a0008;
  background: linear-gradient(180deg, #e01a2a, #7a0610); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.uw-line { margin: 0; min-height: 2.7em; font: 700 19px/1.45 var(--body); color: #fbeeee; text-wrap: pretty; text-shadow: 0 1px 0 #000; }
.uw-ch { display: flex; gap: 12px; margin-top: 14px; }
.uw-ch:empty { display: none; }
.uw-ch .btn { padding: 11px 26px 12px; border-radius: 0; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); font: 400 16px var(--display); }
.uw-ch .btn.ghost { color: #ffd0d4; background: linear-gradient(180deg, #3a0a10, #1c0408); box-shadow: inset 0 0 0 1px rgba(255,80,90,.5); }
.uw-box > .uw-next { position: absolute; right: 30px; bottom: 16px; width: 0; height: 0; border: 9px solid transparent; border-top: 11px solid #ff4a5a; border-bottom: 0;
  filter: drop-shadow(0 0 6px #ff2a3a); animation: uwnext .9s ease-in-out infinite; }
.uw-talk.typing .uw-next, .uw-box:has(.uw-ch:not(:empty)) .uw-next { display: none; }
@keyframes uwnext { 50% { transform: translateY(5px); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .uw-next { animation: none; } }
#p-evolve.uw-busy .uw-panel, #p-evolve.uw-busy .uw-talk { opacity: 0; transition: opacity .4s; pointer-events: none; }
.ucard.evo .ucard-in { box-shadow: inset 0 0 0 2px rgba(255,42,58,.85), inset 0 0 26px rgba(255,30,40,.35); }
.evotag { position: absolute; left: 50%; top: 4cqw; z-index: 3; transform: translateX(-50%); padding: 1.4cqw 3cqw; border-radius: 99px; font: 400 4.2cqw/1 var(--display);
  letter-spacing: .04em; color: #fff; background: linear-gradient(180deg, #e01a2a, #6a0410); box-shadow: 0 0 3cqw rgba(255,30,40,.7); white-space: nowrap; }
/* (31 Oct, "move evo down here above the rarity text") */
.ucard-name .evotag { position: static; transform: none; align-self: center; font-style: normal; margin-bottom: .6cqw; }
#umTrait .chip { width: fit-content; }
#umTrait .um-perk { display: block; margin: 6px 0 0; }
.evo-bn { --tc: #ff2a3a; }

/* (30 Oct) the summon cooldown: a bar drains along the bottom of the summon buttons */
:is(#bS1, #bS10, #bS50, #bS100).cooling { position: relative; overflow: hidden; }
:is(#bS1, #bS10, #bS50, #bS100).cooling::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(255,255,255,.75);
  transform-origin: left; animation: sumcd var(--cd, 650ms) linear forwards; pointer-events: none; }
@keyframes sumcd { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* (30 Oct, the relic tile "too small for all the text ... not liking the background gradient colors"): bigger, flat */
.relic { background: #15171d; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 60%, transparent), 0 6px 16px rgba(0,0,0,.35); padding: 14px 16px; gap: 14px; min-height: 86px; }
.relic .rl-coin { width: 60px; height: 60px; }
.relic .rl-t b { font-size: 18px; }
.relic .rl-r { font-size: 12px; }
.relic .rl-v { font-size: 15px; font-weight: 600; }
.relic.sm { padding: 10px 12px; gap: 12px; min-height: 70px; }
.relic.sm .rl-coin { width: 46px; height: 46px; }
.relic.sm .rl-t b { font-size: 15px; } .relic.sm .rl-r { font-size: 11px; } .relic.sm .rl-v { font-size: 13px; }
.relic.rr-mythic { background: linear-gradient(#15171d, #15171d) padding-box, conic-gradient(var(--rainbow)) border-box; }
.rl-inv { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.rl-slots { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rl-out-it .relic { background: #15171d; }
.rl-out-row { grid-template-columns: repeat(5, 240px); }
/* (30 Oct) the Wandering Market */
.store .st-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.store .st-head h2 { margin: 2px 0 4px; font-size: 30px; }
.st-nav { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; }
.st-nav button { padding: 9px 16px; border-radius: 10px; font: 400 15px var(--display); color: var(--muted); }
.st-nav button.on { color: #160300; background: linear-gradient(180deg, #ffe08a, #e8b54a); }
.st-nav button:not(.on):hover { color: #fff; }
.st-note { margin: 0; color: var(--muted); font-size: 14px; }
.st-note b { color: #fff; }
.st-coin { display: flex; gap: 22px; align-items: center; padding: 18px; border-radius: 18px; background: #12141a; box-shadow: inset 0 0 0 1px var(--line); }
.st-coin canvas.big { width: 150px; height: 150px; flex: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.st-cb { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-cb h3 { margin: 0; font: 400 22px var(--display); color: #fff; }
.st-cb p { margin: 0; color: var(--muted); }
.st-odds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.st-odds li { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.05); font-weight: 700; font-size: 13px; color: #e6e8f0; }
.st-odds li i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 6px var(--rc); }
.st-odds li b { color: var(--muted); font-weight: 700; }
.st-h { margin: 6px 0 0; font: 400 18px var(--display); color: #fff; }
.st-h small { font: 700 12px var(--body); color: var(--muted); margin-left: 6px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.st-item { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #15171d;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mc, #e8b54a) 45%, transparent); }
.st-item .mat-ic, .st-dic .mat-ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: var(--mc); background: color-mix(in srgb, var(--mc) 14%, #0e0f13); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mc) 50%, transparent), 0 0 18px -6px var(--mc); }
.mat-ic svg { width: 36px; height: 36px; filter: drop-shadow(0 0 6px var(--mc)); }
.st-it { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-it b { font: 400 18px/1.15 var(--display); color: #fff; }
.st-it span { font-size: 13px; color: var(--muted); }
.st-it em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--mc, #ffd76a); }
.st-buy { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.st-have { margin-right: auto; font-size: 13px; color: var(--muted); }
.st-have b { color: #fff; }
.st-buy s { color: var(--muted); font-size: 13px; }
.st-got { font: 800 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: #7dffb0; }
.st-item.got { opacity: .6; }
.st-dic { width: 60px; display: grid; place-items: center; }
.st-dic canvas.rl-coin { width: 60px; height: 60px; }
.st-dic .ucard { width: 64px; }
.st-closed { display: flex; gap: 20px; align-items: center; padding: 22px; border-radius: 18px; background: #12141a; box-shadow: inset 0 0 0 1px var(--line); }
.st-sign { flex: none; padding: 14px 22px; font: 400 26px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #f4e8d0; background: #3a2414; border: 3px solid #e8b54a; border-radius: 6px; transform: rotate(-4deg); box-shadow: 0 8px 18px rgba(0,0,0,.5); }
.st-closed p { margin: 0; color: #d8dae4; }
/* (30 Oct, "Move the entire journal area to a button next to the volume button ... a dot that pulses") */
.tab[data-tab="journal"] { display: none; }
.jr-btn { position: relative; }
.jr-dot { position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px #10131a; animation: jrdot 1.3s ease-in-out infinite; }
@keyframes jrdot { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px #10131a, 0 0 0 0 rgba(255,210,58,.7); } 50% { transform: scale(1.25); box-shadow: 0 0 0 2px #10131a, 0 0 0 7px rgba(255,210,58,0); } }
@media (prefers-reduced-motion: reduce) { .jr-dot { animation: none; } }

/* (30 Oct) Twin Lab: two Lab units, numbered 1 (cyan) and 2 (amber) on card, plate and chips */
.n1 { --nc: #5ad8ff; } .n2 { --nc: #ffc35a; }
.lab-slot { position: relative; display: flex; flex-direction: column; gap: 14px; align-items: center; min-width: 0; }
.lab-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lab.dual .lab-btns .btn { padding-inline: 12px; font-size: 12px; }
.btn.lab-out { color: #ffb0b6; }
.lab.dual .lab-unit { flex-direction: row; align-items: flex-start; gap: 14px; }
.lab.dual .lab-slot { flex: 1; }
.lab.dual #labCard, .lab.dual #labCard2 { align-self: stretch; }
.lab.dual .lab-slot .ucard.lg, .lab.dual .lab-empty { width: 100%; }
.lab.dual .lab-empty { padding: 14px; font-size: 13px; }
.lab-no { display: none; }
.lab.dual .lab-no { display: grid; place-items: center; position: absolute; top: -10px; left: -8px; z-index: 5; width: 28px; height: 28px; border-radius: 50%;
  font: 400 16px/1 var(--display); color: #0b0f1e; background: var(--nc); box-shadow: 0 0 0 3px rgba(11, 15, 30, .9), 0 0 14px var(--nc); }
.plates { display: flex; gap: 18px; justify-content: center; width: 100%; }
.plate { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; flex: 0 1 380px; }
.plate > .sigil { width: 100%; }
.plate-h { display: none; }
.plates.dual .plate-h { display: flex; align-items: center; gap: 10px; max-width: 100%; font: 800 15px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #dfe6ff; }
.plate-h span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate-h b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 400 15px/1 var(--display); letter-spacing: 0; color: #0b0f1e; background: var(--nc); box-shadow: 0 0 12px var(--nc); }
.plates.dual .sigil { border-radius: 26px; }
.hchip { position: relative; }
.hchip .hn { position: absolute; top: -5px; left: -5px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  font: 400 10px/1 var(--display); font-style: normal; color: #0b0f1e; background: var(--nc); box-shadow: 0 0 0 2px #0b0f1e; }

/* (31 Oct, "the ui for the shop is still ass. Take inspiration from the one i sent and remake it"): the Wandering Market as a
   wooden market frame, lit from above: folder tabs on its top edge, the stall's red and cream scalloped awning, a parchment
   name plate, goods as cards (name, a big picture in a dark well, a green buy button), ribbons for offers */
.relics.mk { --w1: #8a5e38; --w2: #5e3c22; --w3: #3e2614; --edge: #1c0f07; --cream: #f6ead2; --tan: #c9b08a;
  --field: #140e09; --c1: #3a2818; --c2: #2a1c10; --cl: #6a4626;
  display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; border-radius: 0; background: none; box-shadow: none; max-height: 100%; }
.relics.mk.tall { height: 100%; }
.mk-tabs { position: relative; z-index: 0; display: flex; align-items: flex-end; gap: 4px; padding: 0 26px; margin-bottom: -14px; }
.mk-tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px 22px; border-radius: 12px 12px 0 0; font: 400 15px/1 var(--display); color: var(--tan);
  background: linear-gradient(180deg, #6a4428, #4a2e18); box-shadow: inset 0 0 0 2px var(--edge), inset 0 4px 0 -2px rgba(255,220,160,.2); translate: 0 0; transition: translate .15s, color .15s; }
.mk-tab svg { width: 18px; height: 18px; }
.mk-tab:not(.on):hover { translate: 0 -2px; color: #fff; }
.mk-tab.on { padding-top: 10px; translate: 0 -4px; color: #3a1a04; background: linear-gradient(180deg, #ffe9a8, #e8b04a); box-shadow: inset 0 0 0 2px #7a4a0a, inset 0 4px 0 -2px rgba(255,255,255,.7); text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.mk-frame { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; padding: 0 12px 14px; border-radius: 18px;
  background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(0,0,0,.07) 9px 11px), linear-gradient(180deg, var(--w1), var(--w2) 45%, var(--w3));
  box-shadow: 0 0 0 3px var(--edge), inset 0 -3px 0 rgba(0,0,0,.4), 0 20px 44px rgba(0,0,0,.55); }
/* brass studs in the frame's bottom corners */
.mk-frame::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 3px; height: 10px; pointer-events: none;
  background: radial-gradient(circle, #ffe2a0 0 1.5px, #9a6a22 2.5px 3.5px, transparent 4px) left / 10px 10px no-repeat, radial-gradient(circle, #ffe2a0 0 1.5px, #9a6a22 2.5px 3.5px, transparent 4px) right / 10px 10px no-repeat; }
.mk-awn { margin: 0 -12px -6px; filter: drop-shadow(0 4px 2px rgba(0,0,0,.45)); }
.mk-awn::before { content: ""; display: block; height: 30px; border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 40%, rgba(0,0,0,.18)), repeating-linear-gradient(90deg, #c8341a 0 36px, #f4e8d0 36px 72px);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% 16px no-repeat, radial-gradient(circle at 18px 16px, #000 13px, transparent 13.5px) 0 0 / 36px 100% repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% 16px no-repeat, radial-gradient(circle at 18px 16px, #000 13px, transparent 13.5px) 0 0 / 36px 100% repeat-x; }
.mk-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.mk-plate { grid-column: 2; display: flex; flex-direction: column; align-items: center; padding: 6px 36px 7px; color: #4a2408;
  background: linear-gradient(180deg, #fff6dc, #e6cc98); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%); }
.mk-plate small { font: 800 10px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #8a5a2a; }
.mk-plate b { font: 400 24px/1.1 var(--display); letter-spacing: .02em; }
.mk-purse { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(20,12,6,.8); box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 1px 0 rgba(255,220,160,.2); font: 400 17px/1 var(--display); color: #fff; }
.mk-purse .shard-ic svg { width: 18px; height: 18px; }
.mk-body { position: relative; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 0; padding: 14px; border-radius: 12px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #5a3a22 transparent; background: var(--field); box-shadow: inset 0 0 0 2px var(--edge), inset 0 8px 16px rgba(0,0,0,.55), 0 1px 0 rgba(255,220,160,.18); }
.mk.tall .mk-body { overflow: hidden; }
.mk-closed { display: flex; gap: 22px; align-items: center; padding: 18px 8px; }
.mk-closed p { margin: 0; color: var(--cream); line-height: 1.5; } .mk-closed p b { color: #ffd98a; }
/* goods */
.mk-grid { display: grid; gap: 10px; }
.mk-grid.g3 { grid-template-columns: 1fr 1fr 1.15fr; }
.mk-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mk-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px 10px; border-radius: 14px; min-width: 0; text-align: center;
  background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 2px var(--cl), inset 0 4px 0 -1px rgba(255,225,170,.14), 0 4px 0 #0a0603; }
.mk-t { font: 400 16px/1.15 var(--display); color: var(--cream); text-shadow: 0 2px 0 rgba(0,0,0,.45); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-art { position: relative; width: 100%; aspect-ratio: 1.25; display: grid; place-items: center; border-radius: 10px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--mc, #f0c060) 24%, transparent), transparent 62%), #0f0a06; box-shadow: inset 0 3px 8px rgba(0,0,0,.75); }
.mk-art > canvas.rl-coin { width: 60%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 6px 6px rgba(0,0,0,.6)); }
.mk-art.stack > canvas.rl-coin { position: absolute; width: 46%; }
.mk-art.stack > canvas:nth-child(1) { translate: -24% 8%; rotate: -12deg; } .mk-art.stack > canvas:nth-child(2) { translate: 24% 8%; rotate: 10deg; } .mk-art.stack > canvas:nth-child(3) { translate: 0 -10%; }
.mk-art.mat > svg { width: 50%; height: auto; color: var(--mc); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--mc) 60%, transparent)); }
.mk-art .ucard { width: 64%; }
/* (31 Oct) the materials' turning models */
.mk-art > canvas.mat-3d { width: 84%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 8px 8px rgba(0,0,0,.55)); }
.uw-mat { width: 30px; height: 30px; margin: -6px 4px -9px -2px; vertical-align: middle; }
.mk-own { position: absolute; right: 6px; bottom: 6px; min-width: 26px; padding: 3px 7px; border-radius: 8px; font: 400 14px/1 var(--display); font-style: normal; color: #fff;
  background: rgba(10,6,3,.85); box-shadow: inset 0 0 0 1.5px var(--cl); }
.mk-own { font: 700 11px/1 var(--body); color: var(--tan); } .mk-own b { font: 400 14px/1 var(--display); color: #fff; margin-left: 2px; }
.mk-yen { font: 400 64px/1 var(--display); color: #ffd23a; text-shadow: 0 4px 0 #8a5a00, 0 0 22px rgba(255,210,58,.5); }
.mk-s { font: 600 12px/1.3 var(--body); color: var(--tan); min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-buy { margin-top: auto; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: 10px;
  font: 400 17px/1 var(--display); color: #fff; text-shadow: 0 2px 0 #1f5c16; background: linear-gradient(180deg, #a6ec6a, #4caf3a 60%, #3c9a2c);
  box-shadow: 0 4px 0 #1f5c16, inset 0 2px 0 rgba(255,255,255,.5), inset 0 0 0 1.5px rgba(10,50,6,.5); transition: transform .1s, filter .15s; }
.mk-buy:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mk-buy:active { transform: translateY(3px); box-shadow: 0 1px 0 #1f5c16, inset 0 2px 0 rgba(255,255,255,.5); }
.mk-buy .shard-ic { color: #fff; } .mk-buy .shard-ic svg { width: 16px; height: 16px; }
.mk-buy.poor { filter: saturate(.2) brightness(.75); }
.mk-buy em { font-style: normal; font-size: 13px; opacity: .85; }
.mk-buy s { font: 700 11px var(--body); color: rgba(255,255,255,.75); text-shadow: none; }
.mk-buy:disabled { visibility: hidden; }
.mk-rib { position: absolute; z-index: 2; top: 42px; right: -6px; padding: 5px 10px 5px 14px; font: 400 13px/1 var(--display); font-style: normal; color: #fff; text-shadow: 0 1px 0 #6a0a04;
  background: linear-gradient(180deg, #ff6a46, #c8261a); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 7px 50%); }
.mk-sold { position: absolute; z-index: 3; top: 44%; left: 50%; translate: -50% -50%; rotate: -14deg; padding: 4px 14px; border: 3px solid #ff6a4a; border-radius: 8px;
  font: 400 26px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #ff6a4a; background: rgba(20,8,4,.8); }
.mk-card.got > :not(.mk-sold) { opacity: .4; }
.mk-odds ul { list-style: none; margin: 0; padding: 10px 12px; width: 100%; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 7px; border-radius: 10px; background: #0f0a06; box-shadow: inset 0 3px 8px rgba(0,0,0,.75); }
.mk-odds li { display: flex; align-items: center; gap: 8px; font: 700 13px var(--body); color: var(--cream); }
.mk-odds li i { width: 10px; height: 10px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.mk-odds li b { margin-left: auto; font: 400 14px var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.mk-bar { display: flex; align-items: center; gap: 12px; }
.mk-bar p { margin: 0; flex: 1; font: 600 13px/1.4 var(--body); color: var(--tan); }
.mk-qty { display: flex; padding: 3px; border-radius: 10px; background: #0b0704; box-shadow: inset 0 2px 4px rgba(0,0,0,.7); }
.mk-qty button { padding: 7px 13px; border-radius: 8px; font: 400 15px/1 var(--display); color: var(--tan); }
.mk-qty button.on { color: #3a1a04; background: linear-gradient(180deg, #ffe9a8, #e8b04a); }
.mk-timer { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: #0b0704; font: 600 13px var(--body); color: var(--tan); }
.mk-timer svg { width: 16px; height: 16px; } .mk-timer b { font: 400 14px var(--display); color: #fff; }
.mk-mini { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 2px var(--cl); }
.mk-mini > b { font: 400 15px var(--display); color: var(--cream); }
.mk-mini-s { display: flex; gap: 8px; flex: 1; }
.mk-mini-s span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #0b0704; color: #6a5440; box-shadow: inset 0 3px 6px rgba(0,0,0,.8), 0 0 0 2px #8a6a3a; }
.mk-mini-s span.on { box-shadow: inset 0 3px 6px rgba(0,0,0,.8), 0 0 0 2px var(--rc); }
.mk-mini-s span.lk { opacity: .5; box-shadow: inset 0 3px 6px rgba(0,0,0,.8), 0 0 0 2px #3a2a1a; }
.mk-mini-s span svg { width: 16px; height: 16px; } .mk-mini-s canvas { width: 36px; height: 36px; }
/* (31 Oct, "it needs an actual slot for em"): the sockets */
.mk-socks { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 12px 8px 8px; border-radius: 14px;
  background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 2px var(--cl), inset 0 4px 0 -1px rgba(255,225,170,.14), 0 4px 0 #0a0603; }
.mk-sock { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 4px 2px; border-radius: 12px; text-align: center; color: inherit; }
.mk-sock > b { font: 400 14px/1.15 var(--display); color: var(--cream); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-sock > span { font: 600 11.5px/1.25 var(--body); color: var(--tan); min-height: 2.5em; }
.mk-sock.on > span { color: #efe2c8; }
.mk-n { position: absolute; top: 0; left: 6px; font: 400 14px var(--display); font-style: normal; color: #9a7a50; }
.mk-well { position: relative; width: 80px; height: 80px; margin-bottom: 5px; border-radius: 50%; display: grid; place-items: center; color: #8a6a44;
  background: radial-gradient(circle at 50% 35%, #1e140c, #080503 70%); box-shadow: inset 0 5px 10px rgba(0,0,0,.9), 0 0 0 3px #a07a40, 0 0 0 5px var(--edge); transition: box-shadow .2s, transform .15s; }
.mk-sock.on .mk-well { box-shadow: inset 0 5px 10px rgba(0,0,0,.9), 0 0 0 3px var(--rc), 0 0 0 5px var(--edge), 0 0 18px 2px color-mix(in srgb, var(--rc) 45%, transparent); }
.mk-well canvas { width: 68px; height: 68px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.6)); }
.mk-well > svg { width: 24px; height: 24px; }
.mk-plus { display: grid; color: #6a5034; } .mk-plus svg { width: 26px; height: 26px; }
.mk-off { position: absolute; top: -3px; right: -3px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #c8261a; color: #fff;
  box-shadow: 0 0 0 2px var(--edge); opacity: 0; scale: .6; transition: opacity .15s, scale .15s; }
.mk-off svg { width: 13px; height: 13px; }
.mk-sock.on:hover .mk-off { opacity: 1; scale: 1; }
.mk-sock[data-slot]:hover .mk-well { transform: translateY(-2px); }
.mk-sock.lk { opacity: .55; } .mk-sock.lk .mk-well { box-shadow: inset 0 5px 10px rgba(0,0,0,.9), 0 0 0 3px #4a3420, 0 0 0 5px var(--edge); }
.mk-socks.picking .mk-sock[data-slot] .mk-well { animation: mkpick 1s ease-in-out infinite; }
@keyframes mkpick { 50% { box-shadow: inset 0 5px 10px rgba(0,0,0,.9), 0 0 0 3px #ffe08a, 0 0 0 5px var(--edge), 0 0 22px 4px rgba(255,210,100,.55); } }
.mk-sock.over .mk-well { transform: scale(1.07); box-shadow: inset 0 5px 10px rgba(0,0,0,.9), 0 0 0 3px #7dffb0, 0 0 0 5px var(--edge), 0 0 22px 4px rgba(125,255,176,.45); }
.mk-sock.pop .mk-well { animation: mkpop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes mkpop { 40% { transform: scale(1.12); } }
.mk-tot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mk-tot b { font: 800 11px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--tan); }
.mk-tot span { padding: 4px 10px; border-radius: 999px; font: 700 12.5px var(--body); color: var(--cream); background: #2a1c10; box-shadow: inset 0 0 0 1px var(--cl); }
.mk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; }
.mk-tools .btn.sm { padding: 8px 11px; }
.mk-count { margin-right: auto; font: 700 13px var(--body); color: var(--tan); } .mk-count b { color: #fff; }
.mk-tools .rl-cut { color: var(--tan); }
.mk-tools select { max-width: 200px; padding: 6px 8px; border-radius: 8px; font: 600 13px var(--body); color: var(--cream); background: #0b0704; border: 1px solid var(--cl); }
.mk-scrap { position: relative; }
.mk-smenu.end { left: auto; right: 0; }
.mk-smenu.up { top: auto; bottom: calc(100% + 6px); }
.mk-smenu { position: absolute; z-index: 20; left: 0; top: calc(100% + 6px); width: 270px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px;
  background: #1a120b; box-shadow: 0 0 0 2px var(--edge), inset 0 0 0 1px var(--cl), 0 14px 30px rgba(0,0,0,.6); }
.mk-smenu button { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 2px 8px; padding: 7px 10px; border-radius: 8px; text-align: left; color: var(--cream); }
.mk-smenu button:hover:not(:disabled) { background: #2e2010; }
.mk-smenu button:disabled { opacity: .4; cursor: default; }
.mk-smenu i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); }
.mk-smenu span { font: 700 13px var(--body); }
.mk-smenu b { font: 400 15px var(--display); color: #fff; }
.mk-smenu small { grid-column: 2 / -1; font: 600 11.5px var(--body); color: var(--tan); }
.mk-smenu .shard-ic svg { width: 12px; height: 12px; }
.mk-hint { margin: 0; font: 600 13px var(--body); color: var(--tan); }
.mk-hint.pick { color: #ffe08a; } .mk-hint b { color: #fff; }
.mk-inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 9px; align-content: start; flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 8px 4px 6px 2px; scrollbar-width: thin; scrollbar-color: #5a3a22 transparent; }
body:not(.w3d) .mk-inv { max-height: 440px; }
.mk-inv.nudge { animation: mknudge .5s; }
@keyframes mknudge { 30% { box-shadow: inset 0 0 0 2px #ffe08a; } }
.mk-none { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--tan); }
.mk-rl { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; text-align: left; color: inherit; cursor: pointer;
  background: #21160d; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 55%, #2a1a0c), 0 3px 0 #0a0603; transition: transform .12s, box-shadow .15s; }
.mk-rl:hover { transform: translateY(-2px); }
.mk-rl.drag { opacity: .4; }
.mk-rl canvas { flex: none; width: 46px; height: 46px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.6)); }
.mk-rt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mk-rt b { font: 400 14.5px/1.15 var(--display); color: var(--cream); }
.mk-rt em { font: 800 10px/1.2 var(--body); font-style: normal; letter-spacing: .07em; text-transform: uppercase; color: color-mix(in srgb, var(--rc) 80%, #fff); }
.mk-rt span { font: 600 12.5px/1.25 var(--body); color: #efe2c8; }
.mk-rl.worn { background: #2e2010; }
.mk-rl.rr-mythic { box-shadow: inset 0 0 0 2px #fff, 0 0 12px rgba(255,255,255,.25), 0 3px 0 #0a0603; }
.mk-rl.sel { transform: translateY(-3px); box-shadow: inset 0 0 0 2px #ffe08a, 0 0 0 2px #ffe08a, 0 0 18px rgba(255,210,100,.5); }
.mk-slot { position: absolute; top: -7px; right: 8px; padding: 2px 8px; border-radius: 999px; font: 400 11px/1.3 var(--display); font-style: normal; color: #3a1a04;
  background: linear-gradient(180deg, #ffe9a8, #e8b04a); box-shadow: 0 0 0 2px var(--edge); }
.mk-fly { position: fixed; z-index: 120; pointer-events: none; transform-origin: 0 0; }
/* (31 Oct) the evolution's card: hover it to swap in another copy */
.uw-from.swap { position: relative; }
.uw-swap { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px;
  color: #fff; background: rgba(20, 4, 6, .62); box-shadow: inset 0 0 0 2px rgba(255, 70, 80, .8); opacity: 0; transition: opacity .15s; cursor: pointer; }
.uw-swap svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.uw-swap span { font: 400 16px/1 var(--display); }
.uw-swap small { font: 700 11px var(--body); color: #ffb0b4; }
.uw-from.swap:hover .uw-swap, .uw-swap:focus-visible { opacity: 1; }
/* (31 Oct) an upgrade on the Ascension path you already own (kept through a Rebirth) */
.anode li.an-own { display: flex; align-items: center; gap: 5px; color: #7ee8a8; }
.anode li.an-own svg { width: 13px; height: 13px; flex: none; }
/* (31 Oct) the backpack count on the Units page */
#uCount b { color: var(--text); }
#uCount.bag-warn, #uCount.bag-warn b { color: #ffc24a; }
#uCount.bag-full, #uCount.bag-full b { color: #ff6a5a; }
@media (prefers-reduced-motion: reduce) { .mk-socks.picking .mk-sock .mk-well, .mk-sock.pop .mk-well { animation: none; } }

/* (31 Oct) the coin toss's summary card, in the market's wood; hover a coin for its card; Legendary+ glow (aura) */
.ro { --edge: #1c0f07; --cream: #f6ead2; --tan: #c9b08a; --cl: #6a4626;
  position: fixed; z-index: 60; right: 40px; top: 176px; width: 360px; zoom: var(--uiz, 1); }
.ro-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px;
  background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(0,0,0,.07) 9px 11px), linear-gradient(180deg, #8a5e38, #5e3c22 45%, #3e2614);
  box-shadow: 0 0 0 3px var(--edge), inset 0 2px 0 rgba(255,225,170,.3), 0 20px 44px rgba(0,0,0,.55); }
.ro-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ro-head b { font: 400 22px/1 var(--display); color: var(--cream); text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.ro-sub { font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: #ffe2a0; }
.ro-coins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px 10px; border-radius: 12px; background: #140e09; box-shadow: inset 0 0 0 2px var(--edge), inset 0 6px 12px rgba(0,0,0,.55); }
.ro.one .ro-coins { grid-template-columns: 1fr; justify-items: center; }
.ro-c { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; transition: transform .18s cubic-bezier(.3,1.5,.5,1); }
.ro.one .ro-c { width: 110px; }
.ro-ph { width: 78%; aspect-ratio: 1; border-radius: 50%; background: #0b0704; box-shadow: inset 0 3px 6px rgba(0,0,0,.8), 0 0 0 2px #4a3420; }
.ro-c canvas { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 4px 4px rgba(0,0,0,.6)); }
.ro-c.in { animation: ro-in .4s cubic-bezier(.3,1.6,.5,1); cursor: pointer; }
@keyframes ro-in { from { transform: scale(.3); opacity: 0; } }
.ro-c.in:hover { transform: translateY(-8px) scale(1.12); }
.ro-c.gone canvas { filter: grayscale(.7) brightness(.7); }
.ro-x { position: absolute; z-index: 2; bottom: -4px; padding: 1px 6px; border-radius: 999px; font: 800 9px/1.3 var(--body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #3a3f4c; }
/* the aura: Legendary gold, Mythic every colour, turning */
.ro-c::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; opacity: 0; transition: opacity .2s;
  background: radial-gradient(circle, color-mix(in srgb, var(--rc) 70%, transparent) 30%, color-mix(in srgb, var(--rc) 25%, transparent) 55%, transparent 70%); }
.ro-c.rr-legendary::before, .ro-c.rr-mythic::before { opacity: .35; }
.ro-c.rr-legendary:hover::before, .ro-c.rr-mythic:hover::before { opacity: 1; animation: ro-aura 1.4s ease-in-out infinite; }
.ro-c.rr-mythic::before { background: conic-gradient(from 0deg, #ff5a6a, #ffd23a, #5aff9a, #4ad8ff, #a87aff, #ff5ad8, #ff5a6a);
  -webkit-mask: radial-gradient(circle, #000 30%, rgba(0,0,0,.4) 55%, transparent 70%); mask: radial-gradient(circle, #000 30%, rgba(0,0,0,.4) 55%, transparent 70%); }
.ro-c.rr-mythic:hover::before { animation: ro-aura 1.4s ease-in-out infinite, ro-spin 3s linear infinite; }
@keyframes ro-aura { 50% { scale: 1.15; } }
@keyframes ro-spin { to { rotate: 1turn; } }
.ro-more { display: flex; flex-direction: column; gap: 10px; }
.ro-tally { display: flex; flex-wrap: wrap; gap: 6px; }
.ro-tally span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 700 13px var(--body); color: var(--cream); background: rgba(20,12,6,.7); box-shadow: inset 0 0 0 1px var(--cl); }
.ro-tally i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 6px var(--rc); }
.ro-best { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #21160d; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 60%, #2a1a0c); }
.ro-best canvas { width: 52px; height: 52px; flex: none; }
.ro-best div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ro-best small { font: 800 10px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--tan); }
.ro-best b { font: 400 17px/1.15 var(--display); color: var(--cream); }
.ro-best span { font: 600 13px var(--body); color: #efe2c8; }
.ro-scr { font: 700 13px var(--body); color: var(--tan); }
.ro-scr .shard-ic svg, .rt .shard-ic svg { width: 13px; height: 13px; }
.ro-foot { display: flex; align-items: center; gap: 10px; }
.ro-hint { flex: 1; font: 600 12.5px var(--body); color: var(--tan); }
.ro-go { width: auto; padding: 6px 22px; margin: 0; }
.ro-go[hidden] { display: none; }
/* a coin's card */
.ro-tip { position: absolute; right: calc(100% + 14px); top: 0; width: 290px; opacity: 0; translate: 10px 0; pointer-events: none; transition: opacity .15s, translate .15s, top .12s; }
.ro-tip.on { opacity: 1; translate: 0 0; }
.ro-tip .rt { padding: 14px; border-radius: 14px; background: #1a120b; box-shadow: 0 0 0 3px var(--edge), inset 0 0 0 2px color-mix(in srgb, var(--rc) 70%, #2a1a0c), 0 16px 34px rgba(0,0,0,.6); }
.rt { display: flex; flex-direction: column; gap: 10px; }
.ro.one .ro-more .rt { padding: 12px; border-radius: 12px; background: #1a120b; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 60%, #2a1a0c); }
.ro.one .rt-top { display: none; }
.rt-top { display: flex; align-items: center; gap: 12px; }
.rt-top canvas { width: 54px; height: 54px; flex: none; }
.rt-top b { display: block; font: 400 19px/1.1 var(--display); color: var(--cream); }
.rt-top em { font: 800 11px var(--body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--rc) 80%, #fff); }
.rt-does { font: 400 20px/1.2 var(--display); color: #fff; text-shadow: 0 0 14px color-mix(in srgb, var(--rc) 50%, transparent); }
.rt-q { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; font: 600 12px var(--body); color: var(--tan); }
.rt-q b { color: #fff; }
.rt-q i { height: 6px; border-radius: 3px; background: #0b0704; overflow: hidden; }
.rt-q s { display: block; height: 100%; background: var(--rc); }
.rt-q small { grid-column: 2; font-size: 10.5px; opacity: .8; }
.rt-tiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.rt-tiers li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 8px; border-radius: 6px; font: 600 12px var(--body); color: #a8957a; }
.rt-tiers li span { color: color-mix(in srgb, var(--tc) 70%, #8a7a60); }
.rt-tiers li.on { background: color-mix(in srgb, var(--tc) 18%, #0b0704); color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 60%, transparent); }
.rt-tiers li.on span { color: var(--tc); }
.rt-cmp { font: 700 12.5px/1.35 var(--body); color: var(--tan); }
.rt-cmp.up { color: #8ef27a; } .rt-cmp.lo { color: #ff9a7a; }
.rt-sc { font: 600 11.5px var(--body); color: #8a7a60; }
.ro-c.hl { transform: translateY(-8px) scale(1.12); }
.ro-c.rr-legendary.hl::before, .ro-c.rr-mythic.hl::before { opacity: 1; }
/* the card beside the pointer for a coin in the world */
.ro-wtip { --edge: #1c0f07; --cream: #f6ead2; --tan: #c9b08a; position: fixed; z-index: 61; width: 290px; pointer-events: none; opacity: 0; transform-origin: 0 0; scale: var(--uiz, 1); transition: opacity .12s; }
.ro-wtip.on { opacity: 1; }
.ro-wtip .rt { padding: 14px; border-radius: 14px; background: #1a120b; box-shadow: 0 0 0 3px var(--edge), inset 0 0 0 2px color-mix(in srgb, var(--rc) 70%, #2a1a0c), 0 16px 34px rgba(0,0,0,.6); }
@media (prefers-reduced-motion: reduce) { .ro-c::before { animation: none !important; } .ro-c.in { animation: none; } }
