.chapter-five-page {
  --shop-pink: #d57966;
  --shop-gold: #d59a3a;
  --shop-green: #7e9d55;
}

.shop-basics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.shop-basics article {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(76, 56, 32, 0.08);
}

.shop-basics span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 10px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fffaf0;
  background: var(--shop-pink);
  font-weight: 900;
}

.shop-basics p {
  margin: 0;
  color: var(--muted);
}

.shop-card {
  background: #fff7ef;
}

.shop-ring {
  background: #fff0e4;
  border-color: #e0ae91;
}

.shop-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-image: url("../assets/images/chapter-5-rabbit-shop.png");
  background-image: image-set(
    url("../assets/images/chapter-5-rabbit-shop.webp") type("image/webp"),
    url("../assets/images/chapter-5-rabbit-shop.png") type("image/png")
  );
  background-repeat: no-repeat;
  background-size: 360%;
  background-position: 42% 34%;
  border: 2px solid #c9bda7;
}

.ledger-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 4px;
}

.ledger-card {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff8e7;
  border: 1px solid #ead5aa;
}

.ledger-card span {
  display: block;
  margin-bottom: 4px;
  color: #6f5147;
  font-size: 13px;
  font-weight: 900;
}

.ledger-card strong {
  display: block;
  color: #24322c;
  font-size: 18px;
}

.ledger-card.is-good {
  background: #eef5df;
  border-color: #c8d8a5;
}

.ledger-card.is-warning {
  background: #fff0df;
  border-color: #e0a16f;
}

.ledger-card.is-loss {
  background: #fff2ed;
  border-color: #dda18f;
}

@media (max-width: 900px) {
  .shop-basics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .shop-basics,
  .ledger-board {
    grid-template-columns: 1fr;
  }
}
