/* Library artwork tilts independently of the text beneath it. */
.games-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 240px));
  gap: 36px 28px;
  padding-top: 8px;
}
.library-card { background: none; border: 0; box-shadow: none; min-width: 0; }
.library-cover { perspective: 900px; aspect-ratio: 2 / 3; position: relative; z-index: 0; }
.library-cover:hover, .library-cover:focus-within { z-index: 1; }
.library-art {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 12px 25px;
  border-radius: 5px;
  border: 1px solid #ffffff20;
  overflow: hidden;
  position: relative;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  box-shadow: 0 8px 18px #0006;
  isolation: isolate;
}
.library-art::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25; background: repeating-linear-gradient(135deg, transparent 0 42px, #ffffff0e 43px 44px); }
.library-art.is-hovered {
  transform: translateY(-7px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.045);
  transition: transform 90ms ease-out, box-shadow 220ms ease, border-color 220ms ease;
  border-color: #ffffff66;
  box-shadow: 0 24px 36px #0009, 0 0 20px #67c8ff12;
}
.library-art:focus-visible { transform: translateY(-7px) scale(1.045); }
.library-art img { width: 92%; height: auto; max-width: 100%; max-height: 72%; object-fit: contain; transform: rotate(-16deg); filter: drop-shadow(0 14px 8px #0006); }
.cover-label { font-size: 9px; letter-spacing: 2.5px; color: #ffffffb0; text-align: center; }
.cover-title { font-size: clamp(20px, 2vw, 25px); font-weight: 800; letter-spacing: 2px; color: #f2f6fa; text-shadow: 0 3px 10px #0004; }
.library-art .factory-art { width: 100%; max-height: 75%; transform: none; }
.factorie-art { background: radial-gradient(ellipse at 40% 25%, #847147, #403626 75%); }
.factorie-art .cover-title { color: #f8e6b9; }
.card-sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at var(--shine-x) var(--shine-y), #ffffff40, #ffffff0c 35%, transparent 70%), linear-gradient(120deg, transparent 20%, #ffffff12 45%, transparent 70%); mix-blend-mode: screen; transition: opacity 220ms ease; }
.is-hovered .card-sheen, .library-art:focus-visible .card-sheen { opacity: 1; }
.library-details { padding: 18px 0 0; }
.library-details h3 { margin: 0 0 7px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.library-details h3 a:hover { color: var(--blue); }
.library-details p { margin: 0; font-size: 12px; line-height: 1.6; color: #a9bbcd; min-height: 0; }
@media(max-width:580px) {
  .games-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 16px; }
  .library-art { padding: 18px 8px; }
  .cover-label { font-size: 7px; letter-spacing: 1px; }
  .cover-title { font-size: 15px; letter-spacing: 1px; }
  .library-details h3 { font-size: 14px; }
  .topbar { gap: 24px; }
  .brand { font-size: 22px; }
}
@media(max-width:350px) { .games-grid { grid-template-columns: 1fr; max-width: 240px; } .topbar { padding: 0 16px; gap: 18px; } .topbar nav { gap: 16px; } }
@media(prefers-reduced-motion:reduce) {
  .library-art.is-hovered, .library-art:focus-visible { transform: none; }
}
.stormhold-art { padding: 0; background: #090909; }
.library-art .stormhold-cover { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; transform: none; filter: none; }
.library-art.factorie-art { padding: 0; background: #191d20; }
.library-art .factorie-cover { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; transform: none; filter: none; }

.library-art.supplied-cover { padding: 0; background: #080808; }
.library-art.supplied-cover img { width: 100%; height: 100%; max-height: none; object-fit: contain; transform: none; filter: none; }
.oblivion-art { background: radial-gradient(ellipse at 50% 50%, #381608, #080808 75%); }
.library-art.oblivion-art img { width: 100%; transform: none; filter: none; image-rendering: pixelated; }
.library-art.jones-art { background: linear-gradient(160deg,#293e57,#111d2b); text-align: center; }
.library-art.jones-art img { width: 100%; transform: none; image-rendering: pixelated; border: 2px solid #cad6e3; }
.jones-art .cover-title { color: #f4deb1; letter-spacing: 1px; line-height: 1.35; }
.mobile-edition { color: #d8b589; font-size: 10px; letter-spacing: 2px; text-align: center; }
