/* DataLab — shop, inventory, rarities, Gold, land prices and the legendary bots */
/* rarities in the game's palette: slate, blue, turquoise, bright turquoise */
:root {
  --r-common: #8797b0;
  --r-uncommon: #7fb2f0;
  --r-rare: #479bff;
  --r-epic: #05b5b1;
  --r-legendary: #5eead4;
  --gold: #f2c14e;
}

/* ---------- window ---------- */
.st {
  display: flex;
  flex-direction: column;
  width: min(1240px, 100%);
  height: min(800px, calc(100vh - 32px));
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--bg);
  overflow: hidden;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.5s var(--ease-out);
}
.overlay.is-open .st { transform: none; }
.st--menu { width: 100%; height: auto; min-height: 560px; border: 0; background: none; overflow: visible; transform: none; }
.st-bar { flex-wrap: wrap; gap: 10px; }
.st-bals { display: inline-flex; align-items: center; gap: 14px; }
.st-bals--menu { margin-bottom: 14px; }
.st-bal b { color: var(--ink); }
.st-bal .cur--dc + b, .is-gold { color: var(--gold) !important; }

.st-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 12px 16px 0; padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: var(--r-sm);
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%);
  font-size: 13px;
}
.st-banner b { font-weight: 400; color: var(--ink); }
.st-banner span:not(.ev-tag) { color: var(--body); flex: 1; min-width: 200px; }
.st-tabs { margin: 12px 16px 0; }
.st--menu .st-tabs, .st--menu .st-banner { margin-left: 0; margin-right: 0; }

.st-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; border-top: 1px solid var(--hairline); margin-top: 12px; }
.st-main--full { display: block; overflow-y: auto; padding: 16px; }
.st--menu .st-main { border: 1px solid var(--hairline); border-radius: 12px; min-height: 520px; }
.st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  min-height: 0;
}
.st-side { border-left: 1px solid var(--hairline); overflow-y: auto; min-height: 0; background: var(--panel); }

/* ---------- item card + rarity looks ---------- */
.st-card {
  --rc: var(--r-common);
  position: relative;
  display: flex; flex-direction: column; text-align: left;
  padding: 0; overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--rc) 35%, var(--border-dark));
  border-radius: 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 12%, var(--panel)), var(--bg) 70%);
  box-shadow: 3px 3px 0 var(--border-dark);
  color: var(--ink); cursor: pointer;
  transition: transform 0.25s var(--ease-out), border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.st-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--rc) 65%, transparent); }
