/* Polow Case — тёмная тема для открытия кейсов */
:root {
  --bg: #121216;
  --surface: #16161b;
  --surface-2: #1c1c22;
  --surface-3: #222229;
  --tonal: #2a2a32;
  --tonal-hover: #383843;
  --border: #28282f;
  --stroke: #3b3b45;
  --fg: #f5f5fa;
  --muted: #8b8b98;
  --price: #e3e3e5;
  --accent: #8c66ff;
  --accent-hover: #9d7cff;
  --gold: #ffc259;
  --success: #5aed90;
  --danger: #ff595f;
  --st: #ffc654;

  --r-common: #b1b5ce;
  --r-rare: #667fff;
  --r-epic: #8a5ce5;
  --r-legendary: #d766ed;
  --r-arcane: #e52a5b;
  --r-nameless: #e7a800;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --radius: 16px;
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(140, 102, 255, .14), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(255, 194, 89, .06), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(18, 18, 22, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 64px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar__left { display: flex; align-items: center; gap: 28px; min-width: 0; }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark { width: 34px; height: 34px; flex: 0 0 34px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(140, 102, 255, .5)); }
.logo__text { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo__text b { color: var(--accent-hover); font-weight: 800; }
.mainnav { display: flex; gap: 4px; }
.mainnav a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px;
  color: var(--muted); font-weight: 600; font-size: 14px;
  transition: color .2s, background .2s;
}
.mainnav a:hover { color: var(--fg); background: rgba(255, 255, 255, .04); }
.mainnav a.active { color: var(--fg); background: rgba(140, 102, 255, .14); }
.mainnav a.active svg { color: var(--accent-hover); }

.balance {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 6px 0 14px;
  border-radius: 12px; background: var(--surface-3);
  border: 1px solid var(--border);
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.balance--mobile { display: none; }
.avatar {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-family: var(--display); font-size: 15px;
  background: linear-gradient(135deg, #8c66ff, #e52a5b); border: 0; padding: 0; color: inherit; cursor: pointer;
}
.avatar[class*="profile-avatar--"] { background: linear-gradient(145deg, var(--profile-avatar-color), #17151f); font-size: 22px; }
.avatar--pass-framed { position: relative; isolation: isolate; border: 1px solid var(--avatar-frame-color); }
.avatar--pass-framed::after { content: ""; position: absolute; z-index: 3; inset: 3px; border: 1px solid color-mix(in srgb,var(--avatar-frame-color) 72%,white); border-radius: inherit; box-shadow: inset 0 0 12px color-mix(in srgb,var(--avatar-frame-color) 38%,transparent); pointer-events: none; }
.avatar--frame-pass-frame-aurora { box-shadow: 0 0 0 2px #67e8c2, 0 0 0 4px rgba(103,232,194,.28), 0 0 22px rgba(103,232,194,.55); }
.avatar--frame-pass-frame-comet { box-shadow: 0 0 0 2px #9b7bff, 0 0 0 4px rgba(78,199,255,.32), 0 0 24px rgba(155,123,255,.58); }
.avatar--frame-pass-frame-solar { box-shadow: 0 0 0 2px #ffc259, 0 0 0 4px rgba(255,111,56,.3), 0 0 24px rgba(255,194,89,.55); }
.avatar--frame-pass-frame-ember { box-shadow: 0 0 0 2px #ff6685, 0 0 0 4px rgba(255,153,82,.3), 0 0 24px rgba(255,102,133,.58); }
.avatar--custom { overflow: hidden; padding: 0; }
.avatar__image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.gold { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }
.price { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--price); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background .2s, transform .12s, opacity .2s, box-shadow .2s;
  user-select: none;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(140, 102, 255, .8); }
.btn--accent:hover:not(:disabled) { background: var(--accent-hover); }
.btn--gold { background: linear-gradient(180deg, #ffd27a, #f5a524); color: #2a1a00; box-shadow: 0 8px 24px -8px rgba(255, 194, 89, .7); }
.btn--gold:hover:not(:disabled) { filter: brightness(1.06); }
.btn--tonal { background: var(--tonal); }
.btn--tonal:hover:not(:disabled) { background: var(--tonal-hover); }
.btn--ghost { background: transparent; border: 1px solid var(--stroke); }
.btn--ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .04); }
.btn--success { background: rgba(90, 237, 144, .14); color: var(--success); }
.btn--success:hover:not(:disabled) { background: rgba(90, 237, 144, .22); }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }

/* ---------- Live feed ---------- */
.livefeed { 
  display: flex; align-items: stretch; gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  height: 74px; overflow: hidden;
}
.livefeed__label {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--muted); border-right: 1px solid var(--border);
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.livefeed__label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.livefeed__best { flex: 0 0 285px; display: flex; align-items: center; gap: 7px; padding: 5px 9px; border-right: 1px solid var(--border); background: linear-gradient(90deg, rgba(255,194,89,.09), transparent); }
.livefeed__best-label { flex: 0 0 50px; color: var(--gold); font-size: 8px; line-height: 1.3; font-weight: 900; letter-spacing: .06em; text-align: center; }
.livefeed__best-label-short { display: none; }
.livefeed__best .feeditem { flex: 0 0 126px; }
.livefeed__best-price { min-width: 0; color: var(--gold); font-size: 10px; }
.livefeed__best-price .price { gap: 2px; color: var(--gold); font-size: 10px; }
.livefeed__best-empty { color: var(--muted); font-size: 10px; line-height: 1.3; text-align: center; }
.livefeed__track { display: flex; gap: 6px; padding: 6px; overflow: hidden; flex: 1; min-width: 0; }
.feeditem {
  position: relative; flex: 0 0 132px; height: 62px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, rgba(77, 80, 92, .18), color-mix(in srgb, var(--rc) 24%, transparent));
  animation: feedIn .5s cubic-bezier(.2, .9, .3, 1.2);
}
.feeditem::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--rc); box-shadow: 0 0 14px var(--rc); }
.feeditem img { position: absolute; inset: 4px 10px 18px; width: calc(100% - 20px); height: 40px; object-fit: contain; }
.feeditem__nick { position: absolute; z-index: 2; top: 4px; left: 6px; max-width: calc(100% - 12px); padding: 2px 5px; border-radius: 5px; background: rgba(8, 8, 12, .72); color: var(--fg); font-size: 9px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feeditem__skin { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 5px; font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feeditem__details { position: absolute; z-index: 4; inset: 0; display: grid; align-content: center; gap: 3px; padding: 6px 8px; background: rgba(12, 11, 17, .96); color: var(--fg); font-size: 10px; line-height: 1.2; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, visibility .16s ease; }
.feeditem__details > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.feeditem__details b { color: var(--accent); font-weight: 700; }
.feeditem:hover .feeditem__details, .feeditem:focus-visible .feeditem__details, .feeditem.is-expanded .feeditem__details { opacity: 1; visibility: visible; }
.feeditem.mine { outline: 1px solid rgba(140, 102, 255, .7); }
@keyframes feedIn { from { transform: translateX(-30px) scale(.8); opacity: 0; } }

/* ---------- Layout ---------- */
.page { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 48px; }
.section { margin-top: 36px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section__title { font-size: 22px; font-weight: 700; }
.chipbar { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 10px;
  background: rgba(73, 74, 82, .35); color: var(--muted);
  font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, color .2s;
}
.chip:hover { color: var(--fg); }
.chip.on { background: rgba(140, 102, 255, .18); color: var(--fg); }
.switch { width: 30px; height: 18px; border-radius: 9px; background: var(--stroke); position: relative; transition: background .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.on > .switch, .switch.on { background: var(--accent); }
.on > .switch::after, .switch.on::after { transform: translateX(12px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; border-radius: 24px; overflow: hidden;
  min-height: 340px; display: flex; align-items: center;
  background: #0d0a18 center / cover no-repeat;
  border: 1px solid rgba(140, 102, 255, .22);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 8, 18, .95) 0%, rgba(10, 8, 18, .7) 38%, transparent 70%); }
.hero__content { position: relative; z-index: 1; padding: 40px 44px; max-width: 560px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.05; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #b9a0ff, #ffc259); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #c9c9d6; margin: 14px 0 24px; font-size: 16px; max-width: 440px; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-family: var(--display); font-size: 20px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- Case cards ---------- */
.category { margin-top: 28px; }
.category__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.category__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(140, 102, 255, .3), rgba(255, 194, 89, .2)); }
.category__head h3 { font-size: 17px; font-weight: 700; }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; align-content: start; }
.casecard {
  position: relative; min-height: 292px; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 48%), var(--surface);
  border: 1px solid var(--border); padding: 12px; display: flex; flex-direction: column; text-align: left;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.casecard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(75% 48% at 50% 28%, color-mix(in srgb, var(--a1) 30%, transparent), transparent 75%),
    linear-gradient(180deg, transparent 54%, color-mix(in srgb, var(--a2) 16%, transparent));
  transition: opacity .3s; opacity: .8;
}
.casecard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a1) 60%, transparent); box-shadow: 0 16px 38px -25px var(--a1); }
.casecard:hover::before { opacity: 1; }
.casecard:hover .casecard__img { transform: scale(1.05) rotate(-2deg); }
.casecard__tag { position: absolute; z-index: 2; top: 10px; left: 10px; max-width: calc(100% - 20px); overflow: hidden; font-size: 9px; font-weight: 800; padding: 5px 8px; border-radius: 7px; background: rgba(9,10,16,.72); color: var(--a1); text-transform: uppercase; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.casecard__art { position: relative; display: grid; place-items: center; min-height: 164px; margin: 0 -4px 8px; overflow: hidden; border-radius: 13px; }
.casecard__art::before { content:""; position:absolute; inset:10px 12px; border-radius:50%; background:radial-gradient(circle,color-mix(in srgb,var(--a1) 24%,transparent),transparent 68%); filter:blur(8px); }
.casecard__img { position: relative; z-index:1; width: 100%; height: 152px; object-fit: contain; margin: 0; padding: 12px; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .48)); }
.casecard__img--drop { width: 80%; height: 140px; padding: 4px; transform: rotate(-4deg); }
.casecard__featured { position:absolute; z-index:2; left:8px; right:8px; bottom:5px; display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; padding:6px 8px; border:1px solid rgba(255,255,255,.08); border-radius:8px; background:rgba(9,10,16,.76); backdrop-filter:blur(8px); }
.casecard__featured small { color:var(--gold); font-size:8px; font-weight:900; letter-spacing:.08em; white-space:nowrap; }
.casecard__featured b { overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.casecard__name { overflow:hidden; font-size:14px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.casecard__meta { margin-top:4px; color:var(--muted); font-size:10px; }
.casecard__price { margin-top:10px; min-height:40px; padding:0 10px; border-radius:10px; background:rgba(0,0,0,.24); border:1px solid rgba(255,255,255,.07); display:flex; align-items:center; gap:7px; font-weight:800; font-variant-numeric:tabular-nums; }
.casecard__price small { color:var(--muted); font-size:8px; letter-spacing:.08em; }
.casecard__price b { display:inline-flex; align-items:center; gap:5px; margin-left:auto; }
.casecard__price .gold { width:13px; height:13px; }
.casecard__price i { color:var(--a1); font-size:16px; font-style:normal; }
.casecard.dim { opacity: .45; }

/* ---------- Case page ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.back:hover { color: var(--fg); }
.case-titlebar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.case-titlebar .back { width: 38px; height: 38px; flex: 0 0 38px; justify-content: center; margin: 0; border-radius: 12px; background: var(--surface); font-size: 18px; }
.case-titlebar h1 { min-width: 0; flex: 1; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; line-height: 1.15; }
.case-titlebar__price { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 12px; background: var(--surface); font-size: 14px; }
.case-open-stage { position: relative; display: grid; gap: 8px; overflow: hidden; isolation: isolate; padding: 8px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.case-open-stage::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--a1) 16%, transparent), transparent 62%), radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--a2) 12%, transparent), transparent 68%); pointer-events: none; }
.case-open-stage__art { position: absolute; z-index: 4; left: 50%; top: 50%; width: min(170px, calc(100% - 24px)); height: min(150px, calc(100% - 24px)); transform: translate(-50%, -50%); pointer-events: none; transition: opacity .3s ease, transform .3s ease; filter: drop-shadow(0 15px 28px rgba(0, 0, 0, .55)); }
.case-open-stage__art-img { width: 100%; height: 100%; object-fit: contain; animation: case-art-float 4s ease-in-out infinite; }
.case-open-stage.is-spinning .case-open-stage__art { opacity: 0; transform: translate(-50%, -50%) scale(.82); }
.case-open-stage.has-result .case-open-stage__art { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(.82); }
@keyframes case-art-float { 50% { transform: translateY(-6px); } }
.case-open-stage:not(.is-spinning) .roulette:not(.done) .roulette__strip { filter: blur(4px); opacity: .48; }
.roulette__strip { transition: filter .25s ease, opacity .25s ease; }
.controls { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
.case-open-controls { justify-content: space-between; gap: 10px; margin-top: 12px; }
.case-open-controls > [data-sell-results] { width: auto; min-height: 36px; white-space: nowrap; }
.case-free-openings { width: 100%; margin-top: -4px; color: var(--accent-hover); font-size: 12px; font-weight: 700; }
.mystery-info { margin-top: 22px; padding: 28px 22px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.mystery-info__head { display: grid; justify-items: center; gap: 10px; margin-bottom: 22px; color: var(--fg); text-align: center; }
.mystery-info__head svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mystery-info__head h2 { font-size: 20px; font-weight: 900; }
.mystery-info__features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mystery-info__feature { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 14px; font-weight: 700; }
.mystery-info__feature svg { flex: 0 0 24px; width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mystery-info__note { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.counts { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--border); }
.counts button { min-width: 40px; height: 38px; border-radius: 10px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.counts button:hover { color: var(--fg); }
.counts button.on { background: var(--tonal-hover); color: var(--fg); }
.fast { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 14px; }
.fast.on { color: var(--fg); }

/* Roulette */
.spinners { display: grid; grid-template-columns: repeat(var(--reel-cols, 1), minmax(0, 1fr)); gap: 8px; }
.roulette {
  position: relative; height: var(--reel-height, 172px); border-radius: 14px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.roulette__strip { position: absolute; top: 8px; bottom: 8px; left: 0; display: flex; gap: 8px; will-change: transform; }
.roulette__strip .skin { width: var(--reel-card-width, 210px); height: 100%; flex-shrink: 0; }
.mystery-reel-card { --rc: var(--gold); align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255, 194, 89, .18); background: radial-gradient(ellipse at 50% 35%, rgba(255, 194, 89, .12), transparent 62%), var(--surface-2); text-align: center; }
.mystery-reel-card__symbol { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255, 194, 89, .35); border-radius: 50%; color: var(--gold); font-family: var(--display); font-size: 27px; font-weight: 800; box-shadow: 0 0 24px rgba(255, 194, 89, .08); }
.mystery-reel-card__label { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.roulette__marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--reel-accent, var(--gold)); box-shadow: 0 0 16px var(--reel-accent, var(--gold)); z-index: 3; pointer-events: none; }
.roulette__marker::before, .roulette__marker::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 8px solid transparent; }
.roulette__marker::before { top: 0; border-top-color: var(--reel-accent, var(--gold)); }
.roulette__marker::after { bottom: 0; border-bottom-color: var(--reel-accent, var(--gold)); }
.roulette .skin.won .roulette__sell {
  position: absolute; z-index: 4; top: 8px; right: 8px;
  height: 28px; min-height: 28px; padding: 0 10px;
  border: 1px solid rgba(112, 235, 169, .32); border-radius: 999px;
  background: rgba(15, 32, 24, .94); color: var(--success);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  font-size: 11px; font-weight: 700; white-space: nowrap;
  backdrop-filter: blur(8px);
}
.roulette .skin.won .roulette__sell:hover:not(:disabled) {
  border-color: rgba(112, 235, 169, .62);
  background: rgba(22, 52, 36, .98);
  box-shadow: 0 0 16px rgba(112, 235, 169, .2);
}
.roulette.done .skin.won.sold { opacity: .48; }
.spin-status { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 18px 0 4px; color: var(--fg); font-size: 13px; font-weight: 700; }
.spin-status[hidden] { display: none; }
.spin-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: spin-pulse .9s ease-in-out infinite alternate; }
.spin-status i:nth-of-type(2) { animation-delay: .18s; }
.spin-status i:nth-of-type(3) { animation-delay: .36s; }
@keyframes spin-pulse { to { opacity: .25; transform: translateY(-3px); } }

