:root {
  --bg: #05080d;
  --navy: #07111e;
  --navy-2: #0b1828;
  --panel: rgba(11, 22, 36, .95);
  --panel-soft: rgba(255, 255, 255, .055);
  --panel-strong: rgba(5, 11, 19, .96);
  --text: #f4efe3;
  --text-strong: #fffdf7;
  --muted: #9da8b7;
  --gold: #d8b45d;
  --gold-soft: #ead49a;
  --blue: #2b82bd;
  --red: #b54d49;
  --green: #4dbb7a;
  --border: rgba(255, 255, 255, .105);
  --border-gold: rgba(216, 180, 93, .32);
  --shadow: 0 18px 48px rgba(0, 0, 0, .42);
  --radius: 20px;
  --radius-sm: 14px;
  --tap: 52px;
  --heat-hot: var(--gold);
  --heat-hot-2: var(--gold-soft);
  --heat-cold: var(--red);
  --heat-pop: var(--blue);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  font-size: 16px;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.42;
  background:
    radial-gradient(circle at 8% -10%, rgba(43, 130, 189, .20), transparent 33%),
    radial-gradient(circle at 92% 0%, rgba(216, 180, 93, .14), transparent 28%),
    linear-gradient(160deg, #05080d 0%, #07111e 58%, #030609 100%);
  overflow-x: hidden;
}

.app-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 88%);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  left: -9999px;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  color: var(--text-strong);
}

p {
  margin-bottom: .75rem;
}

.muted {
  color: var(--muted);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-user-select: none;
  user-select: none;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: wait;
  opacity: .7;
}

input,
textarea,
select {
  width: 100%;
  min-height: var(--tap);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,.065);
  padding: 13px 14px;
  outline: none;
  font-size: 16px;
}

select option {
  color: #fff;
  background: #0b1220;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(216, 180, 93, .82);
  box-shadow: 0 0 0 3px rgba(216, 180, 93, .12);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.text-btn {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.primary-btn,
.secondary-btn {
  min-height: var(--tap);
  border-radius: 999px;
  padding: 12px 18px;
}

.primary-btn {
  width: 100%;
  color: #101116;
  background: linear-gradient(135deg, #efd98f, var(--gold) 48%, #c39236);
  box-shadow: 0 12px 28px rgba(216, 180, 93, .18);
}

.secondary-btn {
  width: 100%;
  color: var(--text);
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
}

.subtle-btn {
  background: rgba(255,255,255,.035);
}

.ghost-btn {
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border);
}

.text-btn {
  padding: 0;
  color: var(--gold-soft);
  background: transparent;
  font-size: .78rem;
}

.icon-btn {
  width: 40px;
  padding: 8px;
  font-size: 1.05rem;
  line-height: 1;
  flex: 0 0 auto;
}

.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.text-btn:active {
  transform: translateY(1px);
}

.eyebrow,
.mini-label,
.brand-kicker {
  display: inline-block;
  color: var(--gold-soft);
  font-size: .69rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border: 1px solid rgba(216, 180, 93, .30);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--gold-soft);
  background: rgba(216, 180, 93, .09);
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-chip.neutral {
  color: #bdc8d7;
  border-color: rgba(189, 200, 215, .2);
  background: rgba(189, 200, 215, .055);
}

.status-chip-btn {
  font-family: inherit;
  cursor: pointer;
}

.status-chip-btn:hover,
.status-chip-btn:focus-visible {
  filter: brightness(1.15);
}

.status-chip-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fdc8c;
  margin-right: 5px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(43, 130, 189, .11);
}

/* LOGIN */
.login-screen {
  position: relative;
  min-height: 100svh;
  display: flex;
  padding: 16px 11px max(16px, env(safe-area-inset-bottom));
}

.login-panel {
  width: 100%;
  min-height: calc(100svh - 32px);
  margin: auto;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 28px 17px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(43,130,189,.14), transparent 36%),
    radial-gradient(circle at 92% 10%, rgba(216,180,93,.11), transparent 24%),
    linear-gradient(165deg, rgba(12,25,42,.97), rgba(4,9,16,.98));
  box-shadow: var(--shadow);
}

.login-crest {
  width: min(75vw, 288px);
  aspect-ratio: 2 / 3;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.42));
  transform: rotate(-1deg);
}

.login-crest img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.login-crest-logo {
  border-radius: 0;
}

.login-copy {
  margin-bottom: 24px;
}

