/* ==========================================================================
   Games
   Sections: split (two doors) · archive · pc shelf overlay (:target)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Two doors
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: 760px;
}

.pane {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 72px 64px;
  overflow: hidden;
}

/* Hover frame: its own layer above the art, so the character renders never cover it. */
.pane::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 0 2px var(--red);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}

.pane:hover::after,
.pane:focus-visible::after { opacity: 1; }

.pane--pc {
  background: var(--mls-navy);
  color: var(--mls-cream);
}

.pane--mob {
  background: #ececed;
  color: #1e1e1e;
}

.pane__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(0.6) brightness(0.4);
}

.pane__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 34, 41, 0.3), rgba(11, 34, 41, 0.95) 75%);
}

.pane__art {
  position: absolute;
  left: 24px;
  bottom: -20px;
  width: 340px;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.5));
}

.pane__art--toys {
  left: 0;
  bottom: 0;
  width: 400px;
  filter: none;
}

.pane__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pane__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pane--pc .pane__k { color: var(--mls-teal); }
.pane--mob .pane__k { color: #5f5e64; }   /* dim on the light pane, 5:1 */
.pane--pc .pane__k--strong { color: var(--mls-cream); }
.pane--mob .pane__k--strong { color: #1e1e1e; }

.pane__title {
  margin: 0;
  font-size: 112px;
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.pane__lead {
  margin: 0;
  max-width: 34ch;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.45;
}

.pane--mob .pane__lead { color: #4d4c52; }

.pane__foot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: flex-end;
  gap: 14px;
}

.pane__stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.pane .store {
  height: 48px;
  padding: 0 16px;
  background: rgba(1, 62, 89, 0.6);
}

.pane .store img { height: 18px; }

/* App Store / Google Play badges */

.app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  flex: none;
}

.app svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.app__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.app small {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.app b {
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .pane { padding: 56px 40px; }
  .pane__title { font-size: 88px; }
  .pane__art { width: 300px; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .pane { min-height: 580px; padding: 44px 32px; }
  .pane__title { font-size: 72px; }
  .pane__lead { max-width: 30ch; }
  .pane__art { left: 16px; width: 250px; }
  .pane--mob { min-height: 660px; }
  .pane__art--toys { left: 0; width: 400px; }
}

@media (max-width: 600px) {
  .pane { min-height: 0; justify-content: flex-start; gap: 22px; padding: 36px 20px 28px; }
  .pane__title { font-size: 52px; }
  .pane__lead { max-width: none; font-size: 16px; }
  .pane__art { position: static; order: 5; align-self: flex-start; width: 62%; margin: 0 0 -6px; }
  .pane__art--toys { width: 88%; margin-left: -20px; }
  .pane__foot { order: 6; align-self: flex-start; align-items: flex-start; }
  .pane__stores { justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   Archive
   -------------------------------------------------------------------------- */

.arch {
  position: relative;
  border-top: 1px solid var(--line);
}

.arch__main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-top: 0;
}

.arch__main .sec-head { margin-bottom: 0; }

.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archgrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}

.gcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}

.gcard:hover {
  border-color: var(--line-3);
  box-shadow: 0 0 24px rgba(237, 29, 43, 0.14);
}

.gcard__cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: filter 0.3s var(--ease);
}

.gcard:hover .gcard__cover { filter: none; }

.gcard__name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gcard__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}

.arch__more {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.rem-m { display: none; }

/* Titles past the first page wait for "Load more" (site.js adds .is-all, or ?all=1). */
.archgrid:not(.is-all) > .gcard--more { display: none; }

.arch__more--mobile { display: none; }

.gcard__cover--empty {
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 900;
  color: var(--text-4);
}

@media (max-width: 1200px) {
  .archgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .archgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .filters { flex-direction: column; align-items: flex-start; gap: 10px; }
  .archgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .archgrid:not(.is-all) > .gcard:nth-child(n + 7) { display: none; }
  .arch__more--mobile { display: flex; }
  .rem-d { display: none; }
  .rem-m { display: inline; }
  .gcard { gap: 8px; padding: 12px; }
  .gcard__name { font-size: 14px; }
  .gcard__meta { font-size: 9px; }
}

/* --------------------------------------------------------------------------
   PC shelf overlay — pure :target state
   -------------------------------------------------------------------------- */

.pcview {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  gap: 32px;
  padding: 96px var(--gutter);
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(6px);
}

.arch:target .pcview { display: flex; }

.arch:target .archgrid,
.arch:target .filters,
.arch:target .arch__more {
  filter: blur(6px);
  opacity: 0.25;
  pointer-events: none;
}

.pcview .sec-head { margin-bottom: 0; }

.pcview__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mono--teal { color: var(--mls-teal); }

.pcgrid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px;
}

.bigcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  padding: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}

.bigcard:hover {
  border-color: var(--red);
  box-shadow: 0 0 30px rgba(237, 29, 43, 0.2);
}

.bigcard--mls {
  /* Tall enough that the logo (top) never meets the copy (bottom). */
  min-height: 540px;
  background: var(--mls-navy);
}

.bigcard--next {
  justify-content: space-between;
  background: var(--ink-2);
}

.bigcard--next .chip { align-self: flex-start; }

.bigcard__bg {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: cover;
  filter: blur(7px) saturate(0.65) brightness(0.55);
}

.bigcard__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 34, 41, 0.96) 0%, rgba(11, 34, 41, 0.6) 50%, rgba(11, 34, 41, 0.15) 100%);
}

.bigcard__hazmat {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 400px;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45));
}

.bigcard__logo {
  position: absolute;
  left: 36px;
  top: 32px;
  width: 240px;
}

.bigcard__sketch {
  position: absolute;
  right: -40px;
  top: 80px;
  width: 300px;
  opacity: 0.18;
}

.bigcard__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 460px;
}

.bigcard--next .bigcard__body { gap: 12px; }

/* Any other PC game: cover behind an ink fade, copy bottom-left */
.bigcard--game { background: var(--ink-2); }

.bigcard__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bigcard__fade--ink {
  background: linear-gradient(0deg, rgba(20, 20, 20, 0.96) 0%, rgba(20, 20, 20, 0.7) 45%, rgba(20, 20, 20, 0.1) 100%);
}

.bigcard__lead {
  margin: 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--mls-cream);
}

.bigcard__lead--plain { color: var(--text-2); }

.bigcard__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bigcard__cta { height: 48px; }

.bigcard__title {
  font-size: 40px;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.bigcard__follow {
  align-self: flex-start;
  margin-top: 6px;
}

.bigcard__follow img { height: 16px; width: auto; }

@media (max-width: 1200px) {
  .pcgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .pcview { padding-top: 48px; padding-bottom: 48px; }
  .pcgrid { grid-template-columns: 1fr; }
  .bigcard { min-height: 380px; }
  .bigcard--mls { min-height: 520px; }
}

@media (max-width: 600px) {
  .pcview { position: static; padding: 24px 0 0; }
  .bigcard { min-height: 300px; padding: 20px; }
  .bigcard--mls { min-height: 470px; }
  .bigcard__title { font-size: 30px; }
  .bigcard__body { max-width: 100%; }
  .bigcard__hazmat { width: 56%; }
  .bigcard__logo { width: 150px; }
  .bigcard__lead { font-size: 15px; }
}