.st-card.is-sel { border-color: var(--rc); box-shadow: 0 0 0 1px var(--rc) inset, 0 10px 28px rgba(0, 0, 0, 0.45); }
.st-card:focus-visible { outline: 2px solid var(--twilight); outline-offset: 2px; }
.st-card__art { position: relative; display: grid; place-items: center; height: 104px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%); }
.st-card__art canvas { width: 96px; height: 96px; image-rendering: pixelated; }
.st-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px 10px 4px; }
.st-card__body b { font-weight: 400; font-size: 13px; line-height: 17px; }
.st-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 10px 10px; margin-top: auto; }
.st-card__foot .eyebrow-sm { font-size: 9px; letter-spacing: 0.8px; }
.st-qty { position: absolute; right: 8px; top: 8px; padding: 2px 7px; border-radius: var(--r-pill); background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); font: 400 11px/1 var(--font-mono); }
.st-ev { position: absolute; left: 8px; top: 8px; padding: 3px 6px; border-radius: 4px; background: var(--sunset); color: #0a0a0a; font: 400 9px/1 var(--font-mono); letter-spacing: 1px; }
.st-state { font: 400 10px/1 var(--font-mono); letter-spacing: 0.6px; text-transform: uppercase; color: var(--signal); white-space: nowrap; }
.st-card.is-eq::after { content: ''; position: absolute; right: 8px; bottom: 34px; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.st-price { display: inline-flex; align-items: center; gap: 5px; font: 400 13px/1 var(--font-mono); color: var(--gold); }
.st-price.is-free { color: var(--signal); }

.rar-common { --rc: var(--r-common); }
.rar-uncommon { --rc: var(--r-uncommon); }
.rar-rare { --rc: var(--r-rare); }
.rar-epic { --rc: var(--r-epic); }
.rar-legendary { --rc: var(--r-legendary); }
.st-card.rar-rare { box-shadow: 3px 3px 0 var(--border-dark), 0 0 18px -8px var(--r-rare); }
.st-card.rar-epic { box-shadow: 3px 3px 0 var(--border-dark), 0 0 22px -8px var(--r-epic); background: linear-gradient(160deg, rgba(5, 181, 177, 0.18), var(--bg) 65%); }
.st-card.rar-legendary { box-shadow: 3px 3px 0 var(--border-dark), 0 0 26px -8px var(--r-legendary); background: linear-gradient(160deg, rgba(94, 234, 212, 0.2), rgba(71, 155, 255, 0.08) 40%, var(--bg) 75%); }
/* not enough Gold: the card dims and its button turns grey */
.st-card.is-broke .st-card__art { filter: grayscale(0.55) brightness(0.8); }
.st-card.is-broke .st-state { color: var(--text-dim); }
.btn.btn--broke[disabled] { opacity: 1; background: var(--disabled); border-color: var(--border); color: var(--text-dim); box-shadow: none; }
.btn.btn--done[disabled] { opacity: 1; background: color-mix(in srgb, var(--teal) 18%, var(--panel-2)); border-color: var(--teal); color: var(--text); }
.st-card.rar-legendary::before, .st-detail.rar-legendary .st-detail__art::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(165, 247, 234, 0.16) 48%, transparent 60%);
  background-size: 250% 100%;
  animation: rar-shine 3.2s linear infinite;
}
@keyframes rar-shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* rarity label */
.rar { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: var(--r-pill); font: 400 9.5px/1 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; font-style: normal; border: 1px solid currentColor; }
.rar--common { color: var(--r-common); }
.rar--uncommon { color: var(--r-uncommon); }
.rar--rare { color: var(--r-rare); }
.rar--epic { color: var(--r-epic); background: rgba(5, 181, 177, 0.12); }
.rar--legendary { color: var(--bg); background: linear-gradient(90deg, #479bff, #05b5b1, #a5f7ea, #5eead4); border-color: #5eead4; }
.rar-chip { --rc: var(--r-common); }
.rar-chip--uncommon { --rc: var(--r-uncommon); }
.rar-chip--rare { --rc: var(--r-rare); }
.rar-chip--epic { --rc: var(--r-epic); }
.rar-chip--legendary { --rc: var(--r-legendary); }
.chip.rar-chip { color: color-mix(in srgb, var(--rc) 80%, white); }
.chip.rar-chip.is-on { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); }

.ev-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 4px; background: var(--sunset); color: #0a0a0a; font: 400 9.5px/1 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.ev-tag.is-over { background: rgba(255, 122, 23, 0.16); color: var(--sunset-soft); border: 1px solid rgba(255, 122, 23, 0.45); }
.ev-tag.is-theme { background: rgba(255, 255, 255, 0.06); color: var(--body); border: 1px solid var(--hairline); }

/* ---------- detail panel ---------- */
.st-detail { --rc: var(--r-common); display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.st-detail__art { position: relative; display: grid; place-items: center; height: 220px; border: 1px solid color-mix(in srgb, var(--rc) 40%, var(--hairline)); border-radius: 10px; overflow: hidden;
  background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--rc) 26%, transparent), var(--bg) 72%); }
.st-detail__art canvas { width: 192px; height: 192px; image-rendering: pixelated; }
.st-detail__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.st-detail__name { font-size: 22px; line-height: 26px; letter-spacing: -0.3px; }
.st-detail.rar-legendary .st-detail__name { color: var(--r-legendary); }
.st-detail__desc { font-size: 13px; line-height: 19px; color: var(--body); }
.st-detail__meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 12px; line-height: 17px; }
.st-detail__meta dt { font: 400 10px/17px var(--font-mono); letter-spacing: 0.8px; text-transform: uppercase; color: var(--mute); }
.st-detail__meta dd { margin: 0; color: var(--body); }
.st-detail__meta dd .st-price { vertical-align: -1px; }
.st-detail__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-why { font-size: 12px; line-height: 17px; color: var(--mute); }
.st-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; color: var(--mute); font-size: 13px; }
.st-empty b { font-weight: 400; color: var(--ink); font-size: 15px; }
.st-grid .st-empty { grid-column: 1 / -1; }