.login-panel h1 {
  margin: 8px 0 13px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3rem, 15vw, 5rem);
  line-height: .88;
  letter-spacing: -.035em;
  text-transform: uppercase;
  font-weight: 900;
}

.login-panel h1 span,
.dashboard-hero h2 span {
  color: var(--gold);
}

.lead {
  max-width: 420px;
  margin: 0 auto;
  color: var(--text-strong);
  font-size: clamp(1.22rem, 3.6vw, 1.58rem);
  line-height: 1.08;
  font-weight: 950;
}

.login-fields {
  width: min(100%, 460px);
  margin: 0 auto;
}

.field-label {
  display: block;
  margin: 9px 0 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-align: left;
}

.login-fields .primary-btn {
  margin-top: 14px;
}

.login-fields .secondary-btn {
  margin-top: 8px;
}

.status-line {
  min-height: 18px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: .74rem;
}

#loginStatus {
  min-height: 22px;
  margin: 16px auto 0;
  font-size: .82rem;
  font-weight: 760;
  max-width: 460px;
}

#loginStatus[data-kind="error"] {
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid rgba(181,77,73,.48);
  border-radius: 14px;
  color: #ffd7d5;
  background: rgba(181,77,73,.15);
  box-shadow: 0 12px 26px rgba(181,77,73,.12);
  font-size: .98rem;
  font-weight: 950;
}

#loginStatus[data-kind="loading"] {
  color: var(--gold-soft);
  font-size: 1.08rem;
  font-weight: 950;
  white-space: nowrap;
}

.login-screen.auto-loading .login-fields,
.login-screen.auto-loading .lead,
.login-screen.auto-loading .eyebrow {
  display: none !important;
}

.login-screen.auto-loading .login-panel {
  min-height: 430px;
  justify-content: center;
}

.login-screen.auto-loading .login-crest {
  width: min(86vw, 330px);
  margin-bottom: 22px;
  animation: fflPulse 1.15s ease-in-out infinite;
}

.login-screen.auto-loading #loginStatus {
  margin-top: 12px;
  color: var(--gold-soft);
  font-size: clamp(1rem, 4.2vw, 1.25rem);
  font-weight: 900;
}

.login-screen.auto-loading .login-panel::after {
  content: "";
  width: 46px;
  height: 46px;
  margin: 20px auto 0;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.13);
  border-top-color: var(--gold);
  animation: fflSpin .75s linear infinite;
}

@keyframes fflSpin {
  to { transform: rotate(360deg); }
}

@keyframes fflPulse {
  50% {
    transform: rotate(-1deg) scale(1.025);
    filter: drop-shadow(0 22px 42px rgba(216,180,93,.24));
  }
}

