/* Pebble Store page styles (Tim, Oct 2026). Shared look comes from /pebble/pebble.css (pb- classes). */
.st-page { max-width: 1100px; margin: 0 auto; }
.st-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.st-title .pb-h1 { margin: 0; }
.st-sub { margin: 2px 0 0; font-size: 17px; }
.st-wallet { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: auto; }
.st-wallet .pb-pill { font-size: 24px; padding: 6px 18px; }
.st-wallet-note { font-size: 13px; color: var(--pb-ink-soft); font-weight: 700; }
.st-gate { text-align: center; font-size: 20px; font-weight: 700; max-width: 520px; margin: 24px auto; }
.st-gate .pb-btn { margin-top: 12px; text-decoration: none; }
.st-session, .st-empty { margin: 0 0 14px; text-align: center; font-weight: 700; }
.st-layout { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 18px; align-items: start; }
.st-preview-col { position: sticky; top: 10px; }
.st-preview-col .pb-h2 { font-size: 22px; }

/* the play-screen preview */
.st-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; border: 4px solid var(--pb-forest2); overflow: hidden;
  background: linear-gradient(#bfe9ff, #e8f8c8 60%, #a8dc7a); box-shadow: 0 5px 0 rgba(60, 80, 40, .25); container-type: inline-size; }
.st-screen-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqw; padding: 10cqw 8cqw; }
.st-prompt { font-family: "Fredoka", "Andika", sans-serif; font-weight: 700; font-size: 6.4cqw; color: #12361f; background: rgba(255, 255, 255, .78);
  padding: 1.2cqw 4cqw; border-radius: 3cqw; display: inline-flex; align-items: center; gap: 1.4cqw; }
.st-path-wrap { width: 100%; }
.st-borders { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.st-borders span { position: absolute; font-size: 6cqw; line-height: 1; transform: translate(-50%, -50%); }

/* a path strip (preview and item tiles) */
.st-path { position: relative; width: 100%; height: 13cqw; min-height: 34px; }
.st-path svg { width: 100%; height: 100%; display: block; overflow: visible; }
.st-card .st-path svg { height: 100%; }

/* item cards */
.st-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.st-tabs .pb-btn { font-size: 16px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.st-card { background: var(--pb-cream); border: 3px solid var(--pb-stone3); border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 4px 0 rgba(60, 80, 40, .2); cursor: pointer; text-align: center; }
.st-card.st-picked { border-color: var(--pb-leaf); box-shadow: 0 0 0 3px var(--pb-moss), 0 4px 0 rgba(60, 80, 40, .2); }
.st-card.st-inuse { background: #e6f6dc; }
.st-tile { height: 92px; border-radius: 12px; border: 2px solid rgba(18, 54, 31, .25); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; container-type: inline-size; }
.st-tile.st-tile-plain { background: rgba(255, 255, 255, .6); }
.st-tile img.st-pimg { width: 70px; height: 70px; object-fit: contain; }
.st-tile svg.st-pebble { width: 72px; height: 62px; }
.st-tile .st-path { width: 88%; height: 40px; min-height: 0; }
.st-tile .st-emoji { font-size: 40px; line-height: 1; }
.st-name { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--pb-forest); min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.st-card .pb-btn { width: 100%; min-height: 44px; font-size: 16px; padding: 4px 8px; }
.st-price { font-weight: 700; color: #0a5b7d; }
.st-need { font-size: 13px; color: var(--pb-ink-soft); font-weight: 700; margin: -2px 0 0; }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.st-preview-note { margin: 8px 0 0; min-height: 22px; font-weight: 700; color: var(--pb-forest2); }
.st-gate-home { display: inline-flex; }

@media (max-width: 800px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-preview-col { position: static; }
  .st-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .st-wallet .pb-pill { font-size: 20px; }
}
