/* 游戏中心页面 · 沿用主页的温暖柔和配色 */

:root {
  --bg: #FDF9F4;
  --bg-glow: #FBEEE2;
  --surface: #FFFFFF;
  --border: #F0E4D8;
  --text: #33302C;
  --text-soft: #857A70;
  --accent: #D97757;
  --accent-soft: #F8E7DC;
  --radius: 20px;
  --maxw: 640px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: radial-gradient(120% 60% at 50% -10%, var(--bg-glow) 0%, rgba(253, 249, 244, 0) 62%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .2s ease;
}

.back:hover { color: var(--accent); }

.hero {
  margin-bottom: 32px;
  animation: rise .6s ease both;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .5px;
}

.tagline {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
}

.grid {
  display: grid;
  gap: 12px;
  animation: rise .6s ease .08s both;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.game-card:not(.is-soon):hover {
  transform: translateY(-2px);
  border-color: #E7D3C2;
  box-shadow: 0 14px 28px -18px rgba(120, 85, 60, .45);
}

.game-thumb {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .5px;
}

.thumb-2048 {
  background: linear-gradient(145deg, #ECC3A6, #D97757);
  color: #FFF9F4;
  font-size: 15px;
}

.thumb-soon {
  background: #F6EFE7;
  color: #C9B7A8;
  font-size: 15px;
}

.game-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.game-title {
  font-size: 15.5px;
  font-weight: 550;
}

.game-desc {
  font-size: 13px;
  color: var(--text-soft);
}

.game-arrow {
  color: #C9B7A8;
  font-size: 15px;
  transition: transform .22s ease, color .22s ease;
}

.game-card:hover .game-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.is-soon {
  opacity: .62;
  cursor: default;
}

.badge {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: #F6EFE7;
  color: #B7A698;
  font-size: 11.5px;
  letter-spacing: .3px;
}

.footer {
  margin-top: 48px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 12.5px;
  color: #B7A698;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 480px) {
  .page { padding: 32px 20px 44px; }
  .hero h1 { font-size: 24px; }
  .game-thumb { flex-basis: 54px; width: 54px; height: 54px; border-radius: 14px; font-size: 14px; }
}
