:root {
  color-scheme: dark;
  --bg: #0f1115; --panel: #181b22; --panel-2: #20242d; --line: #2d323d;
  --text: #eceef2; --muted: #9aa2b1; --accent: #5ee6a8; --win: #5ee6a8; --loss: #ff7b7b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 "Pretendard", "Malgun Gothic", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.notice { padding: 6px 16px; background: #2a2412; color: #f1d98c; font-size: 13px; text-align: center; }
.top { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 14px 16px; }
.brand { font-size: 19px; font-weight: 800; }
.brand small { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
nav { display: flex; gap: 4px; }
nav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
nav a.on { background: var(--panel-2); color: var(--text); }
main { max-width: 1120px; min-height: 60vh; margin: 0 auto; padding: 4px 16px 32px; }
footer { padding: 20px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
h1 { margin: 10px 0 14px; font-size: 24px; }
h2 { margin: 26px 0 10px; font-size: 17px; }
.panel { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-size: 12px; font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.team { display: inline-flex; gap: 7px; align-items: center; font-weight: 700; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); }
.win { color: var(--win); font-weight: 700; }
.loss { color: var(--loss); }
.muted { color: var(--muted); }
.empty { padding: 26px 16px; color: var(--muted); text-align: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tabs button { background: var(--panel-2); color: var(--muted); }
.tabs button.on { background: var(--accent); color: #07150f; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.card { padding: 14px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--line)); border-radius: 12px; }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.roster { display: grid; grid-template-columns: 44px 1fr auto; gap: 3px 8px; font-size: 14px; }
.roster .role { color: var(--muted); }
button, .btn { padding: 8px 14px; border: 0; border-radius: 8px; background: var(--accent); color: #07150f; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
button.ghost { background: var(--panel-2); color: var(--text); }
button.danger { background: #3a2024; color: var(--loss); }
button.small { padding: 4px 9px; font-size: 13px; }
form.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
label { display: grid; gap: 3px; color: var(--muted); font-size: 12px; }
input, select { width: 100%; min-width: 0; padding: 8px 9px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; color: var(--text); font: inherit; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wide { grid-column: 1 / -1; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.msg { min-height: 21px; margin: 8px 0; color: var(--accent); font-size: 14px; }
.msg.err { color: var(--loss); }
.login { max-width: 340px; margin: 40px auto; }
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.logo { flex: none; width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.logo.large { width: 40px; height: 40px; border-radius: 9px; }
.card h3 .team { gap: 8px; }
h1 .team { gap: 10px; }
.shot { display: grid; gap: 10px; margin-bottom: 12px; padding: 14px; background: var(--panel); border: 1px dashed var(--line); border-radius: 12px; }
.shot .muted { font-size: 13px; }
.shot img { display: block; max-width: 100%; max-height: 520px; border-radius: 8px; }
.shot img[hidden] { display: none; }
.btn.file { display: inline-block; color: #07150f; font-size: 15px; cursor: pointer; }
.btn.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
button:disabled { opacity: .5; cursor: not-allowed; }
.player-edit { display: grid; gap: 6px; align-content: start; }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } nav a { padding: 6px 9px; } h1 { font-size: 21px; } }
