:root {
  --page: #1b2838;
  --header: #171a21;
  --fg: #c6d4df;
  --title: #ffffff;
  --muted: #8f98a0;
  --link: #67c1f5;
  --nav: #417a9b;
  --content: 1200px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  color: var(--fg);
  font-family: Arial, "Motiva Sans", Helvetica, sans-serif;
  background: var(--page);
}

body.solo {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--page);
  padding: 24px;
}
.highlight {
  width: min(1920px, 100%);
}
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  outline: 1px solid #000;
  box-shadow: 0 0 0 1px #3d4450, 0 12px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.stage .hint {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--muted);
  font-size: 18px;
  pointer-events: none;
}
.stage .hint:not([hidden]) { display: grid; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #fff; }
button { font-family: inherit; }

.inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

/* —— 顶栏（红框最上沿） —— */
.gheader {
  background: var(--header);
  height: 62px;
}
.gheader .inner {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.steam-mark { display: flex; align-items: center; flex: 0 0 auto; }
.steam-mark svg { display: block; }
.gnav { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.gnav a {
  color: #dcdedf;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gnav a.on, .gnav a:hover { color: #fff; }
.gright { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.install {
  background: #5c7e10;
  color: #fff;
  border: 0;
  padding: 5px 10px;
  font-size: 11px;
  cursor: default;
}
.bell { color: #b8b6b4; font-size: 14px; }
.acct {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: #b8b6b4;
  font-size: 12px;
  cursor: default;
  max-width: 220px;
}
.acct img { width: 32px; height: 32px; object-fit: cover; background: #000; }

/* —— 商店次导航 + 搜索 —— */
.store-nav {
  background: linear-gradient(90deg, #3d6c8d, #2a516d);
  height: 35px;
}
.store-nav .inner {
  height: 35px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.store-nav nav { display: flex; gap: 2px; flex: 1; }
.store-nav nav a {
  color: #e5e5e5;
  font-size: 13px;
  padding: 6px 10px;
  text-transform: none;
}
.store-nav nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.search { display: flex; margin-left: auto; }
.search input {
  width: 200px;
  height: 27px;
  border: 0;
  padding: 0 8px;
  background: #316282;
  color: #fff;
  font-size: 13px;
}
.search input::placeholder { color: #c6d4df; }
.search button {
  width: 27px;
  height: 27px;
  border: 0;
  background: #5491cf;
  color: #fff;
  font-size: 16px;
  cursor: default;
}
.wish {
  color: #e5e5e5;
  font-size: 13px;
  padding: 0 8px;
  white-space: nowrap;
}

.pagebg {
  min-height: calc(100vh - 97px);
  background: var(--page) url("./img/bg.png") no-repeat center top;
  background-size: min(1920px, 100%) auto;
}

.wrap {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 48px;
}

.crumbs { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.title-row h1 {
  color: var(--title);
  font-size: 26px;
  font-weight: 400;
  margin: 0;
}
.hub {
  background: rgba(0,0,0,0.35);
  border: 0;
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  cursor: default;
}

/* 780 + 16 + 404 = 1200 */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 780fr) minmax(0, 404fr);
  gap: 16px;
  align-items: start;
}

.player {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.player img,
.player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.player video { position: absolute; inset: 0; }
.unmute {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 2;
  border: 0;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.thumbs .vid { position: relative; }
.thumbs .vid::after {
  content: "▶";
  position: absolute;
  right: 4px;
  bottom: 2px;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 0 4px #000;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 54px;
  border: 0;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.arrow.prev { left: 0; }
.arrow.next { right: 0; }
.arrow, .unmute { z-index: 2; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 6px;
}
.thumbs button {
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  opacity: 0.55;
  min-width: 0;
}
.thumbs button.on, .thumbs button:hover { opacity: 1; outline: 1px solid #67c1f5; }
.thumbs img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

.glance .capsule { display: block; width: 100%; height: auto; }
.blurb {
  font-size: 13px;
  line-height: 1.45;
  color: #c6d4df;
  margin: 10px 0 12px;
}
.meta { margin: 0; font-size: 12px; }
.meta div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  padding: 2px 0;
}
.meta dt { color: var(--muted); margin: 0; }
.meta dd { margin: 0; color: #67c1f5; }

.capsules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.cap figcaption { font-size: 11px; color: var(--muted); margin-top: 4px; }
.cap img { max-width: 100%; height: auto; display: block; background: #000; }
.topnav { display: flex; justify-content: flex-end; margin-bottom: 8px; font-size: 13px; }
.game-title { color: var(--title); font-size: 26px; font-weight: 300; margin: 0 0 12px; }
.short { font-size: 13px; line-height: 1.45; color: #acb2b8; }

@media (max-width: 900px) {
  .gnav a:nth-child(n+4), .acct { display: none; }
  .search input { width: 120px; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .store-nav nav { display: none; }
}
