#mercadoPainel {
  --red: #ff2032;
  --edge: #383c38;
  --text: #f1f0e9;
  --sub: #c0c4bc;
  --gold: #e8c576;
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  color-scheme: dark;
  color: var(--text);
  background: #101311;
  font: 14px/1.45 Geist,"Segoe UI",sans-serif;
}

#mercadoPainel * {
  box-sizing: border-box;
}

#mercadoPainel [hidden] {
  display: none!important;
}

#mercadoPainel :is(h1,h2,h3,h4,p,dl,dd,figure) {
  margin: 0;
}

#mercadoPainel :is(h1,h2,h3) {
  font: 400 25px/1.16 var(--font-display);
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--text);
}

#mercadoPainel h1 {
  font-size: clamp(33px,5cqw,52px);
  max-width: 720px;
}

#mercadoPainel h3 {
  font-size: 21px;
}

#mercadoPainel button,#mercadoPainel input,#mercadoPainel select {
  font: inherit;
  color: inherit;
}

#mercadoPainel button {
  cursor: pointer;
}

#mercadoPainel :focus-visible {
  outline: 2px solid #ff6876;
  outline-offset: 2px;
}

#mercadoPainel .mk-banner {
  padding: clamp(18px,3.4cqw,36px);
  background: linear-gradient(95deg,rgba(8,11,9,.96) 5%,rgba(8,11,9,.85) 43%,rgba(8,11,9,.19) 100%),url('../img/noticia/mercado-negro.webp') center 46%/cover;
}

#mercadoPainel .mk-banner p {
  color: #dadbd2;
  margin-top: 9px;
  font-size: 14px;
}

#mercadoPainel .mk-bar {
  padding: 6px clamp(14px,3cqw,32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px 17px;
  flex-wrap: wrap;
  border-block: 1px solid var(--edge);
  background: #131714;
}

#mercadoPainel .mk-bar nav,#mercadoPainel .mk-wallet,#mercadoPainel .mk-subtabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 14px;
}

#mercadoPainel .mk-bar nav button,#mercadoPainel .mk-subtabs button {
  color: #c2c6c0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 10px 1px;
  font-weight: 650;
}

#mercadoPainel .mk-bar nav button[aria-pressed=true],#mercadoPainel .mk-subtabs button[aria-pressed=true] {
  border-bottom-color: var(--red);
  color: #fff;
}

#mercadoPainel .mk-bar nav small {
  color: #b7beb5;
  font: 11px/1 ui-monospace,Consolas,monospace;
  margin-left: 4px;
}

#mercadoPainel .mk-wallet {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  padding: 6px 0;
}

#mercadoPainel .mk-curr {
  font: 700 10px/1 Geist,sans-serif;
  background: #293e49;
  color: #cde1f0;
  border-radius: 2px;
  padding: 3px 4px;
  vertical-align: middle;
  margin-left: 3px;
}

#mercadoPainel .mk-curr.gc {
  background: #4a3c23;
  color: #f5d693;
}

#mercadoPainel .mk-content {
  padding: clamp(14px,3cqw,32px);
}

#mercadoPainel .mk-section+.mk-section {
  margin-top: 21px;
}

#mercadoPainel .mk-section>h2 {
  font-size: 21px;
  margin-bottom: 12px;
}

#mercadoPainel .mk-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 13px;
}

#mercadoPainel .mk-card {
  display: grid;
  grid-template-columns: minmax(0,30%) minmax(0,1fr);
  border: 1px solid var(--edge);
  background: #191d19;
  border-radius: 5px;
  overflow: hidden;
}

#mercadoPainel .mk-portrait {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  background: radial-gradient(ellipse at 48% 22%,#51564b 0%,#30372f 56%,#1e241f 100%);
}

#mercadoPainel .mk-portrait>img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

#mercadoPainel .mk-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,#101510a6,transparent 38%);
  pointer-events: none;
}

#mercadoPainel .mk-rarity {
  position: absolute;
  z-index: 1;
  bottom: 8px;
  left: 7px;
  max-width: calc(100% - 10px);
  border: 1px solid #667169;
  background: #202621;
  color: #e1e6dd;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
  padding: 2px 5px;
}

#mercadoPainel .mk-rarity.rare {
  color: #f4d38a;
  border-color: #84703f;
  background: #332e20;
}

#mercadoPainel .mk-details {
  min-width: 0;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#mercadoPainel .mk-details h3,#mercadoPainel .mk-ident h3 {
  overflow-wrap: anywhere;
}

#mercadoPainel .mk-rank {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 13px;
  color: #dadbd3;
}

#mercadoPainel .mk-rank img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

