/* Main + hero */
.arc-main {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: 18px 22px 12px;
  display: grid;
  gap: 12px;
}

.arc-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 96px;
}

.arc-hero::before,
.arc-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(42%, 520px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.72;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 96'%3E%3Cg fill='none' stroke='%23e8a200' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18H318' stroke-opacity='0.44' stroke-width='2.5'/%3E%3Cpath d='M330 10V26' stroke-opacity='0.44' stroke-width='2.5'/%3E%3Cpath d='M6 38H262' stroke-opacity='0.62' stroke-width='3'/%3E%3Cpath d='M274 30V46' stroke-opacity='0.62' stroke-width='3'/%3E%3Cpath d='M6 58H298' stroke-opacity='0.52' stroke-width='2.5'/%3E%3Cpath d='M310 50V66' stroke-opacity='0.52' stroke-width='2.5'/%3E%3Cpath d='M6 78H230' stroke-opacity='0.34' stroke-width='2.5' stroke-dasharray='9 11'/%3E%3Cpath d='M242 70V86' stroke-opacity='0.34' stroke-width='2.5'/%3E%3C/g%3E%3Cg fill='%23020406' stroke='%23e8a200'%3E%3Ccircle cx='286' cy='18' r='4.5' stroke-opacity='0.46' stroke-width='3'/%3E%3Ccircle cx='230' cy='38' r='6.5' stroke-opacity='0.72' stroke-width='3.5'/%3E%3Ccircle cx='266' cy='58' r='5' stroke-opacity='0.54' stroke-width='3'/%3E%3Ccircle cx='198' cy='78' r='4.5' stroke-opacity='0.38' stroke-width='2.5' stroke-dasharray='3 3'/%3E%3C/g%3E%3Ccircle cx='230' cy='38' r='2.6' fill='%23e8a200' fill-opacity='.85'/%3E%3C/svg%3E")
    left center / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 0 56%, transparent 88%);
  mask-image: linear-gradient(90deg, #000 0 56%, transparent 88%);
}

.arc-hero::before {
  left: 0;
}

.arc-hero::after {
  right: 0;
  transform: scaleX(-1);
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
}

.arc-hero h1 {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.04em;
}

.arc-hero h1 .hero-accent {
  color: var(--accent);
}

/* Catalog: era stops on a vertical line */
.arc-catalog {
  padding-top: 6px;
}

#catalog {
  --catalog-gutter: 36px;
  --timeline-line-left: 10px;
  --timeline-line-center: 11.5px;

  position: relative;
  padding-left: var(--catalog-gutter);
}

#catalog::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 10px;
  left: var(--timeline-line-left);
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 162, 0, 0.6), rgba(232, 162, 0, 0.14));
}

.group {
  position: relative;
  margin-bottom: 30px;
}

.group-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  min-height: 28px;
}

.group-head::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--timeline-line-center) - var(--catalog-gutter));
  width: 13px;
  height: 13px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-main);
  box-shadow:
    0 0 0 3px var(--bg-main),
    0 0 0 5px rgba(232, 162, 0, 0.22),
    0 0 12px rgba(232, 162, 0, 0.2);
  transform: translate(-50%, -50%);
}

.group-head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 162, 0, 0.4), rgba(232, 162, 0, 0.05));
}

.group-head h3 {
  order: -1;
  color: var(--accent);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.group-head .count {
  order: 1;
  color: var(--text-dim);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  white-space: nowrap;
}

/* Game cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 18px;
}

.game-card {
  --accent: color-mix(in srgb, var(--game-accent), white 18%);
  --accent-soft: color-mix(in srgb, var(--game-accent), transparent 84%);

  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.016), rgba(0, 0, 0, 0.045) 100%), var(--bg-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.game-card:hover {
  border-color: color-mix(in srgb, var(--accent), transparent 40%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--game-accent), transparent 96%), rgba(0, 0, 0, 0.06) 100%),
    var(--bg-panel);
  transform: translateY(-1px);
}

.game-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}

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

.game-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 96px;
  padding: 13px 15px 14px;
}

.game-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.game-name {
  min-width: 0;
  color: #f4f4f4;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.game-years {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11.5px;
  text-align: right;
  white-space: nowrap;
}

.game-meta {
  margin-top: auto;
  color: var(--text-dim);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10.5px;
  line-height: 1.4;
}

.empty-state {
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  color: var(--text-muted);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  text-align: center;
}

.muted {
  color: var(--text-dim);
}

/* The archive catalog supplies its game list after the shared sidebar mounts.
   Keep it scrollable without drawing a second gold line beside the route rail. */
.xjk-sidenav[data-site="archive"] .xjk-sidenav-content,
.xjk-sidenav[data-site="archive"] .xjk-sidenav-drawer {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.xjk-sidenav[data-site="archive"] .xjk-sidenav-content::-webkit-scrollbar,
.xjk-sidenav[data-site="archive"] .xjk-sidenav-drawer::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.xjk-sidenav[data-site="archive"] .archive-sidenav-games-label {
  margin-top: 3px;
}

.xjk-sidenav[data-site="archive"] .archive-game-nav {
  min-height: 34px;
  font-size: 11.5px;
}

.xjk-sidenav[data-site="archive"] .archive-game-nav .xjk-sidenav-node {
  width: 20px;
  height: 20px;
  justify-self: center;
}

.xjk-sidenav[data-site="archive"] .archive-game-nav .xjk-sidenav-node svg {
  width: 9px;
  height: 9px;
}

@media (max-width: 720px) {
  .arc-hero h1 {
    font-size: clamp(22px, 9vw, 28px);
    letter-spacing: 0.02em;
  }

  #catalog {
    --catalog-gutter: 26px;
    --timeline-line-left: 7px;
    --timeline-line-center: 8.5px;
  }

  .group-head {
    gap: 8px;
  }

  .group-head h3 {
    white-space: normal;
  }

  .games-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .game-title-row {
    gap: 8px;
  }

  .game-name {
    font-size: 15px;
  }
}