/* APP SHELL */
.app-shell {
  position: relative;
  min-height: 100svh;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 10px 10px calc(82px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -4px 10px;
  padding: 8px 4px 10px;
  background: linear-gradient(180deg, rgba(5,8,13,.97) 0%, rgba(5,8,13,.90) 70%, rgba(5,8,13,0) 100%);
  backdrop-filter: blur(8px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.topbar-actions .espn-link-btn img {
  width: 38px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(216,180,93,.42);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  background:
    linear-gradient(155deg, rgba(43,130,189,.28), transparent 72%),
    rgba(255,255,255,.045);
  overflow: hidden;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.brand-kicker {
  display: block;
  margin-bottom: 1px;
  font-size: .58rem;
}

.brand-title {
  max-width: 210px;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 1rem;
  line-height: 1.08;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-sub {
  max-width: 210px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page {
  display: none;
}

.page.active {
  display: grid;
  gap: 11px;
}

.card,
.hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(0,0,0,.27);
}

.card {
  padding: 15px;
}

.card h3 {
  margin-bottom: 7px;
  font-size: 1.2rem;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-head,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-head h3,
.section-head h3 {
  margin: 2px 0 0;
}

.card-head-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.card-head-toggle {
  cursor: pointer;
  border-radius: 12px;
  margin: -4px;
  padding: 4px;
}

.card-head-toggle:hover,
.card-head-toggle:focus-visible {
  background: rgba(255,255,255,.04);
}

.card-head-toggle:focus-visible {
  outline: 2px solid rgba(216, 180, 93, .45);
  outline-offset: 2px;
}

.card.collapsed .card-body,
.card.collapsed .heat-check-block {
  display: none;
}

.heat-check-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.league-business-card .card-head {
  align-items: center;
}

.section-head p {
  margin: 4px 0 0;
}

/* HOME */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 15px 15px;
  background:
    radial-gradient(circle at 90% 5%, rgba(43,130,189,.26), transparent 34%),
    radial-gradient(circle at 5% 100%, rgba(216,180,93,.10), transparent 34%),
    linear-gradient(145deg, rgba(12,25,42,.98), rgba(5,11,19,.98));
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 6px;
  width: clamp(150px, 34vw, 255px);
  height: calc(100% - 12px);
  opacity: .045;
  background: url("assets/2b1c-ffl-logo-primary.png") center / contain no-repeat;
  filter: saturate(.82) contrast(1.04);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.dashboard-hero h2 {
  margin: 7px 0 10px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.65rem, 12vw, 4.9rem);
  line-height: .88;
  letter-spacing: -.03em;
  text-transform: uppercase;
}


.espn-link-btn {
  width: auto;
  min-height: auto;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.espn-link-btn img {
  width: 56px;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.28));
}

.home-utility-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
  background: transparent;
}

.hero-updated-text {
  min-width: 0;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.1;
}

.dashboard-grid {
  display: grid;
  gap: 11px;
}

.shitshow-unread-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 10px 0;
  padding: 11px 14px;
  border: 1px solid rgba(216, 180, 93, .35);
  border-radius: 14px;
  background: rgba(216, 180, 93, .1);
  color: var(--gold-soft);
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.shitshow-unread-banner:hover,
.shitshow-unread-banner:focus-visible {
  background: rgba(216, 180, 93, .16);
}

.shitshow-unread-arrow {
  font-size: 1rem;
}

.league-money-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 12px;
  padding-top: 12px;
}

.league-money-row span:first-child {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
}

.league-money-row strong {
  display: block;
  margin-top: 1px;
  color: var(--gold-soft);
  font-size: 1.45rem;
  line-height: 1;
}

/* Weekly heat check: full-height icon, two-line text block, value on the right. */
.heat-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 9px;
  margin-top: 9px;
}

.heat-row:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.heat-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.heat-label {
  color: var(--text-strong);
  font-size: .82rem;
  font-weight: 950;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heat-team {
  min-width: 0;
  color: var(--muted);
  font-weight: 750;
  font-size: .72rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heat-icon {
  display: block;
  flex-shrink: 0;
}

.heat-value {
  color: var(--text-strong);
  font-weight: 900;
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.feature-card {
  border-color: rgba(43,130,189,.20);
  background:
    linear-gradient(145deg, rgba(43,130,189,.08), transparent 48%),
    var(--panel);
}

.big-placeholder {
  max-width: 520px;
  margin: 13px 0 7px;
  color: var(--text-strong);
  font-size: 1.16rem;
  line-height: 1.28;
  font-weight: 850;
}

.scoreboard-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 38px;
}

.score-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.score-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: .78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-row strong {
  color: var(--gold-soft);
  font-size: .86rem;
  font-weight: 950;
}

.score-row small {
  color: var(--muted);
  font-size: .62rem;
  text-align: center;
}

.placeholder-rows {
  display: grid;
  gap: 7px;
  margin-top: 11px;
  max-height: 320px;
  overflow-y: auto;
}

.placeholder-rows > div {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
}

.placeholder-rows > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.placeholder-rows b {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  background: rgba(216,180,93,.09);
  font-size: .78rem;
}

.placeholder-rows span {
  min-width: 0;
  color: var(--text);
  font-size: .83rem;
  font-weight: 800;
}

.placeholder-rows small {
  color: var(--muted);
  font-size: .69rem;
  white-space: nowrap;
}

.detail-grid {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.detail-grid > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.065);
  padding-top: 7px;
}

.detail-grid > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-grid span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}

.detail-grid strong {
  color: var(--text-strong);
  font-size: .86rem;
}

.compact-note {
  margin-top: 10px;
  font-size: .78rem;
}

.commish-active-question {
  margin: 6px 0 12px;
  color: var(--text-strong);
  font-weight: 800;
  font-size: .9rem;
}

.commish-subhead {
  margin: 18px 0 6px;
}

.manager-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: rgba(255,255,255,.028);
}

.manager-admin-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: .82rem;
}

.manager-admin-info b {
  color: var(--text-strong);
}

.manager-admin-info .muted {
  font-size: .72rem;
}

.manager-admin-stats {
  margin-top: 2px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
}

