.shop-panel {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 40;
  background: rgba(255, 255, 255, 0.96); border-radius: 36px 36px 0 0; box-shadow: 0 -10px 30px rgba(58,51,87,.18);
  display: flex; flex-direction: column; padding: 16px 28px 16px; gap: 10px;
  transform: translateY(105%); transition: transform 0.3s cubic-bezier(.3,1.2,.5,1), height 0.3s ease;
}
.shop-panel.open { transform: none; }
.shop-close { position: absolute; top: -30px; right: 28px; width: 60px; height: 60px; font-size: 1.5rem; }
.shop-tabs { display: flex; gap: 8px; overflow-x: auto; padding-right: 80px; }
.shop-tab {
  font: inherit; font-weight: 600; font-size: 1.05rem; border: none; cursor: pointer; white-space: nowrap;
  background: #f1edff; color: var(--ink); padding: 10px 16px; border-radius: 999px;
}
.shop-tab.on { background: var(--primary); color: #fff; }
.shop-grid { flex: 1; display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 4px 2px 8px; align-items: stretch; }
.shop-card {
  flex: 0 0 150px; font: inherit; color: var(--ink); border: none; cursor: pointer; border-radius: 22px;
  background: #fff; box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.shop-img { width: 100px; height: 80px; object-fit: contain; }
.shop-img.is-emoji { font-size: 3.2rem; width: auto; height: 80px; display: flex; align-items: center; }
.shop-name { font-weight: 600; font-size: 1rem; text-align: center; line-height: 1.1; }
.shop-price { font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.shop-price .coin { width: 22px; height: 22px; }
.status-too-expensive .shop-price { color: #b4aec9; text-decoration: line-through; }
.status-too-expensive .shop-img { opacity: 0.6; }
.status-owned .shop-price { color: var(--right-dark); }
.shop-action { min-height: 64px; display: flex; align-items: center; justify-content: center; }
.shop-hint, .shop-empty { margin: 0; color: var(--muted); font-size: 1.15rem; }

/* ---------- vista previa: la tienda se reduce a una barra ---------- */
.shop-panel.is-previewing {
  height: auto; left: 24px; right: 24px; bottom: 20px; border-radius: 32px; padding: 12px 18px;
}
.shop-panel.is-previewing.bar-top { bottom: auto; top: 20px; }
.shop-panel.is-previewing .shop-tabs, .shop-panel.is-previewing .shop-grid { display: none; }
.shop-panel.is-previewing .shop-close { top: 50%; transform: translateY(-50%); right: -14px; width: 52px; height: 52px; }
.shop-selected { display: flex; align-items: center; gap: 16px; width: 100%; padding-right: 40px; }
.shop-selected .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.shop-selected .coin { width: 28px; height: 28px; }
.shop-back { font-size: 1.1rem; }
.shop-thumb { width: 64px; height: 56px; object-fit: contain; }
.shop-thumb.is-emoji { font-size: 2.6rem; width: auto; height: auto; }
.shop-selected-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.shop-selected-text strong { font-size: 1.35rem; }
.shop-selected-text span { color: var(--muted); font-size: 1.05rem; }
