* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f6f1ee; color: #333; min-height: 100vh; display: flex; flex-direction: column; }
.hidden { display: none !important; }
.m-head { background: linear-gradient(135deg, #a3000f 0%, #d71921 60%, #b8000f 100%); color: #fff; padding: 22px 18px 34px; text-align: center; position: relative; }
.m-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #c9a55a, #f3dc9c, #c9a55a); }
.m-title { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.m-sub { margin-top: 6px; font-size: 13px; color: #f7dfa6; }
.m-main { flex: 1; padding: 14px; margin-top: -18px; position: relative; }
.card { background: #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(160, 0, 15, .08); padding: 22px 18px; }
.login-card h2 { color: #b8000f; font-size: 20px; margin-bottom: 8px; text-align: center; }
.muted { color: #999; font-size: 13px; line-height: 1.6; text-align: center; }
.small { font-size: 12px; margin-top: 12px; }
.m-err { background: #fff0f0; color: #c00; padding: 8px 10px; border-radius: 6px; font-size: 13px; margin-top: 12px; }
.code-input { width: 100%; height: 52px; margin: 18px 0; border: 2px solid #e8d3d3; border-radius: 10px; font-size: 22px; text-align: center; letter-spacing: 4px; text-transform: uppercase; outline: none; }
.code-input:focus, .score-input:focus { border-color: #d71921; }
.btn-red { width: 100%; height: 50px; border: 0; border-radius: 25px; background: linear-gradient(90deg, #c8000f, #e2262f); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: 2px; box-shadow: 0 6px 14px rgba(200, 0, 15, .25); }
.btn-red:disabled { background: #ccc; box-shadow: none; }
.btn-ghost { width: 100%; height: 44px; margin-top: 12px; border: 1px solid #d9b8b8; border-radius: 22px; background: #fff; color: #a3000f; font-size: 15px; }
.judge-bar { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 10px; padding: 12px 14px; font-size: 14px; box-shadow: 0 4px 16px rgba(160, 0, 15, .08); }
.judge-bar b { color: #b8000f; }
.judge-bar a { color: #999; text-decoration: none; font-size: 13px; }
.tips { margin: 16px 2px 10px; font-size: 13px; color: #8a6d3b; border-left: 3px solid #c9a55a; padding-left: 8px; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-btn { position: relative; border: 0; border-radius: 10px; background: #fff; padding: 14px 10px 12px; text-align: left; min-height: 96px; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); font-family: inherit; }
.team-btn .tb-no { position: absolute; top: 0; right: 0; background: #f3e6e6; color: #b8000f; font-size: 12px; padding: 2px 8px; border-radius: 0 10px 0 10px; }
.team-btn .tb-name { font-size: 16px; font-weight: 600; color: #333; padding-right: 18px; line-height: 1.3; }
.team-btn .tb-mod { font-size: 12px; color: #a08a6a; margin-top: 4px; }
.team-btn .tb-st { margin-top: auto; padding-top: 8px; font-size: 12px; color: #999; }
.team-btn.st1 { background: linear-gradient(135deg, #c8000f, #e2262f); box-shadow: 0 6px 14px rgba(200, 0, 15, .28); }
.team-btn.st1 .tb-name, .team-btn.st1 .tb-st { color: #fff; }
.team-btn.st1 .tb-mod { color: #f7dfa6; }
.team-btn.st1 .tb-no { background: #f3dc9c; color: #a3000f; }
.team-btn.st1 .tb-st::before { content: "● "; animation: blink 1s infinite; }
.team-btn.st2 { opacity: .65; }
.team-btn.done .tb-st { color: #2e8b57; font-weight: 600; }
.team-btn.st1.done .tb-st { color: #fff3c4; }
@keyframes blink { 50% { opacity: .2; } }
.score-card { text-align: center; margin-top: 14px; }
.sc-module { display: inline-block; background: #fbf1dc; color: #8a6d3b; padding: 3px 12px; border-radius: 12px; font-size: 13px; }
.sc-name { font-size: 26px; font-weight: 700; color: #a3000f; margin: 12px 0 8px; }
.sc-state { font-size: 13px; color: #999; margin-bottom: 18px; }
.sc-state.st1 { color: #d71921; }
.sc-label { display: block; font-size: 14px; color: #666; }
.score-input { width: 100%; height: 76px; margin: 12px 0 18px; border: 2px solid #e8d3d3; border-radius: 12px; font-size: 40px; font-weight: 700; color: #b8000f; text-align: center; outline: none; }
.score-input:disabled { background: #f6f6f6; color: #aaa; }
.toast { position: fixed; left: 50%; top: 40%; transform: translateX(-50%); padding: 12px 22px; border-radius: 8px; color: #fff; font-size: 15px; z-index: 99; max-width: 80%; text-align: center; }
.toast.ok { background: rgba(46, 139, 87, .92); }
.toast.err { background: rgba(0, 0, 0, .78); }
.m-foot { text-align: center; padding: 18px 0 22px; }
.m-foot a { color: #b0a0a0; font-size: 12px; text-decoration: none; }