.manager-admin-pin {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: .82rem;
}

.past-poll-row {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: rgba(255,255,255,.028);
  font-size: .82rem;
}

.past-poll-row summary {
  cursor: pointer;
  color: var(--text-strong);
  font-weight: 700;
  list-style: none;
}

.past-poll-row summary::-webkit-details-marker {
  display: none;
}

.past-poll-row summary::before {
  content: "▸ ";
  color: var(--gold-soft);
}

.past-poll-row[open] summary::before {
  content: "▾ ";
}

.past-poll-results {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.past-poll-option {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: .78rem;
}

.dues-amount {
  margin: 10px 0 5px;
  color: var(--gold-soft);
  font-size: 2rem;
  line-height: 1;
  font-weight: 1000;
}

.preseason-card {
  background:
    linear-gradient(125deg, rgba(216,180,93,.055), transparent 38%),
    var(--panel);
}

.home-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  padding: 2px 5px 0;
  color: #707b8a;
  font-size: .68rem;
  text-align: center;
}

.home-meta > *:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #45505e;
}

.home-version {
  color: #566170;
  font-size: .64rem;
  letter-spacing: .03em;
}

/* PAY */
.pay-hero-card {
  background:
    radial-gradient(circle at 90% 0%, rgba(216,180,93,.12), transparent 34%),
    var(--panel);
}

.pay-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0;
}

.pay-amount span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}

.pay-amount strong {
  color: var(--gold-soft);
  font-size: 2rem;
  line-height: 1;
}

.qr-grid {
  display: grid;
  gap: 11px;
}

.qr-card {
  min-height: 145px;
  border: 1px dashed rgba(216,180,93,.24);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  text-align: center;
  font-weight: 850;
}

/* RULES */
.rules-intro-card,
.champs-intro-card {
  padding: 15px;
  background:
    linear-gradient(135deg, rgba(43,130,189,.075), transparent 45%),
    var(--panel);
}

.champs-intro-card {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding-right: 122px;
}

.champs-intro-card::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -12px;
  width: 126px;
  height: 126px;
  opacity: .24;
  background: url("assets/2b1c-ffl-champion-badge-primary.png") center / contain no-repeat;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 56%, rgba(0,0,0,.72) 66%, transparent 78%);
  mask-image: radial-gradient(circle, #000 56%, rgba(0,0,0,.72) 66%, transparent 78%);
  pointer-events: none;
}

.rule-accordion {
  padding: 0;
  overflow: hidden;
}

.rule-accordion-head {
  width: 100%;
  min-height: 54px;
  border: 0;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.rule-accordion-head b {
  display: block;
  font-size: .94rem;
}

.rule-accordion-head::after {
  content: "›";
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 1000;
  transition: transform .16s ease;
}

.rule-accordion.open .rule-accordion-head::after,
.rule-accordion.search-open .rule-accordion-head::after {
  transform: rotate(90deg);
}

.rule-accordion-body {
  display: none;
  gap: 7px;
  padding: 0 11px 11px;
}

.rule-accordion.open .rule-accordion-body,
.rule-accordion.search-open .rule-accordion-body {
  display: grid;
}

.rule-search-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 2px;
}

.rule-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255,255,255,.05);
}

.rule-search-bar:focus-within {
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 2px rgba(216,180,93,.35);
}

.rule-search-icon {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .95rem;
}

.rule-search-bar input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 0;
  color: var(--text);
  font-size: .9rem;
}

.rule-search-bar input:focus {
  outline: none;
}

.rule-search-clear-btn {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255,255,255,.09);
  font-size: .72rem;
  cursor: pointer;
}

.rule-row.hidden,
.rule-accordion.hidden {
  display: none !important;
}

.rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255,255,255,.035);
}

.rule-row strong,
.rule-row span,
.rule-row em {
  display: block;
}

.rule-row strong {
  margin-bottom: 3px;
  color: var(--text-strong);
  font-size: .83rem;
}

.rule-row span,
.rule-row em {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.32;
}

.rule-row small {
  color: var(--gold-soft);
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

.rule-accordion-head small,
.rule-toggle {
  display: none !important;
}

/* CHAMPIONS */
.champ-grid {
  display: grid;
  gap: 9px;
}

.champ-year-card {
  width: 100%;
  border: 1px solid rgba(216,180,93,.27);
  border-radius: 17px;
  padding: 13px;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 0%, rgba(216,180,93,.13), transparent 38%),
    linear-gradient(145deg, rgba(216,180,93,.07), rgba(255,255,255,.025));
  text-align: left;
  cursor: pointer;
}

