/* Alliance Wars - lord panel, inventory, storage, chest reveal, customize. Portrait first. */
.lord small { display: block; font-size: 12px; color: var(--ink2); }
.lord h3 { font-size: 20px; }

/* profile */
.lp-hero { display: flex; gap: 14px; align-items: center; background: linear-gradient(160deg, #2e3c5c, #1d2538); }
.lp-por .avatar { border-width: 4px; }
.lp-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.lp-name { font-size: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-lvl { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--pix); }
.lp-lvl b { font-size: 17px; color: var(--gold); }
.lp-chips .chip { font-size: 13px; }
.lp-cust { margin-top: 10px; }
.lp-league { display: flex; align-items: center; gap: 12px; border-color: #6b5a2a; background: linear-gradient(160deg, #3a3320, #232031); }
.lp-league small { margin-top: 3px; }
.lp-lgname { font-family: var(--pix); font-size: 20px; color: var(--gold); }
.lg-silver .lp-lgname { color: #dfe6ef; } .lg-platinum .lp-lgname { color: #8fe3d6; } .lg-diamond .lp-lgname { color: #9fd6ff; } .lg-legend .lp-lgname { color: #ff8fb0; } .lg-bronze .lp-lgname { color: #e0a070; }
.lp-adv { display: flex; align-items: center; gap: 10px; background: var(--card); border: 2px solid #11161f; border-radius: var(--r); padding: 10px; }
.lp-adv.on { border-color: var(--green); }
.lp-adv-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: var(--bg2); flex: none; }
.lp-adv-t { flex: 1; min-width: 0; } .lp-adv-t b { font-family: var(--pix); font-size: 16px; } .lp-adv-t em { display: block; font-style: normal; font-size: 12px; margin-top: 3px; }
.lp-adv .btn { flex-direction: column; gap: 0; line-height: 1.1; min-width: 70px; min-height: 46px; }
.lp-skins { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; touch-action: pan-x pan-y; }
.lp-skin { position: relative; flex: none; width: 78px; padding: 6px 4px; border-radius: 12px; background: var(--card); border: 2px solid #11161f; text-align: center; }
.lp-skin img { width: 56px; height: 56px; image-rendering: pixelated; object-fit: contain; }
.lp-skin:not(.own) img { opacity: .55; }
.lp-skin.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(245,198,60,.35); }
.lp-skin .lk { position: absolute; top: 4px; right: 4px; }
.lp-stats { padding: 4px 10px; }
.lp-srow { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 8px; min-height: 40px; border-bottom: 1px solid var(--line); }
.lp-srow:last-child { border: 0; }
.lp-srow small { margin-right: 6px; } .lp-srow span { font-family: var(--pix); font-size: 16px; color: var(--gold); min-width: 54px; text-align: right; }

/* stats */
.ls-tiles { margin-bottom: 10px; }
.ls-tiles .card + .card { margin-top: 0; }
.ls-tile { text-align: center; padding: 8px 4px; } .ls-tile b { display: block; font-family: var(--pix); font-size: 17px; margin-top: 2px; }
.ls-radar { display: grid; place-items: center; padding: 6px; background: radial-gradient(circle, #2b3a5a, #1c2436); }
.radar { width: 100%; max-width: 320px; }
.rd-ring { fill: rgba(255,255,255,.03); stroke: #4a5b80; stroke-width: 1; } .rd-ax { stroke: #4a5b80; stroke-width: 1; }
.rd-shape { fill: rgba(245,198,60,.38); stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; }
.rd-l { fill: var(--ink); font: 700 13px var(--pix); } .rd-v { fill: var(--gold); font: 800 12px var(--txt); }
.ls-row b { font-family: var(--pix); } .ls-tot { font-size: 20px; color: var(--gold); }
.ls-desc { font-size: 12px; color: var(--ink2); }
.ls-src { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.src { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.35); color: var(--ink2); }
.src.sk { color: #a3f0b0; } .src.ge { color: #9fd6ff; } .src.lg { color: #ffd77a; } .src.ot { color: #e0b3ff; }

/* skills */
.sk-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sk-top > small { flex: 1; }
.sk-pts { display: flex; align-items: center; gap: 6px; } .sk-pts b { font: 700 24px var(--pix); }
.sk-pts.has b { color: var(--green); }
.sk-board { position: relative; margin-top: 12px; aspect-ratio: 1 / 1.05; border-radius: var(--r2); border: 3px solid #0d111a; background: radial-gradient(circle at 50% 40%, #2c3a58, #161d2c 75%); }
.sk-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.sk-lines line { stroke: #3d4a68; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-width: 5px; stroke-linecap: round; }
.sk-lines line.on { stroke: var(--gold2); }
.sk-node { position: absolute; transform: translate(-50%, -50%); width: 66px; min-height: 70px; padding: 5px 2px 4px; border-radius: 14px; background: linear-gradient(#3a4a6e, #26314b); border: 3px solid #0d111a; box-shadow: inset 0 -4px 0 rgba(0,0,0,.3), 0 3px 0 #0a0d14; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.sk-node b { font: 700 13px var(--pix); } .sk-node small { font-size: 12px !important; color: var(--ink2); line-height: 1.1; }
.sk-node.some { border-color: var(--gold2); } .sk-node.max { border-color: var(--gold); background: linear-gradient(#6a5521, #3a3020); }
.sk-node.lk { filter: grayscale(.9) brightness(.65); }
.sk-node .lk { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; }
.sk-plus { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: #23803a; color: #fff; font: 800 16px/20px var(--txt); font-style: normal; border: 2px solid #0d111a; }
.sk-hint { text-align: center; font-size: 12px; }
.sk-det { display: flex; gap: 12px; align-items: center; } .sk-det p { margin: 4px 0 0; text-align: left !important; }
.sk-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 8px; }
.sk-vals div { background: var(--card); border-radius: 10px; padding: 6px; text-align: center; } .sk-vals b { font: 700 18px var(--pix); color: var(--gold); }

/* inventory: paper doll */
.pd { display: grid; grid-template-columns: 70px 1fr 70px; gap: 6px; background: linear-gradient(170deg, #2d3a58, #1a2133); }
.pd-col { display: flex; flex-direction: column; gap: 6px; }
.pd-bot { grid-column: 1 / -1; display: flex; justify-content: center; gap: 22px; }
.pd-slot { text-align: center; } .pd-slot small { font-size: 12px !important; }
.pd-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.pd-tot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pd-tot span { font-size: 12px; background: rgba(0,0,0,.35); border-radius: 999px; padding: 2px 7px 2px 3px; display: inline-flex; align-items: center; gap: 3px; color: var(--green); }
.inv-eq { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.inv-eq .btn { text-transform: capitalize; }
.inv-head { margin: 14px 0 8px; } .inv-sub { flex: 1; margin-right: 8px; } .inv-sub button { min-height: 40px; }
.chip.dust { font-size: 15px; color: #e0b3ff; }
.inv-filter { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; touch-action: pan-x pan-y; }
.inv-filter button { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--card); border: 2px solid #11161f; display: grid; place-items: center; }
.inv-filter button.on { border-color: var(--gold); background: var(--card2); }
.inv-filter .ic { width: 26px; height: 26px; }
.inv-tools { margin: 8px 0; } .inv-tools .seg { width: 170px; }
.inv-bulk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; border-color: var(--red); }
.inv-bulk span { flex: 1; }
.it-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 7px; }
.it-tile { position: relative; width: 100%; aspect-ratio: 1; min-width: 56px; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc, #888) 45%, #1a2233), #151b29 80%); border: 3px solid var(--rc, #555); box-shadow: inset 0 -4px 0 rgba(0,0,0,.35), 0 2px 0 #0a0d14; }
.pd .it-tile { width: 60px; }
.it-tile.empty { background: rgba(0,0,0,.3); border: 2px dashed #4a5b80; box-shadow: none; } .it-tile.empty .ic { opacity: .35; }
.it-tile.r4, .it-tile.r5 { box-shadow: 0 0 10px var(--rc), inset 0 -4px 0 rgba(0,0,0,.35); }
.it-tile .ic.lg { width: 34px; height: 34px; }
.it-stars { position: absolute; bottom: 1px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--gold); letter-spacing: -1px; text-shadow: 0 1px 0 #000; }
.it-gems { position: absolute; top: 3px; left: 4px; display: flex; gap: 2px; }
.it-gems i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.55); border: 1px solid #000; }
.it-eq { position: absolute; top: -5px; right: -5px; width: 19px; height: 19px; border-radius: 50%; background: var(--green); color: #fff; font: 800 11px/17px var(--txt); border: 2px solid #0d111a; }
.it-tile.sel { outline: 3px solid var(--red); outline-offset: 2px; }
.it-tile.sel::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font: 800 28px var(--txt); color: #fff; background: rgba(224,87,77,.45); border-radius: 9px; }
.it-tile.dim { opacity: .35; }

/* item sheet */
.it-sheet .its-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.its-head .it-tile { width: 72px; flex: none; } .its-head h3 { text-align: left; margin: 0 0 3px; font-size: 18px; }
.its-stat { display: flex; gap: 10px; align-items: center; background: var(--card); border-radius: 12px; padding: 10px; } .its-stat b { font: 700 18px var(--pix); color: var(--green); }
.its-row { display: flex; justify-content: space-between; align-items: center; margin: 10px 2px; font-weight: 800; }
.stars { color: var(--gold); font-size: 20px; letter-spacing: 1px; } .stars i { color: #3d4a68; font-style: normal; }
.sock { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; border-radius: 10px; background: var(--card); margin-bottom: 6px; }
.sock > span:nth-child(2) { flex: 1; }
.its-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; } .its-acts .btn:first-child { grid-column: 1 / -1; }
.its-acts .btn { padding: 0 8px; font-size: 14px; }
.gem-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; transform: rotate(45deg); background: var(--gc, #444); border: 2px solid #0d111a; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.gem-ic .ic { transform: rotate(-45deg); } .gem-ic.empty { background: rgba(0,0,0,.4); border-style: dashed; box-shadow: none; }

/* gems */
.gem-bar { display: flex; flex-direction: column; gap: 8px; position: sticky; top: -12px; z-index: 2; }
.gem-bar .row { flex-wrap: wrap; gap: 6px; } .gem-bar .btn { flex: 1; }
.gem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 7px; }
.gem-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 6px; border-radius: 12px; background: var(--card); border: 2px solid #11161f; min-height: 82px; }
.gem-tile b { font-size: 13px; color: var(--green); } .gem-tile small { font-size: 12px !important; }
.gem-tile.sel { border-color: var(--gold); background: var(--card2); box-shadow: 0 0 0 2px rgba(245,198,60,.4); }
.gem-pick { display: flex; flex-direction: column; gap: 6px; }
.gem-row { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; border-radius: 10px; background: var(--card); text-align: left; }
.gem-row span { margin-left: auto; color: var(--green); }

/* storage */
.st-row, .st-free { display: flex; align-items: center; gap: 10px; }
.st-t { flex: 1; min-width: 0; } .st-t b { font-family: var(--pix); font-size: 16px; } .st-n { color: var(--gold); }
.st-free { background: linear-gradient(160deg, #3a3320, #232031); border-color: #6b5a2a; }
.st-free.ready { border-color: var(--gold); box-shadow: 0 0 14px rgba(245,198,60,.35); }

/* chest reveal */
.md-wrap:has(.chest-md) { padding: 0; background: radial-gradient(circle at 50% 30%, #3b2f5e, #0a0c14 75%); }
.md.chest-md { max-width: 560px; height: 100%; max-height: none; border: 0; border-radius: 0; background: transparent; box-shadow: none; display: flex; flex-direction: column; justify-content: center; }
.cr { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cr-rays { position: absolute; top: -40px; width: 300px; height: 300px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,215,95,.16) 0 10deg, transparent 10deg 24deg); animation: spin 18s linear infinite; pointer-events: none; }
.cr-chest { position: relative; animation: wob 1.6s ease-in-out infinite; cursor: pointer; }
.cr-big { width: 128px; height: 128px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.5)) drop-shadow(0 0 18px rgba(255,215,95,.5)); }
.cr h3 { position: relative; font-size: 24px; color: var(--gold); text-shadow: 0 3px 0 #000; }
.cr-hint { position: relative; color: var(--ink2); margin: 0; }
.cr-cards { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; width: 100%; max-height: 52vh; overflow-y: auto; padding: 6px; }
.cr-card { min-height: 128px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px; }
.cr-cards.intro .cr-card.back { animation: pop .3s backwards; }
.cr-card.back { background: repeating-linear-gradient(45deg, #2f3d6a 0 8px, #27335a 8px 16px); border: 3px solid var(--gold2); box-shadow: inset 0 -4px 0 rgba(0,0,0,.35); }
.cr-card.back b { font: 700 38px var(--pix); color: var(--gold); }
.cr-card.open { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 50%, #1a2233), #121826 80%); border: 3px solid var(--rc); box-shadow: 0 0 18px var(--rc); animation: flip .35s; }
.cr-card.open b { font-size: 13px; line-height: 1.15; } .cr-card.open em { font-style: normal; font-weight: 800; font-size: 12px; } .cr-card.open small { color: var(--green); font-size: 12px; }
.cr-ic .ic.xl { width: 52px; height: 52px; }
.cr-btns { position: relative; display: flex; gap: 8px; width: 100%; padding: 0 6px; } .cr-btns .btn { flex: 1; min-height: 50px; font-size: 17px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wob { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-4px); } }
@keyframes flip { from { transform: rotateY(90deg) scale(.9); } }

/* customize */
.cz-intro { margin: 0 2px 10px; font-size: 13px; }
.cz .grid2 .card + .card { margin-top: 0; }
.cz-skin { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; } .cz-skin b { font-family: var(--pix); font-size: 16px; }
.cz-skin.on { border-color: var(--gold); }
.cz-prev { width: 100%; height: 96px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(#6fb25a, #4c8a3f); }
.cz-prev img { width: 84px; height: 84px; image-rendering: pixelated; object-fit: contain; }
.cz-ban { display: flex; flex-direction: column; align-items: center; gap: 12px; background: radial-gradient(circle, #2f3d5e, #1a2133); }
.cz-sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.cz-sw button { aspect-ratio: 1; min-height: 40px; border-radius: 10px; border: 3px solid #0d111a; }
.cz-sw button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
.cz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.cz-opts button { min-height: 50px; padding: 4px; border-radius: 10px; background: var(--card); border: 2px solid #11161f; display: grid; place-items: center; }
.cz-opts button.on { border-color: var(--gold); background: var(--card2); }
.cz-avbig { display: flex; flex-direction: column; align-items: center; gap: 10px; } .cz-avbig b { font: 700 20px var(--pix); }
.cz-avs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.cz-avs button { display: grid; place-items: center; padding: 8px 0; border-radius: 12px; background: var(--card); border: 2px solid #11161f; }
.cz-avs button.on { border-color: var(--gold); background: var(--card2); }
.cz-ren { display: flex; align-items: center; gap: 14px; }
.cz-lbl { display: block; font-weight: 800; margin-bottom: 6px; }
.cz input { min-height: 46px; font-size: 16px; }
.cz .card p { text-align: left; font-size: 13px; }

/* ---- premium pass ---- */
.lp-hero { background: linear-gradient(160deg, #34466c, #1d2538); border-color: #0c1019; box-shadow: inset 0 0 0 1px rgba(233,199,106,.3), inset 0 1px 0 rgba(255,255,255,.1), 0 3px 0 rgba(0,0,0,.35); }
.lp-league .ic.xl { width: 64px; height: 64px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.55)); }
.lp-league { box-shadow: inset 0 0 0 1px rgba(233,199,106,.25), 0 3px 0 rgba(0,0,0,.35); }
.lp-adv { background: linear-gradient(175deg, #283450, #1f283d); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 rgba(0,0,0,.3); }
.lp-adv-ic { width: 64px; height: 64px; border-radius: 12px; background: radial-gradient(circle at 50% 35%, #4a5f8c, #1f2840); border: 2px solid #c9a24a; box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.lp-adv-ic .ic.lg { width: 56px; height: 56px; }
.lp-adv.on .lp-adv-ic { border-color: var(--green); box-shadow: 0 0 10px rgba(79,207,110,.45); }
.lp-srow { grid-template-columns: 34px 1fr auto auto; min-height: 46px; }
.lp-srow .ic { width: 30px; height: 30px; }
.ls-tile .ic { width: 34px; height: 34px; }
.pd { grid-template-columns: 76px 1fr 76px; box-shadow: inset 0 0 0 1px rgba(233,199,106,.25), inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 rgba(0,0,0,.35); }
.pd .it-tile { width: 66px; }
.pd-slot small { margin-top: 3px; font-weight: 800; }
.it-tile .ic.lg { width: 44px; height: 44px; filter: drop-shadow(0 2px 1px rgba(0,0,0,.5)); }
.it-tile.empty .ic.lg { width: 36px; height: 36px; filter: grayscale(1); opacity: .4; }
.it-tile { box-shadow: inset 0 -4px 0 rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.12), 0 0 8px color-mix(in srgb, var(--rc, #000) 40%, transparent), 0 2px 0 #0a0d14; }
.it-tile.r3 { box-shadow: inset 0 -4px 0 rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.15), 0 0 12px var(--rc), 0 2px 0 #0a0d14; }
.it-tile.r4, .it-tile.r5 { box-shadow: inset 0 -4px 0 rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.2), 0 0 16px var(--rc), 0 0 4px var(--rc), 0 2px 0 #0a0d14; }
.it-tile.empty { box-shadow: inset 0 2px 6px rgba(0,0,0,.4); }
.it-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 9px; }
.inv-filter .ic { width: 30px; height: 30px; }
.inv-filter button { width: 48px; height: 48px; }
.its-head .it-tile { width: 84px; } .its-head .it-tile .ic.lg { width: 56px; height: 56px; }
.st-row > .ic, .st-free > .ic { width: 56px; height: 56px; filter: drop-shadow(0 2px 1px rgba(0,0,0,.5)); }
.cr-big { width: 176px; height: 176px; }
.cr-rays { top: -60px; width: 340px; height: 340px; }
.cr-card.open { box-shadow: 0 0 18px var(--rc), inset 0 0 0 1px rgba(255,255,255,.2); }
.cr-ic .ic.xl { width: 60px; height: 60px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.sk-node .ic { width: 30px; height: 30px; }
.pd .it-tile { height: 66px; aspect-ratio: auto; }
.sk-top { background: linear-gradient(160deg, #33436a, #1e263a); box-shadow: inset 0 0 0 1px rgba(233,199,106,.3), 0 3px 0 rgba(0,0,0,.35); }
.sk-top > small { font-size: 12.5px; line-height: 1.25; }
.sk-pts .ic.lg { width: 40px; height: 40px; } .sk-pts b { font-size: 28px; line-height: 1; } .sk-pts small { white-space: nowrap; }
.sk-board { box-shadow: inset 0 0 0 1px rgba(233,199,106,.2), inset 0 0 40px rgba(0,0,0,.4); }
.sk-node { width: 70px; }
.its-stat { background: linear-gradient(175deg, #283450, #1f283d); box-shadow: inset 0 0 0 1px rgba(79,207,110,.25); }
.its-stat small { display: block; color: var(--ink2); font-size: 12.5px; margin-top: 3px; line-height: 1.3; }
.its-stat .ic.lg { width: 40px; height: 40px; }
/* polish A: gear tools on one line, empty gem sockets, advisor hire buttons, settings credits link */
.inv-tools { gap: 6px; } .inv-tools .seg { width: 136px; flex: none; }
.inv-tools .btn.small { flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 0 8px; font-size: 13px; white-space: nowrap; }
.gem-ic.empty { padding: 0; font-weight: 400; border-radius: 8px; border: 2px dashed #3a4868; background: rgba(0,0,0,.35); }
.sock { min-height: 48px; padding: 4px 8px 4px 12px; } .sock > .gem-ic { margin-right: 4px; }
.lp-adv .btn.adv-hire { min-width: 84px; padding: 4px 10px; } .adv-hire > span { font-weight: 800; }
.adv-hire small { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; color: inherit !important; opacity: 1; }
.so-credits a { color: var(--gold); text-decoration: none; word-break: break-word; }
.cz-tier { display: block; margin: 2px auto 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cz-tier.t-rare { color: #5fb7ff; } .cz-tier.t-epic { color: #c07bff; } .cz-tier.t-legendary { color: #ffb02e; text-shadow: 0 0 6px rgba(255,150,0,.55); }
.cz-tier.t-crown { color: #ffd54a; text-shadow: 0 0 8px rgba(255,190,40,.7); }
.cz-tier.t-event { color: #ff7a59; }
.lp-skin-art { display: flex; justify-content: center; height: 56px; } .lp-skin-art img { image-rendering: auto !important; }
/* march skins (client/marchskin.js): an animated strip, one row of the skin's sheet stepped with CSS */
.ms-anim { display: inline-block; width: var(--w); height: var(--h); zoom: var(--s); background-repeat: no-repeat; background-position: 0 calc(var(--r) * var(--h) * -1); image-rendering: pixelated; animation: ms-step var(--d) steps(var(--n)) infinite; }
@keyframes ms-step { from { background-position-x: 0; } to { background-position-x: calc(var(--w) * var(--n) * -1); } }
@media (prefers-reduced-motion: reduce) { .ms-anim { animation: none; } }
.lp-skin-art .ms-anim { align-self: flex-end; }
.lp-skin:not(.own) .ms-anim { opacity: .55; }
.cz-prev.ms { background: linear-gradient(#7fb865, #557f3f); overflow: hidden; }
.so-credits { display: grid; gap: 8px; }
.cz-prize { display: block; margin: 2px 0 4px; color: #ffd75f; font-size: 11.5px; line-height: 1.3; }

/* ---- skill tree v2: nodes are big art tiles, detail card below (beside it in landscape) ---- */
.sk-board { aspect-ratio: 1 / 1.08; }
.sk-node { width: 74px; min-height: 0; padding: 0; gap: 0; background: none; border: 0; box-shadow: none; }
.sk-art { position: relative; width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(#3a4a6e, #222c44); border: 3px solid #0d111a; box-shadow: inset 0 -4px 0 rgba(0,0,0,.3), 0 3px 0 #0a0d14; }
.sk-node .sk-art .ic { width: 52px; height: 52px; }
.sk-node.some .sk-art { border-color: var(--gold2); }
.sk-node.max .sk-art { border-color: var(--gold); background: linear-gradient(#6a5521, #3a3020); }
.sk-node.sel .sk-art { border-color: #8fd0ff; box-shadow: 0 0 0 3px rgba(143,208,255,.35), 0 0 18px rgba(143,208,255,.55), inset 0 -4px 0 rgba(0,0,0,.3); }
.sk-node.lk { filter: none; } .sk-node.lk .sk-art { filter: grayscale(.9) brightness(.6); }
.sk-n { margin-top: -10px; min-width: 26px; padding: 1px 6px; border-radius: 9px; background: #0d111a; border: 2px solid #3d4a68; font: 700 12px var(--txt) !important; z-index: 1; }
.sk-node.some .sk-n { border-color: var(--gold2); } .sk-n i { font-style: normal; color: #6ee37f; margin-left: 2px; }
.sk-node small { font-size: 11px !important; color: var(--ink2); margin-top: 1px; text-shadow: 0 1px 2px #000; }
.sk-node .lk { top: -4px; right: 2px; width: 20px; height: 20px; }
.sk-top { gap: 8px; } .sk-top .btn { flex: none; }
.sk-detail { margin-top: 12px; padding: 12px; }
.sk-dh { display: flex; gap: 12px; align-items: flex-start; }
.sk-dart { position: relative; flex: none; width: 84px; height: 84px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #4a5d8a, #1d2538); border: 3px solid var(--gold2); }
.sk-dart .ic { width: 72px; height: 72px; } .sk-dart.lk .ic { filter: grayscale(.9) brightness(.6); }
.sk-dart b { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 9px; background: #0d111a; border: 2px solid var(--gold2); font: 700 12px var(--txt); white-space: nowrap; }
.sk-dtx { min-width: 0; } .sk-dtx > b { font-size: 18px; display: block; } .sk-dtx p { margin: 4px 0 0; font-size: 13px; line-height: 1.3; color: var(--ink2); }
.sk-vals .pend b { color: #6ee37f; }
.sk-req { font-size: 13px; margin: 4px 0 8px; display: flex; align-items: center; gap: 6px; }
.sk-btns { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 8px; }
.sk-btns .btn[disabled] { opacity: .45; filter: grayscale(.6); }
.sk-ask { text-align: center; } .sk-ask-art .ic { width: 72px; height: 72px; }

/* ---- inventory v2: art fills tiles, one-tap Equip all, equipped checkmarks, compare line ---- */
.it-tile .ic.lg { width: 80%; height: 80%; }
.it-tile.empty .ic.lg { width: 62%; height: 62%; }
.it-eq { width: 22px; height: 22px; font: 900 13px/18px var(--txt); background: #2e9a43; }
.inv-eq { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; }
.inv-eq-t { font-size: 14px; color: var(--gold); white-space: nowrap; }
.inv-eq-row { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.inv-eqb { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px 4px; border-radius: 12px; background: linear-gradient(#2f7fd6, #1d56a6); border: 2px solid #0d111a; box-shadow: inset 0 -3px 0 rgba(0,0,0,.3), 0 2px 0 #0a0d14; color: #fff; }
.inv-eqb.best { background: linear-gradient(#ffd75f, #e09a1f); color: #3b2a1a; }
.inv-eqb .ic { width: 34px; height: 34px; } .inv-eqb small { font-size: 11px !important; font-weight: 800; color: inherit; }
.inv-eqb:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0,0,0,.3); }
.its-cmp { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 8px 0; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.28); font-size: 13px; }
.its-cmp small { width: 100%; } .its-cmp span { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; }
@media (max-width: 380px) { .sk-art { width: 52px; height: 52px; } .sk-node .sk-art .ic { width: 44px; height: 44px; } .sk-node small { font-size: 10px !important; } }
