/* Thok Tiers · DS-057 · .th- prefixed */
.th { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px; font: 500 13px/1.3 ui-sans-serif, system-ui, sans-serif; }
.th-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 18px 12px 14px; background: #1E2330;
  border: 1.5px solid #3A4152; border-radius: 14px; cursor: pointer;
  color: #9AA3B8; transition: border-color .18s, transform .15s, background .18s;
}
.th-card:hover { border-color: #6B7386; }
.th-card:active { transform: scale(.97); }
.th-card:focus-visible { outline: 2px solid #F9A8D4; outline-offset: 2px; }
.th-card.th-on { border-color: #F59E0B; background: rgba(245,158,11,.08); color: #F5F1E8; }
.th-qty { font: 800 26px/1 inherit; color: inherit; }
.th-card.th-on .th-qty { color: #F59E0B; }
.th-label { font: 600 12px/1 inherit; }
.th-each { font: 500 11px/1 inherit; color: #6B7386; }
.th-badge {
  position: absolute; top: -9px; padding: 3px 9px; border-radius: 99px;
  background: #34D399; color: #0B0E14; font: 800 10px/1 inherit;
  letter-spacing: .03em;
}
.th-total {
  grid-column: 1 / -1; margin-top: 4px; padding: 14px 18px; text-align: center;
  background: #F59E0B; color: #0B0E14; font: 700 14px/1 inherit;
  border-radius: 12px;
}
@media (prefers-reduced-motion: reduce) { .th-card { transition: none; } }

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
