/* Shop scenes for both demos: an NPC at a booth, goods on a shelf with price
   tags, and a service counter. Uses only local CSS; the NPC figure is the
   shared procedural 3D stage mounted into .npc-stage. */
.shop-scene { max-width: 1120px; margin: 0 auto; padding: 12px 16px 28px; }
.shop-header { display: flex; gap: 16px; align-items: stretch; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.npc-booth { flex: 1 1 420px; display: flex; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(40, 32, 18, .92), rgba(18, 22, 30, .92)); border: 1px solid rgba(214, 178, 102, .45);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .35); }
.npc-stage { position: relative; flex: none; width: 190px; height: 150px; border-radius: 10px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 85%, rgba(255, 210, 120, .22), transparent 60%), linear-gradient(#1c2430, #10151d); border: 1px solid rgba(255, 255, 255, .08); }
.npc-info { flex: 1; min-width: 0; }
.npc-name { font-weight: 900; font-size: 17px; color: #f3d48a; letter-spacing: 1px; margin-bottom: 8px; }
.npc-name small { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; color: #a99a78; letter-spacing: 0; }
.npc-bubble { position: relative; padding: 10px 14px; border-radius: 12px; background: #f5ecd6; color: #2b2112; font-size: 14px; line-height: 1.55;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35); animation: npc-talk .35s ease-out; }
.npc-bubble::before { content: ''; position: absolute; left: -9px; top: 18px; border: 9px solid transparent; border-left: 0; border-right-color: #f5ecd6; }
@keyframes npc-talk { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.shop-wallet { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px 22px; border-radius: 14px;
  background: rgba(20, 26, 34, .9); border: 1px solid rgba(240, 200, 90, .5); color: #c9b27a; }
.shop-wallet b { font-size: 34px; color: #ffd76a; text-shadow: 0 0 12px rgba(255, 200, 80, .45); line-height: 1.1; }

.shelf-title { margin: 6px 0 10px; color: #e8dcc0; letter-spacing: 2px; }
.shop-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 22px 16px; padding: 22px 16px 26px; border-radius: 12px;
  background: linear-gradient(transparent 0 calc(100% - 14px), #5b4327 calc(100% - 14px)), repeating-linear-gradient(90deg, #2a2118 0 2px, transparent 2px 120px), #1c1812;
  border: 1px solid #4d3b25; box-shadow: inset 0 -10px 0 #3d2c19, inset 0 8px 18px rgba(0, 0, 0, .45); }
.shelf-item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 10px 10px; border-radius: 10px; text-align: center;
  background: linear-gradient(#f1e6c9, #dccb9f); color: #2b1f0e; border: 2px solid #8b6c33; box-shadow: 0 8px 14px rgba(0, 0, 0, .45); transition: transform .15s; }
.shelf-item:hover { transform: translateY(-4px) rotate(-.4deg); }
.shelf-item.rarity-uncommon { border-color: #3f7fc4; }
.shelf-item.rarity-rare { border-color: #d4a017; box-shadow: 0 8px 14px rgba(0, 0, 0, .45), 0 0 16px rgba(255, 196, 40, .45); }
.shelf-item .card-art svg { width: 100%; height: 84px; display: block; border-radius: 6px; }
.shelf-item .card-title { font-weight: 900; font-size: 15px; }
.shelf-item .card-cost { font-size: 12px; color: #6d5a38; }
.shelf-item .card-desc { font-size: 12.5px; line-height: 1.45; flex: 1; }
.shelf-item .btn { margin-top: 4px; }
.price-tag { position: absolute; top: -12px; right: 10px; display: flex; align-items: baseline; gap: 3px; padding: 3px 10px 4px; border-radius: 4px 4px 10px 10px;
  background: #ffd24a; color: #3a2600; font-size: 11px; box-shadow: 0 3px 6px rgba(0, 0, 0, .45); transform: rotate(3deg); }
.price-tag::before { content: ''; position: absolute; top: -9px; left: 50%; width: 1px; height: 9px; background: #9b7a3a; }
.price-tag b { font-size: 17px; }
.price-tag s { opacity: .6; margin-right: 2px; }
.sale-ribbon { position: absolute; top: 8px; left: -6px; padding: 2px 10px; background: #d7263d; color: #fff; font-size: 11px; font-weight: 900; transform: rotate(-8deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .4); }
.shelf-empty { grid-column: 1 / -1; text-align: center; color: #b7a782; }

.shop-counter { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.counter-service { padding: 12px 14px; border-radius: 12px; background: rgba(18, 24, 32, .9); border: 1px solid rgba(160, 190, 220, .25); color: #d6dde6; }
.counter-service h4 { margin: 0 0 4px; color: #f0d78e; font-size: 15px; display: inline; }
.counter-service p { margin: 4px 0 10px; font-size: 12.5px; color: #9aa7b4; }
.remove-service summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; list-style: none; }
.remove-service summary span { font-size: 12px; color: #9fc3e6; }
.remove-service[open] summary span { display: none; }
.remove-service .deck-list { margin-top: 10px; max-height: 320px; overflow: auto; }
.shop-leave { display: block; margin: 20px auto 0; }
/* Wa transfer market: contracts pinned to a board. */
.contract-board { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); justify-items: center; }
.contract-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; }
.contract-label { font-size: 12px; font-weight: 900; letter-spacing: 2px; color: #e9d7a6; }
.contract-slot.tier-1 .contract-label { color: #9fc8ff; }
.contract-slot.tier-2 .contract-label { color: #ffd24a; text-shadow: 0 0 8px rgba(255, 210, 74, .5); }
.contract-slot .price-tag { top: -6px; right: 4px; z-index: 3; }
@media (max-width: 720px) {
  .shop-counter { grid-template-columns: 1fr; }
  .npc-booth { flex-direction: column; text-align: center; }
  .npc-bubble::before { display: none; }
  .npc-stage { width: 170px; height: 132px; }
}
/* Dark ink on the light shelf cards (overrides each demo's card text colours). */
.shop-scene .shelf-item .card-title { color: #2b1f0e; }
.shop-scene .shelf-item .card-desc { color: #3a2c16; }
.shop-scene .shelf-item .card-cost { color: #6d5a38; }
