:root {
  color-scheme: light;
  --bg: #f1f4f5;
  --surface: #fff;
  --text: #172b35;
  --muted: #536775;
  --line: #d4dfe4;
  --accent: #b8452a;
  --scroll-thumb: #8396a0;
  --scroll-hover: #536775;
}
* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--bg);
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-hover);
}
::-webkit-scrollbar-thumb:active {
  background: var(--accent);
}
html {
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}
.page {
  max-width: 1224px;
  margin: auto;
  padding: 0 52px;
}
header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.07em;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: var(--text);
  color: var(--surface);
  font-size: 21px;
  font-weight: 500;
}
.logo:hover {
  color: var(--accent);
}
.header-note {
  font-size: 13px;
  color: var(--muted);
}
main {
  padding: 52px 0 44px;
}
.collection-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin: 0 0 10px;
}
h1 {
  font-size: 36px;
  line-height: 1.4;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0;
}
.game-count {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  white-space: nowrap;
}
.game-count > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.game-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px #172b3510;
  border-color: #a9bbc5;
}
.game-card:active {
  transform: translateY(-1px);
}
.cover {
  aspect-ratio: 1.75;
  position: relative;
  overflow: hidden;
}
.train-cover {
  background: #162c35;
}
.train-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transition: transform 0.5s;
}
.game-card:hover .train-cover img {
  transform: scale(1.035);
}
.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0a1b27cc, transparent 75%),
    linear-gradient(0deg, #07141977, transparent);
}
.cover-tag {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 25px;
  font-size: 11px;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border: 1px solid #ffffff50;
  border-radius: 4px;
  color: #e5eeee;
  background: #172b3544;
}
.train-title {
  position: absolute;
  left: 29px;
  top: 67px;
  font:
    55px/1.12 "Songti SC",
    "STSong",
    serif;
  color: #edf1ea;
  letter-spacing: 0.12em;
}
.train-title > span {
  color: #dfb67d;
  font-size: 0.6em;
  margin-left: -0.2em;
}
.train-time {
  position: absolute;
  bottom: 19px;
  right: 24px;
  font: 14px monospace;
  letter-spacing: 0.09em;
  color: #e0d4b9;
}
.survivor-cover {
  background: #172426;
  color: #f3c46b;
}
.countdown-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 21px;
}
.evacuation-label {
  font-size: 10px;
  color: #b0bbb4;
  letter-spacing: 0.16em;
}
.countdown-art strong {
  font:
    clamp(58px, 7vw, 90px)/1.22 "SFMono-Regular",
    Consolas,
    monospace;
  letter-spacing: -0.06em;
  font-weight: 500;
}
.countdown-art strong > span {
  color: #f3c46b88;
}
.countdown-track {
  width: 42%;
  height: 3px;
  background: #536658;
  margin: 10px 0 14px;
}
.countdown-track > i {
  display: block;
  width: 73%;
  height: 100%;
  background: #f3c46b;
}
.sector-label {
  font: 10px monospace;
  letter-spacing: 0.15em;
  color: #a5b6a9;
}
.live-mark {
  position: absolute;
  right: 21px;
  top: 26px;
  font-size: 10px;
  color: #b0bbb4;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-mark > i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #f3c46b;
}
.card-body {
  padding: 24px 26px 23px;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-heading h2 {
  font-size: 22px;
  letter-spacing: 0.025em;
  font-weight: 600;
  margin: 0;
}
.play-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  transition:
    color 0.2s,
    background 0.2s;
}
.game-card:hover .play-arrow {
  background: var(--text);
  color: white;
  border-color: var(--text);
}
.description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin: 13px 0 22px;
  max-width: 31em;
  min-height: 53px;
}
.card-bottom {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.tags {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.tags > span + span {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.play-text {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.play-text > span {
  margin-left: 6px;
  color: var(--accent);
}
.play-note {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.play-note p {
  margin: 0;
}
.play-note p > span {
  margin-left: 10px;
  color: var(--muted);
}
.note-symbol {
  color: var(--accent);
  font-size: 17px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
footer > span:last-child {
  font: 11px monospace;
}
@media (max-width: 900px) {
  .page {
    padding: 0 30px;
  }
  h1 {
    font-size: 30px;
  }
  .train-title {
    font-size: 46px;
    top: 65px;
  }
  .cover-tag {
    top: 18px;
    left: 20px;
  }
  .card-body {
    padding: 20px;
  }
  .tags {
    gap: 8px;
  }
  .tags > span + span {
    padding-left: 8px;
  }
  .live-mark {
    display: none;
  }
}
@media (max-width: 720px) {
  .page {
    padding: 0 22px;
  }
  header {
    height: 80px;
  }
  .logo {
    font-size: 18px;
  }
  .header-note {
    font-size: 11px;
    max-width: 100px;
    text-align: right;
  }
  main {
    padding: 33px 0;
  }
  .collection-heading {
    align-items: start;
    gap: 15px;
    margin-bottom: 24px;
  }
  .game-count {
    margin-top: 8px;
    font-size: 11px;
  }
  h1 {
    font-size: 27px;
    max-width: 7em;
  }
  .eyebrow {
    font-size: 11px;
  }
  .games {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .cover {
    aspect-ratio: 1.75;
  }
  .train-title {
    font-size: clamp(45px, 11vw, 66px);
    top: 66px;
  }
  .countdown-art strong {
    font-size: 76px;
  }
  .description {
    min-height: 0;
    font-size: 14px;
    margin-bottom: 20px;
  }
  .card-body {
    padding: 21px;
  }
  .play-note {
    align-items: start;
  }
  .play-note p > span {
    display: block;
    margin-left: 0;
  }
  .play-note {
    font-size: 12px;
  }
  .game-card:hover {
    transform: none;
  }
  footer {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
  .game-card,
  .logo-mark {
    border: 1px solid CanvasText;
  }
  .cover-tag {
    border: 1px solid CanvasText;
  }
}
@media (max-width: 720px) {
  .collection-heading {
    flex-direction: column;
    gap: 12px;
  }
  .collection-heading h1 {
    max-width: none;
    font-size: 26px;
  }
  .game-count {
    margin: 0;
  }
  .header-note {
    display: none;
  }
}

.afterfall-cover {
  background: #263c30;
}
.afterfall-cover img {
  object-position: center 45%;
}
.afterfall-title {
  position: absolute;
  left: 32px;
  bottom: 32px;
  color: #eeead6;
  font:
    46px "Songti SC",
    "STSong",
    serif;
  letter-spacing: 7px;
}
.afterfall-title small {
  display: block;
  margin-top: 12px;
  font: 10px monospace;
  letter-spacing: 2px;
  color: #d3d7bc;
}

/* Aggregate traffic uses the existing shelf typography and colors. */
.traffic {
  margin-top: 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.traffic-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.traffic-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.traffic-heading > span {
  color: var(--muted);
  font-size: 11px;
}
.traffic-totals {
  display: flex;
  gap: 48px;
  padding: 20px 0;
}
.traffic-totals > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.traffic-totals span,
.traffic-totals small {
  color: var(--muted);
  font-size: 12px;
}
.traffic-totals strong {
  font: 600 27px/1.3 monospace;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
}
.traffic-details {
  max-width: 520px;
  font-size: 12px;
}
.traffic-details summary {
  width: fit-content;
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  color: var(--text);
}
.traffic-details summary:hover {
  color: var(--accent);
}
.traffic-details summary:active {
  opacity: 0.75;
}
.traffic-details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.traffic-pages {
  padding: 0 0 10px;
  min-height: 145px;
}
.traffic-page {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.traffic-page > span:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.traffic-note,
.traffic-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 7px 0 0;
}
.traffic-status {
  min-height: 20px;
}
@media (max-width: 520px) {
  .traffic-totals {
    gap: 24px;
  }
  .traffic-totals > div {
    flex-wrap: wrap;
    gap: 6px;
  }
  .traffic-totals span {
    flex-basis: 100%;
  }
  .traffic-totals strong {
    font-size: 25px;
  }
  .traffic-heading > span {
    font-size: 10px;
  }
  .traffic-page {
    font-size: 11px;
  }
}

.participation-count {
  position: absolute;
  z-index: 1;
  top: 22px;
  right: 25px;
  color: #e5eeee;
  background: #172b35cc;
  border: 1px solid #ffffff50;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .participation-count {
    top: 18px;
    right: 20px;
  }
}
@media (max-width: 380px) {
  .participation-count {
    right: 12px;
    font-size: 10px;
    padding: 4px 7px;
  }
  .cover-tag {
    left: 12px;
    font-size: 10px;
    padding: 4px 7px;
  }
}
@media (forced-colors: active) {
  .participation-count {
    border: 1px solid CanvasText;
  }
}

/* The fourth cover brings the new game's isometric street onto the same shelf. */
.ashfall-cover {
  background: #233f49;
}
.ashfall-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ashfall-title {
  position: absolute;
  left: 6%;
  bottom: 10%;
  color: #f4e7ce;
  font: 650 clamp(28px, 3.4vw, 44px) / 1.2 "Songti SC", "STSong", serif;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 10px #122932;
}
.ashfall-title small {
  display: block;
  margin-top: 10px;
  font: 10px / 1.4 monospace;
  letter-spacing: 0.14em;
}

/* Dusk Mart keeps its storefront above a clear lower title band. */
.dusk-mart-cover {
  background: #223345;
}
.dusk-mart-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dusk-mart-title {
  position: absolute;
  left: 6%;
  bottom: 8%;
  color: #fff0cb;
  font: 750 clamp(26px, 3.2vw, 42px) / 1.2 "Songti SC", "STSong", serif;
  letter-spacing: 0.08em;
}
.dusk-mart-title small {
  display: block;
  margin-top: 9px;
  font: 9px / 1.4 monospace;
  letter-spacing: 0.08em;
  color: #ead9ba;
}
