/* The case is a separate photographic layer. Only the skin above it moves. */
.collection-header {
  position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,1fr) minmax(270px,44%);
  align-items:center; min-height:178px; overflow:hidden; margin:0 0 18px;
  border:1px solid #443039; border-radius:18px;
  background:linear-gradient(112deg,#1c181c 15%,#241923 52%,#472636 82%,#251c27);
}
.collection-header::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background:repeating-linear-gradient(121deg, transparent 0 50px,#df97aa12 50px 51px,transparent 51px 90px);
  mask-image:linear-gradient(90deg,transparent 34%,#000 85%);
}
.collection-copy {padding:24px clamp(20px,3vw,44px);z-index:2}
.fusion-shell .collection-copy h1 {margin:0;color:#f5eef3;font:650 clamp(25px,2.4vw,36px)/1.16 var(--font-geologica);letter-spacing:-.045em}
.collection-copy p {display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin:8px 0 17px;color:#b9aab6;font-size:var(--type-label);font-variant-numeric:tabular-nums}
.collection-copy b {font-weight:550;color:#f3e8ee}
.collection-copy i {font-style:normal;color:#a8798c;margin:0 2px}
.collection-actions {display:flex;gap:8px;align-items:center}
.collection-actions button {min-height:38px;border-radius:10px;padding:8px 16px;font-size:var(--type-label)}
.collection-scene {position:relative;align-self:stretch;min-width:0;pointer-events:none}
.collection-scene::before {
  content:"";position:absolute;inset:0 -4% -24%;
  background:radial-gradient(ellipse at 47% 60%,#da74a153,transparent 64%);
}
.case-assembly {position:absolute;width:min(78%,320px);height:100%;left:44%;translate:-50% 0}
.case-shell {position:absolute;width:100%;height:auto;max-width:none;bottom:-5%;left:0;rotate:-5deg;filter:drop-shadow(0 11px 9px #08050aaa)}
.case-skin {position:absolute;inset:1% 4% auto;width:92%;height:79%;object-fit:contain;rotate:-7deg;filter:drop-shadow(0 9px 5px #100a12b5)}
.vault-empty {display:grid;place-items:center;align-content:center;gap:12px;min-height:190px;border:1px dashed #41333e;border-radius:14px;background:radial-gradient(ellipse at 50% 105%,#33232e5c,transparent 68%),#161417}
.vault-empty>svg {width:27px;height:27px;color:#bc819a}
.vault-empty h2 {margin:0;color:#d9cfd9;font-size:var(--type-subhead);font-weight:500}
.vault-empty button,.inventory-market-link {color:#dfb3c5;font-size:var(--type-label)}
.inventory-market-link {padding:6px 12px;text-decoration:underline;text-underline-offset:4px}
.fusion-shell .inventory-card .skin-art,.fusion-shell .shop-card .skin-art {position:relative;isolation:isolate}
.fusion-shell :is(.inventory-card,.shop-card) .skin-art::before {
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at 50% 80%,rgba(var(--item-rgb),.19),transparent 27%),
    repeating-linear-gradient(124deg,transparent 0 30px,rgba(var(--item-rgb),.055) 30px 31px,transparent 31px 62px);
}
.fusion-shell .inventory-card[data-status=withdrawn] .skin-art::before {opacity:.5}
.fusion-shell .inventory-card .skin-card-content {grid-template-rows:auto minmax(23px,auto) 30px minmax(36px,auto);align-content:end}
.fusion-shell .inventory-card .skin-card-content>small {height:auto}
.fusion-shell .inventory-card .skin-art img {width:91%;height:93%;max-width:320px}
.fusion-shell .inventory-card[data-status=withdrawn] .skin-art img {opacity:.78}
.fusion-shell .inventory-card .item-price {color:#f2eaf1}
.activity-page .history-recap {
  --trend-color:#bdb2c5;display:flex;gap:20px;align-items:center;min-height:105px;border:1px solid #403440;
  border-radius:16px;background:linear-gradient(110deg,#211b23,#19181c 68%,#211d24);padding:17px 24px;
}
.activity-page .history-recap[data-result-tone=positive]{--trend-color:#64cfab}
.activity-page .history-recap[data-result-tone=negative]{--trend-color:#ed8da8}
.history-recap .activity-overview-main {display:grid;gap:5px}
.history-recap .activity-overview-main strong {font-size:clamp(23px,2.6vw,35px);line-height:1.15}
.history-trend {width:clamp(140px,30%,380px);margin:0 0 0 auto;color:var(--trend-color)}
.history-trend figcaption {color:#b4a9b5;font-size:var(--type-caption);margin-bottom:3px}
.history-trend svg {display:block;width:100%;height:48px;overflow:visible}
.history-trend .trend-line,.history-trend .trend-zero {fill:none;stroke:currentColor;vector-effect:non-scaling-stroke}
.history-trend .trend-line {stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.history-trend .trend-zero {stroke-width:1;stroke-dasharray:3 5;opacity:.28}
.history-trend .trend-area {fill:currentColor;opacity:.09}
.history-trend circle {fill:currentColor}
.history-recap .activity-overview-note {margin-left:auto}
.fusion-shell .activity-row .activity-art.has-skin {
  border-radius:9px;background:radial-gradient(ellipse at 50% 65%,#51303f82,#221c2355 68%,transparent);
}
#modal:has(.purchase-receipt){width:min(450px,calc(100vw - 24px))}
.purchase-receipt ul {display:grid;gap:6px;list-style:none;padding:0 3px 0 0;margin:0 0 16px;max-height:min(34dvh,270px);overflow-y:auto;overscroll-behavior:contain}
.purchase-receipt li {display:grid;grid-template-columns:78px minmax(0,1fr) auto;align-items:center;column-gap:9px;padding:5px 10px 5px 2px;border-radius:10px;border:1px solid #383039;background:linear-gradient(110deg,rgba(var(--item-rgb),.10),#19171b 64%)}
.receipt-art {height:48px;display:grid;place-items:center}
.receipt-art img {width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #0006)}
.purchase-receipt li strong,.purchase-receipt li small {display:block}
.purchase-receipt li strong {font-size:var(--type-body);font-weight:550;color:#f0e5ef}
.purchase-receipt li small,.receipt-remainder {font-size:var(--type-caption);line-height:16px;color:#b0a5b0}
.receipt-line-price {text-align:right;font-size:var(--type-body);font-variant-numeric:tabular-nums;white-space:nowrap}
.receipt-total,.receipt-remainder {display:flex;align-items:center;justify-content:space-between;gap:12px}
.receipt-total {padding-top:12px;border-top:1px solid #383039;color:#ded6df;font-size:var(--type-body)}
.receipt-total strong {font-weight:550;font-size:27px;color:#f4edf1;font-variant-numeric:tabular-nums}
.receipt-remainder {margin-top:5px}
.receipt-remainder b {font-weight:500;color:#d6ced6}
@media (prefers-reduced-motion:no-preference) {
  .case-shell {animation:case-arrive 650ms cubic-bezier(.16,.78,.26,1) both}
  .case-skin {animation:skin-float 4s cubic-bezier(.4,0,.4,1) both}
  .history-trend .trend-line {stroke-dasharray:1;animation:draw-history 540ms ease-out both}
  .purchase-receipt li {animation:receipt-arrive 260ms ease-out backwards}
  .purchase-receipt li:nth-child(2) {animation-delay:40ms}
  .purchase-receipt li:nth-child(3) {animation-delay:70ms}
}
@keyframes case-arrive {from{opacity:.55;transform:translate(9px,5px)}to{opacity:1;transform:none}}
@keyframes skin-float {0%{opacity:.6;transform:translate3d(12px,7px,0)}22%{opacity:1;transform:translate3d(0,-5px,0)}57%{transform:translate3d(-3px,1px,0)}82%{transform:translate3d(0,-2px,0)}100%{opacity:1;transform:none}}
@keyframes draw-history {from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes receipt-arrive {from{opacity:.5;translate:0 4px}to{opacity:1;translate:0 0}}
@media(max-width:640px) {
  .collection-header {display:block;min-height:153px;margin-bottom:13px;border-radius:14px}
  .collection-copy {position:relative;padding:16px 14px}
  .fusion-shell .collection-copy h1 {font-size:23px}
  .collection-copy p {max-width:54%;font-size:var(--type-caption);line-height:16px;gap:3px 5px;margin:6px 0 19px}
  .collection-scene {position:absolute;inset:0 -3% 43px 54%}
  .case-assembly {width:97%;left:51%}
  .case-skin {height:87%;inset:0 0 auto;width:100%}
  .collection-actions button {min-height:38px;padding-inline:12px}
  .activity-page .history-recap {display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,.8fr);gap:8px 16px;padding:14px 16px}
  .history-trend {width:100%;margin:0}
  .history-recap .activity-overview-note {grid-column:1/-1;display:flex;gap:8px;max-width:none;text-align:left;margin:0}
  .purchase-receipt li {grid-template-columns:58px minmax(0,1fr) auto;padding-right:7px;column-gap:6px}
}

.market-banner {
  border-color:#314748;
  background:linear-gradient(111deg,#171c21 15%,#192e33 57%,#25464b 80%,#19282e);
}
.market-banner::before {background:repeating-linear-gradient(116deg,transparent 0 52px,#9fdadc14 53px 54px,transparent 55px 85px)}
.market-banner .collection-scene::before {background:radial-gradient(ellipse at 50% 65%,#84dcd84d,transparent 65%)}
.market-banner .case-assembly {width:min(89%,410px)}
.market-banner .case-shell {max-height:68%;object-fit:contain;bottom:2%;rotate:0deg}
.market-banner .case-skin {height:112%;inset:-21% 0 auto;width:100%;rotate:-11deg}
.market-banner .collection-actions .brand-btn {background:linear-gradient(130deg,#a4e5d7,#77bfbb);color:#112927;border-color:#c3ebe2;text-shadow:none}
.market-banner .collection-actions .brand-btn:hover {background:#bbede1}

.fusion-shell :is(.trading-showroom,.archive-heading,.markets-heading) {
  position:relative;isolation:isolate;overflow:hidden;flex:none;display:flex;align-items:center;
  padding:0 clamp(18px,2.4vw,36px);margin-bottom:16px;border:1px solid #443039;border-radius:16px;
}
.fusion-shell :is(.trading-title,.archive-heading,.markets-heading) h1 {
  margin:0;color:#f5eef3;font:650 clamp(25px,2.4vw,36px)/1.16 var(--font-geologica);letter-spacing:-.045em;
}
.fusion-shell .trading-showroom {
  overflow:clip;min-height:116px;justify-content:space-between;
  background:radial-gradient(ellipse at 66% 110%,rgba(var(--item-rgb),.38),transparent 40%),linear-gradient(106deg,#211b23,#221d25 49%,#302128 75%,#1d191e);
}
.trading-title,.trading-showroom .mode-picker {position:relative;z-index:2}
.tour-link {background:transparent;border:0;padding:5px 0;margin-top:3px;color:#d9bdc9;font-size:var(--type-label)}
.tour-link:hover {color:#fff}.tour-link span {margin-left:3px}
.instrument-scene {position:absolute;inset:0 18% 0 37%;pointer-events:none}
.instrument-scene img {position:absolute;inset:-7% 0 auto;width:100%;height:114%;object-fit:contain;rotate:-8deg;filter:drop-shadow(0 10px 6px #100914ac)}
.instrument-ring {
  position:absolute;bottom:-27px;left:8%;width:84%;height:62px;border-radius:50%;
  border:1px solid rgba(var(--item-rgb),.58);box-shadow:0 0 0 5px #211a20,0 0 0 6px rgba(var(--item-rgb),.31),0 0 0 13px #211a20,0 0 0 14px rgba(var(--item-rgb),.19);
  background:radial-gradient(ellipse,rgba(var(--item-rgb),.3),#1a171b 74%);
}
.fusion-shell .archive-heading {min-height:96px;border-color:#514237;background:linear-gradient(105deg,#201d20,#30282a 67%,#4a3831)}
.archive-heading img {position:absolute;right:9%;height:141%;width:35%;object-fit:contain;rotate:-7deg;filter:drop-shadow(0 8px 7px #171316a8)}
.fusion-shell .markets-heading {min-height:106px;border-color:#3a3b51;background:linear-gradient(100deg,#191a25,#242338 68%,#36364b)}
.market-instruments {position:absolute;display:flex;align-items:center;justify-content:center;inset:0 4% 0 41%;transform:skewX(-11deg)}
.market-instruments img {width:33%;height:100%;object-fit:contain;transform:skewX(11deg) rotate(-8deg);filter:drop-shadow(0 6px 6px #11101ccc)}
.market-instruments img:nth-child(2) {border-block:1px solid #49465b;background:#b8a2f50a}

.market-shelf {margin-block:clamp(22px,3vw,40px) 6px}
.shelf-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.shelf-heading h2 {margin:0;color:#f4edf1;font-weight:600}
.shelf-heading a {display:inline-flex;align-items:center;gap:6px;min-height:44px;padding-inline:5px;color:#e5b3ca;text-decoration:none;font-size:var(--type-label);font-weight:550}
.shelf-heading a span {font-size:1.15em}
.shelf-offers {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1vw,16px)}
.shelf-offers .shelf-card {
 --shelf-light:var(--item-rgb);
 display:grid;grid-template-rows:auto 1fr;min-width:0;padding:0;overflow:hidden;text-align:start;
 border:0;border-radius:16px;background:#211e25;color:#f3eef3;
 box-shadow:inset 0 0 0 1px #ffffff08;
}
.shelf-card[data-family=Charm] {--shelf-light:204,149,119}
.shelf-card[data-family=Sticker],.shelf-card[data-family=Patch] {--shelf-light:124,144,210}
.shelf-art {
 position:relative;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);isolation:isolate;place-items:center;overflow:hidden;
 height:clamp(110px,9vw,146px);
 background:radial-gradient(ellipse at 50% 107%,rgba(var(--shelf-light),.25),transparent 66%),
  linear-gradient(118deg,rgba(var(--shelf-light),.14),rgba(var(--shelf-light),.035) 48%,transparent 84%);
}
.shelf-art::before {
 content:"";position:absolute;z-index:-1;bottom:9%;left:17%;width:66%;height:13%;border-radius:50%;
 background:radial-gradient(ellipse,rgba(var(--shelf-light),.21),transparent 72%);
}
.shelf-art::after {
 content:"";position:absolute;bottom:0;inset-inline:11%;height:1px;
 background:linear-gradient(90deg,transparent,rgba(var(--shelf-light),.38),transparent);
}
.shelf-art img {display:block;width:87%;height:94%;object-fit:contain;filter:drop-shadow(0 5px 5px #09071050)}
.shelf-info {display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:end;gap:3px 10px;padding:13px clamp(12px,1.3vw,20px) 16px}
.shelf-type {grid-column:1/-1;color:#c6b8c5;font-size:var(--type-caption);font-weight:460;line-height:1.3}
.shelf-name {align-self:start;overflow-wrap:anywhere;line-height:1.22;font-weight:580;font-size:clamp(1rem,1.22vw,1.23rem);letter-spacing:-.025em}
.shelf-price {display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:#f2e6ef;font:560 var(--type-body)/1.35 var(--font-geologica);font-variant-numeric:tabular-nums}
.shelf-price small {color:#b8aab9;font-size:var(--type-caption);font-weight:450}
.shelf-card:focus-visible,.shelf-heading a:focus-visible {outline:2px solid #edabc6;outline-offset:3px}
@media (hover:hover) {
 .shelf-offers .shelf-card:hover {background:#29242c}
 .shelf-heading a:hover {color:#ffdaea}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
 .case-assembly,.archive-heading img,.shelf-art img {transition:transform 420ms cubic-bezier(.2,.68,.23,1)}
 .collection-header:hover .case-assembly {transform:translateY(-3px) rotate(1deg)}
 .archive-heading:hover img {transform:translateY(-2px) rotate(2deg)}
 .shelf-card:hover .shelf-art img {transform:translateY(-2px) scale(1.045)}
}
@media (max-width:1100px) and (min-width:851px), (max-width:560px) {
 .shelf-info {grid-template-columns:minmax(0,1fr);align-content:start}
 .shelf-price {align-self:end;margin-top:4px}
}
@media(max-width:850px) {.shelf-offers {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px) {
 .collection-header {min-height:152px}
 .collection-copy {display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-height:152px}
 .collection-copy p {margin-bottom:15px}
 .market-banner .case-assembly {width:100%}
 .market-banner .case-skin {height:103%;inset:-8% 0 auto}
 .market-banner .case-shell {bottom:-2%;max-height:60%}
 .fusion-shell .trading-showroom {min-height:119px;padding:12px 15px;align-items:flex-start}
 .trading-showroom .mode-picker {position:absolute;left:15px;bottom:10px}
 .instrument-scene {inset:2% 2% 13% 48%}
 .instrument-scene img {height:112%;inset:-5% 0 auto}
 .instrument-ring {height:28px;bottom:0;left:8%}
 .fusion-shell :is(.archive-heading,.markets-heading){min-height:78px;margin-bottom:12px;padding:0 16px}
 .archive-heading img {right:3%;width:43%}
 .market-instruments {inset:0 2% 0 40%}
 .shelf-heading {margin-bottom:8px}
 .shelf-offers {gap:9px}
 .shelf-offers .shelf-card {border-radius:13px}
 .shelf-art {height:clamp(88px,24vw,118px)}
 .shelf-info {padding:10px 12px 12px}
}
