body.xmas-page {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #1c1917;
  min-height: 100vh;
}
body.xmas-nfl {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23fff' fill-opacity='.08'%3E%3Cpath d='M80 12l4 12 12 4-12 4-4 12-4-12-12-4 12-4z'/%3E%3Cpath d='M28 88l3 8 8 3-8 3-3 8-3-8-8-3 8-3z'/%3E%3Cpath d='M132 104l3 8 8 3-8 3-3 8-3-8-8-3 8-3z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(165deg, #14532d 0%, #7f1d1d 52%, #111827 100%);
}
body.xmas-nba {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23fbbf24' fill-opacity='.1'%3E%3Cpath d='M80 12l4 12 12 4-12 4-4 12-4-12-12-4 12-4z'/%3E%3Cpath d='M28 88l3 8 8 3-8 3-3 8-3-8-8-3 8-3z'/%3E%3Cpath d='M132 104l3 8 8 3-8 3-3 8-3-8-8-3 8-3z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(165deg, #0f172a 0%, #1e3a8a 48%, #7f1d1d 100%);
}
body.xmas-page > .topbar,
body.xmas-page > .site-nav-strip,
body.xmas-page > .container {
  position: relative;
  z-index: 0;
}
.topbar {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 28px;
  font-weight: 800;
  font-family: Oswald, Inter, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 4px solid #fbbf24;
}
.site-nav-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(17, 24, 39, 0.72);
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
}
.site-nav-link {
  color: #fef3c7;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(0, 0, 0, 0.25);
}
.site-nav-link:hover { background: #fbbf24; color: #111; }
.site-nav-link.switch {
  background: #fbbf24;
  color: #111;
  border-color: #fde68a;
}
.site-nav-link.switch:hover {
  background: #fff;
  color: #111;
}
.site-nav-note { color: #fde68a; font-size: 13px; font-weight: 600; }
.xmas-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 20px;
  background: #fbbf24;
  color: #111;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid #fde68a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.xmas-switch-btn:hover {
  background: #fff;
  color: #111;
}
.xmas-switch-btn.bottom-switch {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 0;
  padding: 16px 20px;
  font-size: 17px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px 56px;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.hero-flyer {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 28px 24px;
  color: #fff;
  border: 3px solid #fbbf24;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.18), transparent 36%),
    linear-gradient(135deg, #166534 0%, #9f1239 55%, #111827 100%);
}
body.xmas-nba .hero-flyer {
  background:
    radial-gradient(circle at 12% 18%, rgba(251,191,36,.22), transparent 36%),
    linear-gradient(135deg, #1e3a8a 0%, #7f1d1d 58%, #111827 100%);
}
.hero-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde68a;
  margin-bottom: 8px;
  white-space: nowrap;
}
.hero-flyer h1 {
  margin: 0 0 8px;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.hero-flyer p { margin: 6px 0; font-weight: 600; color: #fff7ed; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.hero-contact {
  display: inline-block;
  background: #111;
  color: #fde68a;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(253, 230, 138, 0.55);
}
.hero-actions .xmas-switch-btn { margin-top: 0; }
.hero-games {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.game-tile {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 10px 12px;
  border: 2px solid #fbbf24;
}
.team-side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.team-side.home { justify-content: flex-end; text-align: right; }
.team-name { font-weight: 800; font-size: 14px; color: #111; }
.team-logo { width: 36px; height: 36px; object-fit: contain; }
.team-logo.lg { width: 52px; height: 52px; }
.team-logo.fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
  border-radius: 6px;
}
.vs-chip {
  font-size: 11px;
  font-weight: 800;
  color: #7f1d1d;
  background: #fef3c7;
  border-radius: 999px;
  padding: 4px 8px;
}
.game-meta {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #7c2d12;
}
.card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid #fbbf24;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.grid-header-wrap {
  background: linear-gradient(135deg, #fef3c7, #fecaca);
  border: 2px solid #f59e0b;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 15px;
  text-align: center;
}
.grid-title {
  font-size: 26px;
  font-weight: 800;
  color: #7f1d1d;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  font-family: Oswald, Inter, sans-serif;
}
body.xmas-nba .grid-title { color: #1e3a8a; }
.grid-line.strong {
  font-size: 18px;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 6px;
}
.grid-line { font-size: 14px; color: #44403c; margin: 2px 0; }
.grid-line.small { font-size: 13px; color: #57534e; }
.sold-pill {
  display: inline-block;
  margin-top: 8px;
  background: #111;
  color: #fde68a;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.grid-board {
  margin-top: 15px;
  --grid-gap: 4px;
  --left-axis-width: 94px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.grid-board, .grid-board * { box-sizing: border-box; }
.spurs-label-row,
.top-row,
.grid-body {
  display: grid;
  grid-template-columns: var(--left-axis-width) minmax(0, 1fr);
  gap: var(--grid-gap);
  width: 100%;
  max-width: 100%;
}
.spurs-label-row { margin-bottom: 4px; }
.corner, .grid-gutter {
  width: auto;
  min-width: 0;
}
.corner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #7f1d1d;
  text-align: center;
  line-height: 1.2;
}
.top-numbers,
.squares {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: var(--grid-gap);
}
.squares {
  grid-template-rows: repeat(5, 1fr);
}
.grid-body { margin-top: 0; align-items: stretch; }
.left-axis {
  width: auto;
  min-width: 0;
  display: flex;
  gap: 6px;
  align-items: stretch;
  align-self: stretch;
  height: 100%;
}
.left-numbers {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  flex: 1;
  min-width: 0;
  gap: var(--grid-gap);
  height: 100%;
}
.left-double {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--grid-gap);
  min-height: 45px;
  height: 100%;
  align-items: stretch;
}
.num-box {
  background: #000;
  color: #fff;
  border: 2px solid #111;
  text-align: center;
  padding: 6px 0;
  font-weight: 700;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}
.axis-team {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  border-radius: 4px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.axis-team.home {
  min-width: 0;
}
.axis-team.away {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  width: 28px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.square {
  background: #fff;
  border: 1px solid #999;
  height: 45px;
  min-height: 0;
  min-width: 0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  overflow: hidden;
  padding: 1px;
  text-align: center;
  transition: all 0.15s ease-in-out;
}
.square > div:not(.box-num) {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}
.square .box-num {
  font-size: 10px;
  opacity: 0.6;
  font-weight: 600;
}
.square.filled {
  background-color: #c40000;
  color: #ffd700;
  font-weight: 700;
  border: 2px solid #ffd700;
  box-shadow:
    0 0 6px rgba(255, 215, 0, 0.7),
    0 0 12px rgba(255, 215, 0, 0.4),
    inset 0 0 6px rgba(0, 0, 0, 0.4);
}
.square.win-ht {
  outline: 3px solid #1d4ed8;
  outline-offset: -2px;
}
.square.win-final {
  outline: 3px solid #15803d;
  outline-offset: -2px;
}
.square.win-ht.win-final {
  outline: 3px solid #7c3aed;
}
.legend {
  margin-top: 16px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #facc15;
  border-radius: 10px;
  padding: 15px;
  max-width: 460px;
}
.legend h3 { margin: 0 0 8px; font-size: 16px; color: #92400e; }
.legend ul { list-style: none; padding: 0; margin: 0; }
.legend li { font-size: 14px; margin: 4px 0; color: #78350f; }
.rules-list { margin: 0; padding-left: 1.2rem; line-height: 1.7; }
.rules-list li { margin-bottom: 6px; }
.payouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.payout-card h3 { margin: 0 0 10px; text-align: center; }
.payout-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 8px 0;
  border-bottom: 1px solid #ccc;
  font-weight: 600;
}
.payout-row:last-child { border: none; }
.highlight { color: #15803d; font-weight: 800; }
.game-card { overflow: hidden; }
.game-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.game-card-head strong { font-size: 18px; }
.status-badge {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e7e5e4;
  color: #44403c;
}
.status-badge.drawn, .status-badge.video { background: #dbeafe; color: #1e3a8a; }
.status-badge.halftime { background: #fef3c7; color: #92400e; }
.status-badge.final { background: #dcfce7; color: #166534; }
.week-matchup-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}
.team-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.team-badge.home { flex-direction: row-reverse; }
.week-card-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-bottom: 16px;
}
.week-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}
.week-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fde68a;
  font-weight: 700;
  text-align: center;
  padding: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 40%),
    #1c1917;
}
.week-result-panel { display: flex; flex-direction: column; gap: 10px; }
.result-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}
.result-block .label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 4px;
}
.result-block.halftime { border-left: 4px solid #1d4ed8; }
.result-block.final { border-left: 4px solid #15803d; }
.value.score { font-size: 16px; font-weight: 800; }
.value.win { color: #15803d; font-weight: 800; }
.sub { font-size: 13px; color: #57534e; margin-top: 2px; }
.axis-line { font-weight: 700; font-size: 13px; }
.payout-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.payout-table th, .payout-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #e7e5e4;
}
.payout-table th { font-size: 12px; text-transform: uppercase; color: #57534e; }
.tbd { color: #a8a29e; font-weight: 700; }
.box-win { color: #15803d; font-weight: 800; }
@media (max-width: 767px) {
  .container {
    padding: 10px;
    overflow-x: hidden;
  }
  .card {
    padding: 12px;
    overflow: visible;
  }
  .hero, .week-card-body, .payouts { grid-template-columns: 1fr; }
  .topbar { font-size: 20px; padding: 10px; }
  .grid-header-wrap { padding: 12px; }
  .grid-title { font-size: 20px; }
  .grid-line.strong { font-size: 15px; }
  .grid-line, .grid-line.small { font-size: 12px; }
  .grid-board {
    --grid-gap: 2px;
    --left-axis-width: min(22vw, 72px);
  }
  .left-axis { gap: 3px; }
  .axis-team.away {
    width: 20px;
    font-size: 8px;
    padding: 2px;
  }
  .axis-team.home {
    font-size: 9px;
    padding: 3px 4px;
  }
  .corner { font-size: 7px; padding: 2px; }
  .num-box {
    padding: 2px 0;
    font-size: clamp(9px, 2.6vw, 12px);
  }
  .left-double { min-height: 0; }
  .square {
    height: auto;
    aspect-ratio: 1;
    font-size: clamp(7px, 2vw, 10px);
  }
  .square .box-num { font-size: clamp(6px, 1.6vw, 9px); }
  .square > div:not(.box-num) { display: none; }
  .square.filled { border-width: 1px; }
  .square.filled:hover { transform: none; }
  .game-meta { display: none; }
}
@media (max-width: 380px) {
  .grid-board { --left-axis-width: 64px; }
  .axis-team.away { width: 18px; font-size: 7px; }
}
