.st-sub { background: var(--bg); border-bottom: 1px solid var(--surface-2); }
.st-sub__in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.st-sub__links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.st-sub__links::-webkit-scrollbar { display: none; }
.st-sub__links a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.st-sub__links a:hover { background: var(--surface-2); color: var(--ink); }
.st-sub__links a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.st-sub__search { margin-left: auto; width: min(320px, 40vw); flex: none; }

.st-main { max-width: 1240px; margin: 0 auto; padding: 32px var(--gutter) 0; min-height: 62vh; }
.st-main:focus { outline: none; }

.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.st-head h1 { font-size: 28px; letter-spacing: -0.03em; }
.st-head p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.st-head__end { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.st-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 32px; align-items: end; margin-bottom: 32px; }
.st-hero h1 { font-size: 32px; letter-spacing: -0.035em; }
.st-hero p { color: var(--muted); margin-top: 10px; max-width: 52ch; font-size: 17px; }

.st-search { position: relative; }
.st-search__box { position: relative; display: flex; align-items: center; }
.st-search__box svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.st-search input { width: 100%; padding-left: 36px; }
.st-search.is-big input { min-height: 56px; font-size: 18px; padding-left: 44px; }
.st-search.is-big svg { left: 16px; width: 18px; height: 18px; }
.st-search__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface-2);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.st-search__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.st-search__list a:hover, .st-search__list a.is-hl { background: var(--surface-3); }
.st-search__list img { width: 24px; height: 24px; image-rendering: pixelated; border-radius: 2px; }
.st-search__list .o-dot { margin-left: auto; }
.st-search__none { padding: 10px; color: var(--muted); font-size: 15px; }

.st-grid { display: grid; gap: 20px; }
.st-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-grid--side { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
.st-grid--lb { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
.st-gap { height: 20px; }
.st-gap-l { height: 48px; }

.st-card { background: var(--surface); border-radius: var(--radius); padding: 20px; min-width: 0; }
.st-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.st-card__head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.st-card__head a, .st-link { color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.st-card__head a:hover, .st-link:hover { text-decoration: underline; }
.st-card__note { color: var(--muted); font-size: 14px; }

.st-section-h { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.st-section-p { color: var(--muted); margin: -6px 0 14px; font-size: 15px; }

.st-split { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border-radius: var(--radius); }
.st-split > * { padding: 20px; min-width: 0; }
.st-split > * + * { border-left: 1px solid var(--surface-2); }
.st-split h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
.st-split h2 a { font-size: 14px; color: var(--accent); text-decoration: none; font-weight: 600; }
.st-split h2 a:hover { text-decoration: underline; }

.st-rows { list-style: none; margin: 0; padding: 0; }
.st-rows > li + li { border-top: 1px solid var(--surface-2); }
.st-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
a.st-row:hover .st-row__name { color: var(--accent); }
.st-row__rank { width: 22px; flex: none; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; text-align: right; }
.st-row__head { width: 24px; height: 24px; flex: none; image-rendering: pixelated; border-radius: 2px; background: var(--surface-2); }
.st-row__name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .12s; }
.st-row__sub { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-row__val { margin-left: auto; font-variant-numeric: normal; font-weight: 600; white-space: nowrap; padding-left: 8px; }
.st-row__stack { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }

.st-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); border-radius: var(--radius); }
.st-kpis > div { padding: 16px; min-width: 0; }
.st-kpis > div + div { border-left: 1px solid var(--surface-2); }
.st-kpis dt { color: var(--muted); font-size: 14px; }
.st-kpis dd { margin: 4px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-kpis small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; }
.st-kpis small a { color: var(--muted); text-decoration: none; }
.st-kpis small a:hover { color: var(--accent); }

.st-profile { background: var(--surface); border-radius: var(--radius); padding: 20px; display: grid; justify-items: center; gap: 14px; }
.st-profile__body { width: 180px; height: 360px; object-fit: contain; image-rendering: pixelated; }
.st-profile dl { width: 100%; margin: 0; display: grid; gap: 0; }
.st-profile dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--surface-2); font-size: 15px; }
.st-profile dt { color: var(--muted); }
.st-profile dd { margin: 0; font-weight: 600; text-align: right; }
.st-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-name h1 { font-size: 32px; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.st-rank { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--radius); background: var(--surface-2); font-weight: 700; font-size: 14px; }
.st-status { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 8px; font-size: 16px; }
.st-status strong { color: var(--ink); font-weight: 600; }

