/* Fairport Bills Squares */
:root {
  --bills-blue: #00338d;
  --bills-red: #c60c30;
  --fp-red: #d22030;
  --fp-blue: #1560bd;
  --ink: #16181d;
  --muted: #5c6470;
  --line: #e3e6eb;
  --bg: #f7f8fa;
  --card: #ffffff;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--bills-blue); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Nav ---------- */
.nav {
  background: var(--bills-blue);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 20, 60, .25);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.nav-brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav-links a {
  color: #dce6ff;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
}
.nav-links a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-links a.active { background: var(--bills-red); color: #fff; }

/* Weeks dropdown */
.wk-drop { position: relative; }
.wk-drop > button {
  color: #dce6ff;
  background: none;
  border: 0;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  font-family: inherit;
  cursor: pointer;
}
.wk-drop > button:hover { background: rgba(255,255,255,.12); color: #fff; }
.wk-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  padding: 8px;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 340px;
}
.wk-drop.open .wk-menu { display: grid; }
.wk-menu a {
  padding: 8px 6px;
  border-radius: 7px;
  font-size: .82rem;
  color: var(--ink);
  text-align: center;
  line-height: 1.25;
}
.wk-menu a:hover { background: var(--bg); }
.wk-menu a b { display: block; color: var(--bills-blue); }

/* ---------- Layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 18px 70px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
h1 { font-size: 2rem; line-height: 1.2; }
h2 { font-size: 1.35rem; margin-bottom: 10px; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--bills-blue) 0%, #0a2464 55%, #051538 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 34px;
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(198, 12, 48, .5), transparent 65%);
}
.hero h1 { font-size: 2.5rem; margin: 10px 0 6px; }
.hero .tag {
  color: #ffd7de;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
}
.hero p.sub { max-width: 620px; color: #c8d6f5; margin-top: 8px; }
.hero-logos { display: flex; align-items: center; gap: 16px; }
.hero-logos img { width: 58px; height: 58px; }
.hero-cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
}
.btn-red { background: var(--bills-red); color: #fff; }
.btn-red:hover { background: #a80a29; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }

/* Countdown */
.count {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.count .unit {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 76px;
  text-align: center;
}
.count .num { font-size: 1.7rem; font-weight: 800; }
.count .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #b9c8ea; }

/* ---------- Schedule grid (home) ---------- */
.sched {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.game-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: block;
  color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 30, 80, .12);
  border-color: var(--bills-blue);
}
.game-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.game-card .wk {
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--bills-red);
}
.game-card .logos { display: flex; align-items: center; gap: 8px; }
.game-card .logos img { width: 40px; height: 40px; }
.game-card .vs { font-weight: 800; color: var(--muted); font-size: .8rem; }
.game-card .opp-name { font-weight: 700; margin-top: 8px; font-size: .95rem; }
.game-card .meta { color: var(--muted); font-size: .84rem; }
.game-card .note {
  display: inline-block;
  margin-top: 7px;
  background: #fff1f3;
  color: var(--bills-red);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}
.bye-card {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  min-height: 130px;
  border-radius: 12px;
  border: 1.5px dashed var(--line);
  background: transparent;
}

/* ---------- Week page: matchup banner ---------- */
.matchup {
  background: linear-gradient(120deg, var(--bills-blue) 0%, #0a2464 45%, #571223 78%, var(--bills-red) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 26px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.matchup .wk-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  font-size: .8rem;
  color: #ffd7de;
}
.clash {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 18px 0 10px;
}
.clash .team { text-align: center; width: 190px; }
.clash .team img {
  width: 130px;
  height: 130px;
  margin: 0 auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45));
}
.clash .team.left img { transform: rotate(-8deg); }
.clash .team.right img { transform: rotate(8deg); }
.clash .team .tn { font-weight: 800; margin-top: 10px; font-size: 1.02rem; }
.burst {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.burst svg { position: absolute; inset: 0; }
.burst span {
  position: relative;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--bills-blue);
}
.matchup .meta { color: #c8d6f5; font-size: .95rem; }
.matchup .note-pill {
  display: inline-block;
  margin-top: 10px;
  background: rgba(255, 255, 255, .16);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
}

/* ---------- Week strip (home + week pages) ---------- */
.week-strip {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 12px 2px;
  -webkit-overflow-scrolling: touch;
}
.week-strip a, .ws-bye {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: .66rem;
  font-weight: 800;
  color: var(--ink);
  min-width: 46px;
  text-align: center;
  transition: transform .1s ease, border-color .1s ease;
}
.week-strip a img { width: 22px; height: 22px; }
.week-strip a small { color: var(--muted); font-weight: 700; font-size: .58rem; }
.ws-bye { flex: 0 0 auto; min-width: 34px; }
.week-strip a:hover { border-color: var(--bills-blue); transform: translateY(-2px); }
.week-strip a.active { background: var(--bills-blue); border-color: var(--bills-blue); color: #fff; }
.week-strip a.active small { color: #c8d6f5; }
.ws-bye { color: var(--muted); border-style: dashed; font-size: .6rem; line-height: 1.3; }

/* ---------- Squares grid ---------- */
.grid-card { padding: 22px; overflow-x: auto; }
.axis-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  margin-bottom: 8px;
}
.axis-title img { width: 28px; height: 28px; }
.side-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-right: 6px;
}
.side-wrap img { width: 28px; height: 28px; }
.axis-title.bills { color: var(--bills-blue); }
.board { display: flex; justify-content: center; }
.side-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  color: var(--bills-red);
  padding-left: 6px;
}
table.squares { border-collapse: collapse; }
table.squares th, table.squares td {
  width: 52px;
  height: 44px;
  text-align: center;
  border: 1px solid var(--line);
  font-size: .95rem;
}
table.squares th {
  background: var(--bills-blue);
  color: #fff;
  font-weight: 800;
}
table.squares th.opp-h { background: var(--bills-red); }
table.squares th.corner { background: #0a1c47; font-size: .6rem; line-height: 1.2; }
table.squares td { background: #fff; font-weight: 700; color: var(--ink); }
table.squares td:hover { background: #eef3ff; }

/* Ghosted "to be revealed" state */
.ghost-wrap { position: relative; }
.ghost-wrap .ghost {
  opacity: .35;
  filter: grayscale(.4) blur(1px);
  pointer-events: none;
  user-select: none;
}
.reveal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
  z-index: 2;
}
.reveal-banner {
  background: var(--bills-blue);
  color: #fff;
  font-weight: 900;
  font-size: 1.5rem;
  padding: 12px 34px;
  border-radius: 12px;
  transform: rotate(-5deg);
  box-shadow: 0 10px 30px rgba(0, 20, 60, .35);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.reveal-overlay p {
  max-width: 440px;
  color: var(--ink);
  font-weight: 600;
  background: rgba(255, 255, 255, .85);
  border-radius: 10px;
  padding: 8px 14px;
}

/* ---------- Payout strip ---------- */
.payouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.payout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.payout .amt { font-size: 2rem; font-weight: 900; color: var(--bills-red); }
.payout .lbl { font-weight: 700; color: var(--bills-blue); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }

/* ---------- Winner banner on week page ---------- */
.winner-strip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 22px;
}
.winner-strip h3 { color: #15803d; margin-bottom: 6px; }

/* ---------- Winners page ---------- */
.win-list { display: grid; gap: 14px; margin-top: 18px; }
.win-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.win-card img { width: 46px; height: 46px; }
.win-card .g { font-weight: 800; color: var(--bills-blue); min-width: 150px; }
.win-card .g small { display: block; color: var(--muted); font-weight: 600; }
.win-card .res { display: flex; gap: 26px; flex-wrap: wrap; }
.win-card .res .slot small {
  display: block;
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
}
.win-card .res .slot b { color: var(--bills-red); }
.pending { color: var(--muted); font-style: italic; }

/* ---------- Donors page ---------- */
.donor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 9px;
  margin-top: 18px;
}
.donor {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
}
.donor .n {
  background: var(--bills-blue);
  color: #fff;
  font-weight: 800;
  border-radius: 7px;
  width: 34px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  flex: 0 0 auto;
}
.donor.open .n { background: #c6ccd6; }
.donor.open { color: var(--muted); }
.donor b { font-weight: 700; }

/* ---------- About page ---------- */
.about-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.about-hero img.f { width: 110px; height: 110px; }
.steps { counter-reset: step; display: grid; gap: 12px; margin-top: 14px; }
.step {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  align-items: flex-start;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  background: var(--bills-red);
  color: #fff;
  font-weight: 900;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.venmo-box {
  background: var(--card);
  border: 2px solid var(--bills-blue);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  max-width: 360px;
  margin: 22px auto;
}
.venmo-box img { width: 240px; margin: 12px auto; }
.venmo-box .handle { font-size: 1.25rem; font-weight: 800; color: var(--bills-blue); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 26px 18px 40px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
footer img { width: 30px; height: 30px; margin: 0 auto 8px; }

/* ---------- Sections ---------- */
.section { margin-top: 34px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .wk-menu {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 58px;
    width: auto;
    grid-template-columns: 1fr;
    max-height: 72vh;
    overflow-y: auto;
  }
  .wk-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 11px 14px;
    font-size: .9rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .wk-menu a:last-child { border-bottom: 0; }
  .wk-menu a b { display: inline; }
  .clash { gap: 10px; }
  .clash .team { width: 120px; }
  .clash .team img { width: 84px; height: 84px; }
  .burst { width: 64px; height: 64px; }
  table.squares th, table.squares td { width: 34px; height: 32px; font-size: .74rem; }
  .payouts { grid-template-columns: 1fr; }
}