#mercadoPainel .mk-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: #cfd3cc;
}

#mercadoPainel .mk-rank .mk-label:before {
  content: "·";
  margin-right: 5px;
}

#mercadoPainel .mk-data {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 5px 10px;
  border-top: 1px solid var(--edge);
  padding-top: 6px;
}

#mercadoPainel dt {
  font-size: 12px;
  color: var(--sub);
}

#mercadoPainel dd {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

#mercadoPainel .mk-tags {
  color: var(--gold);
  font-size: 11px;
  font-weight: 650;
}

#mercadoPainel .mk-actionrow {
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px;
}

#mercadoPainel .mk-price {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#mercadoPainel .mk-stamp,#mercadoPainel .mk-empty,#mercadoPainel .mk-copy {
  font-size: 13px;
  color: var(--sub);
}

#mercadoPainel .mk-stamp {
  font-size: 12px;
}

#mercadoPainel .mk-btn {
  border: 1px solid #555b54;
  background: #252b25;
  color: var(--text);
  border-radius: 3px;
  min-height: 37px;
  padding: 7px 13px;
  font-weight: 650;
  transition: background .16s,border-color .16s;
}

#mercadoPainel .mk-btn.primary {
  border-color: var(--red);
  background: #201a1a;
}

#mercadoPainel .mk-btn.primary:is(:hover,:focus-visible) {
  background: var(--red);
  color: #120b0c;
}

#mercadoPainel .mk-btn:not(.primary):hover {
  background: #393d36;
}

#mercadoPainel .mk-notice {
  padding: 8px 11px;
  background: #1f2922;
  border-left: 3px solid #91a990;
  margin-bottom: 13px;
}

#mercadoPainel .mk-hist {
  display: grid;
  grid-template-columns: minmax(70px,.55fr) minmax(65px,1fr) minmax(55px,.7fr) auto;
  gap: 5px 12px;
  align-items: center;
  border-top: 1px solid var(--edge);
  padding: 9px 0;
  font-size: 13px;
}

#mercadoPainel .mk-hist b {
  overflow-wrap: anywhere;
}

#mercadoPainel .mk-hist .mk-price {
  font-size: 14px;
  text-align: right;
}

#mercadoPainel .mk-sold {
  color: #e8cf91;
}

#mercadoPainel .mk-open {
  color: #bdcfb8;
}

#mercadoPainel .mk-dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(680px,calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #181c19;
  color: var(--text);
  border: 1px solid #52584f;
  border-top: 3px solid var(--red);
  border-radius: 5px;
  box-shadow: 0 14px 40px #0006;
  padding: clamp(13px,2.5cqw,25px);
  display: grid;
  gap: 13px;
}

#mercadoPainel .mk-dialog.compact {
  width: min(540px,calc(100vw - 24px));
}

#mercadoPainel .mk-dialog-head,#mercadoPainel .mk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#mercadoPainel .mk-dialog-head button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  color: white;
  font: 23px/1 Arial,sans-serif;
}

#mercadoPainel .mk-identity {
  display: grid;
  grid-template-columns: 83px minmax(0,1fr);
  align-items: center;
  gap: 13px;
  background: #20251f;
  border: 1px solid var(--edge);
  border-radius: 3px;
  overflow: hidden;
}

#mercadoPainel .mk-identity .mk-portrait {
  min-height: 102px;
  align-self: stretch;
}

#mercadoPainel .mk-ident {
  padding: 8px 9px 8px 0;
  display: grid;
  gap: 3px;
}

#mercadoPainel .mk-subtabs {
  border-bottom: 1px solid var(--edge);
  gap: 14px;
}

#mercadoPainel .mk-subtabs button {
  padding: 6px 0;
  font-size: 13px;
}

#mercadoPainel .mk-statblock+.mk-statblock,#mercadoPainel .mk-skillgroup+.mk-skillgroup {
  margin-top: 10px;
}

#mercadoPainel h4 {
  font: 650 13px/1.4 Geist,sans-serif;
  color: #eee;
  margin-bottom: 6px;
}

#mercadoPainel .mk-statblock dl {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(112px,100%),1fr));
  gap: 5px 10px;
  border-top: 1px solid var(--edge);
  padding-top: 5px;
}

#mercadoPainel .mk-statblock dd {
  font-size: 16px;
}

#mercadoPainel .mk-skillgroup h4 {
  margin-bottom: 4px;
}

#mercadoPainel .mk-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#mercadoPainel .mk-skill {
  position: relative;
  border: 1px solid #474d44;
  padding: 0;
  width: 38px;
  height: 38px;
  background: #20251f;
  border-radius: 3px;
}

