/* Larger original-style labels, consistently framed across the hero deck. */
.deck-card .face-label {
  min-height: 24px;
  padding: 3px 8px;
  font: 7.5px/1.5 var(--mono);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.deck-card .face-label b {
  font: inherit;
  font-weight: 700;
}

/* The original touch-deck hint: a gold glint through text below the cards. */
.deck-hint {
  display: none;
}
@media (max-width: 1099px) {
  .deck-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 38px;
    pointer-events: none;
  }
  .deck-hint::before,
  .deck-hint::after {
    content: "";
    height: 1px;
    width: clamp(18px, 7vw, 40px);
    flex-shrink: 0;
    background: linear-gradient(90deg, transparent, #e9be4f66);
  }
  .deck-hint::after {
    background: linear-gradient(90deg, #e9be4f66, transparent);
  }
  .deck-hint span {
    font: 700 9.5px/1.5 var(--mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(100deg, var(--faint) 0%, var(--faint) 40%, #e9be4f 47%, #f8e3a0 50%, #e9be4f 53%, var(--faint) 60%, var(--faint) 100%);
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: hint-glint 6s linear infinite;
  }
  .deck-caption {
    display: none;
  }
  .deck-stamp {
    left: 16px;
    right: auto;
    bottom: 16px;
    transform: rotate(-8deg);
  }
}
@media (max-width: 700px) {
  .tile-badges:has(.badge-mazified) {
    top: auto;
    bottom: 10px;
    left: 10px;
  }
  /* Keep the desktop action-panel treatment, stacked at phone widths. */
  .utility-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .utility-strip > a,
  .utility-strip > a:last-child {
    min-height: 108px;
    padding: 20px 22px 18px;
    gap: 16px;
  }
  .utility-strip b {
    font: 600 38px/1 var(--display);
    letter-spacing: 0;
  }
  .utility-strip small {
    margin-top: 9px;
    font: 10px/1.6 var(--mono);
    letter-spacing: 0.11em;
  }
  .utility-strip > a > svg:last-child {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
}
@keyframes hint-glint {
  from { background-position: 140% 0; }
  to { background-position: -140% 0; }
}

/* A quiet gold reflection, once per hover/focus, over the existing artwork. */
.category-card {
  transition: border-color 0.25s, box-shadow 0.25s;
}
.category-card::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 50%;
  z-index: 1;
  pointer-events: none;
  transform: skewX(-18deg);
  background: linear-gradient(100deg, transparent, #f8e3a01a 45%, #f8e3a038 50%, #e9be4f1a 55%, transparent);
}
.category-card:focus-visible {
  border-color: #e9be4f99;
  box-shadow: inset 0 0 0 1px #e9be4f1f;
}
.category-card:focus-visible::before {
  animation: category-glint 0.85s ease-out both;
}
@media (hover: hover) and (pointer: fine) {
  .category-card:hover {
    border-color: #e9be4f99;
    box-shadow: inset 0 0 0 1px #e9be4f1f;
  }
  .category-card:hover::before {
    animation: category-glint 0.85s ease-out both;
  }
}
@keyframes category-glint {
  from { left: -60%; }
  to { left: 120%; }
}

/* Two equal groups make the real, dated records loop without a seam. */
.market-ribbon {
  min-width: 0;
}
.market-ribbon > .sales-tape-viewport {
  flex: 1;
  overflow-x: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.sales-tape-track,
.sales-tape-group {
  display: flex;
  flex-shrink: 0;
  width: max-content;
}
.sales-tape-track {
  align-items: center;
}
.can-scroll .sales-tape-track {
  animation: sales-tape-scroll var(--tape-duration, 95s) linear infinite;
}
.market-ribbon .sales-tape-group button,
.market-ribbon .sales-tape-group button:first-child {
  flex-shrink: 0;
  padding-inline: 21px;
}
.market-ribbon .sales-tape-group button span {
  display: inline;
}
.market-ribbon .tape-toggle {
  flex-shrink: 0;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  padding: 0;
  border: 0;
  color: var(--muted);
}
.tape-toggle:hover,
.tape-toggle:focus-visible {
  color: var(--gold);
}
.tape-toggle svg {
  width: 13px;
  height: 13px;
}
.tape-play-symbol,
.tape-paused .tape-pause-symbol {
  display: none;
}
.tape-paused .tape-play-symbol {
  display: block;
}
.tape-paused .sales-tape-track,
.sales-tape-viewport:focus-within .sales-tape-track,
.sales-tape-viewport:active .sales-tape-track {
  animation-play-state: paused;
}
@media (hover: hover) {
  .market-ribbon:hover .sales-tape-track {
    animation-play-state: paused;
  }
}
.tape-keyboard .sales-tape-track {
  animation: none;
}
.tape-keyboard > .sales-tape-viewport,
.tape-paused > .sales-tape-viewport {
  overflow-x: auto;
}
.market-ribbon:not(.can-scroll) .sales-tape-group[aria-hidden],
.tape-keyboard .sales-tape-group[aria-hidden],
.market-ribbon:not(.can-scroll) .tape-toggle {
  display: none;
}
.sales-tape-empty {
  color: var(--muted);
  font: 10px var(--mono);
}
@keyframes sales-tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .deck-hint span {
    animation: none;
    background: none;
    color: var(--muted);
    -webkit-text-fill-color: currentColor;
  }
  .category-card::before,
  .category-card:hover::before,
  .category-card:focus-visible::before {
    animation: none;
    display: none;
  }
  .can-scroll .sales-tape-track {
    animation: none;
  }
  .market-ribbon > .sales-tape-viewport {
    overflow-x: auto;
  }
  .market-ribbon .sales-tape-group[aria-hidden],
  .market-ribbon .tape-toggle {
    display: none;
  }
}