/* ---------- Gold tab ---------- */
.st-gold { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.st-gold__card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--hairline); border-radius: 10px; background: #0e0e10; }
.st-gold__big { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.st-gold__row { display: flex; flex-wrap: wrap; gap: 8px; }
.st-gold__list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 21px; color: var(--body); }
.st-pack { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 14px; border: 1px solid rgba(242, 193, 78, 0.35); border-radius: var(--r-pill); background: rgba(242, 193, 78, 0.06); color: var(--ink); cursor: pointer; }
.st-pack:hover { border-color: var(--gold); }
.st-pack b { font: 400 14px/1 var(--font-mono); color: var(--gold); }
.st-pack em { font: 400 10px/1 var(--font-mono); font-style: normal; color: var(--gold); }
.st-pack small { font-size: 12px; color: var(--mute); }
.st-pack.is-busy { opacity: 0.5; cursor: progress; }

/* ---------- inventory layout ---------- */
.inv { flex: 1; min-height: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.st--menu .inv { border: 1px solid var(--hairline); border-radius: 12px; min-height: 560px; }
.inv__cats { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--hairline); overflow-y: auto; }
.inv__sep { margin: 10px 8px 4px; font-size: 10px; }
.inv__cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--body); font-size: 13px; cursor: pointer; text-align: left; }
.inv__cat b { font: 400 11px/1 var(--font-mono); color: var(--mute); }
.inv__cat:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.inv__cat.is-on { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.inv__cat.is-empty { opacity: 0.45; }
.inv__list { display: flex; flex-direction: column; min-height: 0; }
.inv__list .st-main { margin-top: 0; }
.inv__tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; }
.inv__sort { display: inline-flex; align-items: center; gap: 8px; }
.inv__sort select { height: 30px; padding: 0 10px; background: #111214; color: var(--ink); }

/* ---------- HUD bits ---------- */
.ops-btn--gold { border-color: rgba(242, 193, 78, 0.45); color: #ffe7a6; gap: 6px; }
.ops-btn--gold:hover { border-color: var(--gold); background: rgba(242, 193, 78, 0.08); }
.ops-btn--inv { gap: 6px; }
.inv-ico { display: inline-grid; grid-template-columns: 4px 4px; gap: 2px; }
.inv-ico i { width: 4px; height: 4px; border-radius: 1px; background: currentColor; opacity: 0.85; }
.inv-ico i:nth-child(2) { background: var(--gold); opacity: 1; }
/* emotes: the button in the top bar and its menu (fixed under the button) */
.emo { display: inline-flex; flex: none; margin-left: var(--s-sm, 8px); }
.ops-btn--emo { gap: 6px; border-color: rgba(5, 181, 177, 0.55); }
.ops-btn--emo:hover, .ops-btn--emo[aria-expanded="true"] { border-color: var(--teal); background: rgba(5, 181, 177, 0.1); }
.emo__wheel {
  position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 4px; min-width: 168px; padding: 6px;
  border: 2px solid var(--teal); background: var(--panel); box-shadow: 4px 4px 0 var(--border-dark);
}
.emo__wheel[hidden] { display: none; }
.emo__opt {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 2px solid var(--border-dark);
  background: var(--panel-2); color: var(--text); font: 400 16px/1 var(--font-pixel-small, var(--font-sans)); cursor: pointer; text-align: left;
}
.emo__opt:hover, .emo__opt:focus-visible { border-color: var(--teal); background: rgba(5, 181, 177, 0.16); outline: none; }
.emo__opt kbd { margin-left: auto; }
.emo__ico { font-size: 18px; line-height: 1; }
.econ-float span.is-gold { color: var(--gold); }
.w-xchg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--mute); }
.w-bal b.is-gold { color: var(--gold); }

/* land prices (build → Espaços) */
.lot-prices { font: 400 10px/1.3 var(--font-mono); letter-spacing: 0.4px; color: var(--mute); max-width: 220px; }
.lot-prices b { font-weight: 400; color: var(--sunset-soft); }
.lot-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; margin: 6px 0 2px; padding: 8px 10px; border: 1px solid rgba(255, 194, 133, 0.45); border-radius: var(--r-sm); background: rgba(255, 122, 23, 0.07); font-size: 13px; color: var(--body); }
.lot-ask > span { flex: 1; min-width: 220px; }
.lot-ask b { font-weight: 400; color: var(--ink); }
.lot-ask__price { color: var(--sunset-soft) !important; }
.lot-ask b.is-neg { color: var(--sunset) !important; }