.champ-year-card .champ-year {
  display: inline-flex;
  margin-bottom: 7px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #131313;
  background: var(--gold);
  font-size: .7rem;
  font-weight: 950;
}

.champ-year-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text-strong);
  font-size: 1rem;
}

.champ-year-card small,
.champ-year-card .runner-line {
  display: block;
  color: var(--muted);
  font-size: .76rem;
}

/* TRASH */
/* THE SHIT SHOW - single chronological feed */
#trash.page.active {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Fill the space between the topbar and the bottom nav so the feed scrolls
     internally and the composer can sit against the bottom. dvh keeps this
     honest when a mobile keyboard opens; the vh line is the older fallback. */
  height: calc(100vh - 172px);
  height: calc(100dvh - 172px - env(safe-area-inset-bottom));
  min-height: 320px;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  padding-bottom: 8px;
}

.feed-head-title h3 {
  margin: 2px 0 0;
}

.feed-pinned {
  flex: 0 0 auto;
  display: grid;
  gap: 5px;
  margin-bottom: 7px;
}

.feed-pinned-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  border: 1px solid var(--border-gold);
  border-radius: 11px;
  padding: 7px 9px;
  background: rgba(216,180,93,.07);
  color: var(--text);
  text-align: left;
  font-size: .76rem;
  line-height: 1.3;
  cursor: pointer;
}

.feed-pin-icon {
  flex: 0 0 auto;
  font-size: .78rem;
}

.feed-pinned-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-pinned-text b {
  color: var(--gold-soft);
}

.feed-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 15px;
  padding: 9px;
  background: rgba(255,255,255,.028);
}

.feed-list {
  display: grid;
  gap: 0;
  align-content: start;
}

.feed-empty {
  margin: 0;
  padding: 14px 4px;
  text-align: center;
}

/* True chat bubbles: your posts hug the right edge with a gold-tinted
   bubble, everyone else's hug the left with a dark card bubble. */
.feed-row {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 0;
}

.feed-row:first-child {
  margin-top: 0;
}

.feed-row.pinned .feed-bubble {
  outline: 1px solid var(--gold);
  outline-offset: -1px;
}

.feed-row-main {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.feed-row.mine .feed-row-main {
  flex-direction: row-reverse;
}

.feed-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(216,180,93,.14);
  color: var(--gold-soft);
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .02em;
}

.feed-row.mine .feed-avatar {
  background: rgba(43,130,189,.20);
  color: var(--blue);
}

.feed-bubble {
  position: relative;
  min-width: 0;
  max-width: 85%;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 8px 12px;
  background: #1e2530;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.feed-row.mine .feed-bubble {
  border-color: rgba(216,180,93,.35);
  background: rgba(216,180,93,.14);
}

.feed-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.feed-meta b {
  color: var(--text-strong);
  font-size: .78rem;
  font-weight: 900;
}

.feed-time {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 750;
}

.feed-pin-tag {
  color: var(--gold-soft);
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.feed-message {
  margin: 0;
  color: var(--text);
  font-size: .82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.feed-more-btn {
  margin-top: 3px;
  border: none;
  background: none;
  padding: 0;
  color: var(--gold-soft);
  font-size: .7rem;
  font-weight: 850;
  cursor: pointer;
}

.feed-reactions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.feed-reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  padding: 2px 7px;
  font-size: .72rem;
  cursor: pointer;
}

.feed-reaction-chip.mine {
  border-color: rgba(216, 180, 93, .5);
  background: rgba(216, 180, 93, .12);
}

.feed-reaction-count {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
}

.feed-reaction-chip.mine .feed-reaction-count {
  color: var(--gold-soft);
}

/* Floating palette opened by long-press (touch) or right-click (desktop)
   on a message bubble - anchored to the bubble itself, not the reactions row. */
.feed-reaction-floating-palette {
  position: absolute;
  top: -6px;
  left: 0;
  transform: translateY(-100%);
  z-index: 5;
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: #0f1c2e;
  padding: 6px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}

.feed-reaction-floating-btn {
  border: none;
  background: none;
  font-size: 1.15rem;
  line-height: 1;
  padding: 2px;
  cursor: pointer;
}

.feed-reaction-floating-btn:hover,
.feed-reaction-floating-btn:focus-visible {
  transform: scale(1.2);
}

/* Quoted message a reply is answering - sits inside the reply's own bubble.
   Sized to wrap within the bubble rather than forcing the bubble wide to
   fit a long quote on one line. */
.feed-quote {
  display: grid;
  gap: 1px;
  width: auto;
  max-width: 100%;
  margin: 0 0 5px;
  border: none;
  border-left: 3px solid rgba(216,180,93,.55);
  border-radius: 0 6px 6px 0;
  padding: 4px 8px;
  background: rgba(255,255,255,.045);
  text-align: left;
  cursor: pointer;
}

.feed-quote:hover,
.feed-quote:focus-visible {
  background: rgba(216,180,93,.10);
}

.feed-quote-author {
  color: var(--gold-soft);
  font-size: .68rem;
  font-weight: 900;
}

.feed-quote-text {
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.25;
}

.feed-row.mine .feed-quote {
  border-left-color: rgba(43,130,189,.60);
}

/* A message still being sent sits at reduced opacity until confirmed. */
.feed-row.pending .feed-bubble {
  opacity: .58;
}

/* Anchored to whichever side that post's bubble is on, so it's never left
   floating in unrelated whitespace far from the message it controls. */
.feed-admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-right: 2px;
  margin-top: 2px;
}

