@font-face { font-family: "HW SC"; src: url("../assets/fonts/display-sc.woff2?v=4") format("woff2"); font-display: swap; }
@font-face { font-family: "HW Cond"; src: url("../assets/fonts/display-en.woff2") format("woff2"); font-display: swap; }
:root { --bg: #0b0d10; --bg-2: #0f1216; --panel: #151a20; --panel-2: #1b2129; --line: #242b34; --line-2: #344050; --text: #fff; --text-2: #d6d6dc; --muted: #8f8f99; --faint: #5f5f69; --lime: #cdee2c; --on-lime: #0b0d10; --red: #ff6670; --amber: #ffc04d;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; --sc: "HW SC", var(--sans); --cond: "HW Cond", Impact, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(205,238,44,.08), transparent 70%), var(--bg); color: var(--text); font: 14px/1.55 var(--sans); min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 20px; background: rgba(11,13,16,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-family: var(--sc); font-weight: 400; font-size: 18px; }
.brand small { font-family: var(--cond); font-size: 11px; color: var(--lime); letter-spacing: .14em; }
.bar-title { font-family: var(--sc); font-size: 16px; color: var(--text-2); padding-left: 14px; border-left: 1px solid var(--line-2); }
.bar-right { margin-left: auto; display: flex; gap: 8px; }
.btn { height: 36px; padding: 0 16px; border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-weight: 700; font-size: 13px; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--lime); color: var(--on-lime); }
.btn.primary:hover { background: #dbf74a; }
.btn.ghost { background: transparent; border-color: var(--line-2); }
.btn.ghost:hover { border-color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.lang { font-family: var(--cond); font-weight: 400; letter-spacing: .08em; min-width: 52px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.login { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 20px; }
.login-card { width: min(400px, 100%); padding: 28px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.login-card h1 { margin: 0; font-family: var(--sc); font-weight: 400; font-size: 30px; }
.login-card p { margin: 0; color: var(--muted); font-size: 13px; }
.field { width: 100%; display: grid; gap: 6px; font-size: 12px; color: var(--text-2); font-weight: 600; text-align: left; }
.field input, select { width: 100%; height: 42px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 3px; }
.login-card input { font-family: var(--cond); font-size: 20px; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
input:focus, select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(205,238,44,.18); }
.login-card .btn { width: 100%; height: 44px; font-size: 15px; }
.msg { min-height: 1.2em; color: var(--red) !important; }
.wrap { width: min(980px, 100% - 32px); margin: 22px auto 60px; display: grid; gap: 16px; }
.team-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: radial-gradient(ellipse at 0% 0%, rgba(205,238,44,.12), transparent 60%), var(--panel); }
.tc-logo { width: 96px; height: 96px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: repeating-conic-gradient(#1a2028 0 25%, #12171d 0 50%) 0 0 / 14px 14px; }
.tc-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tc-info small { font-size: 12px; font-weight: 700; color: var(--lime); letter-spacing: .1em; }
.tc-info h1 { margin: 2px 0 8px; font-family: var(--sc); font-weight: 400; font-size: 34px; line-height: 1.1; }
.tc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; color: var(--text-2); padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 2px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-family: var(--sc); font-weight: 400; font-size: 22px; }
.lock-note { font-size: 12px; color: var(--amber); }
.sec-note { font-size: 12px; color: var(--muted); }
.roster-card { padding: 18px 20px; }
.roster { display: flex; flex-wrap: wrap; gap: 6px; }
.p { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; font-size: 13px; }
.p i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 2px; background: var(--panel-2); font-style: normal; font-family: var(--cond); font-size: 12px; color: var(--muted); }
.p.cap i { background: var(--lime); color: var(--on-lime); }
.p.sub { border-style: dashed; }
.matches { display: grid; gap: 12px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 6px; }
.match { padding: 18px 20px; border-left: 3px solid var(--line-2); }
.match.todo { border-left-color: var(--amber); } .match.done { border-left-color: var(--lime); } .match.locked { border-left-color: var(--faint); }
.m-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.m-stage { font-family: var(--sc); font-size: 15px; }
.m-bo { font-family: var(--cond); font-size: 13px; letter-spacing: .08em; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 2px; }
.m-time { font-size: 13px; color: var(--text-2); }
.m-count { font-size: 12px; color: var(--muted); }
.pill { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 2px; letter-spacing: .06em; }
.pill.todo { background: rgba(255,192,77,.12); color: var(--amber); } .pill.done { background: rgba(205,238,44,.12); color: var(--lime); } .pill.locked { background: rgba(255,255,255,.06); color: var(--muted); } .pill.miss { background: rgba(255,102,112,.1); color: var(--red); }
.m-vs { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.m-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.m-team img, .m-team .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #1a2027; flex: none; border: 1px solid var(--line-2); }
.m-team b { font-family: var(--sc); font-weight: 400; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-team.opp { justify-content: flex-end; text-align: right; }
.m-vs .vs { font-family: var(--cond); font-size: 22px; color: var(--faint); flex: none; }
.m-vs .m-team { flex: 1; }
.m-score { font-family: var(--cond); font-size: 26px; flex: none; }
.lineup { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.slot { display: grid; gap: 6px; }
.slot label { display: flex; align-items: center; gap: 6px; font-family: var(--cond); font-size: 15px; letter-spacing: .06em; color: var(--lime); }
.slot label small { font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: 0; }
.slot select { height: 40px; font-size: 13px; padding: 0 8px; }
.slot select.dup { border-color: var(--red); }
.slot .ro { height: 40px; display: flex; align-items: center; padding: 0 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; font-size: 13px; }
.m-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.m-msg { font-size: 12px; color: var(--muted); }
.m-msg.err { color: var(--red); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 16px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 4px; font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.5); z-index: 50; }
@media (max-width: 760px) {
  .bar-title { display: none; }
  .team-card { padding: 16px; gap: 14px; }
  .tc-logo { width: 72px; height: 72px; }
  .tc-info h1 { font-size: 26px; }
  .lineup { grid-template-columns: 1fr; }
  .slot { grid-template-columns: 70px 1fr; align-items: center; }
  .m-foot .btn { width: 100%; }
  .m-team b { font-size: 15px; }
}

.m-room { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.m-room:hover { color: var(--lime, #cdee2c); }