/* creator: shop items note */
.cr-shop-note { font-size: 12px; color: var(--mute); margin-top: 4px; }

/* ---------- legendary bots in the crew UI ---------- */
.cc__legend { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; font-size: 11px; line-height: 15px; color: #ffe7a6; }
.crew-row.is-legend { border-color: rgba(242, 193, 78, 0.45); background: linear-gradient(100deg, rgba(242, 193, 78, 0.1), transparent 60%); }
.crew-row.is-legend .crew-row__name { color: #ffe7a6; }
.crew-row .rar { height: 15px; padding: 0 5px; font-size: 8px; vertical-align: middle; }
.nametags span.is-legend { color: #ffe7a6; border: 1px solid rgba(242, 193, 78, 0.6); box-shadow: 0 0 12px rgba(242, 193, 78, 0.35); }

.st {
  --st-ink: #05070d;
  --st-navy: #0d1424;
  --st-steel: #56657d;
  --st-slate: #262f46;
  --st-accent: #2de2c8;
  --st-accent-dark: #14897a;
  --ink: #e6ecf5;
  --body: #c3ccd9;
  --mute: #808ba6;
  --hairline: #46506b;
  --pill-border: #46506b;
  --signal: #2de2c8;
  --twilight: #2de2c8;
  --font-mono: 'Silkscreen', monospace;
  font-family: var(--font-pixel-small);
  color: var(--ink);
  background: var(--st-ink);
}
.st:not(.st--menu) {
  border: 0;
  border-radius: 0;
  box-shadow:
    0 -4px var(--st-steel), 0 4px var(--st-steel), -4px 0 var(--st-steel), 4px 0 var(--st-steel),
    0 -8px var(--st-ink), 0 8px var(--st-ink), -8px 0 var(--st-ink), 8px 0 var(--st-ink),
    8px 12px rgba(5, 7, 13, 0.8), 12px 8px rgba(5, 7, 13, 0.8);
}
.st--menu .st-main,
.st--menu .inv {
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 0 2px var(--st-steel);
}
.st-bar { border-bottom: 2px solid var(--st-steel); }
.st .eyebrow-sm { font-family: var(--font-pixel-tiny); letter-spacing: 1px; }
.st-bals { font: 400 20px/1 var(--font-pixel-small); }
.st-bal b { color: var(--ink); }
.st-banner {
  border: 2px solid var(--st-steel);
  border-radius: 0;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 18%, transparent), var(--st-ink) 72%);
  color: var(--body);
  font: 400 18px/1.25 var(--font-pixel-small);
}
.st-banner b { color: var(--ink); font: 400 20px/1.1 var(--font-pixel-small); }
.st-tabs { gap: 6px; padding: 0; border: 0; border-radius: 0; }
.st .mv-tab {
  flex: none;
  height: 32px;
  padding: 0 10px;
  border: 2px solid var(--st-steel);
  background: var(--st-navy);
  color: var(--mute);
  font: 400 16px/1 var(--font-pixel-small);
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--st-ink);
}
.st .mv-tab:hover,
.st .mv-tab:focus-visible {
  border-color: var(--st-accent);
  background: var(--st-slate);
  color: var(--ink);
  transform: none;
  box-shadow: 2px 2px 0 var(--st-ink);
  outline: none;
}
.st .mv-tab.is-on {
  border-color: var(--st-accent);
  background: var(--st-accent);
  color: var(--st-ink);
  box-shadow: inset 0 -2px var(--st-accent-dark), 2px 2px 0 var(--st-ink);
}
.st-main { border-top: 2px solid var(--st-steel); }
.st-grid { gap: 12px; }
.st-side { border-left: 2px solid var(--st-steel); background: var(--st-ink); }
.st-card {
  border: 2px solid color-mix(in srgb, var(--rc) 45%, var(--st-steel));
  border-radius: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 12%, var(--st-navy)), var(--st-ink) 78%);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--st-ink);
}
.st-card:hover {
  transform: translate(-1px, -1px);
  border-color: var(--st-accent);
  box-shadow: 5px 5px 0 var(--st-ink);
}
.st-card.is-sel {
  border-color: var(--st-accent);
  box-shadow: inset 0 0 0 2px var(--st-accent), 5px 5px 0 var(--st-ink);
}
.st-card.rar-epic { background: linear-gradient(160deg, rgba(5, 181, 177, 0.2), var(--st-ink) 70%); }
.st-card.rar-legendary { background: linear-gradient(160deg, rgba(94, 234, 212, 0.22), rgba(71, 155, 255, 0.1) 40%, var(--st-ink) 75%); }
.st-card__art {
  background:
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--rc) 24%, transparent), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(70, 80, 107, 0.12) 15px 16px);
}
.st-card__body { gap: 4px; padding: 8px 10px 4px; }
.st-card__body b { color: var(--ink); font: 400 19px/1.1 var(--font-pixel-small); }
.st-card__body .eyebrow-sm { color: var(--mute); font-size: 10px; }
.st-card__foot { padding: 6px 10px 10px; }
.st-price { color: var(--gold); font: 400 18px/1 var(--font-pixel-small); }
.st-price.is-free { color: var(--st-accent); }
.st-qty { border: 2px solid var(--st-steel); border-radius: 0; background: var(--st-ink); font: 400 13px/1 var(--font-pixel-small); }
.st-ev { border-radius: 0; font-family: var(--font-pixel-tiny); }
.st-state { color: var(--st-accent); font: 400 11px/1 var(--font-pixel-tiny); }
.rar { height: 20px; padding: 0 7px; border-radius: 0; font: 400 10px/1 var(--font-pixel-tiny); }
.rar--epic { background: rgba(5, 181, 177, 0.12); }
.ev-tag { border-radius: 0; font: 400 10px/1 var(--font-pixel-tiny); }
.st-detail__art {
  border: 2px solid color-mix(in srgb, var(--rc) 55%, var(--st-steel));
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--rc) 28%, transparent), var(--st-ink) 72%),
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(70, 80, 107, 0.12) 19px 20px);
}
.st-detail__name { color: var(--ink); font: 400 30px/1.05 var(--font-pixel-small); }
.st-detail.rar-legendary .st-detail__name { color: var(--r-legendary); }
.st-detail__desc { color: var(--body); font: 400 19px/1.2 var(--font-pixel-small); }
.st-detail__meta { font: 400 18px/1.2 var(--font-pixel-small); }
.st-detail__meta dt { color: var(--mute); font: 400 10px/1.4 var(--font-pixel-tiny); letter-spacing: 1px; }
.st-detail__meta dd { color: var(--body); }
.st-why { color: var(--mute); font: 400 18px/1.2 var(--font-pixel-small); }
/* section titles inside a tab's grid (Equipamentos: hacks / PCs e servidores) */
.st-sec { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 6px 2px 2px; border-bottom: 2px solid var(--st-steel); }
.st-sec:not(:first-child) { margin-top: 10px; }
.st-sec b { color: var(--st-accent); font: 400 22px/1.1 var(--font-pixel-small); }
.st-sec span { color: var(--mute); font: 400 17px/1.2 var(--font-pixel-small); }
.st-empty { color: var(--mute); font: 400 19px/1.25 var(--font-pixel-small); }
.st-empty b { color: var(--ink); font: 400 24px/1.1 var(--font-pixel-small); }
.st .btn,
.st .cc__x {
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--st-slate);
  font-family: var(--font-pixel-tiny);
  letter-spacing: 0;
  box-shadow: inset 0 2px var(--st-steel), 0 -2px var(--st-ink), 0 2px var(--st-ink), -2px 0 var(--st-ink), 2px 0 var(--st-ink);
}
.st .btn:hover:not(:disabled),
.st .btn:focus-visible:not(:disabled) {
  color: var(--st-ink);
  background: var(--st-accent);
  transform: none;
  box-shadow: inset 0 -2px var(--st-accent-dark), 0 -2px var(--st-ink), 0 2px var(--st-ink), -2px 0 var(--st-ink), 2px 0 var(--st-ink);
}
.st .btn--primary {
  color: var(--st-ink);
  background: var(--st-accent);
  box-shadow: inset 0 -2px var(--st-accent-dark), 0 -2px var(--st-ink), 0 2px var(--st-ink), -2px 0 var(--st-ink), 2px 0 var(--st-ink);
}
.st kbd {
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--st-slate);
  font-family: var(--font-pixel-tiny);
  box-shadow: 0 -2px var(--st-ink), 0 2px var(--st-ink), -2px 0 var(--st-ink), 2px 0 var(--st-ink);
}
.st-gold__card { border: 2px solid var(--st-steel); border-radius: 0; background: var(--st-navy); }
.st-gold__big { font: 400 22px/1.15 var(--font-pixel-small); }
.st-gold__list { color: var(--body); font: 400 18px/1.3 var(--font-pixel-small); }
.st-pack {
  border: 2px solid rgba(242, 193, 78, 0.45);
  border-radius: 0;
  background: var(--st-navy);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--st-ink);
}
.st-pack:hover { border-color: var(--gold); background: var(--st-slate); }
.st-pack b, .st-pack em { font-family: var(--font-pixel-small); }
.st-pack small { color: var(--mute); font-family: var(--font-pixel-small); }
.inv__cats { border-right: 2px solid var(--st-steel); }
.inv__sep { color: var(--mute); font-family: var(--font-pixel-tiny); }
.inv__cat {
  height: 36px;
  border: 2px solid transparent;
  border-radius: 0;
  color: var(--body);
  font: 400 18px/1 var(--font-pixel-small);
}
.inv__cat b { color: var(--mute); font: 400 12px/1 var(--font-pixel-tiny); }
.inv__cat:hover { border-color: var(--st-steel); background: var(--st-navy); color: var(--ink); }
.inv__cat.is-on { border-color: var(--st-accent); background: var(--st-navy); color: var(--st-accent); }
.inv__tools { border-bottom: 2px solid var(--st-steel); }
.inv__sort select {
  border: 2px solid var(--st-steel);
  border-radius: 0;
  background: var(--st-navy);
  color: var(--ink);
  font-family: var(--font-pixel-small);
  font-size: 16px;
}
.chip {
  border-radius: 0;
  font-family: var(--font-pixel-tiny);
  background: var(--st-navy);
}
.chip.is-on { border-color: var(--st-accent); background: rgba(45, 226, 200, 0.12); color: var(--st-accent); }
.st ::-webkit-scrollbar { width: 10px; height: 10px; }
.st ::-webkit-scrollbar-track { background: var(--st-ink); }
.st ::-webkit-scrollbar-thumb { background: var(--st-steel); border: 2px solid var(--st-ink); }
.st ::-webkit-scrollbar-thumb:hover { background: var(--st-accent); }

