:root {
  color-scheme: dark;
  --hub-bg: #1b1b1b;
  --hub-sidebar: #121212;
  --hub-panel: #1b1b1b;
  --hub-panel-2: #242424;
  --hub-panel-3: #2e2e2e;
  --hub-line: rgba(233, 32, 79, .3);
  --hub-line-strong: rgba(233, 32, 79, .55);
  --hub-text: #f3f3f3;
  --hub-muted: #9e9e9e;
  --hub-green: #e9204f;
  --hub-green-hover: #ff3a69;
  --hub-green-soft: rgba(233, 32, 79, .15);
  --hub-red: #e9204f;
  --hub-amber: #e9204f;
  --hub-blue: #3a86ff;
  --hub-purple: #e9204f;
  --hub-sidebar-width: 262px;
  --hub-topbar-height: 76px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
}

body.hub-authenticated { background: var(--hub-bg); }
body.hub-authenticated > .ambient,
body.hub-authenticated .shell > .brand-bar { display: none; }
body.hub-authenticated .shell { width: 100%; max-width: none; margin: 0; padding: 0; }
body.hub-authenticated footer { margin: 0; }
body.drawer-open,
body.modal-open { overflow: hidden; }

body.game-open .app-sidebar,
body.game-open .hub-main,
body.game-open .mobile-bottom-nav,
body.game-open .sidebar-backdrop,
body.game-open .hub-drawer,
body.game-open .drawer-overlay,
body.game-open .toast-region { display: none !important; }
body.game-open #game-screen { z-index: 2500; display: block; }
body.game-open #game-screen .game-balance { display: none; }
body.game-open #game-screen .game-screen-nav { justify-content: flex-start; }

.hub-app { display: block; min-height: 100vh; background: var(--hub-bg); }
.hub-app button,
.hub-app input,
.hub-app textarea,
.hub-app select { font-family: inherit; }
.hub-app button:focus-visible,
.hub-app input:focus-visible,
.hub-app textarea:focus-visible,
.hub-app select:focus-visible,
.hub-app a:focus-visible { outline: 2px solid var(--hub-green); outline-offset: 2px; }

