/* Event art already fills its PNG. This removes only the surrounding UI card. */
.card.event-card-active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

dialog.art-view {
  width: min(92vw, 500px);
  padding: 48px 0 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

dialog.art-view .close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  background: #fffdf8;
  box-shadow: 0 3px 12px #102b2740;
}

dialog.art-view img {
  display: block;
  margin: auto;
}

.bait-token.bait-token-art {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.bait-art,
.player-badge-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #00293380);
}

.player-badge.player-badge-art {
  border: 0;
  background: transparent;
}

.resource-art-image {
  object-fit: cover;
  cursor: zoom-in;
}

.shop-item .resource-art {
  float: right;
  width: 58px;
  height: 58px;
  margin: 0 0 8px 8px;
}

/* V0.8 — inventário visual do barco e carrinho do Porto. */
.resources.inventory-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.inventory-resource {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 7px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  text-align: left;
  border: 1px solid #dce2cf;
  background: #f4f5e8;
  color: #173f38;
}

.inventory-resource .resource-art {
  width: 40px;
  height: 40px;
  margin: 0;
  float: none;
}

.inventory-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.inventory-copy strong {
  font-size: 12px;
  line-height: 1.15;
}

.inventory-copy small,
.equipment-item small {
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: .07em;
  font-weight: 800;
  color: #567268;
}

.inventory-count {
  min-width: 25px;
  padding: 4px;
  border-radius: 999px;
  background: #1f6a55;
  color: white;
  text-align: center;
}

.inventory-resource.empty-stock {
  opacity: .55;
  filter: grayscale(.65);
}

.visual-hold-list {
  display: grid;
  gap: 8px;
}

.visual-hold-list .hold-item {
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border: 1px solid #e1dfd1;
  border-radius: 10px;
  background: #fffefa;
}

.hold-summary {
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.hold-summary:hover,
.hold-summary:focus-visible {
  background: #edf3e7;
}

.hold-summary span {
  min-width: 0;
}

.hold-summary small {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
  color: #52675f;
}

.fish-portrait {
  display: block;
  width: 54px;
  height: 54px;
  border: 1px solid #cbd6c2;
  border-radius: 50%;
  background: #e6efe2;
  background-repeat: no-repeat;
  background-size: 175%;
  background-position: 50% 30%;
}

.equipment-title {
  margin-top: 17px;
}

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

.equipment-item {
  min-width: 0;
  min-height: 84px;
  padding: 7px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 1px solid #d7ddcd;
  background: #f6f4e9;
  color: #173f38;
}

.equipment-item img {
  width: 43px;
  height: 66px;
  object-fit: contain;
  border-radius: 4px;
}

.equipment-item span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.equipment-item strong {
  font-size: 12px;
  line-height: 1.2;
}

.basic-boat {
  font-size: 12px;
}

dialog.item-detail {
  width: min(92vw, 520px);
  max-height: 90vh;
  padding: 20px;
  overflow: auto;
  border: 1px solid #d9d7c8;
  border-radius: 17px;
  background: #fffdf8;
  color: #173f38;
  box-shadow: 0 18px 60px #061c1866;
}

dialog.item-detail .close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  margin: -8px -8px 2px 8px;
  background: #fffdf8;
}

.item-detail-content {
  clear: both;
}

.detail-art {
  display: grid;
  place-items: center;
  min-height: 170px;
  margin: 8px 0 14px;
  border-radius: 14px;
  background: radial-gradient(circle, #f7f2d6, #e4ecdc);
}

.detail-art .resource-art {
  width: 150px;
  height: 150px;
}

.detail-card-art {
  display: block;
  width: min(62%, 250px);
  max-height: 42vh;
  margin: 8px auto 16px;
  object-fit: contain;
}

.detail-fish-portrait {
  height: 210px;
  margin: 8px 0 15px;
  overflow: hidden;
  border-radius: 14px;
  background: #dbe9da;
  background-repeat: no-repeat;
  background-size: 118%;
  background-position: 50% 25%;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.detail-facts span {
  padding: 9px;
  border-radius: 9px;
  background: #eff2e6;
  font-size: 12px;
}

.detail-facts strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.detail-facts .status-ready {
  background: #dcefe2;
  color: #175b44;
  font-weight: 800;
}

.detail-facts .status-empty {
  background: #eee9df;
  color: #756c5d;
  font-weight: 800;
}

.shop-price {
  margin: 6px 0;
  font-weight: 800;
  color: #86641f;
}

.quantity-stepper {
  clear: both;
  display: grid;
  grid-template-columns: 42px 44px 42px;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.quantity-stepper button {
  min-height: 40px;
  padding: 5px;
  font-size: 20px;
}

.quantity-stepper strong {
  text-align: center;
  font-size: 17px;
}

.shop-cart {
  position: sticky;
  bottom: 8px;
  z-index: 5;
  margin: 18px 0;
  padding: 16px;
  border: 2px solid #bb913a;
  border-radius: 14px;
  background: #fffdf8f2;
  box-shadow: 0 8px 24px #173f3828;
  backdrop-filter: blur(8px);
}

.shop-cart p {
  margin: 7px 0 10px;
}

.cart-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 11px;
}

.cart-totals span {
  display: grid;
  font-size: 12px;
}

.cart-totals strong {
  font-size: 18px;
}

@media (max-width: 430px) {
  .player-card {
    padding: 16px;
  }

  .inventory-resource,
  .equipment-item {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 5px;
    padding: 6px;
  }

  .equipment-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .inventory-resource .resource-art {
    width: 36px;
    height: 36px;
  }

  .equipment-item img {
    width: 36px;
    height: 56px;
  }

  .inventory-copy strong,
  .equipment-item strong {
    font-size: 11px;
  }

  .visual-hold-list .hold-item {
    grid-template-columns: 1fr;
  }

  .visual-hold-list .hold-item > [data-action] {
    width: 100%;
  }

  dialog.item-detail {
    padding: 15px;
  }
}
