/* The Tactalon house style for the pages built on the server (home, league,
   help and legal pages). The game screens in pages/*.html share these
   colours. Brand files live in assets/brand (see docs/BRAND.md). */
:root {
  --bg: #0f1318; --panel: #171d24; --panel2: #1c242d; --line: #2a333d;
  --text: #eef1f4; --muted: #9aa6b2; --accent: #d9ad4a; --pitch: #1d4a33;
  --ok: #5bc88e; --warn: #e8b04a; --err: #f08a7e;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.site { border-bottom: 1px solid var(--line); background: #0c1014; }
.site .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.site .logo { display: inline-flex; line-height: 0; }
.site .logo img { height: 28px; width: auto; }
.site nav { margin-left: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.site nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site nav a:hover { color: var(--accent); }
main { padding: 8px 0 48px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: 0.01em; }
h1 { font-size: 2.1rem; margin: 22px 0 6px; }
h2 { font-size: 1.35rem; margin: 0 0 10px; }
h3 { font-size: 1.1rem; margin: 18px 0 6px; }
.eyebrow { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); font-size: 0.9rem; }
.lede { color: var(--muted); margin: 0 0 18px; font-size: 1.05rem; }
.box, .card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin: 14px 0; overflow-x: auto; }
.box > h2:first-child, .card > h2:first-child { font-family: var(--body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.muted, .note { color: var(--muted); }
.err { color: var(--err); } .ok { color: var(--ok); }
code { word-break: break-all; background: #0c1014; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 0.9em; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
td.n, th.n { text-align: right; }
tr.me td { background: #1f2a22; }
input, select, button, textarea { font: inherit; color: var(--text); background: #0c1014; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=color] { padding: 2px; width: 46px; height: 40px; }
button, .btn { cursor: pointer; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 6px; padding: 10px 18px; border: 1px solid var(--line); color: var(--text); }
button.primary, .btn.primary { background: var(--accent); color: #111; border-color: var(--accent); }
button:disabled { opacity: 0.6; cursor: default; }
label { display: inline-flex; flex-direction: column; gap: 4px; margin: 0 12px 10px 0; color: var(--muted); font-size: 0.9rem; }
label > input, label > select { color: var(--text); font-size: 1rem; }
form .row, .row { display: flex; flex-wrap: wrap; gap: 0 4px; align-items: flex-end; }
ol, ul { padding-left: 1.3em; }
li { margin: 4px 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.links a { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; text-decoration: none; color: var(--text); }
.links a:hover { border-color: var(--accent); }
.leagues { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.leagues li { margin: 0; }
.leagues a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.leagues a:hover { border-color: var(--accent); }
.leagues b { font-family: var(--display); font-size: 1.3rem; display: block; }
.tag { font-size: 0.75rem; padding: 2px 7px; border-radius: 4px; background: #2c3a4a; color: #cfe0f3; text-transform: uppercase; letter-spacing: 0.05em; }
.tag.running { background: #2c4a36; color: #c9f0d8; } .tag.paused { background: #4a3d20; color: #f3e2b8; } .tag.finished { background: #333; color: #ccc; }
.crest { vertical-align: middle; margin-right: 6px; flex: none; }
.club { white-space: nowrap; }
.news { list-style: none; padding: 0; margin: 0; }
.news li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.news li:last-child { border-bottom: 0; }
.news .when { color: var(--muted); font-size: 0.85rem; min-width: 7.5em; flex: none; }
.news .kind { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-size: 0.85rem; display: block; }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 18px; align-items: start; }
@media (max-width: 820px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; padding: 18px 0 70px; }
.foot .wrap { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.prose { max-width: 720px; }
.prose p, .prose li { color: #d6dce2; }
@media (max-width: 480px) { .news li { flex-direction: column; gap: 2px; } th, td { padding: 6px 3px; } h1 { font-size: 1.7rem; } .site nav { gap: 12px; } }