@media (max-width: 860px) {
  /* one scrolling column: grid, then the detail of the picked item */
  .st { height: calc(100vh - 32px); overflow-y: auto; }
  .st > * { flex-shrink: 0; }
  .st-main, .inv, .inv__list { display: block; flex: none; min-height: 0; }
  .st-grid, .st-side { overflow: visible; }
  .st-side { border-left: 0; border-top: 1px solid var(--hairline); scroll-margin-top: 8px; }
  .st-detail__art { height: 150px; }
  .st-detail__art canvas { width: 128px; height: 128px; }
  .inv__cats { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hairline); padding: 8px; }
  .inv__cat { flex: none; }
  .inv__sep { display: none; }
  .st-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
  .st-card__art { height: 88px; }
  .st-card__art canvas { width: 80px; height: 80px; }
}

/* Coleção Criador (Dev Pierre): the CRIADOR seal on the card and the detail, a warm frame around the card */
.st-ev.st-ev--creator { left: auto; right: 8px; top: 8px; padding: 4px 6px; background: linear-gradient(180deg, #ffd78a, #f2a33a 55%, #c96a1c); color: #1a0d03; border: 2px solid #1a0d03; box-shadow: 2px 2px 0 #000, 0 0 10px rgba(255, 183, 77, 0.65); letter-spacing: 1px; }
.st-card.is-creator { outline: 2px solid rgba(255, 183, 77, 0.55); outline-offset: -2px; }
.st-card.is-creator:hover, .st-card.is-creator.is-sel { outline-color: #ffc56a; }
.ev-tag.is-creator { background: linear-gradient(180deg, #ffd78a, #f2a33a); color: #1a0d03; border: 1px solid #1a0d03; }
