/* Afterlife Cases. v3 (owner 11/2: "more like CS2") gave the containers, reel and reveal; v4 restyle (owner 11/2: "Everything
   should feel sleek & not boxy. The page still looks wack & off"): rounded glass panels, soft light instead of hard slabs,
   slim price chips instead of big green bars. Prefixes: cs- (page hero + root) and cx- (everything else). */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&display=swap");

.cs-root, .cx-modal, .cs-hero {
    --cx-r: 18px; --cx-r-s: 12px;
    --cx-glass: linear-gradient(160deg, rgba(255,255,255,.065), rgba(255,255,255,.018) 55%, rgba(255,255,255,.01));
    --cx-line: rgba(255,255,255,.08); --cx-dim: #8d95a5; --cx-text: #d3d8e1;
}

/* ── hero ── */
.cs-hero { position: relative; overflow: hidden; }
.cs-hero-art { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 74% 62%, rgba(228,174,57,.14), transparent 58%), radial-gradient(ellipse at 92% 30%, rgba(136,71,255,.12), transparent 50%); }
.cs-hero-case { position: absolute; filter: drop-shadow(0 26px 40px rgba(0,0,0,.75)); animation: cxFloat 6s ease-in-out infinite; }
.cs-hero-case.c1 { right: 5%; top: 10%; width: min(33vw, 380px); }
.cs-hero-case.c2 { right: 30%; top: 46%; width: min(18vw, 200px); animation-delay: -2s; }
.cs-hero-case.c3 { right: 1%; top: 56%; width: min(16vw, 175px); animation-delay: -4s; }
@keyframes cxFloat { 50% { transform: translateY(-10px); } }
@media (max-width: 760px) { .cs-hero-case.c1 { width: 46vw; right: -4%; top: 4%; opacity: .5; } .cs-hero-case.c2, .cs-hero-case.c3 { display: none; } }
.cs-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; position: relative; }
.cx-stat { padding: 10px 18px; border-radius: 999px; background: rgba(14,16,20,.55); border: 1px solid var(--cx-line); backdrop-filter: blur(8px); display: flex; align-items: baseline; gap: 10px; }
.cx-stat small { font: 600 12px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-dim); }
.cx-stat b { font: 700 22px/1 "Barlow Condensed", system-ui, sans-serif; color: #fff; }

/* ── shared ── */
/* minmax(0,1fr) + min-width 0: the horizontally scrolling feed must not widen the page (owner 11/2 screenshot: page ran off the right edge) */
.cs-root { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 40px; font-family: "Barlow Condensed", system-ui, sans-serif; }
.cs-root > * { min-width: 0; }
.cx-loading, .cx-door { display: grid; justify-items: center; gap: 12px; padding: 38px 20px; border-radius: var(--cx-r); text-align: center; background: var(--cx-glass); border: 1px solid var(--cx-line); color: var(--cx-text); font-size: 17px; }
.cx-door h3 { margin: 0; font: 700 26px/1.2 "Barlow Condensed", system-ui, sans-serif; color: #fff; }
.cx-door p { margin: 0; }
.cx-loading span { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: #e4ae39; animation: cxSpin .8s linear infinite; }
@keyframes cxSpin { to { transform: rotate(360deg); } }
.cx-note { justify-self: start; max-width: 100%; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: #f3d9a6; background: rgba(228,174,57,.08); border: 1px solid rgba(228,174,57,.28); }
.cx-h { display: flex; align-items: center; gap: 10px; margin: 6px 0 -6px; font: 600 14px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--cx-dim); }
.cx-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--cx-line), transparent); }
.cx-h .live { width: 8px; height: 8px; border-radius: 50%; background: #eb4b4b; box-shadow: 0 0 10px #eb4b4b; animation: cxPulse 1.4s ease-in-out infinite; }
@keyframes cxPulse { 50% { opacity: .4; } }
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 24px !important; border-radius: 999px; cursor: pointer; text-decoration: none;
    font: 700 17px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease; }
.cx-btn:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.cx-btn:active:not(:disabled) { transform: translateY(0); }
.cx-btn:disabled { opacity: .4; cursor: default; }
.cx-btn small { font-size: 15px; font-weight: 600; opacity: .8; letter-spacing: .02em; }
.cx-btn.unlock { border: 0; background: linear-gradient(135deg, #7ad35a, #3f9a2a); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 28px rgba(74,170,48,.32); }
.cx-btn.gold { border: 0; background: linear-gradient(135deg, #f6d77a, #cf961f); color: #1c1405; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 28px rgba(228,174,57,.3); }
.cx-btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.18); }
.cx-waiting { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 12px 12px 20px; border-radius: var(--cx-r); background: linear-gradient(100deg, rgba(228,174,57,.12), rgba(228,174,57,.02) 60%), rgba(255,255,255,.02); border: 1px solid rgba(228,174,57,.22); }
.cx-waiting b { color: #fff; font-size: 17px; }
.cx-waiting em { flex: 1; min-width: 160px; font-style: normal; color: var(--cx-dim); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── container lineup ── */
.cx-lineup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1050px) { .cx-lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cx-lineup { grid-template-columns: 1fr; gap: 14px; } }
.cx-crate { position: relative; isolation: isolate; display: flex; flex-direction: column; height: auto; min-height: 0; line-height: normal; text-align: left; padding: 0 !important; border-radius: var(--cx-r); overflow: hidden; cursor: pointer; color: #fff; text-transform: none;
    background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--th) 16%, transparent), transparent 70%), linear-gradient(180deg, #181b21, #111317);
    border: 1px solid rgba(255,255,255,.07); box-shadow: 0 14px 34px rgba(0,0,0,.35);
    transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s ease, border-color .25s ease; }
.cx-crate::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.07) 45%, transparent 60%); transform: translateX(-120%); transition: transform .8s ease; }
.cx-crate:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--th) 50%, transparent); box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 0 40px color-mix(in srgb, var(--th) 16%, transparent); }
.cx-crate:hover::after { transform: translateX(120%); }
.cx-crate-art { position: relative; aspect-ratio: 5 / 4; }
.cx-crate-art .glow { position: absolute; left: 12%; right: 12%; top: 18%; bottom: 10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--th) 32%, transparent), transparent); filter: blur(10px); opacity: .8; transition: opacity .3s ease; }
.cx-crate:hover .cx-crate-art .glow { opacity: 1; }
.cx-crate-art .floor { position: absolute; left: 22%; right: 22%; bottom: 7%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
.cx-crate-art img { position: absolute; z-index: 1; inset: 8% 8% 10%; width: 84%; height: 82%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(0,0,0,.55)); transition: transform .45s cubic-bezier(.2,.8,.3,1); }
.cx-crate:hover .cx-crate-art img { transform: translateY(-6px) scale(1.04); }
.cx-crate-info { flex: 1; display: grid; align-content: start; gap: 5px; padding: 2px 18px 6px; }
.cx-crate-info b { font: 700 25px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .01em; }
.cx-crate-info small { font-size: 15px; line-height: 1.3; color: var(--cx-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-crate-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 14px 18px; }
.cx-crate-count { font: 600 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-dim); }
.cx-crate-price { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 999px; font: 700 17px/1 "Barlow Condensed", system-ui, sans-serif; color: #fff;
    background: color-mix(in srgb, var(--th) 14%, rgba(255,255,255,.04)); border: 1px solid color-mix(in srgb, var(--th) 40%, transparent); transition: background .2s ease; }
.cx-crate-price i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 13px; color: #111; background: var(--th); transition: transform .2s ease; }
.cx-crate:hover .cx-crate-price { background: color-mix(in srgb, var(--th) 26%, rgba(255,255,255,.04)); }
.cx-crate:hover .cx-crate-price i { transform: translateX(2px); }
.cx-guar { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px; font: 800 12px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #06140a; background: linear-gradient(135deg, #a6f08a, #4fae32); box-shadow: 0 4px 14px rgba(122,211,90,.4); }
.cx-free { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px; font: 700 12px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #1c1405; background: linear-gradient(135deg, #f6d77a, #e4ae39); box-shadow: 0 4px 14px rgba(228,174,57,.35); }

/* ── recent unboxings ── */
.cx-feed { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.cx-fi { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 6px 16px 6px 6px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--t) 16%, transparent), rgba(255,255,255,.025) 70%); border: 1px solid color-mix(in srgb, var(--t) 30%, rgba(255,255,255,.04)); }
.cx-fi .art { width: 50px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: rgba(0,0,0,.25); }
.cx-fi .art img { max-width: 88%; max-height: 88%; object-fit: contain; }
.cx-fi .art b { font-size: 22px; }
.cx-fi .txt b { display: block; font-size: 16px; color: #fff; white-space: nowrap; }
.cx-fi .txt small { display: block; font-size: 13px; color: var(--cx-dim); white-space: nowrap; }
.cx-empty { margin: 0; color: var(--cx-dim); font-size: 16px; }

/* ── item tiles (contents grid, reel, feed) ── */
/* vibrant tiles (owner 11/2: "it needs to feel vibrant"): rarity colour floods up from the bottom, a soft spotlight behind the item */
.cx-tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--cx-r-s);
    background: radial-gradient(55% 55% at 50% 45%, rgba(255,255,255,.13), transparent 70%), radial-gradient(110% 80% at 50% 110%, color-mix(in srgb, var(--t) 70%, transparent), transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--t) 14%, #1b1e25), #14161b);
    border: 1px solid color-mix(in srgb, var(--t) 40%, rgba(255,255,255,.05)); }
