.hz .hz-stats { justify-content: center; }
.hz .hz-p.on { background: var(--accent); color: var(--accent-ink); }
.hz .hz-p.on b { color: var(--accent-ink); }
.hz .hz-grid { display: grid; gap: 10px; margin: 0 auto; grid-template-columns: repeat(4, 1fr); max-width: 460px; }
.hz .hz-g24 { grid-template-columns: repeat(6, 1fr); max-width: 640px; }
@media (max-width: 560px) {
  .hz .hz-g24 { grid-template-columns: repeat(4, 1fr); max-width: 420px; gap: 8px; }
}
.hz .hz-card { appearance: none; border: 0; padding: 0; background: none; aspect-ratio: 3 / 4; perspective: 700px; cursor: pointer; min-width: 0; font: inherit; border-radius: 12px; }
.hz .hz-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hz .hz-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .35s ease; transform-style: preserve-3d; }
.hz .hz-card.up .hz-inner { transform: rotateY(180deg); }
.hz .hz-face { position: absolute; inset: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--line); }
.hz .hz-back { background-color: var(--accent); background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,.28) 0 18%, transparent 19%), repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 6px, transparent 6px 12px); border-color: transparent; box-shadow: var(--shadow); }
.hz .hz-card:hover:not(.up) .hz-back { filter: brightness(1.08); }
.hz .hz-front { background: var(--cell); transform: rotateY(180deg); font-size: clamp(26px, 8vw, 46px); line-height: 1; }
.hz .hz-g24 .hz-front { font-size: clamp(24px, 6.5vw, 40px); }
.hz .hz-card.ok .hz-front { background: color-mix(in srgb, var(--good) 16%, var(--cell)); border-color: var(--good); animation: hz-pop .35s ease; }
.hz .hz-card:disabled { cursor: default; }
@keyframes hz-pop { 50% { transform: rotateY(180deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .hz .hz-inner { transition: none; }
  .hz .hz-card.ok .hz-front { animation: none; }
}
