/* UCO website (CS:GO 1.38) - own stylesheet (Panorama-like look, written from scratch). Author: mln&Clody */

@font-face { font-family: "Rajdhani"; src: url("../fonts/Rajdhani-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/Rajdhani-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/Rajdhani-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --z: 1;                          /* page zoom on big screens (see the end of this file) */
  --vh: calc(1vh / var(--z));      /* 1vh that stays right while the page is zoomed */
  --side-w: 98px;
  --rail-w: 92px;
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .22);
  --text: #fff;
  --muted: rgba(235, 240, 245, .66);
  --t: #e2b552;
  --ct: #8fb3e3;
  --panel: rgba(20, 22, 26, .30);
  --menu: rgba(22, 25, 29, .97);
  --tile-bg: radial-gradient(130% 110% at 50% 18%, #8a8f95 0%, #686d73 48%, #4d5157 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  background: #1d2025;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr) var(--rail-w);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; }
.muted { color: var(--muted); }
.pad { padding: 10px 0; }
.ico { width: 24px; height: 24px; flex: none; }
.ico-s { width: 18px; height: 18px; }
[hidden] { display: none !important; }

/* ---------- background: map picture from the game ---------- */
.bg {
  position: fixed; inset: -40px; z-index: -2;
  background-size: cover; background-position: center;
  filter: blur(2px) saturate(1.06);
  transform: scale(1.02);
}
.bg-tint {
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, .55) 0%, rgba(8, 10, 14, .18) 38%, rgba(8, 10, 14, .05) 62%, rgba(8, 10, 14, .35) 100%),
    linear-gradient(0deg, rgba(8, 10, 14, .45) 0%, rgba(8, 10, 14, 0) 35%);
}
.v-inventory .bg, .v-loadout .bg, .v-soon .bg, .v-crosshair .bg, .v-cases .bg, .v-case .bg, .v-market .bg { filter: blur(26px) saturate(1.1) brightness(.92); transform: scale(1.08); }
.v-inventory .bg-tint, .v-loadout .bg-tint, .v-soon .bg-tint, .v-crosshair .bg-tint, .v-cases .bg-tint, .v-case .bg-tint, .v-market .bg-tint {
  background: linear-gradient(180deg, rgba(40, 46, 54, .25) 0%, rgba(14, 16, 20, .35) 100%);
}

/* ---------- left sidebar ---------- */
.side {
  position: relative; z-index: 20;
  display: flex; flex-direction: column; align-items: stretch;
  background: linear-gradient(180deg, rgba(28, 32, 38, .62), rgba(24, 27, 32, .42));
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
}
.brand {
  height: 98px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-bottom: 1px solid var(--line);
}
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); transition: transform .3s var(--ease); }
.brand:hover img { transform: scale(1.08); }
.brand-text { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .9; white-space: nowrap; }
.brand:hover .brand-text { opacity: 1; }
.side-play {
  width: 62px; height: 62px; margin: 22px auto 22px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff 0%, #eef2f6 60%, #d5dde5 100%);
  color: #262b31; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 0 0 0 rgba(255, 255, 255, .4);
  transition: transform .2s var(--ease), box-shadow .3s;
}
.side-play .ico { width: 32px; height: 32px; margin-left: 4px; }
.side-play:hover { transform: scale(1.07); box-shadow: 0 4px 18px rgba(0, 0, 0, .4), 0 0 0 6px rgba(255, 255, 255, .14); }
.side-sep { height: 1px; background: var(--line); margin: 0 0 8px; }
.side-btn {
  position: relative; height: 96px; display: grid; place-items: center;
  color: #fff; opacity: .86; transition: opacity .15s, background .2s;
}
.side-btn .ico { width: 40px; height: 40px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: transform .2s var(--ease); }
.side-btn:hover { opacity: 1; background: radial-gradient(60% 60% at 50% 50%, rgba(255, 255, 255, .10), transparent); }
.side-btn:hover .ico { transform: scale(1.08); }
.side-btn.is-active { opacity: 1; }
.side-btn.is-active::before {
  content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px; background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .6);
}
.side-fill { flex: 1; }

