body {
  margin: 0;
  min-height: 100vh;
  background-image: url("../images/backgrounds/Stadium4.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'VT323', monospace;
  color: #222;
}

.page-overlay {
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.page-overlay.top-align {
  align-items: flex-start;
  padding-top: 36px;
  padding-bottom: 36px;
}

.pkmn-window {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: linear-gradient(to bottom, #f8f8f8 0%, #d8d8d8 100%);
  border: 4px solid #4a4a4a;
  border-radius: 10px;
  box-shadow:
    0 0 0 3px #ffffff inset,
    0 0 0 6px #9a9a9a inset,
    0 12px 30px rgba(0,0,0,0.45);
  padding: 20px;
  overflow: visible;
}

.pkmn-window.wide {
  max-width: 980px;
}

.corner-ball {
  position: absolute;
  width: 46px;
  height: 46px;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 5;
}

.corner-ball.top-left {
  top: -22px;
  left: -22px;
}

.corner-ball.top-right {
  top: -22px;
  right: -22px;
}

.corner-ball.bottom-left {
  bottom: -22px;
  left: -22px;
}

.corner-ball.bottom-right {
  bottom: -22px;
  right: -22px;
}

.pkmn-title-box,
.pkmn-status-box,
.pkmn-footer-note,
.pkmn-panel,
.pkmn-result-box,
.pkmn-card,
.empty-state {
  background: linear-gradient(to bottom, #fefefe 0%, #dcdcdc 100%);
  border: 3px solid #555;
  border-radius: 8px;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bdbdbd inset;
}

.pkmn-title-box {
  text-align: center;
  padding: 12px;
  margin-bottom: 18px;
}

.pkmn-title {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 1px;
}

.pkmn-subtitle {
  margin: 8px 0 0;
  font-size: 22px;
  color: #333;
}

.pkmn-status-box {
  text-align: center;
  padding: 10px;
  margin-bottom: 18px;
  font-size: 24px;
}

.pkmn-footer-note {
  text-align: center;
  font-size: 22px;
  color: #333;
  padding: 10px;
  margin-top: 14px;
}

.pkmn-form {
  display: grid;
  gap: 12px;
}

.pkmn-form.two-col {
  grid-template-columns: 1fr 1fr;
}

.pkmn-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pkmn-field.full {
  grid-column: 1 / -1;
}

.pkmn-label {
  font-size: 24px;
  color: #222;
}

.pkmn-input,
.pkmn-select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: #222;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fefefe 0%, #e1e1e1 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #c7c7c7 inset;
}

.pkmn-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.pkmn-menu.single {
  grid-template-columns: 1fr;
}

.pkmn-button,
.pkmn-button-link {
  font-family: 'VT323', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  text-decoration: none;
  color: #222;
  font-size: 30px;
  background: linear-gradient(to bottom, #f7f7f7 0%, #d2d2d2 100%);
  border: 3px solid #555;
  border-radius: 10px;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bcbcbc inset;
  cursor: pointer;
  transition: transform 0.08s ease;
}

.pkmn-button:hover,
.pkmn-button-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(to bottom, #fff6cc 0%, #eadb95 100%);
}

.pkmn-button.secondary,
.pkmn-button-link.secondary {
  background: linear-gradient(to bottom, #ececec 0%, #cecece 100%);
}

.pkmn-button.danger {
  background: linear-gradient(to bottom, #f7dede 0%, #d7a8a8 100%);
}

.pkmn-button.small,
.pkmn-button-link.small {
  min-height: 54px;
  font-size: 24px;
  padding: 0 12px;
}

.pkmn-links-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.pkmn-panel {
  padding: 14px;
}

.pkmn-panel p {
  margin: 6px 0;
  font-size: 24px;
}

.pkmn-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.pkmn-checkbox-item {
  background: linear-gradient(to bottom, #f7f7f7 0%, #d2d2d2 100%);
  border: 3px solid #555;
  border-radius: 8px;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bcbcbc inset;
  padding: 8px 10px;
  font-size: 24px;
}

.pkmn-checkbox-item input {
  margin-right: 8px;
  transform: scale(1.1);
}

.pkmn-result-box {
  padding: 16px;
  margin-top: 18px;
}

.hidden {
  display: none;
}

.small-note {
  font-size: 22px;
  color: #333;
  line-height: 1.35;
}

.create-league-eyebrow {
  margin: 0 0 8px;
  font-size: 22px;
  color: #333;
  text-align: center;
}

.league-code-box {
  margin: 14px 0;
  padding: 14px;
  text-align: center;
  background: linear-gradient(to bottom, #fefefe 0%, #dcdcdc 100%);
  border: 3px solid #555;
  border-radius: 8px;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bdbdbd inset;
}

.league-code-box span {
  display: block;
  font-size: 22px;
}

.league-code-box strong {
  display: block;
  margin-top: 4px;
  font-size: 34px;
  letter-spacing: 2px;
}

.created-teams-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 22px;
}

.created-teams-table th,
.created-teams-table td {
  border: 2px solid #666;
  padding: 8px 10px;
  text-align: left;
  background: rgba(255,255,255,0.45);
}

.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 2px solid #555;
  border-radius: 6px;
  background: #eadb95;
  font-size: 20px;
}

.top-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.league-list {
  display: grid;
  gap: 16px;
}

.pkmn-card {
  padding: 16px;
}

.pkmn-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.pkmn-card p {
  margin: 6px 0;
  font-size: 24px;
}

.league-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.empty-state {
  padding: 18px;
  text-align: center;
}

.empty-state p {
  margin: 0 0 12px;
  font-size: 24px;
}

.auth-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.auth-links a {
  text-align: center;
  text-decoration: none;
  color: #222;
  font-size: 24px;
}

.auth-links a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .pkmn-menu,
  .pkmn-form.two-col {
    grid-template-columns: 1fr;
  }

  .pkmn-title {
    font-size: 34px;
  }

  .pkmn-button,
  .pkmn-button-link {
    font-size: 26px;
  }

  .pkmn-input,
  .pkmn-select,
  .pkmn-label,
  .pkmn-panel p,
  .pkmn-card p,
  .small-note,
  .empty-state p {
    font-size: 22px;
  }
}

/* Make auth page buttons fill the menu width */

#createAccountButton,
#signInButton {
  width: 100%;
  min-height: 78px;
  font-size: 32px;
}

.auth-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.auth-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: #222;
  font-family: 'VT323', monospace;
  font-size: 28px;
  background: linear-gradient(to bottom, #f7f7f7 0%, #d2d2d2 100%);
  border: 3px solid #555;
  border-radius: 10px;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bcbcbc inset;
}

.auth-links a:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: linear-gradient(to bottom, #fff6cc 0%, #eadb95 100%);
}


/* Fix full-width Sign Out button on account page */

#signOutButton {
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 72px !important;
  margin-top: 14px !important;
  margin-bottom: 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-family: 'VT323', monospace !important;
  font-size: 30px !important;
  color: #222 !important;

  background: linear-gradient(to bottom, #f7dede 0%, #d7a8a8 100%) !important;
  border: 3px solid #555 !important;
  border-radius: 10px !important;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bcbcbc inset !important;

  appearance: none !important;
  -webkit-appearance: none !important;
}


/* Team email assignment fields */

.team-email-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.team-email-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
}

.team-email-row span {
  font-size: 24px;
}

.team-email-row input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #222;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fefefe 0%, #e1e1e1 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #c7c7c7 inset;
}


/* Manage League */

.team-manager-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.team-manager-row {
  display: grid;
  grid-template-columns: 95px 1fr 1.5fr 120px;
  gap: 10px;
  align-items: center;
  background: linear-gradient(to bottom, #fefefe 0%, #dcdcdc 100%);
  border: 3px solid #555;
  border-radius: 8px;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bdbdbd inset;
  padding: 10px;
}

.team-manager-row span {
  font-size: 24px;
}

.team-manager-row input[type="text"],
.team-manager-row input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #222;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fefefe 0%, #e1e1e1 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #c7c7c7 inset;
}

.team-admin-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
}

@media (max-width: 850px) {
  .team-manager-row {
    grid-template-columns: 1fr;
  }
}


/* Team Info Page */

.team-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.team-info-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  background: linear-gradient(to bottom, #fefefe 0%, #dcdcdc 100%);
  border: 3px solid #555;
  border-radius: 8px;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bdbdbd inset;
  padding: 12px;
}

.team-number-badge {
  width: 56px;
  height: 56px;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fff6cc 0%, #eadb95 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #d6c47d inset;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.team-info-main h2 {
  margin: 0 0 6px;
  font-size: 30px;
}

.team-info-main p {
  margin: 4px 0;
  font-size: 23px;
}

.team-role-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 2px solid #555;
  border-radius: 6px;
  background: #e5e5e5;
  font-size: 20px;
}

@media (max-width: 650px) {
  .team-info-card {
    grid-template-columns: 1fr;
  }

  .team-number-badge {
    width: 100%;
  }
}


/* Editable Team Info */

