.archive-main { background: var(--cream); }
.archive-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 7vw, 8rem);
  color: white;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(85,147,185,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85,147,185,0.22) 1px, transparent 1px);
  background-size: 56px 56px;
}
.archive-hero h1 { max-width: 9ch; }
.archive-intro { max-width: 37rem; padding: 1.5rem 0; color: #d7e1e8; font-size: 1.1rem; }
.archive-intro p { margin: 0 0 1rem; }
.archive-intro strong { color: white; }
.archive-browser { padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 5vw, 5rem) 7rem; }
.archive-toolbar { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.archive-toolbar h2 { max-width: 14ch; font-size: clamp(2.7rem, 5vw, 4.8rem); }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem; max-width: 43rem; }
.filter-button {
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid #aeb7bd;
  border-radius: 999px;
  font: inherit;
  font-size: 0.87rem;
  font-weight: 700;
}
.filter-button:hover, .filter-button:focus-visible { border-color: var(--navy); }
.filter-button.is-active { color: white; background: var(--navy); border-color: var(--navy); }
.filter-button span { margin-left: 0.25rem; opacity: 0.65; }
.result-count { margin: 2rem 0 1rem; color: var(--muted); font-size: 0.9rem; }
.archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.archive-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid #d6dadd; box-shadow: 0 7px 20px rgba(16,40,61,0.08); }
.archive-card[hidden] { display: none; }
.cover-frame { position: relative; display: grid; min-height: 16rem; place-items: center; padding: 1rem; overflow: hidden; background: #e8e4d9; }
.cover-frame::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--blue); }
.archive-card[data-category="casual"] .cover-frame::after { background: var(--yellow); }
.archive-card[data-category="deep"] .cover-frame::after { background: var(--orange); }
.cover-frame img { display: block; width: 100%; height: 14rem; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(21,35,48,0.18)); }
.cover-fallback { display: none; max-width: 12ch; color: var(--navy); font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 0.95; text-align: center; text-transform: uppercase; }
.cover-frame.image-missing .cover-fallback { display: block; }
.cover-frame.image-missing img { display: none; }
.archive-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.archive-meta { display: flex; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.7rem; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.archive-category { color: #356b8b; }
.archive-card[data-category="casual"] .archive-category { color: #946d08; }
.archive-card[data-category="deep"] .archive-category { color: #a44220; }
.archive-card h3 { margin: 0 0 0.65rem; font-size: 1.7rem; }
.archive-facts { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.archive-description { margin: 0; color: #45535e; font-size: 0.92rem; line-height: 1.52; }
.archive-bottom { padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 7vw, 8rem); color: white; background: var(--orange); }
.archive-bottom h2 { max-width: 13ch; }
.archive-bottom p:not(.eyebrow) { max-width: 43rem; font-size: 1.1rem; }
.archive-bottom .eyebrow { color: #ffe6d8; }
.archive-bottom .button { margin-top: 1rem; background: var(--cream); }

@media (max-width: 1100px) {
  .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .archive-toolbar { align-items: flex-start; flex-direction: column; }
  .filters { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .archive-hero { grid-template-columns: 1fr; gap: 1rem; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover-frame { min-height: 14rem; }
  .cover-frame img { height: 12rem; }
}
@media (max-width: 500px) {
  .archive-grid { grid-template-columns: 1fr; }
  .cover-frame { min-height: 20rem; }
  .cover-frame img { height: 18rem; }
  .filter-button { flex: 1 1 calc(50% - 0.55rem); }
}

.archive-additions { padding: 3.5rem clamp(1.25rem, 5vw, 5rem) 5rem; border-top: 1px solid #d6dadd; background: var(--paper); scroll-margin-top: 6rem; }
.archive-additions h2 { max-width: 20ch; font-size: clamp(2.7rem, 5vw, 4.8rem); }
.archive-additions > p:not(.eyebrow) { max-width: 52rem; color: #45535e; }
.new-games-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin: 2rem 0 0; list-style: none; }
.new-games-list li { padding: 1rem 1.2rem 1rem 0; border-top: 1px solid #d6dadd; font-weight: 600; }
@media (max-width: 900px) { .new-games-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .new-games-list { grid-template-columns: 1fr; } }