/* Skin card */
.skin {
  --rc: var(--r-common);
  position: relative; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px;
  background: linear-gradient(180deg, rgba(77, 80, 92, .2), color-mix(in srgb, var(--rc) 22%, transparent) 55%, color-mix(in srgb, var(--rc) 30%, transparent));
  text-align: left; min-height: 0;
}
.skin::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 30%; height: 4px; transform: translateX(-50%); border-radius: 12px 12px 0 0; background: var(--rc); box-shadow: 0 0 20px 0 var(--rc); }
.skin__img { position: absolute; top: 42%; left: 50%; width: 78%; max-height: 56%; transform: translate(-50%, -50%); object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); transition: transform .3s; }
.skin__chance { position: absolute; top: 9px; right: 9px; z-index: 1; padding: 2px 7px; border-radius: 8px; background: rgba(0, 0, 0, .35); font-family: var(--display); font-size: 10.5px; font-weight: 600; color: rgba(245, 245, 250, .8); }
.skin__st { position: absolute; top: 9px; left: 9px; z-index: 1; padding: 2px 6px; border-radius: 6px; background: rgba(255, 198, 84, .14); color: var(--st); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.skin__meta { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.skin__meta > div { min-width: 0; }
.skin__weapon { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin .price { font-size: 12.5px; }
.r-common { --rc: var(--r-common); }
.r-rare { --rc: var(--r-rare); }
.r-epic { --rc: var(--r-epic); }
.r-legendary { --rc: var(--r-legendary); }
.r-arcane { --rc: var(--r-arcane); }
.r-nameless { --rc: var(--r-nameless); }

.skingrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.skingrid .skin { height: 176px; }
.skingrid .skin:hover .skin__img { transform: translate(-50%, -54%) scale(1.06); }
.case-skins { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 8px; }
.case-skins .skin { height: 132px; padding: 8px; }
.case-skins .skin__img { width: 64%; max-height: 48%; }
.case-skins .skin__img--rodi-agent { top: 39%; width: 90%; max-height: 68%; }
.case-skins .skin__img--komaru-agent { top: 40%; width: 96%; max-height: 80%; }
.case-skins .skin__chance { top: 6px; right: 6px; font-size: 9px; }
.case-skins .skin__meta { gap: 4px; font-size: 10px; }
.case-skins .skin__weapon { font-size: 9px; }
.case-skins .skin .price { gap: 3px; font-size: 9px; }
button.skin { width: 100%; cursor: pointer; transition: outline-color .15s; outline: 2px solid transparent; outline-offset: -2px; }
button.skin:hover { outline-color: rgba(255, 255, 255, .12); }
button.skin.selected { outline-color: var(--accent); }
button.skin.selected::before { content: "✓"; position: absolute; top: 8px; left: 8px; z-index: 2; width: 22px; height: 22px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
button.skin:disabled { opacity: .35; cursor: not-allowed; }
.promo-page { max-width: 900px; margin: 0 auto; display: grid; gap: 16px; }
.promo-page__hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 190px; padding: clamp(22px, 5vw, 42px); overflow: hidden;
  border-color: rgba(140, 102, 255, .26);
  background: radial-gradient(circle at 88% 55%, rgba(140, 102, 255, .2), transparent 30%), linear-gradient(115deg, rgba(91, 56, 166, .2), rgba(32, 29, 42, .94) 56%, rgba(108, 73, 29, .12));
}
.promo-page__hero h1 { margin: 8px 0; font-family: var(--display); font-size: clamp(25px, 4vw, 36px); }
.promo-page__hero p { max-width: 520px; margin: 0; font-size: 14px; }
.promo-page__hero-icon { width: 106px; height: 106px; flex: 0 0 106px; display: grid; place-items: center; border: 1px solid rgba(180, 153, 255, .24); border-radius: 30px; background: rgba(140, 102, 255, .14); color: var(--accent-hover); font-family: var(--display); font-size: 68px; font-weight: 800; transform: rotate(9deg); }
.promo-redeem { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 18px; padding: 24px; }
.promo-redeem__icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(140, 102, 255, .25); border-radius: 18px; background: rgba(140, 102, 255, .13); color: var(--accent-hover); font-size: 25px; }
.promo-form { min-width: 0; display: grid; gap: 10px; }
.promo-form > label { font-size: 13px; font-weight: 700; }
.promo-form__row { display: flex; gap: 8px; }
.promo-form .input { min-width: 0; height: 48px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.promo-form .btn { min-width: 148px; flex: 0 0 auto; }
.promo-form > small { color: var(--muted); font-size: 11px; }
.promo-gate { display: flex; align-items: center; gap: 16px; padding: 22px; }
.promo-gate__icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 16px; background: rgba(140, 102, 255, .14); color: var(--accent-hover); font-size: 28px; }
.promo-gate h2 { margin: 0 0 4px; font-size: 16px; }
.promo-gate p { margin: 0; font-size: 12px; }
.promo-gate .btn { margin-left: auto; }
.promo-credits { padding: 20px; }
.promo-credits__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.promo-credits__head h2 { margin: 4px 0 0; font-size: 17px; }
.promo-credits__head > b { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border-radius: 12px; background: rgba(140, 102, 255, .14); color: var(--accent-hover); }
.promo-credits__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.promo-credit { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.promo-credit__image, .promo-credit__fallback { width: 58px; height: 48px; flex: 0 0 58px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); object-fit: contain; }
.promo-credit__fallback { color: var(--accent-hover); font-size: 20px; }
.promo-credit > div { min-width: 0; display: grid; gap: 3px; flex: 1; }
.promo-credit > div b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.promo-credit > div small, .promo-credits__empty { color: var(--muted); font-size: 11px; }
.promo-credit > strong { color: var(--accent-hover); font-size: 13px; white-space: nowrap; }
.promo-credits__empty { margin: 0; }
.promo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.promo-steps article { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.promo-steps article > span { color: var(--accent-hover); font-family: var(--display); font-size: 11px; font-weight: 700; }
.promo-steps article > b { font-size: 13px; }
.promo-steps article > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.referral-panel { margin-top: 16px; padding: 20px; display: grid; gap: 16px; border-color: rgba(125, 92, 255, .28); background: linear-gradient(135deg, rgba(125, 92, 255, .1), rgba(22, 18, 38, .82)); }
.referral-panel h2 { margin: 4px 0; font-size: 19px; }
.referral-panel h2 .price { color: var(--gold); }
.referral-panel__intro p { max-width: 720px; margin: 6px 0 0; font-size: 12px; }
.referral-link { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(8, 7, 14, .42); }
.referral-link > span { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.referral-link .btn { flex: 0 0 auto; }
.referral-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.referral-stats > div { min-width: 0; padding: 12px; display: grid; gap: 5px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.referral-stats span { color: var(--muted); font-size: 11px; }
.referral-stats b { font-size: 16px; }
.referral-error { margin: 0; color: var(--danger); font-size: 12px; }
.referral-error .btn { margin-left: 6px; }
.partner-panel { margin-top: 16px; padding: 22px; display: grid; gap: 12px; border-color: rgba(90, 237, 144, .2); background: radial-gradient(circle at 95% 0, rgba(90, 237, 144, .1), transparent 34%), linear-gradient(130deg, rgba(32, 54, 43, .45), rgba(22, 22, 27, .96)); }
.partner-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.partner-panel h2 { margin-top: 5px; font-size: 19px; }
.partner-panel > p { margin: 0; font-size: 12px; }
.partner-panel__icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(90, 237, 144, .22); border-radius: 14px; background: rgba(90, 237, 144, .1); color: var(--success); font-size: 20px; }
.partner-status { width: fit-content; padding: 5px 9px; border: 1px solid var(--border); border-radius: 9px; font-size: 11px; font-weight: 800; }
.partner-status--approved { color: var(--success); border-color: rgba(90, 237, 144, .25); background: rgba(90, 237, 144, .07); }
.partner-status--pending { color: var(--gold); border-color: rgba(255, 194, 89, .25); background: rgba(255, 194, 89, .06); }
.partner-status--rejected { color: var(--danger); border-color: rgba(255, 89, 95, .25); background: rgba(255, 89, 95, .06); }
.partner-note, .partner-error { font-size: 12px !important; }
.partner-note { color: var(--muted); }
.partner-error { color: var(--danger); }
.partner-error .btn { margin-left: 6px; }
.partner-profile-form { padding: 14px; display: grid; gap: 10px; border: 1px solid var(--border); border-radius: 14px; background: rgba(0, 0, 0, .18); }
.partner-profile-form > div:first-child { display: grid; gap: 4px; }
.partner-profile-form > div:first-child b { font-size: 13px; }
.partner-profile-form > div:first-child small, .partner-profile-form .field small { color: var(--muted); font-size: 10px; }
.partner-profile-form .field { min-width: 0; margin: 0; display: grid; gap: 6px; }
.partner-profile-form .field > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.partner-profile-form .field svg { width: 17px; height: 17px; }
.partner-social-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.partner-social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.partner-social-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .035); color: var(--text); font-size: 12px; font-weight: 700; text-decoration: none; transition: border-color .18s, transform .18s; }
.partner-social-link:hover { transform: translateY(-1px); border-color: var(--accent); }
.partner-social-link svg { width: 18px; height: 18px; }
.partner-social-link--telegram svg { color: #43aeea; }
.partner-social-link--twitch svg { color: #a970ff; }
.partner-social-link--tiktok svg { color: #f4f4f4; }
.partner-social-link--youtube svg { color: #ff4545; }
.partner-pack { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(0, 0, 0, .18); }
.partner-pack > div { display: grid; gap: 4px; }
.partner-pack > div b { font-size: 13px; }
.partner-pack > div span { color: var(--muted); font-size: 11px; }
.partner-pack .btn { flex: 0 0 auto; }
.partner-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 7px; }
.partner-code { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.partner-code > span { min-width: 0; display: grid; gap: 3px; }
.partner-code > span b { font-size: 12px; letter-spacing: .04em; }
.partner-code > span small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.partner-modal { display: grid; gap: 12px; }
.modal__box--partner { max-width: 560px; }
.partner-modal > p { margin: 0; font-size: 12px; }
.partner-benefits { display: grid; gap: 8px; margin: 2px 0; }
.partner-benefits article { display: flex; align-items: flex-start; gap: 11px; padding: 11px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.partner-benefits article > span { color: var(--accent-hover); font-family: var(--display); font-size: 10px; font-weight: 800; }
.partner-benefits article > div { display: grid; gap: 3px; }
.partner-benefits article b { font-size: 12px; }
.partner-benefits article small, .partner-modal__terms { color: var(--muted); font-size: 11px !important; line-height: 1.55; }
.partner-modal__terms { padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(255, 194, 89, .045); }
.partner-consent { display: flex; align-items: center; gap: 9px; padding: 3px 0; font-size: 12px; }
.partner-consent input { accent-color: var(--accent); }
.partner-form { display: grid; gap: 2px; }
.partner-form .field { margin: 10px 0; }
.partner-form .field > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.partner-application-platform { display: flex; align-items: center; gap: 9px; }
.partner-application-platform__icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.04); }
.partner-application-platform__icon svg { width: 19px; height: 19px; color: var(--accent-hover); }
.partner-application-platform .input { min-width: 0; flex: 1; }
.partner-form textarea { min-height: 110px; padding-top: 11px; resize: vertical; }
.partner-form small { color: var(--muted); font-size: 10px; }
.subscription-gate { width: min(100%, 560px); margin: clamp(30px, 8vh, 90px) auto; padding: clamp(22px, 5vw, 38px); display: grid; justify-items: center; gap: 14px; text-align: center; border-color: rgba(140, 102, 255, .25); background: radial-gradient(circle at 50% 0, rgba(140, 102, 255, .15), transparent 42%), var(--surface); }
.subscription-gate__icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(140, 102, 255, .3); border-radius: 18px; background: rgba(140, 102, 255, .13); color: var(--accent-hover); font-size: 28px; }
.subscription-gate h1 { font-size: clamp(20px, 4vw, 26px); }
.subscription-gate > p { max-width: 440px; margin: 0; font-size: 12px; }
.subscription-channels { width: 100%; display: grid; gap: 8px; }
.subscription-channel { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255, 255, 255, .025); text-align: left; }
.subscription-channel > span:first-child { color: var(--accent-hover); font-family: var(--display); font-size: 10px; }
.subscription-channel > b { flex: 1; font-size: 13px; }
.subscription-channel > span:last-child { color: var(--muted); }
.subscription-gate__error { color: var(--danger); }
.subscription-gate__notice, .subscription-gate__identity { color: var(--muted); }

/* Results */
.results { margin-top: 22px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); animation: rise .45s cubic-bezier(.2, .9, .3, 1.2); }
.results--inline { margin-top: 10px; padding: 14px 16px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.results__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results__head h3 { font-size: 18px; }
.results--inline .results__head { margin-bottom: 10px; }
.results--inline .results__head h3 { font-size: 15px; }
.results__drop-count { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.results__drop-list { display: grid; gap: 6px; }
.results__drop-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.results__drop-row > div { display: grid; min-width: 0; gap: 2px; }
.results__drop-row > div > span { color: var(--muted); font-size: 10px; }
.results__drop-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.results__drop-row > .price { white-space: nowrap; }
.results__drop-row .btn { min-height: 32px; padding: 0 11px; }
.results__drop-row.sold { opacity: .48; }
.results__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.results__items .skin { height: 190px; animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) both; }
.results__items .skin:nth-child(2) { animation-delay: .05s; } .results__items .skin:nth-child(3) { animation-delay: .1s; }
.results__items .skin:nth-child(4) { animation-delay: .15s; } .results__items .skin:nth-child(5) { animation-delay: .2s; }
@keyframes pop { from { opacity: 0; transform: scale(.7); } }
.results__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wonskin { display: flex; flex-direction: column; gap: 6px; }
.wonskin .btn { width: 100%; }
.wonskin.sold { opacity: .4; pointer-events: none; }

/* ---------- Upgrade ---------- */
.upgrade { display: grid; grid-template-columns: 1fr 340px 1fr; gap: 16px; align-items: stretch; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px; }
.panel__title { font-family: var(--display); font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.slot { height: 220px; border-radius: 16px; border: 1.5px dashed var(--stroke); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 16px; }
.slot .skin { width: 100%; height: 100%; }
.slot.filled { border: 0; padding: 0; place-items: stretch; }
.wheel { position: relative; width: 260px; height: 260px; margin: 6px auto 16px; }
.wheel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wheel__pointer { position: absolute; inset: 0; transition: transform 4.2s cubic-bezier(.12, .7, .1, 1); }
.wheel__pointer::before { content: ""; position: absolute; top: -4px; left: 50%; transform: translateX(-50%); border: 10px solid transparent; border-top: 16px solid var(--fg); filter: drop-shadow(0 0 6px rgba(255, 255, 255, .6)); }
.wheel__center { position: absolute; inset: 40px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle, var(--surface-3), var(--surface)); }
.wheel__center b { display: block; font-family: var(--display); font-size: 34px; font-variant-numeric: tabular-nums; }
.wheel__center span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.wheel.win .wheel__center b { color: var(--success); }
.wheel.lose .wheel__center b { color: var(--danger); }
.upgrade-fast { justify-content: center; width: 100%; margin-top: 6px; }
.mults { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.picker { margin-top: 16px; }
.picker .skingrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-height: 520px; overflow: auto; padding-right: 4px; }
.picker .skingrid .skin { height: 150px; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.upgrade-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.upgrade-filters .upgrade-filter-search { grid-column: 1 / -1; }
.upgrade-filters .input { width: 100%; }
.upgrade-target-sort { display: flex; gap: 7px; flex-wrap: wrap; margin: -2px 0 12px; }
.upgrade-target-sort .chip { min-height: 32px; padding: 6px 11px; font-size: 11px; }
.input { height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--fg); padding: 0 12px; font: inherit; font-size: 14px; min-width: 0; flex: 1; }
.input:focus { outline: 2px solid rgba(140, 102, 255, .5); border-color: transparent; }
select.input { flex: 0 0 auto; }

/* ---------- Games hub and virtual mini-games ---------- */
.games-heading, .mini-game-heading { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.games-heading > div:first-child, .mini-game-heading > div:nth-child(2) { flex: 1; min-width: 0; }
.games-heading h1, .mini-game-heading h1 { font-size: clamp(22px, 3vw, 30px); }
.games-heading p, .mini-game-heading p { margin-top: 5px; }
.games-balance { display: grid; gap: 4px; justify-items: end; white-space: nowrap; }
.games-balance > span { color: var(--muted); font-size: 11px; }
.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.game-card { position: relative; min-height: 188px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: radial-gradient(circle at 100% 0, rgba(140,102,255,.16), transparent 48%), var(--surface); transition: transform .18s, border-color .18s, background .18s; }
.game-card:hover { transform: translateY(-3px); border-color: rgba(167,139,250,.5); background-color: var(--surface-2); }
.game-card__icon { position: absolute; top: 12px; right: 15px; color: var(--accent-hover); font-family: var(--display); font-size: 42px; opacity: .8; }
.game-card__eyebrow { color: var(--accent-hover); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.game-card > b { margin-top: 9px; font-family: var(--display); font-size: 18px; }
.game-card > span:not(.game-card__icon):not(.game-card__eyebrow):not(.game-card__play) { max-width: 90%; color: var(--muted); font-size: 12px; line-height: 1.5; }
.game-card__play { display: flex; justify-content: space-between; align-items: center; margin-top: auto; color: var(--accent-hover); font-size: 12px; font-weight: 800; }
.games-inventory { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.games-inventory h2 { font-size: 18px; }
.games-inventory p { margin-top: 4px; font-size: 12px; }
.games-inventory__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-game-heading { margin-bottom: 16px; }
.mini-game-heading .back { flex: 0 0 38px; }
.mini-game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.mini-game-board { min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.mini-game-visual { min-height: 310px; display: grid; place-items: center; padding: 14px; border-radius: 15px; background: radial-gradient(ellipse at 50% 45%, rgba(108,79,173,.14), transparent 62%), var(--surface-2); }
.mini-roulette { position: relative; width: min(250px, 70vw); aspect-ratio: 1; display: grid; place-items: center; border: 7px solid #25222e; border-radius: 50%; background: conic-gradient(#843a40 0 9.7%, #303343 9.7% 19.4%, #843a40 19.4% 29.1%, #303343 29.1% 38.8%, #843a40 38.8% 48.5%, #303343 48.5% 58.2%, #843a40 58.2% 67.9%, #303343 67.9% 77.6%, #843a40 77.6% 87.3%, #303343 87.3% 96%, #18815d 96%); box-shadow: 0 0 0 2px var(--border), 0 16px 42px rgba(0,0,0,.4); }
.mini-roulette__ring { position: absolute; inset: 0; color: rgba(255,255,255,.8); font-size: 10px; font-weight: 800; }
.mini-roulette__ring span { position: absolute; }
.mini-roulette__ring span:nth-child(1) { top: 14px; left: 50%; transform: translateX(-50%); }
.mini-roulette__ring span:nth-child(2) { top: 42px; right: 34px; }
.mini-roulette__ring span:nth-child(3) { top: 50%; right: 12px; transform: translateY(-50%); }
.mini-roulette__ring span:nth-child(4) { right: 34px; bottom: 42px; }
.mini-roulette__ring span:nth-child(5) { bottom: 14px; left: 50%; transform: translateX(-50%); }
.mini-roulette__ring span:nth-child(6) { top: 50%; left: 12px; transform: translateY(-50%); }
.mini-roulette__ring span:nth-child(7) { top: 42px; left: 34px; }
.mini-roulette__ring span:nth-child(8) { top: 42px; right: 34px; transform: translateY(-16px); }
.mini-roulette__center { z-index: 1; width: 82px; height: 82px; display: grid; place-items: center; border: 5px solid #292631; border-radius: 50%; background: var(--surface); color: var(--gold); font-size: 31px; box-shadow: 0 4px 16px rgba(0,0,0,.38); }
.mini-wheel { width: min(250px, 70vw); aspect-ratio: 1; display: grid; place-items: center; border: 7px solid #292631; border-radius: 50%; background: var(--wheel-gradient); box-shadow: 0 0 0 2px var(--border), 0 16px 42px rgba(0,0,0,.4); }
.mini-wheel > div { width: 80px; height: 80px; display: grid; align-content: center; justify-items: center; border: 5px solid #292631; border-radius: 50%; background: var(--surface); color: var(--gold); font-family: var(--display); font-size: 17px; font-weight: 800; text-align: center; line-height: 1.1; }
.mini-wheel small { color: var(--muted); font-size: 8px; letter-spacing: .18em; }
.mini-crash-chart { position: relative; width: min(500px, 100%); padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(160deg, rgba(42,35,57,.8), rgba(24,28,34,.9)); }
.mini-crash-chart svg { display: block; width: 100%; }
.mini-crash-chart > span { position: absolute; right: 18px; top: 17px; color: var(--accent-hover); font-family: var(--display); font-weight: 800; }
.mini-run-status { width: min(440px, 100%); display: flex; justify-content: space-between; gap: 10px; margin-bottom: 15px; color: var(--muted); font-size: 12px; }
.mini-run-status b { color: var(--gold); font-family: var(--display); font-size: 16px; }
.mini-tiles { width: min(420px, 100%); display: grid; grid-template-columns: repeat(var(--tile-columns), minmax(0, 1fr)); gap: 8px; }
.mini-tiles--mines { width: min(400px, 100%); grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mini-tile { min-width: 0; min-height: 60px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(145deg, #2b2936, #201e28); color: var(--muted); font-family: var(--display); font-size: 24px; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.mini-tiles--mines .mini-tile { min-height: 52px; border-radius: 9px; font-size: 20px; }
.mini-tile:not(:disabled):hover { transform: translateY(-2px); border-color: var(--accent-hover); background: #373044; }
.mini-tile:disabled { cursor: default; opacity: .9; }
.mini-tile.is-safe { border-color: rgba(74,222,128,.5); background: rgba(34,112,71,.34); color: #86efac; }
.mini-tile.is-mine, .mini-tile.is-trap { border-color: rgba(248,113,113,.55); background: rgba(124,42,52,.45); color: #fca5a5; }
.mini-path { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 13px; }
.mini-path span { padding: 5px 8px; border: 1px solid rgba(74,222,128,.24); border-radius: 8px; background: rgba(34,112,71,.2); color: #86efac; font-size: 10px; }
.mini-game-visual > p { margin: 12px 0 0; text-align: center; }
.mini-game-result { min-height: 52px; display: flex; align-items: center; justify-content: center; margin-top: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; text-align: center; }
.mini-game-result.is-win { border-color: rgba(74,222,128,.25); color: #86efac; }
.mini-game-result.is-loss { border-color: rgba(248,113,113,.25); color: #fca5a5; }
.mini-cashout { width: 100%; margin-top: 10px; }
.mini-game-controls { display: flex; flex-direction: column; gap: 12px; }
.mini-game-controls .panel__title { margin: 0; }
.mini-bet-label, .mini-option-group > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.mini-bet-input { display: flex; align-items: center; gap: 8px; }
.mini-bet-input span { color: var(--muted); font-size: 11px; }
.mini-option-group { display: grid; gap: 8px; }
.mini-options { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-options .chip { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.mini-options .chip:disabled { opacity: .5; cursor: not-allowed; }
.mini-play { width: 100%; }
.mini-game-disclaimer { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.mini-game-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.mini-game-footer a { color: var(--accent-hover); font-weight: 700; }

/* ---------- Contracts ---------- */
.contract { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.contract__slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.contract-limit-note { margin: -4px 0 12px; color: var(--muted); font-size: 12px; }
.contract-skin-wrap { position: relative; min-width: 0; }
.contract-skin-wrap > .skin { width: 100%; }
.contract-skin--locked { opacity: .46; filter: saturate(.55); }
.contract-skin-lock { position: absolute; right: 6px; bottom: 6px; left: 6px; padding: 5px 4px; border: 1px solid rgba(255,194,89,.35); border-radius: 7px; background: rgba(25,21,16,.9); color: var(--gold); font-size: 9px; font-weight: 800; text-align: center; pointer-events: none; }
.cslot { height: 110px; border-radius: 12px; border: 1.5px dashed var(--stroke); display: grid; place-items: center; color: var(--stroke); font-size: 22px; }
.cslot .skin { width: 100%; height: 100%; padding: 6px 8px; }
.cslot .skin__meta { font-size: 11px; }
.cslot.filled { border: 0; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.range div { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.range span { display: block; color: var(--muted); font-size: 12px; }

/* ---------- Profile ---------- */
.profile-hero { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 20px; background: linear-gradient(110deg, rgba(91, 56, 166, .24), rgba(32, 29, 42, .95) 50%, rgba(108, 73, 29, .16)); }
.profile-avatar { width: 76px; height: 76px; flex: 0 0 76px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(145deg, #9b77ff, #5933ac 65%, #251b42); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 12px 30px rgba(99,64,180,.28); font-family: var(--display); font-size: 30px; font-weight: 800; }
.profile-avatar--pass-framed { position: relative; isolation: isolate; border: 1px solid var(--avatar-frame-color); }
.profile-avatar--pass-framed::after { content: ""; position: absolute; z-index: 3; inset: 3px; border: 1px solid color-mix(in srgb,var(--avatar-frame-color) 72%,white); border-radius: inherit; box-shadow: inset 0 0 12px color-mix(in srgb,var(--avatar-frame-color) 38%,transparent); pointer-events: none; }
.profile-avatar--frame-pass-frame-aurora { box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 0 0 2px #67e8c2, 0 0 0 4px rgba(103,232,194,.28), 0 12px 30px rgba(103,232,194,.4); }
.profile-avatar--frame-pass-frame-comet { box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 0 0 2px #9b7bff, 0 0 0 4px rgba(78,199,255,.32), 0 12px 30px rgba(155,123,255,.45); }
.profile-avatar--frame-pass-frame-solar { box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 0 0 2px #ffc259, 0 0 0 4px rgba(255,111,56,.3), 0 12px 30px rgba(255,194,89,.42); }
.profile-avatar--frame-pass-frame-ember { box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 0 0 2px #ff6685, 0 0 0 4px rgba(255,153,82,.3), 0 12px 30px rgba(255,102,133,.45); }
.profile-avatar[class*="profile-avatar--"] { background: linear-gradient(145deg, var(--profile-avatar-color), #17151f 85%); font-size: 38px; }
.profile-avatar--custom { overflow: hidden; padding: 0; }
.profile-avatar__image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar-settings-preview { width: 100%; display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); color: var(--fg); text-align: left; cursor: pointer; }
.avatar-settings-preview > span:nth-child(2) { display: grid; flex: 1; gap: 3px; }
.avatar-settings-preview b { font-size: 13px; }
.avatar-settings-preview small { color: var(--muted); font-size: 11px; }
.avatar-settings-preview > span:last-child { color: var(--accent-hover); font-size: 20px; }
.avatar-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.avatar-gallery__item { aspect-ratio: 1; display: grid; place-items: center; border: 2px solid transparent; border-radius: 18px; background: linear-gradient(145deg, var(--profile-avatar-color), #17151f 85%); cursor: pointer; transition: transform .15s, border-color .15s; }
.avatar-gallery__item:hover { transform: translateY(-2px); }
.avatar-gallery__item.selected { border-color: var(--accent-hover); box-shadow: 0 0 0 3px rgba(140,102,255,.18); }
.avatar-gallery__item > span { font-size: clamp(29px, 8vw, 46px); line-height: 1; }
.profile-frame-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.profile-frame-option { display: grid; justify-items: center; gap: 8px; min-width: 0; min-height: 140px; padding: 14px 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); color: var(--fg); text-align: center; transition: transform .18s, border-color .18s, box-shadow .18s; }
.profile-frame-option:not(:disabled):hover { transform: translateY(-2px); border-color: var(--accent-hover); }
.profile-frame-option.is-equipped { border-color: var(--success); box-shadow: inset 0 0 20px rgba(90,237,144,.08); }
.profile-frame-option.is-locked { opacity: .48; }
.profile-frame-option__avatar { width: 58px; height: 58px; flex-basis: 58px; border-radius: 18px; font-size: 22px; }
.profile-frame-option > b { font-size: 12px; }
.profile-frame-option > small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.profile-frame-link { width: 100%; margin-top: 12px; }
.avatar-upload { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; border: 1px dashed rgba(167, 139, 250, .4); border-radius: 14px; background: rgba(140, 102, 255, .06); cursor: pointer; transition: background .2s, border-color .2s; }
.avatar-upload:hover, .avatar-upload:focus-within { border-color: var(--accent-hover); background: rgba(140, 102, 255, .12); }
.avatar-upload__input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.avatar-upload__icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(140, 102, 255, .18); color: var(--accent-hover); font-size: 24px; font-weight: 700; }
.avatar-upload > span:nth-of-type(2) { min-width: 0; display: grid; gap: 3px; flex: 1; }
.avatar-upload b { font-size: 13px; }
.avatar-upload small { color: var(--muted); font-size: 10px; }
.avatar-upload__arrow { color: var(--muted); font-size: 20px; }
.player-card__avatar[class*="profile-avatar--"] { background: linear-gradient(145deg, var(--profile-avatar-color), #17151f 85%); font-size: 25px; }
.coming-game { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.coming-game > .btn:first-child { align-self: flex-start; }
.coming-game__icon { color: var(--accent-hover); font-size: 60px; line-height: 1; }
.coming-game h1 { font-family: var(--display); font-size: clamp(26px, 5vw, 38px); }
.coming-game p { max-width: 420px; color: var(--muted); }
.coming-game > strong { margin: 6px 0; padding: 10px 16px; border: 1px solid rgba(167,139,250,.25); border-radius: 99px; background: rgba(140,102,255,.1); color: var(--accent-hover); font-size: 13px; }
.profile-identity { min-width: 0; flex: 1; }
.profile-identity__eyebrow { display: block; color: var(--accent-hover); font-size: 10px; font-weight: 800; letter-spacing: .16em; margin-bottom: 5px; }
.profile-identity h1 { font-size: clamp(20px, 3vw, 28px); }
.profile-identity__title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.profile-identity__title h1 { line-height: 1.15; }
.account-badges { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.account-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 4px; border: 1px solid rgba(140,102,255,.28); border-radius: 999px; background: rgba(140,102,255,.1); color: #d7caff; font-size: 9px; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.account-badge__check { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #9c79ff; color: #171320; font-size: 10px; font-weight: 900; }
.account-badge--partner { display: inline-grid; place-items: center; width: 25px; height: 25px; padding: 3px; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.055); }
.account-badge--partner svg { display: block; width: 16px; height: 16px; }
.account-badge--partner-telegram svg { color: #43aeea; }
.account-badge--partner-twitch svg { color: #a970ff; }
.account-badge--partner-tiktok svg { color: #f4f4f4; }
.account-badge--partner-youtube svg { color: #ff4545; }
.account-badge--official { border-color: rgba(95,174,255,.32); background: rgba(95,174,255,.1); color: #a9d8ff; }
.account-badge--official .account-badge__check { background: #78beff; }
.account-badge--creator { border-color: rgba(255,137,190,.3); background: rgba(255,137,190,.09); color: #ffc0dc; }
.account-badge--creator .account-badge__check { background: #ff91c1; }
.player-card__head .account-badges { gap: 4px; }
.player-card__head .account-badge { color: #d7caff; font-size: 8px; }
.player-card__head .account-badge__check { color: #171320; }
.player-card__head .account-badge--partner { width: 21px; height: 21px; padding: 2px; }
.player-card__head .account-badge--partner svg { width: 14px; height: 14px; }
.player-card__head .account-badge--official { color: #a9d8ff; }
.player-card__head .account-badge--creator { color: #ffc0dc; }
.profile-id { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; margin-top: 6px; }
.profile-id b { color: #d6d3e2; font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.profile-copy { color: var(--accent-hover); font-size: 16px; padding: 0 3px; }
.profile-actions { display: flex; align-items: center; gap: 9px; }
.profile-balance { display: grid; gap: 2px; padding: 0 10px; text-align: right; }
.profile-balance > span { color: var(--muted); font-size: 10px; }
.profile-balance > b { font-size: 14px; }
.profile-settings { width: 42px; height: 42px; padding: 0; font-size: 19px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.profile-stat { position: relative; min-height: 135px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); }
.profile-stat::after { content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -48px; border-radius: 50%; background: var(--profile-glow, rgba(140,102,255,.16)); filter: blur(2px); }
.profile-stat--purple { --profile-glow: rgba(140,102,255,.22); }
.profile-stat--gold { --profile-glow: rgba(255,194,89,.2); }
.profile-stat--blue { --profile-glow: rgba(78,133,255,.2); }
.profile-stat--green { --profile-glow: rgba(90,237,144,.15); }
.profile-stat__icon { position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 64px; height: 58px; color: var(--accent-hover); font-size: 35px; opacity: .8; }
.profile-stat--gold .profile-stat__icon { width: 84px; height: 72px; }
.profile-stat__best-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
.profile-stat__label { color: var(--muted); font-size: 12px; }
.profile-stat > b { position: relative; z-index: 1; font-family: var(--display); font-size: 21px; font-variant-numeric: tabular-nums; }
.profile-stat > small { position: relative; z-index: 1; max-width: 75%; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-section { margin-top: 25px; }
.profile-section__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.profile-tabs { display: flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--border); }
.profile-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.profile-tab.active { color: var(--fg); }
.profile-tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent-hover); border-radius: 2px; }
.profile-tab span { color: var(--accent-hover); }
.profile-tab--link:hover { color: var(--accent-hover); }
.profile-service-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.profile-service-card { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 15px; background: linear-gradient(120deg, rgba(140,102,255,.09), var(--surface)); transition: border-color .2s, transform .2s, background .2s; }
.profile-service-card:hover, .profile-service-card.active { border-color: rgba(167,139,250,.55); background: linear-gradient(120deg, rgba(140,102,255,.16), var(--surface)); }
.profile-service-card:hover { transform: translateY(-2px); }
.profile-service-card__icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(140,102,255,.16); color: var(--accent-hover); font-size: 22px; }
.profile-service-card > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; flex: 1; }
.profile-service-card b { font-size: 13px; }
.profile-service-card small { color: var(--muted); font-size: 11px; }
.profile-service-card i { color: var(--accent-hover); font-size: 18px; font-style: normal; }
.trade-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; background: radial-gradient(ellipse at 85% 15%, rgba(140,102,255,.17), transparent 44%), var(--surface); }
.trade-hero h1, .trade-gate h1 { margin: 5px 0 8px; font-family: var(--display); font-size: clamp(20px, 3vw, 29px); }
.trade-hero p, .trade-gate p { max-width: 700px; margin: 0; font-size: 13px; }
.trade-hero__stats { display: flex; gap: 9px; flex: 0 0 auto; }
.trade-hero__stats > div { min-width: 82px; display: grid; justify-items: center; gap: 3px; padding: 11px; border: 1px solid var(--border); border-radius: 13px; background: rgba(15,17,25,.35); }
.trade-hero__stats b { font-family: var(--display); font-size: 19px; }
.trade-hero__stats span, .trade-card__head small { color: var(--muted); font-size: 10px; }
.trade-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 2px; }
.trade-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 39px; padding: 0 13px; border: 1px solid var(--border); border-radius: 11px; color: var(--muted); background: var(--surface); font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.trade-tabs button.active { border-color: rgba(167,139,250,.55); color: var(--fg); background: rgba(140,102,255,.15); }
.trade-tabs button span { color: var(--accent-hover); }
.trade-create { display: grid; gap: 12px; }
.trade-create__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.trade-create__heading h2, .trade-create__heading h3, .trade-response-modal h2 { margin: 0 0 5px; font-size: 16px; }
.trade-create__heading p { margin: 0; font-size: 12px; }
.trade-create__step { padding: 5px 9px; border: 1px solid var(--border); border-radius: 99px; color: var(--accent-hover); font-size: 10px; white-space: nowrap; }
.trade-search-label { margin-top: 3px; font-size: 12px; font-weight: 700; }
.trade-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); }
.trade-search > span { color: var(--muted); font-size: 20px; }
.trade-search .input { height: 44px; padding: 0; border: 0; background: transparent; outline: 0; }
.trade-player-results { display: grid; gap: 6px; }
.trade-player-result, .trade-selected-player { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; color: var(--fg); background: var(--surface-2); text-align: left; }
.trade-player-result { cursor: pointer; }
.trade-player-result:hover { border-color: rgba(167,139,250,.55); }
.trade-player-result > span:nth-child(2), .trade-selected-player > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; flex: 1; }
.trade-player-result small, .trade-selected-player small { color: var(--muted); font-size: 10px; }
.trade-player-result > i { color: var(--accent-hover); font-size: 11px; font-style: normal; }
.trade-player-result__avatar { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 11px; color: var(--accent-hover); background: rgba(140,102,255,.16); font-weight: 800; }
.trade-selected-player { border-color: rgba(82,221,146,.35); }
.trade-selected-player__check { color: var(--success); font-size: 18px; }
.trade-search-message { margin: 0; padding: 8px 2px; color: var(--muted); font-size: 12px; }
.trade-create__heading--inventory { align-items: center; margin-top: 8px; }
.trade-own-total { white-space: nowrap; }
.trade-picker, .trade-response-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 9px; max-height: 550px; overflow: auto; padding: 2px 3px 4px 0; }
.trade-picker .skin, .trade-response-picker .skin { width: 100%; height: 166px; padding: 0; border: 1px solid var(--border); color: var(--fg); background: var(--surface-2); text-align: left; cursor: pointer; }
.trade-picker .skin.selected, .trade-response-picker .skin.selected { border-color: var(--accent-hover); box-shadow: 0 0 0 2px rgba(167,139,250,.22); }
.trade-create__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 5px; border-top: 1px solid var(--border); }
.trade-list { display: grid; gap: 12px; }
.trade-card { min-width: 0; padding: 15px; }
.trade-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.trade-card__head h3 { margin: 6px 0 3px; font-size: 14px; }
.trade-card__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.trade-status { display: inline-flex; padding: 4px 8px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.trade-status--pending { border-color: rgba(255,194,89,.35); color: #ffd27b; background: rgba(255,194,89,.08); }
.trade-card__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.trade-card__items h4, .trade-response-section h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 11px; }
.trade-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 7px; }
.trade-items .skin { height: 130px; }
.trade-values { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.trade-values b { color: var(--fg); }
.trade-response-modal { display: grid; gap: 12px; }
.trade-response-modal > p { margin: 0; font-size: 12px; }
.trade-response-section { display: grid; gap: 6px; }
.trade-response-picker { max-height: 300px; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); }
.trade-response-picker .skin { height: 145px; }
.trade-response-note { color: var(--muted); }
.trade-gate { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.trade-lock-label { display: block; color: var(--accent-hover); font-size: 10px; text-align: center; }
.wonskin--trade-locked { opacity: .76; }
.profile-section-back { margin-top: 16px; }
.profile-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-history { display: grid; gap: 8px; }
.profile-history__row { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.profile-history__img { width: 70px; height: 55px; object-fit: contain; }
.profile-history__description { display: grid; min-width: 0; gap: 2px; }
.profile-history__description b { font-size: 12px; }
.profile-history__description span, .profile-history__description small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-history__row > strong { color: var(--gold); font-size: 12px; white-space: nowrap; }
.profile-account-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.profile-account-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.btn--danger { color: #ff6d79; border-color: rgba(255, 109, 121, .38); }
.btn--danger:hover { color: #fff; background: rgba(255, 109, 121, .14); border-color: #ff6d79; }
.profile-visibility { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 20px 0 10px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.profile-visibility span { display: grid; gap: 4px; }
.profile-visibility b { font-size: 13px; }
.profile-visibility small { color: var(--muted); font-size: 11px; }
.profile-visibility input { width: 19px; height: 19px; accent-color: var(--accent); }
.profile-consent { color: var(--muted); font-size: 11px; }
.profile-consent a, .legal-switch a { color: var(--accent-hover); }
.profile-settings__actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.players-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 20px; }
.players-heading h1 { font-size: 28px; }
.players-heading p { margin: 5px 0 0; }
.players-tabs { display: flex; gap: 7px; margin: 0 0 16px; padding: 5px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.players-tabs a { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 12px; font-weight: 750; }
.players-tabs a.active { background: var(--tonal); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(167,139,250,.16); }
.players-tabs a:hover { color: var(--accent-hover); }
.balance-top { position: relative; overflow: hidden; margin-top: 14px; padding: clamp(16px, 3vw, 28px); border-color: rgba(255,194,89,.2); background: radial-gradient(65% 45% at 50% 0, rgba(255,194,89,.11), transparent 100%), linear-gradient(155deg, rgba(31,28,38,.96), rgba(17,17,22,.98)); }
.balance-top__heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.balance-top__trophy { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border: 1px solid rgba(255,194,89,.26); border-radius: 16px; background: rgba(255,194,89,.1); font-size: 27px; }
.balance-top__heading h2 { margin: 1px 0 3px; font-size: 20px; }
.balance-top__heading p { margin: 0; font-size: 12px; }
.balance-top__podium { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: end; gap: 12px; }
.balance-top-card { min-width: 0; color: var(--fg); }
.balance-top-card--1, .balance-top-card--2, .balance-top-card--3 { position: relative; min-height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; overflow: hidden; padding: 40px 12px 16px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(155deg, rgba(255,255,255,.035), transparent 58%), var(--surface); text-align: center; transition: transform .2s, border-color .2s, box-shadow .2s; }
.balance-top-card--1 { order: 2; min-height: 232px; border-color: rgba(255,194,89,.45); background: radial-gradient(circle at 50% 0, rgba(255,194,89,.17), transparent 58%), var(--surface); box-shadow: 0 14px 36px rgba(255,194,89,.08); }
.balance-top-card--2 { order: 1; border-color: rgba(190,205,225,.25); }
.balance-top-card--3 { order: 3; border-color: rgba(218,145,98,.25); }
.balance-top-card--1:hover, .balance-top-card--2:hover, .balance-top-card--3:hover { transform: translateY(-3px); border-color: var(--gold); }
.balance-top__rank { position: absolute; top: 12px; left: 13px; min-width: 30px; height: 28px; display: grid; place-items: center; padding: 0 7px; border-radius: 9px; background: rgba(255,255,255,.07); color: var(--muted); font-size: 12px; font-weight: 900; }
.balance-top-card--1 .balance-top__rank { background: rgba(255,194,89,.15); color: var(--gold); font-size: 17px; }
.balance-top-card--2 .balance-top__rank { color: #d3d9e7; }
.balance-top-card--3 .balance-top__rank { color: #e8ad83; }
.balance-top__avatar { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 19px; font-size: 25px; }
.balance-top__avatar--compact { width: 44px; height: 44px; flex-basis: 44px; border-radius: 14px; font-size: 18px; }
.balance-top__identity { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.balance-top__identity > b { max-width: 100%; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.balance-top__identity > small { color: var(--muted); font-size: 10px; }
.balance-top__amount { color: var(--gold); font-size: 16px; font-weight: 900; white-space: nowrap; }
.balance-top__amount .price { justify-content: center; }
.balance-top__rows { display: grid; gap: 7px; margin-top: 14px; }
.balance-top-card--row { min-height: 68px; display: grid; grid-template-columns: 35px 44px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.025); transition: border-color .2s, background .2s; }
.balance-top-card--row:hover { border-color: rgba(140,102,255,.4); background: rgba(140,102,255,.06); }
.balance-top-card--row .balance-top__rank { position: static; min-width: 32px; width: 32px; height: 30px; background: rgba(255,255,255,.045); }
.balance-top-card--row .balance-top__identity { align-items: flex-start; }
.balance-top-card--row .balance-top__identity > b { font-size: 12px; }
.balance-top-card--row .balance-top__identity > small { display: none; }
.balance-top-card--row .balance-top__amount { font-size: 13px; }
.players-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.players-search { display: flex; align-items: center; gap: 9px; width: min(420px, 100%); color: var(--muted); }
.players-search .input { height: 42px; }
.players-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.player-card { display: block; padding: 17px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, var(--surface-2), var(--surface)); transition: transform .2s, border-color .2s; }
.player-card:hover { transform: translateY(-2px); border-color: rgba(140,102,255,.55); }
.player-card__head { display: flex; align-items: center; gap: 10px; }
.player-card__avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; background: linear-gradient(145deg,#8c66ff,#443078); font-weight: 800; }
.player-card__head > div { display: grid; gap: 3px; min-width: 0; }
.player-card__head > div b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-card__head > div span, .player-card__arrow { color: var(--muted); font-size: 10px; }
.player-card__arrow { margin-left: auto; font-size: 16px; }
.player-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 15px 0 12px; margin-top: 14px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.player-card__stats span { display: grid; gap: 2px; }
.player-card__stats b { font-size: 14px; }
.player-card__stats small, .player-card__value > span { color: var(--muted); font-size: 10px; }
.player-card__value { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; }
.player-card__value b { font-size: 13px; }
.profile-view-all { margin-left: auto; }
.legal-page { max-width: 900px; margin: 10px auto 30px; padding: clamp(20px, 4vw, 42px); }
.legal-page > .btn { margin-bottom: 28px; }
.legal-page h1 { margin: 6px 0 4px; font-size: clamp(24px, 4vw, 34px); }
.legal-page h2 { margin: 24px 0 7px; font-family: var(--font); font-size: 16px; }
.legal-page p { color: #c9c9d6; font-size: 14px; line-height: 1.75; }
.legal-updated, .legal-note { color: var(--muted) !important; font-size: 12px !important; }
.legal-note { margin-top: 24px; padding: 12px 14px; border-left: 2px solid var(--gold); background: rgba(255,194,89,.05); }
.legal-switch { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); border: 1.5px dashed var(--border); border-radius: 20px; }
.empty b { display: block; color: var(--fg); font-family: var(--display); font-size: 17px; margin-bottom: 6px; }

/* ---------- Modal & toasts ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 14, .78); backdrop-filter: blur(6px); animation: fade .2s; }
.modal__box { position: relative; width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; animation: rise .3s cubic-bezier(.2, .9, .3, 1.2); max-height: calc(100vh - 32px); overflow: auto; }
.modal__box h2 { font-size: 20px; margin-bottom: 6px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; background: var(--tonal); font-size: 18px; }
@keyframes fade { from { opacity: 0; } }
.field { display: grid; gap: 6px; margin: 16px 0; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field .input { height: 46px; }
.bigwin { text-align: center; }
.bigwin .skin { height: 220px; margin: 14px 0; }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: 8px; }
.toast { background: var(--surface-3); border: 1px solid var(--stroke); border-radius: 14px; padding: 12px 16px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); animation: rise .3s; display: flex; align-items: center; gap: 8px; max-width: 340px; }
.toast.ok { border-color: rgba(90, 237, 144, .4); }
.toast.err { border-color: rgba(255, 89, 95, .5); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 32px 20px 20px; display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 28px; }
.footer__brand p { color: var(--muted); font-size: 13px; max-width: 380px; margin: 10px 0; }
.badge-age { display: inline-block; padding: 3px 9px; border-radius: 8px; background: rgba(140, 102, 255, .16); color: var(--accent-hover); font-weight: 800; font-size: 12px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer__col h4 { font-family: var(--font); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.footer__col a:hover { color: var(--accent-hover); }
.dl-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; }
.footer__copy { max-width: var(--maxw); margin: 0 auto; padding: 14px 20px 22px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }
.userbar-avatar--mobile, .mobile-menu-toggle { display: none; }
.mobile-menu[hidden] { display: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 90; }
.mobile-menu__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(5, 5, 9, .66); backdrop-filter: blur(5px); }
.mobile-menu__panel {
  position: absolute; top: calc(68px + env(safe-area-inset-top)); right: 12px;
  width: min(360px, calc(100% - 24px)); max-height: calc(100vh - 82px);
  max-height: calc(100dvh - 82px); overflow: auto; padding: 14px;
  border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.mobile-menu__head { display: flex; align-items: center; gap: 11px; padding: 2px 2px 14px; border-bottom: 1px solid var(--border); }
.mobile-menu__head > div { min-width: 0; flex: 1; }
.mobile-menu__head b, .mobile-menu__head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-menu__head b { font-size: 15px; }
.mobile-menu__head small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.mobile-menu__avatar { width: 42px; height: 42px; border-radius: 13px; font-size: 19px; }
.mobile-menu__mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 13px; background: linear-gradient(135deg, var(--accent), #e52a5b); font: 800 14px var(--display); }
.mobile-menu__close { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 22px; line-height: 1; }
.mobile-menu__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 13px; }
.mobile-menu__link { min-width: 0; min-height: 45px; display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); font-size: 12px; font-weight: 650; }
.mobile-menu__link > span { width: 22px; flex: 0 0 22px; color: var(--accent-hover); font-size: 16px; text-align: center; }
.mobile-menu__link > b { margin-left: auto; color: var(--muted); font-size: 16px; }
.mobile-menu__link.active { border-color: rgba(140, 102, 255, .55); background: rgba(140, 102, 255, .12); color: var(--fg); }
.mobile-menu-toggle { width: 40px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-3); }
.mobile-menu-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--fg); }

.battle-page-head { display: flex; align-items: end; justify-content: space-between; margin: 4px 0 20px; }
.battle-page-head h1 { font-size: 28px; }
.battle-page-head__eyebrow { display: block; color: var(--accent-hover); font-size: 11px; font-weight: 800; letter-spacing: .16em; margin-bottom: 5px; }
.battle-live { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.battle-live i, .arena-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
.battles-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: 16px; }
.battle-create, .battle-lobby { padding: 20px; }
.battle-create__title, .battle-lobby__title { margin-bottom: 16px; }
.battle-lobby__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.battle-lobby__toolbar .battle-lobby__title { margin: 0; }
.battle-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.battle-sort .input { width: auto; min-width: 150px; height: 36px; padding: 0 28px 0 10px; font-size: 11px; }
.battle-create-label { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.battle-case-tags { margin-bottom: 10px; }
.battle-case-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 430px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 6px 6px 2px; align-content: start; }
.battle-case-card { position: relative; min-height: 190px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--case-a) 25%, transparent), transparent 48%), var(--surface-2); display: flex; flex-direction: column; transition: .2s ease; }
.battle-case-card:hover { border-color: color-mix(in srgb, var(--case-a) 70%, var(--border)); transform: translateY(-2px); }
.battle-case-card.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 14px 32px -18px var(--accent); }
.battle-case-card__select { position: relative; flex: 1; width: 100%; min-height: 150px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: end; padding: 12px; }
.battle-case-card__img { position: absolute; width: 75%; height: 130px; object-fit: contain; top: 4px; filter: drop-shadow(0 16px 16px rgba(0,0,0,.45)); }
.battle-case-card__img--character { width: 90%; height: 145px; top: 0; object-position: center bottom; }
.battle-case-card__name { position: relative; z-index: 1; font-weight: 800; font-size: 14px; }
.battle-case-card__price { position: relative; z-index: 1; display: inline-flex; margin-top: 5px; }
.battle-case-card__check,.battle-case-card__add { position: absolute; right: 8px; top: 8px; min-width: 25px; height: 25px; display: grid; place-items: center; padding: 0 6px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.battle-case-card__add { background: rgba(14,14,20,.78); border: 1px solid rgba(255,255,255,.2); font-size: 18px; }
.battle-case-quantity { height: 38px; display: flex; align-items: center; justify-content: center; gap: 16px; border-top: 1px solid var(--border); background: rgba(0,0,0,.18); }
.battle-case-quantity button { width: 28px; height: 28px; border-radius: 8px; background: var(--tonal); font-weight: 900; }
.battle-case-quantity button:hover:not(:disabled) { background: var(--accent); }
.battle-case-quantity button:disabled { opacity: .35; cursor: not-allowed; }
.battle-case-quantity b { min-width: 16px; text-align: center; }
.battle-selection { margin-top: 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(0,0,0,.15); }
.battle-selection__head { display: flex; justify-content: space-between; gap: 8px; color: var(--fg); font-size: 12px; }
.battle-selection__head span { color: var(--accent-hover); font-weight: 800; }
.battle-selection__items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.battle-selection-chip { padding: 4px 8px; border: 1px solid var(--stroke); border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 10px; }
.battle-selection-chip b { margin-left: 3px; color: var(--gold); }
.battle-options { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; margin: 14px 0; }
.battle-option { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.battle-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.22); }
.battle-pills button { height: 38px; border-radius: 9px; color: var(--muted); font-weight: 800; }
.battle-pills button.selected { background: var(--tonal-hover); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(140,102,255,.35); }
.battle-create-submit, .battle-start { display: flex; justify-content: space-between; padding: 0 16px 0 20px; width: 100%; }
.battle-create-cost { display:flex;align-items:center;justify-content:space-between;margin:-4px 0 12px;padding:10px 12px;border:1px solid var(--border);border-radius:11px;background:rgba(0,0,0,.18);color:var(--muted);font-size:12px; }
.battle-create-cost b { color:var(--gold);font-size:14px; }
.battle-create-submit b, .battle-start b { font-size: 20px; }
.battle-list { display: grid; gap: 8px; }
.battle-row { min-height: 92px; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 13px; border: 1px solid var(--border); border-radius: 15px; background: linear-gradient(110deg,rgba(255,255,255,.035),transparent 55%),var(--surface-2); transition: border-color .2s, transform .2s, background .2s; }
.battle-row:hover { border-color: rgba(140,102,255,.65); transform: translateX(2px); }
.battle-row--own { border-color:rgba(140,102,255,.52);background:linear-gradient(90deg,rgba(140,102,255,.12),var(--surface-2)); }
.battle-row__art { width: 64px;height: 64px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--border);border-radius:13px;background:radial-gradient(circle,rgba(140,102,255,.18),transparent 70%);font-size:20px; }
.battle-row__art img { width:100%;height:100%;object-fit:contain; }
.battle-row__info { display:grid;gap:2px;min-width:0; }
.battle-row__case { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800; }
.battle-row__meta { color: var(--muted); font-size: 11px; }
.battle-row__fee { color:var(--gold);font-size:10px;font-weight:800; }
.battle-row__join { padding:8px 10px;border-radius:9px;background:rgba(140,102,255,.12);color:var(--accent-hover);font-size:12px;font-weight:800;white-space:nowrap; }
.battle-row__players { display: flex; align-items: center; min-height: 24px; margin-top: 3px; }
.battle-row__player { display: grid; place-items: center; width: 23px; height: 23px; margin-left: -4px; overflow: hidden; border: 2px solid var(--surface-2); border-radius: 50%; background: var(--surface-3); color: var(--muted); font-size: 12px; }
.battle-row__player:first-child { margin-left: 0; }
.battle-row__player-avatar { width: 100%; height: 100%; border-radius: 50%; font-size: 10px; }
.battle-row__player--empty { border-style: dashed; }
.battle-row__players small { margin-left: 7px; color: var(--muted); font-size: 10px; }
.battle-row__action { display: grid; justify-items: end; gap: 7px; }
.battle-row__action > b { color: var(--gold); font-size: 12px; white-space: nowrap; }
.battle-empty { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.battle-empty__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; margin-bottom: 12px; background: var(--surface-3); color: var(--accent-hover); font-size: 28px; }
.battle-empty b { color: var(--fg); font-size: 16px; }
.battle-empty span { margin-top: 5px; font-size: 13px; }
.battle-lobby-cases { display: grid; gap: 8px; margin-bottom: 12px; }
.battle-lobby-case { min-height: 96px; display: flex; align-items: center; overflow: hidden; border-radius: 14px; border: 1px solid var(--border); background: radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--case-a, #8c66ff) 20%, transparent), transparent 45%), var(--surface-2); padding: 6px 12px; }
.battle-lobby-case__img { width: 132px; height: 100px; object-fit: contain; margin-right: 6px; }
.battle-lobby-case div { display: grid; }
.battle-lobby-case div span { color: var(--muted); font-size: 12px; }
.battle-lobby-case div b { margin-top: 4px; }
.battle-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.battle-slot { min-height: 86px; display: grid; grid-template-columns: 46px 1fr; grid-template-rows: 1fr 1fr; align-items: center; column-gap: 10px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); padding: 10px; }
.battle-slot.empty { border-style: dashed; opacity: .7; }
.battle-slot__avatar { grid-row: 1 / 3; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg,var(--accent),#e52a5b); font-family: var(--display); font-weight: 800; }
.battle-slot__avatar.bot { background: linear-gradient(135deg,#667fff,#364aa3); }
.battle-slot b { align-self: end; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.battle-slot span { align-self: start; color: var(--success); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.battle-slot.empty span { color: var(--muted); }
.battle-bot-note { color: var(--muted); font-size: 12px; text-align: center; margin: 12px 0 8px; }
.battle-back { width: 100%; margin-top: 8px; }

.battle-arena { position: relative; isolation:isolate; min-height: 620px; overflow: hidden; border: 1px solid color-mix(in srgb,var(--arena-a) 32%,var(--border)); border-radius: 24px; background: radial-gradient(70% 48% at 50% 0%, color-mix(in srgb,var(--arena-a) 16%,transparent),transparent 78%), linear-gradient(180deg,#191920,#101015 70%); padding: 18px; box-shadow:0 24px 70px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.035); }
.battle-arena::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.12; background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size:48px 48px; mask-image:linear-gradient(to bottom,#000,transparent 75%); }
.battle-arena::after { content:"";position:absolute;z-index:-1;top:80px;left:50%;width:min(760px,85%);height:300px;transform:translateX(-50%);pointer-events:none;background:radial-gradient(ellipse,color-mix(in srgb,var(--arena-a) 10%,transparent),transparent 70%);filter:blur(16px); }
.battle-arena__head { position: relative; z-index: 1; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; min-height:82px; border-bottom:1px solid var(--border); }
.battle-arena__back { color:var(--muted); font-weight:700; }
.battle-arena__back:hover { color:var(--fg); }
.battle-arena__case { display:flex; align-items:center; gap:8px; }
.battle-arena__case-img { width:92px;height:72px;object-fit:contain;filter:drop-shadow(0 12px 18px rgba(0,0,0,.5)); }
.battle-arena__case div { display:grid; }
.battle-arena__case div span { color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.12em; }
.battle-arena__case div b { font-size:16px; }
.battle-arena__round { justify-self:end; display:grid;text-align:right; }
.battle-arena__round span { color:var(--muted);font-size:12px; }
.battle-arena__round b { color:var(--accent-hover);font-family:var(--display); }
.battle-progress { position:relative;z-index:1;max-width:620px;margin:14px auto 18px; }
.battle-progress__labels { display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px; }
.battle-progress__labels span { color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.14em; }
.battle-progress__labels b { color:var(--fg);font-size:11px; }
.battle-progress__track { height:6px;overflow:hidden;border:1px solid rgba(255,255,255,.06);border-radius:99px;background:rgba(255,255,255,.06); }
.battle-progress__track i { display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--arena-a),var(--accent-hover),var(--gold));box-shadow:0 0 16px color-mix(in srgb,var(--arena-a) 70%,transparent);transition:width .5s ease; }
.battle-arena__score { position:relative;z-index:1; display:grid;grid-template-columns:repeat(var(--battle-player-count,2),minmax(0,1fr));gap:10px;margin:14px 0; }
.arena-score-player { position:relative;display:flex;align-items:center;gap:10px;min-width:0;min-height:62px;padding:10px 12px;border:1px solid var(--border);border-radius:15px;background:linear-gradient(120deg,rgba(255,255,255,.035),transparent 60%),rgba(28,28,34,.9);transition:.35s ease; }
.arena-score-player.winner { border-color:var(--gold);box-shadow:0 0 28px rgba(255,194,89,.14); }
.arena-score-player.leading { border-color:color-mix(in srgb,var(--arena-a) 70%,var(--border));background:linear-gradient(110deg,color-mix(in srgb,var(--arena-a) 16%,var(--surface-2)),rgba(28,28,34,.92));box-shadow:0 0 26px color-mix(in srgb,var(--arena-a) 14%,transparent); }
.arena-score-player__avatar { flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(135deg,var(--accent),#e52a5b);font-family:var(--display);font-weight:800; }
.arena-score-player div:last-child { display:grid;min-width:0; }
.arena-score-player b { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.arena-score-player span { color:var(--muted);font-size:12px; }
.arena-score-player strong { color:var(--fg);font-size:13px; }
.battle-arena__reels { position:relative;z-index:1;display:grid;grid-template-columns:repeat(var(--battle-player-count,2),minmax(0,1fr));gap:10px;min-height:330px; }
.arena-reel-player { min-width:0;border:1px solid rgba(255,255,255,.09);border-radius:17px;background:linear-gradient(180deg,rgba(24,24,31,.96),rgba(15,15,20,.96));overflow:hidden;box-shadow:0 14px 38px rgba(0,0,0,.2); }
.arena-reel-player__name { height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid var(--border); }
.arena-reel-player__name span { font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.arena-reel-player__name b { color:var(--gold);font-size:12px;white-space:nowrap; }
.arena-reel { position:relative;height:300px;overflow:hidden; }
.arena-reel::before,.arena-reel::after { content:"";position:absolute;z-index:3;left:0;right:0;height:70px;pointer-events:none; }
.arena-reel::before { top:0;background:linear-gradient(to bottom,#121216,transparent); }
.arena-reel::after { bottom:0;background:linear-gradient(to top,#121216,transparent); }
.arena-reel__marker { position:absolute;z-index:5;left:0;right:0;top:50%;height:118px;transform:translateY(-50%);border-top:2px solid var(--accent);border-bottom:2px solid var(--accent);box-shadow:0 0 20px rgba(140,102,255,.22);pointer-events:none; }
.arena-reel__strip { display:flex;align-items:center;height:300px;width:max-content;will-change:transform; }
.arena-reel-card { flex:0 0 150px;width:150px;height:116px;margin:0 4px;position:relative;border:1px solid var(--border);border-radius:12px;background:linear-gradient(180deg,rgba(255,255,255,.04),color-mix(in srgb,var(--rc) 12%,var(--surface))); }
.arena-reel-card::after { content:"";position:absolute;left:28%;right:28%;bottom:0;height:3px;background:var(--rc);box-shadow:0 0 12px var(--rc); }
.arena-reel-card__img { width:100%;height:82px;object-fit:contain; }
.arena-reel-card span { position:absolute;left:5px;right:5px;bottom:7px;text-align:center;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted); }
.battle-arena__footer { position:relative;z-index:1;height:48px;margin-top:10px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--border);border-radius:12px;color:var(--muted);background:rgba(28,28,34,.75);font-size:13px;font-weight:700; }
.battle-arena__footer.finished { color:var(--gold);border-color:rgba(255,194,89,.35); }
.battle-arena-empty { min-height:500px; }

.battle-countdown { position:absolute;z-index:20;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(10,10,14,.72);backdrop-filter:blur(8px); }
.battle-countdown::before { content:"";position:absolute;width:230px;height:230px;border-radius:50%;border:1px solid rgba(140,102,255,.4);box-shadow:0 0 70px rgba(140,102,255,.18),inset 0 0 70px rgba(140,102,255,.08);animation:countPulse .7s ease-out infinite; }
.battle-countdown span { position:relative;z-index:1;font-family:var(--display);font-size:82px;font-weight:800;line-height:1;text-shadow:0 0 34px rgba(140,102,255,.8); }
.battle-countdown small { position:relative;z-index:1;margin-top:12px;color:var(--gold);font-weight:800;letter-spacing:.22em;font-size:12px; }
@keyframes countPulse { from { transform:scale(.72);opacity:.2 } to { transform:scale(1.18);opacity:1 } }

.battle-report { position:absolute;z-index:30;inset:0;display:grid;place-items:center;padding:16px; }
.battle-report[hidden] { display:none; }
.battle-report__backdrop { position:absolute;inset:0;background:rgba(8,8,12,.82);backdrop-filter:blur(10px); }
.battle-report__card { position:relative;z-index:1;width:min(560px,100%);max-height:calc(100% - 20px);overflow:auto;border:1px solid rgba(255,194,89,.28);border-radius:22px;background:linear-gradient(180deg,rgba(37,34,48,.98),rgba(20,20,25,.98));box-shadow:0 30px 100px rgba(0,0,0,.55);padding:22px;text-align:center; }
.battle-report__eyebrow { color:var(--gold);font-size:11px;font-weight:800;letter-spacing:.16em; }
.battle-report__winner { display:grid;justify-items:center;margin:10px 0 16px; }
.battle-report__crown { color:var(--gold);font-size:24px;height:28px;text-shadow:0 0 18px rgba(255,194,89,.5); }
.battle-report__avatar { width:72px;height:72px;display:grid;place-items:center;border:2px solid rgba(255,194,89,.55);border-radius:20px;background:linear-gradient(135deg,var(--accent),#e52a5b);font-family:var(--display);font-size:28px;font-weight:800;box-shadow:0 14px 34px rgba(140,102,255,.25); }
.battle-report__winner h2 { margin:8px 0 2px;font-size:22px; }
.battle-report__winner > b { color:var(--gold);font-size:15px; }
.battle-report__winner.draw .battle-report__avatar { border-color:var(--stroke);background:var(--tonal); }
.battle-report__ranking { display:grid;gap:5px;text-align:left; }
.battle-report__row { display:grid;grid-template-columns:38px 1fr auto;align-items:center;height:42px;padding:0 10px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.025);font-size:13px; }
.battle-report__row span { color:var(--muted); }
.battle-report__row strong { color:var(--fg); }
.battle-report__row.winner { border-color:rgba(255,194,89,.35);background:rgba(255,194,89,.07); }
.battle-report__actions { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px; }
.battle-report__reward { display:grid;gap:4px;margin-top:12px;padding:12px;border:1px solid rgba(90,237,144,.32);border-radius:12px;background:rgba(90,237,144,.07);text-align:left; }
.battle-report__reward span { color:var(--success);font-size:9px;font-weight:900;letter-spacing:.13em; }
.battle-report__reward b { font-size:12px; }
.battle-report__reward a { color:var(--accent-hover);font-size:11px;font-weight:800; }
.player-avatar { object-fit:cover;overflow:hidden; }
.player-avatar--initial { display:grid;place-items:center; }
.battle-slot__avatar.player-avatar { grid-row:1/3;width:46px;height:46px;border-radius:13px; }
.arena-score-player__avatar.player-avatar { flex:0 0 38px;width:38px;height:38px;border-radius:11px; }
.arena-reel-player__name { gap:8px; }
.arena-reel-player__avatar.player-avatar { flex:0 0 32px;width:32px;height:32px;border-radius:9px; }
.arena-reel-player__name span { flex:1; }
.arena-reel-player__name small,.battle-slot b small,.arena-score-player b small { margin-left:5px;color:var(--accent-hover);font-size:8px;vertical-align:middle; }
.human-slot { border-color:rgba(140,102,255,.42); }
.human-player { border-color:rgba(140,102,255,.38); }
.arena-reel-card--winner { border:2px solid var(--gold);box-shadow:0 0 24px rgba(255,194,89,.16);transform:scale(1.03); }
.arena-reel-player.result-ready .arena-reel-card--winner { animation:dropReveal .38s cubic-bezier(.2,.9,.3,1.2); }
@keyframes dropReveal { from { transform:scale(.86);filter:brightness(1.8); } to { transform:scale(1.03);filter:brightness(1); } }
.arena-reel-card__label { position:absolute;z-index:4;left:6px;right:6px;top:-1px;height:18px;display:grid;place-items:center;border-radius:0 0 7px 7px;background:var(--gold);color:#241700;font-size:7px;font-weight:900;letter-spacing:.08em; }
.arena-reel-card--winner strong { position:absolute;z-index:4;right:6px;bottom:24px;height:20px;display:flex;align-items:center;padding:0 6px;border-radius:7px;background:rgba(8,8,12,.88);color:var(--gold);font-size:9px; }
.arena-reel-card--winner span { z-index:4;bottom:5px;color:#fff;font-weight:700; }
.battle-report__card.ledger-mode { width:min(760px,100%);max-height:calc(100% - 12px);text-align:left; }
.battle-report__card.ledger-mode > .battle-report__eyebrow,
.battle-report__card.ledger-mode > .battle-report__winner,
.battle-report__card.ledger-mode > .battle-report__ranking,
.battle-report__card.ledger-mode > .battle-report__actions { display:none; }
.arena-reel-player__drop { height:54px;border-top:1px solid var(--border);display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;padding:8px 10px;background:rgba(255,255,255,.02);font-size:11px; }
.arena-reel-player__drop b { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.arena-reel-player__drop span { color:var(--gold);white-space:nowrap;font-weight:800; }
.arena-round-drops { position:relative;z-index:2;margin-top:8px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px; }
.arena-round-drops:empty { display:none; }
.arena-round-drops__title { grid-column:1/-1;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;padding:2px 2px 0; }
.arena-round-drop { height:64px;display:grid;grid-template-columns:58px 1fr;align-items:center;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);padding:5px; }
.arena-round-drop img { width:58px;height:54px;object-fit:contain; }
.arena-round-drop div { display:grid;min-width:0;padding-left:6px; }
.arena-round-drop div span { color:var(--muted);font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.arena-round-drop div b { font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.arena-round-drop strong { display:none; }
.battle-drops-ledger { margin-top:12px;display:grid;gap:8px;text-align:left; }
.battle-drops-ledger[hidden] { display:none; }
.battle-drops-ledger__title { display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);padding-bottom:8px; }
.battle-drops-ledger__title span { font-family:var(--display);font-size:13px; }
.battle-drops-ledger__title b { color:var(--muted);font-size:11px; }
.battle-drops-ledger__round { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px; }
.battle-drops-ledger__round h4 { grid-column:1/-1;margin:3px 0 0;color:var(--muted);font-size:11px;text-transform:uppercase; }
.battle-drops-ledger__item { height:62px;display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:7px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);padding:4px 8px 4px 4px; }
.battle-drops-ledger__item img { width:58px;height:54px;object-fit:contain; }
.battle-drops-ledger__item div { display:grid;min-width:0; }
.battle-drops-ledger__item div span { color:var(--muted);font-size:10px; }
.battle-drops-ledger__item div b { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px; }
.battle-drops-ledger__item strong { color:var(--gold);font-size:11px;white-space:nowrap; }

@media (max-width: 1000px) {
  .upgrade { grid-template-columns: 1fr 1fr; }
  .upgrade .center { grid-column: 1 / -1; order: -1; }
  .contract { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-game-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .players-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .mainnav, .topbar .dl-top, .balance--desktop, .userbar-avatar--desktop { display: none; }
  .balance--mobile { display: flex; height: 36px; gap: 4px; padding: 0 8px; border-radius: 10px; font-size: 11px; }
  .topbar__inner { height: 58px; padding: 0 14px; }
  .userbar-avatar--mobile { display: grid; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 760px) {
  .mainnav, .topbar .dl-top { display: none; }
  .topbar__inner { height: 58px; padding: 0 14px; }
  .page { padding: 16px 14px 28px; }
  .balance--desktop, .userbar-avatar--desktop { display: none; }
  .userbar-avatar--mobile { display: grid; }
  .mobile-menu-toggle { display: flex; }
  .livefeed { height: 60px; }
  .livefeed__label { gap: 5px; padding: 0 8px; font-size: 9px; }
  .livefeed__best { flex-basis: 186px; gap: 4px; padding: 4px; }
  .livefeed__best-label { flex-basis: 34px; font-size: 7px; letter-spacing: 0; }
  .livefeed__best-label-full { display: none; }
  .livefeed__best-label-short { display: inline; }
  .livefeed__best .feeditem { flex-basis: 80px; height: 50px; }
  .livefeed__best-price, .livefeed__best-price .price { font-size: 8px; }
  .livefeed__track { gap: 4px; padding: 5px; }
  .livefeed__track .feeditem { flex-basis: 100px; height: 50px; }
  .feeditem img { inset: 3px 8px 16px; width: calc(100% - 16px); height: 30px; }
  .feeditem__skin { bottom: 4px; font-size: 9px; }
  .battles-layout { grid-template-columns: 1fr; }
  .battle-case-picker { grid-template-columns: 1fr 1fr; }
  .battle-case-card { min-height: 155px; }
  .battle-case-card__img { height: 105px; }
  .battle-case-card__select { min-height: 120px; padding: 8px; }
  .battle-lobby__toolbar { align-items: flex-start; flex-direction: column; }
  .battle-sort { width: 100%; justify-content: space-between; }
  .battle-sort .input { flex: 1; }
  .battle-row { grid-template-columns: 46px minmax(0,1fr) auto;gap:8px;padding:8px;min-height:78px; }
  .battle-row__art { width:46px;height:46px; }
  .battle-row__join { padding:7px; font-size:10px; }
  .battle-row__action > b { font-size: 10px; }
  .battle-arena { min-height: 520px; padding: 10px; }
  .battle-arena__head { grid-template-columns: auto 1fr auto; }
  .battle-arena__back { font-size: 12px; max-width: 65px; }
  .battle-arena__case-img { width: 62px; }
  .battle-arena__case div b { font-size: 12px; }
  .battle-arena__score { grid-template-columns: repeat(2,1fr); }
  .arena-score-player { padding: 7px; }
  .battle-arena__reels { grid-template-columns: repeat(2,1fr); min-height: 0; }
  .arena-reel { height: 180px; }
  .arena-reel__strip { height: 180px; }
  .arena-reel__marker {
    top: 7px; bottom: auto; left: 50%; right: auto; width: 0; height: 0;
    transform: none; border: 0; opacity: .8; background: none; box-shadow: none;
  }
  .arena-reel__marker::before {
    content: ""; position: absolute; top: 0; left: 0; transform: translateX(-50%);
    width: 0; height: 0; border: 6px solid transparent; border-top: 8px solid var(--accent);
  }
  .arena-reel__marker::after { display: none; }
  .battle-report__card { padding: 14px; }
  .battle-report__avatar { width: 58px; height: 58px; }
  .battle-report__actions { grid-template-columns: 1fr; }
  .arena-round-drops { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .battle-drops-ledger__round { grid-template-columns: 1fr; }
  .battle-options { grid-template-columns: 1fr; }
  .hero { min-height: 300px; }
  .hero::after { background: linear-gradient(0deg, rgba(10, 8, 18, .96) 10%, rgba(10, 8, 18, .55) 60%, rgba(10, 8, 18, .2)); }
  .hero { align-items: flex-end; }
  .hero__content { padding: 24px 20px; }
  .cases { grid-template-columns: repeat(auto-fill, minmax(170px, 230px)); gap: 10px; }
  .casecard { padding: 12px 10px 14px; }
  .casecard__name { font-size: 14px; }
  .casecard__tag { font-size: 9.5px; top: 10px; left: 10px; }
  .skingrid { grid-template-columns: repeat(2, 1fr); }
  .case-skins { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }
  .skingrid .skin { height: 160px; }
  .case-skins .skin { height: 132px; }
  .promo-page { gap: 12px; }
  .promo-page__hero { min-height: 150px; padding: 20px; }
  .promo-page__hero p { font-size: 12px; }
  .promo-page__hero-icon { width: 68px; height: 68px; flex-basis: 68px; border-radius: 20px; font-size: 42px; }
  .promo-redeem { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .promo-redeem__icon { display: none; }
  .promo-form__row { flex-direction: column; }
  .promo-form .btn { width: 100%; }
  .promo-gate { align-items: flex-start; flex-direction: column; padding: 16px; }
  .promo-gate .btn { width: 100%; margin-left: 0; }
  .promo-credits { padding: 16px; }
  .promo-credits__list { grid-template-columns: 1fr; }
  .promo-steps { grid-template-columns: 1fr; }
  .promo-steps article { grid-template-columns: 30px 1fr; align-items: baseline; gap: 5px 8px; padding: 12px; }
  .promo-steps article > span { grid-row: span 2; }
  .promo-steps article > p { grid-column: 2; }
  .referral-panel { padding: 14px; gap: 12px; }
  .partner-panel { padding: 14px; }
  .partner-pack { align-items: flex-start; flex-direction: column; }
  .partner-pack .btn { width: 100%; }
  .partner-social-fields { grid-template-columns: 1fr; }
  .partner-profile-form > .btn { width: 100%; }
  .partner-codes { grid-template-columns: 1fr; }
  .partner-code .btn { flex: 0 0 auto; }
  .subscription-gate { margin-top: 24px; }
  .subscription-gate > .btn { width: 100%; }
  .referral-link { align-items: stretch; flex-direction: column; }
  .referral-link .btn { align-self: flex-start; }
  .referral-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract__slots { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .cslot { height: 80px; }
  .profile-hero { gap: 12px; padding: 16px; }
  .profile-avatar { width: 58px; height: 58px; flex-basis: 58px; border-radius: 17px; font-size: 23px; }
  .profile-actions { gap: 6px; }
  .profile-balance { display: none; }
  .profile-settings { width: 38px; height: 38px; }
  .profile-service-nav { grid-template-columns: 1fr; gap: 8px; }
  .profile-service-card { padding: 12px; }
  .trade-hero, .trade-gate { align-items: stretch; flex-direction: column; padding: 15px; }
  .trade-hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-hero__stats > div { min-width: 0; }
  .trade-create { padding: 13px; }
  .trade-create__footer { align-items: stretch; flex-direction: column; }
  .trade-create__footer .btn, .trade-gate .btn { width: 100%; }
  .trade-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .trade-picker .skin { height: 150px; }
  .trade-card { padding: 12px; }
  .trade-card__head { align-items: flex-start; flex-direction: column; }
  .trade-card__actions { width: 100%; }
  .trade-card__actions .btn { flex: 1; }
  .trade-card__items { grid-template-columns: 1fr; }
  .trade-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-response-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-response-modal .btn { width: 100%; }
  .profile-stat { min-height: 120px; padding: 12px; }
  .profile-stat > b { font-size: 17px; }
  .profile-stat__icon { width: 48px; height: 46px; font-size: 28px; }
  .profile-section__head { align-items: flex-start; }
  .profile-tools { width: 100%; }
  .profile-tools select { flex: 1 1 150px; }
  .profile-tools button { flex: 1 1 auto; }
  .profile-tab { padding: 10px 9px; font-size: 11px; }
  .profile-history__row { grid-template-columns: 54px minmax(0,1fr) auto; gap: 7px; padding: 7px; }
  .profile-history__img { width: 52px; height: 48px; }
  .profile-history__row > strong { font-size: 10px; }
  .players-grid { grid-template-columns: 1fr; }
  .players-tabs a { flex: 1; padding: 8px 9px; font-size: 11px; text-align: center; }
  .balance-top { padding: 14px; }
  .balance-top__heading { align-items: flex-start; gap: 10px; }
  .balance-top__trophy { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; font-size: 22px; }
  .balance-top__heading h2 { font-size: 17px; }
  .balance-top__podium { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .balance-top-card--1 { order: 0; grid-column: 1 / -1; min-height: 190px; }
  .balance-top-card--2, .balance-top-card--3 { min-height: 164px; }
  .balance-top-card--row { grid-template-columns: 28px 38px minmax(0,1fr) auto; gap: 7px; padding: 8px; }
  .balance-top-card--row .balance-top__avatar { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
  .balance-top-card--row .balance-top__amount { font-size: 11px; }
  .players-heading h1 { font-size: 23px; }
  .players-toolbar { align-items: flex-start; flex-direction: column; }
  .players-search { width: 100%; }
  .profile-view-all { margin-left: 0; padding: 8px; font-size: 11px; }
  .legal-page { padding: 20px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer { padding-bottom: 0; }
  .upgrade { grid-template-columns: 1fr; }
  .wheel { width: 220px; height: 220px; }
  .mini-game-layout { grid-template-columns: 1fr; }
  .mini-game-controls { order: -1; }
  .mini-game-visual { min-height: 250px; }
  .mini-tile { min-height: 52px; }
  .mini-tiles--mines .mini-tile { min-height: 44px; }
  .games-inventory { align-items: flex-start; flex-direction: column; }
  .balance { padding-left: 10px; font-size: 14px; }
  .logo__text { font-size: 16px; }
}
@media (max-width: 420px) {
  .topbar .logo__text { display: none; }
  .livefeed { height: 56px; }
  .livefeed__label { padding: 0 6px; }
  .games-grid { gap: 8px; }
  .game-card { min-height: 180px; padding: 13px; }
  .game-card > b { font-size: 15px; }
  .game-card__icon { top: 10px; right: 11px; font-size: 34px; }
  .mini-game-heading { gap: 9px; }
  .mini-game-heading h1 { font-size: 20px; }
  .mini-game-heading .games-balance { display: none; }
  .mini-game-visual { min-height: 220px; padding: 10px; }
  .mini-tiles, .mini-tiles--mines { gap: 5px; }
  .mini-tile { min-height: 46px; border-radius: 9px; font-size: 20px; }
  .mini-tiles--mines .mini-tile { min-height: 40px; font-size: 17px; }
  .mini-game-footer { font-size: 10px; }
  .livefeed__best { flex-basis: 162px; gap: 3px; padding: 3px; }
  .livefeed__best-label { flex-basis: 26px; font-size: 6px; line-height: 1.15; }
  .livefeed__best .feeditem { flex-basis: 70px; height: 48px; }
  .livefeed__best-price, .livefeed__best-price .price { font-size: 7px; }
  .livefeed__track { gap: 4px; padding: 4px; }
  .livefeed__track .feeditem { flex-basis: 82px; height: 48px; }
}
/* ---------- Additions: features, pickers, roulette states ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: rgba(140, 102, 255, .5); transform: translateY(-2px); }
.feature__n { font-family: var(--display); font-size: 42px; font-weight: 800; color: rgba(140, 102, 255, .18); position: absolute; right: 16px; top: 8px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 14px; }
.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.pickers .picker { margin-top: 0; }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.roulette.done .skin { transition: opacity .4s, transform .4s; }
.roulette.done .skin:not(.won) { opacity: .2; filter: blur(3px); }
.roulette--mystery.done .skin.mystery-reel-card:not(.won) { opacity: 0; filter: blur(4px); transform: scale(.8); }
.roulette .skin.won { transform: scale(1.04); box-shadow: 0 0 0 2px var(--rc), 0 0 30px -4px var(--rc); }
.roulette .skin.won .skin__img { transform: translate(-50%, -50%) scale(1.12); }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr; } .pickers { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .mystery-info { margin-top: 14px; padding: 20px 14px; }
  .mystery-info__head { margin-bottom: 16px; }
  .mystery-info__head h2 { font-size: 17px; }
  .mystery-info__features { grid-template-columns: 1fr; gap: 8px; }
  .mystery-info__feature { min-height: 60px; padding: 12px; font-size: 13px; }
  .mystery-info__note { font-size: 12px; }
  .case-titlebar { gap: 9px; margin-bottom: 10px; }
  .case-titlebar .back { width: 34px; height: 34px; flex-basis: 34px; }
  .case-titlebar h1 { font-size: 19px; }
  .case-titlebar__price { min-height: 34px; padding: 0 9px; font-size: 12px; }
  .case-open-stage { padding: 5px; border-radius: 15px; }
  .case-open-stage__art { width: min(110px, calc(100% - 18px)); height: min(100px, calc(100% - 18px)); }
  .case-open-stage.has-multiple-reels .case-open-stage__art { display: none; }
  .spinners { gap: 5px; }
  .spinners > .roulette:last-child:nth-child(odd):not(:only-child) { grid-column: 1 / -1; width: calc(50% - 2.5px); justify-self: center; }
  .roulette { border-radius: 10px; }
  .roulette__strip { top: 5px; bottom: 5px; gap: 5px; }
  .roulette__strip .skin { padding: 6px 8px; }
  .roulette .skin__meta { font-size: 11px; }
  .roulette .skin__weapon { font-size: 10px; }
  .roulette .skin .price { font-size: 10px; }
  .roulette .skin.won .roulette__sell { top: 5px; right: 5px; height: 25px; min-height: 25px; padding: 0 8px; font-size: 10px; }
  .case-open-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .case-open-controls .counts { grid-column: 1 / -1; justify-content: space-between; }
  .case-open-controls .counts button { min-width: 0; flex: 1; }
  .case-open-controls > [data-open], .case-open-controls > a { grid-column: 1 / -1; width: 100%; height: 44px; }
  .case-open-controls > [data-sell-results] { grid-column: 1 / -1; justify-self: end; height: 38px; }
  .case-open-controls .fast { justify-content: center; height: 36px; padding: 0 4px; gap: 6px; font-size: 11px; }
  .results--inline { padding: 10px; }
  .results--inline .results__head { align-items: flex-start; }
  .results__drop-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; padding: 8px; }
  .results__drop-row .btn { grid-column: 1 / -1; width: 100%; }
  .results__items { grid-template-columns: repeat(2, 1fr); }
  .results__items .skin { height: 160px; }
  .counts button { min-width: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Character-led case cards and the seasonal battle pass */
.casecard--character { min-height: 326px; padding: 10px; background: linear-gradient(160deg, color-mix(in srgb, var(--a1) 9%, var(--surface)), var(--surface) 66%); }
.casecard--character::before { z-index: 0; background: radial-gradient(80% 56% at 50% 32%, color-mix(in srgb, var(--a1) 30%, transparent), transparent 76%), linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--a2) 12%, transparent)); }
.casecard--character > :not(.casecard__tag) { position: relative; z-index: 1; }
.casecard__portrait { position: relative; display: block; height: 190px; margin: 11px -2px 8px; overflow: hidden; border-radius: 14px; background: linear-gradient(140deg, color-mix(in srgb, var(--a1) 13%, #17171e), rgba(11,11,16,.25)); }
.casecard__portrait::before { content: ""; position: absolute; inset: auto 8% 2px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--a1) 36%, transparent); filter: blur(18px); }
.casecard__glow { position: absolute; width: 130px; height: 130px; left: 50%; top: 45%; transform: translate(-50%,-50%); border-radius: 50%; background: color-mix(in srgb, var(--a1) 24%, transparent); filter: blur(30px); }
.casecard__character { position: absolute; z-index: 1; left: 50%; bottom: -7px; width: 72%; height: 185px; object-fit: contain; object-position: center bottom; transform: translateX(-50%); filter: drop-shadow(0 10px 12px rgba(0,0,0,.4)); transition: transform .35s cubic-bezier(.2,.9,.3,1.3); }
.casecard:hover .casecard__character { transform: translateX(-50%) scale(1.055) translateY(-2px); }
.casecard__box { position: absolute; z-index: 2; right: 7px; bottom: 8px; display: grid; place-items: center; width: 58px; height: 52px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(15,15,21,.78); box-shadow: 0 7px 18px rgba(0,0,0,.32); backdrop-filter: blur(8px); }
.casecard__box-img { width: 100%; height: 100%; padding: 5px; object-fit: contain; filter: drop-shadow(0 4px 7px rgba(0,0,0,.35)); }
.casecard__spark { position: absolute; z-index: 2; width: 5px; height: 5px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 13px 3px color-mix(in srgb, var(--a1) 75%, transparent); }
.casecard__spark--one { top: 38px; right: 27%; }
.casecard__spark--two { top: 73px; left: 21%; width: 3px; height: 3px; }
.casecard--character .casecard__meta { margin-top: 3px; }
.pass-gate { display: flex; align-items: center; gap: 18px; max-width: 780px; margin: 36px auto; padding: 24px; }
.pass-gate__icon { display: grid; place-items: center; width: 62px; height: 62px; flex: 0 0 62px; border: 1px solid rgba(255,194,89,.3); border-radius: 19px; background: rgba(255,194,89,.1); color: var(--gold); font-size: 32px; }
.pass-gate h1 { font-size: 24px; }
.pass-gate p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.pass-gate .btn { margin-left: auto; white-space: nowrap; }
.pass-hero { position: relative; display: flex; align-items: center; min-height: 270px; overflow: hidden; padding: clamp(24px, 5vw, 52px); border: 1px solid rgba(255,194,89,.2); border-radius: 24px; background: radial-gradient(ellipse at 82% 50%, rgba(255,194,89,.17), transparent 34%), radial-gradient(ellipse at 100% 0%, rgba(140,102,255,.16), transparent 40%), linear-gradient(125deg,#211b2b,#17171d 58%,#24201c); }
.pass-hero::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(120deg, transparent 36%, rgba(255,255,255,.035) 36.2%, transparent 36.5%), linear-gradient(0deg, transparent 70%, rgba(255,255,255,.035) 70.2%, transparent 70.5%); pointer-events: none; }
.pass-hero__content { position: relative; z-index: 1; max-width: 620px; }
.pass-hero h1 { margin: 7px 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.16; }
.pass-hero h1 em { color: var(--gold); font-style: normal; }
.pass-hero p { max-width: 560px; margin: 0; color: #c0bac9; font-size: 14px; }
.pass-season { display: flex; align-items: center; gap: 9px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.pass-season b { color: var(--fg); }
.pass-hero__art { position: absolute; right: 7%; top: 50%; display: grid; place-items: center; width: 220px; height: 220px; transform: translateY(-50%); border: 1px solid rgba(255,194,89,.18); border-radius: 50%; background: radial-gradient(circle,rgba(255,194,89,.16),rgba(255,194,89,.035) 55%,transparent 70%); color: var(--gold); }
.pass-hero__art::before,.pass-hero__art::after { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(255,194,89,.32); border-radius: 50%; animation: pass-orbit 22s linear infinite; }
.pass-hero__art::after { inset: 32px; border-style: solid; opacity: .55; animation-direction: reverse; }
.pass-hero__art > b { font-family: var(--display); font-size: 84px; line-height: 1; text-shadow: 0 0 30px rgba(255,194,89,.25); }
.pass-hero__art > span,.pass-hero__art > i { position: absolute; z-index: 1; font-style: normal; }
.pass-hero__art > span { top: 13px; right: 31px; font-size: 27px; }
.pass-hero__art > i { left: 19px; bottom: 27px; font-size: 23px; }
@keyframes pass-orbit { to { transform: rotate(360deg); } }
.pass-progress { margin-top: 14px; padding: 20px 22px; }
.pass-progress__top,.pass-progress__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pass-progress__top > div:first-child { display: grid; gap: 3px; }
.pass-progress__top > div:first-child span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.pass-progress__top > div:first-child b { font-family: var(--display); font-size: 22px; }
.pass-progress__top small { color: var(--muted); font: 600 13px var(--font); }
.pass-progress__xp { color: var(--muted); font-size: 12px; }
.pass-progress__xp b { color: var(--gold); font-size: 14px; }
.pass-progress__track { height: 9px; overflow: hidden; margin: 14px 0 9px; border-radius: 99px; background: #2b2930; }
.pass-progress__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ffb84e,#ffe29b); box-shadow: 0 0 14px rgba(255,194,89,.35); transition: width .4s ease; }
.pass-progress__bottom { color: var(--muted); font-size: 11px; }
.pass-progress__bottom a { color: var(--gold); font-weight: 700; }
.pass-rewards,.pass-cosmetics-section { margin-top: 30px; }
.pass-open-count { padding: 7px 10px; border: 1px solid rgba(255,194,89,.2); border-radius: 9px; background: rgba(255,194,89,.07); color: var(--gold); font-size: 11px; font-weight: 800; white-space: nowrap; }
.pass-tier-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.pass-tier { display: flex; flex-direction: column; min-height: 188px; padding: 11px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(155deg,rgba(255,255,255,.025),transparent 55%),var(--surface); transition: border-color .2s,transform .2s,background .2s; }
.pass-tier.is-available { border-color: rgba(255,194,89,.48); background: linear-gradient(155deg,rgba(255,194,89,.09),transparent 60%),var(--surface); }
.pass-tier.is-claimed { opacity: .58; }
.pass-tier__number { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.pass-tier__icon { display: grid; place-items: center; height: 65px; margin: 6px 0; }
.pass-tier__case { display: grid; place-items: center; width: 72px; height: 60px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.04); }
.pass-tier__case img { width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.pass-tier__gold { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,194,89,.12); }
.pass-tier__gold .gold { width: 22px; height: 22px; }
.pass-tier__cosmetic { display: grid; place-items: center; width: 45px; height: 45px; border: 2px solid color-mix(in srgb,var(--cosmetic) 60%,transparent); border-radius: 15px; background: color-mix(in srgb,var(--cosmetic) 13%,transparent); color: var(--cosmetic); font-size: 26px; box-shadow: 0 0 20px color-mix(in srgb,var(--cosmetic) 18%,transparent); }
.pass-tier__reward { flex: 1; min-height: 34px; margin-bottom: 8px; color: #d3d0db; font-size: 10px; line-height: 1.45; }
.pass-tier > .btn { width: 100%; min-height: 32px; padding: 5px 8px; font-size: 10px; }
.pass-tier__claimed { padding: 8px; color: var(--success); text-align: center; font-size: 10px; font-weight: 800; }
.pass-cosmetics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.pass-cosmetic { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 2px 10px; min-height: 76px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-align: left; }
.pass-cosmetic:enabled { cursor: pointer; }
.pass-cosmetic:enabled:hover,.pass-cosmetic.is-equipped { border-color: rgba(255,194,89,.45); background: rgba(255,194,89,.06); }
.pass-cosmetic > span { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid color-mix(in srgb,var(--cosmetic) 45%,transparent); border-radius: 13px; background: color-mix(in srgb,var(--cosmetic) 10%,transparent); color: var(--cosmetic); font-size: 24px; }
.pass-cosmetic b { font-size: 11px; }
.pass-cosmetic small { color: var(--muted); font-size: 9px; }
.pass-cosmetic.is-locked { opacity: .48; }
.pass-xp-info { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 24px 0 16px; }
.pass-xp-info article { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.pass-xp-info b { font-size: 12px; }
.pass-xp-info span { color: var(--muted); font-size: 10px; line-height: 1.5; }
@media (max-width: 1000px) {
  .pass-tier-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .pass-cosmetics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .casecard--character { min-height: 310px; }
  .casecard__portrait { height: 170px; }
  .casecard__character { height: 166px; }
  .pass-gate { align-items: flex-start; flex-wrap: wrap; margin: 10px 0; padding: 18px; }
  .pass-gate__icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 15px; font-size: 25px; }
  .pass-gate > div:nth-child(2) { flex: 1; }
  .pass-gate .btn { width: 100%; margin: 0; }
  .pass-hero { min-height: 270px; padding: 24px 20px; }
  .pass-hero__art { right: -66px; width: 180px; height: 180px; opacity: .52; }
  .pass-hero__art > b { font-size: 66px; }
  .pass-hero__content { max-width: 88%; }
  .pass-hero h1 { font-size: clamp(26px,7vw,36px); }
  .pass-hero p { max-width: 100%; font-size: 12px; }
  .pass-season { flex-wrap: wrap; gap: 6px; font-size: 10px; }
  .pass-progress { padding: 16px; }
  .pass-progress__top > div:first-child b { font-size: 19px; }
  .pass-progress__xp { font-size: 10px; text-align: right; }
  .pass-progress__bottom { align-items: flex-start; font-size: 10px; }
  .pass-tier-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .pass-tier { min-height: 175px; padding: 9px; }
  .pass-tier__reward { font-size: 9px; }
  .pass-tier > .btn { font-size: 9px; }
  .pass-cosmetics { grid-template-columns: 1fr 1fr; gap: 7px; }
  .pass-cosmetic { grid-template-columns: 34px 1fr; gap: 2px 7px; padding: 9px; }
  .pass-cosmetic > span { width: 34px; height: 34px; border-radius: 11px; font-size: 20px; }
  .pass-cosmetic b { font-size: 10px; }
  .pass-cosmetic small { font-size: 8px; }
  .pass-xp-info { grid-template-columns: 1fr; gap: 7px; }
  .pass-xp-info article { grid-template-columns: 90px 1fr; align-items: center; padding: 11px; }
}
@media (max-width: 420px) {
  .pass-tier-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pass-tier { min-height: 165px; }
  .pass-hero__content { max-width: 100%; }
  .pass-hero__art { right: -96px; opacity: .3; }
  .pass-progress__bottom a { white-space: nowrap; }
}

/* ---------- Battle hub and invite room ---------- */
.battle-hub-head { display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:6px 0 22px; }
.battle-hub-head__copy { max-width:620px; }
.battle-hub-head__copy h1 { margin:2px 0 6px;font-size:clamp(26px,4vw,36px); }
.battle-hub-head__copy p { max-width:540px;margin:0;color:var(--muted);font-size:13px;line-height:1.6; }
.battle-hub-head__actions { display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px; }
.battle-catalog { padding:18px; }
.battle-catalog__toolbar { display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px;border-bottom:1px solid var(--border); }
.battle-tabs { display:flex;align-items:center;gap:5px;min-width:0; }
.battle-tab { position:relative;min-height:44px;padding:0 12px;color:var(--muted);font-size:12px;font-weight:800;white-space:nowrap; }
.battle-tab.active { color:var(--fg); }
.battle-tab.active::after { content:"";position:absolute;right:9px;bottom:-1px;left:9px;height:2px;border-radius:2px;background:var(--accent-hover); }
.battle-tab span { margin-left:5px;color:var(--accent-hover); }
.battle-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.battle-card { display:grid;grid-template-columns:minmax(0,1.25fr) minmax(176px,.9fr);min-width:0;min-height:146px;padding:0;overflow:hidden;text-align:left;border:1px solid var(--border);border-radius:16px;background:linear-gradient(115deg,rgba(255,255,255,.025),transparent 55%),var(--surface-2);transition:border-color .2s,transform .2s,background .2s; }
.battle-card:hover { transform:translateY(-2px);border-color:rgba(140,102,255,.55); }
.battle-card--playing { border-color:rgba(74,203,152,.35); }
.battle-card__art { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(54px,1fr);align-content:stretch;min-width:0;min-height:146px;overflow:hidden;background:rgba(9,10,16,.22); }
.battle-card__case { position:relative;display:grid;place-items:center;min-width:0;overflow:hidden;border-right:1px solid rgba(255,255,255,.06);background:radial-gradient(circle at 50% 46%,color-mix(in srgb,var(--case-a) 22%,transparent),transparent 68%),rgba(255,255,255,.015); }
.battle-card__case-img { width:100%;height:100%;max-height:142px;object-fit:contain;padding:7px;filter:drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.battle-card__case > b { position:absolute;top:7px;left:7px;padding:3px 5px;border-radius:6px;background:rgba(10,11,17,.8);color:var(--fg);font-size:9px; }
.battle-card__content { display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0;padding:12px; }
.battle-card__topline,.battle-card__meta { display:flex;align-items:center;justify-content:space-between;gap:8px; }
.battle-card__topline > b { color:var(--gold);font-size:14px;white-space:nowrap; }
.battle-card__topline > b small { display:block;color:var(--muted);font-size:8px;font-weight:600; }
.battle-card__topline > span,.battle-card__meta { color:var(--muted);font-size:9px;white-space:nowrap; }
.battle-card__name { overflow:hidden;color:var(--fg);font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap; }
.battle-card__players { display:flex;align-items:center;min-height:24px; }
.battle-card__player { display:grid;place-items:center;width:22px;height:22px;margin-left:-4px;overflow:hidden;border:2px solid var(--surface-2);border-radius:50%;background:var(--surface-3);color:var(--muted);font-size:11px; }
.battle-card__player:first-child { margin-left:0; }
.battle-card__player.online { border-color:var(--success); }
.battle-card__avatar { width:100%;height:100%;border-radius:50%;font-size:9px; }
.battle-card__player--empty { border-style:dashed; }
.battle-card__players > small { margin-left:7px;color:var(--muted);font-size:9px;white-space:nowrap; }
.battle-card__action { display:flex;align-items:center;justify-content:space-between;margin-top:2px;padding:7px 9px;border-radius:8px;background:rgba(140,102,255,.11);color:var(--accent-hover);font-size:10px;font-weight:800; }
.battle-card__action b { font-size:14px; }
.battle-create-note { margin:10px 0;color:var(--muted);font-size:11px;line-height:1.5; }
.battle-create-modal > h2 { margin:3px 0 2px; }
.battle-create-modal > p { margin:0 0 14px; }
#modalBox:has(.battle-create-modal) { max-width:980px; }
.battle-create-modal .battle-case-picker { grid-template-columns:repeat(auto-fill,minmax(145px,1fr));max-height:330px; }
.battle-create-modal .battle-case-card { min-height:158px; }
.battle-create-modal .battle-case-card__select { min-height:124px; }
.battle-create-modal .battle-case-card__img { height:105px; }
.battle-create-modal .battle-case-card__img--character { height:115px; }
.battle-create-modal .battle-case-tags { flex-wrap:wrap; }
.battle-create-modal .battle-create-submit { max-width:420px; }
.battle-howto { display:grid;gap:11px;padding-left:22px;color:var(--muted);font-size:13px;line-height:1.6; }
.battle-howto li::marker { color:var(--accent-hover);font-weight:900; }
.battle-room { display:grid;gap:18px; }
.battle-room__head { display:grid;grid-template-columns:minmax(100px,.55fr) minmax(0,1.5fr) auto;align-items:center;gap:16px; }
.battle-room__back { color:var(--muted);font-size:12px;font-weight:800; }
.battle-room__head h1 { margin:2px 0 3px;font-size:clamp(20px,3vw,30px); }
.battle-room__head p { margin:0;color:var(--muted);font-size:12px; }
.battle-room__layout { display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:start;gap:14px; }
.battle-room__players,.battle-room__cases { min-width:0;padding:20px; }
.battle-room__section-head { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px; }
.battle-room__section-head h2 { margin:2px 0 0;font-size:18px; }
.battle-room__section-head > b { color:var(--gold);font-size:16px;white-space:nowrap; }
.battle-room__section-head > b small { color:var(--muted);font-size:10px;font-weight:600; }
.battle-room__seats { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px; }
.battle-room-seat { position:relative;display:grid;grid-template-columns:46px minmax(0,1fr) 10px;align-items:center;gap:10px;min-height:76px;padding:10px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2); }
.battle-room-seat__avatar { display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:linear-gradient(135deg,var(--accent),#e52a5b);font-weight:900; }
.battle-room-seat img.battle-room-seat__avatar { object-fit:cover; }
.battle-room-seat__identity { display:grid;gap:5px;min-width:0; }
.battle-room-seat__identity b { overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap; }
.battle-room-seat__identity b small { color:var(--accent-hover);font-size:8px; }
.battle-room-seat__identity > small { color:var(--muted);font-size:10px; }
.battle-room-seat > i,.battle-room__status > i { width:8px;height:8px;border-radius:50%;background:#687080; }
.battle-room-seat.is-online > i,.battle-room__status.ready > i { background:var(--success);box-shadow:0 0 10px var(--success); }
.battle-room-seat--empty { grid-template-columns:46px minmax(0,1fr);border-style:dashed;color:var(--muted); }
.battle-room-seat--empty .battle-room-seat__avatar { display:grid;place-items:center;border:1px dashed var(--stroke);background:transparent;color:var(--muted);font-size:22px; }
.battle-room-seat--empty b { font-size:12px; }
.battle-room-seat--empty small { grid-column:2;color:var(--muted);font-size:9px; }
.battle-room__status { display:flex;align-items:center;gap:9px;margin:13px 0;padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:rgba(0,0,0,.14);color:var(--muted);font-size:11px; }
.battle-room__status.ready { border-color:rgba(90,237,144,.25);color:var(--success); }
.battle-room__join,.battle-room__start { width:100%; }
.battle-room__leave { width:100%;margin-top:9px; }
.battle-room__waiting { margin:10px 0 0;color:var(--accent-hover);font-size:11px;text-align:center; }
.battle-room__hint { margin:11px 0 0;color:var(--muted);font-size:10px;line-height:1.5; }
.battle-room__case-list { display:grid;gap:7px;max-height:330px;overflow:auto; }
.battle-room-case { display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:10px;min-height:68px;padding:5px 10px;border:1px solid var(--border);border-radius:11px;background:radial-gradient(circle at 14% 50%,color-mix(in srgb,var(--case-a) 20%,transparent),transparent 48%),var(--surface-2); }
.battle-room-case__img { width:70px;height:58px;object-fit:contain; }
.battle-room-case > div { display:grid;gap:5px;min-width:0; }
.battle-room-case b { overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap; }
.battle-room-case span { color:var(--muted);font-size:10px; }
.battle-room__share-note { display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:8px;margin-top:12px;padding:11px;border:1px solid rgba(140,102,255,.23);border-radius:12px;background:rgba(140,102,255,.06); }
.battle-room__share-note > span { font-size:20px; }
.battle-room__share-note > div { display:grid;gap:4px;min-width:0; }
.battle-room__share-note b { font-size:11px; }
.battle-room__share-note small { color:var(--muted);font-size:9px;line-height:1.4; }
@media (max-width: 1050px) {
  .battle-grid { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
  .battle-hub-head { align-items:flex-start;flex-direction:column;gap:13px; }
  .battle-hub-head__actions { width:100%;justify-content:flex-start; }
  .battle-hub-head__actions .battle-live { flex-basis:100%; }
  .battle-catalog { padding:12px; }
  .battle-catalog__toolbar { align-items:flex-start;flex-direction:column;gap:4px;padding-bottom:10px; }
  .battle-tabs { width:100%;overflow:auto; }
  .battle-tab { padding:0 8px;font-size:10px; }
  .battle-sort { width:100%;justify-content:space-between; }
  .battle-sort .input { flex:1; }
  .battle-card { grid-template-columns:minmax(0,1.1fr) minmax(145px,.95fr);min-height:128px; }
  .battle-card__art { min-height:128px;grid-auto-columns:minmax(42px,1fr); }
  .battle-card__content { gap:5px;padding:9px; }
  .battle-card__name { font-size:11px; }
  .battle-card__topline > b { font-size:12px; }
  .battle-room__head { grid-template-columns:auto minmax(0,1fr);gap:10px; }
  .battle-room__head > div { grid-column:2;grid-row:1; }
  .battle-room__back { grid-column:1;grid-row:1;max-width:70px; }
  .battle-room__head > button { grid-column:1/-1;width:100%; }
  .battle-room__layout { grid-template-columns:1fr; }
  .battle-room__players,.battle-room__cases { padding:14px; }
  .battle-room__seats { gap:6px; }
  .battle-room-seat { grid-template-columns:38px minmax(0,1fr) 8px;gap:7px;min-height:68px;padding:8px; }
  .battle-room-seat__avatar { width:38px;height:38px;border-radius:11px; }
  .battle-room__share-note { grid-template-columns:24px minmax(0,1fr); }
  .battle-room__share-note button { grid-column:1/-1;width:100%; }
}
@media (max-width: 480px) {
  .battle-card { grid-template-columns:1fr; }
  .battle-card__art { min-height:96px;max-height:108px;grid-auto-columns:minmax(48px,1fr); }
  .battle-card__case-img { max-height:100px; }
  .battle-card__content { padding:10px; }
  .battle-room__head h1 { font-size:19px; }
  .battle-room__seats { grid-template-columns:1fr; }
  .battle-create-modal .battle-case-picker { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

:root {
  --bg: #11141c;
  --surface: #181c27;
  --surface-2: #202636;
  --surface-3: #282f40;
  --tonal: #2d3547;
  --tonal-hover: #3a455b;
  --border: #303849;
  --stroke: #48536a;
  --fg: #f3f4f7;
  --muted: #9da6b8;
  --price: #f5f2e9;
  --accent: #d9a83b;
  --accent-hover: #f2c65f;
  --gold: #ffd16a;
  --success: #63d998;
  --danger: #ff6572;
  --r-arcane: #e85a72;
  --r-nameless: #e6b246;
}

body {
  background:
    radial-gradient(900px 460px at 88% -12%, rgba(76, 100, 158, .17), transparent 68%),
    var(--bg);
}
body::before {
  background:
    radial-gradient(760px 420px at 4% 12%, rgba(73, 92, 143, .12), transparent 70%),
    radial-gradient(680px 420px at 100% 42%, rgba(216, 168, 59, .055), transparent 72%);
}
.topbar { background: rgba(23, 27, 39, .94); border-color: #303747; }
.logo__mark { filter: drop-shadow(0 0 12px rgba(242, 198, 95, .34)); }
.logo__text b { color: var(--gold); }
.mainnav a { position: relative; border-radius: 10px; }
.mainnav a:hover { background: rgba(255, 255, 255, .055); }
.mainnav a.active { color: #ffe3a2; background: rgba(217, 168, 59, .1); }
.mainnav a.active svg { color: var(--gold); }
.mainnav a.active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 3px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.balance { background: linear-gradient(135deg, #292f3e, #202532); border-color: #3a4253; }
.btn--accent {
  color: #211a0d;
  background: linear-gradient(135deg, #e6b54d, #ffd36d);
  box-shadow: 0 8px 24px -8px rgba(226, 174, 62, .55);
}
.btn--accent:hover:not(:disabled) { background: linear-gradient(135deg, #f0c462, #ffe08c); }
.btn--tonal { background: #2b3242; }
.btn--tonal:hover:not(:disabled) { background: #394357; }
.btn--ghost { border-color: #4a5365; }
.livefeed { background: #191d29; border-color: #303747; }
.livefeed__label { color: var(--gold); }
.livefeed__best { background: linear-gradient(90deg, rgba(217, 168, 59, .12), transparent); }
.feeditem {
  background: linear-gradient(180deg, rgba(105, 117, 145, .2), color-mix(in srgb, var(--rc) 22%, transparent));
}
.page { padding-top: 26px; }
.hero {
  min-height: 390px;
  border-color: rgba(225, 184, 91, .2);
  box-shadow: 0 24px 70px -50px rgba(0, 0, 0, .8);
}
.hero::after {
  background: linear-gradient(90deg, rgba(13, 16, 24, .96) 0%, rgba(13, 16, 24, .78) 38%, rgba(13, 16, 24, .12) 100%);
}
.hero h1 em { background-image: linear-gradient(90deg, #ffe19a, #e9b64b); }
.hero__kicker { color: var(--gold); }
.stat, .panel, .feature { border-color: #303747; background-color: rgba(26, 31, 44, .92); }
.section__title { letter-spacing: -.025em; }
.category__icon {
  color: #ffe4a3;
  background: linear-gradient(135deg, rgba(217, 168, 59, .22), rgba(90, 110, 156, .2));
}
.chip { background: rgba(91, 103, 128, .18); }
.chip.on { color: #ffe4a3; background: rgba(217, 168, 59, .16); }
.casecard {
  border-color: #303747;
  background: linear-gradient(150deg, rgba(255, 255, 255, .035), transparent 46%), #191d28;
}
.casecard:hover { box-shadow: 0 18px 42px -26px color-mix(in srgb, var(--a1) 76%, #d9a83b); }
.casecard__price {
  border-color: rgba(240, 196, 95, .16);
  background: linear-gradient(110deg, rgba(217, 168, 59, .11), rgba(0, 0, 0, .18));
}
.skin, .battle-catalog, .battle-room__players, .battle-room__cases {
  border-color: #303747;
  background-color: #191d28;
}
.skin__chance { color: #ffe4a3; background: rgba(12, 14, 20, .76); }
.input, select, textarea {
  color: var(--fg);
  border-color: #3a4355;
  background-color: #1c2230;
}
.input:focus, select:focus, textarea:focus {
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px rgba(217, 168, 59, .14);
}
.footer { border-color: #303747; background: rgba(17, 20, 28, .52); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .page { padding-top: 16px; }
  .hero { min-height: 320px; }
  .hero__content { padding: 24px 18px; }
  .cases { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .stats { gap: 8px; }
  .stat { padding: 12px; }
}

/* Home page structure and catalog controls */
.nav-more { position: relative; }
.nav-more > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary span { color: var(--gold); font-size: 16px; }
.nav-more > summary:hover, .nav-more[open] > summary { color: var(--fg); background: rgba(255,255,255,.055); }
.nav-more > summary.active { color: #ffe3a2; background: rgba(217,168,59,.1); }
.nav-more__menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #1b2030;
  box-shadow: 0 18px 42px rgba(0,0,0,.4);
}
.nav-more__menu a { padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 650; }
.nav-more__menu a:hover, .nav-more__menu a.active { color: var(--fg); background: rgba(217,168,59,.12); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .48fr);
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  min-height: 398px;
  padding: 30px clamp(24px, 4vw, 54px);
  border-radius: 20px;
  background-color: #121621;
  border-color: rgba(225,184,91,.18);
}
.hero__img { object-position: center 42%; }
.hero::after {
  background:
    linear-gradient(90deg, rgba(13,16,24,.94) 0%, rgba(13,16,24,.78) 44%, rgba(13,16,24,.4) 100%),
    linear-gradient(0deg, rgba(13,16,24,.45), transparent 58%);
}
.hero__content { max-width: 620px; padding: 0; }
.hero__kicker { gap: 9px; margin-bottom: 18px; letter-spacing: .12em; }
.hero__kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero h1 { max-width: 630px; font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -.045em; }
.hero h1 em { background-image: linear-gradient(90deg,#ffe4a0,#f1bd4f); }
.hero p { max-width: 470px; margin: 18px 0 27px; color: #d3d8e2; font-size: 15px; }
.hero__actions .btn { border-radius: 10px; }
.hero__side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(20,24,34,.76);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}
.hero__side-label { margin: 0 4px 3px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.hero__side a {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 11px;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255,255,255,.045);
  transition: background .2s, border-color .2s, transform .2s;
}
.hero__side a:hover { transform: translateX(3px); border-color: rgba(255,209,106,.2); background: rgba(255,255,255,.08); }
.hero__side a > span { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--gold); background: rgba(217,168,59,.12); font-size: 20px; font-weight: 800; }
.hero__side a b { font-size: 12px; }
.hero__side a small { grid-column: 2; color: var(--muted); font-size: 10px; }
.hero__side a i { grid-column: 3; grid-row: 1 / 3; color: var(--gold); font-size: 17px; font-style: normal; }
.home-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(26,31,44,.8);
}
.home-highlights > div { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; min-width: 0; padding: 14px 16px; }
.home-highlights > div + div { border-left: 1px solid var(--border); }
.home-highlights__icon { grid-row: 1 / 3; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(217,168,59,.18); border-radius: 9px; color: var(--gold); background: rgba(217,168,59,.08); font-size: 15px; }
.home-highlights b { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; font-family: var(--font); font-size: 14px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.home-highlights b .price { font-size: inherit; }
.home-highlights small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-eyebrow { display: block; margin-bottom: 5px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
#cases { scroll-margin-top: 150px; }
.section__head .section__title { font-size: clamp(22px, 2.5vw, 28px); }
.catalog-count { color: var(--muted); font-size: 12px; font-weight: 700; }
.catalog-toolbar { display: flex; align-items: center; gap: 10px; }
.catalog-search { display: flex; align-items: center; gap: 9px; width: min(100%, 390px); height: 42px; padding: 0 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); }
.catalog-search:focus-within { border-color: rgba(255,209,106,.65); box-shadow: 0 0 0 3px rgba(217,168,59,.1); }
.catalog-search > span { font-size: 22px; line-height: 1; }
.catalog-search .input { min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; font-size: 12px; }
.catalog-search kbd { flex: 0 0 auto; padding: 2px 6px; border: 1px solid var(--stroke); border-radius: 5px; color: var(--muted); font: 10px var(--font); }
.catalog-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.catalog-sort .input { width: 170px; height: 42px; padding: 0 10px; border-radius: 10px; font-size: 11px; }
.catalog-affordable { height: 42px; white-space: nowrap; }
.catalog-affordable.on { color: #ffe4a3; background: rgba(217,168,59,.14); }
.catalog-categories { display: flex; gap: 7px; margin: 14px 0 8px; padding: 2px 0 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--stroke) transparent; }
.catalog-categories .chip { flex: 0 0 auto; height: 32px; padding: 0 12px; border: 1px solid transparent; font-size: 11px; }
.catalog-categories .chip.on { border-color: rgba(255,209,106,.2); color: #ffe4a3; background: rgba(217,168,59,.13); }
.catalog-results .category { margin-top: 18px; }
.catalog-results .category__head { margin-bottom: 10px; }
.catalog-results .category__head h3 { font-size: 14px; }
.catalog-results .category__head > span { color: var(--muted); font-size: 10px; }
.catalog-results .cases { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 11px; }
.catalog-results .casecard { min-height: 260px; padding: 10px; border-radius: 14px; }
.catalog-results .casecard--character { min-height: 282px; }
.catalog-results .casecard__art { min-height: 142px; margin-bottom: 6px; }
.catalog-results .casecard__img { height: 134px; }
.catalog-results .casecard__portrait { height: 164px; }
.catalog-results .casecard__character { height: 158px; }
.catalog-results .casecard__price { min-height: 36px; margin-top: 8px; }
.catalog-results .empty { margin-top: 18px; }
.home-how { padding-top: 8px; }
.home-how .feature { position: relative; min-height: 175px; padding: 20px; border-radius: 14px; background: linear-gradient(145deg,rgba(217,168,59,.07),transparent 52%),var(--surface); }
.home-how .feature h3 { margin-top: 15px; }
.home-how .feature__link { margin-top: auto; color: var(--gold); font-size: 11px; font-weight: 800; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0,1fr) minmax(220px,.55fr); gap: 18px; padding: 25px; }
  .hero h1 { font-size: clamp(31px,5vw,46px); }
  .home-highlights > div { padding: 12px 10px; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 30px 20px 18px; }
  .hero__content { padding: 0; }
  .hero__side { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 9px; }
  .hero__side-label { grid-column: 1 / -1; margin: 0 3px 2px; }
  .hero__side a { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 4px; padding: 9px; }
  .hero__side a > span { grid-column: 1 / -1; grid-row: auto; width: 30px; height: 30px; font-size: 16px; }
  .hero__side a b { grid-column: 1 / -1; font-size: 10px; }
  .hero__side a small { grid-column: 1 / -1; font-size: 9px; line-height: 1.3; }
  .hero__side a i { display: none; }
  .home-highlights { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-highlights > div { padding: 11px; }
  .home-highlights > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .home-highlights > div:nth-child(4) { border-top: 1px solid var(--border); }
  .catalog-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .catalog-search { grid-column: 1 / -1; width: 100%; }
  .catalog-sort { margin-left: 0; }
  .catalog-sort .input { width: 145px; }
  .catalog-affordable { justify-self: end; padding: 0 10px; }
  .catalog-results .cases { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .catalog-results .casecard { min-height: 248px; }
  .catalog-results .casecard--character { min-height: 270px; }
  .catalog-results .casecard__art { min-height: 132px; }
  .catalog-results .casecard__portrait { height: 155px; }
  .home-how .features { grid-template-columns: 1fr; }
  .home-how .feature { min-height: 145px; }
}
@media (max-width: 420px) {
  .hero { padding: 25px 14px 14px; }
  .hero__kicker { font-size: 9px; }
  .hero h1 { font-size: 29px; }
  .hero p { font-size: 12px; }
  .hero__actions .btn { height: 42px; padding: 0 13px; font-size: 12px; }
  .hero__side { grid-template-columns: 1fr; }
  .hero__side a { grid-template-columns: 32px minmax(0,1fr) auto; grid-template-rows: auto auto; }
  .hero__side a > span { grid-column: 1; grid-row: 1 / 3; width: 30px; height: 30px; }
  .hero__side a b { grid-column: 2; }
  .hero__side a small { grid-column: 2; }
  .hero__side a i { display: block; }
  .catalog-toolbar { grid-template-columns: minmax(0,1fr); }
  .catalog-sort { justify-content: space-between; }
  .catalog-sort .input { flex: 1; }
  .catalog-affordable { justify-self: stretch; justify-content: center; }
  .catalog-results .casecard { padding: 8px; }
}

/* Live drops strip and live-updating footer metrics */
.livefeed {
  height: 100px;
  align-items: stretch;
  padding: 8px 0;
  background: #171b27;
  border-color: #303747;
}
.livefeed__label {
  flex: 0 0 132px;
  display: grid;
  grid-template-columns: 9px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 3px 8px;
  padding: 10px 16px;
  border-right: 1px solid var(--border);
  color: var(--gold);
  writing-mode: horizontal-tb;
  transform: none;
}
.livefeed__label .dot { grid-row: 1 / 3; width: 8px; height: 8px; }
.livefeed__label b { font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.livefeed__label small { grid-column: 2; color: var(--muted); font-size: 9px; letter-spacing: 0; white-space: nowrap; }
.livefeed__best { flex-basis: 276px; padding: 5px 10px; }
.livefeed__best .feeditem { flex-basis: 128px; height: 82px; }
.livefeed__track {
  gap: 7px;
  padding: 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}
.livefeed__track::-webkit-scrollbar { display: none; }
.livefeed__track .feeditem { flex-basis: 142px; height: 82px; scroll-snap-align: start; }
.livefeed__track .feeditem img { top: 5px; height: 52px; }
.livefeed__track .feeditem__skin { bottom: 7px; }
.footer__inner.footer__layout {
  grid-template-columns: minmax(265px, .7fr) minmax(0, 1.8fr);
  align-items: stretch;
  gap: 24px;
}
.footer__aside { display: grid; align-content: start; gap: 22px; min-width: 0; }
.footer__aside-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.footer__aside-links .footer__col { min-width: 0; font-size: 12px; }
.footer__aside-links .footer__col h4 { font-size: 10px; }
.footer-stats {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 270px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(133,143,183,.12);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 86% 44%, rgba(218,170,75,.16), transparent 34%),
    linear-gradient(128deg,#202437 0%,#1d2132 58%,#23263a 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 20px 50px rgba(0,0,0,.16);
}
.footer-stats__content { position: relative; z-index: 2; width: 100%; padding: 25px 26px; }
.footer-stats__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.footer-stats__head h2 { font-size: clamp(18px,2vw,24px); letter-spacing: -.03em; }
.footer-stats__updated { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: rgba(8,10,16,.22); color: #aab1c8; font-size: 9px; white-space: nowrap; }
.footer-stats__updated i { width: 6px; height: 6px; border-radius: 50%; background: #72df9b; box-shadow: 0 0 9px rgba(114,223,155,.7); }
.footer-stats__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 18px; width: min(100%,650px); }
.footer-stat { display: grid; grid-template-columns: 38px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; column-gap: 11px; min-width: 0; }
.footer-stat__icon { grid-row: 1 / 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #171a26; background: linear-gradient(145deg,#ffe098,#e7b64f); font-size: 18px; font-weight: 900; }
.footer-stat strong { overflow: hidden; color: #f7f6f2; font-family: var(--display); font-size: clamp(17px,2vw,24px); font-variant-numeric: tabular-nums; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.footer-stat small { color: #9da8c3; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.footer-stats__art-wrap { position: absolute; z-index: 1; right: 0; bottom: 0; width: 35%; height: 100%; pointer-events: none; }
.footer-stats__glow { position: absolute; right: 13%; bottom: 4%; width: 62%; height: 72%; border-radius: 50%; background: rgba(234,177,73,.23); filter: blur(35px); }
.footer-stats__art { position: absolute; right: 5%; bottom: -16%; width: 98%; height: 118%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 8px 22px rgba(0,0,0,.34)); }
@media (max-width: 900px) {
  .footer__inner.footer__layout { grid-template-columns: minmax(220px,.7fr) minmax(0,1.3fr); gap: 16px; }
  .footer-stats__content { padding: 21px 18px; }
  .footer-stats__art-wrap { width: 30%; opacity: .8; }
  .footer-stats__grid { width: 78%; gap: 15px 10px; }
}
@media (max-width: 760px) {
  .livefeed { height: 86px; padding: 6px 0; }
  .livefeed__label { flex-basis: 104px; padding: 8px 10px; gap: 3px 6px; }
  .livefeed__label small { font-size: 8px; }
  .livefeed__best { flex-basis: 206px; gap: 5px; padding: 4px 6px; }
  .livefeed__best-label { flex-basis: 32px; font-size: 7px; }
  .livefeed__best .feeditem { flex-basis: 92px; height: 72px; }
  .livefeed__best-price, .livefeed__best-price .price { font-size: 8px; }
  .livefeed__track { gap: 5px; padding: 0 6px; }
  .livefeed__track .feeditem { flex-basis: 118px; height: 72px; }
  .livefeed__track .feeditem img { height: 43px; }
  .footer__inner.footer__layout { grid-template-columns: 1fr; }
  .footer__aside { gap: 15px; }
  .footer__aside-links { grid-template-columns: 1fr 1fr; }
  .footer-stats { min-height: 275px; }
  .footer-stats__content { padding: 20px; }
  .footer-stats__grid { width: 82%; }
}
@media (max-width: 420px) {
  .livefeed__label { flex-basis: 84px; padding: 7px; }
  .livefeed__label b { font-size: 11px; }
  .livefeed__label small { font-size: 7px; }
  .livefeed__best { flex-basis: 174px; gap: 3px; padding: 3px; }
  .livefeed__best-label { flex-basis: 26px; font-size: 6px; line-height: 1.1; }
  .livefeed__best .feeditem { flex-basis: 76px; }
  .livefeed__best-price, .livefeed__best-price .price { font-size: 7px; }
  .livefeed__track .feeditem { flex-basis: 106px; }
  .footer__aside-links { grid-template-columns: 1fr; }
  .footer-stats { min-height: 305px; }
  .footer-stats__content { padding: 17px 14px; }
  .footer-stats__head { display: grid; gap: 10px; margin-bottom: 16px; }
  .footer-stats__grid { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 8px; }
  .footer-stat { grid-template-columns: 30px minmax(0,1fr); column-gap: 7px; }
  .footer-stat__icon { width: 28px; height: 28px; font-size: 14px; }
  .footer-stat strong { font-size: 14px; }
  .footer-stat small { font-size: 7px; }
  .footer-stats__art-wrap { width: 42%; opacity: .42; }
}
.hero__side a > span svg,
.home-highlights__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-stat__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partners-page { padding: 38px 0 56px; }
.partners-hero {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(140,102,255,.2);
  border-radius: 22px;
  background: radial-gradient(circle at 88% 0, rgba(140,102,255,.18), transparent 34%), linear-gradient(125deg, rgba(30,27,42,.95), rgba(22,22,27,.96));
}
.partners-hero h1 { font-size: clamp(26px, 4vw, 38px); }
.partners-hero p { max-width: 600px; margin: 0; color: var(--muted); }
.partners-hero__count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 7px 11px;
  border: 1px solid rgba(140,102,255,.25);
  border-radius: 999px;
  background: rgba(140,102,255,.1);
  color: #c3b1ff;
  font-size: 12px;
  font-weight: 800;
}
.partners-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.partner-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 60%), var(--surface);
  transition: border-color .2s, transform .2s, background .2s;
}
.partner-card:hover { transform: translateY(-2px); border-color: rgba(140,102,255,.4); background-color: var(--surface-2); }
.partner-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.partner-card__number { color: #707080; font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.partner-card__promo { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid rgba(90,237,144,.18); border-radius: 999px; background: rgba(90,237,144,.08); color: var(--success); font-size: 10px; font-weight: 800; white-space: nowrap; }
.partner-card__username { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.partner-card__username span, .partner-card__channel a span { color: var(--accent-hover); font-size: 14px; }
.partner-card__channel { display: grid; gap: 5px; min-width: 0; }
.partner-card__channel > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.partner-card__channel a { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #c6c3d2; font-size: 12px; overflow-wrap: anywhere; }
.partner-card__channel a:hover, .partner-card__username:hover { color: var(--accent-hover); }
.partner-card__button { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--fg); font-size: 12px; font-weight: 750; transition: background .2s, border-color .2s; }
.partner-card__button:hover { border-color: rgba(140,102,255,.35); background: rgba(140,102,255,.1); }
.partner-card__button span { color: var(--accent-hover); }
.partners-page__note { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .partners-page { padding: 22px 0 36px; }
  .partners-hero { gap: 10px; margin-bottom: 16px; border-radius: 17px; }
  .partners-grid { grid-template-columns: 1fr; gap: 10px; }
  .partner-card { gap: 12px; padding: 15px; }
}

/* Item wear, online presence and refreshed landing/profile surfaces */
:root {
  --bg: #0d1318;
  --surface: #121b22;
  --surface-2: #18242c;
  --surface-3: #1d2b33;
  --tonal: #26363e;
  --tonal-hover: #344951;
  --border: #2a3a42;
  --stroke: #42575f;
  --fg: #edf5f4;
  --muted: #9aabad;
  --price: #e5efed;
  --accent: #238a78;
  --accent-hover: #70dfc4;
}
body::before {
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(86, 208, 183, .11), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(255, 194, 89, .055), transparent 60%);
}
.topbar { background: rgba(13, 21, 27, .94); border-color: #293a40; }
.mainnav a.active { background: rgba(91, 217, 192, .12); }
.btn--accent { background: linear-gradient(120deg, #238a78, #2d9c88); box-shadow: 0 8px 24px -8px rgba(48, 191, 159, .48); }
.btn--accent:hover:not(:disabled) { background: linear-gradient(120deg, #2b9c88, #47b79f); }
.livefeed { background: #111b22; border-color: #293a40; }
.skin__meta > div:first-child { min-width: 0; display: grid; gap: 3px; }
.skin__wear { display: block; color: #b7c0d0; font-size: 9px; font-weight: 750; line-height: 1.3; }
.skin__wear small { color: #8792a4; font: inherit; font-variant-numeric: tabular-nums; }
.skin__wear--fn { color: #f0cb83; }
.skin__wear--mw { color: #bad8ff; }
.skin__wear--ft { color: #b8c5da; }
.skin__wear--ww { color: #e7a873; }
.skin__wear--bs { color: #eb858a; }
.livefeed__online { grid-column: 2; color: var(--success); font: 700 9px/1.2 Manrope, sans-serif; letter-spacing: 0; white-space: nowrap; }
.livefeed__label { grid-template-rows: auto auto auto; }
.livefeed__label .dot { grid-row: 1 / 4; }
.hero {
  border-color: rgba(99, 210, 192, .27);
  border-radius: 28px;
  box-shadow: 0 24px 70px -48px rgba(27, 215, 187, .5);
}
.hero::after {
  background:
    linear-gradient(90deg, rgba(8, 15, 23, .98) 0%, rgba(8, 15, 23, .88) 35%, rgba(8, 15, 23, .22) 76%),
    linear-gradient(0deg, rgba(7, 14, 20, .48), transparent 55%);
}
.hero__kicker { color: #83e7d3; }
.hero h1 em { background-image: linear-gradient(90deg, #93f0d7, #c0dc79); }
.hero__side a { border-color: rgba(130, 231, 211, .13); }
.hero__side a:hover { border-color: rgba(130, 231, 211, .42); }
.profile-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(145, 162, 193, .18);
  background:
    radial-gradient(ellipse at 2% 110%, rgba(89, 217, 192, .16), transparent 45%),
    linear-gradient(115deg, #202a35, #171d28 55%, #252333);
  box-shadow: 0 20px 55px -42px rgba(0, 0, 0, .8);
}
.profile-service-nav--single { grid-template-columns: minmax(0, 1fr); }
.profile-hero::after {
  position: absolute;
  content: "";
  width: 220px;
  height: 220px;
  right: 12%;
  top: -165px;
  border: 1px solid rgba(146, 229, 207, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(146, 229, 207, .025), 0 0 0 48px rgba(146, 229, 207, .02);
  pointer-events: none;
}
.profile-avatar { position: relative; z-index: 1; border-radius: 25px; }
.profile-stat { border-color: rgba(145, 162, 193, .14); background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 58%), #191f2a; }
.profile-stat--green .profile-stat__label { color: #86e1b4; }
.partner-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(90, 237, 144, .17);
  border-radius: 20px;
  background: radial-gradient(ellipse at 0 100%, rgba(90, 237, 144, .11), transparent 45%), var(--surface);
}
.partner-page-heading h1 { font-size: clamp(22px, 3vw, 30px); }
.partner-page-heading p { margin: 7px 0 0; font-size: 13px; }
.drop-celebration {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  overflow: hidden;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 206, 115, .26), transparent 34%),
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, .16) 0 2px, transparent 3px),
    radial-gradient(circle at 83% 30%, rgba(131, 231, 211, .22) 0 3px, transparent 4px),
    rgba(10, 12, 18, .86);
  backdrop-filter: blur(7px);
  text-align: center;
  animation: drop-celebration-in .45s cubic-bezier(.15,.8,.25,1.2) both;
}
.drop-celebration__eyebrow { color: #ffda91; font: 900 11px/1.2 var(--display); letter-spacing: .18em; }
.drop-celebration__image { width: min(230px, 55%); height: min(142px, 34%); object-fit: contain; filter: drop-shadow(0 10px 24px rgba(255, 195, 91, .42)); animation: drop-celebration-float 1.8s ease-in-out infinite alternate; }
.drop-celebration > b { color: #fff3d4; font-size: clamp(14px, 2vw, 20px); }
.drop-celebration > span:last-child { color: #f4c66d; font-size: 12px; }
@keyframes drop-celebration-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes drop-celebration-float { to { transform: translateY(-7px) scale(1.04); } }
@media (max-width: 760px) {
  .livefeed__online { font-size: 8px; }
  .partner-page-heading { align-items: flex-start; padding: 16px; }
  .partner-page-heading .btn { flex: 0 0 auto; padding: 0 11px; font-size: 11px; }
  .profile-hero::after { right: -120px; }
}
@media (prefers-reduced-motion: reduce) {
  .drop-celebration, .drop-celebration__image { animation: none; }
}