.feed-row:not(.mine) .feed-admin-actions {
  justify-content: flex-start;
  margin-left: 36px;
  margin-right: 0;
}

.feed-admin-btn {
  border: none;
  background: none;
  padding: 2px 4px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  opacity: .45;
}

.feed-admin-btn:hover,
.feed-admin-btn:focus-visible {
  color: var(--gold-soft);
  opacity: 1;
}

.feed-admin-btn:disabled {
  cursor: default;
}

.feed-admin-btn.is-loading {
  color: transparent;
  position: relative;
}

.feed-admin-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  border-top-color: var(--gold-soft);
  animation: feedAdminSpin .6s linear infinite;
}

@keyframes feedAdminSpin {
  to { transform: rotate(360deg); }
}

.feed-admin-btn.danger:hover,
.feed-admin-btn.danger:focus-visible {
  color: var(--red);
}

.feed-new-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  color: var(--gold-soft);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.feed-new-divider::before,
.feed-new-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(216,180,93,.30);
}

.feed-row-flash {
  animation: feedFlash 1.2s ease;
}

@keyframes feedFlash {
  0% { background: rgba(216,180,93,.28); }
  100% { background: transparent; }
}

.feed-composer {
  flex: 0 0 auto;
  display: grid;
  gap: 6px;
  padding-top: 9px;
}

.feed-reply-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 5px 9px;
  background: rgba(216,180,93,.07);
  color: var(--gold-soft);
  font-size: .72rem;
  font-weight: 800;
}

.feed-reply-chip-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-reply-chip-clear {
  flex: 0 0 auto;
  border: none;
  background: none;
  padding: 0 2px;
  color: var(--gold-soft);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.feed-composer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.feed-composer-row textarea {
  min-height: 44px;
  max-height: 108px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 14px;
  resize: none;
  overflow-y: auto;
  line-height: 1.3;
}

.feed-send-btn {
  width: auto;
  min-width: 72px;
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: .82rem;
}

.feed-status {
  min-height: 14px;
  margin: 0;
  font-size: .7rem;
}

.compact-btn {
  width: auto;
  min-height: 36px;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .78rem;
}

.poll-option-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 93, .30);
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 8px;
  background: rgba(255,255,255,.028);
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.poll-option-btn:last-child {
  margin-bottom: 0;
}

.poll-option-btn.picked {
  border-color: var(--gold);
  background: rgba(216, 180, 93, .10);
}

.poll-option-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(216, 180, 93, .16);
  z-index: 0;
  transition: width .2s ease;
}

.poll-option-label,
.poll-option-count {
  position: relative;
  z-index: 1;
}

.poll-option-label {
  color: var(--text-strong);
}

