 :root {
  --topbar-offset: 72px;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  background: linear-gradient(180deg, #f6f8fb 0%, #e8eef6 100%);
  color: #1f2a37;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.topbar {
  background: #0f172a;
  color: #fff;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.24);
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: url("favicon.svg") center/cover no-repeat;
  flex: 0 0 26px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #475569;
  border-radius: 8px;
  width: 44px;
  height: 38px;
  padding: 7px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 999px;
  margin: 4px 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
}

.nav a:hover,
.nav a.active {
  border-color: #93c5fd;
  background: #1e3a8a;
}

.wrap {
  max-width: 1000px;
  margin: 24px auto 40px;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

.subnav-row {
  background: linear-gradient(90deg, #1f2937 0%, #111827 100%);
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: var(--topbar-offset);
  z-index: 990;
  width: 100%;
  max-height: 56px;
  overflow: hidden;
  transition: max-height 0.22s ease;
  will-change: max-height;
}

.subnav-rail {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  box-sizing: border-box;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #475569;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  scroll-snap-align: start;
}

.subnav-link:hover {
  background: #1d4ed8;
  border-color: #93c5fd;
  color: #ffffff;
}

.subnav-link.active {
  background: #1d4ed8;
  border-color: #93c5fd;
  color: #ffffff;
}

.subnav-row.is-collapsed {
  max-height: 0;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.card {
  background: #fff;
  border: 1px solid #d7e1ee;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.page-lock-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #991b1b;
  font-size: 16px;
  font-weight: 800;
  position: relative;
  z-index: 5;
}

.page-locked {
  position: relative;
}

.page-locked::after {
  content: "";
  position: absolute;
  inset: 54px 0 0 0;
  background: rgba(248, 250, 252, 0.55);
  pointer-events: none;
  z-index: 4;
}

.page-locked .card {
  position: relative;
  z-index: 3;
}

.page-locked .btn,
.page-locked button,
.page-locked input,
.page-locked select,
.page-locked textarea,
.page-locked a {
  pointer-events: none;
  opacity: 0.55;
}

.card-split-gap {
  margin-top: 20px;
}

h1, h2 {
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 26px;
}

p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.5;
}

.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: #2563eb;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 10px;
}

.btn.alt {
  background: #059669;
}

.list {
  margin: 0;
  padding-left: 22px;
}

.list li {
  margin: 8px 0;
  font-size: 18px;
}

.access-steps {
  margin: 12px 0 8px;
  padding: 10px 12px;
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  background: #f8fbff;
}

.access-steps p {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.45;
}

.access-steps p:last-child {
  margin-bottom: 0;
}

.feature-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #d7e1ee;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.contact-item {
  border: 1px solid #d7e1ee;
  border-radius: 12px;
  padding: 14px;
  background: #f8fbff;
}

.contact-item h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.contact-item p {
  margin-bottom: 10px;
}

.contact-form {
  display: grid;
  gap: 8px;
}

.contact-form label {
  font-weight: 700;
  font-size: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.contact-form textarea {
  resize: vertical;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.auth-tab {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.auth-tab.active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.auth-panel {
  display: none;
  margin-top: 10px;
}

.auth-panel.active {
  display: block;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.auth-grid.one-col {
  grid-template-columns: minmax(220px, 1fr);
}

.auth-grid label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-grid input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.status-row {
  margin-bottom: 8px;
}

.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #dcfce7;
  color: #166534;
}

.status-badge.closing {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.closed {
  background: #fee2e2;
  color: #991b1b;
}

.mm-countdown {
  display: inline-block;
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0b0f19;
  border: 2px solid #334155;
  color: #fff;
}

.mm-countdown-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mm-time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 8px;
}

.mm-time-item {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
}

.mm-time-label {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.mm-time-value {
  display: block;
  margin-top: 2px;
  color: #facc15;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.mm-update {
  color: #334155;
  font-size: 15px;
}

.mm-checker {
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  background: #f8fbff;
}

.mm-checker h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.mm-checker p {
  margin: 0 0 8px;
}

.mm-checker-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.mm-checker-controls input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.mm-checker-controls .btn {
  margin: 0;
}

.mm-check-result {
  min-height: 20px;
  margin-top: 8px;
  font-weight: 700;
}

.mm-check-result.error {
  color: #991b1b;
}

.mm-check-result.taken {
  color: #92400e;
}

.mm-check-result.available {
  color: #166534;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.how-item {
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  padding: 12px;
  background: #f8fbff;
}

.how-item strong {
  display: block;
  margin-bottom: 6px;
}

.how-item p {
  margin: 0;
}

.faq-item {
  margin-bottom: 10px;
}

.faq-item p {
  margin: 2px 0 0;
}

.nfl-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.nfl-entry-grid label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 14px;
}

.nfl-entry-grid select,
.nfl-entry-grid input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.mm-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.mm-entry-grid label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 14px;
}

.mm-entry-grid input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.mm-squares-wrap {
  margin-top: 12px;
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  padding: 12px;
  background: #f8fbff;
}

.mm-squares-wrap h3 {
  margin: 0 0 6px;
  text-transform: uppercase;
  font-size: 20px;
}

.mm-squares-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mm-square-box label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 13px;
}

.mm-square-box input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.mm-square-box input.mm-input-taken {
  background: #fee2e2;
  border-color: #dc2626;
  color: #7f1d1d;
}

.mm-entry-grid input.mm-input-error {
  background: #fee2e2;
  border-color: #dc2626;
  color: #7f1d1d;
}

.mm-entry-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mm-entry-actions .btn {
  margin: 0;
}

.mm-entry-actions button.btn {
  border: 0;
  font-size: 20px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  cursor: pointer;
}

.hrd-category-card {
  margin-top: 10px;
}

.hrd-category-card h3 {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 20px;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
  letter-spacing: 0.2px;
}

.hrd-player-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.hrd-player-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.hrd-player-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.picks-status {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d7e1ee;
  background: #f8fafc;
  font-size: 16px;
}

.picks-status.success {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.picks-status.error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.picks-status.warn {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.mm-taken-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #0f172a;
  color: #f8fafc;
  border: 2px solid #334155;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.25);
  padding: 18px 18px 18px 20px;
  width: min(94vw, 760px);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
}

.mm-taken-popup.show {
  display: flex;
}

.mm-taken-popup-text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.mm-taken-popup-close {
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  flex: 0 0 auto;
}

.nfl-pick-table-wrap {
  border: 1px solid #d7e1ee;
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
  margin-top: 10px;
  background: #f8fbff;
}

.nfl-pick-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.nfl-pick-table th,
.nfl-pick-table td {
  border-bottom: 1px solid #d7e1ee;
  padding: 10px 12px;
}

.hrd-board-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  table-layout: fixed;
}

.hrd-board-table td {
  border: 1px solid #d7e1ee;
  padding: 10px 6px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  word-break: break-word;
}

.hrd-board-table td.hrd-cell-open {
  background: #f8fafc;
  color: #64748b;
}

.hrd-board-table td.hrd-cell-claimed {
  background: #dcfce7;
  color: #14532d;
}

.nfl-pick-table th {
  background: #0f172a;
  color: #fff;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pick-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}

.pick-day-row td {
  background: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
  padding: 8px 12px;
}

.pick-day-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.6px;
}

.pick-game-row td {
  background: #f8fafc;
}

.pick-team-card {
  border: 1px solid #d0d8e5;
  background: #f3f5f8;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.pick-team-card:hover {
  border-color: #94a3b8;
}

.pick-team-card.is-selected {
  background: #fef9c3;
  border-color: #eab308;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.25) inset;
}

.pick-team-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 30px;
}

.pick-team-logo-fallback {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: #e2e8f0;
  color: #0f172a;
  flex: 0 0 30px;
}

.pick-team-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pick-team-name {
  font-size: 22px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.1;
}

.pick-team-code {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
  font-weight: 700;
}

.pick-choice {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.pick-choice-box {
  width: 24px;
  height: 24px;
  border: 2px solid #64748b;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pick-choice:checked + .pick-choice-box {
  background: #2563eb;
  border-color: #1d4ed8;
}

.pick-choice:checked + .pick-choice-box::after {
  content: "";
  display: block;
  width: 5px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pick-option-right {
  justify-content: flex-start;
}

.pick-option-right .pick-choice-box {
  order: 4;
  margin-left: auto;
}

.pick-option-right .pick-team-logo,
.pick-option-right .pick-team-logo-fallback {
  order: 2;
}

.pick-option-right .pick-team-meta {
  order: 3;
  margin-right: 10px;
}

.pick-kickoff {
  text-align: center;
  font-weight: 700;
  color: #334155;
  width: 170px;
}

.pick-kickoff-pill {
  display: inline-block;
  min-width: 130px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 18px;
  font-weight: 800;
}

.picks-submit-btn {
  border: 0;
  width: 100%;
  cursor: pointer;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 20px;
}

.picks-submit-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.nfl-tiebreak-entry {
  margin-top: 12px;
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  padding: 12px;
  background: #f8fbff;
}

.nfl-tiebreak-entry h3 {
  margin: 0 0 6px;
  text-transform: uppercase;
  font-size: 20px;
}

.nfl-tiebreak-entry label {
  display: block;
  margin-top: 8px;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 14px;
}

.nfl-tiebreak-entry input {
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.nfl-admin-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.nfl-admin-top label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 14px;
}

.nfl-admin-top input,
.nfl-admin-top select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.member-admin-actions {
  margin-bottom: 14px;
}

.member-admin-summary-card {
  margin-top: 12px;
}

.member-admin-summary-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.member-admin-pending-card {
  margin-top: 12px;
  border-color: #facc15;
  background: #fffbeb;
}

.member-admin-pending-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.member-admin-pending-card p {
  margin: 0 0 10px;
  font-size: 16px;
}

.member-admin-section-title {
  margin-top: 16px;
  margin-bottom: 10px;
  font-size: 22px;
}

.member-admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.member-admin-summary-item {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
}

.member-admin-summary-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.member-admin-summary-item strong {
  font-size: 24px;
  color: #0f172a;
}

.nfl-live-picks-table {
  border-collapse: collapse;
  min-width: 0;
  width: 100%;
  table-layout: fixed;
  font-family: Arial, sans-serif;
  font-size: 14.7px;
}

.nfl-live-picks-table th,
.nfl-live-picks-table td {
  border: 1px solid #334155;
  text-align: center;
  padding: 3px 4px;
  white-space: nowrap;
}

.nfl-live-picks-table thead th {
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  border-color: #e2e8f0;
}

.nfl-live-picks-table thead th.nfl-preview-week {
  background: #0b6db5;
  color: #fff;
}

.nfl-live-picks-table thead th.nfl-live-pot {
  background: #0f172a;
  color: #fff;
}

.nfl-live-picks-table thead th.nfl-preview-pot,
.nfl-live-picks-table thead th.nfl-preview-points {
  background: #0b6db5;
  color: #fff;
}

.nfl-live-picks-table col.nfl-col-wins {
  width: 30px;
}

.nfl-live-picks-table col.nfl-col-name {
  width: 108px;
}

.nfl-live-picks-table col.nfl-col-fee {
  width: 32px;
}

.nfl-live-picks-table col.nfl-col-game {
  width: 48px;
}

.nfl-live-picks-table col.nfl-col-pts {
  width: 42px;
}

.nfl-live-game-head {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  min-width: 30px;
  height: 118px;
  padding: 4px 1px !important;
  font-size: 14.7px;
  font-weight: 800;
  letter-spacing: 0.2px;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
}

.nfl-live-name {
  text-align: left !important;
  font-weight: 800;
  background: #f8fafc;
}

.admin-only-link {
  margin-top: 8px;
  margin-bottom: 10px;
  display: none;
}

.nfl-live-picks-table .nfl-result-row td {
  background: #ffffff;
}

.nfl-live-picks-table .nfl-result-row td.nfl-result-win {
  background: #86d66f !important;
  color: #0f172a;
  font-weight: 800;
}

.nfl-live-picks-table .nfl-result-row td:last-child {
  background: #86d66f !important;
  color: #0f172a;
  font-weight: 800;
}

.nfl-live-win {
  background: #86d66f;
  color: #0f172a;
  font-weight: 800;
}

.nfl-live-picks-table .nfl-preview-week {
  font-size: 40px;
}

.nfl-live-picks-table .nfl-vertical-head {
  font-size: 14.7px;
  min-width: 26px;
  height: 118px;
}

.winners-board {
  margin-top: 12px;
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  overflow: hidden;
}

.winners-table {
  width: 100%;
  border-collapse: collapse;
}

.winners-table th,
.winners-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #d7e1ee;
}

.winners-table th {
  background: #f8fafc;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.winners-table td {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.nfl-preview-wrap {
  margin-top: 10px;
  overflow-x: auto;
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  background: #fff;
}

.preview-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.preview-controls label {
  font-weight: 700;
}

.preview-controls select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 15px;
}

.nfl-preview-table {
  border-collapse: collapse;
  min-width: 980px;
  width: auto;
  font-size: 14px;
}

.nfl-col-wins {
  width: 58px;
}

.nfl-col-name {
  width: 150px;
}

.nfl-col-fee {
  width: 48px;
}

.nfl-col-game {
  width: 62px;
}

.nfl-col-pts {
  width: 56px;
}

.nfl-preview-table th,
.nfl-preview-table td {
  border: 1px solid #1e293b;
  text-align: center;
  padding: 4px 6px;
  white-space: nowrap;
}

.nfl-game-head {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  min-width: 34px;
  height: 120px;
  padding: 6px 2px !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.nfl-preview-week {
  background: #0b6db5;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.nfl-preview-pot,
.nfl-preview-table th.nfl-preview-points {
  background: #0b6db5;
  color: #fff;
  font-weight: 800;
}

.nfl-preview-table td.nfl-preview-points {
  background: #ffffff;
  color: #1f2a37;
  font-weight: 800;
}

.nfl-vertical-head {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 8px 2px !important;
  min-width: 40px;
  height: 120px;
  font-size: 16px;
}

.nfl-fee-head {
  font-weight: 800;
}

.nfl-fee-cell {
  color: #16a34a;
  font-weight: 800;
}

.nfl-fee-pending {
  color: #64748b !important;
}

.nfl-preview-name {
  text-align: left;
  font-weight: 800;
  background: #f8fafc;
}

.nfl-cell-red {
  background: #e07a7a;
  color: #fff;
  font-weight: 700;
}

.nfl-result-row td {
  background: #ffffff;
  font-weight: 800;
}

.nfl-result-label {
  text-align: left;
}

.nfl-result-head {
  text-align: center;
  font-weight: 800;
}

.nfl-result-win {
  background: #86d66f !important;
  color: #0f172a;
}

.nfl-winner-row .nfl-preview-name,
.nfl-winner-row .nfl-preview-points {
  background: #0b6db5;
  color: #fff;
}

.nfl-winner-row td:first-child {
  background: #0b6db5;
  color: #fff;
  font-weight: 800;
}

.nfl-tiebreak-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.nfl-tiebreak-table {
  border-collapse: collapse;
  min-width: 300px;
  max-width: 430px;
  width: 48%;
  background: #fff;
}

.nfl-tiebreak-table th,
.nfl-tiebreak-table td {
  border: 1px solid #9ca3af;
  padding: 5px 8px;
  text-align: center;
  font-weight: 800;
}

.nfl-tiebreak-table th {
  background: #d1d5db;
}

.site-footer {
  background: #0f172a;
  color: #fff;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 16px;
  text-align: center;
}

.footer-links {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.footer-links a {
  color: #86efac;
  text-decoration: none;
}

.footer-links a:hover {
  color: #bbf7d0;
}

.footer-links span {
  color: #e2e8f0;
  margin: 0 6px;
}

.footer-quote {
  margin: 0 0 4px;
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
}

.footer-note {
  margin: 0;
  color: #e2e8f0;
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
}

.footer-copy {
  margin: 0;
  color: #cbd5e1;
  font-size: 11px;
  letter-spacing: 0.2px;
}

.back-to-top {
  position: fixed;
  right: 34px;
  bottom: 26px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .topbar {
    align-items: center;
  }

  .brand {
    font-size: 20px;
    width: calc(100% - 54px);
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
    margin-top: 8px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .nav.open {
    display: grid;
  }

  .nav a {
    text-align: center;
    font-size: 13px;
    padding: 8px 6px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  p,
  .list li {
    font-size: 16px;
  }

  .footer-quote {
    font-size: 15px;
  }

  .footer-note {
    font-size: 11px;
  }

  .footer-copy {
    font-size: 10px;
  }

  .mm-countdown {
    width: 100%;
    box-sizing: border-box;
  }

  .mm-time-value {
    font-size: 30px;
  }

  .mm-checker-controls {
    grid-template-columns: 1fr;
  }

  .winners-table th,
  .winners-table td {
    padding: 10px;
  }

  .winners-table td {
    font-size: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .nfl-entry-grid {
    grid-template-columns: 1fr;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .mm-entry-grid {
    grid-template-columns: 1fr;
  }

  .mm-squares-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mm-entry-actions {
    grid-template-columns: 1fr;
  }

  .hrd-player-list {
    grid-template-columns: 1fr;
  }

  .nfl-admin-top {
    grid-template-columns: 1fr;
  }

  .nfl-pick-table {
    min-width: 640px;
  }

  .nfl-pick-table th,
  .nfl-pick-table td {
    padding: 8px;
  }

  .pick-team-card {
    padding: 8px;
    gap: 8px;
  }

  .pick-team-logo,
  .pick-team-logo-fallback {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .pick-team-name {
    font-size: 18px;
  }

  .pick-team-code {
    font-size: 12px;
  }

  .pick-kickoff-pill {
    min-width: 108px;
    font-size: 16px;
    padding: 7px 8px;
  }

  .back-to-top {
    right: 22px;
    bottom: 20px;
  }

  .subnav-rail {
    padding: 8px 10px;
    justify-content: flex-start;
  }

}

@media (max-width: 520px) {
  .nav.open {
    grid-template-columns: 1fr;
  }
}