.st-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; display: flex; }
.st-bar > i { display: block; height: 100%; background: var(--accent); }
.st-bar > i.is-loss { background: var(--bad); }
.st-bar > i.is-draw { background: var(--faint); }
.st-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 14px; }
.st-legend span { display: inline-flex; align-items: center; gap: 6px; }
.st-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.st-legend i.is-loss { background: var(--bad); }
.st-legend i.is-draw { background: var(--faint); }
.st-fig { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }

.st-boards { list-style: none; margin: 0; padding: 8px; background: var(--surface); border-radius: var(--radius); position: sticky; top: calc(var(--bar-h) + 12px); }
.st-boards a { display: flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--radius); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: background-color .12s, color .12s; }
.st-boards a:hover { background: var(--surface-2); color: var(--ink); }
.st-boards a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.st-board-select { display: none; width: 100%; }

.st-lb { width: 100%; border-collapse: collapse; font-size: 16px; }
.st-lb th { text-align: left; color: var(--muted); font-weight: 600; font-size: 14px; padding: 12px 16px; }
.st-lb td { padding: 7px 16px; border-top: 1px solid var(--surface-2); }
.st-lb .st-lb__bar { width: 38%; padding-left: 0; }
.st-lb__bar .st-bar { height: 6px; background: var(--surface-2); }
.st-lb tbody tr:hover .st-lb__bar .st-bar { background: var(--surface-3); }
.st-lb tbody tr { transition: background-color .12s; }
.st-lb tbody tr:hover { background: var(--surface-2); }
.st-lb .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-lb .st-row { min-height: 32px; padding: 0; }
.st-lb tr.is-top td:first-child { color: var(--accent); font-weight: 700; }
.st-lb-wrap { background: var(--surface); border-radius: var(--radius); overflow: hidden; }

