/* Page header that sits on the same grid as the rows: a tile-sized animation, then the title. */
.list-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 18px; margin-block-end: 40px; }
.list-head h1 { margin: 0; font-family: var(--title); font-size: clamp(34px, 3.4vw, 44px); line-height: 1.05; font-weight: 500; letter-spacing: -.01em; color: var(--strong); }
.orbit { display: block; inline-size: 64px; block-size: 64px; }
/* The orbit is a button: it grows a little on hover, shows a tip, and reshuffles prices on click. */
.shuffle { position: relative; display: block; padding: 0; border: 0; background: none; border-radius: 14px; cursor: pointer; transition: transform 200ms var(--ease-out); }
.shuffle:active { transform: scale(0.97); }
.shuffle:focus-visible { outline: 2px solid var(--faint); outline-offset: 2px; }
.shuffle::after {
  content: attr(data-tip); position: absolute; inset-block-end: calc(100% + 6px); inset-inline-start: 50%; translate: -50% 0;
  padding: 4px 9px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--strong); font-size: 12px; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(2px) scale(0.97); transform-origin: bottom center;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.shuffle:focus-visible::after { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .shuffle:hover { transform: scale(1.08); }
  .shuffle:hover:active { transform: scale(1.04); }
  .shuffle:hover::after { opacity: 1; transform: scale(calc(1 / 1.08)); }
}
@media (prefers-reduced-motion: reduce) { .shuffle, .shuffle::after { transition: opacity 150ms ease; } .shuffle:hover { transform: none; } }
/* Shuffled price, with the sticker price struck through beside it. */
.price-now { color: var(--strong); font-variant-numeric: tabular-nums; }
.price-was { margin-inline-start: 8px; color: var(--faint); text-decoration: line-through; }
.list h2 { margin: 0 0 18px; font-size: 13px; font-weight: 500; color: var(--faint); }
.list section + section { margin-block-start: 56px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.row-in { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 18px; }
.row-thumb {
  inline-size: 64px; aspect-ratio: 4 / 5; display: grid; place-items: center;
  border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.row-thumb:has(img), .row-thumb:has(.row-model) { background: none; box-shadow: none; }
.row-model { display: block; inline-size: 100%; block-size: 100%; }   /* same fixed 4:5 frame, so rows never move when an image arrives */
/* In Chip in the things are smaller than the mark above them, centred under it so the titles still line up with the heading. */
#shop .row-thumb { inline-size: 40px; justify-self: center; border-radius: 10px; }
.row-thumb img {
  display: block; inline-size: 100%; block-size: 100%; object-fit: contain;
  transform: rotate(var(--tilt, 0deg));
  filter: drop-shadow(0 6px 10px #0008);
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .row-in:hover .row-thumb img { transform: rotate(0deg) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .row-thumb img { transition: none; } }
.row-thumb .icon { width: 18px; height: 18px; color: var(--faint); }
.row-text { padding-block-start: 4px; }
.row-title { display: flex; align-items: center; gap: 8px; color: var(--strong); font-size: 17px; line-height: 1.35; }
.row-title .icon { width: 13px; height: 13px; opacity: .6; flex: none; }
.row-meta { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.row-meta li { display: flex; align-items: center; gap: 6px; }
.row-meta .icon { width: 14px; height: 14px; opacity: .7; }
.row-note { margin: 10px 0 0; font-size: 15px; color: var(--text); text-wrap: pretty; }
a.row-in:active { transform: scale(0.995); }
.past .row-title, .past .row-meta { color: var(--faint); }
.past .row-thumb { opacity: .55; }
.empty { color: var(--faint); margin: 0; }

/* A row that ends in an action (shop): details on the leading side, the action on the trailing side. */
.row-in.has-action { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; }
.row-action {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-inline: 16px;
  border-radius: 6px; background: var(--strong); color: var(--bg); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: transform 160ms var(--ease-out), opacity 200ms var(--ease-out);
}
.row-action:active { transform: scale(0.97); }
.row-action:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .row-action:hover { opacity: .88; } }
.row-status { font-size: 14px; color: var(--faint); white-space: nowrap; }
@media (max-width: 520px) {
  /* Phones: the status or action tucks under the details instead of floating on its own line. */
  .row-in.has-action { grid-template-columns: 64px minmax(0, 1fr); align-items: start; row-gap: 6px; }
  .row-in.has-action .row-thumb { grid-row: span 2; }
  .row-action, .row-status { grid-column: 2; justify-self: start; }
  .row-status { font-size: 13px; }
}
