/* Kruze Fam Vault — windowed grid (pairs with js/vault-grid.js).
   JS sets on the container: height, --kz-cell-w, --kz-cell-h, --kz-cap-h. Cells are positioned with translate(). */
.kz-grid {
  position: relative;
  width: 100%;
  contain: layout style;
}
.kz-grid__cell {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--kz-cell-w, 160px);
  height: var(--kz-cell-h, 274px);
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.kz-grid__cell > .kz-card { width: 100%; }
/* hover pop inside a grid: grow from the middle and a little less, so it never covers the caption of the row above
   (rails and the Top 10 keep the bigger pop from card3d.css) */
.kz-grid__cell > .kz-card.kz-tilt .kz-card__tilt { transform-origin: 50% 48%; scale: calc(1 - var(--o, 0) * .07); }
.kz-grid__cell:hover,
.kz-grid__cell:focus-visible,
.kz-grid__cell:focus-within { z-index: 2; }
.kz-grid__cell:focus-visible {
  outline: none;
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--kz-bg, #07080d), 0 0 0 4px var(--kz-gold, #f5c542);
}

.kz-grid__cap {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: var(--kz-cap-h, 50px);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.kz-grid__name {
  font: 600 13.5px/1.2 var(--kz-font-body, Inter, system-ui, sans-serif);
  color: var(--kz-text, #f4f1ea);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s ease;
}
.kz-grid__sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font: 500 11.5px/1.2 var(--kz-font-body, Inter, system-ui, sans-serif);
  color: var(--kz-muted, #9a9aa8);
}
.kz-grid__set { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kz-grid__price {
  flex: none;
  font: 700 11.5px/1.2 var(--kz-font-mono, ui-monospace, Menlo, monospace);
  color: var(--kz-gold, #f5c542);
  font-variant-numeric: tabular-nums;
}
.kz-grid__cell:hover .kz-grid__name,
.kz-grid__cell:focus-visible .kz-grid__name { color: var(--kz-gold, #f5c542); }

@media (prefers-reduced-motion: reduce) {
  .kz-grid__name { transition: none; }
}
