/* MissionTodo — ショップ画面 */
.scard {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 6px;
  padding: 7px 9px 7px 7px;
  background: var(--card);
  border: 2px solid var(--card-edge);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--card-line), 0 1px 0 rgba(0, 0, 0, 0.12);
  color: var(--card-title);
  cursor: pointer;
}
.scard:hover { filter: brightness(1.04); }
.icard { cursor: default; }
.icard:hover { filter: none; }

.ifr {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 7px;
  background: radial-gradient(circle at 50% 40%, #62544b, #3b312b);
  border: 2px solid #2d241f;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px #a38f7d, inset 0 0 0 3px #3b312b;
}
.ifr::before {
  content: "";
  position: absolute;
  inset: -3px;
  pointer-events: none;
  background:
    radial-gradient(circle at 3px 3px, #d4bea5 2px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 3px) 3px, #d4bea5 2px, transparent 2.6px),
    radial-gradient(circle at 3px calc(100% - 3px), #d4bea5 2px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 3px) calc(100% - 3px), #d4bea5 2px, transparent 2.6px);
}
.ifr img { width: 100%; height: 100%; object-fit: contain; border-radius: 2px; }
.ifr.lg { width: 92px; height: 92px; padding: 12px; }

.s-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.s-top { display: flex; align-items: baseline; gap: 8px; }
.s-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-stock { color: var(--card-text); font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.s-desc {
  margin: 2px 0 0;
  color: var(--card-text);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.s-bottom { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 5px; }
.s-price { color: var(--pt); font-size: 12px; font-weight: 800; white-space: nowrap; }
.s-limit { margin-right: auto; color: var(--card-text); font-size: 10px; font-weight: 700; }
.btn-buy {
  position: relative;
  min-width: 88px;
  height: 22px;
  padding: 0 16px;
  background: linear-gradient(#635046, #45372f);
  border: 1.5px solid #2d241f;
  box-shadow: inset 0 0 0 1px #9f8d7e;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
  color: #f2ebe3;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.btn-buy:active { filter: brightness(1.2); }
.btn-buy.disabled { opacity: 0.55; }
.btn-buy.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--card-line); }
.icon-btn.light { color: var(--card-title); }

.scard.compact { align-items: center; padding: 4px 8px 4px 5px; }
.scard.compact .ifr { width: 38px; height: 38px; padding: 4px; }
.scard.compact .s-body { flex-direction: row; align-items: center; gap: 8px; }
.scard.compact .s-top { flex: 1; min-width: 0; }
.scard.compact .s-bottom { margin: 0; padding: 0; }
.scard.compact .s-limit { display: none; }

.icard.used { opacity: 0.72; }
.stamp.used { color: #c2362f; background: rgba(255, 255, 255, 0.92); margin-right: auto; }
.used-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 6px; font-size: 12px; font-weight: 800; }

.buy-confirm { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 10px; }
.buy-confirm b { font-size: 15px; }
.buy-confirm span { font-size: 14px; font-weight: 800; }
.buy-confirm span .ic { color: var(--ink-faint); font-size: 11px; }
.buy-confirm small { color: var(--ink-soft); font-size: 11.5px; font-weight: 700; }
.item-detail { display: flex; flex-direction: column; align-items: center; text-align: center; }
.item-detail h3 { margin: 10px 0 4px; font-size: 16px; font-weight: 800; }
.item-detail p { margin: 0 0 10px; color: var(--ink-soft); font-size: 12.5px; font-weight: 700; line-height: 1.6; white-space: pre-line; word-break: break-word; }
.item-detail .d-info { width: 100%; text-align: left; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 12px 0 2px; }
.stepper .icon-btn { width: 42px; height: 42px; border: 2px solid var(--line); border-radius: 50%; font-size: 18px; }
.stepper b { min-width: 48px; text-align: center; font-size: 26px; font-weight: 800; }
.shop-foot { height: 8px; }
