/* AI8899 站点适配：返回入口、品牌链接与全屏布局 */
.topbar { flex-wrap: wrap; }
.brand { color: inherit; text-decoration: none; }
.brand:focus-visible, .back-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.back-link { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 720px) {
  .topbar nav { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .brand p { display: none; }
  .topbar .quiet { font-size: 12px; padding: 7px 9px; }
}
@media (min-width: 1001px) {
  html.games-fs main {
    max-width: none;
    height: 100dvh;
    padding: 12px 20px 0;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
  }
  html.games-fs .game { height: calc(100dvh - 12px); display: flex; flex-direction: column; }
  html.games-fs .felt { height: auto; flex: 1; min-height: 290px; }
  html.games-fs .human-zone { min-height: 220px; }
  html.games-fs .sidebar { overflow: auto; max-height: calc(100dvh - 20px); }
  html.games-fs .log-panel ol { height: 160px; }
}
@media (max-width: 1000px) {
  html.games-fs main { height: 100dvh; overflow-y: auto; padding-top: 8px; }
}


/* 开局弹窗：进入页面后由玩家主动开始 */
.start-dialog { width: min(420px, calc(100vw - 28px)); text-align: center; }
.start-dialog .eyebrow { display: block; }
.start-dialog h2 { font: 32px "Songti SC", "STSong", serif; letter-spacing: 8px; padding-left: 8px; margin: 10px 0 14px; }
.start-dialog p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 6px; }
.start-dialog .start-note { color: #809e94; font-size: 12px; }
.start-actions { margin-top: 22px; }
.start-actions .primary { width: 100%; font-size: 16px; padding: 13px 22px; }
@media (max-width: 720px) {
  .start-dialog h2 { font-size: 28px; letter-spacing: 6px; padding-left: 6px; }
}
