/* One painted-steel skin-card treatment shared by every item catalogue. */
:root{--skin-edge:#93683b;--skin-highlight:#ffad55;--skin-ink:#fff2d8;--skin-price:#ffca78;--skin-surface:radial-gradient(ellipse at 50% 24%,#d9773380,transparent 63%),linear-gradient(#101f27c9,#101f27c9),url('assets/metal-texture.svg'),linear-gradient(145deg,#24383c,#101c21 70%)}
body :is(.rf-item,.item-card,.bonus-card,.funding-item,.ch-inventory-grid>article){position:relative;isolation:isolate;box-sizing:border-box;min-width:0;overflow:hidden;border:1px solid var(--skin-edge);border-top:3px solid var(--skin-highlight);border-radius:3px;background:var(--skin-surface);color:var(--skin-ink);box-shadow:inset 0 0 25px #030a0d80,0 8px 24px #0005;transition:border-color .2s,box-shadow .2s}
body :is(.rf-item,.item-card,.bonus-card,.funding-item,.ch-inventory-grid>article):hover{border-color:#ffc473;background:var(--skin-surface);box-shadow:0 10px 30px #0007,inset 0 0 32px #b56b2222}
body :is(.rf-item,.item-card,.bonus-card,.funding-item,.ch-inventory-grid>article):focus-visible{outline:2px solid #9ce9e0;outline-offset:3px}
body :is(.rf-item,.item-card,.ch-inventory-grid>article)::before{content:'RUSTFIGHT / SKIN';display:block;align-self:stretch;padding:0 22px 10px 0;margin-bottom:8px;border-bottom:1px solid #d59a4855;font:700 10px/1.3 RobotoCondensed,sans-serif;letter-spacing:1.3px;text-align:left;color:#f7c389;white-space:normal;flex-shrink:0}
body :is(.rf-item>img,.item-card>img.item,.bonus-art img,.funding-item>img,.ch-inventory-grid>article>img){object-fit:contain;filter:drop-shadow(0 14px 9px #0009);transition:transform .25s}
body :is(.rf-item>h3,.item-card .item-name,.bonus-card>h3,.funding-item>strong,.ch-inventory-grid>article>strong){color:var(--skin-ink);font-family:RobotoCondensed,sans-serif;line-height:1.2;overflow-wrap:anywhere}
body :is(.rf-item-price,.item-card>.price,.bonus-card .bonus-price,.funding-item>small,.ch-inventory-grid>article>small){color:var(--skin-price);font-weight:700;text-shadow:0 2px 14px #f09c2433;font-variant-numeric:tabular-nums}
/* Rows follow their content, including names, prices and optional quote notes. */
#upgrade-stage :is(.source-card,.up-target-card:not(.empty)){background:var(--skin-surface);border:1px solid var(--skin-edge);border-top:3px solid var(--skin-highlight);box-shadow:inset 0 0 25px #030a0d80}
#upgrade-stage :is(.source-card,.up-target-card) .price{color:var(--skin-price)}
#upgrade-stage .up-grid{grid-auto-rows:max-content;align-items:stretch;gap:14px;padding-top:14px;padding-bottom:20px}
#upgrade-stage .up-inventory .up-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#upgrade-stage .up-catalog .up-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#upgrade-stage .up-grid>.item-card{height:auto;min-height:270px;padding:12px;align-items:stretch;justify-content:flex-start}
#upgrade-stage .item-card>img.item{width:100%;height:132px;min-height:132px;flex-shrink:0;margin:2px 0 8px}
#upgrade-stage .item-card .item-name{font-size:17px;line-height:21px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-height:42px;max-height:42px;margin:0 0 10px;text-align:left;flex-shrink:0}
#upgrade-stage .item-card>.price{justify-content:flex-start;border-top:1px solid #dcaa5e40;padding-top:10px;margin-top:auto;font-size:24px;line-height:29px;flex-shrink:0}
#upgrade-stage .item-card .price img{width:28px;height:28px}
#upgrade-stage .item-card .item-chance{position:static;align-self:flex-start;order:5;margin:9px 0 0;padding:5px 7px;font-size:13px;line-height:1.1}
#upgrade-stage .item-card[aria-pressed=true]{border:1px solid #ffc473;border-top:3px solid #ffc473;box-shadow:inset 0 0 0 2px #ffb75588,0 0 18px #ff8c3a44;background:var(--skin-surface)}
#upgrade-stage .item-card[aria-pressed=true]::after{top:10px;right:10px;color:#ffe0a2}
#upgrade-stage .up-catalog .item-card:disabled{opacity:.68}
body .bonus-card{padding:18px;display:flex;flex-direction:column}
body .bonus-card .bonus-kind{color:#f7c389;padding-bottom:10px;border-bottom:1px solid #d59a4855;letter-spacing:1.5px;font-weight:700}
body .bonus-card .bonus-art{height:190px;margin:8px 0}
body .bonus-card h3{font-size:21px;min-height:52px;margin:9px 0 12px}
body .bonus-card .bonus-card-price{margin-top:auto;border-color:#dcaa5e40;padding-top:13px}
body .bonus-card .bonus-price strong{font-size:27px;color:var(--skin-price)}
body .bonus-card .bonus-buy:not(:disabled){background:linear-gradient(#df632f,#a53719);border-color:#f89750;color:#fff1da;box-shadow:inset 0 1px #ffd09b88,0 4px 12px #0004}
body .rf-item:not(.rf-profile-inventory .rf-item){padding:18px}
body .rf-item>img{height:190px;width:100%}
body .rf-item>h3{min-height:52px;font-size:21px;margin:9px 0 12px}
body .rf-item-price{border-top:1px solid #dcaa5e40;padding-top:13px;font-size:27px}
body .funding-item{padding:12px}
body .funding-item.is-selected{border-color:#ffd18a;box-shadow:inset 0 0 0 2px #ffc47388}
body .ch-inventory-grid>article{padding:12px;display:flex;flex-direction:column}
body .ch-inventory-grid>article>img{height:135px;width:100%}
body .ch-inventory-grid>article>strong{min-height:42px;margin:9px 0;font-size:17px}
body .ch-inventory-grid>article>small{display:block;margin-top:auto;padding-top:10px;border-top:1px solid #dcaa5e40;font-size:18px}
@media(max-width:760px){#upgrade-stage .up-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:max-content;gap:10px}#upgrade-stage .up-grid>.item-card{min-height:240px;padding:10px}#upgrade-stage .item-card>img.item{height:110px;min-height:110px}#upgrade-stage .item-card .item-name{font-size:15px}#upgrade-stage .item-card>.price{font-size:20px}body .bonus-card{padding:10px}body .bonus-card .bonus-art{height:135px}body .bonus-card h3{font-size:17px;min-height:42px}body .bonus-card .bonus-price strong{font-size:21px}body .rf-item>img{height:135px}}
@media(prefers-reduced-motion:reduce){body :is(.rf-item,.item-card,.bonus-card,.funding-item,.ch-inventory-grid>article),body :is(.rf-item>img,.item-card>img.item,.bonus-art img,.funding-item>img,.ch-inventory-grid>article>img){transition:none}}
