/* Foundation Footy league: the game's own green and gold */
@font-face { font-family: "Alfa Slab One"; src: url("/assets/AlfaSlabOne-Regular-f846d6fc.ttf") format("truetype"); font-display: swap; }
:root { --green: #0f2e17; --green-2: #163d20; --gold: #f2de99; --gold-2: #d9c377; --cream: #f5efdc; --ink: #10231a; --panel: rgba(0, 0, 0, 0.32); --line: rgba(242, 222, 153, 0.22); --win: #7fd07f; --loss: #e07a7a; --draw: #d9c377; }
* { box-sizing: border-box; }
html { background: var(--green); }
body { margin: 0; color: var(--cream); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: radial-gradient(ellipse at top, var(--green-2), var(--green) 60%); min-height: 100vh; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
header.site { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
header.site .brand { display: flex; align-items: center; gap: 12px; color: var(--gold); font-family: "Alfa Slab One", Georgia, serif; font-size: 26px; letter-spacing: 0.5px; }
header.site .brand img { width: 40px; height: 40px; }
header.site nav { display: flex; gap: 18px; margin-left: 18px; flex: 1; }
header.site nav a { color: var(--cream); opacity: 0.9; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.user-chip img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); }
.btn { display: inline-block; padding: 7px 14px; border: 1px solid var(--gold-2); border-radius: 6px; color: var(--gold); background: rgba(0, 0, 0, 0.25); font: inherit; cursor: pointer; }
.btn:hover { background: rgba(242, 222, 153, 0.12); text-decoration: none; }
.flash { margin: 14px 0; padding: 10px 14px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); }
h1, h2, h3 { color: var(--gold); font-weight: 600; margin: 24px 0 10px; }
h1 { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; font-size: 34px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--gold-2); font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: 0.3px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.avatar { width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; margin-right: 8px; border: 1px solid var(--line); }
.avatar.big { width: 84px; height: 84px; margin: 0; }
.form { display: inline-flex; gap: 3px; }
.form span { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 4px; font-size: 11px; font-weight: 700; color: var(--ink); }
.form .W { background: var(--win); } .form .L { background: var(--loss); } .form .D { background: var(--draw); }
.muted { opacity: 0.7; }
.prov { font-size: 12px; color: var(--gold-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.club { display: inline-flex; align-items: center; gap: 7px; }
.club i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.25); }
.card { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.card .big-rating { font-family: "Alfa Slab One", Georgia, serif; font-size: 44px; color: var(--gold); line-height: 1; }
.card .sub { color: var(--cream); opacity: 0.85; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.score { font-family: "Alfa Slab One", Georgia, serif; font-size: 40px; color: var(--gold); text-align: center; }
.score small { display: block; font: 15px system-ui, sans-serif; color: var(--cream); opacity: 0.8; }
.chart svg { width: 100%; height: 200px; display: block; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .band { fill: rgba(242, 222, 153, 0.12); }
.chart .line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; }
.chart .dot { fill: var(--gold); }
.chart text { fill: var(--cream); font-size: 11px; opacity: 0.8; }
.change { font-variant-numeric: tabular-nums; }
.change.up { color: var(--win); } .change.down { color: var(--loss); }
footer.site { margin: 40px 0 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; opacity: 0.7; }
@media (max-width: 640px) { header.site nav { gap: 12px; } h1 { font-size: 28px; } .card .big-rating { font-size: 36px; } }
