/* 单机版：隐藏需要联网的入口 */
#discordBtn,
a[href*="discord.gg"],
a[href*="discord.com"],
#discordBox { display: none !important; }

/* 中文字形回退：拉丁字母仍用原字体，汉字落到系统黑体 */
html, body {
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Noto Sans SC", Roboto, sans-serif;
}

/* 需要联网的模式先收起 */
#towerBtn, #cupBtn, #gridBtn, #friendsBtn, #usageBtn, #friendBtn { display: none !important; }
/* 分享到外部站点的按钮在单机版里没有意义，只保留本地下载 */
.shplat button[data-url^="http"] { display: none !important; }

/* 单机版标记 */
.offline-tag {
  margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  color: #0b0d16; background: linear-gradient(90deg, #d6f531, #7ff0e0);
  align-self: center;
}

/* 横屏对战：让 16:9 竞技场尽量占满高度，缩小上下黑边（手机横握时体验更好） */
@media (max-height: 500px) and (orientation: landscape) {
  main { padding-top: 4px !important; padding-bottom: 4px !important; }
  #battle { margin: 0 !important; }
  .stage { width: min(100%, calc((100dvh - 92px) * 16 / 9)) !important; }
}

/* 竖屏对战：竞技场拉满宽度 */
@media (max-width: 700px) and (orientation: portrait) {
  .stage { width: 100% !important; min-width: 0 !important; }
}
