/* 首页和 404：和「撤离者」一个调子，炭黑底 + 火光金 */
:root {
  --bg: #0e0d0c;
  --panel: #171512;
  --line: #2c2823;
  --text: #ece6da;
  --muted: #9b9284;
  --gold: #ffd166;
  --ember: #ff8a3a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 18% -10%, rgba(255, 138, 58, 0.11), transparent 45%),
    radial-gradient(ellipse at 100% 110%, rgba(255, 209, 102, 0.05), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.6;
}

a { color: var(--gold); }

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 40px max(20px, env(safe-area-inset-left));
}

/* 左上角站名 */
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.logo { image-rendering: pixelated; }
.brand { font-size: 19px; font-weight: bold; letter-spacing: 0.04em; }
.sub { font-size: 13px; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }

/* 主推的游戏：左边游戏画面，右边介绍和开始按钮；整块都能点 */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover, .feature:focus-visible { border-color: rgba(255, 209, 102, 0.55); transform: translateY(-2px); outline: none; }

.shot { position: relative; overflow: hidden; background: #000; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; filter: brightness(1.15); transition: transform 0.4s; }
.feature:hover .shot img { transform: scale(1.03); }
/* 画面右边缘淡进介绍那一栏 */
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, rgba(23, 21, 18, 0.85)); pointer-events: none; }

.info { display: flex; flex-direction: column; padding: 30px 28px 28px; }
.info h1 { font-size: 34px; letter-spacing: 0.1em; line-height: 1.2; }
.lead { margin-top: 14px; color: #cfc6b8; font-size: 17px; }

.go { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 24px; }
.play {
  flex: none;
  padding: 12px 26px;
  border-radius: 10px;
  background: var(--gold);
  color: #1c1406;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 18px rgba(255, 209, 102, 0.2);
  transition: background 0.2s;
}
.feature:hover .play { background: #ffdc85; }
.play::after { content: " ▶"; font-size: 12px; }
.plat { font-size: 12px; line-height: 1.6; color: var(--muted); }
.plat span { display: block; }

footer { margin-top: 32px; font-size: 12px; color: var(--muted); }
footer p + p { margin-top: 2px; }

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.notfound h1 { font-size: 64px; color: var(--gold); letter-spacing: 0.1em; }
.notfound p { color: var(--muted); }

/* 窄屏（手机竖着、小平板）：上下排 */
@media (max-width: 760px) {
  .top { margin-bottom: 18px; }
  .feature { grid-template-columns: 1fr; }
  .shot { aspect-ratio: 1200 / 630; }
  .shot::after { background: linear-gradient(180deg, transparent 70%, rgba(23, 21, 18, 0.85)); }
  .info { padding: 20px 18px 22px; }
  .info h1 { font-size: 28px; }
  .go { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 20px; }
  .play { text-align: center; }
  .plat { display: flex; justify-content: center; gap: 14px; }
}

/* 横着的手机：矮，左右排但收紧 */
@media (max-height: 500px) and (min-width: 761px) {
  main { padding-top: max(14px, env(safe-area-inset-top)); }
  .top { margin-bottom: 12px; }
  .info { padding: 18px 20px; }
  .info h1 { font-size: 26px; }
  .lead { font-size: 15px; margin-top: 8px; }
  .go { padding-top: 14px; }
}
