/* games.css — 游戏中心 /games/ 专用（叠在 store.css 之上，不改首页样式）
   延续便利店的纸底 + 墨线 + 暖黄：卡片像货架上的商品卡，只是卖的是「玩」。 */

/* ---------- 顶部：返回 + 主题 ---------- */
.top-bar-games { justify-content: space-between; padding: 10px 14px 0; }
.back-link { text-decoration: none; }

/* ---------- 标题区 ---------- */
.game-hero {
  position: relative;
  text-align: center;
  padding: 10px 20px 6px;
  overflow: hidden;
}
.game-hero::before {
  content: "";
  position: absolute;
  top: -130px; left: 50%;
  transform: translateX(-50%);
  width: min(560px, 120%);
  height: 260px;
  background: radial-gradient(closest-side, var(--lamp-soft), rgba(231, 178, 74, 0) 78%);
  pointer-events: none;
  z-index: 0;
}
.game-hero > * { position: relative; z-index: 1; }

.game-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.game-title {
  margin-top: 8px;
  display: inline-block;
  font-size: clamp(1.6rem, 8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  padding: 8px 22px 9px;
  background: var(--card);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.game-lead {
  margin: 14px auto 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.game-count {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 游戏卡 ---------- */
.game-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.game-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 12px 14px;
}
.game-cover {
  display: block;
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.game-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease, transform 0.35s ease;
}
.game-cover:hover img { transform: scale(1.015); }
:root[data-theme="dark"] .game-cover img { filter: brightness(0.88); }

.game-head { display: flex; align-items: center; gap: 10px; }
.game-name { font-size: 19px; font-weight: 800; letter-spacing: 0.02em; }
.game-line { font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.game-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* 入口按钮：主按钮墨底纸字，次按钮纸底墨字 */
.game-acts { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.game-btn:hover, .game-btn:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  outline: none;
}
.game-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.game-btn-main { color: var(--paper); background: var(--ink); }

/* ---------- 关于 ---------- */
.game-about { margin-top: 26px; border-top: 2px dashed var(--line); padding-top: 20px; }
.game-about-text { margin-top: 14px; max-width: 640px; display: flex; flex-direction: column; gap: 8px; }
.game-about-text p { font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); }
.game-about-text a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 底部：回店里 ---------- */
.game-back {
  margin-top: 26px;
  border-top: 2px dashed var(--line);
  padding-top: 22px;
}
.game-back .cashier {
  max-width: 560px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.game-back .cashier:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.game-back .cashier-slogan { font-family: var(--sans); }
.game-back .cashier-line { margin-bottom: 16px; }

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .game-hero { padding-top: 22px; }
}
@media (max-width: 360px) {
  .game-btn { flex: 1; padding-left: 12px; padding-right: 12px; }
}
