/* Gameday Plan: the hand-turned stadium scoreboard.
   Board green panels, white team plates, lamp-yellow numerals, condensed block type. */
:root {
  /* Board colors are THEMED: "Classic" charcoal by default, or the fan's own team colors
     (set by app.js / theme boot script). Never ship a fixed team-looking palette:
     green and gold read as the Packers to a Lions fan. */
  --board: #252a31;
  --board-deep: #181b20;
  --board-line: #3a414b;
  --lamp: #f4f4ef;
  --lamp-ink: #181b20;
  --plate: #f7f7f4;
  --plate-ink: #15181c;
  --field: #eceef0;
  --surface: #ffffff;
  --ink: #16191d;
  --muted: #5c636c;
  --line: #d3d7dc;
  --flag: #c2402f;
  --on-board: rgba(255,255,255,.72);
  --on-board-dim: rgba(255,255,255,.5);
  --shadow: 0 1px 0 rgba(0,0,0,.25), 0 6px 16px -8px rgba(0,0,0,.45);
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --control-h: 46px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --field: #0f1114; --surface: #181b20; --ink: #e8eaed; --muted: #a2a9b2; --line: #2c3139;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --field: #0f1114; --surface: #181b20; --ink: #e8eaed; --muted: #a2a9b2; --line: #2c3139;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  /* Nothing may widen the page on a phone (a sideways-scrolling page clips the left edge). */
  overflow-x: clip;
  margin: 0; background: var(--field); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #4d90fe; outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---- top bar ---- */
.topbar { background: var(--board-deep); color: var(--plate); border-bottom: 4px solid var(--lamp); transition: background-color .3s, border-color .3s; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand-name b { color: var(--lamp); font-weight: 800; }
.topbar nav a { font-weight: 600; font-size: 15px; text-decoration: none; opacity: .85; }
.topbar nav a:hover { opacity: 1; text-decoration: underline; }
/* Phones: logo on one line and the Sign In button whole; "How It Works" lives on the landing page. */
@media (max-width: 560px) {
  .topbar nav a[href="/#how"] { display: none; }
  .brand-name { font-size: 23px; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-h); padding: 0 20px; border-radius: 6px; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; background: var(--lamp); color: var(--lamp-ink);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }

/* ---- the board (signature) ---- */
.board {
  transition: background-color .3s;
  background: var(--board); color: var(--plate); border-radius: 10px;
  padding: 14px; box-shadow: inset 0 0 0 3px var(--board-line), var(--shadow);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.025) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.025) 23px 24px);
}
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 2px 4px 12px; }
.board-title { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; margin: 0; }
.board-sub { font-size: 14px; color: var(--on-board); }
.board-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; cursor: pointer;
  background: transparent; color: var(--lamp); border: 1.5px solid var(--lamp);
  font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase;
}
.share-btn:hover { background: var(--lamp); color: var(--lamp-ink); }
@media (max-width: 720px) { .board-tools { flex-direction: row; align-items: center; } }
.count {
  font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--lamp); white-space: nowrap;
}
.count .num { display: inline-block; min-width: 1.3em; text-align: center; background: var(--board-deep); border-radius: 4px; padding: 0 .2em; margin-right: .25em; box-shadow: inset 0 0 0 1px var(--board-line); }
.days { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; }
.day { background: var(--board-deep); border-radius: 6px; padding: 8px; box-shadow: inset 0 0 0 1px var(--board-line); min-width: 0; }
.day-label { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .12em; color: var(--lamp); text-transform: uppercase; padding: 0 2px 6px; display: flex; justify-content: space-between; }
.day-label span:last-child { color: var(--on-board); letter-spacing: .04em; }
.day-empty { font-size: 13px; color: var(--on-board-dim); padding: 8px 2px; }

.plate {
  display: grid; grid-template-columns: 6px 1fr; background: var(--plate); color: var(--plate-ink);
  border-radius: 4px; overflow: hidden; box-shadow: 0 2px 0 rgba(0,0,0,.35);
  margin-bottom: 8px;
}
.plate:last-child { margin-bottom: 0; }
.plate-stripe { background: var(--team, #999); }
.plate-body { padding: 7px 9px 8px; min-width: 0; }
.plate-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plate-time { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: #4e555d; white-space: nowrap; }
.plate-league { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #6b727b; text-transform: uppercase; }
.plate-match { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; margin: 3px 0 2px; overflow-wrap: anywhere; }
.plate-match .vs { font-family: var(--body); font-weight: 600; font-size: 12px; color: #6b727b; text-transform: lowercase; margin: 0 4px; letter-spacing: 0; vertical-align: 2px; }
.plate-match .mine { box-shadow: inset 0 -5px 0 color-mix(in srgb, var(--team, #999) 40%, transparent); }
.plate-venue { font-size: 12.5px; color: #4e555d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; gap: 8px; }
.plate-foot a { font-weight: 700; font-size: 13px; color: #1f5fbf; text-decoration: none; }
.plate-foot a:hover { text-decoration: underline; }
.tag { font-family: var(--mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 5px; border-radius: 3px; background: #eaecee; color: #525962; }
.tag.flag { background: #f7dfd9; color: var(--flag); }

@media (max-width: 720px) {
  .days { grid-template-columns: 1fr; }
  .board-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- footer ---- */
.foot { color: var(--muted); font-size: 13px; padding: 32px 0 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: inherit; }
