/* Styles for every page. Colors are the variables just below. */

:root {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-card-alt: #162032;
  --bg-card-inner: #162032;
  --accent-gold: #fbbf24;
  --accent-gold-hover: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #f8fafc;
  --border-color: #334155;
  --success: #4ade80;
  --danger: #f87171;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100dvh;
}

body {
  padding: 1.5rem 1rem 3rem;
  display: flex;
  justify-content: center;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 750px;
}

/* Pick and host forms use a narrower column. */
.container.narrow {
  max-width: 550px;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
}

.main-logo {
  max-width: 190px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.main-title-badge {
  font-size: 1.35rem;
  color: var(--accent-gold);
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 100%);
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #fde68a;
  box-shadow: 0 4px 0 #b45309, 0 8px 20px rgba(251, 191, 36, 0.3);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  margin-bottom: 1.5rem;
}

.btn-cta:hover {
  background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%);
}

.card {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.15rem;
  color: var(--accent-gold);
  font-weight: 800;
}

.host-season-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.host-season-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.host-season-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.host-season-record {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent-gold);
}

.top3-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.top3-pending {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.65rem 0;
  font-weight: 700;
  background: var(--bg-card-alt);
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.season-standings-card, .elevated-card {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tier-header.expandable {
  cursor: pointer;
}

.tier-toggle-arrow {
  display: inline-block;
  width: 0.8em;
  text-align: center;
  color: var(--accent-gold);
  font-weight: bold;
  margin-left: 0.5rem;
}

/* Rows without a tie keep the same space, so every record lines up. */
.tier-toggle-arrow.placeholder {
  visibility: hidden;
}

.tier-names-grid {
  display: none;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  font-size: 0.64rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.tier-names-grid.open {
  display: flex;
}

.tier-names-grid span {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  white-space: nowrap;
}

.tier-names-grid .fav-logo {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0 0.3rem 0 0;
  vertical-align: middle;
}

.tiebreakers-toggle {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tiebreakers-toggle:hover, .tiebreakers-toggle:active {
  background: var(--bg-card);
  border-color: var(--accent-gold);
}

.tiebreakers-box {
  display: none;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tiebreakers-box.open {
  display: block;
}

.tiebreakers-box ol {
  padding-left: 1.25rem;
  margin-top: 0.35rem;
}

.tiebreakers-box li {
  margin-bottom: 0.3rem;
}

.tiebreakers-box strong {
  color: var(--text-main);
}

.tiebreaker-decision-log {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.tiebreaker-decision-item {
  background: #111a2c;
  border-left: 3px solid var(--accent-gold);
  padding: 0.4rem 0.6rem;
  border-radius: 0 4px 4px 0;
  margin-top: 0.4rem;
  font-size: 0.73rem;
  color: var(--text-main);
  line-height: 1.4;
}

.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 2rem auto;
  width: 85%;
  opacity: 0.85;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.45);
}

.week-selector-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.week-dropdown {
  flex: 1;
  /* Long week names (postseason) can't push the Next button off screen. */
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 1rem;
  font-weight: 800;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  outline: none;
  cursor: pointer;
}

.btn-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-step:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.host-header-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.25rem 0;
  border-radius: 8px;
  user-select: none;
  transition: opacity 0.15s ease;
}

.host-header-toggle:hover {
  opacity: 0.9;
}

.host-toggle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
}

.host-header-toggle:hover .host-toggle-badge {
  border-color: var(--accent-gold);
  background: #1e293b;
}

.grid-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card-alt);
  width: 100%;
  max-width: 100%;
  display: block;
}

.grid-wrapper.collapsed {
  display: none;
}

.host-grid-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  text-align: center;
}

.host-grid-table th,
.host-grid-table td {
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  line-height: 1.25;
  vertical-align: top;
}

.host-grid-table td:first-child {
  border-left: none;
}

.host-grid-table thead th {
  background: #1e293b;
  color: var(--accent-gold);
  font-weight: 700;
  padding: 0.45rem 0.25rem;
  font-size: 0.8rem;
  border-top: none;
}

.host-header-score {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-top: 0.15rem;
}

.host-grid-table th.matchup-header,
.host-grid-table td.matchup-cell {
  width: 31%;
  text-align: center;
  padding: 0.45rem 0.25rem;
  font-size: 0.75rem;
}

.matchup-sec-team {
  font-weight: 800;
}

.matchup-other-team {
  font-weight: 400;
}

.matchup-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.per-team-game {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.per-team-header {
  position: relative;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}

.per-team-body {
  padding: 0.2rem 0.9rem 0.85rem;
  border-top: 1px solid var(--border-color);
  display: none;
}

.per-team-body.open {
  display: block;
}

.per-team-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 0.3rem;
  padding-top: 0.5rem;
}

.per-team-col {
  text-align: center;
}

.per-team-col:first-child {
  border-right: 1px solid var(--border-color);
}

.per-team-header-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.per-team-header-namerow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.per-team-score {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.per-team-score.per-team-result-win {
  color: var(--success);
}

.per-team-score.per-team-result-loss {
  color: var(--danger);
}

.per-team-header-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0.4rem;
}

.per-team-header-at {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.per-team-header-expand-icon {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  transform: translateY(-50%);
  color: var(--accent-gold);
  font-weight: bold;
  pointer-events: none;
}

.per-team-header-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.per-team-header-count {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-gold);
  white-space: nowrap;
}

.per-team-names {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-main);
  line-height: 1.6;
  columns: 90px 2;
  column-gap: 0.6rem;
  text-align: left;
}

.per-team-name-item {
  break-inside: avoid;
}

.matchup-team-logo {
  height: 33px;
  width: 33px;
  object-fit: contain;
}

