:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }

body {
  background: #10141f;
  display: flex;
  flex-direction: column;
}

.camp-switcher {
  min-height: 52px;
  padding: 8px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, #151c2d 0%, #222d43 48%, #151c2d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.camp-switcher__brand, .camp-switcher__hint {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.camp-switcher__hint { text-align: right; }

.camp-switcher__segments {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
}

.camp-switcher__button {
  min-width: 104px;
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.camp-switcher__button:hover { transform: translateY(-1px); color: #fff; }
.camp-switcher__button.is-active { background: #ffd21a; color: #1b202b; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28); }

.timer-shell { flex: 1; min-height: 0; background: #000; }
#timerFrame { width: 100%; height: 100%; border: 0; display: block; }

/* 比赛页不保留外层工具条，避免压缩现场投屏的可用画面。 */
body.is-timer-active .camp-switcher { display: none; }

@media (max-width: 720px) {
  .camp-switcher { grid-template-columns: 1fr auto; gap: 8px; padding: 7px 10px; }
  .camp-switcher__brand { display: none; }
  .camp-switcher__hint { font-size: 11px; }
  .camp-switcher__button { min-width: 76px; padding: 7px 12px; }
}
