/* Recent games — the played-game list. The rows are the shared .list-row; only the
   delete affordance and the row's own spacing live here. */

.rg-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 34rem;
}

/* The delete button sits over the row rather than inside it: the row itself is the
   link to the review, and a button cannot be nested in an anchor. */
.rg-item { position: relative; }
.rg-item + .rg-item { margin-top: 0.5rem; }

.rg-row { padding-right: 3rem; }

.rg-verdict { flex: none; }

.rg-when {
  white-space: nowrap;
  font-size: 0.8rem;
}

.rg-del {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--ink4);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.rg-del:hover {
  background: var(--danger-soft);
  border-color: var(--danger-soft);
  color: var(--danger);
}

.rg-del:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* The timestamp is the first thing to go when the row runs out of room. */
@media (max-width: 460px) {
  .rg-when { display: none; }
}