.poll-option-count {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.new-thread-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.is-busy {
  opacity: .65;
  pointer-events: none;
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(560px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #0a1422;
  box-shadow: 0 28px 80px rgba(0,0,0,.58);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  padding: 14px;
  background: rgba(10,20,34,.97);
}

.modal-head h3 {
  margin: 2px 0 0;
}

.modal-body {
  display: grid;
  gap: 7px;
  padding: 11px;
}

.modal-standing-row {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 9px;
  background: rgba(255,255,255,.03);
}

.modal-standing-row strong {
  color: var(--text-strong);
  font-size: .86rem;
}

.modal-standing-row span,
.modal-standing-row small {
  color: var(--muted);
  font-size: .74rem;
}

/* ROSTER DRAWER */
.standing-row-clickable,
.team-name-clickable {
  cursor: pointer;
}

.standing-row-clickable:hover,
.standing-row-clickable:focus-visible {
  background: rgba(255,255,255,.045);
  border-radius: 10px;
  outline: none;
}

.team-name-clickable:hover,
.team-name-clickable:focus-visible {
  text-decoration: underline;
  outline: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: stretch;
  background: rgba(0,0,0,.72);
}

.drawer-panel {
  width: 100%;
  height: 100%;
  max-width: 560px;
  margin: 0 auto;
  overflow: auto;
  background: #0a1422;
  display: flex;
  flex-direction: column;
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  padding: 14px;
  background: rgba(10,20,34,.97);
}

.drawer-head-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-head-title {
  flex: 1 1 auto;
  min-width: 0;
}

.drawer-head-title h3 {
  margin: 2px 0 0;
}

.drawer-close {
  flex: 0 0 auto;
  font-size: 1.2rem;
  min-width: 40px;
}

.drawer-body {
  flex: 1 1 auto;
  display: grid;
  gap: 14px;
  padding: 14px;
  align-content: start;
}

.roster-group h4 {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.roster-player-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 10px;
  padding: 6px 9px;
  background: rgba(255,255,255,.03);
  margin-bottom: 4px;
  min-height: 34px;
}

.roster-slot-tag {
  font-size: .66rem;
  font-weight: 900;
  color: var(--gold-soft);
  text-align: center;
}

.roster-player-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 800;
  color: var(--text-strong);
}

.roster-player-team {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.roster-injury-tag {
  font-size: .64rem;
  font-weight: 950;
  color: var(--red);
  white-space: nowrap;
}

.drawer-head-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  width: 100%;
}

.team-contact {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.3;
  max-width: 100%;
}

.team-contact-name {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-contact-sep {
  color: var(--muted);
  opacity: .5;
  font-size: .7rem;
}

.team-contact-phone {
  color: var(--gold-soft);
  font-size: .72rem;
  text-decoration: none;
  white-space: nowrap;
}

.team-contact-phone:hover,
.team-contact-phone:focus-visible {
  text-decoration: underline;
}

.team-contact-text {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 1px 6px;
  white-space: nowrap;
}

.team-contact-text:hover,
.team-contact-text:focus-visible {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* WEEK PICKER */
.week-picker-backdrop {
  align-items: flex-end;
}

.week-picker-panel {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  max-height: 70vh;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  padding: 14px 14px max(14px, env(safe-area-inset-bottom));
  box-shadow: 0 -14px 40px rgba(0,0,0,.35);
}

.week-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.week-picker-head h4 {
  margin: 0;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold-soft);
}

.week-picker-close {
  font-size: 1.1rem;
  min-width: 32px;
}

.week-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.week-picker-btn {
  position: relative;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  color: #dbe3ee;
  font-size: .74rem;
  font-weight: 800;
  padding: 9px 4px;
  cursor: pointer;
}

.week-picker-btn:hover,
.week-picker-btn:focus-visible {
  border-color: rgba(216, 180, 93, .4);
}

.week-picker-btn.selected {
  border-color: var(--gold-soft);
  background: rgba(216, 180, 93, .12);
  color: var(--gold-soft);
}

.week-picker-live-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fdc8c;
}

/* NOTIFICATION SETTINGS */
.notif-settings-body {
  display: grid;
  gap: 10px;
}

.settings-logout-btn {
  margin-top: 6px;
}

.notif-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.notif-toggle-row strong {
  font-size: .88rem;
}

.notif-toggle-switch {
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.notif-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.notif-toggle-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(255,255,255,.14);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background .15s ease;
}

.notif-toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #dbe3ee;
  transition: transform .15s ease;
}

.notif-toggle-switch input:checked + .notif-toggle-slider {
  background: rgba(216, 180, 93, .5);
  border-color: var(--gold-soft);
}

.notif-toggle-switch input:checked + .notif-toggle-slider::before {
  transform: translateX(20px);
  background: var(--gold-soft);
}

.notif-toggle-switch input:disabled + .notif-toggle-slider {
  opacity: .45;
  cursor: not-allowed;
}