.cx-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%); pointer-events: none; }
.cx-tile .bar { position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--t); box-shadow: 0 0 12px var(--t); }
/* the art box has a fixed size and pictures are absolutely fitted inside it (owner 11/2: "icons look off & cut off": max-height:% didn't apply in the grid, so tall pictures overflowed and got clipped) */
.cx-tile-art { position: absolute; inset: 12% 10% 16%; display: grid; place-items: center; }
.cx-tile-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.55)) brightness(1.12) contrast(1.05); }
.cx-tile-art .cx-plate { transform: scale(.78); max-width: 128%; }
.cx-tile-art .cx-plate b { font-size: 19px; }
.cx-tile-art .cx-nfx { font-size: 20px; }
.cx-own { position: absolute; top: 7px; right: 7px; padding: 3px 8px; border-radius: 999px; font: 700 11px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #10120c; background: #9be36f; }
.cx-plate { display: inline-grid; justify-items: center; gap: 3px; padding: 9px 18px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.25)); border: 1px solid color-mix(in srgb, var(--t, #e4ae39) 60%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--t, #e4ae39) 28%, transparent); }
.cx-plate small { font: 600 10px/1 "Barlow Condensed", sans-serif; letter-spacing: .24em; color: var(--cx-dim); }
.cx-plate b { font: 700 21px/1 "Barlow Condensed", sans-serif; color: var(--t, #fff); white-space: nowrap; }
.cx-flair { font-size: 56px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.cx-skin { display: block; max-width: 100%; height: auto; }
/* name effect preview: the player's own gamertag wearing it */
.cx-nfx { display: grid; place-items: center; max-width: 100%; padding: 0 6px; font: 800 22px/1.1 "Barlow Condensed", sans-serif; letter-spacing: .02em; white-space: nowrap; overflow: hidden; }
.cx-nfx.big { font-size: 46px; }
/* the empty result: a hollow ring, no drama */
.cx-void { display: grid; place-items: center; gap: 6px; color: #6b717d; }
.cx-void i { width: 38px; height: 38px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.18); }
.cx-void b { font: 700 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .3em; }
.cx-sc-art .cx-void i { width: 90px; height: 90px; border-width: 3px; }
.cx-sc-art .cx-void b { font-size: 22px; }

/* ── the container screen ── */
.cx-box { display: grid; gap: 18px; }
.cx-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.cx-top h2 { margin: 0; text-align: center; font: 700 32px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .01em; color: #fff; }
.cx-top h2 span { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--th); }
.cx-back, .cx-mute { height: 40px; padding: 0 16px !important; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--cx-line); color: var(--cx-text); font: 600 16px/1 "Barlow Condensed", sans-serif; cursor: pointer; text-transform: none; transition: background .15s ease; }
.cx-back:hover, .cx-mute:hover { background: rgba(255,255,255,.1); }
.cx-stage { position: relative; height: clamp(250px, 32vw, 360px); border-radius: 24px; overflow: hidden;
    background: radial-gradient(60% 80% at 50% 95%, color-mix(in srgb, var(--th) 22%, transparent), transparent 70%), radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.05), transparent 60%), linear-gradient(180deg, #14161b, #0d0e11);
    border: 1px solid var(--cx-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 20px 50px rgba(0,0,0,.35); }
.cx-hero-crate { position: absolute; inset: 0; transition: opacity .35s ease, transform .35s ease; }
.cx-hero-crate img { position: absolute; z-index: 2; inset: 6% 20% 6%; width: 60%; height: 88%; object-fit: contain; filter: drop-shadow(0 28px 30px rgba(0,0,0,.65)); animation: cxFloat 5s ease-in-out infinite; }
.cx-hero-crate .spot { position: absolute; left: 50%; top: 0; width: 70%; height: 100%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.09), transparent 70%); }
.cx-hero-crate .floor { position: absolute; left: 28%; right: 28%; bottom: 5%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
.cx-hero-crate.out { opacity: 0; transform: scale(1.08); }
.cx-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.cx-actions .cx-btn { height: 54px; padding: 0 30px !important; font-size: 19px; }
.cx-info { width: 42px; height: 42px; padding: 0 !important; border-radius: 50%; font: italic 900 17px/1 Georgia, serif; color: var(--cx-text); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); cursor: pointer; }
.cx-short { flex-basis: 100%; margin: 0; text-align: center; color: #ff6b6b; font-size: 16px; }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 14px; }
.cx-cell { display: grid; gap: 8px; padding: 0 !important; background: none; border: 0; cursor: pointer; text-align: left; color: #fff; text-transform: none; }
.cx-cell .cx-tile { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cx-cell:hover .cx-tile { transform: translateY(-3px); border-color: color-mix(in srgb, var(--t) 60%, transparent); box-shadow: 0 12px 26px rgba(0,0,0,.4), 0 0 24px color-mix(in srgb, var(--t) 28%, transparent); }
.cx-tname { padding: 0 4px; }
.cx-tname b { display: block; font: 600 16px/1.15 "Barlow Condensed", sans-serif; color: #e6e9ef; }
.cx-tname small { display: block; margin-top: 3px; font: 600 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; }

/* ── the reel ── */
.cx-reel { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; background: radial-gradient(60% 90% at 50% 50%, rgba(255,255,255,.04), transparent 70%), linear-gradient(180deg, #101115, #15171b 50%, #101115); animation: cxIn .3s ease; }
.cx-reel[hidden] { display: none; }
@keyframes cxIn { from { opacity: 0; } }
.cx-strip { display: flex; gap: 10px; padding: 0 6px; will-change: transform; }
.cx-rc { flex: 0 0 auto; width: clamp(140px, 14vw, 190px); display: grid; gap: 6px; transition: opacity .4s ease, transform .4s ease; }
.cx-rc-name b { display: block; font: 600 15px/1.1 "Barlow Condensed", sans-serif; color: var(--cx-text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-line { position: absolute; left: 50%; top: 6%; bottom: 6%; width: 2px; margin-left: -1px; z-index: 3; border-radius: 2px; background: linear-gradient(180deg, transparent, #f6d77a 15%, #f6d77a 85%, transparent); box-shadow: 0 0 14px #f3c652; }
.cx-line::before, .cx-line::after { content: ""; position: absolute; left: 50%; width: 0; height: 0; margin-left: -7px; border: 7px solid transparent; }
.cx-line::before { top: 0; border-top-color: #f6d77a; }
.cx-line::after { bottom: 0; border-bottom-color: #f6d77a; }
.cx-fade { position: absolute; top: 0; bottom: 0; width: 24%; z-index: 2; pointer-events: none; }
.cx-fade.l { left: 0; background: linear-gradient(90deg, #101115, rgba(16,17,21,0)); } .cx-fade.r { right: 0; background: linear-gradient(270deg, #101115, rgba(16,17,21,0)); }
.cx-reel.done .cx-rc:not(.landed) { opacity: .25; }
.cx-rc.landed { transform: scale(1.07); }
.cx-rc.landed .cx-tile { border-color: var(--t); box-shadow: 0 0 0 1px var(--t), 0 0 44px color-mix(in srgb, var(--t) 55%, transparent); }

/* ── modals: reveal, inspect, odds ── */
.cx-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: calc(18px + var(--safe-top, 0px)) 18px 18px; overflow-y: auto; background: rgba(6,7,9,.78); backdrop-filter: blur(8px); animation: cxIn .25s ease; font-family: "Barlow Condensed", system-ui, sans-serif; }
.cx-sc { position: relative; width: min(560px, 100%); display: grid; gap: 12px; padding: 0 24px 24px; border-radius: 26px; overflow: hidden; text-align: center; color: var(--cx-text);
    background: radial-gradient(80% 50% at 50% 28%, color-mix(in srgb, var(--t) 24%, transparent), transparent 70%), linear-gradient(180deg, #1c1f25, #121418);
    border: 1px solid color-mix(in srgb, var(--t) 35%, rgba(255,255,255,.06)); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 70px color-mix(in srgb, var(--t) 18%, transparent); animation: cxPop .5s cubic-bezier(.2,.9,.3,1.15); }
.cx-sc::before { content: ""; position: absolute; left: 30%; right: 30%; top: 0; height: 2px; border-radius: 2px; background: var(--t); box-shadow: 0 0 18px var(--t); }
@keyframes cxPop { from { transform: scale(.94) translateY(8px); opacity: 0; } }
.cx-sc-head { margin-top: 22px; font: 600 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--cx-dim); }
.cx-sc-art { display: grid; place-items: center; height: 230px; margin-top: 6px; }
.cx-sc-art { position: relative; }
.cx-sc-art img { width: 86%; height: 210px; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.65)) drop-shadow(0 0 30px color-mix(in srgb, var(--t) 32%, transparent)); animation: cxIn .6s ease; }
.cx-sc-art .cx-flair { font-size: 120px; }
.cx-sc-art .cx-plate { transform: scale(1.6); }
.cx-sc-art .cx-skin { width: 100%; max-width: 440px; }
.cx-sc-name b { display: block; font: 700 34px/1.05 "Barlow Condensed", sans-serif; color: var(--t); }
.cx-sc-name span { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.05); font: 600 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-dim); }
.cx-sc-name span i { width: 8px; height: 8px; border-radius: 50%; background: var(--t); box-shadow: 0 0 8px var(--t); }
.cx-sc p { margin: 0; font-size: 17px; line-height: 1.4; color: var(--cx-text); }
.cx-sc ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; text-align: left; }
.cx-sc li { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border-radius: var(--cx-r-s); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.04); font-size: 16px; color: #e6e9ef; }
.cx-sc li img { width: 52px; height: 32px; object-fit: contain; }
.cx-where { font-style: normal; font-size: 15px; color: #e4ae39; }
.cx-sc-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.cx-kf { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 9px 14px; border-radius: var(--cx-r-s); background: rgba(0,0,0,.35); border: 1px solid rgba(235,75,75,.25); font-size: 16px; }
.cx-kf b { color: #fff; } .cx-kf em { font-style: normal; color: #ff8a8a; } .cx-kf i { font-style: normal; color: var(--cx-dim); font-size: 13px; } .cx-kf span { color: #eb4b4b; }
.cx-np { display: grid; gap: 3px; padding: 12px; border-radius: var(--cx-r-s); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.05); }
.cx-np b { font-size: 20px; color: #fff; } .cx-np span { font: 700 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.cx-odds { width: min(460px, 100%); display: grid; gap: 10px; padding: 22px; border-radius: 24px; background: linear-gradient(180deg, #1c1f25, #121418); border: 1px solid var(--cx-line); color: var(--cx-text); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.cx-odds h3 { margin: 0; font: 700 24px/1.1 "Barlow Condensed", sans-serif; color: #fff; }
.cx-odds p { margin: 0; font-size: 15px; color: var(--cx-dim); }
.cx-odds-g { padding: 10px 14px; border-radius: var(--cx-r-s); background: linear-gradient(90deg, color-mix(in srgb, var(--t) 12%, transparent), rgba(255,255,255,.02) 70%); border: 1px solid color-mix(in srgb, var(--t) 22%, transparent); }
.cx-odds-g h4 { display: flex; justify-content: space-between; margin: 0 0 6px; font: 700 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--t); }
.cx-odds-g h4 span { color: #fff; }
.cx-odds-g div { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; padding: 2px 0; }
.cx-odds-g em { font-style: normal; color: #fff; }
@media (max-width: 520px) { .cx-top h2 { font-size: 26px; } .cx-actions .cx-btn { width: 100%; } .cx-sc { padding: 0 16px 18px; } }
@media (prefers-reduced-motion: reduce) { .cs-hero-case, .cx-hero-crate img { animation: none; } .cx-crate::after { display: none; } }
/* studio shots (owner 11/2: the CSS backdrops were "terrible"): rendered scenes fill the card art and the opening stage */
.cx-crate-art { overflow: hidden; }
.cx-crate-art img.scene { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.cx-crate:hover .cx-crate-art img.scene { transform: scale(1.05); }
.cx-hero-crate img.scene { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; filter: none; animation: cxKen 16s ease-in-out infinite alternate; }
@keyframes cxKen { from { transform: scale(1); } to { transform: scale(1.06); } }
.cx-reel { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .cx-hero-crate img.scene { animation: none; } }
/* Trade-Up */
.cx-trade-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 14px 14px 18px; border-radius: var(--cx-r); background: linear-gradient(100deg, rgba(136,71,255,.16), rgba(228,174,57,.08) 60%, rgba(255,255,255,.02)); border: 1px solid rgba(160,120,255,.28); }
.cx-trade-bar > div { flex: 1; min-width: 200px; display: grid; gap: 3px; }
.cx-trade-bar b { font-size: 19px; color: #fff; letter-spacing: .02em; }
.cx-trade-bar small { font-size: 15px; color: var(--cx-dim); }
.cx-trade-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; color: #1c1405; background: linear-gradient(135deg, #f6d77a, #b07bff); box-shadow: 0 6px 18px rgba(160,110,255,.35); }
.cx-trade { width: min(860px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: linear-gradient(180deg, #1c1f25, #121418); border: 1px solid var(--cx-line); color: var(--cx-text); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.cx-trade h3 { margin: 0; font: 700 28px/1 "Barlow Condensed", sans-serif; color: #fff; }
.cx-trade p { margin: 0; font-size: 16px; color: var(--cx-dim); }
.cx-trade-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cx-slot { position: relative; aspect-ratio: 4 / 3; border-radius: var(--cx-r-s); border: 2px dashed rgba(255,255,255,.14); background: rgba(255,255,255,.02); }
.cx-slot.full { border: 1px solid var(--t); background: radial-gradient(100% 80% at 50% 110%, color-mix(in srgb, var(--t) 55%, transparent), transparent 70%), #17191e; box-shadow: 0 0 18px color-mix(in srgb, var(--t) 30%, transparent); }
.cx-slot img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.cx-trade-grid .cx-cell:disabled { opacity: .3; cursor: default; }
.cx-trade-grid .cx-cell.picked .cx-tile { outline: 2px solid #f6d77a; box-shadow: 0 0 22px rgba(246,215,122,.4); }

/* Gifting */
.cx-gifts { position: relative; display: grid; gap: 8px; }
.cx-gift { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 44px 12px 16px; border-radius: var(--cx-r); background: linear-gradient(100deg, color-mix(in srgb, var(--th) 22%, transparent), rgba(255,255,255,.02) 70%); border: 1px solid color-mix(in srgb, var(--th) 45%, transparent); animation: cxPop .5s cubic-bezier(.2,.9,.3,1.15); }
.cx-gift > div { flex: 1; min-width: 180px; display: grid; gap: 3px; }
.cx-gift b { font-size: 18px; color: #fff; }
.cx-gift em { font-style: normal; color: var(--cx-text); font-size: 15px; }
.cx-gift-ico { font-size: 30px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); animation: cxFloat 2.4s ease-in-out infinite; }
.cx-gift-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; padding: 0 !important; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--cx-dim); cursor: pointer; }
.cx-giftbox { width: min(480px, 100%); display: grid; gap: 12px; padding: 0 22px 22px; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #1c1f25, #121418); border: 1px solid color-mix(in srgb, var(--th) 35%, rgba(255,255,255,.06)); color: var(--cx-text); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: cxPop .45s cubic-bezier(.2,.9,.3,1.15); }
.cx-giftbox-art { margin: 0 -22px; aspect-ratio: 5 / 3; overflow: hidden; }
.cx-giftbox-art img { width: 100%; height: 100%; object-fit: cover; }
.cx-giftbox h3 { margin: 4px 0 0; font: 700 26px/1.1 "Barlow Condensed", sans-serif; color: #fff; }
.cx-giftbox p { margin: 0; color: var(--cx-dim); font-size: 15px; }
.cx-field { display: grid; gap: 5px; }
.cx-field span { font: 600 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-dim); }
.cx-field input { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--cx-line); background: rgba(0,0,0,.3); color: #fff; font: 600 17px "Barlow Condensed", sans-serif; outline: none; }
.cx-field input:focus { border-color: color-mix(in srgb, var(--th) 60%, transparent); }
.cx-gift-results { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-gift-results button { padding: 6px 12px !important; border-radius: 999px; border: 1px solid var(--cx-line); background: rgba(255,255,255,.05); color: #fff; font: 600 15px "Barlow Condensed", sans-serif; cursor: pointer; text-transform: none; height: auto; }
.cx-gift-results small { color: var(--cx-dim); }
.cx-gift-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-gift-modes button { display: grid; gap: 3px; text-align: left; padding: 10px 12px !important; height: auto; border-radius: 14px; border: 1px solid var(--cx-line); background: rgba(255,255,255,.03); color: #fff; cursor: pointer; text-transform: none; font-family: "Barlow Condensed", sans-serif; }
.cx-gift-modes button b { font-size: 16px; } .cx-gift-modes button small { font-size: 13px; color: var(--cx-dim); }
.cx-gift-modes button.on { border-color: color-mix(in srgb, var(--th) 70%, transparent); background: color-mix(in srgb, var(--th) 14%, transparent); }
.cx-gift-modes button:disabled { opacity: .4; cursor: default; }


/* opening effects (cases-fx.js) */
.cx-stage { isolation: isolate; }
.cx-stage.tense { box-shadow: inset 0 0 120px rgba(0,0,0,.85), 0 20px 50px rgba(0,0,0,.35); }
.cx-stage.tense .cx-line { animation: cxLinePulse .5s ease-in-out infinite; }
@keyframes cxLinePulse { 50% { box-shadow: 0 0 24px #f3c652, 0 0 4px #fff; transform: scaleY(1.03); } }
.cx-burst { position: absolute; left: 50%; top: 50%; z-index: 5; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, #fff, var(--t) 35%, transparent 70%); mix-blend-mode: screen; animation: cxBurst 1.1s cubic-bezier(.15,.8,.3,1) forwards; }
.cx-burst.t3 { animation-duration: 1.3s; } .cx-burst.t4 { animation-duration: 1.6s; }
@keyframes cxBurst { 0% { transform: scale(.2); opacity: 1; } 60% { opacity: .85; } 100% { transform: scale(28); opacity: 0; } }
.cx-shake { animation: cxShake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes cxShake { 15% { transform: translate(-6px, 2px); } 30% { transform: translate(5px, -3px); } 45% { transform: translate(-4px, 1px); } 60% { transform: translate(3px, -1px); } 80% { transform: translate(-1px, 0); } }
.cx-sparks { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; pointer-events: none; }
.cx-sc .cx-sparks { border-radius: inherit; }
.cx-rays { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 0; pointer-events: none; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--t) 45%, transparent) 0deg 7deg, transparent 7deg 20deg);
    -webkit-mask: radial-gradient(closest-side, #000 25%, transparent); mask: radial-gradient(closest-side, #000 25%, transparent); opacity: .55; animation: cxSpinRays 14s linear infinite, cxIn .8s ease; }
.cx-rays.t4 { opacity: .85; animation-duration: 9s, .8s; }
.cx-rays.t0, .cx-rays.t1 { opacity: .28; }
@keyframes cxSpinRays { to { transform: rotate(360deg); } }
.cx-sc-art > img, .cx-sc-art > span, .cx-sc-art > canvas { position: relative; z-index: 1; animation: cxItemIn .7s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes cxItemIn { from { transform: scale(.4) translateY(30px); opacity: 0; filter: brightness(3); } }
@media (prefers-reduced-motion: reduce) { .cx-rays, .cx-burst, .cx-shake { animation: none !important; } }


/* floating, turning crates (Spin in cases.js) */
.cx-crate-art.has-spin img.scene, .cx-hero-crate.has-spin img.scene { object-position: center center; animation: none; transform: none !important; }
.cx-spin { position: absolute; z-index: 3; background-repeat: no-repeat; pointer-events: none; animation: cxHover 6s ease-in-out infinite; will-change: transform, background-position; }
.cx-spin-glow { position: absolute; z-index: 2; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--th) 70%, transparent), color-mix(in srgb, var(--th) 20%, transparent) 60%, transparent); mix-blend-mode: screen; filter: blur(4px); animation: cxHoverGlow 6s ease-in-out infinite; }
@keyframes cxHover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.6%); } }
@keyframes cxHoverGlow { 0%, 100% { opacity: .95; transform: scale(1); } 50% { opacity: .55; transform: scale(.9); } }

@media (prefers-reduced-motion: reduce) { .cx-spin, .cx-spin-glow { animation: none; } }


/* Daily Free Crate + Community Unlock */
.cx-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.cx-perk { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--cx-r); background: var(--cx-glass), #14161b; border: 1px solid var(--cx-line); }
.cx-perk-h { display: grid; gap: 3px; } .cx-perk-h b { font-size: 19px; color: #fff; } .cx-perk-h small { font-size: 14px; color: var(--cx-dim); }
.cx-meter { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: visible; }
.cx-meter > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #7ad35a, #f6d77a); box-shadow: 0 0 14px rgba(246,215,122,.45); transition: width .6s ease; }
.cx-meter.tiers > i { background: linear-gradient(90deg, #5ad8ff, #b48aff, #f6d77a); }
.cx-meter em { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: rgba(255,255,255,.25); }
.cx-meter em.on { background: #f6d77a; box-shadow: 0 0 10px #f6d77a; }
.cx-perk-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; color: var(--cx-text); }
.cx-perk-f b { color: #fff; }
.cx-perk .cx-btn { height: 38px; padding: 0 16px !important; font-size: 15px; }
.cx-tier-btns { display: flex; flex-wrap: wrap; gap: 6px; }


/* gear pictures pop: thin white rim + soft white glow, a little more colour (owner 11/2: "hard to see") */
img.gear, .cx-slot img, .cx-fi .art img, .cx-sc li img { filter: drop-shadow(0 0 1px rgba(255,255,255,.85)) drop-shadow(0 0 9px rgba(255,255,255,.32)) saturate(1.4) brightness(1.18) contrast(1.06) !important; }
/* gift banner: the gifted crate */
.cx-gift-art { position: relative; flex: 0 0 auto; width: 128px; height: 84px; margin: -6px 0; }
.cx-gift-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.55)) drop-shadow(0 0 14px color-mix(in srgb, var(--th) 45%, transparent)); animation: cxFloat 3.6s ease-in-out infinite; }
.cx-gift-art i { position: absolute; right: -4px; bottom: -2px; font-style: normal; font-size: 20px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }


/* contents grouped by rarity, rarest first (11/2: ~100 prizes per crate) */
.cx-group { display: grid; gap: 10px; }
.cx-group + .cx-group { margin-top: 8px; }
.cx-group-h { display: flex; align-items: baseline; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid color-mix(in srgb, var(--t) 35%, transparent); }
.cx-group-h b { font: 700 18px/1 "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--t); }
.cx-group-h span { font-size: 14px; color: var(--cx-dim); }
.cx-group .cx-grid { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 12px; }
/* hero banner (owner 11/2: "Cases hero panel needs a buff too. It looks plain"): three studio crates, dark fade under the text */
.cs-hero { min-height: clamp(300px, 34vw, 470px); }
.cs-hero .cs-hero-art { background: #07080b; }
.cs-hero-banner { position: absolute; inset: 0 0 0 auto; width: 78%; height: 100%; object-fit: cover; object-position: 80% 70%; -webkit-mask: linear-gradient(90deg, transparent, #000 22%); mask: linear-gradient(90deg, transparent, #000 22%); animation: csHeroPush 22s ease-in-out infinite alternate; }
@keyframes csHeroPush { from { transform: scale(1.02); } to { transform: scale(1.08) translateX(-1%); } }
.cs-hero-sweep { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%); background-size: 250% 100%; animation: csHeroSweep 9s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes csHeroSweep { 0%, 35% { background-position: 150% 0; } 75%, 100% { background-position: -50% 0; } }
.cs-hero .ff-hero-overlay { background: linear-gradient(90deg, rgba(6,7,9,.94) 0%, rgba(6,7,9,.82) 30%, rgba(6,7,9,.25) 58%, transparent 75%), linear-gradient(0deg, rgba(6,7,9,.6), transparent 35%) !important; }
@media (max-width: 760px) { .cs-hero-banner { object-position: 78% 60%; opacity: .7; } .cs-hero .ff-hero-overlay { background: linear-gradient(180deg, rgba(6,7,9,.3), rgba(6,7,9,.92) 75%) !important; } }
@media (prefers-reduced-motion: reduce) { .cs-hero-banner, .cs-hero-sweep { animation: none; } }

/* ── opening sequence (11/2: "Better crate opening") ── */
.cx-stage.cx-unlocking .cx-hero-crate { animation: cxRumble .12s linear infinite; }
.cx-stage.cx-unlocking .cx-spin-glow { animation: none; opacity: 1; transform: scale(1.25); filter: blur(6px) brightness(1.8); transition: transform 1s ease, filter 1s ease; }
.cx-stage.cx-unlocking::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(40% 60% at 50% 55%, color-mix(in srgb, var(--th) 40%, transparent), transparent 70%); animation: cxCharge 1s ease-in forwards; }
@keyframes cxRumble { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-2px, 1px) rotate(-.4deg); } 50% { transform: translate(2px, -1px) rotate(.4deg); } 75% { transform: translate(-1px, -1px) rotate(-.2deg); } 100% { transform: translate(1px, 1px) rotate(.2deg); } }
@keyframes cxCharge { from { opacity: 0; } to { opacity: 1; } }
.cx-opened { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; transition: opacity .28s ease; }
.cx-opened.gone { opacity: 0; }
.cx-opened img { position: relative; z-index: 2; height: clamp(200px, 26vw, 300px); max-width: 70%; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)) drop-shadow(0 0 40px color-mix(in srgb, var(--th) 60%, transparent)); animation: cxOpenPop .55s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes cxOpenPop { from { transform: scale(.82) translateY(14px); filter: brightness(2.5); } }
.cx-open-flash { position: absolute; inset: 0; z-index: 3; background: radial-gradient(closest-side, #fff, color-mix(in srgb, var(--th) 70%, #fff) 30%, transparent 70%); animation: cxFlash .6s ease-out forwards; }
@keyframes cxFlash { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(2.4); } }
.cx-open-beams { position: absolute; left: 50%; top: 58%; width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 1; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--th) 55%, transparent) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(closest-side, #000 15%, transparent 70%); mask: radial-gradient(closest-side, #000 15%, transparent 70%);
    animation: cxSpinRays 6s linear infinite, cxIn .3s ease; opacity: .8; }

/* ── the reveal card (11/2: "looks kind of basic"): a lit stage for the item, then the details ── */
.cx-sc { width: min(720px, 100%); padding: 0 0 22px; gap: 14px; }
.cx-sc::before { left: 0; right: 0; height: 3px; border-radius: 0; }
.cx-sc-stage { position: relative; display: grid; justify-items: center; padding: 18px 20px 26px; overflow: hidden;
    background: radial-gradient(60% 75% at 50% 62%, color-mix(in srgb, var(--t) 34%, transparent), transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--t) 10%, #14161b), #101216); border-bottom: 1px solid color-mix(in srgb, var(--t) 30%, transparent); }
.cx-sc-head { margin-top: 2px; }
.cx-sc .cx-sc-art { height: 300px; width: 100%; margin-top: 6px; }
.cx-sc .cx-sc-art > img { width: 92%; height: 270px; }
.cx-sc .cx-rays { width: 640px; height: 640px; margin: -320px 0 0 -320px; }
.cx-sc-floor { position: absolute; left: 22%; right: 22%; bottom: 6px; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--t) 60%, transparent), transparent); filter: blur(4px); }
.cx-sc-ribbon { position: relative; z-index: 2; margin-top: 6px; padding: 6px 18px; border-radius: 999px; font: 700 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #0c0d10;
    background: linear-gradient(90deg, color-mix(in srgb, var(--t) 70%, #fff), var(--t)); box-shadow: 0 0 24px color-mix(in srgb, var(--t) 55%, transparent); }
.cx-sc > :not(.cx-sc-stage) { padding-left: 24px; padding-right: 24px; }
.cx-sc-name b { font-size: 40px; }
.cx-sc.t4 .cx-sc-name b { background: linear-gradient(90deg, #ffe9a0, #ffc44d, #fff6c0, #ffc44d); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nfxMove 3s linear infinite; }
.cx-kit { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px !important; margin: 0 24px !important; padding: 0 !important; }
.cx-kit li { display: grid !important; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 6px 12px 6px 6px !important; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); font-size: 15px; color: #e6e9ef; text-align: left; }
.cx-kit .ki { display: grid; place-items: center; height: 42px; border-radius: 8px; background: radial-gradient(closest-side, rgba(255,255,255,.08), transparent); }
.cx-kit .ki img { width: 60px; height: 40px; object-fit: contain; }
.cx-kit .kn { line-height: 1.2; }
.cx-kit b { font: 700 15px/1 "Barlow Condensed", sans-serif; color: var(--t); }
@media (max-width: 560px) { .cx-sc .cx-sc-art { height: 220px; } .cx-sc .cx-sc-art > img { height: 200px; } .cx-sc-name b { font-size: 30px; } .cx-kit { margin: 0 14px !important; } .cx-sc > :not(.cx-sc-stage) { padding-left: 14px; padding-right: 14px; } }
@media (prefers-reduced-motion: reduce) { .cx-stage.cx-unlocking .cx-hero-crate, .cx-open-beams, .cx-opened img { animation: none !important; } }
/* the title sits left of the crates instead of across them */
.cs-hero .void-heading { font-size: clamp(44px, 6vw, 92px) !important; max-width: 52%; line-height: .92 !important; }
.cs-hero .void-heading span { display: block; }
.cs-hero .ff-sub { max-width: 40ch; }
@media (max-width: 760px) { .cs-hero .void-heading { max-width: 100%; } }

/* crate cards v3 (owner 11/2: "Panels still seem kinda bland") */
.cx-crate { background: radial-gradient(120% 60% at 50% 100%, color-mix(in srgb, var(--th) 16%, transparent), transparent 70%), linear-gradient(180deg, #14161b, #0f1115) !important;
    border-color: color-mix(in srgb, var(--th) 26%, rgba(255,255,255,.06)) !important; }
.cx-crate::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 4; background: linear-gradient(90deg, transparent, var(--th), transparent); box-shadow: 0 0 18px var(--th); opacity: .9; }
.cx-crate:hover { border-color: color-mix(in srgb, var(--th) 70%, transparent) !important; box-shadow: 0 26px 60px rgba(0,0,0,.55), 0 0 50px color-mix(in srgb, var(--th) 26%, transparent) !important; }
.cx-col { position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; justify-items: end; gap: 3px; padding: 6px 10px; border-radius: 10px; background: rgba(8,9,12,.55); backdrop-filter: blur(6px); border: 1px solid color-mix(in srgb, var(--th) 35%, transparent);
    font: 700 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .22em; color: color-mix(in srgb, var(--th) 80%, #fff); }
.cx-col i { font-style: normal; font-size: 9px; letter-spacing: .15em; color: var(--th); text-shadow: 0 0 8px var(--th); }
.cx-col s { text-decoration: none; color: rgba(255,255,255,.18); text-shadow: none; }
.cx-pulls { display: grid; gap: 6px; padding: 2px 18px 4px; }
.cx-pulls small { font: 600 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--cx-dim); }
.cx-pulls > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cx-pull { position: relative; display: grid; place-items: center; height: 54px; border-radius: 10px; overflow: hidden;
    background: radial-gradient(90% 90% at 50% 110%, color-mix(in srgb, var(--t) 55%, transparent), transparent 70%), rgba(255,255,255,.035); border: 1px solid color-mix(in srgb, var(--t) 45%, transparent); }
.cx-pull img { max-width: 86%; max-height: 42px; object-fit: contain; }
.cx-pull b { font: 800 20px/1 "Barlow Condensed", sans-serif; }
.cx-pull .th-swatch { width: 70%; height: 30px; min-height: 0; }
.cx-mix { display: flex; height: 5px; margin: 8px 18px 0; border-radius: 999px; overflow: hidden; gap: 2px; background: rgba(255,255,255,.04); }
.cx-mix i { display: block; min-width: 3px; opacity: .9; }

/* Locker v2 (owner 11/2: "looks basic. No colors. Make it feel premium"). Prefix lkr- (lk- = Lockpick minigame). */
.cx-locker-bar { background: radial-gradient(120% 140% at 0% 50%, rgba(122,211,90,.18), transparent 55%), linear-gradient(100deg, rgba(63,216,196,.10), rgba(197,139,255,.10) 60%, rgba(255,255,255,.02)); border-color: rgba(122,211,90,.35); }
.lkr-bar-icon { width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(circle at 50% 35%, rgba(122,211,90,.28), rgba(0,0,0,.4) 70%); border: 1px solid rgba(122,211,90,.35); overflow: hidden; }
.lkr-bar-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.lkr-bar-icon.noimg::before, .lkr-icon.noimg::before { content: ""; width: 46%; height: 64%; border-radius: 4px; background: repeating-linear-gradient(180deg, #8f9aa6 0 3px, #5d6670 3px 5px) top / 100% 30% no-repeat, linear-gradient(180deg, #7c8794, #4a535d); box-shadow: inset 0 0 0 2px #2a3036; }
.cx-lk-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: #7ad35a; animation: cxSpin .8s linear infinite; }

.lkr-modal { align-items: start; }
.lkr { position: relative; width: min(1120px, 100%); margin: 0 auto; max-height: calc(100vh - 36px - var(--safe-top, 0px)); overflow-y: auto; overscroll-behavior: contain; border-radius: 26px; color: #e9edf3;
    background: radial-gradient(90% 60% at 0% 0%, rgba(122,211,90,.12), transparent 60%), radial-gradient(80% 60% at 100% 0%, rgba(197,139,255,.14), transparent 60%), linear-gradient(180deg, #16191f, #0d0f13);
    border: 1px solid rgba(255,255,255,.09); box-shadow: 0 40px 90px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.06); font-family: "Barlow Condensed", system-ui, sans-serif; }
.lkr-loading { display: grid; justify-items: center; gap: 14px; padding: 60px 20px; color: #c9d0da; }
.lkr-loading img { width: 120px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.7)); }
.lkr-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 20px 24px 16px; background: linear-gradient(180deg, rgba(18,21,26,.97) 70%, rgba(18,21,26,.0)); backdrop-filter: blur(6px); }
.lkr-icon { width: 76px; height: 76px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(122,211,90,.3), rgba(0,0,0,.5) 72%); border: 1px solid rgba(122,211,90,.4); box-shadow: 0 0 30px rgba(122,211,90,.18); }
.lkr-icon img { width: 100%; height: 100%; object-fit: contain; }
.lkr-title { flex: 1; min-width: 0; }
.lkr-title small { font-weight: 700; font-size: 12px; letter-spacing: .28em; color: #7ad35a; }
.lkr-title h3 { margin: 2px 0 0; font: 800 42px/1 "Barlow Condensed", sans-serif; letter-spacing: .02em; color: #fff; text-transform: uppercase; background: linear-gradient(180deg, #fff 30%, #b9c3cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lkr-title p { margin: 4px 0 0; color: #8d95a5; font-size: 15px; }
.lkr-x { width: 42px; height: 42px; padding: 0 !important; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; font-size: 16px; cursor: pointer; }
.lkr-x:hover { background: rgba(255,255,255,.12); }

/* your look */
.lkr-look { position: relative; margin: 0 24px 18px; min-height: 150px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 20px; overflow: hidden; isolation: isolate;
    border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.4); }
.lkr-look-bg { position: absolute !important; inset: 0; z-index: -2; border-radius: 0 !important; min-height: 0 !important; }
.lkr-look-bg.plain { background: radial-gradient(80% 120% at 0% 0%, rgba(122,211,90,.22), transparent 60%), linear-gradient(120deg, #1d2a1c, #12151b 55%, #1b1526); }
.lkr-look::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,9,12,.82), rgba(8,9,12,.45) 60%, rgba(8,9,12,.2)); }
.lkr-look-id { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.lkr-look-id > small { font-weight: 700; font-size: 11px; letter-spacing: .3em; color: rgba(255,255,255,.6); }
.lkr-look-name { display: flex; align-items: center; gap: 10px; font: 800 clamp(30px, 5vw, 46px)/1 "Barlow Condensed", sans-serif; color: #fff; max-width: 100%; }
.lkr-look-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lkr-look-flair { font-size: .8em; filter: drop-shadow(0 0 10px rgba(255,255,255,.4)); }
.lkr-look-none { color: rgba(255,255,255,.45); font-size: 14px; }
.lkr-look-slots { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.lkr-look-slots span { display: grid; gap: 2px; padding: 7px 12px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.08); min-width: 92px; }
.lkr-look-slots span.set { border-color: rgba(122,211,90,.45); background: rgba(14,24,12,.55); }
.lkr-look-slots small { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.lkr-look-slots b { font-size: 15px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.lkr-look-slots span:not(.set) b { color: rgba(255,255,255,.4); font-weight: 600; }
.lkr-look-felt { grid-row: 1; grid-column: 2; display: grid; justify-items: center; gap: 4px; width: 120px; }
.lkr-look-felt .th-felt { width: 120px; height: 70px; }
.lkr-look-felt small { font-size: 10px; letter-spacing: .2em; color: rgba(255,255,255,.55); font-weight: 700; text-transform: uppercase; }

/* tabs */
.lkr-tabs { position: sticky; top: 112px; z-index: 4; display: flex; gap: 8px; padding: 6px 24px 14px; overflow-x: auto; scrollbar-width: none; background: linear-gradient(180deg, rgba(16,19,24,.96) 75%, rgba(16,19,24,0)); }
.lkr-tabs::-webkit-scrollbar { display: none; }
/* phones: the chip row must swipe sideways (11/6): own horizontal scroller, touch pans X, doesn't chain to the vertical modal, fade edge = "more this way" */
.lkr-tabs { max-width: 100%; box-sizing: border-box; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; touch-action: pan-x; overscroll-behavior-x: contain; scroll-padding: 0 24px; }
.lkr-tabs::after { content: ""; flex: 0 0 12px; }
/* owner 11/9: "cant scroll between categories on pc" (mouse can't side-scroll a hidden-scrollbar row) → wrap onto more lines on PC */
@media (hover: hover) and (pointer: fine) { .lkr-tabs { flex-wrap: wrap; overflow: visible; touch-action: auto; } .lkr-tabs::after { display: none; } }
@media (max-width: 640px) { .lkr-tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); } }
.lkr-tabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px !important; border-radius: 999px; cursor: pointer; text-transform: none;
    font: 700 16px/1 "Barlow Condensed", sans-serif; letter-spacing: .03em; color: #cfd5de; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: all .2s; }
.lkr-tabs button i { width: 9px; height: 9px; border-radius: 50%; background: var(--kt); box-shadow: 0 0 10px var(--kt); }
.lkr-tabs button em { font-style: normal; font-size: 13px; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; }
.lkr-tabs button:hover:not(:disabled) { border-color: color-mix(in srgb, var(--kt) 60%, transparent); color: #fff; }
.lkr-tabs button.on { color: #0b0c0f; background: var(--kt); border-color: transparent; box-shadow: 0 6px 22px color-mix(in srgb, var(--kt) 40%, transparent); }
.lkr-tabs button.on i { background: #0b0c0f; box-shadow: none; }
.lkr-tabs button.on em { background: rgba(0,0,0,.18); color: #0b0c0f; }
.lkr-tabs button:disabled { opacity: .35; cursor: default; }

/* sections + cards */
.lkr-body { display: grid; gap: 26px; padding: 4px 24px 28px; }
.lkr-sec { display: grid; gap: 12px; }
.lkr-sec-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.lkr-sec-h i { width: 4px; height: 22px; border-radius: 2px; background: var(--kt); box-shadow: 0 0 12px var(--kt); }
.lkr-sec-h b { font: 800 24px/1 "Barlow Condensed", sans-serif; color: #fff; letter-spacing: .02em; }
.lkr-sec-h small { flex: 1; min-width: 160px; color: #8d95a5; font-size: 14px; }
.lkr-off { height: 32px; padding: 0 14px !important; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #cfd5de; font: 700 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.lkr-off:hover { border-color: #ff6a6a; color: #ff8a8a; }
.lkr-none { margin: 0; color: #6f7786; font-size: 15px; }
.lkr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.lkr-card.t-common { --rc: #9ea4ac; } .lkr-card.t-uncommon { --rc: #4cc764; } .lkr-card.t-rare { --rc: #4b69ff; } .lkr-card.t-epic { --rc: #a463ff; } .lkr-card.t-legendary { --rc: #f0b43c; } .lkr-card.t-pass { --rc: #3fd8c4; } .lkr-card.t-gift { --rc: #ff3b4a; }
.lkr-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 10px 10px 12px !important; height: auto; text-align: left; text-transform: none; letter-spacing: normal; cursor: pointer; border-radius: 18px; overflow: hidden; color: #fff;
    background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--rc) 24%, transparent), transparent 62%), linear-gradient(180deg, #1b1f26, #111317);
    border: 1px solid color-mix(in srgb, var(--rc) 40%, rgba(255,255,255,.06)); box-shadow: 0 10px 26px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; font-family: "Barlow Condensed", system-ui, sans-serif; }
.lkr-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--rc), transparent); }
button.lkr-card:hover { transform: translateY(-4px); border-color: var(--rc); box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 26px color-mix(in srgb, var(--rc) 35%, transparent); }
.lkr-card.on { border-color: #7ad35a; box-shadow: 0 0 0 1px #7ad35a, 0 14px 34px rgba(0,0,0,.45), 0 0 34px rgba(122,211,90,.3); }
.lkr-on-badge { position: absolute; top: 16px; right: 16px; z-index: 3; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 14px; font-weight: 900; color: #0b1408; background: #7ad35a; box-shadow: 0 0 16px rgba(122,211,90,.7); }
.lkr-art { position: relative; display: grid; place-items: center; height: 118px; border-radius: 12px; overflow: hidden; isolation: isolate;
    background: radial-gradient(70% 80% at 50% 55%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 72%), linear-gradient(180deg, #0c0e12, #15181e); border: 1px solid rgba(255,255,255,.06); }
.lkr-shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.14) 48%, transparent 60%); background-size: 260% 100%; background-position: 130% 0; transition: background-position .7s ease; }
.lkr-card:hover .lkr-shine { background-position: -30% 0; }
.t-legendary .lkr-art::after, .t-epic .lkr-art::after { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 20%, color-mix(in srgb, var(--rc) 45%, transparent) 25%, transparent 32% 70%, color-mix(in srgb, var(--rc) 35%, transparent) 76%, transparent 82%); animation: cxSpin 9s linear infinite; opacity: .55; }
.lkr-info { display: grid; gap: 3px; align-content: start; padding: 0 2px; }
.lkr-tone { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--rc); }
.lkr-info b { font: 800 20px/1.05 "Barlow Condensed", sans-serif; color: #fff; }
.lkr-info small { font-size: 13px; color: #8d95a5; }
.lkr-act { justify-self: stretch; display: flex; align-items: center; justify-content: center; white-space: nowrap; height: 36px; border-radius: 10px; font: 800 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase;
    color: #0b0c0f; background: linear-gradient(135deg, #f6d77a, #cf961f); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.lkr-act.on { color: #0b1408; background: linear-gradient(135deg, #a6f08a, #4fae32); }
.lkr-act.ghost { color: #cfd5de; background: rgba(255,255,255,.06); box-shadow: none; border: 1px solid rgba(255,255,255,.1); }
.lkr-card.on .lkr-act.on::after { content: "· tap to remove"; margin-left: 6px; font-weight: 600; letter-spacing: .04em; opacity: .7; text-transform: none; }

/* previews */
.lkr-plate { position: relative; display: inline-flex; align-items: center; gap: 10px; max-width: 92%; padding: 10px 18px; border-radius: 8px;
    background: linear-gradient(180deg, #3a3f47, #1e2228 50%, #2b3037); border: 1px solid #5a616b; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.4), 0 8px 18px rgba(0,0,0,.55); }
.lkr-plate i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #9aa3ad 45%, #3a4048); }
.lkr-plate b { font: 800 16px/1.1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; text-align: center; background: linear-gradient(180deg, #fff3c4, #f0b43c 55%, #a8721a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0,0,0,.6)); }
.t-epic .lkr-plate b { background-image: linear-gradient(180deg, #f2e2ff, #b07bff 55%, #6a33c9); }
.t-rare .lkr-plate b { background-image: linear-gradient(180deg, #e2e9ff, #6f8cff 55%, #3049c9); }
.t-uncommon .lkr-plate b, .t-common .lkr-plate b { background-image: linear-gradient(180deg, #ffffff, #c9d4e2 55%, #7d8a99); }
.t-pass .lkr-plate b { background-image: linear-gradient(180deg, #e6fffb, #3fd8c4 55%, #168a7c); }
.lkr-plate.sm { padding: 6px 12px; } .lkr-plate.sm b { font-size: 14px; background-image: linear-gradient(180deg, #fff3c4, #f0b43c 55%, #a8721a); }
.lkr-flair { position: relative; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 55%, #fff 0%), color-mix(in srgb, var(--rc) 25%, #000) 70%); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rc) 70%, transparent), 0 0 34px color-mix(in srgb, var(--rc) 55%, transparent); }
.lkr-flair::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--rc) 55%, transparent); animation: cxSpin 14s linear infinite; }
.lkr-flair span { font-size: 44px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.lkr-nfx { display: grid; place-items: center; width: 100%; height: 100%; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px); }
.lkr-nfx span { font: 800 30px/1 "Barlow Condensed", sans-serif; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lkr-prof { position: absolute; inset: 0; }
.lkr-prof .th-swatch { position: absolute; inset: 0; border-radius: 0; min-height: 0; height: 100%; }
.lkr-prof-ui { position: absolute; inset: 14px 16px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: 14px 10px 10px; gap: 7px 10px; align-content: center; }
.lkr-prof-ui i { border-radius: 5px; background: rgba(255,255,255,.75); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.lkr-prof-ui .av { grid-row: 1 / 4; width: 40px; height: 40px; border-radius: 50%; align-self: center; background: radial-gradient(circle at 50% 38%, #fff 0 22%, rgba(255,255,255,.55) 23% 100%); }
.lkr-prof-ui .l1 { width: 80%; } .lkr-prof-ui .l2 { width: 55%; opacity: .7; } .lkr-prof-ui .l3 { width: 66%; opacity: .5; }
.lkr-felt { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 12px 14px 8px; }
.lkr-felt .th-felt { width: 100%; height: 100%; }
.lkr-chips { position: absolute; bottom: 18px; display: flex; gap: 4px; }
.lkr-chips i { width: 18px; height: 18px; border-radius: 50%; background: repeating-conic-gradient(#fff 0 10deg, var(--rc) 10deg 30deg); box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 3px 6px rgba(0,0,0,.5); }
.lkr-chips i:nth-child(2) { transform: translateY(-6px); }
.lkr-snake { position: relative; width: 170px; height: 70px; filter: drop-shadow(0 0 10px var(--glow)); }
.lkr-snake i { position: absolute; top: calc(18px + sin(var(--i) * 52deg) * 12px); left: calc(var(--i) * 17px); width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 -3px 6px rgba(0,0,0,.35); }
.lkr-snake i:last-child::before, .lkr-snake i:last-child::after { content: ""; position: absolute; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--eye); box-shadow: 0 0 6px var(--eye); }
.lkr-snake i:last-child::before { left: 16px; } .lkr-snake i:last-child::after { left: 22px; top: 18px; }
.lkr-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 10px 20px; text-align: center; color: #c9d0da; }
.lkr-empty img { width: 150px; filter: drop-shadow(0 14px 24px rgba(0,0,0,.7)); }
.lkr-empty b { font-size: 26px; color: #fff; } .lkr-empty small { max-width: 46ch; color: #8d95a5; font-size: 15px; }

@media (max-width: 640px) {
    .lkr { border-radius: 20px; max-height: calc(100vh - 24px - var(--safe-top, 0px)); }
    .lkr-head { padding: 16px 16px 12px; gap: 12px; } .lkr-icon { width: 58px; height: 58px; } .lkr-title h3 { font-size: 32px; }
    .lkr-look { margin: 0 14px 14px; padding: 16px; grid-template-columns: 1fr; } .lkr-look-felt { display: none; }
    .lkr-look-slots span { min-width: 0; flex: 1 1 calc(50% - 8px); }
    .lkr-tabs { top: 88px; padding: 4px 14px 12px; }
    .lkr-body { padding: 4px 14px 22px; }
    .lkr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .lkr-art { height: 96px; } .lkr-info b { font-size: 17px; } .lkr-flair { width: 64px; height: 64px; } .lkr-flair span { font-size: 34px; }
    .lkr-snake { transform: scale(.8); } .lkr-nfx span { font-size: 22px; }
    .lkr-card.on .lkr-act.on::after { content: ""; }
}
@media (prefers-reduced-motion: reduce) { .lkr-flair::before, .lkr-art::after { animation: none !important; } }

/* ═════ crate tiles v2 (owner 11/3: "Crates just feel bleh compared to the cards") ═════
   animated foil ring per collection, 3D tilt + glare toward the pointer, foil sweep over the art, glitter on Holographic */
.cx-lineup { perspective: 1400px; }
.cx-crate { transform: rotateX(var(--crx, 0deg)) rotateY(var(--cry, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease, border-color .3s ease !important; border-color: transparent !important; }
.cx-crate:hover { transform: translateY(-6px) rotateX(var(--crx, 0deg)) rotateY(var(--cry, 0deg)); transition-duration: .1s, .3s, .3s !important; }
.cx-frame { position: absolute; inset: 0; z-index: 5; border-radius: inherit; padding: 2px; pointer-events: none;
    background: conic-gradient(from var(--tc-a), var(--f1), var(--f2), var(--f3), var(--f2), var(--f1));
    -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);
    animation: tcSpinA 7s linear infinite; opacity: .85; }
.cx-crate:hover .cx-frame { opacity: 1; animation-duration: 3s; }
.cx-glare { position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.16), transparent 42%); mix-blend-mode: screen; }
.cx-crate:hover .cx-glare { opacity: 1; }
.cx-foil { position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(110deg, transparent 38%, color-mix(in srgb, var(--f2) 30%, rgba(255,255,255,.18)) 48%, transparent 58%); background-size: 280% 100%; animation: tcPackShine 6s ease-in-out infinite; }
.cx-lineup .cx-crate:nth-child(2n) .cx-foil { animation-delay: -2s; } .cx-lineup .cx-crate:nth-child(3n) .cx-foil { animation-delay: -4s; }
.cx-glit { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: url(/assets/cards/glitter.webp?v=2) 0 0 / 300px 300px repeat; mix-blend-mode: color-dodge; opacity: .55;
    -webkit-mask: radial-gradient(70% 60% at var(--mx, 50%) var(--my, 40%), #000, transparent 75%); mask: radial-gradient(70% 60% at var(--mx, 50%) var(--my, 40%), #000, transparent 75%); animation: tcGlit 2.4s ease-in-out infinite; }
/* collection colours for the ring */
.cx-crate.k-toxic { --f1: #2d5a0c; --f2: #8dff3c; --f3: #e8ff3c; }
.cx-crate.k-chrome { --f1: #3a424b; --f2: #ffffff; --f3: #7fc8ff; }
.cx-crate.k-bloodmoon { --f1: #4a0610; --f2: #ff2d4a; --f3: #ff9a5a; }
.cx-crate.k-blackout { --f1: #121316; --f2: #ff2a3a; --f3: #6a6aff; }
.cx-crate.k-goldrush { --f1: #6e4a0c; --f2: #ffd36e; --f3: #fff1b0; }
.cx-crate.k-holo { --f1: #ff8ad8; --f2: #8affc1; --f3: #6ed8ff; }
.cx-crate.k-holo .cx-frame { background: conic-gradient(from var(--tc-a), #ff8ad8, #ffd36e, #8affc1, #6ed8ff, #b48aff, #ff8ad8); padding: 3px; }
.cx-crate.k-goldrush .cx-frame, .cx-crate.k-holo .cx-frame { opacity: 1; }
.cx-crate.k-goldrush, .cx-crate.k-holo { box-shadow: 0 0 30px color-mix(in srgb, var(--th) 22%, transparent), 0 18px 40px rgba(0,0,0,.45) !important; }
.cx-crate.k-holo { box-shadow: 0 0 34px rgba(197,139,255,.3), 0 18px 40px rgba(0,0,0,.45) !important; }
.cx-crate::before { display: none; }
.cx-crate-art { box-shadow: inset 0 -40px 50px -20px rgba(10,11,14,.9); }
@media (hover: none) { .cx-crate { transform: none !important; } }
@media (prefers-reduced-motion: reduce) { .cx-frame, .cx-foil, .cx-glit { animation: none; } }
/* phones: no animated rings / foil / glitter on the crate tiles (memory) */
@media (hover: none), (max-width: 760px) { .cx-frame, .cx-foil { animation: none !important; } .cx-glit { display: none; } .cx-lineup { perspective: none; } }

/* Discord gradient color roles (11/3) */
.cx-role { display: flex; align-items: center; gap: 8px; }
.cx-role i { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #c9cdd6 0 22%, #5865f2 23%); flex: 0 0 auto; }
.cx-role.big i { width: 44px; height: 44px; }
.cx-role span { font: 800 18px/1 "gg sans", "Barlow Condensed", sans-serif; }
.cx-role.big span { font-size: 30px; }
.lkr-dc { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #313338; }
.lkr-dc .av { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #dbdee1 0 22%, #5865f2 23%); flex: 0 0 auto; }
.lkr-dc span { display: grid; gap: 2px; text-align: left; } .lkr-dc b { font: 700 16px/1.1 system-ui, sans-serif; } .lkr-dc small { font: 500 10px/1 system-ui, sans-serif; color: #949ba4; }
/* Locker inventory (11/3) */
.lkr-inv-count { color: #9be67f; font-weight: 700; }
.cx-locker-bar .cx-btn small { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.3); font-size: 13px; }
.lkr-invc .lkr-art img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)) drop-shadow(0 0 1px rgba(255,255,255,.7)); }
.lkr-inv-ico { font-size: 40px; }
.lkr-invc .lkr-info small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lkr-inv-bar { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0 4px; background: linear-gradient(180deg, transparent, #101317 40%); }
.lkr-inv-bar span { flex: 1; color: #9aa3b2; font-size: 15px; }
.lkr-inv-bar .cx-btn { height: 42px; }
@media (max-width: 640px) { .lkr-inv-bar .cx-btn { flex: 1 1 45%; padding: 0 10px !important; font-size: 14px; } }
/* no sun rays (owner 11/3: "those bullshit sun rays … look like clipart"): replaced with a soft rarity-coloured light
   pool behind the prize and a slow light sweep, like a lit display case */
.cx-rays { background: radial-gradient(closest-side, color-mix(in srgb, var(--t) 55%, transparent), color-mix(in srgb, var(--t) 18%, transparent) 55%, transparent 75%) !important; animation: cxPoolPulse 3.2s ease-in-out infinite !important; opacity: .8 !important; }
.cx-rays.t0, .cx-rays.t1 { opacity: .4 !important; }
@keyframes cxPoolPulse { 50% { transform: scale(1.08); opacity: 1; } }
.cx-open-beams { display: none !important; }
/* crate: a gentle wobble + a reflection that glides over the crate itself (masked to its own frame, set by the spin player) */
.cx-spin { animation: cxHover 6s ease-in-out infinite, cxWobble 4.6s ease-in-out infinite; }
@keyframes cxWobble { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }
.cx-spin::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.15) 52%, transparent 62%); background-size: 300% 100%; animation: cxReflect 5s ease-in-out infinite;
    -webkit-mask: var(--sheet) var(--bp, 0 0) / var(--bs, 100% 100%) no-repeat; mask: var(--sheet) var(--bp, 0 0) / var(--bs, 100% 100%) no-repeat; }
@keyframes cxReflect { 0%, 30% { background-position: 150% 0; } 70%, 100% { background-position: -50% 0; } }
.cx-foil { display: none; }
@media (hover: none), (max-width: 760px) { .cx-spin { animation: cxHover 6s ease-in-out infinite; } }
/* site-wide gift pop-up (11/3) */
.gift-pop { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 2000; display: flex; align-items: center; gap: 14px; width: min(560px, calc(100vw - 24px)); padding: 12px 14px 12px 12px;
    border-radius: 18px; background: linear-gradient(135deg, rgba(40,26,70,.97), rgba(18,14,28,.97)); border: 1px solid rgba(246,215,122,.5); box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 30px rgba(197,139,255,.3);
    transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.2,1.2,.4,1); font-family: "Barlow Condensed", system-ui, sans-serif; color: #fff; }
.gift-pop.in { transform: translate(-50%, 0); }
.gift-pop img { width: 72px; height: 72px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)); animation: cxFloat 3s ease-in-out infinite; }
.gift-pop div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.gift-pop small { font-weight: 800; font-size: 11px; letter-spacing: .24em; color: #f6d77a; }
.gift-pop b { font-size: 19px; line-height: 1.1; } .gift-pop em { font-style: normal; color: #c9c2dc; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-pop .cx-btn { height: 40px; padding: 0 16px !important; flex: 0 0 auto; }
.gift-pop-x { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; padding: 0 !important; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: #1b1626; color: #fff; font-size: 12px; cursor: pointer; }
@media (max-width: 520px) { .gift-pop img { width: 54px; height: 54px; } .gift-pop b { font-size: 16px; } }
/* mini casino preview for Casino Themes (11/3) */
.mini-casino { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 5px; width: 100%; height: 100%; padding: 6px; }
.mini-casino .th-felt { grid-row: 1 / 3; min-height: 0; border-width: 3px; }
.mc-slot { display: flex; gap: 2px; padding: 3px; border-radius: 6px; background: linear-gradient(180deg, var(--pt1, #888), #111); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.mc-slot i { flex: 1; display: grid; place-items: center; border-radius: 3px; background: #f4f0e6; color: #c21a2a; font: 900 11px/1 "Barlow Condensed", sans-serif; font-style: normal; }
.mc-plinko { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; place-items: center; padding: 4px; border-radius: 6px; background: linear-gradient(180deg, #14161b, #0a0b0e); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pt1, #888) 60%, transparent); }
.mc-plinko i { width: 4px; height: 4px; border-radius: 50%; background: var(--pt1, #ddd); box-shadow: 0 0 4px var(--pt1, #ddd); }
.cx-theme .mini-casino { height: 70%; } .cx-theme.big .mini-casino { height: 80%; }
.cx-theme b { letter-spacing: .14em; }

/* Sinkhole skin prize (owner 11/3): the pit from above, rim colour + glow down the hole */
.cx-sink { position: relative; display: grid; place-items: center; width: 100%; max-width: 240px; min-height: 84px; margin: 0 auto; aspect-ratio: 2 / 1.1; }
.cx-sink .dirt { position: absolute; width: 92%; height: 92%; border-radius: 50%; background: radial-gradient(closest-side, #241a11 55%, rgba(78,58,38,.85) 78%, transparent 100%); }
.cx-sink .pit { position: relative; width: 64%; height: 64%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow) 0%, #000 52%, #0b0806 80%, #3a2c1e 100%); box-shadow: 0 0 0 3px var(--rim), 0 0 22px var(--rim), inset 0 8px 16px rgba(0,0,0,.9); }
.cx-sink.m-prism .pit { border: 3px solid transparent; box-shadow: 0 0 22px #c58bff, inset 0 8px 16px rgba(0,0,0,.9); background: radial-gradient(closest-side, var(--glow) 0%, #000 52%, #0b0806 80%, #3a2c1e 100%) padding-box, conic-gradient(#ff5f6d, #ffc371, #8dff3c, #4fc3ff, #c58bff, #ff5f6d) border-box; }
.cx-sink.m-chrome .pit { box-shadow: 0 0 0 3px var(--rim), 0 0 26px #fff, inset 0 8px 16px rgba(0,0,0,.9); }
.cx-sink.big { max-width: 320px; }
.cx-modal .cx-sink.m-pulse .pit { animation: cxSinkPulse 1.6s ease-in-out infinite; }
@keyframes cxSinkPulse { 50% { box-shadow: 0 0 0 3px var(--rim), 0 0 38px var(--rim), inset 0 8px 16px rgba(0,0,0,.9); } }
/* Discord color prize v2 (owner 11/3: "it looks wack"): a real-looking Discord message in the role's gradient */
.dc-card { position: relative; display: grid; gap: 7px; justify-items: start; width: 100%; max-width: 250px; margin: 0 auto; padding: 10px 11px 9px; border-radius: 10px; background: #2b2d31; border: 1px solid rgba(255,255,255,.07); box-shadow: 0 10px 24px -10px rgba(0,0,0,.8); overflow: hidden; isolation: isolate; text-align: left; }
.dc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rg); opacity: .16; -webkit-mask: radial-gradient(120% 90% at 20% 20%, #000, transparent 75%); mask: radial-gradient(120% 90% at 20% 20%, #000, transparent 75%); }
.dc-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rg); }
.dc-msg { display: flex; gap: 9px; align-items: flex-start; min-width: 0; width: 100%; }
.dc-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #1e1f22; box-shadow: 0 0 0 2px #1e1f22; }
.dc-txt { display: grid; gap: 3px; min-width: 0; }
.dc-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.dc-name { font: 700 15px/1.15 "gg sans", "Noto Sans", system-ui, sans-serif; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; filter: drop-shadow(0 0 6px rgba(255,255,255,.22)); }
.dc-top em { font: 500 9.5px/1 "gg sans", system-ui, sans-serif; font-style: normal; color: #949ba4; white-space: nowrap; }
.dc-line { font: 400 12px/1.25 "gg sans", system-ui, sans-serif; color: #dbdee1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 4px; background: #1e1f22; border: 1px solid rgba(255,255,255,.08); font: 600 10.5px/1 "gg sans", system-ui, sans-serif; color: #dbdee1; }
.dc-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--rg); box-shadow: 0 0 6px rgba(255,255,255,.25); }
.dc-card.big { max-width: 320px; padding: 14px 15px 12px; gap: 10px; }
.dc-card.big .dc-av { width: 40px; height: 40px; } .dc-card.big .dc-name { font-size: 20px; } .dc-card.big .dc-top em { font-size: 11px; } .dc-card.big .dc-line { font-size: 14px; } .dc-card.big .dc-pill { font-size: 12px; padding: 4px 10px 4px 7px; } .dc-card.big .dc-pill i { width: 11px; height: 11px; }
.dc-card:not(.big) .dc-top em, .dc-card:not(.big) .dc-line { display: none; }
.dc-card:not(.big) .dc-msg { align-items: center; }
.dc-card:not(.big) .dc-name { font-size: 18px; }
.dc-card:not(.big) .dc-txt { gap: 0; }
/* Sinkhole skin = a shot from the game (owner 11/3: the CSS oval "looks off") */
.cx-sinkimg { position: relative; display: block; width: 100%; max-width: 230px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--rim) 55%, transparent), 0 10px 26px -10px rgba(0,0,0,.85), 0 0 22px -8px var(--rim); }
.cx-sinkimg img { display: block; width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.cx-sinkimg.big { max-width: 320px; }
/* Snake Pit skin = a shot from the game too (owner 11/2: "Snake skins should have the picture like the sinkhole skins");
   .nopic = the picture failed, the drawn snake (canvas / Locker CSS snake) shows instead */
.cx-snakeimg { position: relative; display: block; width: 100%; max-width: 230px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--rim) 55%, transparent), 0 10px 26px -10px rgba(0,0,0,.85), 0 0 22px -8px var(--rim); }
span.cx-snakeimg > img { position: static; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; filter: none; animation: none; }
.cx-snakeimg.big { max-width: 320px; }
.cx-snakeimg > :not(img) { display: none; }
.cx-snakeimg.nopic { overflow: visible; border-radius: 0; box-shadow: none; }
.cx-snakeimg.nopic > :not(img) { display: block; margin: 0 auto; }

/* Gold Rush diamond glints (owner 11/3) */
.cx-dia-still { position: absolute; left: 29%; top: 50%; width: 39%; height: 34%; pointer-events: none; z-index: 4; }
.has-spin .cx-dia-still { display: none; }
.cx-dia { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.cx-dia i { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; opacity: 0;
  background: radial-gradient(circle, #fff 0 14%, rgba(255,240,195,.95) 26%, rgba(255,214,120,0) 62%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  animation: cxDia 3.6s ease-in-out infinite; }
@keyframes cxDia { 0%, 64%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 76% { opacity: 1; transform: scale(1) rotate(30deg); } 88% { opacity: .25; transform: scale(.45) rotate(55deg); } }
@media (prefers-reduced-motion: reduce) { .cx-dia i { animation: none; } }

/* Sinkhole skin pictures in prize tiles: the wrapper had no height on phones (picture is pinned inside it) → a thin line (owner 11/3) */
.cx-tile-art .cx-sinkimg { width: min(100%, 230px); aspect-ratio: 6 / 5; }
.cx-tile-art .cx-sinkimg img { object-fit: cover; filter: none; }
/* daily crate limit line (11/3): neutral count, red only when the limit is reached */
.cx-short.cx-limit { color: #b9bfcb; font-size: 14px; letter-spacing: .02em; }
.cx-short.cx-limit.full { color: #ff6b6b; font-size: 15px; }

/* quantity stepper − [n] + (owner 11/3: "There needs to be a quantity option"), shared by Cases and Cards (cases.js PQ).
   The − / + reset the global button padding (it pushes small icon buttons off-center). */
.pq { display: inline-flex; align-items: center; flex: 0 0 auto; height: 46px; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.16); box-sizing: border-box; font-family: "Barlow Condensed", system-ui, sans-serif; }
.pq .pq-b { width: 38px; height: 100%; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font: 800 22px/1 system-ui, sans-serif; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background .12s; }
.pq .pq-b:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.pq .pq-b:disabled { opacity: .3; cursor: default; }
.pq .pq-n { min-width: 30px; text-align: center; font: 800 21px/1 "Barlow Condensed", sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.cx-buyq { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.cx-actions .cx-buyq .pq { height: 54px; }
.cx-actions .cx-buyq .pq .pq-b { width: 44px; }
.pq-row { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 520px) {
  .cx-buyq { width: 100%; }
  .cx-actions .cx-buyq .cx-btn { flex: 1 1 auto; width: auto; min-width: 0; flex-direction: column; gap: 2px; padding: 0 12px !important; font-size: 17px; line-height: 1.05; white-space: nowrap; }
  .cx-actions .cx-buyq .cx-btn small { font-size: 14px; }
  .cx-actions .cx-buyq .pq .pq-b { width: 40px; }
}
/* several crates at once: every prize in one grid */
.cx-multi { width: min(760px, 100%); display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: linear-gradient(180deg, #1c1f25, #121418); border: 1px solid color-mix(in srgb, var(--t) 45%, rgba(255,255,255,.06)); box-shadow: 0 0 60px -20px var(--t), 0 30px 80px rgba(0,0,0,.6); color: var(--cx-text, #e8ebf0); animation: cxPop .45s cubic-bezier(.2,.9,.3,1.15); }
.cx-multi-h { display: grid; gap: 4px; text-align: center; }
.cx-multi-h small { font: 700 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--cx-dim, #9aa3b2); }
.cx-multi-h b { font: 800 30px/1.1 "Barlow Condensed", sans-serif; color: #fff; }
.cx-multi-h em { font-style: normal; font-size: 14px; color: var(--cx-dim, #9aa3b2); }
.cx-multi-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; max-height: min(56vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.cx-multi .cx-where { text-align: center; }
@media (max-width: 520px) { .cx-multi { padding: 16px 12px; } .cx-multi-h b { font-size: 24px; } .cx-multi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; } }

/* ═════ Crates tab v5 (owner 11/6: "kinda blehh compared to our cards page … make it POP just like the cards … our crates
   look kind of bubbly & roundish"). Crates first under a real section title, squarer cards with a collection-tinted body,
   a light sweep and the price as a full coloured button; free crates built like the Cards tab's free-pack tiles; Trade-Up +
   Locker side by side; recent unboxings as rarity-edged chips. Every crate pays out now (no empties). ═════ */
.cx-sec { display: grid; gap: 16px; }
.cx-sec > .cx-h { margin: 4px 0 -4px; }
.cx-sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px; }
.cx-sec-h > div { display: grid; gap: 6px; }
.cx-eye { font: 800 12.5px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; font-style: normal; color: #f6d77a; }
.cx-sec-h h3 { margin: 0; font: 900 clamp(32px, 3.6vw, 46px)/.95 "Barlow Condensed", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .01em; color: #fff; text-shadow: 0 0 30px rgba(246,215,122,.22); }
.cx-sec-h p { margin: 0; max-width: 62ch; font-size: 16px; line-height: 1.35; color: #aab1be; }
.cx-sec-chip { flex: none; padding: 10px 16px; border-radius: 999px; font: 600 15px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .03em; color: #cfd5de; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12); }
.cx-sec-chip b { margin-right: 3px; font-size: 18px; color: #7ee35a; }
.cx-sec-chip.full b { color: #ff6b6b; }

/* crate cards */
.cx-lineup { gap: 20px; }
.cx-crate { border-radius: 14px !important;
    background: radial-gradient(130% 55% at 50% 100%, color-mix(in srgb, var(--th) 26%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--th) 9%, #13151a), #0b0c10) !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.45), 0 0 44px -16px var(--th) !important; }
.cx-crate:hover { box-shadow: 0 28px 60px rgba(0,0,0,.55), 0 0 60px -10px var(--th) !important; }
.cx-crate-art { box-shadow: inset 0 -50px 50px -24px color-mix(in srgb, var(--th) 10%, #0d0e12); }
.cx-sweep { position: absolute; top: -30%; bottom: -30%; left: -60%; width: 55%; z-index: 4; pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.08) 45%, color-mix(in srgb, var(--th) 24%, transparent) 55%, transparent); transform: skewX(-18deg); animation: cxSweep 7s ease-in-out infinite; }
.cx-lineup .cx-crate:nth-child(2) .cx-sweep { animation-delay: -1.2s; } .cx-lineup .cx-crate:nth-child(3) .cx-sweep { animation-delay: -2.4s; }
.cx-lineup .cx-crate:nth-child(4) .cx-sweep { animation-delay: -3.6s; } .cx-lineup .cx-crate:nth-child(5) .cx-sweep { animation-delay: -4.8s; } .cx-lineup .cx-crate:nth-child(6) .cx-sweep { animation-delay: -6s; }
@keyframes cxSweep { 0%, 55% { transform: skewX(-18deg) translateX(0); } 100% { transform: skewX(-18deg) translateX(420%); } }
.cx-col { border-radius: 8px; }
.cx-free { border-radius: 8px; padding: 6px 11px; font-size: 13px; }
.cx-crate-info { gap: 6px; padding: 14px 18px 4px; }
.cx-crate-info b { font: 900 30px/1 "Barlow Condensed", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .02em; color: #fff; text-shadow: 0 0 22px color-mix(in srgb, var(--th) 60%, transparent); }
.cx-crate.k-goldrush .cx-crate-info b { background: linear-gradient(180deg, #fff3c4, #ffc44d 55%, #c8871a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 14px rgba(255,196,77,.35)); }
.cx-crate.k-holo .cx-crate-info b { background: linear-gradient(90deg, #ffc6ec, #c2efff, #d2ffdc, #fff0b8, #e3caff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 14px rgba(197,139,255,.4)); }
.cx-crate.k-chrome .cx-crate-info b { background: linear-gradient(180deg, #ffffff, #b9c6d3 55%, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.cx-crate-info small { font-size: 15px; color: color-mix(in srgb, var(--th) 16%, #b3bac6); }
.cx-pulls { padding: 6px 18px 2px; }
.cx-pull { border-radius: 8px; }
.cx-odds-line { display: flex; align-items: center; gap: 12px; margin: 12px 18px 0; }
.cx-odds-line .cx-mix { flex: 1; margin: 0; height: 6px; }
.cx-leg { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #f3c75a; }
.cx-leg i { width: 7px; height: 7px; border-radius: 50%; background: #e4ae39; box-shadow: 0 0 8px #e4ae39; }
.cx-crate-foot { padding: 14px 16px 16px 18px; }
.cx-crate-price { gap: 10px; padding: 12px 12px 12px 18px; border: 0 !important; font: 800 20px/1 "Barlow Condensed", system-ui, sans-serif; color: #0b0c0f;
    background: linear-gradient(135deg, color-mix(in srgb, var(--th) 62%, #fff), var(--th)) !important; box-shadow: 0 10px 24px color-mix(in srgb, var(--th) 32%, transparent), inset 0 1px 0 rgba(255,255,255,.5); }
.cx-crate-price small { font: 800 13px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.cx-crate-price i { color: var(--th); background: rgba(8,9,12,.85); }
.cx-crate:hover .cx-crate-price { filter: brightness(1.1); }
.cx-crate.k-blackout .cx-crate-price, .cx-crate.k-bloodmoon .cx-crate-price { color: #fff; }
.cx-crate.k-holo .cx-crate-price { background: linear-gradient(110deg, #ffb3e6, #b8ecff, #c8ffd9, #ffeaa8, #dcc0ff) !important; }
@media (max-width: 760px) { .cx-sweep { display: none; } .cx-crate-info b { font-size: 27px; } }
@media (prefers-reduced-motion: reduce) { .cx-sweep { animation: none; display: none; } }

/* free crates (same build as the Cards tab's free-pack tiles) */
.cx-perk.v5 { position: relative; grid-template-columns: minmax(112px, 168px) minmax(0, 1fr); align-items: center; gap: 18px; padding: 16px 20px 16px 10px; border-radius: 18px; overflow: hidden; isolation: isolate;
    border: 1px solid color-mix(in srgb, var(--fa) 40%, transparent); background: radial-gradient(70% 120% at 16% 50%, color-mix(in srgb, var(--fa) 24%, transparent), transparent 70%), linear-gradient(180deg, #15181e, #0f1115); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.cx-perk-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.cx-perk-art img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0,0,0,.6)); animation: cxFloat 5s ease-in-out infinite; }
.cx-perk-glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--fa) 52%, transparent), transparent 75%); }
.cx-perk-txt { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.cx-perk-name { font: 900 22px/1 "Barlow Condensed", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.cx-perk.v5 .cx-eye { color: var(--fa); }
.cx-perk-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font: 800 36px/1 "Barlow Condensed", system-ui, sans-serif; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 22px color-mix(in srgb, var(--fa) 45%, transparent); }
.cx-perk-big small { font: 700 16px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .03em; color: #aeb5c2; text-shadow: none; }
.cx-perk.v5 .cx-meter { width: min(340px, 100%); height: 8px; }
.cx-perk.v5 .cx-meter > i { background: linear-gradient(90deg, color-mix(in srgb, var(--fa) 55%, #fff), var(--fa)); box-shadow: 0 0 12px color-mix(in srgb, var(--fa) 60%, transparent); }
.cx-perk-sub { font-size: 14px; line-height: 1.3; color: #aab1be; }
.cx-perk.v5 .cx-btn { margin-top: 4px; min-width: 170px; height: 42px; }
.cx-chip-btn { display: grid; justify-items: center; gap: 2px; height: auto; min-height: 0; padding: 7px 11px !important; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #cfd5df;
    font: 800 15px/1 "Barlow Condensed", system-ui, sans-serif; text-transform: none; cursor: default; }
.cx-chip-btn small { font: 600 11px/1.1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .02em; color: #8e96a4; }
.cx-chip-btn:disabled { opacity: 1; }
.cx-chip-btn.done { border-color: rgba(126,227,90,.35); color: #9be37f; }
.cx-chip-btn.ready { cursor: pointer; border-color: #ffd36a; background: rgba(228,174,57,.18); color: #ffd36a; box-shadow: 0 0 14px rgba(228,174,57,.3); }
.cx-chip-btn.ready small { color: #f0d690; }
@media (max-width: 560px) { .cx-perk.v5 { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 14px 14px 14px 6px; } .cx-perk-big { font-size: 30px; } .cx-perk-name { font-size: 20px; } .cx-perk.v5 .cx-btn { min-width: 0; width: 100%; } }
@media (hover: none), (max-width: 760px) { .cx-perk-art img { animation: none; } }

/* Trade-Up + Locker side by side */
.cx-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.cx-tools .cx-trade-bar { border-radius: 16px; padding: 14px 14px 14px 16px; box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.cx-tools .cx-trade-bar > div { min-width: 0; flex: 1 1 180px; }
.cx-tools .cx-trade-bar b { font: 900 21px/1 "Barlow Condensed", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.cx-tools .cx-trade-bar small { font-size: 14px; line-height: 1.3; }
.cx-tools .cx-trade-bar .cx-btn { height: 44px; }
.cx-tools .cx-trade-ico { width: 52px; height: 52px; border-radius: 14px; }

/* recent unboxings: rarity-edged chips */
.cx-fi { min-width: 220px; padding: 8px 16px 8px 8px; border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--t) 16%, #15171c), #101216); border: 1px solid color-mix(in srgb, var(--t) 42%, transparent); box-shadow: inset 0 -2px 0 var(--t); }
.cx-fi .art { width: 58px; height: 44px; border-radius: 10px; background: radial-gradient(closest-side, color-mix(in srgb, var(--t) 35%, transparent), rgba(0,0,0,.25)); }
/* owner 11/9: grey scrollbar + half-cut last chip. No scrollbar anywhere; on PC one row that fits the width (extra chips hidden), phones still swipe */
.cx-feed-wrap { display: grid; gap: 12px; } /* the heading's -6px bottom margin pulled the chips up over its text */
.cx-feed-wrap > .cx-h { margin: 0; }
.cx-feed { scrollbar-width: none; }
.cx-feed::-webkit-scrollbar { display: none; }
.cx-fi .art { flex: none; }
.cx-fi .txt { min-width: 0; }
.cx-fi .txt b, .cx-fi .txt small { overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) {
    /* chips wrap; the box is one chip tall (62px chip + 2px padding top/bottom), so lines 2+ sit fully below it and are clipped */
    .cx-feed { flex-wrap: wrap; gap: 12px 10px; height: 66px; box-sizing: border-box; overflow: hidden; padding: 2px; -webkit-mask-image: none; mask-image: none; }
    .cx-feed .cx-fi { flex: 1 1 220px; min-width: 0; height: 62px; box-sizing: border-box; }
}

/* ═════ crate opening ceremony (cases.js ceremony(), owner 11/6 "a more enticing crate open … like the pack ripping"):
   drop with weight → tap the two latches → the seam leaks light in the best prize's colour (--rc) → lid kicks open.
   Four rendered stills swap instantly (no cross-fade, so the hardware never ghosts). No backdrop-filter / CSS blur. ═════ */
.cx-hero-crate.cer .cx-spin, .cx-hero-crate.cer .cx-spin-glow { opacity: 0 !important; animation: none !important; }
.cx-cer { position: absolute; inset: 0; z-index: 4; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity .38s ease; }
.cx-cer.gone { opacity: 0; pointer-events: none; }
.cx-cer-box { position: absolute; transform-origin: 50% 92%; will-change: transform; }
.cx-cer-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; pointer-events: none; user-select: none;
    filter: drop-shadow(0 18px 18px rgba(0,0,0,.55)); }
.cx-cer-box img.on { opacity: 1; }
.cx-cer-box.drop { animation: cxCerDrop .4s cubic-bezier(.55,0,1,.45) both; }
@keyframes cxCerDrop { from { transform: translateY(-55%) rotate(-2deg); opacity: 0; } 25% { opacity: 1; } to { transform: none; } }
.cx-cer-box.land { animation: cxCerLand .34s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes cxCerLand { 0% { transform: scale(1.03, .94); } 100% { transform: none; } }
.cx-cer-box.strain { animation: cxCerStrain .09s linear infinite; }
@keyframes cxCerStrain { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1.2px, .6px) rotate(-.25deg); } 75% { transform: translate(1.2px, -.6px) rotate(.25deg); } }
.cx-cer-shadow { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.75), rgba(0,0,0,.3) 60%, transparent); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.55,0,1,.45); }
.cx-cer.down .cx-cer-shadow { opacity: 1; transform: none; }
/* light leaking out of the lid seam, in the best prize's rarity colour */
.cx-cer-seam { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; mix-blend-mode: screen; }
.cx-cer-seam polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cx-cer-seam .s3 { stroke: var(--rc); stroke-width: 28; opacity: .3; }
.cx-cer-seam .s2 { stroke: var(--rc); stroke-width: 10; opacity: .7; }
.cx-cer-seam .s1 { stroke: color-mix(in srgb, var(--rc) 35%, #fff); stroke-width: 2.5; }
.cx-cer.leak .cx-cer-seam { animation: cxCerLeak .76s ease-in forwards; }
@keyframes cxCerLeak { 0% { opacity: 0; } 15% { opacity: .55; } 25% { opacity: .25; } 45% { opacity: .8; } 55% { opacity: .5; } 100% { opacity: 1; } }
.cx-cer.open .cx-cer-seam { opacity: 0; animation: none; transition: opacity .2s; }
/* the open crate's mouth: a pool of rarity-coloured light rising out of it */
.cx-cer-mouth { position: absolute; width: 95%; aspect-ratio: 2.2; transform: translate(-50%, -50%) scale(.3); opacity: 0; pointer-events: none; border-radius: 50%; mix-blend-mode: screen;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 45%, #fff), color-mix(in srgb, var(--rc) 70%, transparent) 38%, transparent 72%); }
.cx-cer.open .cx-cer-mouth { animation: cxCerMouth .9s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes cxCerMouth { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 25% { opacity: 1; transform: translate(-50%, -62%) scale(1.15); } 100% { opacity: .75; transform: translate(-50%, -58%) scale(1); } }
.cx-cer.open::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 60% at 50% 55%, color-mix(in srgb, var(--rc) 55%, #fff), transparent 70%); mix-blend-mode: screen; animation: cxCerFlash .5s ease-out forwards; }
@keyframes cxCerFlash { from { opacity: .9; } to { opacity: 0; } }
/* tap targets on the latches: a pulsing steel ring, left first */
.cx-cer-latch { position: absolute; width: 58px; height: 58px; min-width: 0; min-height: 0; margin: -29px 0 0 -29px; padding: 0 !important; border-radius: 50%; cursor: pointer; opacity: 0; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255,226,166,.22), transparent 70%); border: 2px solid rgba(255,236,190,.85); box-shadow: 0 0 0 0 rgba(255,214,130,.55), inset 0 0 12px rgba(255,214,130,.35); transition: opacity .2s, transform .2s; }
.cx-cer.ask .cx-cer-latch:not(.done) { opacity: 1; pointer-events: auto; animation: cxCerRing 1.1s ease-out infinite; }
.cx-cer.ask .cx-cer-latch[data-l="1"]:not(.done) { animation-delay: .35s; }
.cx-cer-latch.done { opacity: 0 !important; transform: scale(1.6); animation: none !important; }
.cx-cer-latch:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes cxCerRing { 0% { box-shadow: 0 0 0 0 rgba(255,214,130,.55), inset 0 0 12px rgba(255,214,130,.35); } 100% { box-shadow: 0 0 0 18px rgba(255,214,130,0), inset 0 0 12px rgba(255,214,130,.35); } }
.cx-cer-hint { position: absolute; left: 50%; transform: translateX(-50%); padding: 7px 16px; border-radius: 999px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .25s;
    font: 800 14px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #ffe9b8; background: rgba(8,9,12,.72); border: 1px solid rgba(255,226,166,.35); }
.cx-cer.ask .cx-cer-hint { opacity: 1; }
.cx-cer-skip { position: absolute; right: 12px; bottom: 12px; z-index: 2; height: 34px; min-height: 0; padding: 0 14px !important; border-radius: 999px; cursor: pointer;
    font: 700 14px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #d3d8e1; background: rgba(8,9,12,.6); border: 1px solid rgba(255,255,255,.18); }
.cx-cer.open .cx-cer-skip, .cx-cer.gone .cx-cer-skip { opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .cx-cer-latch { width: 50px; height: 50px; margin: -25px 0 0 -25px; } .cx-cer-hint { font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .cx-cer-box.drop, .cx-cer-box.land, .cx-cer-box.strain, .cx-cer-latch { animation: none !important; } }