/* Perks shop — WS-E (Sprint 2). A panel docked at the right during the
   between-shift results screen, layered above the shift overlay (z 100). */
.shop {
  position: fixed;
  top: 50%; right: 18px; transform: translateY(-50%);
  z-index: 101;
  width: min(340px, calc(100vw - 36px));
  max-height: calc(100vh - 40px); overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 16px;
  border: 1px solid var(--accent-dim);
  border-radius: 16px;
  background: linear-gradient(160deg, #16211a 0%, #10140f 70%), var(--panel-solid);
  box-shadow: 0 24px 70px #000b, 0 0 0 1px #ffffff08 inset;
  animation: shop-in .26s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes shop-in { from { opacity: 0; transform: translate(24px, -50%); } }

.shop__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.shop__eyebrow { color: var(--muted); font: 700 10px/1.2 var(--mono); letter-spacing: .16em; }
.shop__title { margin: 4px 0 0; font-size: 16px; line-height: 1.15; letter-spacing: -.02em; }
.shop__wallet { flex: none; font: 800 15px/1 var(--mono); color: var(--accent); background: #53fc1814; border: 1px solid var(--accent-dim); padding: 6px 9px; border-radius: 8px; }

.shop__list { display: flex; flex-direction: column; gap: 8px; }
.shop-perk {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2);
}
.shop-perk.is-owned { opacity: .62; border-style: dashed; }
.shop-perk__icon { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 18px; background: #0d1310; border: 1px solid var(--line); }
.shop-perk__body { flex: 1; min-width: 0; }
.shop-perk__name { font-weight: 700; font-size: 13px; }
.shop-perk__blurb { color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 2px; }
.shop-perk__buy { flex: none; }
.shop-buy { font: 700 12px/1 var(--mono); padding: 8px 10px; white-space: nowrap; }
.shop-owned { color: var(--accent); font: 800 10px/1 var(--mono); letter-spacing: .1em; }

.shop__foot { margin: 12px 0 0; color: var(--muted); font-size: 10.5px; text-align: center; }
.shop__empty { color: var(--muted); font-size: 12px; padding: 8px; }

@media (prefers-reduced-motion: reduce) { .shop { animation: none; } }

/* Risk X-Ray perk readout on the front page (rendered by ui/frontpage.js). */
.risk-xray { color: var(--warn); font: 600 10px/1.3 var(--mono); margin-top: 2px; letter-spacing: .02em; }
