/* Take 03: Remakes shouldn't be Game of the Year. */

:root {
  /* This tape's label colour: lavender. */
  --tape: #c2b5e8;
}

/* The GTA VI aside sits under the ballot. */
#snub .stage + .prose {
  margin-top: 2rem;
}

/* The two footage frames sit under the prose, with room between. */
#happened .cuts {
  margin-top: 2.5rem;
}

/* Game titles in the ballot use the display face, so "007" isn't slashed. */
.ballot__entry {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-stretch: 90%;
  font-weight: 600;
}

/* Game titles in large display type stay upright; synthetic italics look broken. */
.footage__line cite {
  font-style: normal;
}

/* Exhibit A: the six nominees as tapes, spines out. Tap one to see when its
   story first came out. */

/* The gap leaves room for each tape's black shell, drawn as a shadow. */
.nominees__shelf {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nominee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.6rem 1rem 0.6rem 1.4rem;
  border: 0;
  border-radius: 0.4rem;
  background:
    linear-gradient(to right, var(--tape) 0 0.6rem, transparent 0.6rem),
    var(--paper);
  box-shadow:
    inset 0 0 0 1px var(--shell-edge),
    0 0 0 0.35rem var(--shell);
  color: var(--paper-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nominee__title {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--paper-pen);
}

.nominee__year {
  font-family: var(--font-osd);
  font-size: 1.125rem;
  color: var(--paper-muted);
}

.nominee--remake[aria-pressed="true"] .nominee__year {
  color: var(--paper-rec);
}

.nominee--remake[aria-pressed="true"] {
  box-shadow:
    inset 0 0 0 2px var(--rec),
    0 0 0 0.35rem var(--shell);
}

.nominee:focus-visible {
  outline: 3px solid var(--pen);
  outline-offset: 0.5rem;
}

.nominees figcaption,
.ballot figcaption {
  text-align: center;
}

/* Exhibit B: the ballot. Recounting moves the remake into its own category,
   and Crimson Desert takes the empty slot. */

.ballot__boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.ballot__box {
  padding: 1.25rem 1.5rem 1.5rem;
  border-radius: 0.6rem;
  background: var(--screen);
  color: var(--screen-ink);
}

.ballot__name {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-stretch: 85%;
  font-weight: 750;
}

.ballot__list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ballot__entry {
  padding: 0.5rem 0.75rem;
  border-radius: 0.3rem;
  background: rgb(255 255 255 / 0.06);
}

.ballot__entry--remake {
  box-shadow: inset 0.25rem 0 0 var(--rec);
}

/* The game that gets the freed slot. */
.ballot__entry--new {
  box-shadow: inset 0.25rem 0 0 var(--stamp);
  animation: slot-in 400ms ease both;
}

@keyframes slot-in {
  from { opacity: 0; transform: translateY(0.5rem); }
}

.ballot__controls {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .ballot__entry--new {
    animation: none;
  }
}
