:root {
  --blue: #0b4fb3;
  --blue-d: #062f74;
  --blue-l: #e8f0fc;
  --gold: #f5c451;
  --red: #d93a3a;
  --green: #17a35a;
  --text: #1c2a3d;
  --muted: #6a7a90;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #dce8fa 0%, #f3f7fd 40%, #f3f7fd 100%);
  min-height: 100vh;
}
.credit { color: #8a9ab0; font-size: 12px; text-decoration: none; }
.foot { text-align: center; padding: 18px 0 24px; }

/* ---------- 评委（竖屏居中放大） ---------- */
body.judge {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 22px 32px;
}
.judge-screen { width: min(680px, 100%); }
.judge .top {
  background: linear-gradient(135deg, var(--blue-d), var(--blue));
  color: #fff; padding: 32px 28px 36px; border-radius: 22px 22px 0 0; text-align: center;
}
.judge .top .title { font-size: 26px; line-height: 1.45; font-weight: bold; text-align: center; }
.judge .top .who { margin-top: 16px; display: flex; justify-content: center; align-items: baseline; gap: 2px; }
.judge .top .who b,
.judge .top .who span { font-size: 34px; font-weight: bold; line-height: 1; }
.judge .top .who b { color: var(--gold); }
.judge .wrap { padding: 0; margin-top: 0; }
.judge .card { border-radius: 0 0 22px 22px; padding: 32px 28px 36px; }
.card { background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(11, 79, 179, .14); padding: 22px 18px; }
.card.center { text-align: center; padding: 56px 28px; }
.card h2 { margin: 8px 0; font-size: 36px; }
.card p { color: var(--muted); font-size: 22px; line-height: 1.6; }
.wait-ico { font-size: 72px; }
.round { font-size: 22px; color: var(--blue); background: var(--blue-l); padding: 14px 16px; border-radius: 12px; margin-bottom: 26px; font-weight: bold; text-align: center; line-height: 1.45; }
.player { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 28px; }
.pno { flex: 0 0 auto; min-width: 108px; height: 108px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 34px; font-weight: bold; display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.pname { font-size: 52px; font-weight: bold; letter-spacing: 2px; text-align: center; line-height: 1.2; }
.punit { font-size: 24px; color: var(--muted); margin-top: 4px; text-align: center; }
.lbl { display: block; font-size: 24px; color: var(--muted); margin-bottom: 12px; text-align: center; }
.score-input {
  width: 100%; font-size: 76px; font-weight: bold; text-align: center; color: var(--blue-d);
  border: 2px solid #c9d8f0; border-radius: 16px; padding: 18px 12px; outline: none; background: #fafcff;
}
.score-input:focus { border-color: var(--blue); }
.btn-submit {
  display: block; width: 100%; margin-top: 28px; font-size: 34px; font-weight: bold; color: #fff;
  background: linear-gradient(135deg, var(--blue), #1f6ee0); border: 0; border-radius: 16px; padding: 22px 0;
}
.btn-submit:active { opacity: .85; }
.btn-submit:disabled { opacity: .5; }
.msg { min-height: 36px; margin-top: 18px; font-size: 24px; text-align: center; }
.msg.ok { color: var(--green); }
.msg.err { color: var(--red); }
.progress { text-align: center; font-size: 24px; color: var(--muted); margin-top: 12px; padding-top: 18px; border-top: 1px dashed #dbe4f2; }
.progress b { color: var(--blue); font-size: 34px; }
.judge .foot { padding-top: 16px; }

/* ---------- 首页 ---------- */
.home-page { background: #0b3a8a; min-height: 100vh; display: flex; flex-direction: column; }
.home-page .banner { width: 100%; display: block; }
.home-page .info { flex: 1; color: #fff; text-align: center; padding: 30px 20px; }
.home-page h1 { font-size: 22px; line-height: 1.6; margin: 0 0 18px; }
.home-page .meta { font-size: 15px; opacity: .85; line-height: 2; }
.home-page .credit { color: rgba(255, 255, 255, .55); }