.editable-team-card {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.team-info-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-info-logo,
.team-info-logo-placeholder {
  width: 76px;
  height: 76px;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fefefe 0%, #dcdcdc 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bdbdbd inset;
}

.team-info-logo {
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}

.team-info-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.team-edit-form {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.team-edit-form label {
  font-size: 22px;
}

.team-edit-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #222;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fefefe 0%, #e1e1e1 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #c7c7c7 inset;
}

.team-locked-record {
  font-size: 22px;
}

.team-locked-record span {
  color: #555;
  font-size: 20px;
}

.team-readonly-info p {
  font-size: 23px;
}

.save-team-button {
  width: 100%;
  margin-top: 8px;
}


/* Draft Room */

.draft-controls-panel {
  margin-top: 16px;
}

.draft-pick-form {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.draft-room-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin: 16px 0;
}

.draft-picks-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.draft-pick-row {
  display: grid;
  grid-template-columns: 55px 70px 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #f7f7f7 0%, #d2d2d2 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bcbcbc inset;
  font-size: 22px;
}

.draft-team-rosters {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.draft-roster-team {
  padding: 10px;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #f7f7f7 0%, #d2d2d2 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bcbcbc inset;
}

.draft-roster-team h3 {
  margin: 0 0 4px;
  font-size: 26px;
}

.draft-roster-team p {
  margin: 0 0 8px;
  font-size: 21px;
}

.draft-roster-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.draft-roster-pills span,
.draft-empty-pill {
  display: inline-block;
  padding: 3px 8px;
  border: 2px solid #555;
  border-radius: 6px;
  background: #fefefe;
  font-size: 19px;
}

.draft-available-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.draft-pokemon-card {
  font-family: 'VT323', monospace;
  color: #222;
  text-align: center;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #f7f7f7 0%, #d2d2d2 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bcbcbc inset;
  padding: 10px;
  cursor: pointer;
}

.draft-pokemon-card:hover {
  background: linear-gradient(to bottom, #fff6cc 0%, #eadb95 100%);
}

.draft-pokemon-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.draft-pokemon-card span {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.draft-pokemon-card small {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

@media (max-width: 900px) {
  .draft-pick-form,
  .draft-room-grid {
    grid-template-columns: 1fr;
  }

  .draft-pick-row {
    grid-template-columns: 1fr;
  }
}


/* Draft order + timer */

.draft-timer-box {
  background: linear-gradient(to bottom, #fff6cc 0%, #eadb95 100%);
  border: 3px solid #555;
  border-radius: 8px;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #d6c47d inset;
  padding: 14px;
  margin-bottom: 16px;
  text-align: center;
}

.draft-timer-box p {
  margin: 4px 0;
  font-size: 28px;
}

#draftClockLine {
  font-size: 36px;
}

.draft-order-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.draft-order-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  align-items: center;
}

.draft-order-row span {
  font-size: 22px;
}

.draft-order-row select {
  font-size: 22px;
  padding: 8px 10px;
}

.draft-admin-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 850px) {
  .draft-admin-buttons,
  .draft-pick-form {
    grid-template-columns: 1fr;
  }
}


/* Delete League */

.danger-zone {
  margin-top: 18px;
  background: linear-gradient(to bottom, #f7dede 0%, #d7a8a8 100%);
}

.delete-league-row {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

@media (max-width: 800px) {
  .delete-league-row {
    grid-template-columns: 1fr;
  }
}


/* Division Management */

.division-editor {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.division-name-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  align-items: center;
}

.division-name-row span {
  font-size: 24px;
}

.division-name-row input,
.team-division-select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #222;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fefefe 0%, #e1e1e1 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #c7c7c7 inset;
}

.team-manager-row {
  grid-template-columns: 85px 1fr 1.3fr 1fr 110px;
}

@media (max-width: 900px) {
  .division-name-row,
  .team-manager-row {
    grid-template-columns: 1fr;
  }
}


/* ===== Manage League themed form styling ===== */

.manage-section-title {
  font-size: 34px;
  margin-bottom: 10px;
}

.manage-section-note {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 14px;
}

.division-editor {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.division-name-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
}

.division-name-row span {
  font-size: 28px;
}

.pkmn-input,
.pkmn-select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: #222;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fefefe 0%, #e6e6e6 100%);
  box-shadow:
    0 0 0 2px #ffffff inset,
    0 0 0 4px #c7c7c7 inset;
}

.pkmn-input:focus,
.pkmn-select:focus {
  outline: none;
  border-color: #3d6fd6;
  box-shadow:
    0 0 0 2px #ffffff inset,
    0 0 0 4px #c7c7c7 inset,
    0 0 0 3px rgba(61, 111, 214, 0.25);
}

.team-manager-row {
  display: grid;
  grid-template-columns: 100px 1.2fr 1.5fr 180px 110px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin-top: 14px;
  border: 4px solid #6b6b6b;
  border-radius: 10px;
  background: linear-gradient(to bottom, #efefef 0%, #dcdcdc 100%);
  box-shadow:
    0 0 0 2px #ffffff inset,
    0 0 0 5px #bcbcbc inset;
}

.team-row-label {
  font-size: 30px;
  font-weight: 700;
}

.team-admin-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
}

.team-admin-toggle input {
  width: 18px;
  height: 18px;
}

.small-note {
  font-size: 22px;
  line-height: 1.35;
}

@media (max-width: 1050px) {
  .team-manager-row {
    grid-template-columns: 1fr;
  }

  .division-name-row {
    grid-template-columns: 1fr;
  }
}


/* Standings Page */

.standings-content {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.standings-board {
  overflow: hidden;
  border: 4px solid #333;
  border-radius: 10px;
  background: linear-gradient(to bottom, #151515 0%, #050505 100%);
  box-shadow:
    0 0 0 2px #777 inset,
    0 0 0 5px #111 inset,
    0 10px 24px rgba(0, 0, 0, 0.35);
}

.standings-division-title {
  padding: 14px 18px;
  color: white;
  font-size: 40px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #111 0%, #000 100%);
  border-bottom: 3px solid #555;
}

.standings-header-row,
.standings-row {
  display: grid;
  grid-template-columns: 54px 1fr 72px 72px 120px 90px;
  align-items: center;
}

.standings-header-row {
  background: linear-gradient(to bottom, #252525 0%, #050505 100%);
  color: white;
  font-size: 25px;
  border-bottom: 3px solid #666;
}

.standings-header-row div {
  padding: 8px 10px;
}

.standings-row {
  min-height: 74px;
  background: linear-gradient(to bottom, #f8f8f8 0%, #d8d8d8 100%);
  border-bottom: 3px solid #444;
  color: #111;
}

.standings-row.division-leader {
  background: linear-gradient(to bottom, #fff6cc 0%, #eadb95 100%);
}

.standings-row > div {
  padding: 8px 10px;
}

.standings-rank {
  font-size: 28px;
  text-align: center;
  color: #222;
}

.standings-team-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.standings-logo,
.standings-logo-placeholder {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 3px solid #333;
  border-radius: 6px;
  background: white;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bdbdbd inset;
}

.standings-logo {
  object-fit: contain;
  padding: 3px;
  box-sizing: border-box;
}

.standings-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.standings-team-name {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standings-owner-name {
  font-size: 20px;
  color: #444;
  margin-top: 2px;
}

.standings-number,
.standings-record,
.standings-gb {
  height: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  border-left: 3px solid #777;
  background: rgba(255, 255, 255, 0.55);
}

.standings-gb {
  background: linear-gradient(to bottom, #ffe96b 0%, #f0c400 100%);
  font-weight: 700;
}

@media (max-width: 900px) {
  .standings-header-row,
  .standings-row {
    grid-template-columns: 42px 1fr 52px 52px 82px 62px;
  }

  .standings-division-title {
    font-size: 32px;
  }

  .standings-team-name {
    font-size: 24px;
  }

  .standings-owner-name {
    display: none;
  }

  .standings-number,
  .standings-record,
  .standings-gb {
    font-size: 24px;
  }

  .standings-logo,
  .standings-logo-placeholder {
    width: 42px;
    height: 42px;
  }
}


/* ===== Standings cleanup override ===== */

.standings-board {
  max-width: 100%;
}

.standings-header-row,
.standings-row {
  grid-template-columns: 48px minmax(260px, 1fr) 80px 80px 110px;
}

.standings-header-row div:nth-child(5),
.standings-row .standings-record {
  display: none;
}

.standings-header-row {
  font-size: 32px;
}

.standings-row {
  min-height: 72px;
}

.standings-team-cell {
  gap: 12px;
}

.standings-logo,
.standings-logo-placeholder {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  object-fit: contain !important;
  padding: 3px;
  box-sizing: border-box;
}

.standings-logo img,
.standings-team-cell img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
}

.standings-team-name {
  font-size: 34px !important;
  line-height: 1;
  letter-spacing: 1px;
}

.standings-owner-name {
  font-size: 22px !important;
}

.standings-rank {
  font-size: 30px !important;
}

.standings-number,
.standings-gb {
  min-height: 72px;
  font-size: 38px !important;
}

.standings-division-title {
  font-size: 42px !important;
  padding: 16px 20px;
}

@media (max-width: 900px) {
  .standings-header-row,
  .standings-row {
    grid-template-columns: 38px minmax(170px, 1fr) 54px 54px 62px;
  }

  .standings-team-name {
    font-size: 25px !important;
  }

  .standings-number,
  .standings-gb {
    font-size: 26px !important;
  }

  .standings-logo,
  .standings-logo-placeholder,
  .standings-team-cell img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
}


/* Weekly Matches + My Matchup */

.weekly-admin-controls {
  margin-top: 16px;
}

.weekly-control-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.weekly-matches-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.weekly-match-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 170px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(to bottom, #fefefe 0%, #dcdcdc 100%);
  border: 4px solid #555;
  border-radius: 10px;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 5px #bdbdbd inset;
}

.weekly-match-status {
  position: absolute;
  top: 8px;
  right: 10px;
}

.weekly-complete-badge,
.weekly-open-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 2px solid #555;
  border-radius: 6px;
  font-size: 18px;
}

.weekly-complete-badge {
  background: #d8f7d8;
}

.weekly-open-badge {
  background: #fff6cc;
}

.weekly-team-side {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.weekly-team-side.right {
  flex-direction: row-reverse;
  text-align: right;
}

.weekly-team-logo,
.weekly-team-logo-placeholder {
  width: 64px;
  height: 64px;
  border: 3px solid #555;
  border-radius: 8px;
  background: white;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bdbdbd inset;
}

.weekly-team-logo {
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}

.weekly-team-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.weekly-team-text h2 {
  margin: 0 0 4px;
  font-size: 32px;
  line-height: 1;
}

.weekly-team-text p {
  margin: 2px 0;
  font-size: 22px;
  color: #333;
}

.weekly-score-center {
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  gap: 8px;
  align-items: center;
  justify-items: center;
}

.weekly-score-center span {
  font-size: 26px;
}

.weekly-score-input,
.weekly-score-display {
  width: 58px;
  height: 50px;
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 30px;
  color: #222;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fff6cc 0%, #eadb95 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #d6c47d inset;
}

.weekly-score-display {
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-matchup-feature {
  margin-top: 18px;
  padding: 18px;
  background: linear-gradient(to bottom, #fefefe 0%, #dcdcdc 100%);
  border: 4px solid #555;
  border-radius: 10px;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 5px #bdbdbd inset;
}

.my-matchup-round-label {
  text-align: center;
  font-size: 36px;
  margin-bottom: 14px;
}

.my-matchup-teams {
  display: grid;
  grid-template-columns: 1fr 210px 1fr;
  gap: 16px;
  align-items: center;
}

.my-matchup-team-card {
  text-align: center;
  padding: 16px;
  border: 3px solid #555;
  border-radius: 10px;
  background: linear-gradient(to bottom, #f7f7f7 0%, #d2d2d2 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bcbcbc inset;
}

.my-matchup-label {
  font-size: 24px;
  color: #444;
  margin-bottom: 8px;
}

.my-matchup-logo,
.my-matchup-logo-placeholder {
  width: 110px;
  height: 110px;
  margin: 0 auto 10px;
  border: 3px solid #555;
  border-radius: 10px;
  background: white;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bdbdbd inset;
}

.my-matchup-logo {
  object-fit: contain;
  padding: 5px;
  box-sizing: border-box;
}

.my-matchup-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.my-matchup-team-card h2 {
  margin: 0 0 6px;
  font-size: 36px;
}

.my-matchup-team-card p {
  margin: 3px 0;
  font-size: 24px;
}

.my-matchup-score-box {
  text-align: center;
  padding: 16px;
  border: 4px solid #333;
  border-radius: 10px;
  background: linear-gradient(to bottom, #111 0%, #000 100%);
  color: white;
}

.my-matchup-score {
  font-size: 42px;
  color: #ffe96b;
}

.my-matchup-vs {
  font-size: 34px;
  margin: 8px 0;
}

.my-matchup-status {
  font-size: 24px;
  color: #ddd;
}

@media (max-width: 950px) {
  .weekly-match-card,
  .my-matchup-teams,
  .weekly-control-buttons {
    grid-template-columns: 1fr;
  }

  .weekly-team-side,
  .weekly-team-side.right {
    flex-direction: row;
    text-align: left;
  }

  .weekly-score-center {
    grid-template-columns: 1fr 40px 1fr;
  }
}


/* Manage League Draft Settings */

.draft-settings-grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px);
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 14px;
}

.draft-clock-setting {
  display: grid;
  gap: 6px;
}

.draft-clock-setting span {
  font-size: 26px;
}

.draft-order-editor {
  margin-top: 12px;
}

.manage-draft-order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.manage-draft-order-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  align-items: center;
}

.manage-draft-order-row span {
  font-size: 24px;
}

@media (max-width: 800px) {
  .manage-draft-order-row {
    grid-template-columns: 1fr;
  }
}


/* ===== Projected Playoff Bracket ===== */

.standings-playoff-panel {
  margin-top: 22px;
}

.standings-section-title {
  font-size: 36px;
  margin: 0 0 6px;
}

.playoff-bracket {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  align-items: start;
}

.bracket-round {
  display: grid;
  gap: 12px;
}

.bracket-round-title {
  font-size: 30px;
  text-align: center;
  padding: 8px;
  color: white;
  border: 3px solid #333;
  border-radius: 8px;
  background: linear-gradient(to bottom, #111 0%, #000 100%);
}

.bracket-matchup {
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #f7f7f7 0%, #dfdfdf 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #c7c7c7 inset;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.bracket-team-row {
  display: grid;
  grid-template-columns: 40px 42px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}

.bracket-seed {
  font-size: 24px;
  text-align: center;
}

.bracket-team-logo,
.bracket-team-logo-placeholder {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  border: 2px solid #555;
  border-radius: 6px;
  background: white;
  object-fit: contain;
  box-sizing: border-box;
}

.bracket-team-logo {
  padding: 2px;
}

.bracket-team-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.bracket-team-info {
  min-width: 0;
}

.bracket-team-name {
  font-size: 24px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bracket-team-meta {
  font-size: 19px;
  color: #444;
}

.bracket-vs {
  text-align: center;
  font-size: 20px;
  color: #555;
}

.bracket-bye {
  text-align: center;
  font-size: 22px;
  color: #444;
  padding: 4px 0;
}

@media (max-width: 900px) {
  .playoff-bracket {
    grid-template-columns: 1fr;
  }
}


/* Pokémon tier badges */

.pokemon-tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 5px;
  padding: 3px 7px;
  border: 2px solid #555;
  border-radius: 999px;
  background: linear-gradient(to bottom, #fefefe 0%, #dcdcdc 100%);
  box-shadow:
    0 0 0 1px #fff inset,
    0 0 0 3px #c7c7c7 inset;
  font-size: 18px;
}

.pokemon-tier-badge img {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
}

.draft-pokemon-card .pokemon-tier-badge {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}


/* Draft point cap display */

.draft-point-status {
  margin-top: 16px;
  margin-bottom: 16px;
}

.draft-point-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.draft-point-card {
  background: linear-gradient(to bottom, #fefefe 0%, #dcdcdc 100%);
  border: 3px solid #555;
  border-radius: 8px;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bdbdbd inset;
  padding: 12px;
}

.draft-point-card p {
  margin: 4px 0;
  font-size: 24px;
}

.draft-point-bar {
  height: 16px;
  margin-top: 8px;
  border: 2px solid #555;
  border-radius: 999px;
  background: #f7f7f7;
  overflow: hidden;
}

.draft-point-bar div {
  height: 100%;
  background: linear-gradient(to bottom, #fff6cc 0%, #f0c400 100%);
}

@media (max-width: 800px) {
  .draft-point-grid {
    grid-template-columns: 1fr;
  }
}


/* Tier badge alignment fix */

.pokemon-tier-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

.pokemon-tier-badge img {
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

.pokemon-tier-badge span {
  display: inline-block !important;
  vertical-align: middle !important;
  line-height: 1 !important;
  position: relative;
  top: -1px;
}


/* Stronger tier badge vertical alignment fix */

.pokemon-tier-badge {
  line-height: 18px !important;
}

.pokemon-tier-badge img {
  width: 18px !important;
  height: 18px !important;
  display: inline-block !important;
  transform: translateY(2px) !important;
}

.pokemon-tier-badge span {
  display: inline-block !important;
  line-height: 18px !important;
  transform: translateY(-3px) !important;
}


/* Mega Evolution icon on Pokémon cards */

.draft-pokemon-card {
  position: relative;
}

.mega-badge-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}


/* Mega Evolution badge overlay */

.draft-pokemon-card {
  position: relative;
}

.mega-badge-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}


/* Mega Evolution badge overlay */

.draft-pokemon-card {
  position: relative;
}

.mega-badge-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}


/* Draft Room filters */

.draft-filter-bar {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 0.85fr 0.85fr;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 8px;
}

.draft-filter-bar .pkmn-input,
.draft-filter-bar .pkmn-select {
  min-height: 52px;
  font-size: 23px;
}

@media (max-width: 950px) {
  .draft-filter-bar {
    grid-template-columns: 1fr;
  }
}


/* Draft Room visible filter menu */

.draft-filter-menu {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 0.9fr;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fefefe 0%, #dcdcdc 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bdbdbd inset;
}

.draft-filter-menu label {
  display: grid;
  gap: 6px;
}

.draft-filter-menu label span {
  font-size: 24px;
  color: #222;
}

.draft-filter-menu .pkmn-input,
.draft-filter-menu .pkmn-select {
  min-height: 52px;
  font-size: 23px;
}

@media (max-width: 950px) {
  .draft-filter-menu {
    grid-template-columns: 1fr;
  }
}


/* ===== Pokémon type badges ===== */

.pokemon-type-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pokemon-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 3px 7px;
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  line-height: 1;
  color: #fff;
  text-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    0 2px 0 rgba(0, 0, 0, 0.22);
}

/* Core 18 types */

.type-normal {
  background: linear-gradient(to bottom, #c6c6a7 0%, #8a8a68 100%);
}

.type-fire {
  background: linear-gradient(to bottom, #ff9c54 0%, #e25822 100%);
}

.type-water {
  background: linear-gradient(to bottom, #77b7ff 0%, #2e78d6 100%);
}

.type-electric {
  background: linear-gradient(to bottom, #ffe76b 0%, #d9a900 100%);
  color: #222;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.55);
}

.type-grass {
  background: linear-gradient(to bottom, #8ee06f 0%, #3f9d3f 100%);
}

.type-ice {
  background: linear-gradient(to bottom, #b7f4ff 0%, #62b6c7 100%);
  color: #123;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.65);
}

.type-fighting {
  background: linear-gradient(to bottom, #d96a5f 0%, #9b231f 100%);
}

.type-poison {
  background: linear-gradient(to bottom, #c875c9 0%, #843c8c 100%);
}

.type-ground {
  background: linear-gradient(to bottom, #ead27a 0%, #b98f36 100%);
  color: #261a08;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.45);
}

.type-flying {
  background: linear-gradient(to bottom, #c4b5ff 0%, #7f6edb 100%);
}

.type-psychic {
  background: linear-gradient(to bottom, #ff8fbc 0%, #f45b96 100%);
}

.type-bug {
  background: linear-gradient(to bottom, #c4d94b 0%, #7c9514 100%);
}

.type-rock {
  background: linear-gradient(to bottom, #d0b65d 0%, #8d7729 100%);
}

.type-ghost {
  background: linear-gradient(to bottom, #8f7ac8 0%, #4f3b78 100%);
}

.type-dragon {
  background: linear-gradient(to bottom, #9a74ff 0%, #4e25d6 100%);
}

.type-dark {
  background: linear-gradient(to bottom, #74655c 0%, #3f332f 100%);
}

.type-steel {
  background: linear-gradient(to bottom, #d1d1e0 0%, #8f8fa8 100%);
  color: #202030;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.6);
}

.type-fairy {
  background: linear-gradient(to bottom, #ffb8dc 0%, #e87ab2 100%);
}

/* Make type badges sit nicely inside draft cards */

.draft-pokemon-card .pokemon-type-badges {
  margin-bottom: 2px;
}


/* ===== Clean split type bars v2 ===== */

.draft-pokemon-card .pokemon-type-strip {
  width: 132px !important;
  height: 28px !important;
  margin: 7px auto 3px !important;
  display: grid !important;
  overflow: hidden !important;
  border: 2px solid rgba(0, 0, 0, 0.45) !important;
  border-radius: 7px !important;
  background: #ddd !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    0 2px 0 rgba(0, 0, 0, 0.22) !important;
}

.draft-pokemon-card .pokemon-type-strip.single {
  grid-template-columns: 1fr !important;
}

.draft-pokemon-card .pokemon-type-strip.dual {
  grid-template-columns: 1fr 1fr !important;
}

.draft-pokemon-card .pokemon-type-segment {
  min-width: 0 !important;
  width: auto !important;
  height: 100% !important;
  padding: 0 4px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-family: 'VT323', monospace !important;
  font-size: 19px !important;
  line-height: 1 !important;
  color: white !important;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55) !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

.draft-pokemon-card .pokemon-type-strip.dual .pokemon-type-segment:first-child {
  border-right: 2px solid rgba(0, 0, 0, 0.35) !important;
}

/* Preserve readable dark text on light type colors */

.draft-pokemon-card .pokemon-type-segment.type-electric,
.draft-pokemon-card .pokemon-type-segment.type-ice,
.draft-pokemon-card .pokemon-type-segment.type-ground,
.draft-pokemon-card .pokemon-type-segment.type-steel {
  color: #222 !important;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* Prevent old badge styles from affecting the new strip */

.draft-pokemon-card .pokemon-type-strip .pokemon-type-badge,
.draft-pokemon-card .pokemon-type-strip .pokemon-type-badges {
  all: unset !important;
}


/* Shorter type bars */

.draft-pokemon-card .pokemon-type-strip {
  width: 104px !important;
  height: 24px !important;
}

.draft-pokemon-card .pokemon-type-segment {
  font-size: 17px !important;
  padding: 0 3px !important;
}


/* Better sizing for single vs dual type bars */

.draft-pokemon-card .pokemon-type-strip.single {
  width: 76px !important;
  height: 24px !important;
  border-radius: 8px !important;
}

.draft-pokemon-card .pokemon-type-strip.dual {
  width: 112px !important;
  height: 24px !important;
  border-radius: 8px !important;
}

.draft-pokemon-card .pokemon-type-strip.single .pokemon-type-segment {
  font-size: 17px !important;
  padding: 0 6px !important;
}

.draft-pokemon-card .pokemon-type-strip.dual .pokemon-type-segment {
  font-size: 16px !important;
  padding: 0 3px !important;
}


/* Waiver Wire */

.hidden {
  display: none !important;
}

.waiver-admin-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.waiver-roster-list {
  display: grid;
  gap: 8px;
}

.waiver-roster-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fefefe 0%, #dcdcdc 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 4px #bdbdbd inset;
  font-size: 24px;
}

.waiver-pokemon-card {
  cursor: default;
}

.waiver-drop-row {
  width: 100%;
  margin-top: 8px;
}

.waiver-drop-select {
  width: 100%;
  min-height: 38px;
  font-size: 18px !important;
  padding: 5px 7px !important;
}

.waiver-add-button {
  width: 100%;
  margin-top: 8px;
  min-height: 40px;
  font-size: 22px;
}

@media (max-width: 800px) {
  .waiver-admin-buttons {
    grid-template-columns: 1fr;
  }
}


/* Waiver Wire background */

body.waiver-page {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("../images/PokeMart.webp") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}


/* Force Waiver Wire PokeMart background */

body.waiver-page,
body.waiver-page .page-overlay {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    url("../images/PokeMart.webp") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body.waiver-page .page-overlay::before {
  background: none !important;
}


/* Trading Page */

.trade-offer-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.trade-offer-form label {
  display: grid;
  gap: 6px;
}

.trade-offer-form label span {
  font-size: 24px;
}

.trade-message-input {
  width: 100%;
  min-height: 72px;
  margin-top: 12px;
  resize: vertical;
  box-sizing: border-box;
}

.trade-preview {
  margin-top: 10px;
  padding: 10px;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fff6cc 0%, #eadb95 100%);
}

.trade-list {
  display: grid;
  gap: 14px;
}

.trade-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 4px solid #555;
  border-radius: 10px;
  background: linear-gradient(to bottom, #fefefe 0%, #dcdcdc 100%);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 5px #bdbdbd inset;
}

.trade-card-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  font-size: 24px;
}

.trade-card-header strong:last-child {
  text-align: right;
}

.trade-status-pending,
.trade-status-accepted,
.trade-status-declined,
.trade-status-cancelled {
  padding: 3px 8px;
  border: 2px solid #555;
  border-radius: 999px;
  font-size: 18px;
}

.trade-status-pending {
  background: #fff6cc;
}

.trade-status-accepted {
  background: #d8f7d8;
}

.trade-status-declined,
.trade-status-cancelled {
  background: #f7dede;
}

.trade-pokemon-swap {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  gap: 12px;
  align-items: center;
}

.trade-arrow {
  text-align: center;
  font-size: 34px;
}

.trade-pokemon-mini {
  position: relative;
  text-align: center;
  padding: 10px;
  border: 3px solid #555;
  border-radius: 8px;
  background: linear-gradient(to bottom, #f7f7f7 0%, #d2d2d2 100%);
}

.trade-pokemon-mini p {
  margin: 0 0 6px;
  font-size: 20px;
  color: #444;
}

.trade-pokemon-mini img:not(.mega-badge-overlay):not(.pokemon-tier-badge img) {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}

.trade-pokemon-mini strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.trade-message {
  margin: 0;
  font-size: 22px;
  color: #333;
}

.trade-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 900px) {
  .trade-offer-form,
  .trade-pokemon-swap,
  .trade-actions {
    grid-template-columns: 1fr;
  }

  .trade-arrow {
    transform: rotate(90deg);
  }

  .trade-card-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trade-card-header strong:last-child {
    text-align: center;
  }
}


/* ===== Exact My Team roster fix ===== */

.my-team-roster-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.my-team-roster-slot {
  position: relative !important;
  min-height: 170px !important;
  padding: 12px !important;
  text-align: center !important;
  border: 3px solid #555 !important;
  border-radius: 10px !important;
  background: linear-gradient(to bottom, #fefefe 0%, #dcdcdc 100%) !important;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 0 5px #bdbdbd inset !important;
  box-sizing: border-box !important;
}

.my-team-roster-slot > img {
  width: 82px !important;
  height: 82px !important;
  max-width: 82px !important;
  max-height: 82px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 8px !important;
}

.my-team-roster-slot p {
  margin: 4px 0 !important;
  font-size: 24px !important;
  line-height: 1.05 !important;
  overflow-wrap: anywhere !important;
}

/* Keep team logo separate from roster Pokémon images */
.my-team-logo {
  width: 96px !important;
  height: 96px !important;
  object-fit: contain !important;
}


/* Trading page background */

body.trading-page,
body.trading-page .page-overlay {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    url("../images/WifiCenter.webp") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body.trading-page .page-overlay::before {
  background: none !important;
}


/* Account menu full-width row */

.pkmn-menu .pkmn-button-link.full-row {
  grid-column: 1 / -1;
}


/* Join League page */

.join-league-label {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.join-league-input {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  font-size: 34px;
  box-sizing: border-box;
}

.join-league-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 700px) {
  .join-league-actions {
    grid-template-columns: 1fr;
  }
}


/* Team access join page */

.join-league-second-label {
  margin-top: 14px;
}


/* ===== Draft Room card font cleanup ===== */
.available-pokemon .pokemon-card .pokemon-name,
.available-pokemon-grid .pokemon-card .pokemon-name,
.draft-pokemon-grid .pokemon-card .pokemon-name,
.pokemon-card .pokemon-name,
.pokemon-card .card-name,
.pokemon-card .pokemon-title {
  font-family: 'VT323', monospace !important;
  font-size: 21px !important;
  line-height: 1.05 !important;
  letter-spacing: 0.4px !important;
  font-weight: 400 !important;
}

.available-pokemon .pokemon-card .tier-pill,
.available-pokemon-grid .pokemon-card .tier-pill,
.draft-pokemon-grid .pokemon-card .tier-pill,
.pokemon-card .tier-pill,
.pokemon-card .pokemon-tier,
.pokemon-card .tier-name {
  font-family: 'VT323', monospace !important;
  font-size: 15px !important;
  line-height: 1 !important;
  letter-spacing: 0.2px !important;
  font-weight: 400 !important;
}

.available-pokemon .pokemon-card .tier-pill img,
.available-pokemon-grid .pokemon-card .tier-pill img,
.draft-pokemon-grid .pokemon-card .tier-pill img,
.pokemon-card .tier-pill img,
.pokemon-card .pokemon-tier img {
  width: 16px !important;
  height: 16px !important;
}

.available-pokemon .pokemon-card .type-pill,
.available-pokemon-grid .pokemon-card .type-pill,
.draft-pokemon-grid .pokemon-card .type-pill,
.pokemon-card .type-pill {
  font-size: 14px !important;
}

/* ===== Smaller tier labels in draft / available pokemon cards ===== */
.available-pokemon .pokemon-card .tier-pill,
.available-pokemon-grid .pokemon-card .tier-pill,
.draft-pokemon-grid .pokemon-card .tier-pill,
.pokemon-card .tier-pill,
.pokemon-card .pokemon-tier,
.pokemon-card .tier-name {
  font-family: 'VT323', monospace !important;
  font-size: 11px !important;
  line-height: 0.95 !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  padding: 3px 8px !important;
  gap: 4px !important;
}

.available-pokemon .pokemon-card .tier-pill img,
.available-pokemon-grid .pokemon-card .tier-pill img,
.draft-pokemon-grid .pokemon-card .tier-pill img,
.pokemon-card .tier-pill img,
.pokemon-card .pokemon-tier img {
  width: 12px !important;
  height: 12px !important;
}

/* ===== Actual Draft Room tier badge size fix ===== */
body.draft-theme-page .pokemon-tier-badge {
  height: 20px !important;
  min-height: 20px !important;
  padding: 1px 6px !important;
  gap: 3px !important;
  margin-top: 5px !important;
  border-radius: 999px !important;
}

body.draft-theme-page .pokemon-tier-badge span {
  font-family: 'VT323', monospace !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.draft-theme-page .pokemon-tier-badge img {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
}

/* ===== Draft Room tier badge correction: normal badge, smaller text ===== */
body.draft-theme-page .pokemon-tier-badge {
  height: auto !important;
  min-height: 28px !important;
  padding: 4px 10px !important;
  gap: 5px !important;
  margin-top: 7px !important;
  border-radius: 999px !important;
}

body.draft-theme-page .pokemon-tier-badge span {
  font-family: 'VT323', monospace !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.draft-theme-page .pokemon-tier-badge img {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
}

/* ===== Final Draft Room tier badge polish ===== */
body.draft-theme-page .draft-pokemon-card .pokemon-tier-badge {
  min-height: 24px !important;
  height: 24px !important;
  width: fit-content !important;
  min-width: 76px !important;
  margin: 8px auto 0 !important;
  padding: 2px 9px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;

  border-radius: 999px !important;
  background: linear-gradient(to bottom, rgba(255,255,255,0.94), rgba(218,226,236,0.94)) !important;
  border: 2px solid rgba(16, 40, 68, 0.55) !important;
  box-shadow:
    0 3px 7px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.65) !important;
}

body.draft-theme-page .draft-pokemon-card .pokemon-tier-badge span {
  font-family: "Oxanium", Arial, sans-serif !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.1px !important;
  color: #102844 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

body.draft-theme-page .draft-pokemon-card .pokemon-tier-badge img {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
  object-fit: contain !important;
}

/* keep Pokémon names readable, not overly chunky */
body.draft-theme-page .draft-pokemon-card > span {
  font-family: "Oxanium", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
}

/* ===== Draft Room tier badge readable final override ===== */
body.draft-theme-page .draft-pokemon-card .pokemon-tier-badge {
  min-height: 30px !important;
  height: 30px !important;
  min-width: 92px !important;
  width: fit-content !important;
  margin: 8px auto 0 !important;
  padding: 4px 12px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;

  border-radius: 999px !important;
  background: linear-gradient(to bottom, rgba(255,255,255,0.96), rgba(218,226,236,0.96)) !important;
  border: 2px solid rgba(16, 40, 68, 0.60) !important;
  box-shadow:
    0 4px 9px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.70) !important;
}

body.draft-theme-page .draft-pokemon-card .pokemon-tier-badge span {
  font-family: "Oxanium", Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.1px !important;
  color: #102844 !important;
  white-space: nowrap !important;
}

body.draft-theme-page .draft-pokemon-card .pokemon-tier-badge img {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  object-fit: contain !important;
}

body.draft-theme-page .draft-pokemon-card > span {
  font-family: "Oxanium", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.12 !important;
}

/* ===== Draft Room tier text/icon alignment tweak ===== */
body.draft-theme-page .draft-pokemon-card .pokemon-tier-badge span {
  font-size: 16px !important;
  line-height: 1 !important;
  transform: translateY(-1px);
}

body.draft-theme-page .draft-pokemon-card .pokemon-tier-badge img {
  transform: translateY(-2px);
}

/* =========================================================
   Global League Light Mode
   Controlled by Settings page using localStorage key:
   pokeleague-league-home-theme
   ========================================================= */

body.league-light-mode.league-home-theme-page .league-home-theme-card,
body.league-light-mode.my-team-theme-page .my-team-theme-card,
body.league-light-mode.my-matchup-theme-page .my-matchup-theme-card,
body.league-light-mode.weekly-theme-page .weekly-theme-card,
body.league-light-mode.standings-theme-page .standings-theme-card,
body.league-light-mode.teams-theme-page .teams-theme-card,
body.league-light-mode.manage-theme-page .manage-theme-card,
body.league-light-mode.draft-theme-page .draft-theme-card {
  background:
    linear-gradient(
      to bottom,
      rgba(238, 247, 255, 0.90),
      rgba(204, 226, 247, 0.80)
    ) !important;
  border: 2px solid rgba(255, 255, 255, 0.76) !important;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.30),
    0 0 0 3px rgba(69, 132, 196, 0.18) inset !important;
  color: #102844 !important;
}

/* Main titles/subtitles in light mode */
body.league-light-mode .league-home-theme-title,
body.league-light-mode .my-team-theme-title,
body.league-light-mode .my-matchup-theme-title,
body.league-light-mode .weekly-theme-title,
body.league-light-mode .standings-theme-title,
body.league-light-mode .teams-theme-title,
body.league-light-mode .manage-theme-title,
body.league-light-mode .draft-theme-title {
  color: #102844 !important;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.85),
    0 0 14px rgba(68, 150, 230, 0.35) !important;
}

body.league-light-mode #leagueSubtitle,
body.league-light-mode #myTeamSubtitle,
body.league-light-mode #myMatchupSubtitle,
body.league-light-mode #weeklySubtitle,
body.league-light-mode #standingsSubtitle,
body.league-light-mode #teamInfoSubtitle,
body.league-light-mode #manageLeagueSubtitle,
body.league-light-mode #draftLeagueSubtitle {
  color: #17345e !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.80) !important;
}

/* Status strips */
body.league-light-mode #leagueStatus,
body.league-light-mode #myTeamStatus,
body.league-light-mode #myMatchupStatus,
body.league-light-mode #weeklyStatus,
body.league-light-mode #standingsStatus,
body.league-light-mode #teamInfoStatus,
body.league-light-mode #manageLeagueStatus,
body.league-light-mode #draftRoomStatus {
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(69, 132, 196, 0.28) !important;
  color: #17345e !important;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12),
    0 0 0 2px rgba(255, 255, 255, 0.26) inset !important;
}

/* Inner panels */
body.league-light-mode .pkmn-panel,
body.league-light-mode .my-team-profile-card,
body.league-light-mode .my-team-roster-card,
body.league-light-mode .my-matchup-feature,
body.league-light-mode .weekly-round-panel,
body.league-light-mode .standings-board,
body.league-light-mode .standings-playoff-panel,
body.league-light-mode .team-info-card,
body.league-light-mode .draft-timer-box,
body.league-light-mode .draft-point-card,
body.league-light-mode .empty-state {
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(69, 132, 196, 0.30) !important;
  color: #102844 !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.13),
    0 0 0 3px rgba(255, 255, 255, 0.25) inset !important;
}

body.league-light-mode .pkmn-panel strong,
body.league-light-mode .manage-section-title,
body.league-light-mode .standings-division-title,
body.league-light-mode .standings-section-title,
body.league-light-mode .my-team-profile-card h2,
body.league-light-mode .my-team-roster-card h2,
body.league-light-mode .team-info-main h2,
body.league-light-mode .bracket-round-title {
  color: #102844 !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 8px rgba(68, 150, 230, 0.22) !important;
}

body.league-light-mode .small-note,
body.league-light-mode .manage-section-note,
body.league-light-mode .empty-state p,
body.league-light-mode #draftStatusLine,
body.league-light-mode #nextPickLine,
body.league-light-mode #draftActionStatus,
body.league-light-mode #availablePokemonCount,
body.league-light-mode #weeklyRoundStatus {
  color: rgba(16, 40, 68, 0.74) !important;
}

/* Colorful top menu buttons in light mode */
body.league-light-mode .my-team-theme-link:nth-child(1),
body.league-light-mode .my-matchup-theme-link:nth-child(1),
body.league-light-mode .weekly-theme-link:nth-child(1),
body.league-light-mode .standings-theme-link:nth-child(1),
body.league-light-mode .teams-theme-link:nth-child(1),
body.league-light-mode .manage-theme-link:nth-child(1),
body.league-light-mode .draft-theme-link:nth-child(1) {
  background: linear-gradient(to bottom, rgba(198, 234, 255, 0.96), rgba(122, 190, 232, 0.88)) !important;
  color: #102844 !important;
  text-shadow: none !important;
}

body.league-light-mode .my-team-theme-link:nth-child(2),
body.league-light-mode .my-matchup-theme-link:nth-child(2),
body.league-light-mode .weekly-theme-link:nth-child(2),
body.league-light-mode .standings-theme-link:nth-child(2),
body.league-light-mode .teams-theme-link:nth-child(2),
body.league-light-mode .manage-theme-link:nth-child(2),
body.league-light-mode .draft-theme-link:nth-child(2) {
  background: linear-gradient(to bottom, rgba(255, 247, 218, 0.98), rgba(232, 205, 143, 0.92)) !important;
  color: #102844 !important;
  text-shadow: none !important;
}

body.league-light-mode .my-matchup-theme-link:nth-child(3),
body.league-light-mode .weekly-theme-link:nth-child(3) {
  background: linear-gradient(to bottom, rgba(255, 206, 222, 0.96), rgba(230, 127, 162, 0.88)) !important;
  color: #102844 !important;
  text-shadow: none !important;
}

/* Action buttons in light mode */
body.league-light-mode .pkmn-button:not(.danger),
body.league-light-mode #saveManagersButton,
body.league-light-mode #saveMyTeamButton,
body.league-light-mode #makePickButton,
body.league-light-mode #startDraftButton,
body.league-light-mode #saveScoresButton,
body.league-light-mode #advanceMatchupButton,
body.league-light-mode .save-team-button {
  background: linear-gradient(to bottom, rgba(190, 245, 240, 0.96), rgba(109, 204, 196, 0.88)) !important;
  color: #102844 !important;
  text-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.76) !important;
}

/* Inputs in light mode */
body.league-light-mode .pkmn-input,
body.league-light-mode .pkmn-select,
body.league-light-mode input,
body.league-light-mode select {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(236, 243, 252, 0.96)) !important;
  color: #102844 !important;
  border-color: rgba(69, 132, 196, 0.32) !important;
}

/* Draft room specific light mode */
body.league-light-mode.draft-theme-page .draft-timer-box {
  background:
    radial-gradient(circle at center, rgba(255, 217, 76, 0.22), transparent 58%),
    rgba(255, 255, 255, 0.72) !important;
}

body.league-light-mode.draft-theme-page #draftClockLine {
  color: #8a5a00 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8) !important;
}

/* Keep cards readable */
body.league-light-mode .draft-pokemon-card,
body.league-light-mode .my-team-roster-slot,
body.league-light-mode .weekly-team-side,
body.league-light-mode .standings-row,
body.league-light-mode .bracket-matchup,
body.league-light-mode .team-info-card,
body.league-light-mode .draft-roster-team,
body.league-light-mode .draft-pick-row {
  background: rgba(255, 255, 255, 0.90) !important;
  color: #102844 !important;
}


/* ===== My Team logo upload styling ===== */
body.my-team-theme-page .team-logo-upload-box {
  display: grid;
  gap: 8px;
}

body.my-team-theme-page .team-logo-file-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96), rgba(225, 235, 250, 0.94));
  color: #162642;
  font-family: "Oxanium", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.18),
    0 0 0 3px rgba(24, 83, 150, 0.18) inset;
}

body.league-light-mode.my-team-theme-page .team-logo-file-input {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(236, 243, 252, 0.96)) !important;
  color: #102844 !important;
  border-color: rgba(69, 132, 196, 0.32) !important;
}

/* ===== My Team roster type badges ===== */
body.my-team-theme-page .my-team-roster-slot {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

body.my-team-theme-page .my-team-roster-slot p {
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.my-team-theme-page .my-team-type-strip {
  width: 100%;
  margin-top: 7px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

body.my-team-theme-page .my-team-type-strip.single .pokemon-type-segment {
  width: 76px;
}

body.my-team-theme-page .my-team-type-strip.dual .pokemon-type-segment {
  width: 58px;
}

body.my-team-theme-page .my-team-type-strip .pokemon-type-segment {
  min-height: 22px;
  padding: 3px 6px;
  border-radius: 7px;
  border: 1px solid rgba(16, 40, 68, 0.26);
  box-shadow:
    0 3px 7px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  color: #ffffff;
  font-family: "VT323", monospace;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

/* ===== Light mode readability fix: My Team ===== */
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-team-card,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-info-card,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-details-card,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-roster-card {
  color: #203a5c !important;
}

:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-team-card h1,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-team-card h2,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-team-card h3,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-team-card p,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-team-card span,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-team-card label,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-info-card h1,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-info-card h2,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-info-card h3,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-info-card p,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-info-card span,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-info-card label,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-roster-card h1,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-roster-card h2,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-roster-card h3,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-roster-card p,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-roster-card span,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-theme-page .pkmn-label,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-theme-page .pkmn-footer-note {
  color: #203a5c !important;
  text-shadow: none !important;
}

:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-theme-page input,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-theme-page textarea,
:is(
  body.light-mode.my-team-theme-page,
  body.theme-light.my-team-theme-page,
  body.light-theme.my-team-theme-page,
  body[data-theme="light"].my-team-theme-page,
  html[data-theme="light"] body.my-team-theme-page
) .my-team-theme-page select {
  color: #203a5c !important;
}


/* ===== My Team light mode profile text contrast fix ===== */
body.league-light-mode.my-team-theme-page .my-team-profile-card p,
body.league-light-mode.my-team-theme-page .my-team-profile-card span,
body.league-light-mode.my-team-theme-page .my-team-profile-card .small-note {
  color: rgba(16, 40, 68, 0.78) !important;
  text-shadow: none !important;
}

body.league-light-mode.my-team-theme-page .my-team-profile-card strong,
body.league-light-mode.my-team-theme-page .my-team-profile-card label {
  color: #102844 !important;
  text-shadow: none !important;
}

body.league-light-mode.my-team-theme-page .team-edit-form label {
  color: #102844 !important;
  text-shadow: none !important;
}

body.league-light-mode.my-team-theme-page .my-team-profile-card h2 {
  color: #102844 !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 8px rgba(68, 150, 230, 0.22) !important;
}

/* =========================================================
   Global light mode text contrast sweep
   Turns pale/white/yellow panel text dark in light mode.
   Keeps colorful type badges and main action buttons intact.
   ========================================================= */

body.league-light-mode .pkmn-panel,
body.league-light-mode .my-team-profile-card,
body.league-light-mode .my-team-roster-card,
body.league-light-mode .my-matchup-feature,
body.league-light-mode .weekly-round-panel,
body.league-light-mode .standings-board,
body.league-light-mode .standings-playoff-panel,
body.league-light-mode .team-info-card,
body.league-light-mode .draft-timer-box,
body.league-light-mode .draft-point-card,
body.league-light-mode .empty-state {
  color: #102844 !important;
}

/* Main readable text inside light panels */
body.league-light-mode .pkmn-panel p,
body.league-light-mode .pkmn-panel strong,
body.league-light-mode .pkmn-panel label,
body.league-light-mode .pkmn-panel .small-note,
body.league-light-mode .my-team-profile-card p,
body.league-light-mode .my-team-profile-card strong,
body.league-light-mode .my-team-profile-card label,
body.league-light-mode .my-team-profile-card .small-note,
body.league-light-mode .my-team-roster-card h2,
body.league-light-mode .my-team-roster-card p,
body.league-light-mode .team-info-main p,
body.league-light-mode .team-info-main strong,
body.league-light-mode .team-info-main h2,
body.league-light-mode .team-info-card p,
body.league-light-mode .team-info-card strong,
body.league-light-mode .team-info-card label,
body.league-light-mode .team-info-card .small-note,
body.league-light-mode .my-matchup-feature p,
body.league-light-mode .my-matchup-feature strong,
body.league-light-mode .weekly-round-panel p,
body.league-light-mode .weekly-round-panel strong,
body.league-light-mode .standings-playoff-panel p,
body.league-light-mode .standings-playoff-panel strong,
body.league-light-mode .draft-timer-box p,
body.league-light-mode .draft-timer-box strong,
body.league-light-mode .draft-point-card p,
body.league-light-mode .draft-point-card strong,
body.league-light-mode .empty-state p,
body.league-light-mode .manage-section-title,
body.league-light-mode .manage-section-note,
body.league-light-mode .small-note {
  color: #102844 !important;
  text-shadow: none !important;
}

/* Form labels across league pages */
body.league-light-mode .team-edit-form label,
body.league-light-mode .draft-clock-setting span,
body.league-light-mode .draft-filter-menu span,
body.league-light-mode .division-name-row span,
body.league-light-mode .manage-draft-order-row span,
body.league-light-mode .team-row-label,
body.league-light-mode .pkmn-label {
  color: #102844 !important;
  text-shadow: none !important;
}

/* Secondary text should be dark gray-blue, not white/yellow */
body.league-light-mode .my-team-profile-card span:not(.pokemon-type-segment),
body.league-light-mode .team-info-main span:not(.pokemon-type-segment),
body.league-light-mode .team-info-card span:not(.pokemon-type-segment),
body.league-light-mode .pkmn-panel span:not(.pokemon-type-segment),
body.league-light-mode .draft-point-card span:not(.pokemon-type-segment),
body.league-light-mode .empty-state span:not(.pokemon-type-segment) {
  color: rgba(16, 40, 68, 0.78) !important;
  text-shadow: none !important;
}

/* Headings inside light panels */
body.league-light-mode .my-team-profile-card h2,
body.league-light-mode .my-team-roster-card h2,
body.league-light-mode .team-info-main h2,
body.league-light-mode .pkmn-panel strong,
body.league-light-mode .standings-division-title,
body.league-light-mode .standings-section-title,
body.league-light-mode .bracket-round-title {
  color: #102844 !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 8px rgba(68, 150, 230, 0.18) !important;
}

/* Admin / role badges need dark readable text in light mode */
body.league-light-mode .admin-badge,
body.league-light-mode .team-role-badge,
body.league-light-mode .team-admin-toggle {
  color: #102844 !important;
  text-shadow: none !important;
}

/* Keep type badges white text because they sit on colored type backgrounds */
body.league-light-mode .pokemon-type-segment,
body.league-light-mode .my-team-type-strip .pokemon-type-segment {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) !important;
}


/* ===== My Matchup stadium background + lineup six ===== */
body.my-matchup-theme-page {
  background-image: url("images/backgrounds/PokeStadium.webp") !important;
}

body.my-matchup-theme-page .matchup-lineup-panel {
  margin-top: 16px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(16, 40, 68, 0.08);
  border: 1px solid rgba(16, 40, 68, 0.14);
}

body.my-matchup-theme-page .matchup-lineup-title {
  margin-bottom: 9px;
  color: #102844;
  font-family: "Oxanium", Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

body.my-matchup-theme-page .matchup-lineup-grid {
  display: grid;
  grid-template-columns: repeat(3, 42px);
  gap: 7px;
  justify-content: center;
}

body.my-matchup-theme-page .matchup-lineup-choice {
  width: 42px;
  height: 42px;
  padding: 2px;
  border-radius: 10px;
  border: 2px solid rgba(16, 40, 68, 0.18);
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
}

body.my-matchup-theme-page .matchup-lineup-choice img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

body.my-matchup-theme-page .matchup-lineup-choice.selected {
  border-color: rgba(255, 217, 76, 0.95);
  background: rgba(255, 246, 188, 0.96);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.18),
    0 0 0 3px rgba(255, 217, 76, 0.28);
}

body.my-matchup-theme-page .matchup-lineup-choice.locked {
  cursor: default;
}

body.my-matchup-theme-page .matchup-lineup-save-button {
  width: 100%;
  min-height: 36px;
  margin-top: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(to bottom, #294b77, #102844);
  color: #ffffff;
  font-family: "Oxanium", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

body.my-matchup-theme-page .matchup-lineup-note {
  margin: 8px 0 0 !important;
  color: rgba(16, 40, 68, 0.70) !important;
  font-family: "Oxanium", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-align: center;
}

body.league-dark-mode.my-matchup-theme-page .matchup-lineup-panel {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
}

body.league-dark-mode.my-matchup-theme-page .matchup-lineup-title,
body.league-dark-mode.my-matchup-theme-page .matchup-lineup-note {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.league-dark-mode.my-matchup-theme-page .matchup-lineup-choice {
  background: rgba(255, 255, 255, 0.88);
}

/* =========================================================
   Standings light mode colorful polish
   ========================================================= */

body.league-light-mode.standings-theme-page .standings-theme-card {
  background:
    linear-gradient(
      to bottom,
      rgba(240, 248, 255, 0.92),
      rgba(206, 229, 249, 0.82)
    ) !important;
}

/* Division board base */
body.league-light-mode.standings-theme-page .standings-board {
  background: rgba(255, 255, 255, 0.68) !important;
  border: 1px solid rgba(69, 132, 196, 0.28) !important;
}

/* Colorful division title bars */
body.league-light-mode.standings-theme-page .standings-division-title {
  margin: -4px -4px 14px !important;
  padding: 16px 20px !important;
  border-radius: 18px !important;
  background: linear-gradient(to right, rgba(190, 172, 255, 0.98), rgba(132, 204, 255, 0.92)) !important;
  color: #102844 !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78),
    0 0 10px rgba(255, 255, 255, 0.40) !important;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

/* Give later division headers different pastel accents */
body.league-light-mode.standings-theme-page .standings-board:nth-of-type(2n) .standings-division-title {
  background: linear-gradient(to right, rgba(192, 244, 210, 0.98), rgba(132, 213, 199, 0.92)) !important;
}

body.league-light-mode.standings-theme-page .standings-board:nth-of-type(3n) .standings-division-title {
  background: linear-gradient(to right, rgba(255, 220, 178, 0.98), rgba(244, 158, 125, 0.90)) !important;
}

body.league-light-mode.standings-theme-page .standings-board:nth-of-type(4n) .standings-division-title {
  background: linear-gradient(to right, rgba(255, 205, 232, 0.98), rgba(196, 166, 255, 0.92)) !important;
}

/* Table header */
body.league-light-mode.standings-theme-page .standings-header-row {
  background: linear-gradient(to bottom, rgba(230, 241, 255, 0.98), rgba(198, 219, 244, 0.94)) !important;
  color: #102844 !important;
  border: 1px solid rgba(69, 132, 196, 0.22) !important;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

/* Rows */
body.league-light-mode.standings-theme-page .standings-row {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.94)) !important;
  border: 2px solid rgba(207, 223, 242, 0.92) !important;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

/* Top row gets a champion accent */
body.league-light-mode.standings-theme-page .standings-row:first-of-type,
body.league-light-mode.standings-theme-page .standings-row.division-leader {
  border-color: rgba(255, 207, 72, 0.90) !important;
  background: linear-gradient(to bottom, rgba(255, 252, 235, 0.98), rgba(255, 245, 197, 0.92)) !important;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.12),
    0 0 0 3px rgba(255, 207, 72, 0.18) inset !important;
}

/* Rank badges: gold / silver / bronze / slate */
body.league-light-mode.standings-theme-page .standings-row:nth-of-type(2) .standings-rank {
  background: linear-gradient(to bottom, #ffe680, #d9a514) !important;
  color: #102844 !important;
  border-color: rgba(255, 255, 255, 0.84) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

body.league-light-mode.standings-theme-page .standings-row:nth-of-type(3) .standings-rank {
  background: linear-gradient(to bottom, #eef5ff, #aebed0) !important;
  color: #102844 !important;
  border-color: rgba(255, 255, 255, 0.84) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

body.league-light-mode.standings-theme-page .standings-row:nth-of-type(4) .standings-rank {
  background: linear-gradient(to bottom, #e7b47e, #b9783c) !important;
  color: #102844 !important;
  border-color: rgba(255, 255, 255, 0.84) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

body.league-light-mode.standings-theme-page .standings-row:nth-of-type(n+5) .standings-rank {
  background: linear-gradient(to bottom, #315b8f, #17345e) !important;
  color: #ffffff !important;
}

/* Logo frames */
body.league-light-mode.standings-theme-page .standings-logo,
body.league-light-mode.standings-theme-page .standings-logo-placeholder {
  background: linear-gradient(to bottom, rgba(255,255,255,0.98), rgba(232,242,255,0.94)) !important;
  border: 2px solid rgba(69, 132, 196, 0.24) !important;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

/* Team text */
body.league-light-mode.standings-theme-page .standings-team-name,
body.league-light-mode.standings-theme-page .standings-number,
body.league-light-mode.standings-theme-page .standings-record,
body.league-light-mode.standings-theme-page .standings-gb {
  color: #102844 !important;
  text-shadow: none !important;
}

body.league-light-mode.standings-theme-page .standings-owner-name {
  color: rgba(16, 40, 68, 0.68) !important;
  text-shadow: none !important;
}

/* Softer GB column */
body.league-light-mode.standings-theme-page .standings-gb {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(to bottom, rgba(255, 235, 128, 0.82), rgba(255, 203, 42, 0.78)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 3px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Playoff bracket panel */
body.league-light-mode.standings-theme-page .standings-playoff-panel {
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(69, 132, 196, 0.28) !important;
}

body.league-light-mode.standings-theme-page .bracket-round {
  background: rgba(235, 244, 255, 0.78) !important;
  border: 1px solid rgba(69, 132, 196, 0.22) !important;
}


/* =========================================================
   Standings light mode: stronger colorful rows
   ========================================================= */

/* Make each standings row visibly colorful */
body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(2) {
  background: linear-gradient(to right, rgba(255, 244, 184, 0.98), rgba(255, 229, 130, 0.88)) !important;
  border-color: rgba(235, 184, 38, 0.85) !important;
}

body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(3) {
  background: linear-gradient(to right, rgba(198, 234, 255, 0.98), rgba(128, 200, 244, 0.86)) !important;
  border-color: rgba(83, 166, 222, 0.78) !important;
}

body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(4) {
  background: linear-gradient(to right, rgba(255, 220, 178, 0.98), rgba(244, 158, 125, 0.86)) !important;
  border-color: rgba(221, 126, 79, 0.74) !important;
}

body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(5) {
  background: linear-gradient(to right, rgba(197, 244, 205, 0.98), rgba(111, 202, 131, 0.86)) !important;
  border-color: rgba(79, 173, 99, 0.74) !important;
}

body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(6) {
  background: linear-gradient(to right, rgba(255, 206, 222, 0.98), rgba(230, 127, 162, 0.86)) !important;
  border-color: rgba(205, 92, 131, 0.72) !important;
}

body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(7) {
  background: linear-gradient(to right, rgba(220, 204, 255, 0.98), rgba(158, 135, 224, 0.86)) !important;
  border-color: rgba(130, 105, 202, 0.72) !important;
}

body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(8) {
  background: linear-gradient(to right, rgba(190, 245, 240, 0.98), rgba(109, 204, 196, 0.86)) !important;
  border-color: rgba(76, 174, 166, 0.72) !important;
}

body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(n+9) {
  background: linear-gradient(to right, rgba(232, 238, 248, 0.98), rgba(178, 194, 216, 0.88)) !important;
  border-color: rgba(130, 150, 176, 0.65) !important;
}

/* Make rank badges match each row more strongly */
body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(2) .standings-rank {
  background: linear-gradient(to bottom, #ffe680, #d8a20f) !important;
  color: #102844 !important;
}

body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(3) .standings-rank {
  background: linear-gradient(to bottom, #bde8ff, #52a8dd) !important;
  color: #102844 !important;
}

body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(4) .standings-rank {
  background: linear-gradient(to bottom, #ffc28f, #d9783e) !important;
  color: #102844 !important;
}

body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(5) .standings-rank {
  background: linear-gradient(to bottom, #bff2c8, #55b56c) !important;
  color: #102844 !important;
}

body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(6) .standings-rank {
  background: linear-gradient(to bottom, #ffc7db, #d75f94) !important;
  color: #102844 !important;
}

body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(7) .standings-rank {
  background: linear-gradient(to bottom, #d8caff, #8a72dc) !important;
  color: #102844 !important;
}

body.league-light-mode.standings-theme-page .standings-board .standings-row:nth-of-type(8) .standings-rank {
  background: linear-gradient(to bottom, #bdf4ef, #55bcb4) !important;
  color: #102844 !important;
}

/* Make W/L cells feel like stat boxes */
body.league-light-mode.standings-theme-page .standings-number,
body.league-light-mode.standings-theme-page .standings-record {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 2px 8px rgba(0,0,0,0.06) !important;
}

/* Make GB column less plain yellow, more badge-like */
body.league-light-mode.standings-theme-page .standings-gb {
  min-width: 82px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.54);
  background: linear-gradient(to bottom, rgba(255, 238, 128, 0.96), rgba(246, 190, 24, 0.92)) !important;
}

/* More colorful board container */
body.league-light-mode.standings-theme-page .standings-board {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.74), rgba(232,244,255,0.68)) !important;
  border: 2px solid rgba(255,255,255,0.76) !important;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.14),
    inset 0 0 0 3px rgba(105,166,240,0.14) !important;
}

/* Make row dividers softer so colors dominate */
body.league-light-mode.standings-theme-page .standings-row > * {
  border-color: rgba(16, 40, 68, 0.22) !important;
}


/* =========================================================
   Standings colorful rows for both light and dark mode
   ========================================================= */

body.standings-theme-page .standings-board .standings-row:nth-of-type(2) {
  background: linear-gradient(to right, rgba(255, 244, 184, 0.98), rgba(255, 229, 130, 0.88)) !important;
  border-color: rgba(235, 184, 38, 0.85) !important;
}

body.standings-theme-page .standings-board .standings-row:nth-of-type(3) {
  background: linear-gradient(to right, rgba(198, 234, 255, 0.98), rgba(128, 200, 244, 0.86)) !important;
  border-color: rgba(83, 166, 222, 0.78) !important;
}

body.standings-theme-page .standings-board .standings-row:nth-of-type(4) {
  background: linear-gradient(to right, rgba(255, 220, 178, 0.98), rgba(244, 158, 125, 0.86)) !important;
  border-color: rgba(221, 126, 79, 0.74) !important;
}

body.standings-theme-page .standings-board .standings-row:nth-of-type(5) {
  background: linear-gradient(to right, rgba(197, 244, 205, 0.98), rgba(111, 202, 131, 0.86)) !important;
  border-color: rgba(79, 173, 99, 0.74) !important;
}

body.standings-theme-page .standings-board .standings-row:nth-of-type(6) {
  background: linear-gradient(to right, rgba(255, 206, 222, 0.98), rgba(230, 127, 162, 0.86)) !important;
  border-color: rgba(205, 92, 131, 0.72) !important;
}

body.standings-theme-page .standings-board .standings-row:nth-of-type(7) {
  background: linear-gradient(to right, rgba(220, 204, 255, 0.98), rgba(158, 135, 224, 0.86)) !important;
  border-color: rgba(130, 105, 202, 0.72) !important;
}

body.standings-theme-page .standings-board .standings-row:nth-of-type(8) {
  background: linear-gradient(to right, rgba(190, 245, 240, 0.98), rgba(109, 204, 196, 0.86)) !important;
  border-color: rgba(76, 174, 166, 0.72) !important;
}

body.standings-theme-page .standings-board .standings-row:nth-of-type(n+9) {
  background: linear-gradient(to right, rgba(232, 238, 248, 0.98), rgba(178, 194, 216, 0.88)) !important;
  border-color: rgba(130, 150, 176, 0.65) !important;
}

/* Keep standings row text dark/readable even in dark mode because rows are colorful */
body.standings-theme-page .standings-row .standings-team-name,
body.standings-theme-page .standings-row .standings-owner-name,
body.standings-theme-page .standings-row .standings-number,
body.standings-theme-page .standings-row .standings-record,
body.standings-theme-page .standings-row .standings-gb {
  color: #102844 !important;
  text-shadow: none !important;
}

body.standings-theme-page .standings-row .standings-owner-name {
  color: rgba(16, 40, 68, 0.70) !important;
}

/* Rank badges for both modes */
body.standings-theme-page .standings-board .standings-row:nth-of-type(2) .standings-rank {
  background: linear-gradient(to bottom, #ffe680, #d8a20f) !important;
  color: #102844 !important;
}

body.standings-theme-page .standings-board .standings-row:nth-of-type(3) .standings-rank {
  background: linear-gradient(to bottom, #bde8ff, #52a8dd) !important;
  color: #102844 !important;
}

body.standings-theme-page .standings-board .standings-row:nth-of-type(4) .standings-rank {
  background: linear-gradient(to bottom, #ffc28f, #d9783e) !important;
  color: #102844 !important;
}

body.standings-theme-page .standings-board .standings-row:nth-of-type(5) .standings-rank {
  background: linear-gradient(to bottom, #bff2c8, #55b56c) !important;
  color: #102844 !important;
}

body.standings-theme-page .standings-board .standings-row:nth-of-type(6) .standings-rank {
  background: linear-gradient(to bottom, #ffc7db, #d75f94) !important;
  color: #102844 !important;
}

body.standings-theme-page .standings-board .standings-row:nth-of-type(7) .standings-rank {
  background: linear-gradient(to bottom, #d8caff, #8a72dc) !important;
  color: #102844 !important;
}

body.standings-theme-page .standings-board .standings-row:nth-of-type(8) .standings-rank {
  background: linear-gradient(to bottom, #bdf4ef, #55bcb4) !important;
  color: #102844 !important;
}

/* W/L and GB stat boxes for both modes */
body.standings-theme-page .standings-number,
body.standings-theme-page .standings-record {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 2px 8px rgba(0,0,0,0.06) !important;
}

body.standings-theme-page .standings-gb {
  min-width: 82px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.54);
  background: linear-gradient(to bottom, rgba(255, 238, 128, 0.96), rgba(246, 190, 24, 0.92)) !important;
}


/* =========================================================
   Projected Playoff Bracket colorful redesign
   ========================================================= */

body.standings-theme-page .standings-playoff-panel {
  position: relative;
  overflow: hidden;
  margin-top: 22px !important;
  padding: 22px !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 50% 20%, rgba(130, 94, 255, 0.28), transparent 38%),
    linear-gradient(135deg, rgba(5, 12, 35, 0.94), rgba(18, 30, 72, 0.88)) !important;
  border: 2px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    inset 0 0 42px rgba(112, 75, 255, 0.16) !important;
}

body.standings-theme-page .standings-playoff-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(112, 75, 255, 0.20) 49%, rgba(112, 75, 255, 0.20) 51%, transparent 100%),
    radial-gradient(circle at center, rgba(255, 217, 76, 0.20), transparent 18%);
  opacity: 0.75;
  pointer-events: none;
}

body.standings-theme-page .standings-playoff-panel .standings-section-title {
  position: relative;
  z-index: 1;
  margin: 0 0 6px !important;
  text-align: center;
  color: #ffffff !important;
  font-size: 34px !important;
  letter-spacing: 1.8px !important;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.70),
    0 0 14px rgba(130, 94, 255, 0.72),
    0 0 22px rgba(255, 217, 76, 0.24) !important;
}

body.standings-theme-page .standings-playoff-panel .small-note {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.78) !important;
  text-shadow: none !important;
  margin-bottom: 18px !important;
}

body.standings-theme-page .playoff-bracket {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

body.standings-theme-page .bracket-round {
  position: relative;
  padding: 16px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    inset 0 0 0 2px rgba(130, 94, 255, 0.10) !important;
}

body.standings-theme-page .bracket-round::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  width: 20px;
  height: 4px;
  transform: translateY(-50%);
  background: linear-gradient(to right, rgba(122, 77, 255, 0.95), rgba(255, 217, 76, 0.86));
  box-shadow: 0 0 12px rgba(122, 77, 255, 0.70);
}

body.standings-theme-page .bracket-round:last-child::after {
  display: none;
}

body.standings-theme-page .bracket-round-title {
  margin: 0 0 14px !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  text-align: center;
  color: #ffffff !important;
  background: linear-gradient(to right, rgba(122, 77, 255, 0.96), rgba(55, 159, 255, 0.90)) !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.55),
    0 0 10px rgba(255, 255, 255, 0.28) !important;
}

body.standings-theme-page .bracket-matchup {
  position: relative;
  display: grid !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
  padding: 13px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(225, 235, 250, 0.92)) !important;
  border: 2px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 0 0 3px rgba(122, 77, 255, 0.08) !important;
}

body.standings-theme-page .bracket-matchup::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 14px;
  bottom: 14px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #7a4dff, #ffd94c);
}

body.standings-theme-page .bracket-matchup:nth-child(2n)::before {
  background: linear-gradient(to bottom, #38a8ff, #ff8fbf);
}

body.standings-theme-page .bracket-matchup:nth-child(3n)::before {
  background: linear-gradient(to bottom, #6fca83, #ffd94c);
}

body.standings-theme-page .bracket-team-row {
  display: grid !important;
  grid-template-columns: 42px 50px 1fr !important;
  gap: 10px !important;
  align-items: center !important;
  min-height: 54px !important;
  padding: 6px 8px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.54) !important;
}

body.standings-theme-page .bracket-seed {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  background: linear-gradient(to bottom, #ffe680, #d8a20f) !important;
  color: #102844 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.60) !important;
  border: 2px solid rgba(255, 255, 255, 0.74) !important;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

body.standings-theme-page .bracket-team-row:nth-child(2n) .bracket-seed {
  background: linear-gradient(to bottom, #bde8ff, #52a8dd) !important;
}

body.standings-theme-page .bracket-team-row:nth-child(3n) .bracket-seed {
  background: linear-gradient(to bottom, #ffc28f, #d9783e) !important;
}

body.standings-theme-page .bracket-team-logo,
body.standings-theme-page .bracket-team-logo-placeholder {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 2px solid rgba(16, 40, 68, 0.16) !important;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.16) !important;
}

body.standings-theme-page .bracket-team-name {
  color: #102844 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-shadow: none !important;
}

body.standings-theme-page .bracket-team-meta {
  color: rgba(16, 40, 68, 0.68) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

body.standings-theme-page .bracket-vs,
body.standings-theme-page .bracket-bye {
  margin: 6px auto !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(to right, rgba(122, 77, 255, 0.18), rgba(255, 217, 76, 0.24)) !important;
  color: #102844 !important;
  border: 1px solid rgba(16, 40, 68, 0.16) !important;
  font-weight: 900 !important;
}

/* Light mode keeps bracket colorful but slightly airier */
body.league-light-mode.standings-theme-page .standings-playoff-panel {
  background:
    radial-gradient(circle at 50% 20%, rgba(130, 94, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(240, 248, 255, 0.92), rgba(204, 226, 247, 0.82)) !important;
  border-color: rgba(255, 255, 255, 0.78) !important;
}

body.league-light-mode.standings-theme-page .standings-playoff-panel .standings-section-title {
  color: #102844 !important;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.80),
    0 0 14px rgba(130, 94, 255, 0.35) !important;
}

body.league-light-mode.standings-theme-page .standings-playoff-panel .small-note {
  color: rgba(16, 40, 68, 0.70) !important;
}

@media (max-width: 760px) {
  body.standings-theme-page .bracket-round::after {
    display: none;
  }
}

/* =========================================================
   Projected Playoff Bracket cleanup: remove awkward giant oval
   ========================================================= */

body.standings-theme-page .standings-playoff-panel {
  background:
    linear-gradient(135deg, rgba(238, 247, 255, 0.92), rgba(211, 226, 248, 0.86)) !important;
  border: 2px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.18),
    inset 0 0 0 3px rgba(105, 166, 240, 0.12) !important;
}

body.standings-theme-page .standings-playoff-panel::before {
  display: none !important;
}

body.standings-theme-page .standings-playoff-panel .standings-section-title {
  color: #102844 !important;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.85),
    0 0 12px rgba(68, 150, 230, 0.28) !important;
}

body.standings-theme-page .standings-playoff-panel .small-note {
  color: rgba(16, 40, 68, 0.66) !important;
  text-shadow: none !important;
}

body.standings-theme-page .playoff-bracket {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 18px !important;
}

/* Round containers should be simple panels, not graphic blobs */
body.standings-theme-page .bracket-round {
  padding: 16px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.78), rgba(235,244,255,0.68)) !important;
  border: 2px solid rgba(255,255,255,0.74) !important;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.14),
    inset 0 0 0 3px rgba(105,166,240,0.10) !important;
}

/* Remove connector stubs that look odd in responsive layout */
body.standings-theme-page .bracket-round::after {
  display: none !important;
}

/* Round title = colorful tab */
body.standings-theme-page .bracket-round-title {
  width: fit-content !important;
  min-width: 180px !important;
  margin: 0 auto 14px !important;
  padding: 9px 20px !important;
  border-radius: 999px !important;
  background: linear-gradient(to right, rgba(122,77,255,0.96), rgba(56,168,255,0.92)) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.58) !important;
  box-shadow:
    0 8px 18px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.36) !important;
  text-align: center !important;
}

/* Matchup cards */
body.standings-theme-page .bracket-matchup {
  margin-bottom: 14px !important;
  padding: 12px !important;
  border-radius: 20px !important;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.96), rgba(244,249,255,0.94)) !important;
  border: 2px solid rgba(205, 223, 244, 0.92) !important;
  box-shadow:
    0 8px 18px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.84) !important;
}

/* Keep the colorful side stripe, but smaller/cleaner */
body.standings-theme-page .bracket-matchup::before {
  left: -2px !important;
  top: 12px !important;
  bottom: 12px !important;
  width: 5px !important;
  border-radius: 999px !important;
}

/* Team rows */
body.standings-theme-page .bracket-team-row {
  grid-template-columns: 40px 46px 1fr !important;
  min-height: 52px !important;
  padding: 7px 8px !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.58) !important;
}

/* VS should be small and centered */
body.standings-theme-page .bracket-vs,
body.standings-theme-page .bracket-bye {
  margin: 5px auto !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  background: linear-gradient(to bottom, rgba(232,238,248,0.98), rgba(210,222,239,0.92)) !important;
  color: #102844 !important;
  border: 1px solid rgba(16,40,68,0.16) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.10) !important;
}

/* Final round should not have huge empty space */
body.standings-theme-page .bracket-round:last-child {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

body.standings-theme-page .bracket-round:last-child .bracket-matchup {
  margin-top: 0 !important;
  min-height: auto !important;
}

/* If the final has TBD/bye content, keep it compact */
body.standings-theme-page .bracket-round:last-child .bracket-bye,
body.standings-theme-page .bracket-round:last-child .bracket-vs {
  min-width: 80px !important;
}

/* Dark mode version: same structure, darker container */
body.league-dark-mode.standings-theme-page .standings-playoff-panel {
  background:
    linear-gradient(135deg, rgba(5, 12, 35, 0.94), rgba(18, 30, 72, 0.88)) !important;
  border: 2px solid rgba(255,255,255,0.22) !important;
}

body.league-dark-mode.standings-theme-page .standings-playoff-panel .standings-section-title {
  color: #ffffff !important;
  text-shadow:
    0 3px 0 rgba(0,0,0,0.70),
    0 0 14px rgba(130,94,255,0.50) !important;
}

body.league-dark-mode.standings-theme-page .standings-playoff-panel .small-note {
  color: rgba(255,255,255,0.76) !important;
}

body.league-dark-mode.standings-theme-page .bracket-round {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.12), rgba(255,255,255,0.06)) !important;
  border: 1px solid rgba(255,255,255,0.20) !important;
}


/* =========================================================
   Final round hex slot redesign
   ========================================================= */

body.standings-theme-page .final-round {
  min-height: auto !important;
}

body.standings-theme-page .bracket-final-showcase {
  display: grid;
  gap: 16px;
}

body.standings-theme-page .finalist-slot {
  min-height: 118px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  align-items: center;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

body.standings-theme-page .finalist-slot.top-slot {
  background: linear-gradient(135deg, rgba(207, 193, 255, 0.98), rgba(135, 202, 255, 0.92));
}

body.standings-theme-page .finalist-slot.bottom-slot {
  background: linear-gradient(135deg, rgba(255, 209, 230, 0.98), rgba(255, 198, 143, 0.92));
}

body.standings-theme-page .finalist-hex {
  width: 110px;
  height: 96px;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.30);
  overflow: hidden;
}

body.standings-theme-page .finalist-hex.placeholder {
  background: linear-gradient(135deg, #7057ff, #41b7ff);
  color: #ffffff;
  font-size: 54px;
  font-weight: 900;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

body.standings-theme-page .finalist-hex.filled {
  background: linear-gradient(135deg, #ffffff, #eef5ff);
}

body.standings-theme-page .finalist-hex img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

body.standings-theme-page .finalist-hex span {
  color: #102844;
  font-size: 44px;
  font-weight: 900;
}

body.standings-theme-page .finalist-name {
  color: #102844;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

body.standings-theme-page .finalist-sub {
  margin-top: 6px;
  color: rgba(16, 40, 68, 0.72);
  font-size: 14px;
  font-weight: 800;
}

body.standings-theme-page .final-center-chip {
  display: flex;
  justify-content: center;
  align-items: center;
}

body.standings-theme-page .final-center-chip span {
  min-width: 84px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #fff0a8, #ffd34f);
  color: #102844;
  font-size: 18px;
  font-weight: 900;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

body.league-dark-mode.standings-theme-page .finalist-name {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.50);
}

body.league-dark-mode.standings-theme-page .finalist-sub {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 760px) {
  body.standings-theme-page .finalist-slot {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* =========================================================
   Semifinals bracket sizing polish
   Larger logos / fuller matchup boxes
   ========================================================= */

/* Only target non-final rounds, mainly Semifinals */
body.standings-theme-page .bracket-round:not(.final-round) .bracket-matchup {
  padding: 16px !important;
  gap: 10px !important;
}

/* Make each semifinal team row fill the box better */
body.standings-theme-page .bracket-round:not(.final-round) .bracket-team-row {
  grid-template-columns: 46px 68px 1fr !important;
  min-height: 72px !important;
  padding: 10px 12px !important;
  gap: 13px !important;
}

/* Larger seed badge */
body.standings-theme-page .bracket-round:not(.final-round) .bracket-seed {
  width: 40px !important;
  height: 40px !important;
  border-radius: 13px !important;
  font-size: 15px !important;
}

/* Larger semifinal logos */
body.standings-theme-page .bracket-round:not(.final-round) .bracket-team-logo,
body.standings-theme-page .bracket-round:not(.final-round) .bracket-team-logo-placeholder {
  width: 62px !important;
  height: 62px !important;
  border-radius: 16px !important;
  object-fit: contain !important;
}

/* Slightly larger text so the row feels filled */
body.standings-theme-page .bracket-round:not(.final-round) .bracket-team-name {
  font-size: 18px !important;
  line-height: 1.08 !important;
}

body.standings-theme-page .bracket-round:not(.final-round) .bracket-team-meta {
  font-size: 12px !important;
  margin-top: 3px !important;
}

/* Make the VS chip less tiny */
body.standings-theme-page .bracket-round:not(.final-round) .bracket-vs {
  min-width: 52px !important;
  height: 28px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}

/* Match Charizard Y's colors to Eternal Floettes */
body.standings-theme-page .standings-division.charizard-y-division .standings-division-header,
body.standings-theme-page .standings-group.charizard-y-group .standings-group-header,
body.standings-theme-page .charizard-y-section .standings-section-header,
body.standings-theme-page .charizard-y-section .division-header {
  background: linear-gradient(90deg, #c9b5ff 0%, #8fd3ff 100%) !important;
  color: #17325c !important;
}

body.standings-theme-page .standings-division.charizard-y-division,
body.standings-theme-page .standings-group.charizard-y-group,
body.standings-theme-page .charizard-y-section {
  background: linear-gradient(180deg, #eef6ff 0%, #dff0ff 100%) !important;
  border-color: #bfdcff !important;
}

/* ===== Match Charizard Y's division color to Eternal Floettes ===== */
body.standings-theme-page .standings-board.division-charizard-y-s .standings-division-title,
body.standings-theme-page .standings-board.division-charizard-ys .standings-division-title,
body.standings-theme-page .standings-board.division-charizard-y .standings-division-title {
  background: linear-gradient(to right, rgba(190, 172, 255, 0.98), rgba(132, 204, 255, 0.92)) !important;
  color: #102844 !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78),
    0 0 10px rgba(255, 255, 255, 0.40) !important;
}

body.standings-theme-page .standings-board.division-charizard-y-s,
body.standings-theme-page .standings-board.division-charizard-ys,
body.standings-theme-page .standings-board.division-charizard-y {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.74), rgba(232,244,255,0.68)) !important;
  border: 2px solid rgba(255,255,255,0.76) !important;
}

/* ===== Force Charizard Y's division to match Eternal Floettes ===== */
/* Charizard Y's is the second standings-board on the page. */

body.standings-theme-page #standingsContent .standings-board:nth-child(2) .standings-division-title {
  background: linear-gradient(to right, rgba(190, 172, 255, 0.98), rgba(132, 204, 255, 0.92)) !important;
  color: #102844 !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78),
    0 0 10px rgba(255, 255, 255, 0.40) !important;
}

body.standings-theme-page #standingsContent .standings-board:nth-child(2) {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.74), rgba(232,244,255,0.68)) !important;
  border: 2px solid rgba(255,255,255,0.76) !important;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.14),
    inset 0 0 0 3px rgba(105,166,240,0.14) !important;
}

/* =========================================================
   Waiver Wire + Trading global light mode support
   ========================================================= */

body.league-light-mode.waiver-theme-page .waiver-theme-card,
body.league-light-mode.trading-theme-page .trading-theme-card {
  background:
    linear-gradient(
      to bottom,
      rgba(238, 247, 255, 0.90),
      rgba(204, 226, 247, 0.80)
    ) !important;
  border: 2px solid rgba(255, 255, 255, 0.76) !important;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.30),
    0 0 0 3px rgba(69, 132, 196, 0.18) inset !important;
  color: #102844 !important;
}

body.league-light-mode.waiver-theme-page .waiver-theme-title,
body.league-light-mode.trading-theme-page .trading-theme-title {
  color: #102844 !important;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.85),
    0 0 14px rgba(68, 150, 230, 0.35) !important;
}

body.league-light-mode.waiver-theme-page #waiverSubtitle,
body.league-light-mode.trading-theme-page #tradeSubtitle {
  color: #17345e !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.80) !important;
}

body.league-light-mode.waiver-theme-page .pkmn-panel,
body.league-light-mode.waiver-theme-page .draft-point-card,
body.league-light-mode.waiver-theme-page .empty-state,
body.league-light-mode.trading-theme-page .pkmn-panel,
body.league-light-mode.trading-theme-page .draft-point-card,
body.league-light-mode.trading-theme-page .empty-state {
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(69, 132, 196, 0.30) !important;
  color: #102844 !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.13),
    0 0 0 3px rgba(255, 255, 255, 0.25) inset !important;
}

body.league-light-mode.waiver-theme-page .pkmn-panel strong,
body.league-light-mode.waiver-theme-page .draft-point-card strong,
body.league-light-mode.trading-theme-page .pkmn-panel strong,
body.league-light-mode.trading-theme-page .draft-point-card strong {
  color: #102844 !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 8px rgba(68, 150, 230, 0.18) !important;
}

body.league-light-mode.waiver-theme-page .small-note,
body.league-light-mode.waiver-theme-page .draft-point-card p,
body.league-light-mode.waiver-theme-page .empty-state p,
body.league-light-mode.trading-theme-page .small-note,
body.league-light-mode.trading-theme-page .draft-point-card p,
body.league-light-mode.trading-theme-page .empty-state p {
  color: rgba(16, 40, 68, 0.76) !important;
  text-shadow: none !important;
}

body.league-light-mode.waiver-theme-page .draft-filter-menu,
body.league-light-mode.trading-theme-page .trade-offer-form,
body.league-light-mode.trading-theme-page .trade-preview {
  background: rgba(255, 255, 255, 0.48) !important;
  border: 1px solid rgba(69, 132, 196, 0.24) !important;
}

body.league-light-mode.waiver-theme-page .draft-filter-menu span,
body.league-light-mode.trading-theme-page .trade-offer-form span {
  color: #102844 !important;
  text-shadow: none !important;
}

body.league-light-mode.waiver-theme-page #waiverPageStatus,
body.league-light-mode.trading-theme-page #tradePageStatus {
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(69, 132, 196, 0.28) !important;
  color: #17345e !important;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12),
    0 0 0 2px rgba(255, 255, 255, 0.26) inset !important;
}


/* =========================================================
   Trading Pokémon type badge cleanup
   Match Waiver/Draft card type badge style
   ========================================================= */

body.trading-theme-page .trade-pokemon-mini .pokemon-type-strip {
  width: 100%;
  margin-top: 8px;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 4px !important;
}

body.trading-theme-page .trade-pokemon-mini .pokemon-type-strip.single .pokemon-type-segment {
  width: 78px !important;
}

body.trading-theme-page .trade-pokemon-mini .pokemon-type-strip.dual .pokemon-type-segment {
  width: 58px !important;
}

body.trading-theme-page .trade-pokemon-mini .pokemon-type-segment {
  min-height: 22px !important;
  padding: 3px 6px !important;
  border-radius: 7px !important;
  border: 1px solid rgba(16, 40, 68, 0.26) !important;
  box-shadow:
    0 3px 7px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.36) !important;
  color: #ffffff !important;
  font-family: "VT323", monospace !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  text-align: center !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) !important;
  box-sizing: border-box !important;
}

/* Keep trading mini cards from stretching awkwardly because of badges */
body.trading-theme-page .trade-pokemon-mini {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

body.trading-theme-page .trade-pokemon-mini strong {
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Trading tier badge polish to match newer card UI */
body.trading-theme-page .trade-pokemon-mini .pokemon-tier-badge {
  min-height: 28px !important;
  height: 28px !important;
  width: fit-content !important;
  min-width: 86px !important;
  margin: 8px auto 0 !important;
  padding: 3px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  border-radius: 999px !important;
  background: linear-gradient(to bottom, rgba(255,255,255,0.96), rgba(218,226,236,0.96)) !important;
  border: 2px solid rgba(16, 40, 68, 0.50) !important;
  box-shadow:
    0 4px 9px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.70) !important;
}

body.trading-theme-page .trade-pokemon-mini .pokemon-tier-badge span {
  font-family: "Oxanium", Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  color: #102844 !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

body.trading-theme-page .trade-pokemon-mini .pokemon-tier-badge img {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  object-fit: contain !important;
}

/* Mega badge placement inside trade cards */
body.trading-theme-page .trade-pokemon-mini .mega-badge-overlay {
  position: absolute !important;
  top: 38px !important;
  right: 12px !important;
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)) !important;
}

/* ===== Trading tier badge vertical position fix ===== */
body.trading-theme-page .trade-pokemon-mini .pokemon-tier-badge {
  margin-top: 14px !important;
}

/* ===== Trading Pokémon tier badge: force lower placement ===== */
body.trading-theme-page .trade-pokemon-mini .pokemon-tier-badge {
  margin-top: 26px !important;
  transform: translateY(10px) !important;
}

body.trading-theme-page .trade-pokemon-mini .pokemon-type-strip {
  margin-top: 22px !important;
}

/* Add more vertical room inside the card so the lower badge does not collide */
body.trading-theme-page .trade-pokemon-mini {
  min-height: 245px !important;
  padding-bottom: 18px !important;
}

/* Keep the Pokémon name area from pulling the tier badge upward */
body.trading-theme-page .trade-pokemon-mini strong {
  margin-bottom: 8px !important;
}

/* =========================================================
   Global dark mode: black windows instead of navy
   ========================================================= */

body.league-dark-mode.league-home-theme-page .league-home-theme-card,
body.league-dark-mode.my-team-theme-page .my-team-theme-card,
body.league-dark-mode.my-matchup-theme-page .my-matchup-theme-card,
body.league-dark-mode.weekly-theme-page .weekly-theme-card,
body.league-dark-mode.standings-theme-page .standings-theme-card,
body.league-dark-mode.teams-theme-page .teams-theme-card,
body.league-dark-mode.manage-theme-page .manage-theme-card,
body.league-dark-mode.draft-theme-page .draft-theme-card,
body.league-dark-mode.waiver-theme-page .waiver-theme-card,
body.league-dark-mode.trading-theme-page .trading-theme-card {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.82),
      rgba(0, 0, 0, 0.58)
    ) !important;
  border: 2px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.54),
    0 0 36px rgba(255, 255, 255, 0.08) inset !important;
  color: #ffffff !important;
}

/* Inner dark panels should also be black/glass, not navy */
body.league-dark-mode .pkmn-panel,
body.league-dark-mode .my-team-profile-card,
body.league-dark-mode .my-team-roster-card,
body.league-dark-mode .my-matchup-feature,
body.league-dark-mode .weekly-round-panel,
body.league-dark-mode .standings-board,
body.league-dark-mode .standings-playoff-panel,
body.league-dark-mode .team-info-card,
body.league-dark-mode .draft-timer-box,
body.league-dark-mode .draft-point-card,
body.league-dark-mode .empty-state {
  background: rgba(0, 0, 0, 0.52) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.34),
    0 0 0 3px rgba(255, 255, 255, 0.06) inset !important;
}

/* Status bars/footer notes in dark mode */
body.league-dark-mode #leagueStatus,
body.league-dark-mode #myTeamStatus,
body.league-dark-mode #myMatchupStatus,
body.league-dark-mode #weeklyStatus,
body.league-dark-mode #standingsStatus,
body.league-dark-mode #teamInfoStatus,
body.league-dark-mode #manageLeagueStatus,
body.league-dark-mode #draftRoomStatus,
body.league-dark-mode #waiverPageStatus,
body.league-dark-mode #tradePageStatus {
  background: rgba(0, 0, 0, 0.48) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Keep headings bright on black */
body.league-dark-mode .league-home-theme-title,
body.league-dark-mode .my-team-theme-title,
body.league-dark-mode .my-matchup-theme-title,
body.league-dark-mode .weekly-theme-title,
body.league-dark-mode .standings-theme-title,
body.league-dark-mode .teams-theme-title,
body.league-dark-mode .manage-theme-title,
body.league-dark-mode .draft-theme-title,
body.league-dark-mode .waiver-theme-title,
body.league-dark-mode .trading-theme-title {
  color: #ffffff !important;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.80),
    0 0 12px rgba(30, 160, 255, 0.58) !important;
}

body.league-dark-mode #leagueSubtitle,
body.league-dark-mode #myTeamSubtitle,
body.league-dark-mode #myMatchupSubtitle,
body.league-dark-mode #weeklySubtitle,
body.league-dark-mode #standingsSubtitle,
body.league-dark-mode #teamInfoSubtitle,
body.league-dark-mode #manageLeagueSubtitle,
body.league-dark-mode #draftLeagueSubtitle,
body.league-dark-mode #waiverSubtitle,
body.league-dark-mode #tradeSubtitle {
  color: rgba(255, 255, 255, 0.90) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75) !important;
}


/* Final override: Manage League tile color on League Home */
body.league-home-theme-page .league-home-tile[href="manage-league.html"] {
  background: linear-gradient(135deg, #b9a7ff 0%, #7d6cff 100%) !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
}

body.league-home-theme-page .league-home-tile[href="manage-league.html"] .league-home-tile-title {
  color: #182044 !important;
}

body.league-home-theme-page .league-home-tile[href="manage-league.html"] .league-home-tile-desc {
  color: #26305d !important;
}
