
body { background: radial-gradient(ellipse at 15% 0%, #42234e, transparent 45%),
                   radial-gradient(ellipse at 100% 50%, #19324d, transparent 45%), #11121b; }
.library { width: min(calc(100% - 2rem), 86rem); margin-inline: auto; }
.library > h1 { color: #fff4e8; font-size: clamp(3rem, 8vw, 7rem);
                line-height: .95; letter-spacing: -.075em; }
.library .shelf { display: grid; grid-template-columns: 1.65fr repeat(3, minmax(0, 1fr));
                  gap: clamp(.75rem, 2vw, 1.4rem); align-items: end; }
.library .shelf .game { display: grid; min-width: 0; gap: .4rem; padding: .65rem;
                        color: #fff4e8; background: #222435; border: 1px solid #484b62;
                        border-radius: 1rem; text-decoration: none; }
.library .shelf .game:hover { border-color: #ffb78b; }
.library :is(a, button):focus-visible { outline: 3px solid #ffd393; outline-offset: 4px; }
.library .shelf .game .poster { width: 100%; aspect-ratio: 3 / 4; overflow: hidden;
                                border-radius: .65rem; }
.library .shelf .cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.library .shelf .name { display: flex; justify-content: space-between; gap: .5rem; }
.library .shelf .name h2 { margin: 0; line-height: 1.1; }
.library .shelf .genre { margin: 0; color: #d8cfe1; }
.library .shelf .game[href="/marianne/"] { background: #39263f; border-color: #ac6889; }
.library .shelf [href="/marianne/"] h2 { font-size: clamp(1.4rem, 3vw, 2.5rem); }
.library .shelf .cousin-game { grid-column: 1 / -1;
  grid-template-columns: clamp(6rem, 15vw, 11rem) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr; column-gap: 1rem; align-items: center; }
.library .shelf .cousin-game .poster { grid-row: 1 / 3; aspect-ratio: 8 / 5; }
.library .shelf .cousin-game .name { align-self: end; }
.library .shelf .cousin-game .genre { align-self: start; }
body > footer { padding: 1.5rem; text-align: center; }
body > footer a { color: #d8cfe1; }
@media (max-width: 900px) {
  .library .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .library .shelf [href="/marianne/"] { grid-column: 1 / -1; }
  .library .shelf [href="/marianne/"] .poster { aspect-ratio: 3 / 4; max-width: 28rem; margin-inline: auto; }
}

.library {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.library > h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.library .shelf {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.library .shelf .game {
  grid-template-rows: auto 1fr auto;
}
.library .shelf .game .name h2 {
  font-family: inherit;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 650;
  letter-spacing: -.015em;
}
.library .shelf .game[href="/marianne/"] {
  grid-column: auto;
  background: #222435;
  border-color: #484b62;
}
.library .shelf .game[href="/marianne/"] .poster {
  max-width: none;
}
.library .shelf .cousin-game {
  grid-template-rows: 1fr 1fr;
}
@media (max-width: 900px) {
  .library .shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