.matchup-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.matchup-rank {
  position: absolute;
  bottom: -2px;
  right: -3px;
  padding: 1px 3px;
  border-radius: 4px;
  background: rgba(10, 17, 32, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: var(--accent-gold);
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.bye-box {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card-alt);
}

.bye-box.collapsed {
  display: none !important;
}

.bye-label {
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.bye-label small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.75;
}

.bye-logos {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
}

.back-link {
  display: inline-block;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 1.8rem;
  color: var(--accent-gold);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.sub-header {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pick-format-banner {
  background: #19263e;
  border: 1.5px solid var(--accent-gold);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pick-format-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.pick-format-highlight {
  color: var(--accent-gold);
  text-transform: uppercase;
}

.user-input-group {
  margin-bottom: 1.25rem;
}

.name-input-wrapper {
  position: relative;
}

.name-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card-inner, #1a2740);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 20;
}

.name-suggestions.open {
  display: block;
}

.name-suggestion-item {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
}

.name-suggestion-item:last-child {
  border-bottom: none;
}

.name-suggestion-item:hover {
  background: var(--accent-gold);
  color: #0a1120;
}

.name-reminder {
  font-size: 0.8rem;
  color: var(--text-main);
  margin-top: 0.45rem;
  line-height: 1.4;
}

.name-reminder strong {
  color: var(--accent-gold);
}

.name-match-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.name-match-modal {
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 380px;
  width: 100%;
}

.name-match-modal-title {
  color: var(--accent-gold);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.name-match-modal-text {
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.name-match-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-modal-primary {
  background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 100%);
  color: #0f172a;
  font-weight: 900;
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-modal-secondary {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

label {
  display: block;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* Text boxes, PIN box and dropdowns on the pick and host forms. */
.form-field {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #0d1527;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-field:focus {
  border-color: var(--accent-gold);
}

select.form-field {
  color: var(--accent-gold);
  font-weight: 700;
}

select.form-field option {
  background: #0d1527;
  color: var(--text-main);
}

input[type="password"].form-field {
  margin-bottom: 1.25rem;
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.game-card {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card.is-locked {
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
}

.game-final-message {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.4;
  text-align: center;
}

.final-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0.4rem 0 0.7rem;
}

.final-logo-row .btn-pick-logo-wrap {
  width: 44px;
  margin: 0;
}

.final-logo-row .btn-pick-logo {
  height: 44px;
  width: 44px;
}

.final-team-fallback {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.schedule-row.live-row {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
}

.day-divider {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem;
  margin-bottom: 0.4rem;
}

.schedule-matchup {
  font-weight: 700;
  color: var(--text-main);
}

.schedule-detail {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  font-weight: normal;
}

.schedule-winner {
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.8rem;
  white-space: nowrap;
}

.game-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.game-title {
  flex: 1;
  text-align: left;
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-lock-toggle {
  background: #0e1728;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: pre-line;
  line-height: 1.25;
  gap: 0.3rem;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.btn-lock-toggle:hover {
  border-color: var(--accent-gold);
  color: var(--text-main);
}

.btn-lock-toggle.active {
  background: var(--accent-gold);
  color: #0a1120;
  border-color: var(--accent-gold);
  font-weight: 900;
}

.game-detail {
  font-size: 0.8rem;
  color: var(--text-main);
  display: block;
  margin-top: 0.65rem;
  line-height: 1.3;
  text-align: center;
}

.pick-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
}

.pick-grid-at {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent-gold);
}

.btn-pick {
  background: #0e1728;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  padding: 0.85rem 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-pick-logo {
  display: block;
  height: 32px;
  width: 32px;
  object-fit: contain;
  margin: 0 auto 0.3rem;
}

.btn-pick-name {
  color: var(--text-main);
  font-size: 0.78rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-pick-record {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-pick:hover {
  border-color: #3b4d71;
  color: var(--text-main);
}

.btn-pick.selected .btn-pick-name,
.btn-pick.selected .btn-pick-record {
  color: #0a1120;
}

.btn-pick.selected {
  background: var(--accent-gold);
  color: #0a1120;
  font-weight: 900;
  border-color: var(--accent-gold);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 100%);
  color: #0a1120;
  font-size: 1.1rem;
  font-weight: 900;
  padding: 1.1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 0 #b45309;
  transition: transform 0.1s ease;
}

.btn-submit:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #b45309;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.score-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.score-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.score-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.score-field {
  width: 100%;
  background: #0d1527;
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
  padding: 0.45rem;
  border-radius: 6px;
  outline: none;
}

.score-field:focus {
  border-color: var(--accent-gold);
}

.status-alert {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.hub-action-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.info-row {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
}

.info-row:last-child {
 border-bottom: none;
}

.info-row.standings-row {
  grid-template-columns: 1.6rem 1fr 3.2rem 3.4rem;
}

.info-row.head {
  color: var(--accent-gold);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-rank {
  color: var(--text-muted);
  font-weight: 800;
  text-align: center;
}

.info-team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  font-weight: 700;
  color: var(--text-main);
}

.info-team.sec {
 color: var(--accent-gold);
}

.info-team img {
  height: 22px;
  width: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.info-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-meta {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  text-align: right;
}

.top25-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.top25-table th {
  position: sticky;
  top: 0;
  background: var(--bg-card);
  color: var(--accent-gold);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: left;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--border-color);
  z-index: 1;
}

.top25-table td {
  padding: 0.4rem 0.25rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.top25-table tr:last-child td {
 border-bottom: none;
}

.top25-rank {
  width: 1.6rem;
  text-align: center !important;
  color: var(--text-muted);
  font-weight: 800;
}

.top25-team {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  font-weight: 700;
  color: var(--text-main);
}

.top25-team.sec {
 color: var(--accent-gold);
}

.top25-team img {
  height: 18px;
  width: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.top25-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top25-missing {
  color: var(--text-muted);
  font-style: italic;
}

[data-team-id] {
  cursor: pointer;
}

.team-sched-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.team-sched-modal {
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.team-sched-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.team-sched-header img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-sched-title {
  flex: 1;
  min-width: 0;
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 1.05rem;
}

.team-sched-title small {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
}

.team-sched-close {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.team-sched-body {
  position: relative;
  overflow-y: auto;
  padding: 0.4rem 1rem 0.9rem;
}

.team-sched-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
}

.team-sched-row:last-child {
  border-bottom: none;
}

.team-sched-row.current-week {
  background: rgba(251, 191, 36, 0.14);
  border-left: 3px solid var(--accent-gold);
  margin: 0 -1rem;
  padding-left: calc(1rem - 3px);
  padding-right: 1rem;
}

.team-sched-date {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.team-sched-opp {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: var(--text-main);
  font-weight: 700;
}

.team-sched-opp img {
  height: 22px;
  width: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-sched-opp span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-sched-result {
  font-weight: 800;
  white-space: nowrap;
  color: var(--text-muted);
}

.team-sched-result.win {
 color: var(--success);
}

.team-sched-result.loss {
 color: var(--danger);
}

.team-sched-note {
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.matchup-at-symbol {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}

.matchup-team-fallback {
  font-size: 0.7rem;
}

.matchup-subdetail {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  font-weight: normal;
}

.host-grid-table th:not(.matchup-header),
.host-grid-table td.pick-cell {
  width: 17.25%;
  padding: 0.45rem 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.host-predicted-score {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-top: 0.15rem;
}

.pick-correct {
 color: var(--success) !important; font-weight: 700;
}

.pick-incorrect {
  color: var(--danger) !important;
}

.pick-pending {
 color: var(--text-main);
}

.host-grid-table tr.live-game-row td {
  background: rgba(251, 191, 36, 0.15) !important;
  border-top: 1px solid rgba(251, 191, 36, 0.4) !important;
  border-bottom: 1px solid rgba(251, 191, 36, 0.4) !important;
}

@keyframes triple-perfect-glow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.triple-perfect-cell {
  position: relative;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(30, 41, 59, 0.9)) !important;
  border: 3px solid var(--accent-gold) !important;
}

.triple-perfect-cell::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 18px 6px rgba(251, 191, 36, 0.8);
  opacity: 0;
  animation: triple-perfect-glow 1.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.triple-perfect-content {
  position: relative;
  z-index: 1;
}

.triple-perfect-badge {
  display: block;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

.lock-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 900;
  font-family: 'Courier New', Consolas, monospace;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--bg-main);
  background: var(--accent-gold);
  padding: 0.02rem 0.3rem;
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.swing-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0 0.25rem;
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.path-chip {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  margin-left: 0.3rem;
  white-space: nowrap;
}

.path-chip.leader {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.path-line {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.4rem;
  border-left: 3px solid var(--accent-gold);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.path-line-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-gold);
  margin-bottom: 0.15rem;
}

.lock-badge-compact {
  display: block;
  width: fit-content;
  margin: 0.15rem auto 0;
  font-size: 0.55rem;
  padding: 0.01rem 0.25rem;
}

.lotw-hit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.62rem;
  font-weight: 900;
  color: #0f172a;
  background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 100%);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.45rem;
  border: 1px solid #fde68a;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(251, 191, 36, 0.3);
}

.lotw-check {
  color: #15803d;
  font-weight: 900;
  font-size: 0.7rem;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  margin-right: 0.5rem;
  background: var(--border-color);
  color: var(--text-main);
}

.rank-gold {
  background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 100%) !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.55);
  border: 1px solid #fde68a;
}

.rank-silver {
  background: linear-gradient(180deg, #f1f5f9 0%, #cbd5e1 100%) !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  box-shadow: 0 0 10px rgba(203, 213, 225, 0.45);
  border: 1px solid #ffffff;
}

.rank-bronze {
  background: linear-gradient(180deg, #fdba74 0%, #c2410c 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 0 10px rgba(194, 65, 12, 0.45);
  border: 1px solid #fed7aa;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.pulse-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.pulse-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.65rem 0.4rem;
  text-align: center;
}

.pulse-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.pulse-stat {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--accent-gold);
}

.pulse-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.cousin-item {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.cousin-header {
  padding: 0.8rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.cousin-picks-body {
  padding: 0.65rem 0.9rem 0.85rem;
  border-top: 1px solid var(--border-color);
  display: none;
}

.cousin-picks-body.open {
  display: block;
}

.pick-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.2rem 0;
}

.pick-line-matchup {
  color: var(--text-muted);
}

.btn-ctrl {
  background: var(--bg-card-alt);
  color: var(--text-main);
  border: 2px solid var(--accent-gold);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
}

.btn-ctrl:hover {
  background: #22314d;
  color: var(--text-main);
}

.cousin-search-input {
  width: 100%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
}

.cousin-search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.cousin-search-input::placeholder {
  color: var(--text-muted);
}

.btn-pick-logo-wrap {
  position: relative;
  display: block;
  width: 32px;
  margin: 0 auto 0.3rem;
}

.btn-pick-logo-wrap .btn-pick-logo {
  margin: 0;
}

.hub-action-row.hub-split {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.hub-group {
  display: flex;
  gap: 0.3rem;
}

.hub-group + .hub-group {
  margin-left: auto;
}

.hub-split .btn-ctrl {
  padding: 0.35rem 0.4rem;
  white-space: nowrap;
}

.hub-action-row.centered {
  justify-content: center;
}

.sched-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.sched-pick-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: #0e1728;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.55rem 0.3rem;
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.sched-pick-team:hover {
  border-color: var(--accent-gold);
}

.sched-pick-team.sec {
  color: var(--accent-gold);
}

.sched-pick-team img {
  height: 30px;
  width: 30px;
  object-fit: contain;
}

.sched-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0.6rem 0 0.1rem;
}

.entry-pill {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.btn-float-top, .btn-float-sport {
  position: fixed;
  right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 100;
  transition: all 0.15s ease;
}

.btn-float-top {
  bottom: 1.5rem;
}

/* The NFL / CFB pill is replaced by the menu at the top of the page. */
.btn-float-sport {
  display: none !important;
}

.btn-float-top:hover, .btn-float-sport:hover {
  background: var(--accent-gold);
  color: var(--bg-main);
}

.site-footer {
  margin-top: 2.5rem;
  padding: 1.5rem 1rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-container p {
  margin: 0;
}

.disclaimer {
  font-size: 0.75rem;
  opacity: 0.85;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent-gold-hover);
  text-decoration: underline;
}

.divider {
  color: var(--border-color);
}

.contact-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-note strong {
  color: var(--text-main);
}

/* ---- Game extras ---- */

.details-link {
  display: inline-block;
  margin-top: 0.35rem;
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.game-card .details-link {
  display: block;
  margin: 0.45rem auto 0;
}

.details-section {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.details-section:last-child {
  border-bottom: none;
}

.details-heading {
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.45rem;
}

.details-note {
  color: var(--text-main);
  font-size: 0.8rem;
  line-height: 1.4;
  padding-top: 0.4rem;
}

.details-team-block {
  padding: 0.3rem 0 0.5rem;
}

.injury-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  padding: 0.15rem 0 0.15rem 1.6rem;
}

.injury-status {
  color: var(--danger);
  font-weight: 700;
  white-space: nowrap;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.details-table th {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 0.2rem;
  text-align: center;
}

.details-table td {
  text-align: center;
  padding: 0.35rem 0.2rem;
  border-top: 1px solid var(--border-color);
}

.details-table td:first-child {
  text-align: left;
}

.details-table.stats td:first-child,
.details-table.stats td:last-child {
  width: 30%;
  text-align: center;
  font-weight: 800;
}

.details-total {
  font-weight: 900;
  color: var(--accent-gold);
}

.wp-wrap {
  position: relative;
}

.wp-chart {
  display: block;
  width: 100%;
  height: 90px;
  background: var(--bg-card-alt);
  border-radius: 6px;
}

.wp-line {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.wp-mid {
  stroke: var(--border-color);
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.wp-team {
  position: absolute;
  left: 0.4rem;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-muted);
}

.wp-team.top { top: 0.25rem; }
.wp-team.bottom { bottom: 0.25rem; }

.lock-countdown {
  position: sticky;
  top: 4.1rem;
  z-index: 50;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.lock-countdown strong {
  color: var(--accent-gold);
}

.lock-countdown.urgent {
  border-color: var(--danger);
}

/* ---- "Jump to me" and season breakdown ---- */

.search-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.search-row .cousin-search-input {
  flex: 1;
  min-width: 0;
}

.jump-note {
  font-size: 0.78rem;
  color: var(--text-main);
  margin-top: 0.4rem;
}

.cousin-item.me {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 8px;
}

.season-box {
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.season-weeks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.3rem 0;
}

.season-week {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  white-space: nowrap;
}

/* Grid matchup cell: bigger logos, one short line, then Details. */
.host-grid-table td.matchup-cell .matchup-logo-row {
  gap: 0.2rem;
}

.host-grid-table td.matchup-cell .matchup-team-logo {
  width: 36px;
  height: 36px;
}

.host-grid-table td.matchup-cell .matchup-subdetail {
  margin-top: 0.3rem;
  font-size: 0.62rem;
  white-space: nowrap;
}

.matchup-score-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.2rem;
}

.matchup-score {
  width: 36px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
}

.matchup-score.won {
  color: var(--accent-gold);
}

.matchup-status {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Game details popup: info rows, then tabs. */
.details-info {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
}

.details-info-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.5rem;
}

.details-info-label {
  color: var(--accent-gold);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding-top: 0.1rem;
}

.details-tabs {
  display: flex;
  gap: 0.3rem;
  margin: 0.75rem 0 0.5rem;
}

.details-tab {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem 0.2rem;
  background: var(--bg-card-alt);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.details-tab img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.details-tab.active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.details-pane .details-section:first-child {
  padding-top: 0.25rem;
}

.sched-record {
  margin-bottom: 0.4rem;
}

/* Makepicks: game details open inside the card. */
.card-details {
  margin-top: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  text-align: left;
}

.card-details .details-tabs {
  gap: 0.2rem;
}

.card-details .details-tab {
  padding: 0.4rem 0.1rem;
  font-size: 0.66rem;
  gap: 0.15rem;
}

.card-details .details-tab img {
  width: 14px;
  height: 14px;
}

.weather-chip {
  white-space: nowrap;
}

.weather-icon {
  margin-right: 0.2rem;
}

.dome-icon {
  width: 1.45em;
  height: 1em;
  margin-right: 0.25rem;
  vertical-align: -0.05em;
  color: var(--accent-gold);
}

/* ---- March Madness bracket ---- */

.bk-state {
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.bk-state a {
  color: var(--accent-gold);
  font-weight: 800;
}

.bk-count {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
}

a.btn-submit.bk-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  margin: 0 0 1rem;
}

.bk-progress {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.85rem;
  text-align: center;
}

.bk-progress strong {
  color: var(--accent-gold);
}

.bk-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -0.25rem 0.5rem;
  padding: 0.4rem 0.25rem;
  background: var(--bg-card);
}

.bk-tabs .details-tab {
  padding-left: 0.1rem;
  padding-right: 0.1rem;
  font-size: 0.7rem;
}

/* A region with every game picked. */
.bk-tabs .details-tab.done:not(.active) {
  border-color: var(--success);
  color: var(--success);
}

.bk-round {
  margin-bottom: 1rem;
}

.bk-round-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-gold);
  margin: 0.6rem 0 0.4rem;
}

.bk-round-title span {
  color: var(--text-muted);
  opacity: 0.7;
  font-weight: 600;
  margin-left: 0.3rem;
  text-transform: none;
  letter-spacing: 0;
}

.bk-matchup {
  display: grid;
  gap: 2px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.bk-choice {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.6rem;
  padding: 0.4rem 0.6rem;
  background: var(--bg-card-alt);
  color: var(--text-main);
  border: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.bk-choice.selected {
  background: var(--accent-gold);
  color: #0a1120;
}

.bk-choice.selected .bk-seed {
  color: #0a1120;
  border-color: rgba(10, 17, 32, 0.4);
}

.bk-choice.empty {
  cursor: default;
  font-size: 0.75rem;
  opacity: 0.55;
  font-style: italic;
}

.bk-team {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.bk-team img,
.bk-logo-blank {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.bk-seed {
  min-width: 1.4rem;
  padding: 0 0.2rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  color: var(--accent-gold);
}

.bk-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bk-team.empty {
  opacity: 0.55;
  font-style: italic;
}

.bk-team.correct .bk-name {
  color: var(--success);
}

.bk-team.wrong .bk-name {
  color: var(--danger);
  text-decoration: line-through;
}

.bk-tiebreak-label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.bk-nav-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.bk-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-color);
}

.bk-pick-row:last-child {
  border-bottom: none;
}

.bk-actual {
  opacity: 0.75;
  font-size: 0.85em;
}

.bk-actual .bk-team {
  font-size: 0.78rem;
}

.bk-entry-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.bk-entry-name {
  font-weight: 700;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bk-entry-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.bk-points {
  color: var(--accent-gold);
  font-weight: 900;
  font-size: 1rem;
}

.bk-max {
  font-size: 0.65rem;
  opacity: 0.7;
}

.bk-entry-summary {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
}

.bk-champ {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bk-round-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.bk-round-chip {
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.bk-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bk-name-chip {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.cousin-picks-body .bk-tabs {
  background: var(--bg-card-alt);
}

.bk-round-chip b {
  color: var(--accent-gold);
  font-weight: 800;
  margin-right: 0.15rem;
}

/* Series History box in game details. */
.series-box {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
}

.series-heading {
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.series-line {
  color: var(--text-main);
  font-size: 0.85rem;
  line-height: 1.5;
}

.series-label {
  font-weight: 700;
}

.series-counts {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.series-side,
.series-ties {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.series-side img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  align-self: center;
}

.series-side.right {
  flex-direction: row-reverse;
}

.series-wins {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.series-wins-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.75;
}

.series-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border-color);
  margin-bottom: 0.5rem;
}

.series-bar span {
  display: block;
  height: 100%;
}

.series-bar-ties {
  background: #94a3b8;
}

.series-note {
  margin: -0.2rem 0 0.4rem;
  font-size: 0.72rem;
  font-style: italic;
  opacity: 0.75;
}

/* "This Matchup on the Pod" episode links in game details. */
.pod-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
}

.pod-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-gold);
}

.pod-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0;
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
}

.pod-time {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-gold);
}

.yt-icon {
  width: 1.4em;
  height: 1em;
}

/* Week Info Hub: links to that week's full pod episodes. */
.week-pod-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

.week-pod-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
}

.week-pod-links .yt-icon {
  flex-shrink: 0;
}

/* Game details: both teams' schedules side by side. */
.sched-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.sched-col-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.35rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid var(--border-color);
}

.sched-col-head img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  flex-shrink: 0;
}

.sched-col-lines {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}

.mini-sched-row {
  display: grid;
  grid-template-columns: 2.8em minmax(0, 1fr) auto;
  gap: 0.3rem;
  align-items: baseline;
  padding: 0.22rem 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  font-size: 0.78rem;
  white-space: nowrap;
}

.mini-sched-row .d {
  opacity: 0.7;
}

.mini-sched-row .o {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-sched-row .r {
  font-size: 0.72rem;
  opacity: 0.7;
}

.mini-sched-row .r b {
  font-size: 0.78rem;
}

.mini-sched-row .r:has(b) {
  opacity: 1;
}

.mini-sched-row b.win {
  color: var(--success);
}

.mini-sched-row b.loss {
  color: var(--danger);
}

.mini-sched-row.bye .o {
  font-weight: 600;
  opacity: 0.6;
}

.mini-sched-row.now {
  padding-left: 4px;
  background: rgba(251, 191, 36, 0.12);
  box-shadow: inset 3px 0 var(--accent-gold);
}

/* Game details: national stat ranks, side by side. */
.stat-ranks {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* Each half's header: logo with Offense or Defense under it, centered over
   that side's football and rank. */
.stat-rank-row.stat-rank-head {
  align-items: end;
  margin-bottom: 0.2rem;
}

.stat-side {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--accent-gold);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-side img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.stat-rank-title {
  align-self: center;
  text-align: center;
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-rank-row + .stat-rank-head {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-color);
}

/* Game details: the schedules, set off by a faint line like the other sections. */
.sched-box {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
}

.stat-rank-row {
  display: grid;
  grid-template-columns: 1.2rem 3.1rem minmax(0, 1fr) 3.1rem 1.2rem;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0;
}

.stat-rank-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-rank {
  padding: 0.12rem 0;
  border-radius: 5px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

.stat-rank.good {
  background: #16a34a;
}

.stat-rank.ok {
  background: #4d8f74;
}

.stat-rank.bad {
  background: #dc2626;
}

.stat-rank.none {
  background: var(--border-color);
}

.football-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

/* A little tighter inside the box so "Unranked Nationally" fits. */
.sched-box .sched-pair {
  gap: 0.6rem;
}

.sched-box .sched-col-head {
  gap: 0.4rem;
}

.sched-box .sched-col-head img {
  width: 2rem;
  height: 2rem;
}

.sched-box .sched-col-lines {
  font-size: 0.72rem;
}

/* Makepicks shows details inside a narrower card. */
.page-makepicks .sched-box {
  padding: 0.6rem 0;
}

.page-makepicks .sched-box .sched-col-head img {
  width: 1.6rem;
  height: 1.6rem;
}

.page-makepicks .sched-box .sched-col-lines {
  font-size: 0.68rem;
}

/* Stat Rankings rows styled after the show's graphic: a light band with
   blue text for offense, a dark band with orange text for defense, and
   arrow-ended rank tags pointing outward. */
.stat-ranks .stat-rank-row:not(.stat-rank-head) {
  gap: 0;
  padding: 0.12rem 0;
}

.stat-ranks .stat-ball {
  display: flex;
  justify-content: center;
}

.stat-rank-row.off .stat-rank-label,
.stat-rank-row.def .stat-rank-label {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.stat-rank-row.off .stat-rank-label {
  background: #f4f6f8;
  color: #1e7fd8;
}

.stat-rank-row.def .stat-rank-label {
  background: #3b3f46;
  color: #f7931e;
}

.stat-ranks .stat-rank {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-size: 0.86rem;
  font-weight: 900;
  font-style: italic;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.stat-ranks .stat-rank.left {
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%);
  padding-left: 0.3rem;
}

.stat-ranks .stat-rank.right {
  clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%);
  padding-right: 0.3rem;
}

.stat-ranks .stat-rank.good {
  background: #1f9d55;
}

.stat-ranks .stat-rank.ok {
  background: #4fae86;
}

.stat-ranks .stat-rank.bad {
  background: #e23b3b;
}

/* A faint white glow around team logos so dark ones (LSU, A&M, OU, Miss
   State) stand out from the dark background. */
.matchup-team-logo,
.btn-pick-logo,
.nfl-logo,
.info-team img,
.top25-team img,
.series-counts img,
.stat-side img,
.sched-col-head img,
.sched-pick-team img,
.team-sched-header img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

/* The site menu pinned to the top of every page. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  gap: 0.35rem;
  margin: -1.5rem -1rem 1rem;
  padding: 0.45rem 1rem;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.site-nav a {
  flex: 1;
  padding: 0.45rem 0.3rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  align-items: center;
}

.site-nav a:not(.main) {
  font-size: 0.72rem;
  padding: 0.35rem 0.25rem;
}

.site-nav a.main {
  flex: 1.35;
  font-size: 0.85rem;
}

.site-nav a.active {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  color: var(--bg-main);
}

/* NFL pages: a small logo before each team name. */
.nfl-matchup {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.nfl-logo {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
  flex-shrink: 0;
}

.pick-line .nfl-logo {
  width: 1.4rem;
  height: 1.4rem;
}

/* NFL schedule: no host columns, so each game is centered in its row. */
#scheduleList .schedule-row {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

#scheduleList .nfl-matchup {
  justify-content: center;
}

.nfl-vs {
  margin: 0 0.15rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Game details opened in a row under the game on the main page. */
.host-grid-table tr.details-open > td {
  border-bottom-color: transparent;
}

.host-grid-table tr.inline-details-row > td {
  padding: 0.5rem 0.6rem 0.75rem;
  text-align: left;
  background: var(--bg-card);
  border-bottom: 2px solid var(--accent-gold);
}

/* An opened game and its details get one gold box around them, so it's
   clear where each game starts and ends. Drawn with inset shadows so the
   columns don't shift when it opens. */
.host-grid-table tr.details-open > td {
  box-shadow: inset 0 2px 0 var(--accent-gold);
}

.host-grid-table tr.details-open > td:first-child {
  box-shadow: inset 0 2px 0 var(--accent-gold), inset 2px 0 0 var(--accent-gold);
}

.host-grid-table tr.details-open > td:last-child {
  box-shadow: inset 0 2px 0 var(--accent-gold), inset -2px 0 0 var(--accent-gold);
}

.host-grid-table tr.inline-details-row > td {
  box-shadow: inset 2px 0 0 var(--accent-gold), inset -2px 0 0 var(--accent-gold);
}

.host-grid-table .inline-details th,
.host-grid-table .inline-details td {
  border-right: none;
  vertical-align: middle;
}

.inline-details-close {
  display: block;
  margin: 0.5rem auto 0;
}

/* Season stats popup for a host or the Cousins. */
.host-season-card .details-link {
  margin-top: 0.25rem;
}

.entrant-record {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-gold);
  text-align: center;
  margin: 0.2rem 0 0.6rem;
}

/* ---- Sign-in page ---- */
.signin-card {
  display: flex;
  flex-direction: column;
}

.signin-card .form-field,
.signin-card input[type="password"].form-field {
  margin-bottom: 0.6rem;
}

.btn-provider {
  width: 100%;
  background: var(--bg-card-alt);
  color: var(--text-main);
  border: 2px solid var(--accent-gold);
  border-radius: 10px;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 0.6rem;
}

.signin-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.6rem 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signin-divider::before,
.signin-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border-color);
}

.signin-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.signin-buttons .btn-submit {
  margin-top: 0.2rem;
  text-align: center;
  text-decoration: none;
}

.signin-buttons .btn-provider {
  margin-bottom: 0;
}

.signin-forgot {
  display: block;
  margin: 0.8rem auto 0;
}

/* The name on a picks page comes from the account. */
.form-field[readonly] {
  opacity: 0.75;
  cursor: default;
}

.signin-label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.signin-note {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-main);
  margin: 0.3rem 0 0.4rem;
}

.signin-note strong {
  color: var(--accent-gold);
}

.signin-help {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}

.signin-help a,
.name-reminder a {
  color: var(--accent-gold);
}

/* ---- Privacy page ---- */
.privacy-text {
  font-size: 0.9rem;
  line-height: 1.55;
}

.privacy-text h2 {
  color: var(--accent-gold);
  font-size: 1rem;
  margin: 1.1rem 0 0.4rem;
}

.privacy-text p,
.privacy-text li {
  margin-bottom: 0.5rem;
}

.privacy-text ul {
  padding-left: 1.2rem;
}

.privacy-text a {
  color: var(--accent-gold);
}

/* Who's signed in, on its own line inside the pinned menu. */
.site-nav:has(.account-bar) {
  flex-wrap: wrap;
  row-gap: 0.2rem;
  padding-bottom: 0.3rem;
}

.account-bar {
  flex-basis: 100%;
  min-height: 1rem;
  line-height: 1rem;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.account-bar strong {
  color: var(--text-main);
}

.account-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-gold);
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ---- Favorite team logos and weekly titles ---- */
.fav-logo {
  width: 1.27rem;
  height: 1.27rem;
  object-fit: contain;
  vertical-align: -0.25rem;
  /* Logos sit to the left of names everywhere. */
  margin: 0 0.3rem 0 0;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

.account-bar .fav-logo {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0 0.25rem 0 0;
  vertical-align: -0.2rem;
}

.champ-chip {
  display: inline-block;
  margin-left: 0.25rem;
  color: var(--accent-gold);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  vertical-align: 0.05rem;
}

.site-nav a.account-name {
  flex: none;
  display: inline;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.account-name:hover strong {
  text-decoration: underline;
}

/* Last week's champions: a full-width card under the week's stat cards,
   matching them. */
.champion-line {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.6rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
}

.champion-line .pulse-stat {
  margin-bottom: 0.35rem;
}

.champion-line-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.8rem;
  font-size: 0.75rem;
  color: var(--text-main);
}

.champion-line-names span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* The signed-in player's own card, pinned to the top of the list. */
.cousin-item.pinned-me {
  margin-bottom: 1.1rem;
  border-color: var(--accent-gold);
}

/* ---- Account page: favorite team pickers ---- */
.fav-section {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
}

.fav-section:last-child {
  border-bottom: none;
}

.fav-sport {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
}

.fav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.fav-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.fav-current-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

.fav-none {
  color: var(--text-muted);
}

.fav-actions {
  display: flex;
  gap: 0.3rem;
}

.fav-conf {
  margin: 0.8rem 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr));
  gap: 0.35rem;
}

.fav-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.2rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
}

.fav-team:hover {
  border-color: var(--accent-gold);
}

.fav-team img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

.fav-team span {
  text-align: center;
  line-height: 1.15;
}

.fav-more {
  display: block;
  margin: 0.9rem auto 0;
}

.fav-others {
  display: none;
}

.fav-others.open {
  display: block;
}

.fav-continue {
  display: block;
  text-align: center;
  text-decoration: none;
}

.signin-account-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

/* ---- Contact box: sign-in page and footer ---- */
.contact-box {
  text-align: center;
}

.contact-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.7rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--accent-gold);
  border-radius: 8px;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.contact-link:hover {
  background: var(--accent-gold);
  color: var(--bg-main);
}

.contact-open {
  max-width: 260px;
  margin: 0.8rem auto 0;
  display: block;
}

.contact-modal {
  max-width: 460px;
}

.contact-body {
  padding: 1rem;
  overflow-y: auto;
}

.contact-ways {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.contact-ways p {
  margin: 0 0 0.3rem;
}

.contact-ways ul {
  margin: 0;
  padding-left: 1.2rem;
}

.contact-ways li {
  margin-bottom: 0.25rem;
}

.contact-ways a {
  color: var(--accent-gold);
  font-weight: 700;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.contact-label {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-top: 0.4rem;
}

.contact-label small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-form textarea.form-field {
  resize: vertical;
  font-family: inherit;
  min-height: 9rem;
}

.contact-form .btn-submit {
  margin-top: 0.6rem;
}

.contact-status a {
  color: var(--accent-gold);
}

.contact-status {
  font-size: 0.85rem;
  text-align: center;
}

/* Hidden from people; bots that fill every box get ignored. */
.contact-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.footer-contact {
  max-width: 460px;
  width: 100%;
  margin: 0.25rem auto 0;
}

.footer-contact .contact-heading {
  font-size: 0.9rem;
}

/* Weeks won and "N back", at the top of an opened card. */
.card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.card-badges .champ-chip {
  margin-left: 0;
  font-size: 0.8rem;
}

/* The favorite logo sits between the rank bubble and the name. */
.cousin-header .rank-badge + .fav-logo {
  margin: 0 0.15rem;
}

/* Team logo inside a fan stat card. */
.pulse-logo {
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  margin: 0.15rem auto 0.2rem;
}

/* ---- Rankings tabs in the Week Info Hub ---- */
/* Each Info Hub subheading sits as far below the section above it as
   "On the Pod" sits below the Info Hub title. */
.hub-rankings {
  margin-top: 1.1rem;
}

.hub-rankings-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.hub-games-title {
  margin-top: 1.1rem;
}

/* Rankings, Your Team, Week N Games: 2pt under the Info Hub title. */
.hub-sub-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
}

.rank-tabs {
  display: flex;
  gap: 0.3rem;
}

/* The tabs use .btn-ctrl, like Expand All; the open one fills gold. */
.rank-tab.active {
  background: var(--accent-gold);
  color: var(--bg-main);
}

.rankings-panel {
  margin-top: 0.6rem;
  padding: 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card-alt);
}

.rankings-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.4rem;
}

.cfp-table .top25-rank {
  width: 2rem;
}

.top25-record {
  width: 3.5rem;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.72rem;
}

/* No episodes this week: Rankings comes right under the title, at the
   same distance "On the Pod" would be. */
.week-pod-links[style*="none"] + .hub-rankings {
  margin-top: 0.6rem;
}

/* ---- Projected playoff bracket (Info Hub > Playoffs) ---- */
.bk-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.3rem;
}

.bk-heads,
.bk-grid {
  display: grid;
  grid-template-columns: 128px 14px 128px 14px 118px 14px 118px;
  min-width: 534px;
}

.bk-heads span {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  text-align: center;
  padding-bottom: 0.35rem;
}

.bk-grid {
  grid-template-rows: repeat(8, 34px);
}

.bk-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bk-r1 { grid-column: 1; }
.bk-qf { grid-column: 3; }
.bk-sf { grid-column: 5; }
.bk-final { grid-column: 7; }

.bk-game {
  border: 1px solid var(--accent-gold);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
}

.bk-team {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  height: 24px;
  padding: 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
}

.bk-team + .bk-team {
  border-top: 1px solid var(--border-color);
}

.bk-team.sec .bk-name {
  color: var(--accent-gold);
}

.bk-team.empty {
  background: var(--bg-card-alt);
}

.bk-seed {
  flex: 0 0 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--bg-main);
  color: var(--accent-gold);
  font-size: 0.62rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bk-team.empty .bk-seed {
  background: transparent;
}

.bk-team img,
.bk-logo-gap {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.bk-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Lines between rounds. */
.bk-stub {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid var(--accent-gold);
}

.bk-join {
  position: absolute;
  left: 0;
  width: 50%;
  top: 25%;
  bottom: 25%;
  border: 2px solid var(--accent-gold);
  border-left: none;
  border-radius: 0 4px 4px 0;
}

.bk-join::after {
  content: "";
  position: absolute;
  left: 100%;
  width: 100%;
  top: 50%;
  border-top: 2px solid var(--accent-gold);
}

.bk-trophy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(50% + 30px);
  text-align: center;
  font-size: 1.4rem;
}

.bk-final .bk-game {
  border-width: 2px;
}

.bk-outs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.bk-out {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text-main);
}

.bk-out span {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.bk-note {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

/* Logos only: the whole bracket fits a phone's width, no sideways scroll. */
.bk-logos .bk-heads,
.bk-logos .bk-grid {
  grid-template-columns: 1fr 10px 1fr 10px 1fr 10px 1fr;
  min-width: 0;
}

.bk-logos .bk-grid {
  grid-template-rows: repeat(8, 36px);
}

.bk-logos .bk-name {
  display: none;
}

.bk-logos .bk-team {
  justify-content: center;
  gap: 0.35rem;
  height: 26px;
}

.bk-logos .bk-team img,
.bk-logos .bk-logo-gap {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

/* SEC teams: gold seed instead of gold name. */
.bk-logos .bk-team.sec .bk-seed {
  background: var(--accent-gold);
  color: var(--bg-main);
}

/* Same soft white glow as the favorite-team logos, so dark logos show
   up on the dark boxes. */
.bk-team img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

/* ---- Favorite team pop-up (leaderboard pages) ---- */
.fav-prompt-modal {
  max-width: 520px;
}

.fav-prompt-body {
  padding: 1rem;
  overflow-y: auto;
}

.fav-prompt-text {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.fav-prompt-status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  text-align: center;
}

.fav-prompt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}

/* NFL schedule: a finished game shows FINAL on top and each team's score
   big under it. The loser's score is dimmed. */
.final-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
}

.final-matchup {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.final-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 7rem;
}

.final-score {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-main);
  opacity: 0.45;
}

.final-side.won .final-score {
  opacity: 1;
}

/* ---- Your Team (Info Hub) ---- */
.hub-my-team {
  margin-top: 1.1rem;
}

.my-team-card {
  margin-top: 0.4rem;
  padding: 0.7rem 0.8rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.my-team-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.my-team-logo {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

.my-team-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
}

.my-team-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.my-team-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-main);
}

.my-team-row.live {
  color: var(--accent-gold);
}

.my-team-tag {
  flex: 0 0 2.6rem;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
}

.my-team-opp {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-weight: 700;
}

.my-team-opp img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
}

.my-team-opp span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-team-result {
  font-weight: 800;
  white-space: nowrap;
}

.my-team-result.win { color: var(--success); }
.my-team-result.loss { color: var(--danger); }

.my-team-extra {
  padding: 0 0 0.35rem 3.1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.my-team-btn {
  margin-top: 0.5rem;
}

/* Their team's games: a stripe on the left in the team's two colors
   (common.js sets --fav-1 and --fav-2). The gold box is only for live games. */
.host-grid-table tr.fav-game > td.matchup-cell,
.schedule-row.fav-game,
.hoops-game.fav-game {
  box-shadow: inset 4px 0 0 var(--fav-1, var(--accent-gold)), inset 8px 0 0 var(--fav-2, var(--accent-gold));
}

/* Season record chip at the top of an opened card. */
.card-badges .season-chip {
  margin-left: 0;
  color: var(--text-main);
  border-color: var(--accent-gold);
}

/* NFL: Your Team sits at the top of the schedule card. */
.nfl-my-team {
  margin: 0 0 1rem;
}

/* ---- Logo tiles ----
   Team logos as rounded squares in the team's color (common.js sets the
   color and padding). Replaces the white glow. */
img.logo-tile {
  box-sizing: border-box;
  object-fit: contain;
  border-radius: 18%;
  filter: none !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 1px 3px rgba(0, 0, 0, 0.45);
}

img.logo-tile {
  aspect-ratio: 1 / 1;
}

/* "Rest of the Top 25" under the playoff bracket. */
.bk-rest-title {
  margin: 1.1rem 0 0.4rem;
}

/* Rest of the Top 25: the bracket's rank-and-logo boxes, wrapped in rows. */
.rank-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 0.5rem;
}

.rank-tiles .bk-game {
  border: none;
  background: none;
}

/* Season podium rows: every name at that place on the badge's line. */
.podium-row {
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.podium-names {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.85rem;
}

.podium-name {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.podium-record {
  flex-shrink: 0;
  margin-left: 0.5rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.podium-row .rank-badge {
  flex-shrink: 0;
}

/* Your Team: the Team Schedule graphic, full card width. */
.my-team-graphic {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 0.75rem;
  border-radius: 8px;
  background: #000;
}

/* Your Team: stat ranks on the left, player leaders beside them. */
.my-team-stats {
  display: flex;
  /* Leaders sit as far right as they fit, still left-aligned inside. */
  justify-content: space-between;
  gap: 0 0.9rem;
  align-items: flex-start;
  margin-top: 0.8rem;
}

.my-team-col {
  flex: 0 1 auto;
  min-width: 0;
}

.my-team-col:first-child {
  flex: none;
}

.my-team-sub {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.my-stat-grid {
  display: grid;
  grid-template-columns: auto 2.5rem 2.5rem;
  align-items: center;
  gap: 0.5rem 0.3rem;
}

.my-stat-grid .stat-rank {
  font-size: 0.72rem;
}

.my-stat-label {
  padding-right: 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.my-stat-head {
  font-size: 0.6rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-muted);
}

.my-leader {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0;
  border-top: 1px solid var(--border-color);
  line-height: 1.2;
}

.my-leader-cat {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.my-leader-name {
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.my-leader-stat span {
  white-space: nowrap;
}

.my-leader-stat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Rest of the Top 25 stays at the old small size. */
.hub-sub-title.bk-rest-title {
  font-size: 0.75rem;
}

/* ---- Host Picks portal: every host in each game's box ---- */
.hp-page {
  padding-bottom: 2rem;
}

.hp-game {
  margin-bottom: 0.9rem;
  padding: 0.8rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card-alt);
}

.hp-grid {
  display: grid;
  grid-template-columns: 3.6rem 1fr 1fr 2.2rem;
  align-items: center;
  gap: 0.45rem 0.5rem;
}

.hp-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.hp-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hp-team-name {
  max-width: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-host {
  font-size: 0.85rem;
  font-weight: 700;
}

.hp-lock-head {
  font-size: 0.6rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hp-score {
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.2rem;
  font-size: 1.05rem;
}

/* The higher score is the host's pick. */
.hp-score.picked {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px var(--accent-gold);
}

.hp-lock {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.hp-lock.active {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  color: var(--bg-main);
}

/* Save bar pinned to the bottom of the screen. */
/* Pinned just under the site menu, so the phone keyboard never covers it.
   hostpicks.html sets "top" to the menu's real height. */
.hp-savebar {
  position: sticky;
  top: 4.1rem;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.hp-status {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
}

.hp-save {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0.7rem 1.6rem;
}

/* Picks page: a game added after the player's last picks. */
.new-game-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-gold);
  color: var(--bg-main);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

.game-card.is-new-game {
  border-color: var(--accent-gold);
}

/* Picks page: tournament games get a banner and a reminder checkbox. */
.tourney-banner {
  margin: 0.15rem 0 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: var(--accent-gold);
  color: var(--bg-main);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.tourney-remind {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.7rem 0 0.2rem;
  padding: 0.6rem 0.7rem;
  border: 1px dashed var(--accent-gold);
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.tourney-remind input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--accent-gold);
}

.tourney-remind-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* After ticking: green when saved, red if it failed. */
.tourney-remind-note.ok {
  color: var(--success);
  font-weight: 700;
}

.tourney-remind-note.err {
  color: var(--danger);
  font-weight: 700;
}

/* ---- Tournaments: one card per event, games by day ---- */
.hub-tourneys {
  margin-top: 0.8rem;
}

.tourney-card {
  margin-bottom: 0.55rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card-alt);
  overflow: hidden;
}

.tourney-card summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1rem 0.6rem;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  list-style: none;
}

.tourney-card summary::-webkit-details-marker {
  display: none;
}

.tourney-card summary::after {
  content: "+";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--accent-gold);
  font-weight: 900;
  font-size: 1.1rem;
}

.tourney-card[open] summary::after {
  content: "−";
}

.tourney-card[open] summary {
  border-bottom: 1px solid var(--border-color);
}

.tc-title {
  color: var(--accent-gold);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tc-meta,
.tc-sec {
  grid-column: 1;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tc-sec {
  color: var(--text-main);
  font-weight: 700;
}

.tc-body {
  padding: 0.2rem 0.8rem 0.6rem;
}

.tg-day {
  margin: 0.6rem 0 0.25rem;
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tg-game {
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.3rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-main);
}

.tg-game.has-sec {
  border-color: rgba(251, 191, 36, 0.45);
}

.tg-game.live {
  border: 2px solid var(--accent-gold);
}

.tg-round {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tg-status {
  color: var(--text-main);
  text-transform: none;
  letter-spacing: 0;
}

.tg-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.tg-team {
  display: flex;
  align-items: center;
  min-width: 0;
}

.tg-team:first-child {
  justify-content: flex-end;
}

.tg-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-team.sec .tg-name {
  color: var(--accent-gold);
  font-weight: 800;
}

.tg-team.tbd .tg-name {
  color: var(--text-muted);
  font-style: italic;
}

.tg-score {
  margin-left: 0.35rem;
  font-weight: 800;
}

.tg-team.won .tg-score {
  color: var(--accent-gold);
}

.tg-vs {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.tg-empty {
  padding: 1rem 0;
  text-align: center;
  color: var(--text-muted);
}

.tourney-modal {
  max-width: 460px;
}

/* The picks page banner is a button that opens the event's card. */
button.tourney-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.tourney-banner-hint {
  font-size: 0.65rem;
  font-weight: 800;
  opacity: 0.75;
  text-transform: none;
  letter-spacing: 0;
}