.app-sidebar {
  position: fixed;
  z-index: 320;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: var(--hub-sidebar-width);
  min-height: 100vh;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border-right: 1px solid var(--hub-line);
  color: var(--hub-text);
  background: var(--hub-sidebar);
  box-shadow: 12px 0 32px rgba(0,0,0,.22);
  scrollbar-color: #28533f #06090e;
  scrollbar-width: thin;
}
.app-sidebar::-webkit-scrollbar { width: 10px; }
.app-sidebar::-webkit-scrollbar-track { background: #06090e; }
.app-sidebar::-webkit-scrollbar-thumb {
  border: 3px solid #06090e;
  border-radius: 999px;
  background: #28533f;
}
.app-sidebar::-webkit-scrollbar-thumb:hover { background: #347154; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--hub-line);
  color: var(--hub-text);
  text-decoration: none;
}

.sidebar-logo {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #06140d;
  background: var(--hub-green);
  font-size: .83rem;
  font-weight: 950;
  letter-spacing: -.06em;
}

.sidebar-brand strong,
.sidebar-brand small { display: block; }
.sidebar-brand strong { font-size: .94rem; letter-spacing: -.02em; }
.sidebar-brand small { margin-top: 2px; color: var(--hub-muted); font-size: .65rem; font-weight: 700; }

.sidebar-profile { padding: 17px 16px 15px; border-bottom: 1px solid var(--hub-line); }
.sidebar-profile-main { display: flex; align-items: center; gap: 10px; }
.sidebar-profile .avatar { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid #326a50; border-radius: 11px; background: #173527; box-shadow: none; color: #e9fff4; }
.sidebar-profile .avatar img { border-radius: 10px; }
.sidebar-profile-copy { min-width: 0; }
.sidebar-profile-copy small,
.sidebar-profile-copy strong { display: block; }
.sidebar-profile-copy small { color: #7ddaa9; font-size: .61rem; font-weight: 800; text-transform: uppercase; }
.sidebar-profile-copy small i { display: inline-block; margin-right: 4px; }
.sidebar-profile-copy strong { overflow: hidden; margin-top: 3px; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile .compact-level { grid-template-columns: auto 1fr auto; margin-top: 12px; color: var(--hub-text); }
.sidebar-profile .compact-level > span { color: var(--hub-muted); }
.sidebar-profile .compact-level i { height: 6px; border: 0; background: #171e29; }
.sidebar-profile .compact-level i b { background: var(--hub-green); }
.sidebar-profile .compact-level small { color: var(--hub-muted); }
.sidebar-balance { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.sidebar-balance span { color: var(--hub-muted); font-size: .68rem; font-weight: 700; }
.sidebar-balance strong { max-width: 150px; overflow: hidden; color: #dcebe3; font-size: .85rem; text-overflow: ellipsis; }
.daily-bonus {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 9px;
  margin-top: 13px;
  padding: 9px 10px;
  border: 1px solid #2a6747;
  border-radius: 9px;
  color: #dff7e9;
  background: #0a2116;
  box-shadow: none;
  text-align: left;
}
.daily-bonus > span:first-child { display: grid; flex: 0 0 26px; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #0a2417; background: var(--hub-green); }
.daily-bonus strong,
.daily-bonus small { display: block; }
.daily-bonus strong { font-size: .69rem; }
.daily-bonus small { margin-top: 2px; color: #83ad94; font-size: .58rem; }
.daily-bonus.claimed { border-color: var(--hub-line); color: var(--hub-muted); background: var(--hub-panel); }
.daily-bonus.claimed > span:first-child { color: var(--hub-muted); background: #181f2a; }

.sidebar-nav { display: grid; gap: 2px; padding: 12px 10px 16px; }
.sidebar-nav p { margin: 13px 10px 5px; color: #596577; font-size: .58rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  min-height: 39px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #9ba6b7;
  font-size: .75rem;
  font-weight: 750;
  text-decoration: none;
}
.sidebar-nav .nav-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #687588;
  background: #0b1017;
  font-size: .78rem;
  line-height: 1;
  transition: color .15s ease,border-color .15s ease,background .15s ease;
}
.sidebar-nav a:hover { color: var(--hub-text); background: #0b1119; }
.sidebar-nav a:hover .nav-icon { border-color: #263142; color: #b3becc; background: #111821; }
.sidebar-nav a.active { color: #f4faf7; background: #0f171f; }
.sidebar-nav a.active::before { position: absolute; inset: 7px auto 7px -10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--hub-green); content: ""; }
.sidebar-nav a.active .nav-icon { border-color: #285a42; color: var(--hub-green); background: #0c2418; }
.nav-count,
.topbar-icon b {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  color: #07120c;
  background: var(--hub-green);
  font-size: .56rem;
  font-weight: 950;
}
.sidebar-footer { display: grid; gap: 2px; margin-top: auto; padding: 11px 10px 14px; border-top: 1px solid var(--hub-line); }
.sidebar-footer button {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 7px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  color: #8d98aa;
  background: transparent;
  box-shadow: none;
  font-size: .72rem;
  text-align: left;
}
.sidebar-footer .nav-icon { width: 22px; color: #697587; text-align: center; }
.sidebar-footer button:hover { color: var(--hub-text); background: #0b1119; }
.sidebar-footer button:hover .nav-icon { color: var(--hub-green); }

.hub-main { min-height: 100vh; margin-left: var(--hub-sidebar-width); }
.hub-topbar {
  position: sticky;
  z-index: 200;
  top: 0;
  display: grid;
  grid-template-columns: minmax(170px,1fr) minmax(230px,440px) auto auto auto;
  align-items: center;
  width: 100%;
  min-height: var(--hub-topbar-height);
  gap: 14px;
  padding: 12px 24px;
  border: 0;
  border-bottom: 1px solid var(--hub-line);
  border-radius: 0;
  background: #070b11;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.mobile-menu-button { display: none !important; }
.topbar-heading small { display: block; overflow: hidden; margin-bottom: 3px; color: #657185; font-size: .6rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.topbar-heading h1 { overflow: hidden; color: var(--hub-text); font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.global-search,
.catalog-search { position: relative; display: flex; align-items: center; gap: 8px; }
.global-search > span,
.catalog-search > span { position: absolute; z-index: 1; left: 12px; color: #69768a; }
.global-search input,
.catalog-search input {
  height: 39px;
  padding: 8px 38px 8px 35px;
  border: 1px solid var(--hub-line);
  border-radius: 9px;
  color: var(--hub-text);
  background: #0b1119;
  box-shadow: none;
  font-size: .72rem;
}
.global-search input:focus,
.catalog-search input:focus { border-color: #377d5a; box-shadow: 0 0 0 3px rgba(53,189,120,.1); }
.global-search kbd { position: absolute; right: 10px; padding: 2px 6px; border: 1px solid #273242; border-radius: 5px; color: #707c8f; background: #111720; font-size: .57rem; }
.topbar-actions { display: flex; gap: 6px; }
.topbar-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--hub-line);
  border-radius: 9px;
  color: #a5afbe;
  background: #0b1119;
  box-shadow: none;
}
.topbar-icon > i { font-size: .9rem; }
.topbar-icon:hover { border-color: #344154; color: var(--hub-green); background: #111821; }
.topbar-icon b { position: absolute; top: -6px; right: -5px; min-width: 17px; height: 17px; border: 2px solid #070b11; font-size: .5rem; }
.hub-topbar .balance-box { min-width: 122px; padding: 0 4px 0 10px; border-left: 1px solid var(--hub-line); }
.hub-topbar .balance-box span { color: #647084; font-size: .55rem; }
.hub-topbar .balance-box strong { overflow: hidden; color: #72daa5; font-size: .87rem; text-overflow: ellipsis; text-shadow: none; }
.topbar-profile {
  display: grid;
  grid-template-columns: 31px minmax(60px,auto) auto;
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--hub-text);
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.topbar-profile:hover { border-color: var(--hub-line); background: #0b1119; }
.topbar-profile .avatar-small { width: 31px; height: 31px; border: 1px solid #326a50; border-radius: 8px; background: #173527; box-shadow: none; }
.topbar-profile strong,
.topbar-profile small { display: block; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-profile strong { font-size: .68rem; }
.topbar-profile small { margin-top: 2px; color: var(--hub-muted); font-size: .55rem; }
.topbar-profile i { color: #697486; font-style: normal; }

.hub-route-content { width: min(1520px,100%); margin: 0 auto; padding: 28px clamp(20px,3vw,42px) 54px; }
.hub-view { display: grid; gap: 24px; animation: hub-view-in .22s ease both; }
.hub-view.under-construction > :not(.construction-state) { display: none !important; }
.construction-state {
  display: grid;
  min-height: calc(100vh - var(--hub-topbar-height) - 110px);
  place-items: center;
  align-content: center;
  padding: 40px 20px;
  color: var(--hub-text);
  text-align: center;
}
.construction-state > span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid #315e47;
  border-radius: 18px;
  color: #72d6a0;
  background: #0b2117;
  font-size: 1.7rem;
}
.construction-state .eyebrow { margin-bottom: 8px; }
.construction-state h2 { margin: 0; font-size: clamp(1.65rem,4vw,2.35rem); }
.construction-state > p:last-child { max-width: 520px; margin: 12px 0 0; color: var(--hub-muted); font-size: .72rem; line-height: 1.6; }
@keyframes hub-view-in { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.home-welcome,
.page-heading,
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.home-welcome h2,
.page-heading h2 { margin: 0; color: var(--hub-text); font-size: clamp(1.55rem,2.4vw,2.25rem); letter-spacing: -.04em; }
.home-welcome > div:first-child > p:last-child,
.page-heading > div:first-child > p:last-child { max-width: 720px; margin: 8px 0 0; color: var(--hub-muted); font-size: .78rem; line-height: 1.55; }
.home-level { display: grid; grid-template-columns: auto 160px; align-items: center; gap: 5px 12px; min-width: 270px; }
.home-level > span { grid-row: span 2; padding: 7px 9px; border: 1px solid #2b6f4d; border-radius: 8px; color: #79dbaa; background: #102a1e; font-size: .66rem; font-weight: 850; }
.home-level strong { display: flex; justify-content: space-between; gap: 12px; font-size: .61rem; }
.home-level strong small { color: var(--hub-muted); font-weight: 650; }
.home-level > i,
.achievement-summary i,
.profile-level-card i { display: block; height: 6px; overflow: hidden; border-radius: 9px; background: #242c3a; }
.home-level > i b,
.achievement-summary i b,
.profile-level-card i b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--hub-green); }

.panel-card,
.stat-card,
.mode-card,
.battle-action {
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: var(--hub-panel);
  box-shadow: 0 14px 32px rgba(0,0,0,.2);
}
.home-primary-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(330px,.75fr); gap: 18px; }
.continue-card { position: relative; isolation: isolate; display: flex; min-height: 250px; overflow: hidden; align-items: center; }
.continue-card::before { position: absolute; z-index: 1; inset: 0; background: rgba(3,6,11,.18); box-shadow: inset 480px 0 210px rgba(3,6,11,.9); content: ""; pointer-events: none; }
.continue-art { position: absolute; z-index: 0; inset: 0; display: block; overflow: hidden; border: 0; background: #07101a; }
.continue-art::before { content: none; }
.continue-collage { width: 100%; height: 100%; background: #05080d; }
.continue-art .continue-collage img { display: none; width: 100%; height: 100%; object-fit: cover; filter: saturate(.96); }
.continue-art .continue-collage img.active { display: block; }
.continue-collage img[data-continue-cover="mines"] { object-position: 50% 50%; }
.continue-collage img[data-continue-cover="bonus"] { object-position: 50% 27%; }
.continue-collage img[data-continue-cover="bigfisher"] { object-position: 50% 48%; }
.continue-collage img[data-continue-cover="roulette"] { object-position: 50% 50%; }
.continue-art span { position: absolute; right: 12px; bottom: 12px; padding: 5px 8px; border: 1px solid rgba(220,232,240,.25); border-radius: 7px; color: #dbe5ec; background: rgba(7,12,20,.78); font-size: .59rem; font-weight: 850; }
.continue-copy { position: relative; z-index: 2; width: min(58%,430px); margin-right: auto; padding: 28px; }
.continue-copy h3,
.event-card h3 { margin: 0; color: var(--hub-text); font-size: 1.45rem; letter-spacing: -.035em; }
.continue-copy > p:not(.eyebrow),
.event-card > div > p:last-child { margin: 8px 0 21px; color: var(--hub-muted); font-size: .73rem; line-height: 1.55; }
.continue-copy p strong { color: #6dd69f; }
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid #3fc981;
  border-radius: 9px;
  color: #07130d;
  background: var(--hub-green);
  box-shadow: none;
  font-size: .68rem;
}
.primary-action:hover { background: var(--hub-green-hover); }
.secondary-action { border-color: #2c3848; color: #dbe2e9; background: #101720; }
.secondary-action:hover { border-color: #425166; background: #151e29; }
.event-card { position: relative; isolation: isolate; display: flex; overflow: hidden; flex-direction: column; justify-content: space-between; min-height: 250px; padding: 24px; border-color: #4d2930; background: #13070a url("ui/eventsoon.png") center / cover no-repeat; }
.event-card::before { position: absolute; z-index: -1; inset: 0; background: rgba(8,2,4,.25); box-shadow: inset 0 -105px 85px rgba(5,1,3,.78); content: ""; }
.event-card h3,
.event-card > div > p:last-child { text-shadow: 0 2px 4px #000,0 5px 16px #000; }
.event-meta { display: flex; justify-content: space-between; color: #8b9c91; font-size: .61rem; font-weight: 800; text-transform: uppercase; }
.event-meta b { color: #d8b86c; }
.event-card .secondary-action { align-self: flex-start; }
.event-preview-mark { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 13px; border: 1px solid #283748; border-radius: 10px; background: #0a1018; }
.event-preview-mark > i { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; color: #d2b56e; background: #282316; }
.event-preview-mark strong,
.event-preview-mark small { display: block; }
.event-preview-mark strong { color: var(--hub-text); font-size: .68rem; }
.event-preview-mark small { margin-top: 3px; color: var(--hub-muted); font-size: .58rem; }

.home-section { display: grid; gap: 13px; }
.section-row { align-items: center; }
.section-row h3 { color: var(--hub-text); font-size: 1rem; letter-spacing: -.02em; }
.section-row a,
.section-row button,
.drawer-tools > button { padding: 0; border: 0; color: #70cf9d; background: transparent; box-shadow: none; font-size: .63rem; text-decoration: none; }
.mode-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.mode-card { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr; align-items: end; min-height: 205px; overflow: hidden; padding: 18px; border-color: #303a4b; color: var(--hub-text); background-color: #101722; background-position: center; background-size: cover; text-decoration: none; transition: border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.mode-card::before { position: absolute; z-index: -1; inset: 0; background: rgba(3,6,12,.26); box-shadow: inset 0 -95px 75px rgba(2,4,9,.6); content: ""; transition: background-color .18s ease; }
.mode-card.mode-slots { background-image: url("ui/sloty.png"); background-position: 58% 52%; }
.mode-card.mode-crates { background-image: url("ui/skrzynki.png"); background-position: 46% 50%; }
.mode-card.mode-battles { background-image: url("ui/battle.png"); background-position: 50% 50%; }
.mode-card:hover { border-color: #4c8b6c; box-shadow: 0 20px 38px rgba(0,0,0,.34); transform: translateY(-4px); }
.mode-card:hover::before { background: rgba(3,6,12,.16); }
.mode-card > div { align-self: end; min-width: 0; }
.mode-card strong,
.mode-card small { display: block; }
.mode-card strong { font-size: 1.08rem; text-shadow: 0 2px 3px #000,0 5px 18px #000; }
.mode-card small { margin-top: 4px; color: #7ce4ad; font-size: .59rem; font-weight: 850; text-shadow: 0 2px 5px #000; }
.mode-card p { max-width: 230px; margin: 8px 0 0; color: #eef3f7; font-size: .63rem; line-height: 1.42; text-shadow: 0 2px 4px #000,0 4px 12px #000; }
.home-secondary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.home-secondary-grid > section { min-height: 285px; padding: 20px; }
.compact-list,
.mission-stack { display: grid; gap: 8px; margin-top: 16px; }
.compact-friend,
.mission-compact { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid #222b39; border-radius: 9px; background: #131a25; }
.compact-friend .avatar { width: 36px; height: 36px; border: 1px solid #344155; border-radius: 9px; color: #cbd6df; background: #202a38; box-shadow: none; }
.compact-friend strong,
.compact-friend small { display: block; }
.compact-friend strong { font-size: .68rem; }
.compact-friend small { margin-top: 3px; color: var(--hub-muted); font-size: .56rem; }
.compact-friend button,
.friend-actions button { padding: 7px 9px; border: 1px solid #334154; border-radius: 7px; color: #cfd7df; background: #1a2230; box-shadow: none; font-size: .57rem; }
.mission-compact { grid-template-columns: 1fr auto; }
.mission-compact strong,
.mission-compact small { display: block; }
.mission-compact strong { font-size: .65rem; }
.mission-compact small { margin-top: 4px; color: var(--hub-muted); font-size: .55rem; }
.mission-progress { height: 5px; overflow: hidden; margin-top: 8px; border-radius: 8px; background: #28313f; }
.mission-progress b { display: block; height: 100%; border-radius: inherit; background: var(--hub-green); }
.mission-reward { color: #d7b66f; font-size: .62rem; font-weight: 850; white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.stat-card { min-width: 0; padding: 17px; }
.stat-card span,
.stat-card strong,
.stat-card small { display: block; }
.stat-card span { color: var(--hub-muted); font-size: .6rem; font-weight: 750; }
.stat-card strong { overflow: hidden; margin-top: 8px; color: var(--hub-text); font-size: 1.18rem; letter-spacing: -.03em; text-overflow: ellipsis; }
.stat-card small { margin-top: 6px; color: #5f6b7d; font-size: .56rem; }
.period-label { color: var(--hub-muted); font-size: .6rem; }

.page-heading { align-items: center; }
.key-counter,
.season-badge,
.mission-reset,
.inventory-count,
.achievement-summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--hub-line); border-radius: 10px; background: var(--hub-panel); }
.key-counter > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #d9b86c; background: #332d1c; }
.key-counter span span,
.key-counter strong { display: block; }
.key-counter span span { color: var(--hub-muted); font-size: .55rem; }
.key-counter strong { margin-top: 2px; color: var(--hub-text); font-size: .88rem; }
.page-tabs,
.filter-tabs { display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.page-tabs::-webkit-scrollbar,
.filter-tabs::-webkit-scrollbar { display: none; }
.page-tabs button,
.filter-tabs button {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #8490a1;
  background: transparent;
  box-shadow: none;
  font-size: .63rem;
  white-space: nowrap;
}
.page-tabs button:hover,
.filter-tabs button:hover { color: var(--hub-text); background: #121925; }
.page-tabs button.active,
.filter-tabs button.active { border-color: #2b6648; color: #80dca9; background: #112b1e; }
.page-tabs button b { margin-left: 4px; color: #aeb8c6; }
.split-content { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 18px; }
.crate-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.crate-card { position: relative; display: flex; flex-direction: column; min-height: 360px; overflow: hidden; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-panel); }
.crate-visual { position: relative; display: grid; height: 170px; place-items: center; border-bottom: 1px solid var(--hub-line); background: #101822; }
.crate-visual span { display: grid; place-items: center; width: 96px; height: 75px; border: 2px solid #3a4655; border-radius: 13px 13px 17px 17px; color: #738096; background: #1c2632; font-size: 2rem; box-shadow: 0 12px 18px rgba(0,0,0,.2); }
.crate-card[data-rarity="rare"] .crate-visual span { border-color: #3f6795; color: #76a4d5; background: #17273b; }
.crate-card[data-rarity="epic"] .crate-visual span { border-color: #66508d; color: #b49adb; background: #261e36; }
.crate-card[data-rarity="event"] .crate-visual span { border-color: #54795e; color: #91d5a4; background: #192d20; }
.crate-copy { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.crate-copy h3 { margin-top: 8px; font-size: .9rem; }
.crate-copy p { margin: 7px 0 12px; color: var(--hub-muted); font-size: .61rem; line-height: 1.45; }
.crate-rewards { display: flex; flex-wrap: wrap; gap: 5px; }
.crate-rewards span,
.game-tags i,
.rarity { padding: 4px 7px; border: 1px solid #303a4a; border-radius: 6px; color: #96a1b2; background: #18202c; font-size: .53rem; font-style: normal; }
.crate-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 15px; }
.crate-price { color: #e0bd72; font-size: .73rem; }
.crate-footer button { padding: 8px 11px; border: 1px solid #34724f; border-radius: 8px; color: #dff6e9; background: #143222; box-shadow: none; font-size: .59rem; }
.rarity.rare { color: #84b4e5; }
.rarity.epic { color: #c3a7ed; }
.rarity.event { color: #8edca9; }
.recent-drops { position: sticky; top: calc(var(--hub-topbar-height) + 20px); padding: 18px; }
.live-indicator { padding: 4px 6px; border-radius: 5px; color: #73d49f; background: #123021; font-size: .52rem; font-style: normal; }
.drop-feed { display: grid; gap: 8px; margin-top: 15px; }
.drop-entry { display: grid; grid-template-columns: 30px 1fr; gap: 9px; padding: 8px; border-radius: 8px; background: #141b26; }
.drop-entry > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #a8b3c2; background: #222b39; }
.drop-entry strong,
.drop-entry small { display: block; }
.drop-entry strong { font-size: .61rem; }
.drop-entry small { margin-top: 3px; color: var(--hub-muted); font-size: .53rem; }

.catalog-toolbar { display: grid; grid-template-columns: minmax(200px,280px) 1fr auto; align-items: center; gap: 12px; }
.catalog-search input { padding-right: 12px; }
.sort-select { display: flex; align-items: center; gap: 7px; color: var(--hub-muted); font-size: .59rem; white-space: nowrap; }
.sort-select select,
.setup-panel select,
.setup-panel input,
.inventory-toolbar select,
.settings-group select { height: 38px; padding: 7px 28px 7px 10px; border: 1px solid var(--hub-line); border-radius: 8px; color: var(--hub-text); background: #131a25; box-shadow: none; font-size: .64rem; }
.catalog-grid { grid-template-columns: repeat(auto-fill,minmax(220px,280px)); justify-content: start; gap: 16px; }
.catalog-grid .game-tile { display: flex; min-width: 0; width: 100%; min-height: 355px; aspect-ratio: 4 / 5; flex-direction: column; justify-content: flex-start; overflow: hidden; padding: 14px; border-width: 1px; border-radius: 14px; background: #0d121c; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.catalog-grid .game-tile::before { z-index: 1; background: rgba(3,6,11,.22); box-shadow: inset 0 -130px 95px rgba(2,4,8,.72); }
.catalog-grid .game-tile > *:not(.game-cover) { z-index: 2; }
.catalog-grid .game-tile:hover { transform: translateY(-4px); }
.catalog-grid .game-tile.selected { outline: 2px solid rgba(53,189,120,.65); outline-offset: 2px; }
.catalog-grid .game-logo { align-self: flex-start; margin: auto 0 8px; padding: 7px 9px; border: 1px solid rgba(230,238,245,.18); border-radius: 8px; color: #fff; background: rgba(5,9,15,.68); font-size: .9rem; text-shadow: 0 2px 8px #000; }
.catalog-grid .game-logo b { font-size: 1.08rem; }
.game-cover { position: absolute !important; z-index: 0 !important; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; margin: 0; border: 0; border-radius: inherit; background: #080d15; }
.game-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.game-cover-mines img { object-position: 50% 50%; }
.game-cover-bonus img { object-position: 50% 25%; }
.game-cover-fisher img { object-position: 50% 48%; }
.catalog-grid .game-tile:hover .game-cover img { transform: scale(1.035); }
.catalog-grid .tile-footer { align-items: flex-end; margin: 0; padding: 10px; border: 1px solid rgba(228,238,244,.17); border-radius: 9px; background: rgba(5,9,15,.72); }
.catalog-grid .tile-footer > span { font-size: .57rem; }
.catalog-grid .tile-footer strong { margin-top: 2px; font-size: .85rem; }
.catalog-grid .tile-footer em { padding: 6px 8px; border-radius: 8px; font-size: .53rem; }
.catalog-grid .game-card-meta,
.catalog-grid .game-tags { display: none; }
.game-card-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; padding: 10px 0; border-top: 1px solid rgba(220,235,240,.13); }
.game-card-meta small { display: block; color: #9ca7b7; font-size: .48rem; }
.game-card-meta small b { display: block; overflow: hidden; margin-top: 3px; color: #eef3f6; font-size: .54rem; text-overflow: ellipsis; white-space: nowrap; }
.game-card-meta .online-dot { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border: 0; }
.game-tags { display: flex; gap: 5px; margin-bottom: 10px; }
.favorite-button { position: absolute !important; z-index: 5 !important; top: 52px; right: 14px; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(230,238,244,.25); border-radius: 8px; color: #dfe5e9; background: rgba(8,12,20,.72); font-size: 1rem; }
.favorite-button.active { color: #e4bf68; background: rgba(45,37,21,.88); }
.hub-empty { padding: 55px 20px; border: 1px dashed #303a4b; border-radius: 12px; color: var(--hub-muted); text-align: center; }
.hub-empty > span { display: block; font-size: 2rem; }
.hub-empty h3 { margin: 12px 0 5px; color: var(--hub-text); }
.hub-empty p { margin: 0; font-size: .67rem; }

.battle-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.battle-action { display: grid; grid-template-columns: 42px 1fr; gap: 2px 11px; padding: 17px; color: var(--hub-text); box-shadow: none; text-align: left; }
.battle-action > span { display: grid; grid-row: span 2; place-items: center; width: 42px; height: 42px; border: 1px solid #344052; border-radius: 10px; color: #9ba8ba; background: #19212e; font-size: 1.05rem; }
.battle-action strong { align-self: end; font-size: .74rem; }
.battle-action small { color: var(--hub-muted); font-size: .56rem; font-weight: 650; }
.battle-action.primary-action { border-color: #347752; color: #e5f8ed; background: #122c1f; }
.battle-action.primary-action > span { border-color: #397c58; color: #76dda6; background: #173925; }
.season-badge,
.mission-reset { flex-direction: column; align-items: flex-end; gap: 2px; }
.season-badge span,
.mission-reset span { color: var(--hub-muted); font-size: .54rem; }
.season-badge strong,
.mission-reset strong { color: var(--hub-text); font-size: .85rem; }
.season-badge small { color: #72d39f; font-size: .55rem; }
.battle-list { display: grid; gap: 9px; }
.battle-room { display: grid; grid-template-columns: minmax(180px,1.5fr) repeat(4,minmax(80px,.55fr)) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--hub-line); border-radius: 10px; background: var(--hub-panel); }
.battle-room-main { display: grid; grid-template-columns: 38px 1fr; gap: 10px; }
.battle-room-main > span { display: grid; grid-row: span 2; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: #73d6a1; background: #163323; }
.battle-room strong,
.battle-room small { display: block; }
.battle-room strong { font-size: .67rem; }
.battle-room small { margin-top: 4px; color: var(--hub-muted); font-size: .54rem; }
.battle-room > span { color: var(--hub-muted); font-size: .58rem; }
.battle-room > span b { display: block; margin-top: 3px; color: #dce3e8; font-size: .64rem; }
.battle-room button { padding: 8px 11px; border: 1px solid #386f52; border-radius: 8px; color: #dff5e8; background: #153222; box-shadow: none; font-size: .58rem; }
.battle-scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; margin-top: 20px; padding: 18px; border: 1px solid #293443; border-radius: 11px; background: #111923; }
.battle-scoreboard > article { display: grid; justify-items: center; gap: 6px; }
.battle-scoreboard .avatar { width: 46px; height: 46px; border: 1px solid #3a4a5d; border-radius: 12px; color: #dbe4e9; background: #253140; box-shadow: none; }
.battle-scoreboard article strong { font-size: .66rem; }
.battle-scoreboard article b { color: #75d8a3; font-size: 1.15rem; }
.battle-scoreboard > div { display: grid; justify-items: center; gap: 4px; }
.battle-scoreboard > div strong { color: #e0be70; font-size: 1.1rem; }
.battle-scoreboard > div small { color: var(--hub-muted); font-size: .48rem; }
.battle-scoreboard > div span { color: #5d6b7d; font-size: .6rem; font-weight: 900; }
.battle-event-log { display: grid; gap: 6px; margin-top: 12px; padding: 13px; border: 1px solid #293443; border-radius: 9px; background: #141c27; }
.battle-event-log strong { font-size: .62rem; }
.battle-event-log p { margin: 0; color: var(--hub-muted); font-size: .55rem; }


.social-toolbar { display: grid; grid-template-columns: 260px 1fr; gap: 14px; }
.friend-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.friend-card { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 15px; border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-panel); }
.friend-card .avatar { width: 48px; height: 48px; border: 1px solid #394558; border-radius: 12px; color: #d4dde4; background: #202a38; box-shadow: none; }
.friend-card-copy strong,
.friend-card-copy small { display: block; }
.friend-card-copy strong { font-size: .73rem; }
.friend-card-copy small { margin-top: 4px; color: var(--hub-muted); font-size: .56rem; }
.friend-card-copy small.online { color: #69d19a; }
.friend-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid #222a38; }
.friend-actions button.primary-mini { border-color: #326d4d; color: #bde9d0; background: #143222; }
.friend-actions button.danger-mini { color: #d9949d; }

.compact-heading { align-items: center; }
.connection-state { display: flex; align-items: center; gap: 6px; color: var(--hub-muted); font-size: .58rem; }
.connection-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--hub-green); }
.chat-workspace { display: grid; grid-template-columns: 270px 1fr; height: min(720px,calc(100vh - 185px)); min-height: 540px; overflow: hidden; border-color: #26313e; background: #0b1118; }
.conversation-panel { display: flex; flex-direction: column; overflow: hidden; padding: 14px; border-right: 1px solid var(--hub-line); background: #0d141d; }
.channel-pills { display: flex; gap: 4px; margin: 11px 0; }
.channel-pills button { flex: 1; padding: 7px 4px; border: 0; border-radius: 7px; color: var(--hub-muted); background: transparent; box-shadow: none; font-size: .54rem; }
.channel-pills button.active { color: #7dd9a7; background: #122d20; }
.conversation-list { display: grid; align-content: start; gap: 5px; overflow-y: auto; }
.conversation { position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 9px; border: 1px solid transparent; border-radius: 10px; color: var(--hub-text); background: transparent; box-shadow: none; text-align: left; }
.conversation:hover,
.conversation.active { border-color: #2d3d4c; background: #17212c; }
.conversation.active::before { position: absolute; top: 10px; bottom: 10px; left: -1px; width: 3px; border-radius: 3px; background: #55d792; content: ""; }
.conversation .avatar { width: 38px; height: 38px; overflow: hidden; border: 1px solid #344354; border-radius: 10px; color: #ccd6df; background: #273241; box-shadow: none; }
.conversation strong,
.conversation small { display: block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation strong { font-size: .61rem; }
.conversation small { margin-top: 3px; color: var(--hub-muted); font-size: .51rem; }
.conversation time { color: #596678; font-size: .48rem; }
.conversation time b { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 10px; color: #07140d; background: #58d995; font-size: .48rem; }
.message-panel { display: grid; grid-template-rows: auto 1fr auto auto; min-width: 0; overflow: hidden; background: radial-gradient(circle at 85% 5%,rgba(53,114,81,.08),transparent 35%),#0a1017; }
.message-panel > header { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 12px 17px; border-bottom: 1px solid var(--hub-line); background: rgba(13,20,29,.88); }
.message-panel > header .avatar { width: 39px; height: 39px; overflow: hidden; border: 1px solid #354456; border-radius: 11px; color: #d8e2e7; background: #263140; box-shadow: none; }
.message-panel > header strong,
.message-panel > header small { display: block; }
.message-panel > header strong { font-size: .67rem; }
.message-panel > header small { margin-top: 3px; color: var(--hub-muted); font-size: .52rem; }
.message-panel > header button { margin-left: auto; padding: 6px; border: 0; color: var(--hub-muted); background: transparent; box-shadow: none; }
.chat-message-list { display: flex; flex-direction: column; gap: 13px; overflow-y: auto; padding: 20px; scroll-behavior: smooth; }
.chat-message { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: end; gap: 10px; max-width: min(78%,680px); }
.chat-message.own { align-self: flex-end; grid-template-columns: minmax(0,1fr) 36px; }
.chat-message > .avatar { width: 36px; height: 36px; overflow: hidden; border: 1px solid #344354; border-radius: 10px; color: #cbd4dd; background: #27313f; box-shadow: none; }
.chat-message.own > .avatar { grid-column: 2; grid-row: 1; border-color: #3b7658; }
.chat-message.own > .chat-bubble { grid-column: 1; grid-row: 1; }
.chat-bubble { min-width: 145px; padding: 10px 12px; border: 1px solid #293746; border-radius: 5px 14px 14px; background: #17222e; box-shadow: 0 7px 20px rgba(0,0,0,.12); }
.own .chat-bubble { border-color: #347451; border-radius: 14px 5px 14px 14px; background: linear-gradient(145deg,#153925,#123020); }
.chat-bubble header { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.chat-bubble header strong { color: #cdd6df; font-size: .57rem; }
.chat-bubble header time { color: #627084; font-size: .47rem; }
.chat-bubble p { margin: 0; color: #dbe1e6; font-size: .65rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat-bubble footer { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 7px; }
.chat-bubble footer button { padding: 0; border: 0; color: #718298; background: transparent; box-shadow: none; font-size: .48rem; }
.chat-bubble footer button:hover { color: #a9b8c8; }
.typing-indicator { min-height: 24px; padding: 3px 20px; color: #718094; font-size: .51rem; }
.chat-composer { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: end; gap: 8px; padding: 12px 15px 14px; border-top: 1px solid var(--hub-line); background: #0d141d; }
.chat-input-shell { position: relative; display: block; min-width: 0; }
.chat-composer textarea,
.chat-composer input { width: 100%; min-height: 42px; max-height: 110px; padding: 10px 56px 10px 12px; border: 1px solid #303d4c; border-radius: 11px; color: var(--hub-text); background: #131c26; box-shadow: none; resize: none; font-size: .65rem; line-height: 1.45; }
.chat-composer textarea:focus,
.chat-composer input:focus { border-color: #478466; outline: 0; box-shadow: 0 0 0 3px rgba(70,157,109,.12); }
.chat-input-shell small { position: absolute; right: 10px; bottom: 8px; color: #617083; font-size: .45rem; pointer-events: none; }
.chat-composer button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #303d4c; border-radius: 10px; color: #9ba7b7; background: #18232e; box-shadow: none; }
.chat-composer button:hover { border-color: #455568; color: #d5dce3; background: #202d39; }
.chat-composer .send-message { border-color: #419168; color: #07130d; background: var(--hub-green); }
.chat-composer .send-message:hover { border-color: #65e19e; color: #06130c; background: #65e19e; transform: translateY(-1px); }
.offline-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #667386; }
.chat-empty { align-self: center; margin: auto; }
.chat-empty > i { display: grid; width: 48px; height: 48px; margin: 0 auto 10px; place-items: center; border: 1px solid #2c3b49; border-radius: 14px; color: #68798b; background: #121c26; font-size: 1rem; }

.mission-page-list { display: grid; gap: 10px; }
.mission-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-panel); }
.mission-card > span:first-child { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: #79dca8; background: #153222; font-size: 1.05rem; }
.mission-card h3 { font-size: .72rem; }
.mission-card p { margin: 5px 0 8px; color: var(--hub-muted); font-size: .57rem; }
.mission-card .mission-progress { max-width: 520px; }
.mission-card-actions { display: grid; justify-items: end; gap: 7px; }
.mission-card-actions button { padding: 8px 11px; border: 1px solid #34734f; border-radius: 8px; color: #d8f0e3; background: #153222; box-shadow: none; font-size: .57rem; }
.mission-card-actions button:disabled { border-color: #303846; color: #657184; background: #171e28; cursor: not-allowed; }

.inventory-count { gap: 3px; }
.inventory-count strong { color: var(--hub-text); }
.inventory-count span { color: var(--hub-muted); font-size: .6rem; }
.inventory-layout { display: grid; grid-template-columns: 195px 1fr; align-items: start; gap: 18px; }
.inventory-categories { display: grid; gap: 3px; padding: 9px; border: 1px solid var(--hub-line); border-radius: 10px; background: var(--hub-panel); }
.inventory-categories button { display: flex; justify-content: space-between; padding: 9px 10px; border: 0; border-radius: 7px; color: #8e9aaa; background: transparent; box-shadow: none; font-size: .59rem; text-align: left; }
.inventory-categories button.active { color: #dff5e8; background: #153022; }
.inventory-categories button b { color: #667386; font-size: .52rem; }
.inventory-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 12px; }
.item-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.item-card { position: relative; overflow: hidden; border: 1px solid var(--hub-line); border-radius: 10px; background: var(--hub-panel); }
.item-visual { display: grid; height: 125px; place-items: center; border-bottom: 1px solid var(--hub-line); color: #748397; background: #151d28; font-size: 2.2rem; }
.item-card.rare .item-visual { color: #72a7dc; background: #142235; }
.item-card.epic .item-visual { color: #ad91d8; background: #211b31; }
.item-card.legendary .item-visual { color: #dfbb68; background: #2a2418; }
.item-copy { padding: 12px; }
.item-copy strong,
.item-copy small { display: block; }
.item-copy strong { overflow: hidden; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.item-copy small { margin-top: 4px; color: var(--hub-muted); font-size: .51rem; }
.item-actions { display: flex; gap: 5px; margin-top: 10px; }
.item-actions button { flex: 1; padding: 7px 5px; border: 1px solid #354052; border-radius: 7px; color: #bec8d1; background: #1a2230; box-shadow: none; font-size: .52rem; }
.item-actions button.equipped { border-color: #367653; color: #bce7ce; background: #143121; }
.item-favorite { position: absolute; top: 7px; right: 7px; width: 27px; height: 27px; padding: 0; border: 1px solid #354052; border-radius: 7px; color: #9aa6b5; background: #131a24; box-shadow: none; }
.item-favorite.active { color: #dfbc6b; }

.shop-feature { display: grid; grid-template-columns: 1fr 300px; min-height: 245px; overflow: hidden; padding: 28px; border-color: #3b4733; background: #181a13; }
.shop-feature > div:first-child { align-self: center; }
.shop-feature h3 { margin-top: 12px; font-size: 1.4rem; }
.shop-feature p { max-width: 540px; margin: 8px 0 13px; color: #9fa496; font-size: .68rem; line-height: 1.5; }
.shop-feature > div:first-child > strong { display: block; margin-bottom: 14px; color: #e1bc6a; font-size: .78rem; }
.shop-preview { position: relative; display: grid; place-items: center; }
.shop-preview span { position: relative; z-index: 1; display: grid; place-items: center; width: 118px; height: 118px; border: 9px solid #947944; border-radius: 50%; color: #dfc17c; background: #252217; font-size: 2rem; font-weight: 950; }
.shop-preview i { position: absolute; width: 180px; height: 180px; border: 1px solid #514831; border-radius: 50%; }
.shop-balance { min-width: 170px; }

.achievement-summary { display: grid; grid-template-columns: auto auto; min-width: 210px; }
.achievement-summary strong { grid-row: span 2; color: #74d8a2; font-size: 1.3rem; }
.achievement-summary span { color: var(--hub-muted); font-size: .55rem; }
.achievement-summary i { width: 120px; }
.achievement-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.achievement-card { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; padding: 15px; border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-panel); }
.achievement-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid #3c4859; border-radius: 12px; color: #d9b96f; background: #2b261a; font-size: 1.2rem; }
.achievement-card.locked { opacity: .58; }
.achievement-card.locked .achievement-icon { color: #687487; background: #1a222e; }
.achievement-card h3 { font-size: .68rem; }
.achievement-card p { margin: 5px 0 0; color: var(--hub-muted); font-size: .54rem; line-height: 1.4; }
.achievement-rarity { color: #78869a; font-size: .5rem; white-space: nowrap; }

.profile-page-hero { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 235px; padding: 28px; }
.profile-identity { display: flex; align-items: center; gap: 20px; }
.profile-large-avatar { display: grid; place-items: center; width: 110px; height: 110px; overflow: hidden; border: 3px solid #42775b; border-radius: 24px; color: #e8fff2; background: #183628; font-size: 2rem; font-weight: 900; }
.profile-large-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity h2 { margin: 8px 0 6px; font-size: 1.8rem; }
.profile-identity p { margin-bottom: 16px; color: var(--hub-muted); font-size: .63rem; }
.profile-identity p b { color: #d6b76d; }
.status-badge { padding: 5px 8px; border: 1px solid #2d6749; border-radius: 7px; color: #76d9a4; background: #112c1e; font-size: .55rem; }
.status-badge i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--hub-green); }
.profile-level-card { display: grid; width: min(320px,38%); gap: 8px; padding: 19px; border: 1px solid #2e3949; border-radius: 11px; background: #141c27; }
.profile-level-card > span { color: #72d6a0; font-size: .62rem; font-weight: 850; }
.profile-level-card > strong { font-size: 1rem; }
.profile-level-card small { color: var(--hub-muted); font-size: .55rem; }
.profile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-columns > section { min-height: 250px; padding: 19px; }
.pinned-achievements,
.activity-list { display: grid; gap: 8px; margin-top: 15px; }
.pinned-entry,
.activity-entry { display: grid; grid-template-columns: 35px 1fr; gap: 10px; padding: 9px; border-radius: 8px; background: #151d28; }
.pinned-entry > span,
.activity-entry > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; color: #d8b76b; background: #2c271a; }
.pinned-entry strong,
.pinned-entry small,
.activity-entry strong,
.activity-entry small { display: block; }
.pinned-entry strong,
.activity-entry strong { font-size: .62rem; }
.pinned-entry small,
.activity-entry small { margin-top: 3px; color: var(--hub-muted); font-size: .52rem; }

.ranking-tabs { padding-bottom: 4px; border-bottom: 1px solid var(--hub-line); }
.ranking-view .community-grid { grid-template-columns: 1.15fr .85fr; gap: 15px; }
.ranking-view .community-grid.single-ranking { grid-template-columns: minmax(0,900px); }
.ranking-view .community-card { padding: 18px; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-panel); box-shadow: none; }
.ranking-view .community-card .section-title h2 { font-size: 1rem; }
.ranking-view .player-row,
.ranking-view .win-entry { border-color: #252e3d; border-radius: 9px; background: #151d28; }
.ranking-mock-list { display: grid; width: min(100%,900px); gap: 7px; }
.ranking-mock-list > button { display: grid; grid-template-columns: 38px 38px minmax(130px,1fr) minmax(150px,auto) 45px; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid var(--hub-line); border-radius: 9px; color: var(--hub-text); background: var(--hub-panel); box-shadow: none; text-align: left; }
.ranking-mock-list > button > b { color: #758195; font-size: .62rem; }
.ranking-mock-list .avatar { width: 38px; height: 38px; border: 0; border-radius: 9px; color: #d6dfe5; background: #24303e; box-shadow: none; }
.ranking-mock-list strong,
.ranking-mock-list small { display: block; }
.ranking-mock-list strong { font-size: .65rem; }
.ranking-mock-list small { margin-top: 3px; color: var(--hub-muted); font-size: .51rem; }
.ranking-mock-list em { color: #dce4e8; font-size: .61rem; font-style: normal; font-weight: 800; text-align: right; }
.ranking-mock-list i { color: #70d19d; font-size: .53rem; font-style: normal; text-align: right; }

.settings-panel { z-index: 1400; padding: 20px; background: rgba(4,7,12,.9); backdrop-filter: none; }
.settings-sheet { width: min(1050px,100%); border: 1px solid var(--hub-line); border-radius: 14px; background: #0d121c; box-shadow: 0 25px 70px rgba(0,0,0,.45); }
.settings-header { border-bottom-color: var(--hub-line); background: #111722; }
.settings-header button { border: 1px solid #333d4d; color: #aab4c2; background: #1a222d; box-shadow: none; }
.settings-panel .card,
.settings-panel .history-card { border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-panel); box-shadow: none; }
.preferences-card { margin-bottom: 18px; padding: 18px; }
.settings-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-top: 16px; }
.settings-group { display: grid; align-content: start; gap: 12px; padding: 14px; border: 1px solid #232c3a; border-radius: 9px; background: #121923; }
.settings-group h4 { margin: 0 0 2px; color: #dce3e8; font-size: .68rem; }
.switch-row { position: relative; display: grid; grid-template-columns: 1fr 34px; align-items: center; gap: 10px; cursor: pointer; }
.switch-row strong,
.switch-row small { display: block; }
.switch-row strong { color: #cbd4dc; font-size: .58rem; }
.switch-row small { margin-top: 3px; color: #687588; font-size: .5rem; font-weight: 600; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row > i { position: relative; width: 32px; height: 18px; border: 1px solid #3a4557; border-radius: 12px; background: #202936; }
.switch-row > i::after { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #788496; transition: transform .15s ease,background .15s ease; content: ""; }
.switch-row input:checked + i { border-color: #347852; background: #153524; }
.switch-row input:checked + i::after { background: var(--hub-green); transform: translateX(14px); }
.range-row { display: grid; gap: 8px; }
.range-row > span { display: flex; justify-content: space-between; color: #cbd4dc; font-size: .58rem; }
.range-row output { color: #72d7a1; }
.range-row input { height: 5px; padding: 0; border: 0; background: #283241; box-shadow: none; accent-color: var(--hub-green); }
.danger-action { padding: 9px 11px; border: 1px solid #64343d; border-radius: 8px; color: #dc9aa3; background: #2b171c; box-shadow: none; font-size: .56rem; }

.mobile-bottom-nav { display: none; }
.sidebar-backdrop { display: none; }
.drawer-overlay { position: fixed; z-index: 1180; inset: 0; background: rgba(3,6,10,.72); }
.hub-drawer {
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(410px,100%);
  height: 100dvh;
  padding: 18px;
  border-left: 1px solid var(--hub-line);
  background: #0d121c;
  box-shadow: -20px 0 55px rgba(0,0,0,.36);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .2s ease,visibility .2s ease;
}
.hub-drawer.open { transform: none; visibility: visible; }
.hub-drawer > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--hub-line); }
.hub-drawer > header h2 { margin: 0; font-size: 1.2rem; }
.hub-drawer > header button,
.modal-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #333d4c; border-radius: 8px; color: #abb5c1; background: #171f2a; box-shadow: none; font-size: 1.05rem; }
.drawer-tools { display: grid; gap: 10px; padding: 13px 0; }
.compact-filters button { padding: 6px 8px; font-size: .55rem; }
.notification-list { display: grid; gap: 7px; overflow-y: auto; }
.notification-item { position: relative; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; padding: 11px; border: 1px solid #252e3d; border-radius: 9px; background: #131a25; }
.notification-item.unread { border-color: #2b5c43; background: #12251b; }
.notification-item > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: #83d9aa; background: #173424; }
.notification-item strong,
.notification-item small { display: block; }
.notification-item strong { font-size: .62rem; }
.notification-item p { margin: 4px 0 0; color: var(--hub-muted); font-size: .55rem; line-height: 1.4; }
.notification-item small { margin-top: 5px; color: #5e6a7b; font-size: .49rem; }
.notification-actions { display: flex; align-items: flex-start; gap: 4px; }
.notification-actions button { padding: 4px; border: 0; color: #748195; background: transparent; box-shadow: none; font-size: .55rem; }
.drawer-search { margin: 14px 0; }
.drawer-section-title { display: flex; justify-content: space-between; padding: 3px 2px 8px; color: var(--hub-muted); font-size: .57rem; font-weight: 800; text-transform: uppercase; }
.friend-drawer-list { display: grid; gap: 7px; overflow-y: auto; }
.friend-drawer-entry { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; padding: 9px; border-radius: 9px; background: #141c27; }
.friend-drawer-entry .avatar { width: 36px; height: 36px; border: 0; border-radius: 9px; color: #d1dbe2; background: #263140; box-shadow: none; }
.friend-drawer-entry strong,
.friend-drawer-entry small { display: block; }
.friend-drawer-entry strong { font-size: .62rem; }
.friend-drawer-entry small { margin-top: 3px; color: var(--hub-muted); font-size: .52rem; }
.friend-drawer-entry button { padding: 6px 8px; border: 1px solid #34704f; border-radius: 7px; color: #bce8ce; background: #143121; box-shadow: none; font-size: .51rem; }
.drawer-footer-link { display: block; margin-top: auto; padding: 13px 0 2px; border-top: 1px solid var(--hub-line); color: #75d5a1; font-size: .62rem; text-align: center; text-decoration: none; }
.chat-drawer .chat-message-list { flex: 1; margin: 10px -4px; padding: 10px 4px; }
.chat-drawer .chat-composer { grid-template-columns: 1fr auto; padding: 10px 0; }

.hub-modal { position: fixed; z-index: 1600; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(3,6,10,.86); }
.hub-modal > article { position: relative; width: min(720px,100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 24px; border: 1px solid var(--hub-line-strong); border-radius: 13px; background: #0e141e; box-shadow: 0 26px 70px rgba(0,0,0,.48); }
.modal-close { position: absolute; z-index: 2; top: 13px; right: 13px; }
.modal-heading { padding-right: 45px; }
.modal-heading h2 { margin: 0; font-size: 1.35rem; }
.modal-heading p { margin: 8px 0 0; color: var(--hub-muted); font-size: .66rem; line-height: 1.5; }
.modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.modal-form label { display: grid; gap: 6px; color: #929eb0; font-size: .59rem; }
.modal-form input,
.modal-form select { height: 40px; padding: 8px 10px; border: 1px solid var(--hub-line-strong); border-radius: 8px; color: var(--hub-text); background: #131b26; box-shadow: none; }
.modal-form .full { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }
.modal-chat-label { display: grid; gap: 7px; margin-top: 16px; color: var(--hub-muted); font-size: .59rem; }
.modal-chat-label input { height: 40px; padding: 8px 10px; border: 1px solid var(--hub-line-strong); border-radius: 8px; color: var(--hub-text); background: #131b26; box-shadow: none; }
.crate-detail-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 17px; }
.crate-detail-item { padding: 11px; border: 1px solid #2a3443; border-radius: 8px; background: #151d28; text-align: center; }
.crate-detail-item span { display: block; color: #92a0b1; font-size: .55rem; }
.crate-detail-item strong { display: block; margin-top: 5px; color: #dde4e9; font-size: .59rem; }
.open-count { display: flex; gap: 6px; margin-top: 16px; }
.open-count button { padding: 8px 12px; border: 1px solid #344052; border-radius: 8px; color: #aab5c3; background: #17202b; box-shadow: none; font-size: .58rem; }
.open-count button.active { border-color: #397c57; color: #80dbaa; background: #153122; }
.opening-preview { display: flex; gap: 7px; overflow: hidden; margin-top: 17px; padding: 12px; border: 1px solid #293342; border-radius: 9px; background: #0a0f17; }
.opening-preview span { display: grid; flex: 0 0 80px; height: 70px; place-items: center; border: 1px solid #344051; border-radius: 8px; color: #8d9aac; background: #1a2330; }
.search-results { display: grid; gap: 7px; margin-top: 18px; }
.search-results > button { display: grid; grid-template-columns: 36px 1fr; gap: 2px 10px; padding: 10px; border: 1px solid #293342; border-radius: 9px; color: var(--hub-text); background: #151d28; box-shadow: none; text-align: left; }
.search-results > button > span { display: grid; grid-row: span 2; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: #78d6a2; background: #153323; }
.search-results > button strong { align-self: end; font-size: .62rem; }
.search-results > button small { color: var(--hub-muted); font-size: .52rem; }

.toast-region { position: fixed; z-index: 1900; right: 18px; bottom: 18px; display: grid; width: min(360px,calc(100% - 36px)); gap: 8px; }
.hub-toast { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid #2e6549; border-radius: 9px; color: #dfe9e3; background: #12261b; box-shadow: 0 16px 36px rgba(0,0,0,.3); animation: toast-in .18s ease both; }
.hub-toast.error { border-color: #63343e; background: #28171c; }
.hub-toast > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #76daa4; background: #173525; }
.hub-toast.error > span { color: #e59aa5; background: #3a1e25; }
.hub-toast p { margin: 0; font-size: .61rem; line-height: 1.4; }
.hub-toast button { padding: 3px; border: 0; color: #798698; background: transparent; box-shadow: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1240px) {
  :root { --hub-sidebar-width: 84px; }
  .sidebar-brand { justify-content: center; padding-inline: 10px; }
  .sidebar-brand > span:last-child,
  .sidebar-profile-copy,
  .sidebar-profile .compact-level,
  .sidebar-balance,
  .daily-bonus > span:last-child,
  .sidebar-nav p,
  .sidebar-nav a:not(.active)::after,
  .sidebar-nav a { font-size: 0; }
  .sidebar-profile { display: grid; justify-items: center; padding-inline: 9px; }
  .daily-bonus { justify-content: center; width: 44px; padding: 8px; }
  .sidebar-nav { padding-inline: 9px; }
  .sidebar-nav a { display: grid; grid-template-columns: 1fr; place-items: center; min-height: 43px; padding: 7px; }
  .sidebar-nav .nav-icon { width: 30px; height: 30px; font-size: .85rem; }
  .sidebar-nav .nav-count { position: absolute; top: 2px; right: 2px; font-size: .48rem; }
  .sidebar-nav a.active::before { left: -9px; }
  .sidebar-footer button { grid-template-columns: 1fr; justify-items: center; font-size: 0; }
  .sidebar-footer button .nav-icon { font-size: .9rem; }
  .hub-topbar { grid-template-columns: minmax(150px,1fr) minmax(190px,350px) auto auto; }
  .topbar-profile { display: none; }
  .mode-grid { grid-template-columns: repeat(2,1fr); }
  .catalog-toolbar { grid-template-columns: minmax(200px,270px) 1fr; }
  .catalog-toolbar .sort-select { grid-column: 1 / -1; justify-self: end; }
  .catalog-grid { grid-template-columns: repeat(auto-fill,minmax(220px,280px)); }
  .crate-grid { grid-template-columns: repeat(2,1fr); }
  .item-grid { grid-template-columns: repeat(3,1fr); }
  .friend-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .hub-topbar { grid-template-columns: minmax(145px,1fr) auto auto; padding-inline: 17px; }
  .global-search { display: none; }
  .home-primary-grid,
  .home-secondary-grid,
  .ranking-view .community-grid,
  .split-content,
  .recent-drops { position: static; }
  .battle-actions { grid-template-columns: 1fr; }
  .battle-room { grid-template-columns: minmax(180px,1fr) repeat(2,minmax(80px,.5fr)) auto; }
  .battle-room > span:nth-of-type(n+3) { display: none; }
  .setup-panel { grid-template-columns: repeat(2,1fr); }
  .setup-panel .eyebrow,
  .setup-panel h3,
  .setup-panel .primary-action { grid-column: 1 / -1; }
  .social-toolbar { grid-template-columns: 1fr; }
  .chat-workspace { grid-template-columns: 230px 1fr; }
  .inventory-layout { grid-template-columns: 1fr; }
  .inventory-categories { display: flex; overflow-x: auto; }
  .inventory-categories button { flex: 0 0 auto; gap: 8px; white-space: nowrap; }
  .settings-grid { grid-template-columns: 1fr; }
  .profile-page-hero { align-items: flex-start; flex-direction: column; }
  .profile-level-card { width: 100%; }
}

@media (max-width: 720px) {
  :root { --hub-sidebar-width: 0px; --hub-topbar-height: 66px; }
  body.hub-authenticated { padding-bottom: 61px; }
  .app-sidebar { width: min(290px,86vw); transform: translateX(-102%); transition: transform .2s ease; }
  .app-sidebar.open { transform: none; }
  .sidebar-brand { justify-content: flex-start; padding-inline: 18px; }
  .sidebar-brand > span:last-child,
  .sidebar-profile-copy,
  .sidebar-profile .compact-level,
  .sidebar-balance,
  .daily-bonus > span:last-child,
  .sidebar-nav p { display: block; }
  .sidebar-profile { display: block; padding-inline: 16px; }
  .daily-bonus { justify-content: flex-start; width: 100%; padding: 9px 10px; }
  .sidebar-nav { padding-inline: 10px; }
  .sidebar-nav a { display: grid; grid-template-columns: 30px 1fr auto; justify-items: stretch; min-height: 39px; padding: 8px 10px; font-size: .75rem; }
  .sidebar-nav .nav-count { position: static; font-size: .48rem; }
  .sidebar-nav a.active::before { left: -10px; }
  .sidebar-footer button { grid-template-columns: 22px 1fr; justify-items: stretch; font-size: .72rem; }
  .sidebar-footer button .nav-icon { font-size: .9rem; }
  .sidebar-backdrop { position: fixed; z-index: 310; inset: 0; border: 0; border-radius: 0; background: rgba(3,6,10,.75); box-shadow: none; }
  .hub-main { margin-left: 0; }
  .hub-topbar { grid-template-columns: auto minmax(100px,1fr) auto auto; min-height: 66px; gap: 9px; padding: 9px 12px; }
  .mobile-menu-button { display: grid !important; }
  .topbar-heading small { display: none; }
  .topbar-actions .topbar-icon:nth-child(2) { display: none; }
  .hub-topbar .balance-box { min-width: 82px; padding-left: 8px; }
  .hub-topbar .balance-box strong { font-size: .7rem; }
  .hub-route-content { padding: 20px 12px 30px; }
  .hub-view { gap: 18px; }
  .home-welcome,
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .home-level { width: 100%; min-width: 0; }
  .continue-card { min-height: 230px; }
  .continue-card::before { box-shadow: inset 380px 0 170px rgba(3,6,11,.92); }
  .continue-art .continue-collage img { width: 100%; height: 100%; }
  .continue-copy { width: min(66%,430px); padding: 19px; }
  .event-card { min-height: 230px; }
  .mode-grid,
  .stats-grid,
  .catalog-grid,
  .crate-grid,
  .friend-grid,
  .achievement-grid,
  .profile-columns { grid-template-columns: 1fr; }
  .mode-card { min-height: 190px; }
  .catalog-grid { grid-template-columns: minmax(0,360px); justify-content: center; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-toolbar .sort-select { grid-column: auto; justify-self: stretch; }
  .catalog-toolbar .filter-tabs { grid-row: 2; }
  .sort-select select { width: 100%; }
  .catalog-grid .game-tile { min-height: 365px; aspect-ratio: 4 / 5; }
  .game-cover { height: 100%; }
  .battle-room { grid-template-columns: 1fr auto; }
  .battle-room > span { display: none; }
  .hero-stats { flex-wrap: wrap; }
  .setup-panel { grid-template-columns: 1fr; }
  .setup-panel .eyebrow,
  .setup-panel h3,
  .setup-panel .primary-action { grid-column: auto; }
  .chat-workspace { display: block; height: auto; min-height: 0; }
  .conversation-panel { min-height: 210px; max-height: 260px; border-right: 0; border-bottom: 1px solid var(--hub-line); }
  .message-panel { min-height: 520px; }
  .mission-card { grid-template-columns: 40px 1fr; }
  .mission-card-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  .item-grid { grid-template-columns: repeat(2,1fr); }
  .shop-feature { grid-template-columns: 1fr; }
  .shop-preview { min-height: 180px; }
  .profile-identity { align-items: flex-start; flex-direction: column; }
  .profile-large-avatar { width: 88px; height: 88px; border-radius: 19px; }
  .profile-stats-grid { grid-template-columns: repeat(2,1fr); }
  .ranking-mock-list > button { grid-template-columns: 34px 36px 1fr auto; }
  .ranking-mock-list > button > em { grid-column: 3 / -1; text-align: left; }
  .ranking-mock-list > button > i { grid-column: 4; grid-row: 1; }
  .mobile-bottom-nav { position: fixed; z-index: 300; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5,1fr); height: 61px; border-top: 1px solid var(--hub-line); background: #070b11; box-shadow: 0 -10px 30px rgba(0,0,0,.22); }
  .mobile-bottom-nav a,
  .mobile-bottom-nav button { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; padding: 5px 2px; border: 0; border-radius: 0; color: #768295; background: transparent; box-shadow: none; font-size: .48rem; font-weight: 750; text-decoration: none; }
  .mobile-bottom-nav > * > i { font-size: .95rem; }
  .mobile-bottom-nav .active { color: #71d49f; }
  .mobile-bottom-nav b { position: absolute; top: 5px; left: calc(50% + 7px); display: grid; min-width: 14px; height: 14px; place-items: center; padding: 0 3px; border-radius: 8px; color: #07120c; background: var(--hub-green); font-size: .43rem; }
  .hub-drawer { width: 100%; padding-bottom: 72px; border-left: 0; }
  .hub-modal { padding: 0; }
  .hub-modal > article { width: 100%; max-height: 100dvh; min-height: 100dvh; border: 0; border-radius: 0; }
  .modal-form { grid-template-columns: 1fr; }
  .modal-form .full { grid-column: auto; }
  .crate-detail-grid { grid-template-columns: repeat(2,1fr); }
  .settings-panel { padding: 0; }
  .settings-sheet { min-height: 100dvh; border: 0; border-radius: 0; }
  .settings-header { position: sticky; z-index: 2; top: 0; }
}

@media (max-width: 430px) {
  .topbar-actions .topbar-icon:first-child { display: none; }
  .hub-topbar { grid-template-columns: auto minmax(90px,1fr) auto; }
  .continue-card { min-height: 360px; align-items: flex-end; }
  .continue-card::before { box-shadow: inset 0 -300px 190px rgba(3,6,11,.94); }
  .continue-art { min-height: 0; border: 0; }
  .continue-art span { top: 12px; bottom: auto; }
  .continue-copy { width: 100%; margin-top: auto; padding: 22px 19px; }
  .page-tabs button,
  .filter-tabs button { padding: 7px 9px; }
  .item-grid { grid-template-columns: 1fr; }
  .profile-stats-grid { grid-template-columns: 1fr; }
  .chat-message { max-width: 92%; }
}

@media (max-width: 860px) {
}

@media (max-width: 600px) {
}

@media (prefers-reduced-motion: reduce) {
  .hub-view,
  .hub-toast,
  .app-sidebar,
  .hub-drawer { transition: none; }
}

.hub-reduced-motion .hub-view,
.hub-reduced-motion .hub-toast { animation: none !important; }
.hub-reduced-motion .app-sidebar,
.hub-reduced-motion .hub-drawer,
.hub-reduced-motion * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }

/* Personalizowane postacie Pixi */
.character-editor {
  margin: 18px 0;
  padding: 18px;
}

.character-editor form {
  margin-top: 16px;
}

.character-editor-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.character-preview-shell {
  position: sticky;
  top: 0;
  display: grid;
  align-self: start;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #2c3947;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 42%, rgba(53,189,120,.15), transparent 34%),
    linear-gradient(180deg, #111a22, #080d13);
}

.character-preview-shell::before {
  position: absolute;
  right: 12%;
  bottom: 34px;
  left: 12%;
  height: 22px;
  content: "";
  border-radius: 50%;
  background: rgba(0,0,0,.38);
  filter: blur(8px);
}

.character-preview-shell > span {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 10px;
  left: 12px;
  color: #738393;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.character-preview,
.character-canvas-host {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.character-preview canvas,
.character-canvas-host canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
}

.character-preview-error {
  display: grid;
  place-items: center;
  padding: 18px;
  color: #c59696;
  font-size: .62rem;
  text-align: center;
}

.character-preview-editor {
  width: 100%;
  height: 560px;
}

.character-controls {
  display: grid;
  align-content: start;
  gap: 12px;
}

.character-controls fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid #26313e;
  border-radius: 10px;
  padding: 14px;
  background: #111822;
}

.character-controls legend {
  padding: 0 7px;
  color: #8d9aaa;
  font-size: .54rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.character-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.character-color-grid label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 43px;
  border: 1px solid #293442;
  border-radius: 8px;
  padding: 7px 8px;
  color: #b2bdc9;
  background: #151d28;
  font-size: .54rem;
  font-weight: 750;
}

.character-color-grid input[type="color"] {
  width: 34px;
  height: 28px;
  margin: 0;
  border: 1px solid #3a4655;
  border-radius: 7px;
  padding: 2px;
  background: #0a0f15;
  cursor: pointer;
}

.character-size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.character-size-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #b2bdc9;
  font-size: .55rem;
  font-weight: 750;
}

.character-size-grid label > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.character-size-grid output {
  color: #79d9a7;
  font-variant-numeric: tabular-nums;
}

.character-size-grid input[type="range"] {
  width: 100%;
  accent-color: var(--hub-green);
}

.character-clothing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.character-clothing-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  border: 1px solid #2a3743;
  border-radius: 8px;
  color: #b5c1cc;
  background: #151d28;
  cursor: pointer;
  font-size: .55rem;
  font-weight: 800;
}

.character-clothing-grid input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--hub-green);
}

.character-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
  border-top: 1px solid #25303d;
  padding-top: 14px;
}

.character-form-footer .message {
  min-height: 0;
  margin: 0;
}

.character-form-footer > div {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.character-form-footer button {
  min-height: 39px;
}

.profile-character-preview {
  flex: 0 0 220px;
  width: 220px;
  height: 270px;
  overflow: hidden;
  border: 1px solid #2b4d3b;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 44%, rgba(53,189,120,.13), transparent 42%),
    #0b1216;
}

.profile-page-hero:has(.profile-character-preview) {
  min-height: 330px;
}

.public-profile-card {
  width: min(930px, 100%);
}

.public-profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.public-character-preview {
  min-height: 540px;
  overflow: hidden;
  border: 1px solid #334151;
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 42%, rgba(91,123,255,.14), transparent 40%),
    linear-gradient(180deg, #111a27, #090e16);
}

.public-profile-content {
  align-self: center;
  min-width: 0;
}

@media (max-width: 900px) {
  .character-editor-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .character-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .character-clothing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-identity:has(.profile-character-preview) {
    align-items: center;
    flex-direction: row;
  }

  .profile-character-preview {
    flex-basis: 190px;
    width: 190px;
    height: 245px;
  }
}

@media (max-width: 720px) {
  .character-editor {
    padding: 13px;
  }

  .character-editor-layout,
  .public-profile-layout {
    grid-template-columns: 1fr;
  }

  .character-preview-shell {
    position: relative;
    min-height: 430px;
  }

  .character-preview-editor {
    height: 430px;
  }

  .character-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .character-form-footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .public-character-preview {
    min-height: 430px;
  }

  .public-profile-content {
    align-self: auto;
  }
}

@media (max-width: 480px) {
  .character-color-grid,
  .character-size-grid {
    grid-template-columns: 1fr;
  }

  .profile-identity:has(.profile-character-preview) {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-character-preview {
    width: 100%;
    height: 300px;
  }
}

/* Studio kosmetyków v2 */
.character-view {
  max-width: 1500px;
  margin: 0 auto;
}

.character-editor {
  padding: 22px;
  background:
    radial-gradient(circle at 42% 42%, rgba(53,189,120,.045), transparent 35%),
    #0c121a !important;
}

.character-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.character-editor-heading h2,
.character-editor-heading h3 {
  margin: 3px 0 6px;
  color: #f0f5f2;
  font-size: 1.2rem;
}

.character-editor-heading > div > p:last-child {
  margin: 0;
  color: #7f8d99;
  font-size: .6rem;
  line-height: 1.55;
}

.character-studio {
  display: grid;
  grid-template-columns: 145px minmax(390px, 1fr) minmax(390px, 500px);
  gap: 15px;
  min-height: 690px;
}

.character-categories {
  display: grid;
  align-content: start;
  gap: 5px;
  border: 1px solid #202c37;
  border-radius: 12px;
  padding: 8px;
  background: #0a1017;
}

.character-categories button {
  --character-category-color: #738392;
  --character-category-soft: #151f28;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 7px 9px;
  color: #8795a2;
  background: transparent;
  font-size: .57rem;
  font-weight: 800;
  text-align: left;
}

.character-categories button > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  color: var(--character-category-color);
  background: var(--character-category-soft);
  font-size: .78rem;
}

.character-categories [data-character-category="hair"] {
  --character-category-color: #c49df7;
  --character-category-soft: #281d38;
}

.character-categories [data-character-category="makeup"] {
  --character-category-color: #f49bc1;
  --character-category-soft: #351d2a;
}

.character-categories [data-character-category="skin"] {
  --character-category-color: #efb08d;
  --character-category-soft: #36241d;
}

.character-categories [data-character-category="eyes"] {
  --character-category-color: #7cc9ff;
  --character-category-soft: #172d3b;
}

.character-categories [data-character-category="eyebrows"] {
  --character-category-color: #d1b38b;
  --character-category-soft: #30271c;
}

.character-categories [data-character-category="nose"] {
  --character-category-color: #f2b28f;
  --character-category-soft: #35251c;
}

.character-categories [data-character-category="mouth"] {
  --character-category-color: #f0798b;
  --character-category-soft: #351b22;
}

.character-categories [data-character-category="tops"] {
  --character-category-color: #7fddbc;
  --character-category-soft: #173128;
}

.character-categories [data-character-category="tshirts"] {
  --character-category-color: #78b8f2;
  --character-category-soft: #182a3a;
}

.character-categories [data-character-category="pants"] {
  --character-category-color: #8198e5;
  --character-category-soft: #1c243b;
}

.character-categories [data-character-category="shoes"] {
  --character-category-color: #e2b46e;
  --character-category-soft: #33281a;
}

.character-categories button:hover {
  border-color: #283a45;
  color: #dce6e1;
  background: #111b23;
}

.character-categories button.active {
  border-color: #2e6d4e;
  color: #e8fff2;
  background: linear-gradient(90deg, rgba(53,189,120,.19), rgba(53,189,120,.06));
  box-shadow: inset 3px 0 #35bd78;
}

.character-categories button.active > span {
  color: var(--character-category-color);
  background: var(--character-category-soft);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--character-category-color) 35%, transparent);
}

.character-stage-column {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 9px;
  min-width: 0;
}

.character-stage-column .character-preview-shell {
  position: relative;
  top: auto;
  min-height: 650px;
  border-color: #263844;
  background:
    radial-gradient(circle at 50% 44%, rgba(53,189,120,.16), transparent 31%),
    radial-gradient(circle at 50% 92%, rgba(61,109,84,.16), transparent 23%),
    linear-gradient(180deg, #101b22 0%, #080d12 72%);
}

.character-stage-column .character-preview-shell::after {
  position: absolute;
  z-index: 0;
  top: 16px;
  right: 16px;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 50%;
  background: #35bd78;
  box-shadow: 0 0 15px rgba(53,189,120,.75);
}

.character-stage-column .character-preview-editor {
  height: 650px;
}

.character-stage-column .character-preview-shell > span {
  right: auto;
  bottom: 14px;
  left: 17px;
  width: auto;
  color: #647480;
  text-align: left;
}

.character-zoom-controls {
  position: absolute;
  z-index: 5;
  right: 13px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid #2b3a45;
  border-radius: 9px;
  padding: 4px;
  background: rgba(8,13,18,.9);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.character-zoom-controls button {
  display: grid;
  min-width: 29px;
  height: 29px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  color: #9caab4;
  background: transparent;
  box-shadow: none;
  font-size: .68rem;
}

.character-zoom-controls button:hover {
  color: #e9fff1;
  background: #1a282f;
}

.character-zoom-controls output {
  min-width: 43px;
  color: #d8e3de;
  font-size: .53rem;
  font-weight: 900;
  text-align: center;
}

.character-zoom-controls button:last-child {
  border-left: 1px solid #293740;
  border-radius: 0 6px 6px 0;
  font-size: .5rem;
}

.character-draft-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid #24323b;
  border-radius: 9px;
  color: #778690;
  background: #0b1117;
  font-size: .52rem;
  font-weight: 800;
}

.character-draft-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4dbb7b;
  box-shadow: 0 0 8px rgba(77,187,123,.6);
}

.character-draft-state.dirty {
  border-color: #66552c;
  color: #dec37f;
  background: #17150e;
}

.character-draft-state.dirty i {
  background: #e8bd55;
  box-shadow: 0 0 8px rgba(232,189,85,.6);
}

.character-catalog {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #202c37;
  border-radius: 12px;
  padding: 15px;
  background: #0a1017;
}

.character-catalog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  border-bottom: 1px solid #1f2b35;
  padding-bottom: 13px;
}

.character-catalog > header p,
.character-gear-panel header p {
  margin: 0 0 4px;
  color: #63737f;
  font-size: .45rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.character-catalog h3,
.character-catalog h4,
.character-gear-panel h3,
.character-gear-panel h4 {
  margin: 0;
  color: #edf4f0;
  font-size: .86rem;
}

.character-catalog > header > div > span {
  display: block;
  margin-top: 6px;
  color: #71808b;
  font-size: .51rem;
  line-height: 1.45;
}

.character-gear-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  border: 1px solid #2d5843;
  border-radius: 8px;
  padding: 0 10px;
  color: #8bd9ad;
  background: #11241b;
  box-shadow: none;
  font-size: .5rem;
  font-weight: 900;
}

.character-gear-button:hover,
.character-gear-button[aria-expanded="true"] {
  border-color: #3d8f65;
  color: #dffff0;
  background: #173728;
}

.character-gear-button[hidden] {
  display: none;
}

.character-cosmetic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  max-height: 570px;
  overflow-y: auto;
  padding: 14px 2px 2px;
}

.character-cosmetic-card {
  display: grid;
  grid-template-rows: 155px auto auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #26333e;
  border-radius: 10px;
  padding: 7px;
  color: #adb9c2;
  background: #111922;
  box-shadow: none;
  text-align: left;
}

.character-cosmetic-card:hover {
  border-color: #3b4f5b;
  background: #15212a;
  transform: translateY(-1px);
}

.character-cosmetic-card.selected {
  border-color: #3b9a69;
  color: #e9fff2;
  background: #13271e;
  box-shadow: inset 0 0 0 1px rgba(53,189,120,.22);
}

.character-cosmetic-visual {
  display: grid;
  min-width: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid #25313a;
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%),
    #0b1117;
  background-size: 18px 18px;
}

.character-cosmetic-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.character-cosmetic-visual b {
  color: #657581;
  font-size: 2rem;
}

.character-cosmetic-card > strong {
  overflow: hidden;
  margin-top: 8px;
  font-size: .56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-cosmetic-card > small {
  margin-top: 3px;
  color: #647581;
  font-size: .45rem;
}

.character-cosmetic-card.selected > small {
  color: #70d29d;
}

.character-gear-panel {
  position: absolute;
  z-index: 8;
  inset: 0;
  overflow-y: auto;
  padding: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(53,189,120,.08), transparent 32%),
    #0b1219;
}

.character-gear-panel[hidden] {
  display: none;
}

.character-gear-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #23313a;
  padding-bottom: 14px;
}

.character-gear-panel > header button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #2b3944;
  border-radius: 8px;
  padding: 0;
  color: #8c9aa5;
  background: #131d25;
  box-shadow: none;
  font-size: 1rem;
}

.character-gear-controls {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.character-gear-field {
  display: grid;
  gap: 12px;
  border: 1px solid #26343e;
  border-radius: 10px;
  padding: 13px;
  background: #111a22;
}

.character-gear-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.character-gear-field strong {
  color: #b9c5cd;
  font-size: .55rem;
}

.character-gear-field output {
  color: #79d9a7;
  font-size: .52rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.character-gear-field input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: #35bd78;
}

.character-gear-field.color {
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
}

.character-gear-field.color > span {
  display: grid;
  justify-items: start;
}

.character-gear-field.color input[type="color"] {
  width: 54px;
  height: 42px;
  border: 1px solid #3b4b56;
  border-radius: 8px;
  padding: 3px;
  background: #090e13;
}

.character-form-footer {
  border-top-color: #22303a;
}

@media (max-width: 1220px) {
  .character-studio {
    grid-template-columns: 125px minmax(340px, 1fr) minmax(330px, 400px);
  }

  .character-stage-column .character-preview-shell,
  .character-stage-column .character-preview-editor {
    min-height: 590px;
    height: 590px;
  }

  .character-cosmetic-grid {
    grid-template-columns: 1fr;
    max-height: 510px;
  }
}

@media (max-width: 940px) {
  .character-studio {
    grid-template-columns: minmax(300px, 1fr) minmax(330px, 1fr);
  }

  .character-categories {
    grid-column: 1 / -1;
    display: flex;
    overflow-x: auto;
  }

  .character-categories button {
    flex: 0 0 105px;
  }

  .character-stage-column .character-preview-shell,
  .character-stage-column .character-preview-editor {
    min-height: 530px;
    height: 530px;
  }
}

@media (max-width: 700px) {
  .character-editor {
    padding: 12px;
  }

  .character-editor-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .character-studio {
    grid-template-columns: 1fr;
  }

  .character-categories {
    grid-column: auto;
  }

  .character-stage-column .character-preview-shell,
  .character-stage-column .character-preview-editor {
    min-height: 480px;
    height: 480px;
  }

  .character-catalog {
    min-height: 460px;
  }

  .character-cosmetic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .character-cosmetic-card {
    grid-template-rows: 130px auto auto;
  }
}

@media (max-width: 430px) {
  .character-cosmetic-grid {
    grid-template-columns: 1fr;
  }

  .character-cosmetic-card {
    grid-template-rows: 160px auto auto;
  }

  .character-zoom-controls button:last-child {
    display: none;
  }
}

/* Profil gracza v2 */
.profile-view {
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  gap: 18px;
}

.profile-view .profile-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px,.8fr) minmax(340px,1.35fr) minmax(250px,.72fr);
  align-items: stretch;
  min-height: 350px;
  overflow: hidden;
  padding: 0;
  border-color: #23303e;
  background: #090f17;
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}

.profile-view .profile-page-hero:has(.profile-character-preview) {
  min-height: 350px;
}

.profile-hero-character {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid #25342f;
  background: #0b1715;
}

.profile-hero-character::after {
  position: absolute;
  right: 12%;
  bottom: 18px;
  left: 12%;
  height: 1px;
  background: #28463a;
  box-shadow: 0 0 25px rgba(53,189,120,.22);
  content: "";
}

.profile-view .profile-character-preview {
  z-index: 1;
  flex: none;
  width: min(290px,100%);
  height: 345px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.profile-view .profile-identity {
  display: block;
  align-self: center;
  min-width: 0;
  padding: 34px clamp(26px,3vw,48px);
}

.profile-view .profile-identity h2 {
  overflow: hidden;
  margin: 14px 0 8px;
  color: #f5f8f7;
  font-size: clamp(2rem,3.3vw,3.1rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-view .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-color: #2c6248;
  color: #8ee2b4;
  background: #0d2419;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .02em;
}

.profile-view .status-badge i {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(53,189,120,.12);
}

.profile-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  color: #8490a1 !important;
  font-size: .69rem !important;
}

.profile-title-line > i {
  color: #cfad61;
  font-size: .7rem;
}

.profile-title-line b {
  color: #e0c176 !important;
}

.profile-bio {
  max-width: 620px;
  min-height: 2.9em;
  margin: 20px 0 22px !important;
  color: #a4afbd !important;
  font-size: .77rem !important;
  line-height: 1.6;
}

.profile-edit-action {
  min-height: 39px;
  border-color: #304051;
  font-weight: 800;
}

.profile-edit-action > i {
  color: #74d7a2;
  font-size: .7rem;
}

.profile-view .profile-level-card {
  align-self: center;
  width: auto;
  min-width: 0;
  margin: 28px;
  padding: 23px;
  border-color: #294034;
  border-radius: 13px;
  background: #0d1917;
}

.profile-level-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-view .profile-level-heading > span {
  color: #8de0b3;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-view .profile-level-heading > i {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #2d5a44;
  border-radius: 8px;
  color: #76d9a5;
  background: #10251c;
  font-size: .72rem;
}

.profile-view .profile-level-card > strong {
  margin-top: 10px;
  color: #f1f6f3;
  font-size: clamp(1.35rem,2vw,1.85rem);
  letter-spacing: -.035em;
}

.profile-xp-track {
  display: block;
  height: 9px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid #263a33;
  border-radius: 999px;
  background: #151f23;
}

.profile-xp-track > b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #45c983;
  transition: width .35s ease;
}

.profile-view .profile-level-card > small {
  margin-top: 2px;
  color: #798797;
  font-size: .61rem;
  line-height: 1.45;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}

.profile-stat-card {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: #090e15;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
  transition: border-color .16s ease,background-color .16s ease,transform .16s ease;
}

.profile-stat-card:hover {
  border-color: #2a3b49;
  background: #0c131c;
  transform: translateY(-2px);
}

.profile-stat-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #28543f;
  border-radius: 10px;
  color: #72d7a0;
  background: #10271c;
  font-size: .92rem;
}

.profile-stat-card > div {
  min-width: 0;
}

.profile-stat-card > div > span,
.profile-stat-card strong,
.profile-stat-card small {
  display: block;
}

.profile-stat-card > div > span {
  color: #7f8c9d;
  font-size: .59rem;
  font-weight: 800;
}

.profile-stat-card strong {
  overflow: hidden;
  margin-top: 5px;
  color: #eef4f1;
  font-size: 1.08rem;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stat-card small {
  overflow: hidden;
  margin-top: 4px;
  color: #5f6d7e;
  font-size: .52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 7px;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: #080d14;
  scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #788596;
  background: transparent;
  box-shadow: none;
  font-size: .65rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color .15s ease,border-color .15s ease,background-color .15s ease;
}

.profile-tabs button:hover {
  color: #e5ece8;
  background: #111821;
}

.profile-tabs button.active {
  border-color: #2a684a;
  color: #8be0b2;
  background: #10271c;
}

.profile-tabs button > i {
  font-size: .72rem;
}

.profile-tab-panels,
.profile-tab-panel {
  min-width: 0;
}

.profile-tab-panel[hidden] {
  display: none !important;
}

.profile-overview-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 310px;
  align-items: start;
  gap: 16px;
}

.profile-main-column,
.profile-side-column {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.profile-content-card,
.profile-side-card,
.profile-detail-panel {
  padding: 20px;
  border-color: #1f2936;
  background: #090e15;
}

.profile-section-heading,
.profile-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.profile-section-heading .eyebrow,
.profile-detail-heading .eyebrow,
.reputation-heading .eyebrow {
  margin-bottom: 5px;
  color: #61c991;
  font-size: .54rem;
}

.profile-section-heading h3,
.profile-detail-heading h3,
.reputation-heading h3 {
  margin: 0;
  color: #edf3f0;
  font-size: .96rem;
  letter-spacing: -.02em;
}

.profile-section-heading > div > p:last-child,
.profile-detail-heading > div > p:last-child {
  margin: 6px 0 0;
  color: #697688;
  font-size: .59rem;
  line-height: 1.45;
}

.profile-section-heading > button,
.profile-detail-heading > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 31px;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #2b3949;
  border-radius: 8px;
  color: #aeb9c5;
  background: #111821;
  box-shadow: none;
  font-size: .56rem;
  font-weight: 800;
  text-decoration: none;
}

.profile-section-heading > button:hover,
.profile-detail-heading > a:hover {
  border-color: #397356;
  color: #8cddb2;
  background: #102219;
}

.profile-pinned-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 17px;
}

.profile-achievement-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 180px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid #2b3542;
  border-radius: 11px;
  background: #0e151e;
  transition: border-color .16s ease,background-color .16s ease,transform .16s ease;
}

.profile-achievement-card:hover {
  border-color: #415064;
  background: #121b26;
  transform: translateY(-2px);
}

.profile-achievement-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid #5a4d2d;
  border-radius: 12px;
  color: #dfbd69;
  background: #282317;
  font-size: 1.05rem;
}

.profile-achievement-card.rare .profile-achievement-icon {
  border-color: #315778;
  color: #82bce8;
  background: #142337;
}

.profile-achievement-card.epic .profile-achievement-icon {
  border-color: #594a72;
  color: #bba0e1;
  background: #211b31;
}

.profile-achievement-card strong,
.profile-achievement-card small {
  display: block;
}

.profile-achievement-card strong {
  color: #e9efec;
  font-size: .72rem;
  line-height: 1.35;
}

.profile-achievement-card p {
  margin: 6px 0 16px;
  color: #717e90;
  font-size: .55rem;
  line-height: 1.5;
}

.profile-achievement-card small {
  align-self: end;
  color: #9c8652;
  font-size: .5rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-showcase-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 9px;
  margin-top: 17px;
}

.profile-showcase-item {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #26313f;
  border-radius: 10px;
  color: #dbe4df;
  background: #0e151e;
  box-shadow: none;
  text-align: left;
  transition: border-color .16s ease,background-color .16s ease,transform .16s ease;
}

.profile-showcase-item:hover {
  border-color: #3b5b4b;
  background: #121b24;
  transform: translateY(-2px);
}

.profile-showcase-visual {
  position: relative;
  display: grid;
  min-height: 88px;
  place-items: center;
  border-bottom: 1px solid #26313f;
  color: #7bdaa8;
  background: #111d1a;
  font-size: 1.25rem;
}

.profile-showcase-item.rare .profile-showcase-visual {
  color: #80b8e3;
  background: #132032;
}

.profile-showcase-item.epic .profile-showcase-visual {
  color: #b59bdb;
  background: #201a2e;
}

.profile-showcase-item.legendary .profile-showcase-visual {
  color: #dabb6b;
  background: #272216;
}

.profile-showcase-item strong,
.profile-showcase-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-showcase-item > span:last-child {
  display: block;
  padding: 10px;
}

.profile-showcase-item strong {
  font-size: .58rem;
}

.profile-showcase-item small {
  margin-top: 4px;
  color: #657386;
  font-size: .48rem;
  text-transform: capitalize;
}

.profile-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 15px;
}

.profile-timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  align-items: center;
  min-height: 70px;
  gap: 12px;
  padding: 9px 0;
}

.profile-timeline-entry:not(:last-child)::after {
  position: absolute;
  top: 51px;
  bottom: -19px;
  left: 19px;
  width: 1px;
  background: #26333e;
  content: "";
}

.profile-timeline-icon {
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #2b5b44;
  border-radius: 10px;
  color: #75d8a3;
  background: #10251b;
  font-size: .76rem;
}

.profile-timeline-entry > div {
  min-width: 0;
}

.profile-timeline-entry strong,
.profile-timeline-entry small {
  display: block;
}

.profile-timeline-entry strong {
  overflow: hidden;
  color: #dce5e0;
  font-size: .65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-timeline-entry small {
  margin-top: 5px;
  color: #667486;
  font-size: .53rem;
}

.profile-timeline-entry time {
  color: #5d6a7a;
  font-size: .51rem;
  white-space: nowrap;
}

.profile-section-heading.compact {
  align-items: center;
}

.profile-section-heading.compact > button {
  border: 0;
  color: #69cf99;
  background: transparent;
}

.profile-friend-list {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.profile-friend-entry {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 31px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #212c38;
  border-radius: 9px;
  background: #0e151e;
}

.profile-friend-avatar {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #334252;
  border-radius: 9px;
  color: #dbe5df;
  background: #202b37;
  font-size: .7rem;
  font-weight: 900;
}

.profile-friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-friend-avatar::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid #0e151e;
  border-radius: 50%;
  background: #566272;
  content: "";
}

.profile-friend-avatar.online::after {
  background: #47cc84;
}

.profile-friend-entry strong,
.profile-friend-entry small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-friend-entry strong {
  color: #dae3de;
  font-size: .61rem;
}

.profile-friend-entry small {
  margin-top: 4px;
  color: #667486;
  font-size: .49rem;
}

.profile-friend-entry > button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  padding: 0;
  border: 1px solid #304052;
  border-radius: 8px;
  color: #94a2b2;
  background: #141d27;
  box-shadow: none;
  font-size: .63rem;
}

.profile-friend-entry > button:hover {
  border-color: #357253;
  color: #83dbaa;
  background: #11261b;
}

.profile-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid #273443;
  border-radius: 8px;
  color: #91a0af;
  background: #101720;
  font-size: .56rem;
  font-weight: 800;
  text-decoration: none;
}

.profile-card-link:hover {
  border-color: #35684e;
  color: #82d7a8;
}

.reputation-card {
  background: #0a1118;
}

.reputation-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.reputation-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #2d6549;
  border-radius: 10px;
  color: #78dba6;
  background: #10271c;
  font-size: .86rem;
}

.reputation-status {
  display: block;
  margin-top: 21px;
  color: #eff5f1;
  font-size: 1.35rem;
  letter-spacing: -.035em;
}

.reputation-card > p {
  margin: 7px 0 15px;
  color: #6f7d8d;
  font-size: .56rem;
  line-height: 1.5;
}

.reputation-meter {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 5px;
}

.reputation-meter i {
  height: 5px;
  border-radius: 4px;
  background: #3eba79;
}

.reputation-meter.empty i {
  background: #26323d;
}

.reputation-meter.empty i:first-child {
  background: #44715b;
}

.reputation-facts {
  display: grid;
  gap: 9px;
  margin: 17px 0 0;
  padding-top: 15px;
  border-top: 1px solid #202b37;
}

.reputation-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reputation-facts dt {
  color: #687687;
  font-size: .52rem;
}

.reputation-facts dd {
  margin: 0;
  color: #b9c5be;
  font-size: .54rem;
  font-weight: 800;
}

.reputation-facts dd i {
  margin-right: 3px;
  color: #65cf96;
}

.profile-empty-state {
  display: grid;
  min-height: 130px;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 20px;
  border: 1px dashed #293443;
  border-radius: 10px;
  color: #697687;
  text-align: center;
}

.profile-empty-state > i {
  color: #4f5f70;
  font-size: 1.05rem;
}

.profile-empty-state p {
  max-width: 330px;
  margin: 0;
  font-size: .57rem;
  line-height: 1.5;
}

.profile-detail-panel {
  min-height: 340px;
}

.profile-detail-heading {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #202a36;
}

.profile-count-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 9px 11px;
  border: 1px solid #2b5e46;
  border-radius: 8px;
  color: #779087;
  background: #10231a;
  font-size: .54rem;
}

.profile-count-badge strong {
  color: #7dddaa;
  font-size: .82rem;
}

.profile-all-achievements {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 18px;
}

.profile-all-achievements .profile-achievement-card {
  min-height: 170px;
}

.profile-all-achievements .profile-achievement-card.locked {
  opacity: .56;
}

.profile-collection-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 10px;
  margin-top: 18px;
}

.profile-collection-grid .profile-showcase-item {
  min-height: 160px;
}

.profile-collection-grid .profile-showcase-visual {
  min-height: 105px;
}

.profile-timeline-full {
  max-width: 760px;
  margin-top: 18px;
}

.profile-friends-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
  margin-top: 18px;
}

.profile-friends-grid .profile-friend-entry {
  grid-template-columns: 42px minmax(0,1fr) 34px;
  min-height: 66px;
}

.profile-skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #202a36;
  border-radius: 10px;
  background: #111821;
}

.profile-skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.035),transparent);
  content: "";
  transform: translateX(-100%);
  animation: profile-skeleton-shimmer 1.35s ease-in-out infinite;
}

.profile-skeleton-card {
  min-height: 180px;
}

.profile-skeleton-item {
  min-height: 132px;
}

.profile-skeleton-row {
  min-height: 58px;
}

@keyframes profile-skeleton-shimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 1120px) {
  .profile-view .profile-page-hero {
    grid-template-columns: 245px minmax(320px,1fr);
  }

  .profile-hero-character {
    grid-row: span 2;
  }

  .profile-view .profile-level-card {
    grid-column: 2;
    margin: 0 28px 28px;
  }

  .profile-stats-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .profile-overview-layout {
    grid-template-columns: minmax(0,1fr) 280px;
  }

  .profile-showcase-grid,
  .profile-collection-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }

  .profile-showcase-grid > :nth-child(5) {
    display: none;
  }
}

@media (max-width: 900px) {
  .profile-overview-layout {
    grid-template-columns: 1fr;
  }

  .profile-side-column {
    grid-template-columns: 1fr 1fr;
  }

  .profile-pinned-grid,
  .profile-all-achievements {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .profile-friends-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 720px) {
  .profile-view .profile-page-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .profile-view .profile-page-hero:has(.profile-character-preview) {
    min-height: 0;
  }

  .profile-hero-character {
    grid-row: auto;
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid #25342f;
  }

  .profile-view .profile-character-preview {
    width: 260px;
    height: 300px;
  }

  .profile-view .profile-identity {
    padding: 27px 22px 22px;
  }

  .profile-view .profile-identity h2 {
    white-space: normal;
  }

  .profile-bio {
    margin-block: 16px 19px !important;
  }

  .profile-view .profile-level-card {
    grid-column: auto;
    margin: 0 22px 24px;
  }

  .profile-tabs {
    margin-inline: -2px;
  }

  .profile-tabs button {
    min-width: 105px;
    padding-inline: 12px;
  }

  .profile-content-card,
  .profile-side-card,
  .profile-detail-panel {
    padding: 16px;
  }

  .profile-showcase-grid,
  .profile-collection-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .profile-showcase-grid > :nth-child(4),
  .profile-showcase-grid > :nth-child(5) {
    display: none;
  }

  .profile-detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .profile-stats-grid,
  .profile-pinned-grid,
  .profile-all-achievements,
  .profile-friends-grid,
  .profile-side-column {
    grid-template-columns: 1fr;
  }

  .profile-section-heading {
    gap: 12px;
  }

  .profile-section-heading > div > p:last-child {
    display: none;
  }

  .profile-showcase-grid,
  .profile-collection-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .profile-showcase-grid > :nth-child(4) {
    display: block;
  }

  .profile-timeline-entry {
    grid-template-columns: 38px minmax(0,1fr);
  }

  .profile-timeline-icon {
    width: 38px;
    height: 38px;
  }

  .profile-timeline-entry:not(:last-child)::after {
    left: 18px;
  }

  .profile-timeline-entry time {
    grid-column: 2;
    margin-top: -5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-stat-card,
  .profile-achievement-card,
  .profile-showcase-item,
  .profile-xp-track > b {
    transition: none;
  }

  .profile-skeleton::after {
    animation: none;
  }
}

.hub-reduced-motion .profile-stat-card,
.hub-reduced-motion .profile-achievement-card,
.hub-reduced-motion .profile-showcase-item,
.hub-reduced-motion .profile-xp-track > b {
  transition: none;
}

.hub-reduced-motion .profile-skeleton::after {
  animation: none;
}

/* Portfel, skrzynki i waluty */
.topbar-wallet {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 11px;
  border-left: 1px solid var(--hub-line);
}

.currency-chip {
  display: grid;
  grid-template-columns: 32px minmax(58px,auto);
  align-items: center;
  gap: 7px;
  min-width: 112px;
  padding: 4px 8px 4px 4px;
  border: 1px solid #252f3b;
  border-radius: 10px;
  background: #0b1119;
}

.currency-chip img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.currency-chip small,
.currency-chip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.currency-chip small {
  color: #647184;
  font-size: .48rem;
  font-weight: 800;
  text-transform: uppercase;
}

.currency-chip strong {
  margin-top: 2px;
  color: #e7e0bb;
  font-size: .72rem;
}

.currency-chip.rubies strong {
  color: #d89af0;
}

.player-money,
.win-amount strong,
.ranking-mock-list em {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.player-money::before,
.win-amount strong::before,
.ranking-mock-list em::before {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background: url("ui/coin.png") center / contain no-repeat;
  content: "";
}

.crates-view {
  max-width: 1500px;
  margin: 0 auto;
}

.crates-heading {
  padding: 8px 0 2px;
}

.crate-wallet-summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crate-wallet-summary > span {
  display: grid;
  grid-template-columns: 36px minmax(70px,auto);
  align-items: center;
  gap: 8px;
  min-width: 135px;
  padding: 8px 11px 8px 7px;
  border: 1px solid #273340;
  border-radius: 11px;
  background: #0a1017;
}

.crate-wallet-summary img {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.crate-wallet-summary small,
.crate-wallet-summary strong {
  display: block;
}

.crate-wallet-summary small {
  color: #697688;
  font-size: .49rem;
  font-weight: 800;
  text-transform: uppercase;
}

.crate-wallet-summary strong {
  overflow: hidden;
  color: #e7e0bb;
  font-size: .74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crate-wallet-summary > span:last-child strong {
  color: #dca3ef;
}

.crate-stats-row {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.crate-stats-row article {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #202a35;
  border-radius: 11px;
  background: #090e15;
}

.crate-stats-row article > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #315741;
  border-radius: 9px;
  color: #6bd29b;
  background: #10241a;
}

.crate-stats-row small,
.crate-stats-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crate-stats-row small {
  color: #687586;
  font-size: .51rem;
}

.crate-stats-row strong {
  margin-top: 4px;
  color: #dfe7e2;
  font-size: .67rem;
}

.crate-page-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  align-items: start;
  gap: 16px;
}

.crates-view .crate-grid {
  grid-template-columns: repeat(3,minmax(190px,260px));
  justify-content: start;
  gap: 14px;
}

.crates-view .crate-card {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  padding: 0;
  border: 1px solid #2b3541;
  border-radius: 14px;
  color: inherit;
  background: #090e15;
  box-shadow: 0 18px 38px rgba(0,0,0,.26);
  text-align: left;
  transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.crates-view .crate-card:hover {
  border-color: #4a5a6c;
  box-shadow: 0 22px 46px rgba(0,0,0,.34);
  transform: translateY(-4px);
}

.crates-view .crate-card:focus-visible {
  outline: 2px solid #52d58f;
  outline-offset: 3px;
}

.crates-view .crate-card[data-rarity="rare"] {
  border-color: #38516b;
}

.crates-view .crate-card[data-rarity="epic"] {
  border-color: #624573;
}

.crates-view .crate-visual {
  position: absolute;
  inset: 0;
  display: block;
  height: auto;
  overflow: hidden;
  border: 0;
  background: #0b1119;
}

.crates-view .crate-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(.88);
  transition: filter .25s ease,transform .25s ease;
}

.crates-view .crate-card:hover .crate-visual img {
  filter: brightness(1.06);
  transform: scale(.91);
}

.crate-tile-footer {
  position: absolute;
  z-index: 2;
  right: 11px;
  bottom: 11px;
  left: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid rgba(228,238,244,.18);
  border-radius: 10px;
  background: rgba(5,9,15,.82);
  box-shadow: 0 10px 28px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
}

.crate-tile-footer small,
.crate-tile-footer strong {
  display: block;
}

.crate-tile-footer small {
  color: #8c98a7;
  font-size: .53rem;
  font-weight: 800;
}

.crate-tile-footer strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: #f1e8c3;
  font-size: .83rem;
  letter-spacing: -.01em;
}

.crate-tile-footer strong img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.crate-tile-footer > i {
  display: grid;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #377456;
  border-radius: 8px;
  color: #80dfaa;
  background: #112b1e;
  font-size: .58rem;
  transition: color .18s ease,background .18s ease,transform .18s ease;
}

.crate-card:hover .crate-tile-footer > i {
  color: #082014;
  background: #5ed798;
  transform: translateX(2px);
}

.asset-game-button {
  display: inline-grid;
  width: 148px;
  height: 56px;
  place-items: center;
  padding: 0 13px 1px;
  border: 0;
  border-radius: 0;
  color: #0b2b14;
  background: transparent url("ui/button.png") center / 150px 150px no-repeat;
  box-shadow: none;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .01em;
  text-shadow: 0 1px rgba(255,255,255,.45);
  transition: filter .15s ease,transform .15s ease;
}

.asset-game-button:hover {
  filter: brightness(1.08);
  transform: scale(1.035);
}

.asset-game-button:active {
  transform: scale(.98);
}

.asset-game-button:disabled {
  cursor: wait;
  filter: grayscale(.55);
  opacity: .65;
}

.crate-reward-pool {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.crate-reward-pool h4 {
  margin: 0 0 2px;
  color: #7f8b9a;
  font-size: .53rem;
  text-transform: uppercase;
}

.crate-reward-option {
  display: grid;
  grid-template-columns: 31px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #25313c;
  border-radius: 8px;
  background: #0e151d;
}

.crate-reward-option img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.crate-reward-option strong,
.crate-reward-option small {
  display: block;
}

.crate-reward-option strong {
  color: #cbd5cf;
  font-size: .56rem;
}

.crate-reward-option small {
  margin-top: 3px;
  color: #697687;
  font-size: .48rem;
}

.crate-reward-option > b {
  color: #7bd7a7;
  font-size: .57rem;
}

.crate-reward-option.rubies > b {
  color: #cf91e6;
}

.crate-community-column {
  position: sticky;
  top: calc(var(--hub-topbar-height) + 18px);
  display: grid;
  gap: 13px;
}

.crate-leaderboard-card,
.crates-view .recent-drops {
  position: static;
  padding: 17px;
}

.crate-leaderboard-card .section-row > i {
  color: #caa85c;
}

.crate-leaderboard {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.crate-leaderboard li {
  display: grid;
  grid-template-columns: 23px 34px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 7px;
  border: 1px solid #222d38;
  border-radius: 8px;
  background: #101720;
}

.crate-leaderboard li > b {
  color: #687587;
  font-size: .52rem;
  text-align: center;
}

.crate-player-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #344251;
  border-radius: 8px;
  color: #dce5df;
  background: #202b36;
  font-size: .6rem;
  font-weight: 900;
}

.crate-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crate-player-avatar b {
  font: inherit;
}

.crate-leaderboard strong,
.crate-leaderboard small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crate-leaderboard strong {
  color: #dbe4de;
  font-size: .58rem;
}

.crate-leaderboard small {
  margin-top: 3px;
  color: #687586;
  font-size: .48rem;
}

.crates-view .drop-feed {
  gap: 6px;
}

.crates-view .drop-entry {
  grid-template-columns: 32px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #222d38;
  background: #101720;
}

.crates-view .drop-entry > span:first-child {
  width: 32px;
  height: 32px;
  background: transparent;
}

.crates-view .drop-entry > span:first-child img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.crates-view .drop-entry time {
  color: #596777;
  font-size: .44rem;
  white-space: nowrap;
}

.crate-community-empty {
  display: block !important;
  padding: 20px 10px !important;
  border: 1px dashed #2a3542 !important;
  color: #697687 !important;
  background: transparent !important;
  font-size: .54rem;
  line-height: 1.5;
  text-align: center;
}

.crate-card-skeleton,
.crate-list-skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #202a35;
  border-radius: 12px;
  background: #101720;
}

.crate-card-skeleton {
  width: min(100%,260px);
  min-height: 312px;
}

.crate-list-skeleton {
  min-height: 50px;
}

.crate-card-skeleton::after,
.crate-list-skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.035),transparent);
  content: "";
  transform: translateX(-100%);
  animation: profile-skeleton-shimmer 1.35s ease-in-out infinite;
}

.crate-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.crate-modal-heading h2,
.crate-result-heading h2,
.crate-opening-stage h2 {
  margin-top: 5px;
  color: #eff5f1;
  font-size: 1.45rem;
}

.crate-modal-heading > div > p:last-child,
.crate-result-heading > p:last-child,
.crate-opening-stage > p:last-child {
  max-width: 530px;
  margin: 7px 0 0;
  color: #758294;
  font-size: .62rem;
  line-height: 1.5;
}

.crate-server-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #2f694b;
  border-radius: 8px;
  color: #7bd9a6;
  background: #10251a;
  font-size: .52rem;
  font-weight: 850;
}

.crate-modal-preview {
  height: 245px;
  overflow: hidden;
  margin-top: 17px;
  border: 1px solid #303c49;
  border-radius: 12px;
  background: #101720;
}

.crate-modal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crate-modal-rewards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.crate-modal-rewards h3 {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: #8793a2;
  font-size: .57rem;
  text-transform: uppercase;
}

.crate-modal-rewards article {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid #293541;
  border-radius: 9px;
  background: #111923;
}

.crate-modal-rewards img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.crate-modal-rewards strong,
.crate-modal-rewards small {
  display: block;
}

.crate-modal-rewards strong {
  color: #dce5df;
  font-size: .61rem;
}

.crate-modal-rewards small {
  margin-top: 3px;
  color: #6c798a;
  font-size: .5rem;
}

.crate-modal-rewards article > b {
  color: #75d8a3;
  font-size: .6rem;
}

.crate-open-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
  padding: 10px 0;
  border-top: 1px solid #27323e;
  border-bottom: 1px solid #27323e;
}

.crate-open-controls .open-count {
  margin: 0;
}

.crate-open-controls > span {
  color: #718091;
  font-size: .57rem;
}

.crate-open-controls > span strong {
  margin-left: 5px;
  color: #e6ddb8;
}

.crate-modal-actions {
  align-items: center;
}

.modal-asset-button {
  width: 160px;
  height: 58px;
  background-size: 162px 162px;
}

.crate-opening-stage {
  display: grid;
  min-height: 480px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.crate-opening-loading {
  overflow: hidden;
}

.crate-roll-preflight {
  width: min(620px,100%);
  margin-top: 24px;
}

.crate-roll-preflight .crate-roll-track {
  animation: crate-preflight-slide 1.15s linear infinite;
}

.crate-roll-stage {
  min-height: 390px;
}

.crate-roll-hint {
  margin: 7px 0 18px;
  color: #718091;
  font-size: .58rem;
}

.crate-roll-lanes {
  display: grid;
  width: 100%;
  gap: 9px;
}

.crate-roll-lane,
.crate-roll-viewport {
  position: relative;
  overflow: hidden;
}

.crate-roll-viewport {
  width: 100%;
  height: 112px;
  border: 1px solid #303b49;
  border-radius: 11px;
  background:
    linear-gradient(90deg,rgba(5,9,14,.95),transparent 14%,transparent 86%,rgba(5,9,14,.95)),
    #090e15;
  box-shadow: inset 0 0 34px rgba(0,0,0,.48),0 11px 30px rgba(0,0,0,.2);
}

.crate-roll-stage[data-count="1"] .crate-roll-viewport {
  height: 188px;
}

.crate-roll-marker {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg,#7cf1ae 0 15%,transparent 15% 85%,#7cf1ae 85%);
  box-shadow: 0 0 15px rgba(86,224,147,.75);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.crate-roll-marker::before,
.crate-roll-marker::after {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  content: "";
  filter: drop-shadow(0 0 5px rgba(89,226,149,.7));
  transform: translateX(-50%);
}

.crate-roll-marker::before {
  top: 0;
  border-top: 9px solid #76eaaa;
}

.crate-roll-marker::after {
  bottom: 0;
  border-bottom: 9px solid #76eaaa;
}

.crate-roll-track {
  display: flex;
  width: max-content;
  gap: 8px;
  padding: 8px;
  will-change: transform;
}

.crate-roll-item {
  position: relative;
  display: grid;
  flex: 0 0 112px;
  width: 112px;
  height: 94px;
  place-items: center;
  align-content: center;
  gap: 3px;
  overflow: hidden;
  border: 1px solid #35523f;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%,rgba(84,192,128,.14),transparent 55%),
    linear-gradient(180deg,#13201a,#0e1713);
  box-shadow: inset 0 -14px 24px rgba(0,0,0,.18);
}

.crate-roll-item.rubies {
  border-color: #5d3f68;
  background:
    radial-gradient(circle at 50% 20%,rgba(184,91,220,.18),transparent 55%),
    linear-gradient(180deg,#211527,#160f1a);
}

.crate-roll-rarity {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #5dd998;
  box-shadow: 0 0 11px rgba(93,217,152,.45);
}

.crate-roll-item.rubies .crate-roll-rarity {
  background: #bd6de0;
  box-shadow: 0 0 11px rgba(189,109,224,.5);
}

.crate-roll-item img {
  width: 43px;
  height: 43px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(0,0,0,.3));
}

.crate-roll-item strong,
.crate-roll-item small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crate-roll-item strong {
  color: #e7eee9;
  font-size: .61rem;
}

.crate-roll-item small {
  color: #6f8178;
  font-size: .42rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.crate-roll-item.rubies small {
  color: #a27aae;
}

.crate-roll-stage[data-count="1"] .crate-roll-track {
  gap: 10px;
  padding: 10px;
}

.crate-roll-stage[data-count="1"] .crate-roll-item {
  flex-basis: 154px;
  width: 154px;
  height: 166px;
  gap: 5px;
}

.crate-roll-stage[data-count="1"] .crate-roll-item img {
  width: 76px;
  height: 76px;
}

.crate-roll-stage[data-count="1"] .crate-roll-item strong {
  font-size: .8rem;
}

.crate-roll-stage[data-count="1"] .crate-roll-item small {
  font-size: .47rem;
}

.crate-roll-lane.is-settled .crate-roll-viewport {
  border-color: #48946a;
  box-shadow: inset 0 0 34px rgba(0,0,0,.48),0 0 24px rgba(74,207,133,.14);
}

.crate-roll-lane.is-settled .is-winner {
  border-color: #73e7a7;
  box-shadow: inset 0 -14px 24px rgba(0,0,0,.18),0 0 24px rgba(84,224,146,.28);
  animation: crate-winner-pulse .65s ease both;
}

.crate-roll-lane.is-settled .is-winner.rubies {
  border-color: #cd84e9;
  box-shadow: inset 0 -14px 24px rgba(0,0,0,.18),0 0 24px rgba(190,103,224,.3);
}

.crate-opening-dots {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.crate-opening-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65d59b;
  animation: crate-dot .8s ease-in-out infinite alternate;
}

.crate-opening-dots i:nth-child(2) {
  animation-delay: .15s;
}

.crate-opening-dots i:nth-child(3) {
  animation-delay: .3s;
}

.crate-result-heading {
  text-align: center;
}

.crate-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 10px;
  margin-top: 20px;
}

.crate-result-item {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 175px;
  padding: 16px;
  border: 1px solid #365743;
  border-radius: 11px;
  background: #101c17;
  text-align: center;
  animation: crate-result-in .28s ease both;
}

.crate-result-item.rubies {
  border-color: #5c3c69;
  background: #1b1421;
}

.crate-result-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.crate-result-item small,
.crate-result-item strong,
.crate-result-item b {
  display: block;
}

.crate-result-item small {
  color: #718091;
  font-size: .5rem;
}

.crate-result-item strong {
  margin-top: 3px;
  color: #edf4ef;
  font-size: 1.05rem;
}

.crate-result-item b {
  margin-top: 3px;
  color: #6fd49d;
  font-size: .52rem;
  text-transform: uppercase;
}

.crate-result-item.rubies b {
  color: #cf91e6;
}

.crate-result-wallet {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.crate-result-wallet > span {
  display: grid;
  grid-template-columns: 34px minmax(70px,auto);
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #293642;
  border-radius: 9px;
  background: #101720;
}

.crate-result-wallet img {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.crate-result-wallet small,
.crate-result-wallet strong {
  display: block;
}

.crate-result-wallet small {
  color: #697688;
  font-size: .48rem;
}

.crate-result-wallet strong {
  color: #dce5df;
  font-size: .65rem;
}

@keyframes crate-preflight-slide {
  to { transform: translateX(-1440px); }
}

@keyframes crate-winner-pulse {
  0% { filter: brightness(1); transform: scale(1); }
  45% { filter: brightness(1.28); transform: scale(1.035); }
  100% { filter: brightness(1.08); transform: scale(1); }
}

@keyframes crate-dot {
  to { opacity: .3; transform: translateY(-3px); }
}

@keyframes crate-result-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
}

@media (max-width: 1380px) {
  .crate-page-layout {
    grid-template-columns: 1fr;
  }

  .crate-community-column {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .crates-view .crate-grid {
    grid-template-columns: repeat(3,minmax(190px,260px));
  }
}

@media (max-width: 980px) {
  .crates-view .crate-grid {
    grid-template-columns: repeat(2,minmax(190px,260px));
  }

  .crates-view .crate-card:last-child {
    grid-column: 1 / -1;
    width: min(100%,260px);
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .topbar-wallet {
    gap: 3px;
    padding-left: 5px;
  }

  .currency-chip {
    grid-template-columns: 27px minmax(40px,auto);
    min-width: 0;
    gap: 4px;
    padding: 3px 5px 3px 3px;
  }

  .currency-chip img {
    width: 27px;
    height: 27px;
  }

  .currency-chip small {
    display: none;
  }

  .currency-chip strong {
    margin: 0;
    font-size: .61rem;
  }

  .crates-heading {
    gap: 18px;
  }

  .crate-wallet-summary {
    width: 100%;
  }

  .crate-wallet-summary > span {
    flex: 1;
    min-width: 0;
  }

  .crate-stats-row {
    grid-template-columns: 1fr;
  }

  .crates-view .crate-grid {
    grid-template-columns: minmax(0,320px);
    justify-content: center;
  }

  .crates-view .crate-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .crates-view .crate-visual {
    height: auto;
  }

  .crate-community-column {
    grid-template-columns: 1fr;
  }

  .crate-modal-heading {
    flex-direction: column;
  }

  .crate-modal-rewards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar-heading h1 {
    font-size: .78rem;
  }

  .currency-chip {
    grid-template-columns: 24px auto;
  }

  .currency-chip img {
    width: 24px;
    height: 24px;
  }

  .currency-chip strong {
    max-width: 52px;
    font-size: .54rem;
  }

  .crate-wallet-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .crate-wallet-summary > span {
    grid-template-columns: 31px minmax(0,1fr);
  }

  .crate-wallet-summary img {
    width: 31px;
    height: 31px;
  }

  .crate-open-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .crate-modal-actions {
    flex-direction: column-reverse;
  }

  .crate-modal-actions > * {
    width: 100%;
  }

  .modal-asset-button {
    min-height: 58px;
    background-size: 175px 175px;
  }

  .crate-opening-stage {
    min-height: 430px;
  }

  .crate-roll-stage {
    min-height: 350px;
  }

  .crate-roll-hint {
    max-width: 220px;
  }

  .crate-roll-viewport {
    height: 102px;
  }

  .crate-roll-item {
    flex-basis: 102px;
    width: 102px;
    height: 84px;
  }

  .crate-roll-item img {
    width: 37px;
    height: 37px;
  }

  .crate-roll-stage[data-count="1"] .crate-roll-viewport {
    height: 166px;
  }

  .crate-roll-stage[data-count="1"] .crate-roll-item {
    flex-basis: 132px;
    width: 132px;
    height: 144px;
  }

  .crate-result-wallet {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .hub-topbar .topbar-actions {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crate-roll-preflight .crate-roll-track,
  .crate-roll-lane.is-settled .is-winner,
  .crate-opening-dots i,
  .crate-result-item,
  .crate-card-skeleton::after,
  .crate-list-skeleton::after {
    animation: none;
  }
}

.hub-reduced-motion .crate-roll-preflight .crate-roll-track,
.hub-reduced-motion .crate-roll-lane.is-settled .is-winner,
.hub-reduced-motion .crate-opening-dots i,
.hub-reduced-motion .crate-result-item,
.hub-reduced-motion .crate-card-skeleton::after,
.hub-reduced-motion .crate-list-skeleton::after {
  animation: none;
}

/* Rangi graczy i sklep VIP */
.rank-badge {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
}

.account-rank-badge {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 3px rgba(16, 55, 105, .55));
}

#account-login.has-rank {
  color: #2f6fb0;
}

.player-name-line {
  display: flex !important;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.player-name-line .player-login-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-rank-badge {
  width: 19px;
  height: 19px;
}

.friend-ranked-name {
  display: flex !important;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.friend-ranked-name .rank-badge {
  width: 15px;
  height: 15px;
}

.friend-ranked-name > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-profile-ranked-name {
  margin: 8px 0 0;
  font-size: 1.25rem;
}

.public-profile-name-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.public-profile-name-line h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-profile-rank-badge {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 4px rgba(16, 55, 105, .55));
}

.shop-balance strong {
  display: flex;
  align-items: center;
  gap: 7px;
}

.shop-balance strong img,
.shop-vip-price img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.vip-shop-feature {
  border-color: #294d7b;
  background:
    radial-gradient(circle at 82% 50%, rgba(52, 115, 185, .18), transparent 31%),
    linear-gradient(135deg, #141b27, #101722);
}

.vip-shop-feature .shop-vip-price {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9b75d1;
}

.vip-shop-feature .shop-rank-status {
  min-height: 1.2em;
  margin: 0 0 14px;
  color: #739ac6;
}

.vip-shop-feature [data-shop-buy]:disabled {
  opacity: .58;
  cursor: wait;
}

.shop-vip-preview span {
  width: 142px;
  height: 142px;
  border-color: #315e91;
  background: #111d2d;
}

.shop-vip-preview span img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.shop-vip-preview > i {
  width: 205px;
  height: 205px;
  border-color: #29496c;
  box-shadow: 0 0 42px rgba(47, 111, 176, .18);
}

.crate-ranked-name {
  display: flex !important;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.crate-ranked-name .rank-badge {
  width: 15px;
  height: 15px;
}

