/*
 * js/game-shop.css - THE SHOP OF A SIDE GAME (js/game-shop.js): the ware cards a game's shop room lays out and the
 * purchase dialog, for Across the Corn and NIGHTFALL. Inside the readable room kit (js/room-ui.css): its words, its
 * buttons and its colours. Every word 16px or larger and every button 44px or taller (the house rules).
 */
.gs-note { margin: 0 0 12px; }
.gs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.gs-ware { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border-radius: 18px;
  background: rgba(18, 12, 30, 0.78); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.gs-ware.is-owned { border-color: rgba(122, 224, 160, 0.7); }
.gs-ware.is-worn { border-color: var(--rui-gold, #F5C242); box-shadow: 0 0 0 2px rgba(245, 194, 66, 0.35), 0 6px 22px rgba(245, 194, 66, 0.22); }
.gs-ware.is-big { border-color: rgba(245, 194, 66, 0.55); background: linear-gradient(160deg, rgba(60, 40, 10, 0.82), rgba(18, 12, 30, 0.86)); }
.gs-ware__art { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1B1430; }
.gs-ware__art > img, .gs-ware__art > canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
/* a pack shows its faces side by side, standing on the card's floor */
.gs-ware__faces { display: flex; align-items: flex-end; justify-content: center; gap: 0; height: 100%; padding: 6px 6px 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(245, 194, 66, 0.35), rgba(27, 20, 48, 0) 70%); }
.gs-ware__faces img { flex: 1 1 0; min-width: 0; max-width: 34%; height: 92%; object-fit: contain; object-position: 50% 100%; margin: 0 -3%; }
.gs-ware__tag { position: absolute; top: 8px; left: 8px; padding: 4px 10px; border-radius: 999px; font-size: 16px; font-weight: bold;
  background: rgba(10, 6, 18, 0.82); color: var(--rui-gold, #F5C242); }
.gs-ware__name { margin: 2px 0 0; font-size: var(--rui-h3, 20px); font-weight: bold; line-height: 1.2; }
.gs-ware__line { margin: 0; flex: 1 1 auto; font-size: 16px; line-height: 1.4; color: var(--rui-dim, #D8D2E6); }
.gs-ware__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gs-ware__row .rui-btn { min-height: 48px; }
.gs-buy.is-owned { color: #7AE0A0; border-color: rgba(122, 224, 160, 0.6); }
.gs-restore { min-height: 48px; }

/* the purchase dialog (the website's): the class sits on the dialog's backdrop */
.gs-pay .gs-pay__head { display: flex; gap: 14px; align-items: flex-start; }
.gs-pay .gs-pay__art { flex: none; width: 96px; height: 96px; object-fit: cover; border-radius: 14px; background: #1B1430; }
.gs-pay .gs-pay__price { margin: 6px 0 0; font-size: var(--rui-h2, 22px); font-weight: bold; color: var(--rui-gold, #F5C242); }
.gs-pay .gs-pay__test { color: var(--rui-warn, #FFD27A); font-weight: bold; }
.gs-pay .gs-pay__terms { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 6px; font-size: 16px; line-height: 1.35; cursor: pointer; min-height: 44px; }
.gs-pay .gs-pay__terms input { flex: none; width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--rui-gold, #F5C242); }
.gs-pay .gs-pay__line { min-height: 1.4em; }
.gs-pay .gs-pay__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (max-width: 420px) {
  .gs-pay .gs-pay__head { flex-direction: column; }
  .gs-pay .gs-pay__art { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
