/* ===== 游戏页面通用样式 ===== */

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar a { text-decoration: none; color: #667eea; font-weight: 600; }
.topbar .brand { margin-left: auto; color: #a0aec0; font-size: .85rem; }
.topbar .lang-switch {
  color: #4a5568; font-size: .85rem; font-weight: 500;
  border: 1px solid #e2e8f0; padding: .2rem .6rem; border-radius: 999px;
}
.topbar .lang-switch:hover { background: #edf2f7; }
@media (max-width: 480px) { .topbar .brand { display: none; } }

.game-page { max-width: 680px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.game-page h1 { text-align: center; font-size: 1.6rem; }
.intro { text-align: center; color: #718096; margin: .4rem 0 1rem; }
.hint-line { text-align: center; color: #a0aec0; font-size: .85rem; margin-top: 1rem; }

.board-wrap { position: relative; width: min(92vw, 440px); margin: 0 auto; }

.overlay {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem;
  background: rgba(255,255,255,.93);
  border-radius: 12px;
  text-align: center;
  padding: 1rem;
  z-index: 5;
}
.overlay.show { display: flex; }
.overlay h2 { font-size: 1.4rem; }
.overlay p { color: #4a5568; }

.btn {
  background: #667eea; color: #fff;
  border: none; border-radius: 8px;
  padding: .55rem 1.2rem;
  font-size: .95rem; cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: #5a67d8; }
.btn.ghost { background: #e2e8f0; color: #2d3748; }
.btn.ghost:hover { background: #cbd5e0; }

.controls { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }

.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  width: min(92vw, 440px); margin: 0 auto .75rem;
  gap: .5rem; flex-wrap: wrap;
  font-weight: 600; color: #4a5568;
}

.seo-content { margin-top: 2.5rem; background: #fff; border-radius: 12px; padding: 1.5rem 2rem; }
.seo-content h2 { font-size: 1.15rem; margin: 1.2rem 0 .4rem; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content p, .seo-content li { color: #4a5568; font-size: .95rem; }
.seo-content ul, .seo-content ol { padding-left: 1.4rem; }
.seo-content details { margin: .5rem 0; border-bottom: 1px solid #edf2f7; padding-bottom: .5rem; }
.seo-content summary { cursor: pointer; font-weight: 600; color: #2d3748; }
.seo-content details p { margin-top: .4rem; }