.st-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.st-pager__info { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.st-pager__nums { display: flex; gap: 4px; flex-wrap: wrap; }
.st-pager__nums .o-btn { min-width: 36px; padding: 0 10px; }
.st-pager__nums .o-btn[aria-current="page"] { background: var(--ink); color: var(--bg); }
.st-pager__gap { align-self: center; color: var(--faint); padding: 0 4px; }

.st-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.st-controls .st-search { flex: 1 1 280px; max-width: 420px; }
.st-controls .o-select { flex: none; }
.st-count { color: var(--muted); font-size: 15px; margin-left: auto; font-variant-numeric: tabular-nums; }

.st-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  min-width: 0;
  transition: background-color .12s;
}
.st-item:hover { background: #0e2331; }
.st-item .mc-slot { grid-row: span 2; }
.st-item__name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-item__name.is-ench { color: var(--foam); }
.st-item__meta { grid-column: 2 / 4; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; min-width: 0; }
.st-item__meta a { color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-item__meta a:hover { color: var(--ink); }
.st-item__meta img { width: 18px; height: 18px; image-rendering: pixelated; border-radius: 2px; flex: none; }
.st-item__meta .st-push { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-item__price { text-align: right; font-weight: 700; font-size: 18px; white-space: nowrap; }
.st-item__price small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.st-item__prog { grid-column: 1 / 4; margin-top: 8px; }
.st-item__prog .st-bar { height: 6px; }
.st-item__prog p { margin-top: 6px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.st-soon { color: var(--warn); }

.st-mini { list-style: none; margin: 0; padding: 0; }
.st-mini > li + li { border-top: 1px solid var(--surface-2); }
.st-mini__row { display: flex; align-items: center; gap: 12px; padding: 8px 0; min-width: 0; }
.st-mini__row .st-row__stack { flex: 1; }
.st-mini__row .st-row__val { margin-left: 0; text-align: right; }
.st-mini__row .st-row__val small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }

.st-me { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.st-me img.st-me__head { width: 56px; height: 56px; image-rendering: pixelated; border-radius: var(--radius); }
.st-me h1 { font-size: 28px; }
.st-me p { color: var(--muted); margin-top: 2px; }
.st-me .o-btn { margin-left: auto; }

.st-gate { max-width: 640px; padding: 32px; }
.st-gate h1 { font-size: 28px; margin-bottom: 10px; }
.st-gate p { color: var(--muted); margin-bottom: 16px; }
.st-gate ol { margin: 0 0 20px; padding-left: 22px; display: grid; gap: 8px; }
.st-gate code { font-family: inherit; font-weight: 700; color: var(--ink); background: var(--surface-2); padding: 1px 6px; border-radius: 3px; }
.st-gate .o-btn--discord svg { width: 20px; height: 20px; }

.st-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--surface-2); padding-bottom: 8px; }

.mc-panel {
  display: inline-grid;
  gap: 8px;
  padding: 14px;
  background: #c6c6c6;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #555;
  border-radius: 6px;
  color: #3f3f3f;
  max-width: 100%;
}
.mc-panel__title { font: 16px/1 "MC", var(--font); color: #3f3f3f; padding: 2px 2px 4px; }
.mc-panel__top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: end; }
.mc-panel__col { display: grid; gap: 0; }
.mc-panel__doll { align-self: stretch; background: #000; display: grid; place-items: center; min-height: 160px; border: 2px solid #373737; border-right-color: #fff; border-bottom-color: #fff; }
.mc-panel__doll img { height: 148px; width: auto; image-rendering: pixelated; }
.mc-panel__hot { margin-top: 8px; }
.st-inv-scroll { overflow-x: auto; padding-bottom: 4px; }
.st-inv-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.st-inv-note { color: var(--muted); font-size: 15px; display: grid; gap: 8px; }
.st-inv-note strong { color: var(--ink); }

.st-vaults { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.st-vaults__list { list-style: none; margin: 0; padding: 8px; background: var(--surface); border-radius: var(--radius); display: grid; gap: 2px; }
.st-vaults__list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; text-align: left; transition: background-color .12s, color .12s; }
.st-vaults__list button:hover { background: var(--surface-2); color: var(--ink); }
.st-vaults__list button[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.st-vaults__list small { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }

.st-skel-row { height: 44px; margin: 6px 0; }
.st-skel-card { height: 96px; }
.st-msg { padding: 24px; border-radius: var(--radius); background: var(--surface); }
.st-msg h1, .st-msg h2 { font-size: 22px; margin-bottom: 8px; }
.st-msg p { color: var(--muted); margin-bottom: 14px; max-width: 60ch; }
.st-msg.is-error { background: var(--bad-soft); }
.st-msg.is-error p { color: #ffc9cb; }
.st-empty { padding: 20px 0; color: var(--muted); }

.st-slot-user { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); padding: 4px 8px; border-radius: var(--radius); }
.st-slot-user:hover { background: var(--surface-2); }
.st-slot-user img { width: 26px; height: 26px; border-radius: 50%; }

@media (max-width: 1100px) {
  .st-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-split > :nth-child(3) { border-left: 0; }
  .st-split > :nth-child(n + 3) { border-top: 1px solid var(--surface-2); }
  .st-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-kpis > div:nth-child(4) { border-left: 0; }
  .st-kpis > div:nth-child(n + 4) { border-top: 1px solid var(--surface-2); }
  .st-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-grid--3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .st-hero { grid-template-columns: 1fr; gap: 20px; }
  .st-grid--2, .st-grid--side, .st-grid--lb, .st-grid--3 { grid-template-columns: 1fr; }
  .st-grid--3 > :last-child { grid-column: auto; }
  .st-boards { display: none; }
  .st-board-select { display: block; }
  .st-player-main { display: contents; }
  .st-player-main > .st-gap { display: none; }
  .st-player-head { order: -2; }
  .st-profile { order: -1; grid-template-columns: 120px 1fr; justify-items: start; align-items: center; }
  .st-profile__body { width: 110px; height: 220px; }
  .st-inv-wrap { grid-template-columns: 1fr; }
  .st-vaults { grid-template-columns: 1fr; }
  .st-vaults__list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 640px) {
  .st-sub__in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .st-sub__search { width: 100%; margin-left: 0; }
  .st-sub__links { width: 100%; }
  .st-main { padding-top: 24px; }
  .st-items { grid-template-columns: 1fr; }
  .st-split { grid-template-columns: 1fr; }
  .st-split > * + * { border-left: 0; border-top: 1px solid var(--surface-2); }
  .st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-kpis > div { border-left: 0 !important; border-top: 1px solid var(--surface-2); }
  .st-kpis > div:nth-child(even) { border-left: 1px solid var(--surface-2) !important; }
  .st-kpis > div:nth-child(-n + 2) { border-top: 0; }
  .st-kpis dd { font-size: 22px; }
  .st-name h1 { font-size: 26px; }
  .st-head h1 { font-size: 24px; }
  .st-hero h1 { font-size: 28px; }
  .st-profile { grid-template-columns: 88px 1fr; gap: 12px; padding: 16px; }
  .st-profile__body { width: 88px; height: 176px; }
  .st-profile dl > div { padding: 8px 0; font-size: 14px; }
  .st-lb th, .st-lb td { padding-left: 10px; padding-right: 10px; }
  .st-lb .is-hide-s, .st-lb .st-lb__bar { display: none; }
  .st-controls .st-search { max-width: none; flex-basis: 100%; }
  .st-count { margin-left: 0; width: 100%; }
  .st-me .o-btn { margin-left: 0; }
  .mc-panel { padding: 8px; }
  .st-slot-user span { display: none; }
}
