/* GERÊNCIA (25/09/2026): visão geral das áreas do administrador, interruptores dos recursos, configuração da LOJA e troca de sprites. */

.home-menu-card.admin-manage-card {
  --accent: #9fe7ff;
  --lip-a: #bdf1ff;
  --lip-b: #0b3d5c;
  --face-a: #125b80;
  --face-b: #0a2c47;
}
.adm-head.manage {
  --adm-accent: #9fe7ff;
}
.pk-extra.single {
  grid-template-columns: minmax(0, 1fr);
}
.site-theme .home-actions .admin-row.player-trio.solo {
  grid-template-columns: minmax(0, 1fr);
}
.pk-svg.pack-img {
  object-fit: contain;
}
img.shop-gem,
img.tc-gem {
  object-fit: contain;
}
img.tc-gem {
  width: 22px;
  height: 22px;
}

.gx-page {
  display: grid;
  gap: 12px;
}
.gx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gx-tab {
  padding: 8px 14px;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #a9c8e5;
  background: var(--pl-navy-800);
  border: 1px solid var(--ui-line);
  box-shadow: 2px 2px 0 var(--pl-navy-950);
  cursor: pointer;
}
.gx-tab.on {
  color: #061b37;
  background: linear-gradient(#ffe28a, #e8b923);
  border-color: #fff3b0;
}
.gx-tab:focus-visible,
.gx-tile:focus-visible,
.gx-switch:focus-visible,
.gx-group:focus-visible {
  outline: 2px solid var(--ui-gold);
  outline-offset: 2px;
}
.gx-sub {
  margin: 0 0 8px;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 1.6px;
  color: var(--ui-gold);
}
.gx-lead {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.55;
  color: #a9c8e5;
}
.gx-card {
  padding: 12px 14px;
  background: linear-gradient(145deg, #123354, #08203c);
  border: 1px solid var(--ui-line);
  box-shadow: 2px 3px 0 var(--pl-navy-950);
}

/* visão geral */
.gx-overview {
  display: grid;
  gap: 6px;
}
.gx-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.gx-tile {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px 14px;
  font: inherit;
  text-align: left;
  color: #fff;
  background: linear-gradient(145deg, #123354, #08203c);
  border: 1px solid var(--ui-line);
  box-shadow: 2px 3px 0 var(--pl-navy-950);
  cursor: pointer;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.gx-tile:hover {
  transform: translateY(-2px);
  border-color: var(--ui-gold);
}
.gx-tile.own {
  border-color: #3f86b5;
  background: linear-gradient(145deg, #15466e, #0a2745);
}
.gx-tile b {
  font-size: var(--text-lg);
  letter-spacing: 1.4px;
}
.gx-tile em {
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 800;
  color: #ffe28a;
}
.gx-tile small {
  font-size: var(--text-sm);
  line-height: 1.45;
  color: #a9c8e5;
}

/* recursos */
.gx-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px dashed #2a5379;
}
.gx-sub + .gx-feature {
  border-top: 0;
}
.gx-feature b {
  font-size: var(--text-lg);
  color: #fff;
}
.gx-feature p {
  margin: 3px 0 0;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: #a9c8e5;
}
.gx-feature.off b {
  color: #9fb3c8;
}
.gx-switch {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 128px;
  padding: 6px 10px 6px 6px;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #ffb0b0;
  background: var(--pl-navy-800);
  border: 1px solid #8a4a55;
  cursor: pointer;
}
.gx-switch i {
  position: relative;
  flex: none;
  width: 38px;
  height: 20px;
  background: #4a2530;
  border: 1px solid #8a4a55;
  transition: background 0.2s;
}
.gx-switch i::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #e8c7cd;
  transition: transform 0.2s;
}
.gx-switch.on {
  color: #b8f5a0;
  border-color: #5fd06a;
}
.gx-switch.on i {
  background: #1f7a3a;
  border-color: #5fd06a;
}
.gx-switch.on i::after {
  transform: translateX(18px);
  background: #fff;
}
.gx-page > .gx-card + .gx-card {
  margin-top: 0;
}

/* loja */
.gx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 6px;
}
.gx-stats div {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  background: linear-gradient(110deg, #123855, #071a32);
  border: 1px solid var(--ui-line);
}
.gx-stats span {
  font-size: var(--text-3xs);
  font-weight: 800;
  letter-spacing: 1.1px;
  color: var(--ui-gold);
}
.gx-stats b {
  font-size: var(--text-lg);
  color: #fff;
}
.gx-shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 10px;
  align-items: start;
}
.gx-packs {
  display: grid;
  gap: 10px;
}
.gx-pack header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gx-field {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}
.gx-field span,
.gx-weights > span {
  font-size: var(--text-sm);
  font-weight: 800;
  color: #d6e7f8;
}
.gx-field small {
  font-size: var(--text-xs);
  color: #86a6c6;
}
.gx-page input[type='number'],
.gx-search input {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  font: inherit;
  font-size: var(--text-md);
  font-weight: 700;
  color: #fff;
  background: #061a31;
  border: 1px solid #3d6a93;
}
.gx-page input:focus-visible {
  outline: 2px solid var(--ui-gold);
  outline-offset: 1px;
}
.gx-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 800;
  color: #d6e7f8;
  cursor: pointer;
}
.gx-weights {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.gx-weights > span {
  grid-column: 1/-1;
}
.gx-weights label {
  display: grid;
  gap: 3px;
}
.gx-weights small {
  font-size: var(--text-3xs);
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--ui-gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gx-weights em {
  font-style: normal;
  font-size: var(--text-3xs);
  color: #86a6c6;
}
.gx-formula {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  font-size: var(--text-sm);
  color: #a9c8e5;
  background: #061a31;
  border: 1px dashed #2a5379;
}
.gx-formula ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gx-formula li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.gx-formula b {
  color: #ffe28a;
}
.gx-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.gx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.gx-table th,
.gx-table td {
  padding: 5px 6px;
  text-align: left;
  border-bottom: 1px solid #1d4266;
  color: #d6e7f8;
}
.gx-table th {
  font-size: var(--text-3xs);
  letter-spacing: 1px;
  color: var(--ui-gold);
}

/* sprites */
.gx-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 8px;
  background: #0b2a4a;
  border: 1px solid #3f86b5;
}
.gx-chip b {
  font-size: var(--text-sm);
  color: #fff;
}
.gx-chip small {
  font-size: var(--text-xs);
  color: #a9c8e5;
}
.gx-chip button {
  width: 24px;
  height: 24px;
  font: inherit;
  font-weight: 900;
  color: #ffe28a;
  background: #102e4b;
  border: 1px solid var(--ui-line);
  cursor: pointer;
}
.gx-sprites {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.gx-groups {
  display: grid;
  gap: 4px;
  position: sticky;
  top: 8px;
}
.gx-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  font: inherit;
  text-align: left;
  color: #d6e7f8;
  background: var(--pl-navy-800);
  border: 1px solid var(--ui-line);
  cursor: pointer;
}
.gx-group b {
  font-size: var(--text-sm);
}
.gx-group small {
  font-size: var(--text-xs);
  font-weight: 800;
  color: #86a6c6;
}
.gx-group.on {
  color: #061b37;
  background: linear-gradient(#ffe28a, #e8b923);
  border-color: #fff3b0;
}
.gx-group.on small {
  color: #3d2a00;
}
.gx-sprites-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.gx-sprites-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.gx-sprites-hd h3 {
  margin: 0;
  font-size: var(--text-xl);
  color: #fff;
}
.gx-sprites-hd p {
  margin: 2px 0 0;
  font-size: var(--text-sm);
  color: #a9c8e5;
}
.gx-search {
  width: min(260px, 100%);
}
.gx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.gx-sprite {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 8px;
  background: linear-gradient(145deg, #123354, #08203c);
  border: 1px solid var(--ui-line);
  box-shadow: 2px 3px 0 var(--pl-navy-950);
}
.gx-sprite.custom {
  border-color: #5fd06a;
}
.gx-thumb {
  position: relative;
  display: grid;
  place-items: center;
  height: 120px;
  overflow: hidden;
  background-color: #0d2238;
  background-image:
    linear-gradient(45deg, #15304d 25%, transparent 25%, transparent 75%, #15304d 75%),
    linear-gradient(45deg, #15304d 25%, transparent 25%, transparent 75%, #15304d 75%);
  background-size: 16px 16px;
  background-position:
    0 0,
    8px 8px;
}
.gx-thumb > img,
.gx-thumb > svg {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  image-rendering: pixelated;
}
.gx-thumb .gx-virtual {
  width: auto;
  height: 110px;
}
.gx-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 5px;
  font-size: var(--text-3xs);
  font-weight: 900;
  letter-spacing: 1px;
  color: #062012;
  background: #7be08a;
}
.gx-info {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}
.gx-info b {
  font-size: var(--text-md);
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gx-info small {
  font-size: var(--text-xs);
  line-height: 1.4;
  color: #86a6c6;
}
.gx-path {
  overflow-wrap: anywhere;
}
.gx-res {
  font-size: var(--text-sm);
  font-weight: 800;
  color: #d6e7f8;
}
.gx-res.now {
  color: #9dfab0;
}
.gx-warn {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #ffcf7a;
}
.gx-sprite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gx-sprite-actions .btn {
  flex: 1 1 auto;
  padding: 7px 8px;
  font-size: var(--text-xs);
  text-align: center;
  cursor: pointer;
}
.gx-more {
  grid-column: 1/-1;
  display: flex;
  justify-content: center;
}

@media (max-width: 760px) {
  .gx-shop-grid,
  .gx-sprites {
    grid-template-columns: minmax(0, 1fr);
  }
  .gx-groups {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gx-weights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gx-feature {
    align-items: flex-start;
    flex-direction: column;
  }
  .gx-table {
    display: block;
    overflow-x: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gx-tile,
  .gx-switch i,
  .gx-switch i::after {
    transition: none;
  }
}

/* ---- 26/09/2026: o interruptor de três posições do mercado de trocas, no cartão de cada jogador */
.pc-trade {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ffffff14;
}
.pc-trade-lbl {
  display: grid;
  gap: 1px;
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--ui-gold);
}
.pc-trade-lbl small {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ui-muted);
}
.pc-trade-switch {
  display: flex;
  overflow: hidden;
  border: 1px solid #ffffff1f;
  border-radius: 8px;
}
.pc-trade-switch button {
  padding: 6px 10px;
  border: 0;
  border-right: 1px solid #ffffff14;
  background: #0b1a2e80;
  color: var(--ui-muted);
  font: inherit;
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.pc-trade-switch button:last-child {
  border-right: 0;
}
.pc-trade-switch button.on {
  background: #f0b9232b;
  color: #ffe9a8;
}
.pc-trade-switch button.on.open {
  background: #4ad08a2b;
  color: #baf5d4;
}
.pc-trade-switch button.on.blocked {
  background: #d044442b;
  color: #ffc0bc;
}
@media (prefers-reduced-motion: reduce) {
  .pc-trade-switch button {
    transition: none;
  }
}

/* ---- 26/09/2026: os presentes da carta viraram três caixas — moedas, skins e Pokémon —, e o ouro entrou
   ao lado das Shiny Gems. Antes eram campos e linhas soltas, um embaixo do outro, sem dizer o que era o quê. */
.mail-gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.mail-gift-box {
  min-width: 0;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid #ffffff1f;
  border-radius: 8px;
  background: #0b1a2e4d;
}
.mail-gift-box.wide {
  grid-column: 1 / -1;
}
.mail-gift-box legend {
  padding: 0 6px;
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--ui-gold);
}
.mail-gift-box .adm-row {
  margin: 0;
}
.mail-gift-box .muted {
  margin: 8px 0 0;
}
.mail-chips-lbl {
  align-self: center;
  margin-right: 4px;
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--ui-gold);
}
.mail-send-row {
  justify-content: flex-end;
}
.gift.gold b {
  color: #ffe9a8;
}
.gift-coin {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}