/* ---------- right rail ---------- */
.rail {
  position: relative; z-index: 20;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, rgba(16, 19, 23, .62), rgba(16, 19, 23, .42));
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255, 255, 255, .07);
}
.rail-me {
  width: 64px; height: 64px; margin: 16px 0 18px; border-radius: 2px; overflow: hidden; flex: none;
  display: grid; place-items: center; background: #2a3038; color: #fff; font-size: 28px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .28); transition: box-shadow .2s, transform .2s var(--ease);
}
.rail-me:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, .5), 0 0 0 1px #fff; }
.rail-me img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rail-me .ico { width: 38px; height: 38px; }
.rail-guest { background: linear-gradient(180deg, #23272d, #15181c); }

/* ---------- tooltips ---------- */
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; z-index: 60; left: calc(100% + 6px); top: 50%; transform: translateY(-50%);
  background: rgba(14, 16, 19, .95); color: #e9edf1; font-size: 17px; font-weight: 500; letter-spacing: .02em;
  padding: 9px 16px; border-radius: 3px; white-space: nowrap; pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); animation: tipIn .15s var(--ease);
}
[data-tip][data-tip-side="left"]:hover::after { left: auto; right: calc(100% + 6px); }
.bar-link[data-tip]:hover::after { left: 50%; top: calc(100% + 8px); transform: translateX(-50%); }
@keyframes tipIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- popovers ---------- */
.pop {
  position: fixed; z-index: 70; top: 18px; right: calc(var(--rail-w) + 12px); width: 320px;
  background: var(--menu); border: 1px solid var(--line); border-radius: 3px; padding: 18px 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55); animation: popIn .18s var(--ease);
}
.pop h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.pop p { margin: 0 0 10px; font-size: 16px; line-height: 1.35; color: #d6dce2; }
.pop-profile { top: 18px; }
.pop-user { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.pop-user img { width: 48px; height: 48px; border-radius: 2px; }
.pop-user strong { display: block; font-size: 19px; }
.pop-user .muted { font-size: 14px; }
.pop-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 4px; font-size: 17px; color: #e6ebf0; text-align: left; }
.pop-link .ico { width: 20px; height: 20px; opacity: .8; }
.pop-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.pop form { margin: 0; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- main area ---------- */
.main { position: relative; min-width: 0; height: calc(100 * var(--vh)); overflow: hidden; display: flex; flex-direction: column; }
.top-head {
  flex: none; height: 96px; display: flex; align-items: center; gap: 18px; padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
}
.top-head h1 {
  margin: 0; font-size: 36px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.bar-fill { flex: 1; }
.panel {
  background: var(--panel);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 22px;
  font-size: 17px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; border-radius: 2px;
  transition: filter .15s, transform .15s var(--ease), background .2s; white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn-green { background: linear-gradient(180deg, #62b14d, #3f8230); box-shadow: 0 3px 10px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-steam { background: linear-gradient(135deg, #3a6587, #1d2f45); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.btn-ghost { background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* dropdowns */
.dd { position: relative; }
.dd-btn { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .08em; }
.dd-wide {
  width: 340px; height: 54px; padding: 0 16px; justify-content: space-between;
  background: rgba(0, 0, 0, .26); font-size: 20px; font-weight: 600; transition: background .15s;
}
.dd-wide:hover { background: rgba(0, 0, 0, .34); }
.dd-flat { font-size: 20px; font-weight: 600; height: 40px; }
.dd-btn .ico { transition: transform .2s; }
.dd.is-open .dd-btn .ico { transform: rotate(180deg); }
.dd-menu {
  display: none; position: absolute; z-index: 40; top: calc(100% + 2px); left: 0; min-width: 100%;
  margin: 0; padding: 10px 0; list-style: none; background: var(--menu);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .06);
}
.dd-right .dd-menu { left: auto; right: 0; min-width: 220px; }
.dd.is-open .dd-menu { display: block; animation: popIn .15s var(--ease); }
.dd-menu li { padding: 10px 26px; font-size: 19px; color: #d3d9df; cursor: pointer; white-space: nowrap; }
.dd-menu li:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.dd-menu li.is-active { color: #fff; font-weight: 700; }

/* ---------- inventory ---------- */
.inv { display: flex; flex-direction: column; height: 100%; }
.inv-bar {
  flex: none; height: 68px; display: flex; align-items: center; gap: 30px; padding: 0 26px;
  background: rgba(255, 255, 255, .055); border-bottom: 1px solid var(--line);
}
.bar-link { font-size: 20px; font-weight: 600; letter-spacing: .05em; opacity: .92; display: inline-flex; align-items: center; gap: 8px; transition: opacity .15s; }
.bar-link:hover { opacity: 1; text-shadow: 0 0 12px rgba(255, 255, 255, .45); }
.bar-link.is-off { opacity: .45; cursor: default; }
.bar-sep { width: 1px; height: 34px; background: var(--line-strong); }
.search { display: flex; align-items: center; gap: 10px; }
.search .ico { width: 26px; height: 26px; }
.search input {
  width: 230px; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: 20px; font-weight: 600; letter-spacing: .03em;
}
.search input::placeholder { color: #fff; opacity: .92; }
.search input:focus::placeholder { opacity: .4; }
.inv-sub { flex: none; height: 66px; display: flex; align-items: center; gap: 20px; padding: 0 40px; }
.signin-hint {
  display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: .04em;
  padding: 6px 14px; border-radius: 2px; background: rgba(58, 101, 135, .55); border: 1px solid rgba(143, 179, 227, .35);
}
.signin-hint:hover { background: rgba(58, 101, 135, .75); }
.grid-wrap { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 40px 40px 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 30px 26px; }
.empty { color: var(--muted); font-size: 19px; padding: 30px 0; }

/* item tile */
.tile { cursor: pointer; min-width: 0; animation: tileIn .35s var(--ease) both; }
.tile-pic {
  position: relative; aspect-ratio: 174 / 127; background: var(--tile-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .05);
  overflow: hidden; transition: box-shadow .2s, filter .2s;
}
.tile-pic::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--rc, #cfd3d8); z-index: 2; }
.tile-pic::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(-100%); transition: transform .6s var(--ease);
}
.tile-pic img {
  position: absolute; left: 50%; top: 50%; width: 94%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, .45)); transition: transform .25s var(--ease);
}
.tile:hover .tile-pic { filter: brightness(1.12); box-shadow: 0 8px 22px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.tile:hover .tile-pic::after { transform: translateX(100%); }
.tile:hover .tile-pic img { transform: translate(-50%, -50%) scale(1.06); }
.tile.is-sel .tile-pic { box-shadow: 0 0 0 2px #fff, 0 8px 22px rgba(0, 0, 0, .38); }
.tile-name { margin-top: 9px; font-size: 16.5px; font-weight: 700; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.tile-skin { font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-st { color: #cf6a32; }
.dots { position: absolute; z-index: 4; top: 7px; right: 7px; display: flex; gap: 5px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c); background: radial-gradient(circle, var(--c) 0 34%, rgba(0, 0, 0, .25) 38%); box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.dot-t { --c: var(--t); }
.dot-ct { --c: var(--ct); }
.dot-none { --c: #e8ecf0; }
.tag-alt { position: absolute; z-index: 4; left: 12px; bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: rgba(255, 255, 255, .8); text-transform: uppercase; }
@keyframes tileIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* context menu */
.ctx {
  position: fixed; z-index: 80; min-width: 250px; background: var(--menu); border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .55); padding: 8px 0; animation: popIn .14s var(--ease);
}
.ctx-head { padding: 6px 18px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.ctx-head strong { display: block; font-size: 18px; letter-spacing: .04em; }
.ctx-head span { font-size: 14px; color: var(--muted); }
.ctx button, .ctx a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 18px; font-size: 18px; text-align: left; color: #dfe5ea; }
.ctx button:hover:not([disabled]), .ctx a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.ctx button[disabled] { opacity: .45; cursor: default; }
.ctx .dot { flex: none; }

/* ---------- loadout ---------- */
.lo { display: flex; flex-direction: column; height: 100%; }
.lo-bar { flex: none; height: 68px; display: flex; align-items: center; gap: 22px; padding: 0 30px; border-bottom: 1px solid var(--line); }
.lo-bar .back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 2px; transition: background .15s; }
.lo-bar .back:hover { background: rgba(255, 255, 255, .1); }
.lo-bar .back .ico { width: 30px; height: 30px; }
.lo-bar h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lo-tabs {
  flex: none; height: 66px; display: flex; align-items: stretch; gap: 6px; padding: 0 22px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .035);
}
.lo-tabs > a {
  position: relative; display: flex; align-items: center; padding: 0 16px; font-size: 20px; font-weight: 600; letter-spacing: .05em; opacity: .88;
}
.lo-tabs > a:hover { opacity: 1; }
.lo-tabs > a.is-active { opacity: 1; }
.lo-tabs > a.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 4px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .5); }
.lo-tabs .signin-hint { align-self: center; }
.lo-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(420px, 47%) minmax(0, 1fr); }
.lo-left { position: relative; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); min-height: 0; overflow: hidden; }
.lo-right { min-width: 0; display: flex; flex-direction: column; padding: 0 40px; overflow: hidden; }
.lo-right-head { flex: none; height: 66px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.lo-slot-title { font-size: 20px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #e6ebf0; }
.grid-slot { padding: 30px 0 30px; overflow-y: auto; grid-template-columns: repeat(auto-fill, minmax(168px, 176px)); align-content: start; }

.team-toggle { position: absolute; z-index: 5; top: 16px; right: 28px; display: flex; gap: 22px; }
.team-toggle button { display: flex; align-items: center; gap: 10px; opacity: .7; transition: opacity .15s; }
.team-toggle button:hover, .team-toggle button.is-active { opacity: 1; }
.radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; }
.team-toggle .is-active .radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.team-toggle .team-emblem { width: 46px; height: 46px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }

.wheel-wrap { position: relative; width: min(88%, calc(100 * var(--vh) - 320px)); aspect-ratio: 1; margin-top: 46px; }
.wheel-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seg { cursor: pointer; transition: opacity .2s; outline: none; }
.seg:focus, .seg:focus-visible { outline: none; }
.seg:focus-visible .seg-fill { stroke: #fff; stroke-width: 4; }   /* keyboard: outline in the shape of the slice, never a box */
.seg-fill { fill: url(#segDark); stroke: rgba(255, 255, 255, .28); stroke-width: 2; transition: fill .2s; }
.seg:hover .seg-fill { fill: url(#segHover); }
.seg.is-sel .seg-fill { fill: url(#segSel); }
.seg.is-empty { cursor: default; }
.seg.is-empty .seg-fill { fill: url(#segEmpty); }
.hub { fill: #0d1013; stroke: rgba(255, 255, 255, .25); stroke-width: 3; cursor: pointer; outline: none; transition: stroke .2s, fill .2s; }
.hub:hover, .hub:focus-visible { fill: #1a1f24; stroke: rgba(255, 255, 255, .7); }
.wheel-wrap { -webkit-user-select: none; user-select: none; }
.wheel-hub { transition: transform .2s var(--ease); }
.wheel-wrap:has(.hub:hover) .wheel-hub { transform: translate(-50%, -50%) scale(1.06); }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.wheel-hub svg { width: 100%; height: 100%; }
.wheel-item {
  position: absolute; width: 27%; transform: translate(-50%, -50%); text-align: center; pointer-events: none;
  transition: transform .25s var(--ease);
}
.wheel-item img { width: 100%; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .55)); }
.wheel-item .wl { font-size: clamp(13px, 1.25vw, 19px); font-weight: 700; letter-spacing: .07em; text-shadow: 0 2px 4px rgba(0, 0, 0, .6); margin-bottom: 4px; white-space: nowrap; }
.wheel-item .ws { font-size: clamp(11px, 1vw, 15px); color: var(--muted); }
.wheel-item.is-sel { transform: translate(-50%, -50%) scale(1.05); }
.wheel-item.is-sel .wl { color: #fff; }
.wheel-wrap.is-single { display: flex; align-items: center; justify-content: center; }
.single { width: min(78%, 560px); text-align: center; cursor: default; }
.single .tile { cursor: default; }
.single .tile-pic { aspect-ratio: 4 / 3; }
.single .tile-name { font-size: 26px; margin-top: 16px; }
.single .tile-skin { font-size: 18px; }

/* ---------- home ---------- */
.home {
  height: 100%; display: grid; grid-template-columns: minmax(520px, 760px) minmax(0, 1fr); gap: 34px; padding: 22px 34px 22px;
}
.home-col { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: .05em; margin-bottom: 14px; }
.panel-title .ico { width: 22px; height: 22px; }
.news { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 24px 8px; }
.news-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 6px 0 16px; }
.news-thumb { position: relative; width: 200px; height: 112px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-row:hover .news-thumb img { transform: scale(1.06); }
.news-date { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: #e9edf1; margin-top: 4px; }
.news-body h3 { margin: 4px 0 6px; font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.news-body p { margin: 0; font-size: 16px; line-height: 1.3; color: #dfe4ea; letter-spacing: .02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.live { flex: none; }
.live-title { font-size: 18px; font-weight: 600; letter-spacing: .05em; padding: 12px 18px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.live-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.live-map { width: 104px; height: 58px; object-fit: cover; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: #7d858d; flex: none; }
.live-dot.on { background: #52d96d; box-shadow: 0 0 0 3px rgba(82, 217, 109, .25), 0 0 12px #52d96d; animation: pulse 2s infinite; }
.live-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.live-info strong { font-size: 19px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-info .muted { display: flex; align-items: center; gap: 6px; font-size: 16px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(82, 217, 109, 0), 0 0 12px #52d96d; } }
.shelf { flex: none; padding: 0 18px 16px; }
.shelf-tabs { display: flex; gap: 26px; height: 50px; align-items: stretch; margin-bottom: 14px; }
.shelf-tabs button { position: relative; font-size: 18px; font-weight: 600; letter-spacing: .04em; opacity: .75; }
.shelf-tabs button.is-active { opacity: 1; }
.shelf-tabs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 3px; background: #fff; }
.shelf-pane { display: none; }
.shelf-pane.is-active { display: block; animation: popIn .2s var(--ease); }
.shelf-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.shelf-card { position: relative; display: block; background: var(--tile-bg); aspect-ratio: 1 / .82; overflow: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, .28); transition: filter .2s, transform .2s var(--ease); }
.shelf-card:hover { filter: brightness(1.12); transform: translateY(-2px); }
.shelf-card img { position: absolute; left: 50%; top: 46%; width: 92%; transform: translate(-50%, -50%); filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .45)); }
.shelf-team { position: absolute; z-index: 2; top: 5px; left: 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; padding: 1px 6px; border-radius: 2px; background: rgba(0, 0, 0, .35); }
.shelf-team.team-t { color: var(--t); }
.shelf-team.team-ct { color: var(--ct); }
.shelf-name { position: absolute; left: 6px; right: 6px; bottom: 5px; font-size: 14px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.shelf-soon { display: flex; align-items: center; gap: 12px; font-size: 17px; color: #dfe4ea; padding: 22px 6px; }

.showcase { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 30px; }
.show-item {
  position: absolute; left: 0; right: 0; top: 10%; margin: 0; display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateX(40px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none;
}
.showcase[data-team="t"] .show-t, .showcase[data-team="ct"] .show-ct { opacity: 1; transform: none; }
.show-item img {
  position: relative; z-index: 2; width: min(92%, 820px); filter: drop-shadow(0 34px 30px rgba(0, 0, 0, .55));
  animation: float 7s ease-in-out infinite;
}
.show-glow {
  position: absolute; z-index: 1; top: 8%; left: 50%; width: 76%; aspect-ratio: 2.2; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 238, 210, .42), rgba(255, 238, 210, 0)); filter: blur(10px);
}
.show-item figcaption { margin-top: 18px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.show-name { font-size: 46px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 3px 14px rgba(0, 0, 0, .55); }
.show-skin { font-size: 22px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #f1d9a0; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.show-sub { font-size: 16px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #eef2f5; opacity: .85; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.show-switch { position: relative; z-index: 3; display: flex; gap: 16px; margin-bottom: 18px; }
.show-switch button { width: 58px; height: 58px; border-radius: 50%; opacity: .55; transition: opacity .2s, transform .2s var(--ease); }
.show-switch button:hover { opacity: .85; }
.show-switch button.is-active { opacity: 1; transform: scale(1.08); }
.show-switch svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.show-cta { position: relative; z-index: 3; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-12px) rotate(.4deg); } }

/* ---------- coming soon ---------- */
.soon { display: flex; flex-direction: column; height: 100%; }
.soon-card { margin: 60px auto; width: min(560px, 90%); padding: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.soon-icon .ico { width: 64px; height: 64px; opacity: .9; }
.soon-card p { font-size: 20px; line-height: 1.35; margin: 0 0 8px; color: #e4e9ee; }

/* toast */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 30px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(16, 19, 23, .96); border: 1px solid var(--line); border-left: 4px solid #52d96d; padding: 12px 22px;
  font-size: 18px; font-weight: 600; letter-spacing: .03em; box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  transition: opacity .25s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.is-err { border-left-color: #e0503c; }
.toast a { text-decoration: underline; }

/* ---------- loadout: stickers / pins ---------- */
.single-info { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.info-count { font-size: 96px; font-weight: 700; line-height: 1; text-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.info-label { font-size: 26px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.single-info p { max-width: 380px; font-size: 18px; }
.tile.is-none .tile-pic { background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tile.is-none .tile-pic::before { display: none; }
.none-mark { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 3px dashed rgba(255, 255, 255, .28); border-radius: 50%; }
.tile.is-none .tile-name { color: var(--muted); }
.single-off { margin-top: 18px; }

/* ---------- crosshair maker ---------- */
.xh { display: flex; flex-direction: column; height: 100%; }
.xh-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(400px, 1fr); }
.xh-left { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 26px 30px 16px 40px; border-right: 1px solid var(--line); }
.xh-preview { position: relative; flex: 1; min-height: 260px; border-radius: 3px; overflow: hidden; background: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.xh-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.xh-pv-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; }
.xh-seg { display: inline-flex; background: rgba(12, 14, 17, .72); border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; }
.xh-seg button { padding: 5px 14px; font-weight: 700; font-size: 16px; opacity: .7; }
.xh-seg button:hover { opacity: 1; }
.xh-seg button.is-active { background: rgba(255, 255, 255, .9); color: #1b1e22; opacity: 1; }
.xh-res { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  background: rgba(12, 14, 17, .72); border: 1px solid var(--line-strong); border-radius: 3px; padding: 3px 4px 3px 12px; }
.xh select { font: inherit; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-strong);
  border-radius: 2px; padding: 4px 8px; }
.xh select option { background: #23272c; }
.xh-bgs { flex: none; display: flex; gap: 10px; flex-wrap: wrap; }
.xh-bgs button { width: 76px; height: 43px; border-radius: 2px; background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); opacity: .75; transition: opacity .15s, transform .15s var(--ease); }
.xh-bgs button:hover { opacity: 1; transform: translateY(-1px); }
.xh-bgs button.is-active { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.xh-note { margin: 0; font-size: 15px; color: var(--muted); }
.xh-right { min-width: 0; overflow-y: auto; padding: 14px 40px 26px 30px; }
.xh-group { margin: 18px 0 4px; font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.xh-row { display: flex; align-items: center; gap: 16px; min-height: 50px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.xh-row > label, .xh-lab { flex: 0 0 170px; font-size: 18px; font-weight: 600; }
.xh-tip { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.xh-ctl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.xh-ctl select { min-width: 220px; font-size: 17px; }
.xh-row.is-off { opacity: .4; pointer-events: none; }
.xh-desc { margin: 6px 0 0; font-size: 15px; color: var(--muted); min-height: 2.6em; }
.xh input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 80px; height: 22px; background: transparent; cursor: pointer; }
.xh input[type=range]::-webkit-slider-runnable-track { height: 3px; background: rgba(255, 255, 255, .28); border-radius: 2px; }
.xh input[type=range]::-moz-range-track { height: 3px; background: rgba(255, 255, 255, .28); border-radius: 2px; }
.xh input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 20px; margin-top: -8.5px; background: #fff;
  border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.xh input[type=range]::-moz-range-thumb { width: 12px; height: 20px; background: #fff; border: 0; border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.xh input[type=range]:focus-visible { outline: 1px dashed rgba(255, 255, 255, .5); outline-offset: 2px; }
.xh-num { width: 74px; font: inherit; font-weight: 700; font-size: 17px; color: #fff; text-align: center; background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 4px 4px; }
.xh-sw { position: relative; width: 52px; height: 26px; border-radius: 13px; background: rgba(0, 0, 0, .4); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .2s; }
.xh-sw span { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #aeb4ba; transition: transform .2s var(--ease), background .2s; }
.xh-sw.is-on { background: #4c9a3a; }
.xh-sw.is-on span { transform: translateX(26px); background: #fff; }
.xh-colors { gap: 8px; }
.xh-colors button { width: 34px; height: 34px; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); opacity: .8; }
.xh-colors button:hover { opacity: 1; }
.xh-colors button.is-active { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.xh-colors .xh-custom { width: auto; padding: 0 10px; font-weight: 700; font-size: 14px; letter-spacing: .06em;
  background: linear-gradient(90deg, #fa3232, #fafa32, #32fa32, #32fafa, #3232fa); color: #111; }
.xh-code { flex: none; padding: 14px 40px 20px; border-top: 1px solid var(--line); background: rgba(10, 12, 15, .38); }
.xh-code-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; font-size: 16px; }
.xh-code-head strong { font-size: 17px; letter-spacing: .12em; text-transform: uppercase; }
.xh-code-head b { color: #fff; }
.xh-line-row { display: flex; gap: 10px; }
.xh-line-row + .xh-line-row { margin-top: 8px; }
.xh-line-row input { flex: 1; min-width: 0; font: 15px/1.2 Consolas, "Cascadia Mono", monospace; color: #e8f3e2; background: rgba(0, 0, 0, .5);
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 10px 12px; }
.xh-import input { color: #d6dbe0; }
.xh-small { height: 34px; padding: 0 14px; font-size: 15px; }
@media (max-width: 1000px) {
  .xh-body { grid-template-columns: 1fr; overflow-y: auto; }
  .xh-left { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .xh-preview { min-height: 340px; }
  .xh-right { overflow: visible; padding: 10px 20px 20px; }
  .xh-code { padding: 12px 20px 16px; }
  .xh-code-head { flex-wrap: wrap; }
}

/* ---------- home: profile card (signed in) ---------- */
.showcase.is-profile { justify-content: center; gap: 26px; padding: 30px 40px 30px; overflow-y: auto; }
.prof-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.prof-avatar { width: 184px; height: 184px; border-radius: 3px; overflow: hidden; background: #2a3038; display: grid; place-items: center;
  font-size: 80px; font-weight: 700; box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 0 2px rgba(255, 255, 255, .35); animation: tileIn .45s var(--ease) both; }
.prof-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-name { margin: 18px 0 2px; font-size: 40px; font-weight: 700; letter-spacing: .06em; text-shadow: 0 3px 14px rgba(0, 0, 0, .6); }
.prof-state { font-size: 17px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.prof-state.st-on { color: #57cbde; }
.prof-state.st-game { color: #90ba3c; }
.prof-state.st-off { color: #d3d8dd; }
/* BaseChat rank from his SM flags (owner 2026-12-05), colours = the game's chat colours */
.prof-rank { font-size: 20px; font-weight: 700; letter-spacing: .08em; color: var(--rk, #40fe40);
  text-shadow: 0 0 1px rgba(0, 0, 0, .9), 0 2px 6px rgba(0, 0, 0, .75); }
.prof-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 16px 0 0; max-width: 860px; }
.prof-info div { background: rgba(12, 14, 17, .55); border: 1px solid rgba(255, 255, 255, .12); border-radius: 2px; padding: 6px 12px; backdrop-filter: blur(6px); }
.prof-info dt { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prof-info dd { margin: 0; font-size: 17px; font-weight: 600; user-select: all; }
.prof-games { width: min(100%, 940px); display: flex; flex-direction: column; gap: 10px; }
.game-row { display: grid; grid-template-columns: minmax(140px, 32%) minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 8px 20px 8px 8px;
  background: rgba(8, 9, 11, .78); border-radius: 2px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: background .2s, transform .2s var(--ease); }
.game-row:hover { background: rgba(20, 23, 27, .88); transform: translateY(-1px); }
.game-row img { width: 100%; max-width: 260px; aspect-ratio: 460 / 215; object-fit: cover; object-position: center 80%; border-radius: 1px; display: block; }
.game-name { font-size: 21px; font-weight: 600; line-height: 1.15; color: #e8ecef; overflow-wrap: anywhere; }
.game-hours { text-align: right; display: flex; flex-direction: column; gap: 2px; color: #8f98a0; font-size: 17px; white-space: nowrap; }
.game-hours b { font-weight: 600; color: #b8c0c7; }
@media (max-width: 1280px) {
  .game-row { gap: 14px; padding-right: 14px; }
  .game-name { font-size: 18px; }
  .game-hours { font-size: 15px; }
}

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .28) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- smaller screens ---------- */
@media (max-width: 1280px) {
  .home { grid-template-columns: minmax(460px, 1fr) minmax(0, .9fr); }
  .show-name { font-size: 34px; }
  .shelf-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lo-tabs > a { font-size: 18px; padding: 0 10px; }
}
@media (max-width: 1000px) {
  :root { --side-w: 76px; --rail-w: 70px; }
  .brand-text { display: none; }
  .side-play { width: 52px; height: 52px; }
  .side-btn { height: 80px; }
  .side-btn .ico { width: 32px; height: 32px; }
  .rail-me { width: 52px; height: 52px; }
  .home { grid-template-columns: 1fr; overflow-y: auto; }
  .home-col { min-height: auto; }
  .news { max-height: 420px; }
  .showcase { min-height: 520px; }
  .inv-bar { flex-wrap: wrap; height: auto; padding: 10px 18px; gap: 14px 22px; }
  .dd-wide { width: 260px; }
  .lo-body { grid-template-columns: 1fr; overflow-y: auto; }
  .lo-left { min-height: 560px; border-right: 0; border-bottom: 1px solid var(--line); }
  .wheel-wrap { width: min(92%, 560px); }
  .lo-tabs { overflow-x: auto; }
}

/* ---------- economy: wallet, cases, market, modals (0.3.0) ---------- */
.side-btn.is-off { opacity: .32; filter: grayscale(1); }
.side-btn.is-off:hover { opacity: .5; }
.wallet {
  position: fixed; z-index: 25; top: 100px; right: 0; width: var(--rail-w); text-align: center;
  font-size: 15px; font-weight: 700; letter-spacing: .02em; color: #9fe08d; padding: 6px 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wallet:hover { color: #c4f5b6; }
.mode-note { font-size: 17px; color: #e7d9a8; }
.mode-note a { text-decoration: underline; }
.bar-link.is-active-link { opacity: 1; text-shadow: 0 0 12px rgba(255, 255, 255, .45); border-bottom: 3px solid #fff; padding-bottom: 2px; }
.soon-card.is-grey .soon-icon { filter: grayscale(1); opacity: .6; }
.btn-red { background: linear-gradient(180deg, #c8493a, #8e2a20); box-shadow: 0 3px 10px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn[disabled] { opacity: .45; cursor: default; filter: none; transform: none; }
.ctx .ctx-danger { color: #f08a7c; }
.center { text-align: center; }

/* tiles: listed / price */
.tag-listed { position: absolute; z-index: 4; left: 12px; top: 7px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 2px; background: rgba(32, 110, 180, .85); }
.tag-price { position: absolute; z-index: 4; right: 6px; bottom: 6px; font-size: 16px; font-weight: 700; padding: 1px 8px; border-radius: 2px;
  background: rgba(10, 12, 15, .7); color: #9fe08d; }
.tile.is-static { cursor: default; }
.tile.is-static:hover .tile-pic { filter: none; }

/* case list + case page */
.grid-cases { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.case-tile .tile-pic { background: radial-gradient(120% 100% at 50% 20%, #5d636a 0%, #3e4349 60%, #2c3035 100%); }
.case-tile .tile-skin { color: #9fe08d; font-weight: 600; }
.case-owned { position: absolute; z-index: 4; right: 7px; top: 7px; min-width: 26px; height: 26px; border-radius: 13px; padding: 0 8px;
  display: grid; place-items: center; font-size: 15px; font-weight: 700; background: #4c9a3a; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.case-page .lo-bar .signin-hint { margin-left: auto; }
.case-top { flex: none; display: flex; align-items: center; gap: 36px; padding: 18px 40px; border-bottom: 1px solid var(--line); }
.case-art { width: 260px; flex: none; }
.case-art img { width: 100%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }
.case-info { display: flex; flex-direction: column; gap: 10px; }
.case-price, .case-own { font-size: 20px; display: flex; gap: 12px; align-items: baseline; }
.case-price strong { font-size: 30px; color: #9fe08d; }
.case-own strong { font-size: 24px; }
.case-btns { display: flex; gap: 14px; margin-top: 6px; }
.case-note { margin: 2px 0 0; font-size: 16px; }
.case-h { margin: 18px 0 18px; font-size: 19px; font-weight: 600; letter-spacing: .06em; color: #e6ebf0; }
.grid-case { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.tile-special .tile-pic { background: radial-gradient(120% 100% at 50% 30%, #6b5a2b 0%, #3f3418 70%, #2a2210 100%); }
.special-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 64px; color: #e4ae39;
  text-shadow: 0 0 18px rgba(228, 174, 57, .7), 0 4px 10px rgba(0, 0, 0, .6); }

/* opening reel */
.reel-box { position: relative; flex: none; height: 196px; margin: 14px 40px 0; overflow: hidden; background: rgba(0, 0, 0, .32);
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); box-shadow: inset 0 0 40px rgba(0, 0, 0, .55); }
.reel { position: absolute; left: 0; top: 14px; display: flex; gap: 8px; will-change: transform; }
.reel-tile { position: relative; flex: none; width: 176px; height: 166px; background: var(--tile-bg); overflow: hidden; border-bottom: 5px solid var(--rc); }
.reel-tile img { position: absolute; left: 50%; top: 42%; width: 92%; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.reel-tile.is-special { background: radial-gradient(120% 100% at 50% 30%, #6b5a2b 0%, #3f3418 70%, #2a2210 100%); }
.reel-tile .special-mark { top: 42%; font-size: 54px; }
.rt-name, .rt-skin { position: absolute; left: 8px; right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.rt-name { bottom: 24px; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.rt-skin { bottom: 7px; font-size: 13px; color: rgba(255, 255, 255, .82); }
.reel-tile.is-win { box-shadow: 0 0 0 3px #fff, 0 0 26px var(--rc); }
.reel-mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: #f2c14e;
  box-shadow: 0 0 12px #f2c14e; z-index: 3; }
.reel-mark::before, .reel-mark::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 9px solid transparent; }
.reel-mark::before { top: 0; border-top-color: #f2c14e; }
.reel-mark::after { bottom: 0; border-bottom-color: #f2c14e; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; background: rgba(6, 8, 10, .62); backdrop-filter: blur(4px);
  animation: tipIn .15s var(--ease); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(520px, 92vw); max-height: calc(92 * var(--vh)); overflow-y: auto; padding: 26px 30px 24px; background: var(--menu);
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); animation: popIn .18s var(--ease); }
.modal-small { width: min(420px, 92vw); }
.modal-x { position: absolute; right: 10px; top: 6px; width: 36px; height: 36px; font-size: 30px; line-height: 1; opacity: .7; }
.modal-x:hover { opacity: 1; }
.modal-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.res-head { margin: 0 0 12px; text-align: center; font-size: 22px; letter-spacing: .12em; text-transform: uppercase; color: #e6ebf0; }
.dt { text-align: center; }
.dt-pic { position: relative; margin: 0 auto 12px; width: 100%; aspect-ratio: 4 / 3; max-height: 300px; background: var(--tile-bg); border-bottom: 5px solid var(--rc); }
.dt-pic img { position: absolute; left: 50%; top: 50%; width: 86%; transform: translate(-50%, -50%); filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .5)); }
.dt-name { font-size: 24px; font-weight: 700; letter-spacing: .05em; }
.dt-skin { font-size: 18px; color: var(--muted); }
.dt-rows { margin: 14px auto 0; max-width: 360px; text-align: left; }
.dt-row { display: flex; justify-content: space-between; gap: 20px; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 17px; }
.dt-row span { color: var(--muted); }
.dt-row i { font-style: normal; }
.dt.is-reveal .dt-pic { animation: reveal .6s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.warn { color: #f0a090; font-size: 18px; text-align: center; margin: 16px 0 0; }

/* sell / buy forms */
.mk-form { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.mk-form label, .sk-form label { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; }
.money-in { display: inline-flex; align-items: center; gap: 4px; font-size: 22px; }
.mk-form input, .sk-form input[type=number], .sk-form input[type=text] { font: inherit; font-size: 20px; width: 140px; color: #fff; background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 4px 10px; }
.mk-calc { font-size: 17px; color: #dfe5ea; }
.mk-calc b { color: #9fe08d; }
.err { color: #f08a7c; }
.mk-buyprice { margin-top: 16px; text-align: center; font-size: 34px; font-weight: 700; color: #9fe08d; }
.sk-form { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.sk-form .sk-wear { flex-wrap: wrap; }
.sk-form .sk-wear b { min-width: 130px; color: #e7d9a8; }
.sk-form input[type=range] { flex: 1; min-width: 160px; accent-color: #e7d9a8; }
.sk-form input[type=text] { width: 230px; }
.sk-row { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; }

/* market */
.mk-tabs { display: flex; gap: 26px; align-self: stretch; }
.mk-tabs button { position: relative; font-size: 21px; font-weight: 600; letter-spacing: .05em; opacity: .7; }
.mk-tabs button:hover { opacity: 1; }
.mk-tabs button.is-active { opacity: 1; }
.mk-tabs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .5); }
.mk-count { font-size: 16px; color: var(--muted); }
.mk-more { display: flex; justify-content: center; padding: 26px 0 0; }

@media (max-width: 1000px) {
  .wallet { top: 76px; font-size: 13px; }
  .case-top { flex-wrap: wrap; gap: 18px; padding: 14px 18px; }
  .case-art { width: 180px; }
  .reel-box { margin: 10px 18px 0; }
}

/* ---------- UCO website (2023): on-the-server bar, loadout slots, stickers, trade up, activity, home feed ---------- */
.v-tradeup .bg, .v-activity .bg { filter: blur(26px) saturate(1.1) brightness(.92); transform: scale(1.08); }
.v-tradeup .bg-tint, .v-activity .bg-tint { background: linear-gradient(180deg, rgba(40, 46, 54, .25) 0%, rgba(14, 16, 20, .35) 100%); }
.main > section { flex: 1; min-height: 0; }
.offline-bar { flex: none; display: flex; align-items: center; gap: 14px; padding: 8px 26px; font-size: 17px; font-weight: 600;
  background: linear-gradient(90deg, rgba(150, 96, 30, .72), rgba(110, 70, 22, .55)); border-bottom: 1px solid rgba(255, 210, 140, .25); }
.offline-bar span { flex: 1; }
.btn-s { height: 34px; padding: 0 14px; font-size: 14px; }
.rail-me { position: relative; overflow: visible; }
.rail-me img { border-radius: 2px; }
.rail-dot { position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; border-radius: 50%; background: #5c6470;
  border: 2px solid #15181c; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.rail-dot.is-on { background: #6fd35a; box-shadow: 0 0 8px rgba(111, 211, 90, .8); }
.wallet.is-debt { color: #f0a090; }

/* loadout: a !lo pair (P2000 / USP-S ...) = two groups in the list */
.lo-group { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 6px 0 -6px; font-size: 16px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lo-group:not(:first-child) { margin-top: 18px; }
.lo-group.is-use { color: #fff; }
.lo-group span { font-size: 12px; letter-spacing: .14em; padding: 2px 8px; border-radius: 2px; background: rgba(255, 255, 255, .16); color: #fff; }
.tile.is-default .tile-pic { background: radial-gradient(120% 100% at 50% 20%, #5d636a 0%, #3e4349 60%, #2c3035 100%); }
.tile.is-off { opacity: .35; }
.tile.is-off:hover .tile-pic { filter: none; }
.tile-stk { position: absolute; z-index: 4; left: 10px; bottom: 5px; display: flex; gap: 2px; }
.tile-stk img { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }

/* modals: wide pickers, stickers */
.modal-wide { width: min(860px, 94vw); }
.modal-stk { width: min(760px, 94vw); }
.modal-item { width: min(540px, 92vw); }
.grid-pick { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 16px; max-height: calc(56 * var(--vh)); overflow-y: auto; padding: 4px 2px 8px; }
.grid-pick .tile-name { font-size: 15px; }
.grid-pick .tile-skin { font-size: 13px; }
.dt-stk { display: inline-block; width: 34px; height: 34px; margin-left: 4px; vertical-align: middle; }
.dt-stk img { width: 100%; height: 100%; object-fit: contain; }
.stk-hint { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 10px 14px; font-size: 16px; line-height: 1.3;
  background: rgba(255, 255, 255, .06); border-left: 3px solid #9fe08d; }
.stk-hint kbd { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 32px; padding: 0 6px; border-radius: 3px;
  font: 700 17px/1 inherit; color: #1b1e22; background: linear-gradient(180deg, #f2f4f6, #cfd5da); box-shadow: 0 3px 0 #8a939b; }
.stk-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.stk-place { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; text-align: center;
  background: rgba(0, 0, 0, .22); border: 1px dashed rgba(255, 255, 255, .2); }
.stk-place.is-used { border-style: solid; border-color: rgba(255, 255, 255, .12); }
.stk-pic { width: 96px; height: 96px; display: grid; place-items: center; }
.stk-pic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5)); }
.stk-plus { font-size: 46px; color: rgba(255, 255, 255, .35); }
.stk-name { font-size: 16px; font-weight: 700; }
.stk-sub { font-size: 14px; }
.stk-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 6px; }
.swap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: center; }
.swap-row b { display: block; margin-top: 6px; font-size: 18px; color: #cf6a32; }

/* cases page */
.case-cats { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; max-width: 52vw; }
.case-cats a { font-size: 16px; font-weight: 600; letter-spacing: .04em; opacity: .8; white-space: nowrap; }
.case-cats a:hover { opacity: 1; }
.case-cat { font-size: 17px; }

/* trade up */
.tu-top { flex: none; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 30px; padding: 18px 40px;
  border-bottom: 1px solid var(--line); }
.tu-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tu-slots .tile-name { font-size: 14px; }
.tu-slots .tile-skin { font-size: 13px; }
.tile.tu-empty { cursor: default; }
.tile.tu-empty .tile-pic { background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px var(--line); }
.tile.tu-empty .tile-pic::before { display: none; }
.tu-side p { margin: 0 0 10px; font-size: 16px; line-height: 1.35; }
.tu-avg { font-size: 15px; margin-bottom: 6px; }
.tu-outs { display: flex; flex-direction: column; gap: 4px; max-height: 190px; overflow-y: auto; }
.tu-out { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 2px 8px 2px 0;
  border-left: 4px solid var(--rc); background: rgba(0, 0, 0, .2); }
.tu-out img { width: 56px; height: 40px; object-fit: contain; }
.tu-out span { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tu-out b { font-size: 15px; color: #9fe08d; }

/* activity */
.act-card { margin: 26px auto; width: min(860px, 92%); padding: 26px 32px; }
.act-card p { font-size: 17px; line-height: 1.35; }
.act-card a { text-decoration: underline; }
.act-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.act-head div { display: flex; flex-direction: column; padding: 10px 14px; background: rgba(0, 0, 0, .2); }
.act-head strong { font-size: 28px; }
.act-goals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.act-goals li { display: grid; grid-template-columns: 30px 56px minmax(0, 1fr) 170px 190px; align-items: center; gap: 12px; padding: 8px 12px;
  background: rgba(0, 0, 0, .18); font-size: 17px; }
.act-goals li.is-done { background: rgba(70, 140, 55, .25); }
.act-goals li.is-late { opacity: .55; }
.act-mark { font-size: 20px; text-align: center; color: #9fe08d; }
.is-late .act-mark { color: #f08a7c; }
.act-h { font-weight: 700; }
.act-bar { height: 6px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; }
.act-bar i { display: block; height: 100%; background: linear-gradient(90deg, #62b14d, #9fe08d); }
.act-left { font-size: 14px; text-align: right; }

/* trade with a player + gifts (2026-12-05) */
.trade-page .grid-wrap { flex: none; overflow: visible; }
.trade-page { overflow-y: auto; }
.tr-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; padding: 18px 40px 0; }
.tr-panel, .tr-side { padding: 16px 20px; min-width: 0; }
.tr-panel .case-h { margin-top: 0; }
.tr-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: rgba(0, 0, 0, .18); margin-bottom: 6px; }
.tr-row .btn { height: 34px; padding: 0 14px; font-size: 14px; }
.tr-who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.tr-who img, .tr-who i { width: 34px; height: 34px; flex: none; border-radius: 2px; object-fit: cover; }
.tr-who i { display: grid; place-items: center; font-style: normal; font-weight: 700; background: rgba(255, 255, 255, .12); }
.tr-who b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-wm { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.tr-wm .tr-who { max-width: 100%; }
.tr-wm small { font-size: 13px; padding-left: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-help, .tr-note p { padding: 0 40px; font-size: 16px; line-height: 1.35; }
.tr-note { margin: 22px 40px; padding: 18px 0; }
.tr-note a { text-decoration: underline; }
.tr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tr-head h3 { margin: 0; font-size: 20px; letter-spacing: .05em; text-transform: uppercase; }
.tr-ready { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fe08d; }
.tr-none { margin: 18px 0; }
.tr-cash { margin-top: 14px; font-size: 18px; display: flex; align-items: center; gap: 12px; }
.tr-cash .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.tr-btns { display: flex; gap: 14px; padding: 16px 40px; }
.tr-search { margin: 0 0 14px; }
.grid-s { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px 14px; }
.grid-s .tile-name { font-size: 14px; }
.grid-s .tile-skin { font-size: 13px; }
.gift-card-wrap { margin: 26px auto; width: min(980px, 92%); padding: 26px 32px; }
.gift-card-wrap p { font-size: 17px; line-height: 1.35; }
.gift-card-wrap a { text-decoration: underline; }
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 0 8px; }
.gift-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; background: rgba(0, 0, 0, .22); text-align: center; }
.gift-card img { width: 100%; max-width: 220px; aspect-ratio: 4 / 3; object-fit: contain; }
.gift-card strong { font-size: 19px; }
.gift-price { font-size: 22px; color: #9fe08d; margin: 4px 0; }
.gift-card .btn:disabled, .tr-btns .btn:disabled, .tr-row .btn:disabled { opacity: .45; cursor: default; filter: none; }
.gift-ask { text-align: center; }
.gift-ask img { width: 200px; }
.gift-list { max-height: 50vh; overflow-y: auto; padding: 6px 2px; }
.gift-got { display: flex; flex-direction: column; gap: 4px; text-align: center; min-width: 0; }
.gift-got .muted { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1000px) {
  .tr-cols { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 0; }
  .tr-btns, .tr-help, .tr-note p { padding-left: 12px; padding-right: 12px; }
  .tr-note { margin: 12px; }
  .gift-grid { grid-template-columns: minmax(0, 1fr); }
  .gift-card-wrap { margin: 12px auto; padding: 16px; width: calc(100% - 20px); }
}

/* home: feed, activity box, guest card */
.feed { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 24px 0; }
.feed-list { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 8px; }
.home-srv { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0 14px;
  border-top: 1px solid var(--line); text-align: center; }
.home-srv-ip { font-size: 24px; font-weight: 700; letter-spacing: .03em; }
.home-srv-ip span { color: var(--t); }
.home-srv-info { font-size: 18px; color: var(--muted); }
.home-srv-info b { color: var(--text); font-weight: 600; }
.home-srv-info i { display: inline-block; width: 22px; }
.news { flex: none; max-height: 45%; }
.news-row.no-thumb { grid-template-columns: minmax(0, 1fr); }
.feed-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 16px; padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06); }
.feed-pic { position: relative; height: 64px; background: var(--tile-bg); border-left: 4px solid var(--rc); }
.feed-pic img { position: absolute; left: 50%; top: 50%; width: 90%; max-height: 90%; object-fit: contain; transform: translate(-50%, -50%); }
.feed-item { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-who { font-size: 15px; }
.home-act { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 20px; width: min(460px, 100%);
  background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .08); text-align: center; }
.home-act:hover { background: rgba(0, 0, 0, .3); }
.home-act strong { font-size: 30px; }
.home-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.showcase.is-guest { justify-content: center; }
.guest-card { width: min(520px, 92%); padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--panel); backdrop-filter: blur(28px); border: 1px solid rgba(255, 255, 255, .07); }
.guest-card h2 { margin: 0; font-size: 28px; letter-spacing: .06em; }
.guest-card p { margin: 0 0 6px; font-size: 18px; line-height: 1.35; color: #e4e9ee; }

@media (max-width: 1000px) {
  .tu-top { grid-template-columns: 1fr; padding: 14px 18px; }
  .act-goals li { grid-template-columns: 26px 50px minmax(0, 1fr); }
  .act-goals .act-bar, .act-goals .act-left { grid-column: 3; }
  .slot { grid-template-columns: 110px minmax(0, 1fr); }
}

/* ---------- different screen sizes (2026-12-05): short screens, narrow columns, phones ---------- */
/* left bar: sizes follow the screen height so Statistics / Discord / Admin always fit */
.brand { height: clamp(62px, calc(9.4 * var(--vh)), 98px); }
.brand img { width: clamp(28px, calc(3.8 * var(--vh)), 38px); height: clamp(28px, calc(3.8 * var(--vh)), 38px); }
.side-play { width: clamp(44px, calc(6 * var(--vh)), 62px); height: clamp(44px, calc(6 * var(--vh)), 62px); margin: clamp(8px, calc(2.1 * var(--vh)), 22px) auto; }
.side-play .ico { width: 52%; height: 52%; }
.side-btn { height: clamp(52px, calc(8.4 * var(--vh)), 96px); }
.side-btn .ico { width: clamp(26px, calc(3.8 * var(--vh)), 40px); height: clamp(26px, calc(3.8 * var(--vh)), 40px); }
.side-btn.is-active::before { top: 24%; bottom: 24%; }
.side-admin { border-top: 1px solid var(--line); }
.lo-tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.lo-tabs::-webkit-scrollbar { display: none; }
.lo-tabs > a { flex: none; white-space: nowrap; }

/* home: the right column never squeezes the profile card, the card never cuts its top off */
.home { grid-template-columns: minmax(380px, 700px) minmax(0, 1fr); gap: clamp(18px, 2vw, 34px); padding: clamp(12px, calc(2 * var(--vh)), 22px) clamp(16px, 2vw, 34px); }
.showcase.is-profile { justify-content: flex-start; gap: clamp(12px, calc(2.4 * var(--vh)), 26px); padding: clamp(14px, calc(2.6 * var(--vh)), 30px) clamp(14px, 2vw, 40px); }
.showcase.is-profile > :first-child { margin-top: auto; }
.showcase.is-profile > :last-child { margin-bottom: auto; }
.prof-avatar { width: clamp(96px, calc(17 * var(--vh)), 184px); height: clamp(96px, calc(17 * var(--vh)), 184px); font-size: clamp(44px, calc(7 * var(--vh)), 80px); }
.prof-name { font-size: clamp(26px, calc(3.7 * var(--vh)), 40px); margin-top: clamp(8px, calc(1.6 * var(--vh)), 18px); overflow-wrap: break-word; max-width: 100%; }
.prof-games { container-type: inline-size; }
.game-name { overflow-wrap: break-word; }
@container (max-width: 640px) {
  .game-row { grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 16px; padding: 6px 14px 6px 6px; }
  .game-row img { grid-row: 1 / 3; }
  .game-name { align-self: end; font-size: 18px; }
  .game-hours { grid-column: 2; align-self: start; text-align: left; font-size: 15px; }
}
@container (max-width: 400px) {
  .game-row { grid-template-columns: 104px minmax(0, 1fr); gap: 0 10px; }
  .game-name { font-size: 16px; }
  .game-hours { font-size: 13px; white-space: normal; }
}
.feed-row { min-width: 0; }

@media (max-width: 1280px) {
  .home { grid-template-columns: minmax(340px, .9fr) minmax(0, 1fr); }
  .news-row { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
  .news-thumb { width: 150px; height: 84px; }
}
@media (max-width: 1000px) {
  .home { grid-template-columns: minmax(0, 1fr); }
  .showcase.is-profile { min-height: 0; overflow: visible; }
  .side-btn { height: clamp(50px, calc(8 * var(--vh)), 80px); }
  .side-btn .ico { width: clamp(24px, calc(3.6 * var(--vh)), 32px); height: clamp(24px, calc(3.6 * var(--vh)), 32px); }
  .grid-wrap { padding: 6px 20px 30px; }
}

/* short screens (720p / 768p, browser zoom) */
@media (max-height: 820px) {
  .top-head { height: 72px; }
  .top-head h1 { font-size: 30px; }
  .lo-bar { height: 56px; }
  .inv-sub, .lo-right-head { height: 54px; }
  .lo-tabs { height: 54px; }
  .wheel-wrap { width: min(88%, calc(100 * var(--vh) - 262px)); margin-top: 40px; }
  .team-toggle { top: 10px; }
  .team-toggle .team-emblem { width: 38px; height: 38px; }
  .wallet { top: 84px; }
}

@media (max-height: 820px) and (min-width: 1001px) { .inv-bar { height: 56px; } }

/* phones: left bar = bottom bar, profile picture + balance top right */
@media (max-width: 700px) {
  :root { --side-w: 0px; --rail-w: 0px; }
  body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: 100vh; height: 100dvh; }
  .main { grid-row: 1; grid-column: 1; height: auto; min-height: 0; }
  .side { grid-row: 2; grid-column: 1; flex-direction: row; align-items: center; height: 60px; overflow-x: auto; overflow-y: hidden;
    border-right: 0; border-top: 1px solid rgba(255, 255, 255, .1); scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .brand, .side-sep { display: none; }
  .side-play { flex: none; width: 42px; height: 42px; margin: 0 6px 0 10px; }
  .side-btn, .side-btn.side-admin { flex: none; width: 56px; height: 60px; border-top: 0; }
  .side-btn .ico { width: 27px; height: 27px; }
  .side-fill { flex: 1 0 0; min-width: 0; }
  .side-btn.is-active::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 3px; }
  .rail { position: fixed; z-index: 30; top: 0; right: 0; background: none; border: 0; backdrop-filter: none; }
  .rail-me { width: 40px; height: 40px; margin: 10px 10px 0 0; }
  .rail-me .ico { width: 26px; height: 26px; }
  .wallet { top: 18px; right: 58px; width: auto; max-width: 110px; padding: 2px 6px; font-size: 14px; }
  [data-tip]:hover::after { display: none; }
  .pop { top: 58px; right: 8px; width: min(320px, calc(100vw - 16px)); }
  .top-head { height: 60px; padding: 0 180px 0 16px; }
  .top-head h1 { font-size: 24px; }
  .offline-bar { padding: 6px 12px; font-size: 15px; flex-wrap: wrap; }
  .home { padding: 62px 12px 10px; gap: 12px; }
  .news-row { grid-template-columns: minmax(0, 1fr); }
  .news-thumb { width: 100%; height: 140px; }
  .showcase.is-profile { padding: 14px 6px; }
  .prof-info dd { font-size: 15px; }
  .grid, .grid-slot { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 18px 12px; }
  .grid-wrap { padding: 6px 12px 24px; }
  .inv-bar { padding: 8px 12px; gap: 10px 16px; }
  .inv-sub { padding: 0 12px; height: auto; min-height: 48px; flex-wrap: wrap; gap: 10px; }
  .search input { width: 150px; }
  .dd-wide { width: 100%; max-width: 300px; height: 46px; font-size: 17px; }
  .lo-bar { padding: 0 12px; gap: 12px; }
  .lo-tabs > a { font-size: 16px; padding: 0 8px; }
  .lo-left { min-height: 420px; }
  .lo-right { padding: 0 12px; }
  .wheel-wrap { width: min(94%, 520px); margin-top: 56px; }
  .team-toggle { right: 50%; transform: translateX(50%); }
  .soon-card { margin: 24px auto; padding: 24px; }
  .act-card { margin: 12px auto; padding: 16px; width: calc(100% - 20px); }
  .act-head { grid-template-columns: 1fr; }
  .xh-left, .xh-right, .xh-code { padding-left: 12px; padding-right: 12px; }
  .xh-row > label, .xh-lab { flex-basis: 120px; font-size: 16px; }
  .xh-ctl select { min-width: 0; width: 100%; }
}

/* big screens (1440p / 4K at 100 %): the whole page a bit bigger. Every height uses var(--vh), never plain vh. */
@media (min-width: 2200px) and (min-height: 1200px) { :root { --z: 1.25; } html { zoom: var(--z); } }
@media (min-width: 3000px) and (min-height: 1650px) { :root { --z: 1.5; } }
@media (min-width: 3600px) and (min-height: 2000px) { :root { --z: 1.75; } }
