/* ── Shop: tabs, items, coins ── */
/* Coins label */
.coins-label {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
}

/* Shop */
.shop-card {
  max-width: min(480px, calc(100vw - 16px));
  max-height: 85vh;
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shop-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.shop-header h2 { flex: 1; color: #a0c4ff; }

.shop-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 0;
  overflow-x: auto;
  flex-shrink: 0;
}

.shop-tab {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: #1a1a2e;
  color: #64748b;
  border: 1px solid #0f3460;
}

.shop-tab.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  padding: 4px 0;
}

.shop-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-item-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.04), transparent 70%);
  border-radius: 8px;
  margin-bottom: 4px;
  overflow: hidden;
}
.shop-item-preview svg {
  width: 85%;
  height: 85%;
  display: block;
}
.shop-item:hover .shop-item-preview svg {
  transform: scale(1.04);
  transition: transform 0.2s ease;
}

.shop-item-name {
  font-size: 12px;
  font-weight: 700;
  color: #e0e0e0;
}

.shop-item-rarity {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.shop-item-price {
  font-size: 12px;
  color: #fbbf24;
  font-weight: 700;
}

.shop-item-btn {
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}

.shop-item-btn.buy {
  background: #3b82f6;
  color: #fff;
}

.shop-item-btn.owned {
  background: #334155;
  color: #4ade80;
  cursor: default;
}

.shop-item-btn.equip {
  background: #22c55e;
  color: #fff;
}

.shop-item-btn.equipped {
  background: #334155;
  color: var(--text-heading);
  cursor: default;
}

.shop-item-btn.cant-afford {
  background: #1e293b;
  color: #475569;
  cursor: not-allowed;
}

.shop-msg {
  text-align: center;
  padding: 6px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  margin-top: 4px;
}

.shop-msg.success { color: #4ade80; }
.shop-msg.error { color: #f87171; }

/* Shop — mobile compact */
@media (max-width: 600px) {
  .shop-card {
    max-height: 78vh;
    padding: 12px 10px;
    border-radius: 10px;
  }
  .shop-header {
    gap: 6px;
    padding-bottom: 6px;
  }
  .shop-header h2 { font-size: 14px !important; }
  .shop-tabs {
    padding: 4px 0;
    gap: 3px;
  }
  .shop-tab {
    padding: 3px 7px;
    font-size: 10px;
  }
  .shop-items {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px;
  }
  .shop-item {
    padding: 6px 4px;
    gap: 2px;
    border-radius: 8px;
  }
  .shop-item-preview {
    aspect-ratio: 1/1;
    margin-bottom: 2px;
  }
  .shop-item-preview svg {
    width: 75%;
    height: 75%;
  }
  .shop-item-name { font-size: 10px; }
  .shop-item-rarity { font-size: 8px; }
  .shop-item-price { font-size: 10px; }
  .shop-item-btn {
    padding: 3px 6px;
    font-size: 10px;
    margin-top: 2px;
  }
}