#mercadoPainel .mk-skill img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#mercadoPainel .mk-skill.off img {
  opacity: .55;
}

#mercadoPainel .mk-skill[aria-pressed=true] {
  border-color: var(--red);
}

#mercadoPainel .mk-skill small {
  position: absolute;
  bottom: 0;
  right: 1px;
  color: #fff;
  background: #151a14;
  padding: 0 2px;
  font: 700 10px/1.15 Geist,sans-serif;
}

#mercadoPainel .mk-skill-label {
  color: var(--sub);
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 5px;
}

#mercadoPainel .mk-foot {
  border-top: 1px solid var(--edge);
  padding-top: 12px;
  flex-wrap: wrap;
}

#mercadoPainel .mk-foot .mk-price {
  font-size: 23px;
}

#mercadoPainel .mk-foot .mk-price small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--sub);
}

#mercadoPainel .mk-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

#mercadoPainel .mk-form {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(68px,1fr);
  gap: 10px;
}

#mercadoPainel .mk-form label {
  font-weight: 550;
  display: grid;
  gap: 4px;
}

#mercadoPainel .mk-form :is(input,select) {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  background: #101410;
  border: 1px solid #61675e;
  border-radius: 3px;
}

#mercadoPainel .mk-error {
  color: #ffabb2;
  border-left: 2px solid var(--red);
  padding-left: 8px;
}

@container (max-width:720px) {
  #mercadoPainel .mk-grid {
    grid-template-columns: minmax(0,1fr);
  }
  #mercadoPainel .mk-card {
    grid-template-columns: clamp(87px,28%,160px) minmax(0,1fr);
  }
}

@container (max-width:440px) {
  #mercadoPainel .mk-banner p {
    font-size: 13px;
  }
  #mercadoPainel .mk-bar nav {
    gap: 8px;
  }
  #mercadoPainel .mk-bar nav button {
    font-size: 13px;
  }
  #mercadoPainel .mk-bar nav small {
    margin-left: 2px;
  }
  #mercadoPainel .mk-details {
    padding: 10px;
    gap: 6px;
  }
  #mercadoPainel .mk-card {
    grid-template-columns: 28% minmax(0,1fr);
  }
  #mercadoPainel .mk-hist {
    grid-template-columns: auto 1fr auto;
  }
  #mercadoPainel .mk-hist .mk-h-rank {
    grid-column: 2;
    grid-row: 2;
  }
  #mercadoPainel .mk-hist .mk-price {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  #mercadoPainel .mk-wallet {
    padding: 1px 0 5px;
  }
  #mercadoPainel .mk-subtabs {
    gap: 10px;
  }
}

@media(pointer:coarse) {
  #mercadoPainel button {
    min-height: 44px;
  }
  #mercadoPainel .mk-skill {
    width: 44px;
    height: 44px;
  }
  #mercadoPainel .mk-form :is(input,select) {
    font-size: 16px;
  }
}

@media(prefers-reduced-motion:reduce) {
  #mercadoPainel * {
    transition: none;
  }
}

#mercadoPainel {
  width: min(100%,1240px);
  margin: 0 auto 48px;
}

#mercadoPainel[hidden],#mercadoPainel .mk-dialog:not([open]) {
  display: none;
}

#mercadoPainel .mk-dialog::backdrop {
  background: #080b09d9;
}

#mercadoPainel #mercadoCampos {
  display: grid;
  gap: 13px;
}

#mercadoPainel .mk-note-error {
  border-left-color: var(--red);
}

#mercadoPainel .mk-btn:disabled {
  opacity: .65;
  cursor: wait;
}

#mercadoPainel .mk-avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 38px/1 var(--font-display);
  color: #abb5a5;
}

#mercadoPainel .mk-avatar:has(+ img:not([hidden])) {
  visibility: hidden;
}

#mercadoPainel .mk-rarity.epic {
  background: #342d40;
  color: #e0c7fa;
  border-color: #786389;
}

#mercadoPainel .mk-rarity.blue {
  background: #243747;
  color: #c5e6fb;
  border-color: #557b92;
}

#mercadoPainel .mk-rarity.green {
  background: #283b2a;
  color: #cbe9c5;
  border-color: #597656;
}

#mercadoPainel .mk-bar nav button {
  position: relative;
  letter-spacing: normal;
  border-radius: 0;
}

#mercadoPainel .mk-buttons {
  margin-left: auto;
}

#mercadoPainel .mk-dialog .mk-copy {
  line-height: 1.5;
}

#mercadoPainel #mercadoSecoes[aria-busy=true]:empty::after {
  content: 'Carregando mercado…';
  color: var(--sub);
}