/* BOTTOM NAV */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 6px 7px max(6px, env(safe-area-inset-bottom));
  background: rgba(4,8,13,.96);
  backdrop-filter: blur(14px);
}

.bottom-nav button {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  border: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  color: #7f8997;
  background: transparent;
  font-size: .67rem;
  font-weight: 900;
  cursor: pointer;
}

.bottom-nav button > span,
.bottom-nav .nav-icon {
  display: block;
  color: #8d98a6;
  font-size: .92rem;
  line-height: 1;
}

.bottom-nav .nav-icon-wrap {
  position: relative;
  display: block;
}

.bottom-nav .nav-badge {
  position: absolute;
  top: -9px;
  right: -13px;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 2px solid rgba(4,8,13,.96);
  border-radius: 999px;
  color: #111;
  background: var(--gold);
  font-size: .62rem;
  font-weight: 1000;
  line-height: 1;
}

.bottom-nav .nav-badge.hidden {
  display: none;
}

.bottom-nav button.active {
  color: #151515;
  background: linear-gradient(145deg, #efd98f, var(--gold));
}

.bottom-nav button.active > span,
.bottom-nav button.active .nav-icon {
  color: #151515;
}

/* RESPONSIVE */
@media (min-width: 620px) {
  .login-screen {
    padding: 24px;
  }

  .login-panel {
    max-width: 650px;
    min-height: auto;
    padding: 38px 34px 30px;
  }

  .app-shell {
    padding: 14px 16px calc(88px + env(safe-area-inset-bottom));
  }

  .dashboard-hero {
    padding: 24px;
  }

  .home-utility-row {
    justify-content: flex-start;
    gap: 18px;
    padding: 8px 12px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scoreboard-card,
  .league-business-card {
    min-height: 200px;
  }

  .qr-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bottom-nav {
    left: 50%;
    right: auto;
    width: min(760px, calc(100% - 24px));
    transform: translateX(-50%);
    bottom: 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 6px;
    box-shadow: 0 15px 44px rgba(0,0,0,.42);
  }
}

@media (min-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1.15fr .85fr;
  }

  .app-shell {
    padding-top: 18px;
  }
}

@media (max-width: 460px) {
  .login-screen {
    padding: 10px 8px max(10px, env(safe-area-inset-bottom));
  }

  .login-panel {
    min-height: calc(100svh - 20px);
    padding: 22px 14px 16px;
  }

  .login-crest {
    width: min(74vw, 256px);
    margin-bottom: 12px;
  }

  .login-copy {
    margin-bottom: 15px;
  }

  .lead {
    font-size: clamp(1.12rem, 6vw, 1.36rem);
  }

  .field-label {
    margin: 7px 0 5px;
  }

  .login-fields .primary-btn {
    margin-top: 11px;
  }

  .login-fields .secondary-btn {
    margin-top: 7px;
  }

  #loginStatus {
    margin-top: 11px;
  }

  .login-screen.auto-loading .login-panel {
    min-height: calc(100svh - 20px);
  }

  .login-screen.auto-loading .login-crest {
    width: min(88vw, 330px);
  }

  .login-screen.auto-loading #loginStatus {
    font-size: clamp(.95rem, 4.2vw, 1.12rem);
  }

  .brand-title,
  .brand-sub {
    max-width: 150px;
  }


  .placeholder-rows > div {
    grid-template-columns: 25px minmax(0, 1fr);
  }

  .placeholder-rows small {
    grid-column: 2;
    margin-top: -5px;
  }

  .rule-row {
    grid-template-columns: 1fr;
  }

  .rule-row small {
    white-space: normal;
  }

  .new-thread-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .home-meta {
    flex-wrap: wrap;
    gap: 5px;
  }
}

@media (max-width: 460px) and (max-height: 740px) {
  .login-panel {
    padding: 16px 12px 12px;
  }

  .login-crest {
    width: min(62vw, 220px);
    margin-bottom: 8px;
  }

  .login-screen.auto-loading .login-crest {
    width: min(82vw, 288px);
  }

  .login-copy {
    margin-bottom: 10px;
  }

  .lead {
    font-size: clamp(1.02rem, 5.2vw, 1.22rem);
  }

  .field-label {
    margin: 5px 0 4px;
  }

  .login-fields .primary-btn {
    margin-top: 9px;
  }

  #loginStatus {
    margin-top: 9px;
  }
}

/* v0.5.0 branded league dashboard */
