/* Arcade cabinet: hero listing card with cartridge links to the record sets */
.cabinet {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cabinet__marquee {
  background: var(--brand);
  color: var(--surface);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.85rem 1rem;
  font-size: 1.15rem;
  border-bottom: 4px solid var(--ink);
}
.cabinet__screen {
  margin: 1rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: color-mix(in srgb, var(--surface) 88%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent);
}
.cabinet__label {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.cabinet__label--slots {
  margin: 0.25rem 1rem 0.5rem;
}
.cabinet__specs {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.cabinet__specs div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border);
}
.cabinet__specs div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.cabinet__specs dt {
  color: var(--muted);
  font-size: 0.85rem;
}
.cabinet__specs dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}
.cabinet__slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0 1rem 1rem;
}
.cart {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.1rem 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--ink);
  text-decoration: none;
  clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: transform 0.15s ease, background 0.15s ease;
}
.cart::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 25%;
  right: 25%;
  height: 3px;
  background: var(--brand);
}
.cart:hover,
.cart:focus-visible {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--brand) 22%, var(--surface));
}
.cart__count {
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart__label {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 420px) {
  .cabinet__specs div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .cart__count {
    font-size: 1.15rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cart {
    transition: none;
  }
}

/* Wide tables: scroll wrapper, and stacked cards on phones */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll .nowrap {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .stack-table,
  .stack-table caption,
  .stack-table tbody,
  .stack-table tr,
  .stack-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .stack-table caption {
    text-align: left;
    white-space: normal;
  }
  .stack-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .stack-table tr {
    border: 1px solid var(--border);
    margin: 0 0 0.75rem;
    padding: 0.4rem 0.75rem;
  }
  .stack-table td {
    text-align: left;
    padding: 0.3rem 0;
    border: 0;
    white-space: normal;
  }
  .stack-table td.nowrap {
    white-space: nowrap;
  }
  .stack-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
  }
}