:root {
  color-scheme: light;
  --ink: #071923;
  --ink-2: #102b37;
  --ink-3: #28444e;
  --brand-surface: #071923;
  --on-brand: #ffffff;
  --paper: #f2f4ef;
  --card: #ffffff;
  --line: #dce2dc;
  --muted: #68777a;
  --lime: #baf23c;
  --lime-dark: #7ba616;
  --coral: #ff735f;
  --amber: #f4c34f;
  --blue: #4f7df3;
  --success: #218559;
  --danger: #c53f34;
  --danger-strong: #b64335;
  --warning-text: #805e0a;
  --status-blue: #345dbf;
  --error-text: #8e2e27;
  --canvas: #d8ded8;
  --header-bg: rgba(242, 244, 239, 0.94);
  --nav-bg: rgba(255, 255, 255, 0.96);
  --chrome-line: rgba(7, 25, 35, 0.1);
  --nav-muted: #718084;
  --surface-subtle: #f8faf6;
  --surface-muted: #edf1eb;
  --divider-soft: #edf0ec;
  --input-bg: #ffffff;
  --input-border: #ccd5ce;
  --neutral-badge-bg: rgba(7, 25, 35, 0.1);
  --decoration: rgba(7, 25, 35, 0.25);
  --focus-ring: rgba(79, 125, 243, 0.28);
  --focus-shadow: rgba(7, 25, 35, 0.07);
  --card-shadow: rgba(7, 25, 35, 0.025);
  --nav-shadow: rgba(7, 25, 35, 0.08);
  --sheet-handle: #bac4bd;
  --table-accent: #f3f9df;
  --table-accent-strong: #dff2a8;
  --table-accent-border: #d5ddd5;
  --skeleton: #e2e7e1;
  --skeleton-highlight: rgba(255, 255, 255, 0.7);
  --inactive-text: #98a4a6;
  --outer-border: rgba(7, 25, 35, 0.13);
  --shadow: 0 20px 60px rgba(1, 18, 27, 0.16);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family:
    "Avenir Next", Avenir, "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f1f5f2;
  --ink-2: #17313b;
  --ink-3: #c2ced0;
  --paper: #09161c;
  --card: #102129;
  --line: #2a3d44;
  --muted: #95a5a8;
  --lime-dark: #a6dc2c;
  --blue: #86a6ff;
  --success: #67d09d;
  --danger: #ff8e84;
  --danger-strong: #ff9a90;
  --warning-text: #f4d883;
  --status-blue: #9db7ff;
  --error-text: #ffaaa2;
  --canvas: #040b0f;
  --header-bg: rgba(9, 22, 28, 0.94);
  --nav-bg: rgba(16, 33, 41, 0.97);
  --chrome-line: rgba(225, 239, 241, 0.11);
  --nav-muted: #91a1a5;
  --surface-subtle: #14272e;
  --surface-muted: #1a3038;
  --divider-soft: #21343b;
  --input-bg: #0d1d24;
  --input-border: #354a52;
  --neutral-badge-bg: rgba(218, 232, 234, 0.1);
  --decoration: rgba(226, 239, 241, 0.3);
  --focus-ring: rgba(134, 166, 255, 0.42);
  --focus-shadow: rgba(134, 166, 255, 0.14);
  --card-shadow: rgba(0, 0, 0, 0.2);
  --nav-shadow: rgba(0, 0, 0, 0.32);
  --sheet-handle: #52666d;
  --table-accent: #182a20;
  --table-accent-strong: #29452b;
  --table-accent-border: #3b5542;
  --skeleton: #1b3037;
  --skeleton-highlight: rgba(255, 255, 255, 0.08);
  --inactive-text: #839599;
  --outer-border: rgba(223, 237, 239, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background: var(--canvas);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

#app {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

svg {
  display: block;
}

.app-shell {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--paper);
}

.app-shell.authenticated {
  padding-bottom: calc(92px + var(--safe-bottom));
}

.app-shell.authenticated.matchup-mode {
  padding-bottom: 0;
}

.screen-enter {
  animation: screen-in 260ms ease both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.icon-sm {
  width: 17px;
  height: 17px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.screen-title {
  margin: 0;
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-copy {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.page {
  padding: 22px 18px 28px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}

.page-head.compact {
  align-items: center;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(68px + var(--safe-top));
  padding: calc(12px + var(--safe-top)) 18px 12px;
  border-bottom: 1px solid var(--chrome-line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-decoration: none;
}

.wordmark-mark {
  display: block;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
}

.brand-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.icon-button.dark {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 10px calc(8px + var(--safe-bottom));
  border-top: 1px solid var(--chrome-line);
  background: var(--nav-bg);
  box-shadow: 0 -10px 28px var(--nav-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-item {
  position: relative;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 6px 2px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--nav-muted);
  font-size: 0.65rem;
  font-weight: 750;
}

.nav-item.active {
  background: rgba(186, 242, 60, 0.2);
  color: var(--ink);
}

.nav-item.active::before {
  position: absolute;
  top: 2px;
  width: 22px;
  height: 3px;
  border-radius: 0;
  background: var(--lime-dark);
  content: "";
}

.nav-item.locked,
.nav-item.locked:disabled {
  background: transparent;
  color: var(--inactive-text);
  opacity: 1;
}

.nav-lock {
  position: absolute;
  top: 6px;
  right: calc(50% - 20px);
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 999px;
  background: var(--nav-bg);
}

.nav-lock .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.4;
}

.nav-item .icon {
  width: 21px;
  height: 21px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--card-shadow);
}

.card + .card,
.section + .section {
  margin-top: 16px;
}

.card-pad {
  padding: 17px;
}

.section {
  margin-top: 25px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-link {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid var(--brand-surface);
  background: var(--brand-surface);
  color: var(--on-brand);
  box-shadow: 0 4px 0 #000d13;
}

.primary-button.lime {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--brand-surface);
  box-shadow: 0 4px 0 #8fbc25;
}

.primary-button:active,
.primary-button.lime:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #000d13;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--card);
}

.ghost-button {
  border: 0;
  background: transparent;
}

.danger-button {
  border: 1px solid rgba(197, 63, 52, 0.22);
  background: rgba(197, 63, 52, 0.08);
  color: var(--danger);
}

.full-width {
  width: 100%;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
  transform: none !important;
  box-shadow: none !important;
}

.field {
  display: grid;
  gap: 7px;
}

.field + .field {
  margin-top: 15px;
}

.field label,
.label {
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.input-wrap {
  position: relative;
}

.input-wrap > .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 19px;
  height: 19px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.input,
.select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  border-radius: 14px;
  outline: 0;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 0.96rem;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.input.has-icon {
  padding-left: 43px;
}

.input.has-action {
  padding-right: 50px;
}

.input:focus,
.select:focus {
  border-color: var(--ink-3);
  box-shadow: 0 0 0 4px var(--focus-shadow);
}

.input-action {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
}

.form-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(197, 63, 52, 0.2);
  border-radius: 12px;
  background: rgba(255, 115, 95, 0.09);
  color: var(--error-text);
  font-size: 0.82rem;
  line-height: 1.4;
}

.login-screen {
  position: relative;
  display: flex;
  min-height: 100dvh;
  justify-content: flex-end;
  flex-direction: column;
  overflow: hidden;
  padding: calc(24px + var(--safe-top)) 20px calc(24px + var(--safe-bottom));
  background: var(--brand-surface);
  color: #fff;
}

.login-brand {
  position: absolute;
  z-index: 2;
  top: calc(120px + var(--safe-top));
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 11px;
  transform: translateX(-50%);
}

.login-brand-mark {
  display: block;
  width: 76px;
  height: 76px;
}

.login-brand-name {
  color: #fff;
  margin: 0;
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  line-height: 1;
  text-indent: 0.18em;
}

.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  align-self: stretch;
  margin: 0 auto;
  padding: 0;
}

.login-card .primary-button {
  margin-top: 19px;
}

.auth-secondary-button {
  min-height: 48px;
  margin-top: 11px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-weight: 800;
}

.auth-secondary-button:active {
  background: rgba(255, 255, 255, 0.13);
}

.auth-back-button {
  position: absolute;
  z-index: 3;
  top: calc(20px + var(--safe-top));
  left: 20px;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-back-button:active {
  background: rgba(255, 255, 255, 0.08);
}

.register-card .field + .field {
  margin-top: 12px;
}

.no-league-home {
  min-height: calc(100dvh - 68px - 92px - var(--safe-top) - var(--safe-bottom));
}

.no-league-home .screen-title {
  max-width: 390px;
}

@media (max-height: 640px) {
  .login-brand {
    top: calc(62px + var(--safe-top));
  }

  .login-brand-mark {
    width: 62px;
    height: 62px;
  }

  .register-card .input {
    min-height: 46px;
  }

  .register-card .field + .field {
    margin-top: 9px;
  }

  .register-card .primary-button {
    margin-top: 13px;
  }
}

.loading-screen {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
  background: var(--brand-surface);
  color: #fff;
}

.loading-lockup {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.loading-ball {
  display: block;
  width: 62px;
  height: 62px;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(0.92) rotate(-4deg);
    opacity: 0.78;
  }
}

.league-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}

.league-select-card {
  position: relative;
  min-width: 0;
  padding: 10px 13px;
}

.league-select-card .select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 42px;
  padding: 0 36px 0 0;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 800;
}

.league-select-card .select::-ms-expand {
  display: none;
}

.league-select-card .icon {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.league-refresh-button {
  width: 62px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 4px 0 var(--card-shadow);
  color: var(--ink);
}

.league-refresh-button .icon {
  width: 21px;
  height: 21px;
}

.league-refresh-button.refreshing .icon {
  animation: league-refresh-spin 700ms linear infinite;
}

@keyframes league-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.join-draft-card {
  padding: 16px;
}

.join-draft-card .primary-button {
  margin-top: 12px;
}

.join-draft-card .input[aria-invalid="true"] {
  border-color: var(--danger);
}

.join-draft-error {
  margin: 9px 2px 0;
  color: var(--error-text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.record-hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 0;
  background: var(--brand-surface);
  color: #fff;
}

.record-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.record-hero .eyebrow {
  color: #aab8bc;
}

.record-value {
  display: flex;
  align-items: center;
  gap: 0.1em;
  margin: 0;
  font-size: 3.35rem;
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.95;
}

.record-separator {
  width: 0.3em;
  height: 0.07em;
  margin: 0 0.01em;
  border-radius: 0;
  background: #7f949b;
  transform: translate(0.03em, -0.06em);
}

.rank-badge {
  min-width: 88px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}

.rank-badge strong {
  display: block;
  color: var(--lime);
  font-size: 1.5rem;
  line-height: 1;
}

.rank-badge span {
  display: block;
  margin-top: 5px;
  color: #b8c3c6;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.matchup-card {
  overflow: hidden;
}

.matchup-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
}

.week-pill,
.status-pill,
.tiny-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.week-pill {
  background: var(--brand-surface);
  color: var(--on-brand);
}

.status-pill {
  background: rgba(79, 125, 243, 0.1);
  color: var(--status-blue);
}

.status-pill.ready {
  background: rgba(33, 133, 89, 0.12);
  color: var(--success);
}

.matchup-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 15px;
}

.matchup-team {
  min-width: 0;
  text-align: center;
}

.team-avatar {
  display: grid;
  width: 47px;
  height: 47px;
  margin: 0 auto 9px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--chrome-line);
  border-radius: 15px;
  background: var(--surface-muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.team-avatar.mine {
  background: var(--lime);
  color: var(--brand-surface);
}

.fantasy-team-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.matchup-team strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.matchup-team > span:not(.team-avatar) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.versus {
  color: #97a4a6;
  font-size: 0.68rem;
  font-weight: 900;
}

.matchup-action {
  padding: 0 16px 16px;
}

.team-chip-row {
  display: flex;
  gap: 8px;
  margin: 0 -18px;
  padding: 0 18px 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.team-chip-row::-webkit-scrollbar {
  display: none;
}

.team-chip {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
}

.team-chip strong {
  display: block;
  font-size: 0.84rem;
}

.team-chip span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.week-switcher {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
}

.week-switcher button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--surface-muted);
}

.week-center {
  text-align: center;
}

.week-center strong {
  display: block;
  font-size: 0.9rem;
}

.week-center span {
  display: block;
  margin-top: 2px;
  color: var(--lime-dark);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.week-center .week-projection {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.week-center .week-projection strong {
  display: inline;
  color: var(--ink);
  font-size: inherit;
}

.lineup-list {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.lineup-slot {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 66px;
  padding: 9px 12px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  text-align: left;
}

.slot-projection {
  display: grid;
  min-width: 48px;
  justify-items: end;
  line-height: 1;
  white-space: nowrap;
}

.slot-projection > small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slot-projection > span {
  font-size: 0.82rem;
  font-weight: 900;
}

.slot-projection em {
  color: var(--muted);
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 750;
}

.slot-label {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-surface);
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 900;
}

.slot-copy {
  min-width: 0;
}

.slot-copy strong,
.player-name {
  display: block;
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-stats-link {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--decoration);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.player-stats-link:hover {
  text-decoration-color: currentColor;
}

.player-stats-link:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.slot-copy > .slot-meta,
.player-meta {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-roster-status {
  font-weight: 900;
}

.player-roster-status.warning {
  color: var(--warning-text);
}

.player-roster-status.danger {
  color: var(--danger);
}

.player-name-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.player-name-line .player-name {
  min-width: 0;
}

.player-team-logo {
  width: 0.88rem;
  height: 0.88rem;
  flex: 0 0 0.88rem;
  object-fit: contain;
}

.player-team-logo[hidden] {
  display: none;
}

.slot-copy .empty {
  color: #7d8c8f;
  font-weight: 650;
}

.projection {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
}

.projection small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 750;
}

.save-bar {
  position: sticky;
  z-index: 8;
  bottom: calc(76px + var(--safe-bottom));
  margin: 15px -5px 0;
  padding: 8px 5px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.roster-matchup-button {
  margin-top: 8px;
}

.filter-scroll {
  display: flex;
  gap: 8px;
  margin: 0 -18px;
  padding: 1px 18px 5px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.picker-position-filters {
  margin: 10px 0 0;
  padding: 1px 0 5px;
}

.filter-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 800;
}

.filter-chip.active {
  border-color: var(--brand-surface);
  background: var(--brand-surface);
  color: var(--on-brand);
}

.player-list {
  overflow: hidden;
  margin-top: 11px;
}

.player-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--divider-soft);
}

.player-row:last-child {
  border-bottom: 0;
}

.position-dot {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--ink-3);
  font-size: 0.68rem;
  font-weight: 900;
}

.position-dot.QB,
.live-shared-slot.QB {
  background: rgba(79, 125, 243, 0.12);
  color: var(--status-blue);
}

.position-dot.RB,
.live-shared-slot.RB {
  background: rgba(33, 133, 89, 0.12);
  color: var(--success);
}

.position-dot.DEF,
.live-shared-slot.DEF {
  background: var(--neutral-badge-bg);
  color: var(--ink);
}

.position-dot.WR,
.live-shared-slot.WR {
  background: rgba(255, 115, 95, 0.13);
  color: var(--danger-strong);
}

.position-dot.TE,
.position-dot.K,
.live-shared-slot.TE,
.live-shared-slot.K {
  background: rgba(244, 195, 79, 0.2);
  color: var(--warning-text);
}

.live-shared-slot.FLEX {
  background: rgba(139, 92, 246, 0.16);
  color: #6d28a8;
}

:root[data-theme="dark"] .live-shared-slot.FLEX {
  background: rgba(167, 139, 250, 0.22);
  color: #d8c4ff;
}

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

.empty-state .empty-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  place-items: center;
}

.empty-state strong {
  display: block;
  font-size: 0.93rem;
}

.empty-state p {
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

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

.nfl-team-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.team-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 70px;
  padding: 11px 11px 11px 12px;
  border: 0;
  background: transparent;
  text-align: left;
}

.team-open {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.nfl-badge {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-surface);
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nfl-logo {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-subtle);
}

.nfl-logo-image {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: contain;
}

.nfl-logo-image[hidden] {
  display: none;
}

.nfl-logo-fallback {
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nfl-logo-fallback[hidden] {
  display: none;
}

.team-name-wrap {
  min-width: 0;
}

.team-name-wrap strong {
  display: block;
  overflow: hidden;
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-name-wrap span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-button {
  min-width: 72px;
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  font-size: 0.72rem;
  font-weight: 850;
}

.transaction-button.add {
  background: rgba(33, 133, 89, 0.13);
  color: var(--success);
}

.transaction-button.waiver {
  background: rgba(244, 195, 79, 0.22);
  color: var(--warning-text);
}

.transaction-button.drop {
  background: rgba(197, 63, 52, 0.1);
  color: var(--danger);
}

.transaction-button.locked {
  background: var(--surface-muted);
  color: var(--muted);
}

.team-detail {
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
}

.team-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 13px;
}

.team-detail-actions.single {
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
}

.team-detail-actions button {
  min-height: 42px;
}

.team-detail-actions .close-button {
  min-height: 38px;
}

.inline-filters {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 8px;
  margin-bottom: 8px;
}

.inline-filters .input,
.inline-filters .select {
  min-height: 42px;
  font-size: 0.82rem;
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.segmented button {
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
}

.segmented button.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 8px var(--nav-shadow);
}

.table-card {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.standings-table {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.78rem;
}

.standings-rank-column {
  width: 28px;
}

.standings-record-column {
  width: 54px;
}

.standings-points-column {
  width: 70px;
}

.standings-table th {
  padding: 11px 5px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.standings-table th:nth-child(2) {
  padding-right: 2px;
  padding-left: 3px;
  text-align: left;
}

.standings-table th:nth-child(3) {
  padding-right: 4px;
  padding-left: 2px;
}

.standings-table td {
  padding: 13px 5px;
  border-bottom: 1px solid var(--divider-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.standings-table tr:last-child td {
  border-bottom: 0;
}

.standings-table td:first-child {
  padding-right: 3px;
  color: var(--muted);
  font-weight: 850;
}

.standings-table td:nth-child(2) {
  overflow: hidden;
  padding-right: 2px;
  padding-left: 3px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-table td:nth-child(3) {
  padding-right: 4px;
  padding-left: 2px;
}

.standings-team-button {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 3px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: inherit;
  font-weight: 850;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--decoration);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.standings-team-logo-small {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  font-size: 0.54rem;
  font-weight: 900;
}

.standings-team-logo-small.mine {
  border-color: rgba(123, 166, 22, 0.45);
  background: var(--lime);
  color: var(--brand-surface);
}

.standings-team-button:hover {
  text-decoration-color: currentColor;
}

.standings-table tr.mine td {
  background: rgba(186, 242, 60, 0.12);
}

.playoff-line td {
  border-bottom: 2px dashed var(--muted);
}

.standings-team-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

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

.standings-team-heading > div {
  min-width: 0;
}

.standings-team-logo {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.standings-team-logo.mine {
  background: var(--lime);
  color: var(--brand-surface);
}

.standings-team-stats > div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--divider-soft);
  border-bottom: 1px solid var(--divider-soft);
}

.standings-team-stats > div:nth-child(2n) {
  border-right: 0;
}

.standings-team-stats > div:last-child {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.standings-team-stats span,
.standings-team-stats strong {
  display: block;
}

.standings-team-stats span {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.standings-team-stats strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 0.96rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-team-section {
  margin-top: 22px;
}

.standings-team-section h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.standings-team-section > div:first-child > p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.standings-nfl-team-list {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.standings-nfl-team {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.standings-nfl-team > span:last-child {
  min-width: 0;
}

.standings-nfl-team strong,
.standings-nfl-team small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-nfl-team strong {
  font-size: 0.86rem;
}

.standings-nfl-team small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.standings-team-empty {
  padding: 22px 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.waiver-list {
  overflow: hidden;
}

.waiver-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider-soft);
}

.waiver-row:last-child {
  border-bottom: 0;
}

.waiver-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-surface);
  color: var(--lime);
  font-size: 0.86rem;
  font-weight: 900;
}

.waiver-row strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waiver-row span {
  color: var(--muted);
  font-size: 0.67rem;
}

.claim-list {
  overflow: hidden;
}

.claim-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--divider-soft);
}

.claim-row:last-child {
  border-bottom: 0;
}

.claim-row .position-dot .icon {
  width: 22px;
  height: 22px;
}

.claim-copy {
  min-width: 0;
}

.claim-copy strong,
.claim-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claim-copy strong {
  font-size: 0.82rem;
}

.claim-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
}

.claim-cancel {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(197, 63, 52, 0.18);
  border-radius: 10px;
  background: rgba(197, 63, 52, 0.07);
  color: var(--danger);
  font-size: 0.7rem;
  font-weight: 850;
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-week {
  overflow: hidden;
}

.schedule-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
}

.schedule-week-head strong {
  font-size: 0.8rem;
}

.schedule-week-head span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  text-transform: capitalize;
}

.schedule-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--divider-soft);
  font-size: 0.74rem;
}

.schedule-game:last-child {
  border-bottom: 0;
}

.schedule-game.mine {
  background: rgba(186, 242, 60, 0.1);
}

.schedule-game .away {
  text-align: right;
}

.schedule-game strong,
.schedule-team-button {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-team-button {
  width: 100%;
  min-height: 32px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: inherit;
  font-weight: 850;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--decoration);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.schedule-team-button:hover {
  text-decoration-color: currentColor;
}

.schedule-score {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: calc(20px + var(--safe-top));
  background: rgba(1, 14, 21, 0.58);
  animation: fade-in 180ms ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.sheet {
  display: flex;
  width: 100%;
  max-height: calc(94dvh - var(--safe-top));
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background: var(--paper);
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.24);
  animation: sheet-in 220ms ease both;
}

@keyframes sheet-in {
  from {
    transform: translateY(40px);
  }
}

.sheet-header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: 9px 18px 0;
  background: var(--paper);
}

.sheet-body {
  min-height: 0;
  padding: 0 18px calc(20px + var(--safe-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--sheet-handle) transparent;
  -webkit-overflow-scrolling: touch;
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 1px;
  background: var(--sheet-handle);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sheet-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.sheet-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.4;
}

.close-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
}

.player-picker-list {
  overflow: hidden;
  margin-top: 12px;
}

.player-picker-body {
  padding-top: 5px;
}

.bench-player-button {
  margin-bottom: 12px;
}

.player-picker-button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 63px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--divider-soft);
  background: var(--card);
  text-align: left;
}

.player-picker-button:last-child {
  border-bottom: 0;
}

.player-picker-button.selected {
  background: rgba(186, 242, 60, 0.15);
}

.player-picker-projection {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.player-picker-projection small,
.player-picker-projection em {
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 750;
}

.player-picker-add {
  min-width: 46px;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  background: rgba(33, 133, 89, 0.13);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 850;
}

.modal-note {
  padding: 14px;
  border: 1px solid rgba(244, 195, 79, 0.3);
  border-radius: 15px;
  background: rgba(244, 195, 79, 0.13);
  color: var(--warning-text);
  font-size: 0.8rem;
  line-height: 1.5;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 16px;
}

.settings-form {
  display: grid;
  gap: 15px;
}

.league-picture-setting {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.league-picture-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.settings-team-logo {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface-muted);
  font-size: 1rem;
  font-weight: 900;
}

.settings-team-logo.mine {
  background: var(--lime);
  color: var(--brand-surface);
}

.league-picture-actions {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.league-picture-actions .secondary-button {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.78rem;
}

.league-picture-remove {
  min-height: 44px;
  padding: 0 10px;
  color: var(--danger);
  font-size: 0.78rem;
}

.team-logo-editor-body {
  padding-top: 2px;
}

.team-logo-crop {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 22px;
  outline: 0;
  background:
    linear-gradient(45deg, var(--surface-muted) 25%, transparent 25%),
    linear-gradient(-45deg, var(--surface-muted) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--surface-muted) 75%),
    linear-gradient(-45deg, transparent 75%, var(--surface-muted) 75%),
    var(--card);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  box-shadow: 0 12px 32px var(--nav-shadow);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.team-logo-crop:active {
  cursor: grabbing;
}

.team-logo-crop:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.team-logo-crop > img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.team-logo-crop-grid {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(to right, transparent 33.1%, rgba(255, 255, 255, 0.46) 33.1%, rgba(255, 255, 255, 0.46) 33.7%, transparent 33.7%, transparent 66.3%, rgba(255, 255, 255, 0.46) 66.3%, rgba(255, 255, 255, 0.46) 66.9%, transparent 66.9%),
    linear-gradient(to bottom, transparent 33.1%, rgba(255, 255, 255, 0.46) 33.1%, rgba(255, 255, 255, 0.46) 33.7%, transparent 33.7%, transparent 66.3%, rgba(255, 255, 255, 0.46) 66.3%, rgba(255, 255, 255, 0.46) 66.9%, transparent 66.9%);
  pointer-events: none;
}

.team-logo-crop-hint {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
}

.team-logo-zoom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 800;
}

.team-logo-zoom input {
  width: 100%;
  min-height: 36px;
  accent-color: var(--lime-dark);
}

.team-logo-editor-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  margin-top: 14px;
}

.primary-button.settings-save-success:disabled {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--brand-surface);
  opacity: 1;
  box-shadow: 0 4px 0 #8fbc25 !important;
}

.settings-body {
  display: flex;
  flex-direction: column;
}

.settings-sections {
  display: grid;
  gap: 10px;
}

.settings-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.settings-section-summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.settings-section-summary::-webkit-details-marker {
  display: none;
}

.settings-section-summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
}

.settings-section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-muted);
  color: var(--ink-3);
}

.settings-section-icon .icon {
  width: 21px;
  height: 21px;
}

.settings-section-copy {
  min-width: 0;
}

.settings-section-copy strong,
.settings-section-copy > span {
  display: block;
}

.settings-section-copy strong {
  font-size: 0.9rem;
}

.settings-section-copy > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.35;
}

.settings-section-chevron {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--muted);
  transition: transform 180ms ease;
}

.settings-section-chevron .icon {
  width: 18px;
  height: 18px;
}

.settings-section[open] .settings-section-chevron {
  transform: rotate(90deg);
}

.settings-section-content {
  padding: 2px 12px 14px;
  border-top: 1px solid var(--divider-soft);
}

.settings-section-content .theme-setting {
  margin-top: 10px;
}

.theme-setting {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  cursor: pointer;
}

.theme-setting-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-muted);
  color: var(--ink-3);
}

.theme-setting-icon .icon {
  width: 21px;
  height: 21px;
}

.theme-setting-copy {
  min-width: 0;
}

.theme-setting-copy strong,
.theme-setting-copy > span {
  display: block;
}

.theme-setting-copy strong {
  font-size: 0.86rem;
}

.theme-setting-copy > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.theme-switch {
  position: relative;
  display: block;
  width: 48px;
  height: 28px;
}

.theme-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.theme-switch-track {
  position: absolute;
  inset: 0;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  background: var(--surface-muted);
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.theme-switch-track > span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease;
}

.theme-switch input:checked + .theme-switch-track {
  border-color: var(--lime-dark);
  background: var(--lime);
}

.theme-switch input:checked + .theme-switch-track > span {
  background: var(--brand-surface);
  transform: translateX(20px);
}

.theme-switch input:focus-visible + .theme-switch-track {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.settings-signout {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.sheet.player-stats-sheet {
  overflow: hidden;
}

.player-stats-modal {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.player-stats-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.player-stats-head {
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.player-stats-toolbar {
  display: grid;
  grid-template-columns: auto minmax(110px, 160px) 1fr;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.player-stats-toolbar label {
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 850;
}

.player-stats-toolbar .select {
  min-height: 40px;
  padding-block: 7px;
}

.player-stats-toolbar > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-align: right;
}

.player-stats-table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(94dvh - var(--safe-top) - 230px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overscroll-behavior: contain;
  scrollbar-color: var(--sheet-handle) transparent;
}

.player-stats-table-scroll:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.player-stats-table {
  width: max-content;
  min-width: 100%;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player-stats-table th,
.player-stats-table td {
  min-width: 76px;
  height: 43px;
  padding: 9px 11px;
  border-right: 1px solid var(--divider-soft);
  border-bottom: 1px solid var(--divider-soft);
  background: var(--card);
  font-size: 0.75rem;
  text-align: right;
}

.player-stats-table tr > :last-child {
  border-right: 0;
}

.player-stats-table tbody tr:last-child > * {
  border-bottom: 0;
}

.player-stats-table thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  height: 39px;
  background: var(--surface-muted);
  color: var(--ink-3);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.player-stats-table tr > :first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  min-width: 48px;
  width: 48px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.player-stats-table thead tr > :first-child {
  z-index: 5;
  background: var(--surface-muted);
}

.player-stats-table .fantasy-points-column {
  position: sticky;
  z-index: 2;
  left: 48px;
  min-width: 92px;
  border-right-color: var(--table-accent-border);
  background: var(--table-accent);
  color: var(--ink);
  font-weight: 900;
}

.player-stats-table thead .fantasy-points-column {
  z-index: 5;
  background: var(--table-accent-strong);
}

.player-stats-table .opponent-column {
  min-width: 76px;
  color: var(--ink-3);
  font-weight: 800;
  text-align: center;
}

.player-stats-table .empty-week td:not(.opponent-column) {
  color: transparent;
}

.player-stats-hint {
  flex: 0 0 auto;
  margin: 8px 1px 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.player-stats-loading,
.player-stats-error {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--muted);
  text-align: center;
}

.player-stats-loading strong,
.player-stats-error strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.player-stats-loading > span:last-child {
  max-width: 300px;
  font-size: 0.76rem;
  line-height: 1.45;
}

.player-stats-loading .loading-spinner {
  display: block;
  width: 46px;
  height: 46px;
  animation: stats-ball-spin 1.1s ease-in-out infinite;
}

.player-stats-error > .icon {
  color: var(--danger);
}

.player-stats-error .secondary-button {
  margin-top: 5px;
}

@keyframes stats-ball-spin {
  50% {
    transform: rotate(22deg) scale(1.04);
  }
}

.toast {
  position: fixed;
  z-index: 100;
  top: auto;
  right: 16px;
  bottom: calc(18px + var(--safe-bottom));
  left: 16px;
  display: flex;
  max-width: 440px;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: var(--ink-2);
  color: #fff;
  box-shadow: 0 16px 40px rgba(1, 18, 27, 0.28);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  pointer-events: none;
  animation: toast-float-in 220ms ease both;
}

.toast.nav-attached {
  z-index: 29;
  bottom: calc(64px + var(--safe-bottom));
  max-width: 456px;
  border-color: rgba(186, 242, 60, 0.24);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: var(--brand-surface);
  box-shadow: 0 -8px 28px rgba(1, 18, 27, 0.22);
  animation-name: toast-rise-from-nav;
}

.toast.success .icon {
  color: var(--lime);
}

.toast.error .icon {
  color: var(--coral);
}

.toast.error.nav-attached {
  border-color: rgba(255, 115, 95, 0.42);
}

.toast.is-leaving {
  animation: toast-float-out 200ms ease-in forwards;
}

.toast.nav-attached.is-leaving {
  animation-name: toast-sink-behind-nav;
}

@keyframes toast-float-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes toast-float-out {
  to {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes toast-rise-from-nav {
  from {
    opacity: 0;
    transform: translateY(calc(100% + 18px));
  }
}

@keyframes toast-sink-behind-nav {
  to {
    opacity: 0;
    transform: translateY(calc(100% + 18px));
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--skeleton);
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--skeleton-highlight), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.live-matchup-page {
  min-height: 100dvh;
  background: var(--paper);
}

.live-page-nav {
  display: flex;
  min-height: calc(62px + var(--safe-top));
  align-items: flex-end;
  justify-content: space-between;
  padding: calc(12px + var(--safe-top)) 18px 12px;
  background: var(--brand-surface);
  color: #fff;
}

.live-page-nav .back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #d7e0e2;
  font-size: 0.8rem;
  font-weight: 800;
}

.live-page-nav .wordmark {
  color: #fff;
  font-size: 0.78rem;
}

.live-page-nav .wordmark-mark {
  width: 25px;
  height: 25px;
  border-radius: 8px;
}

.live-score-hero {
  padding: 13px 18px 14px;
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(180deg, rgba(186, 242, 60, 0.1), transparent 38%),
    var(--brand-surface);
  color: #fff;
}

.live-score-topline,
.live-update-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #aebbc0;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #d7e0e2;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: #89979b;
}

.live-indicator.live {
  border-color: rgba(186, 242, 60, 0.34);
  color: var(--lime);
}

.live-indicator.live i,
.live-indicator.connecting i {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(186, 242, 60, 0.12);
  animation: live-pulse 1.4s ease-in-out infinite;
}

.live-indicator.final i {
  background: var(--blue);
}

@keyframes live-pulse {
  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

.live-score-carousel {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 3px;
  margin: 19px 0 11px;
}

.live-score-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  align-items: center;
  gap: 3px;
}

.live-score-switch {
  display: grid;
  width: 28px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: #d7e0e2;
}

.live-score-switch:disabled {
  visibility: hidden;
}

.live-score-team {
  display: grid;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.live-team-avatar {
  display: grid;
  width: 45px;
  height: 45px;
  margin-bottom: 9px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  color: #d7e0e2;
  font-size: 0.76rem;
  font-weight: 900;
}

.live-team-avatar.mine {
  border-color: rgba(186, 242, 60, 0.5);
  background: var(--lime);
  color: var(--brand-surface);
}

.live-score-team > strong {
  width: 100%;
  overflow: hidden;
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-you-label {
  min-height: 16px;
  margin-top: 2px;
  color: var(--lime);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.live-total {
  max-width: 100%;
  margin-top: 4px;
  font-size: clamp(2rem, 9vw, 2.7rem);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
}

.live-score-team > small {
  margin-top: 4px;
  color: #94a4a9;
  font-size: 0.61rem;
  font-weight: 750;
  text-transform: uppercase;
}

.live-score-divider {
  margin-top: 60px;
  color: #6d7e83;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

.live-update-row {
  min-height: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.62rem;
  white-space: nowrap;
}

.live-refreshing {
  color: var(--lime);
}

.live-matchup-dots {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px 0;
}

.live-matchup-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--sheet-handle);
}

.live-matchup-dots button.active {
  width: 18px;
  background: var(--lime-dark);
}

.live-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(186, 242, 60, 0.18);
  border-radius: 13px;
  background: rgba(186, 242, 60, 0.09);
  color: #dfe8df;
  font-size: 0.72rem;
  line-height: 1.4;
}

.live-message.error {
  border-color: rgba(255, 115, 95, 0.22);
  background: rgba(255, 115, 95, 0.09);
  color: #ffd8d2;
}

.live-lineups {
  padding: 9px 18px 28px;
}

.live-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.live-section-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.live-section-heading > span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
}

.live-comparison-card {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 8px 30px var(--nav-shadow);
}

.live-comparison-header,
.live-comparison-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.live-comparison-header {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
}

.live-comparison-team {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.live-comparison-team.home {
  justify-items: end;
  text-align: right;
}

.live-comparison-team.away {
  justify-items: start;
  text-align: left;
}

.live-comparison-team span,
.live-position-heading {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.live-comparison-team strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-position-heading {
  text-align: center;
}

.live-comparison-row {
  min-height: 66px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--divider-soft);
}

.live-comparison-row:last-child {
  border-bottom: 0;
}

.live-shared-slot {
  display: grid;
  width: 42px;
  min-height: 29px;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--ink-3);
  font-size: 0.59rem;
  font-weight: 900;
}

.live-comparison-player {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.live-comparison-player.home {
  grid-template-columns: minmax(0, 1fr) minmax(34px, auto);
}

.live-comparison-player.away {
  grid-template-columns: minmax(34px, auto) minmax(0, 1fr);
}

.live-comparison-player.empty {
  opacity: 0.52;
}

.live-comparison-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.live-comparison-player.home .live-comparison-copy {
  justify-items: start;
  text-align: left;
}

.live-comparison-player.away .live-comparison-copy {
  grid-column: 2;
  justify-items: end;
  text-align: right;
}

.live-comparison-copy strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-player-name span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  text-decoration: none;
}

.live-player-name .live-player-injury {
  margin-left: 2px;
  font-size: inherit;
  font-style: normal;
  font-weight: 900;
}

.live-player-injury.warning {
  color: var(--warning-text);
}

.live-player-injury.danger {
  color: var(--danger);
}

.live-comparison-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-comparison-points {
  display: block;
  min-width: 34px;
  color: var(--inactive-text);
  text-align: center;
}

.live-comparison-player.away .live-comparison-points {
  grid-column: 1;
  grid-row: 1;
}

.live-comparison-points.has-started {
  color: var(--ink);
}

.live-comparison-points strong {
  display: block;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.live-comparison-points small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1;
}

.live-empty-state {
  display: grid;
  min-height: calc(100dvh - 62px - var(--safe-top));
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 30px 18px;
  color: var(--muted);
  text-align: center;
}

.live-empty-state > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--brand-surface);
  color: var(--lime);
}

.live-empty-state p {
  max-width: 280px;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.live-lineups > .primary-button {
  margin-top: 4px;
}

@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 360px) {
  .live-comparison-header,
  .live-comparison-row {
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    gap: 4px;
  }

  .live-comparison-header,
  .live-comparison-row {
    padding-right: 8px;
    padding-left: 8px;
  }

  .live-shared-slot {
    width: 36px;
  }

  .live-comparison-player {
    gap: 4px;
  }

  .live-comparison-player.home {
    grid-template-columns: minmax(0, 1fr) minmax(31px, auto);
  }

  .live-comparison-player.away {
    grid-template-columns: minmax(31px, auto) minmax(0, 1fr);
  }

  .live-comparison-team span {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }
}

@media (min-width: 560px) {
  body {
    padding: 24px 0;
  }

  .app-shell {
    max-width: 480px;
    min-height: calc(100dvh - 48px);
    border: 1px solid var(--outer-border);
    border-radius: 34px;
    box-shadow: var(--shadow);
  }

  .app-shell.authenticated {
    overflow: hidden;
  }

  .app-header {
    top: 0;
    padding-top: 12px;
  }

  .bottom-nav {
    right: auto;
    left: 50%;
    width: 478px;
    bottom: 24px;
    padding-bottom: 8px;
    border-radius: 0 0 33px 33px;
    transform: translateX(-50%);
  }

  .modal-backdrop {
    align-items: center;
    padding: 24px;
  }

  .sheet {
    max-width: 460px;
    max-height: min(780px, calc(100dvh - 48px));
    border-radius: 26px;
  }

  .sheet-body {
    padding-bottom: 20px;
  }

  .sheet.player-stats-sheet {
    width: min(920px, calc(100vw - 48px));
    max-width: 920px;
  }

  .toast {
    right: auto;
    bottom: 42px;
    left: 50%;
    width: min(440px, calc(100% - 64px));
    transform: translateX(-50%);
  }

  .toast.nav-attached {
    bottom: 88px;
    width: 454px;
  }

  @keyframes toast-float-in {
    from {
      opacity: 0;
      transform: translate(-50%, 12px);
    }
    to {
      transform: translateX(-50%);
    }
  }

  @keyframes toast-float-out {
    from {
      transform: translateX(-50%);
    }
    to {
      opacity: 0;
      transform: translate(-50%, 12px);
    }
  }

  @keyframes toast-rise-from-nav {
    from {
      opacity: 0;
      transform: translate(-50%, calc(100% + 18px));
    }
    to {
      transform: translateX(-50%);
    }
  }

  @keyframes toast-sink-behind-nav {
    from {
      transform: translateX(-50%);
    }
    to {
      opacity: 0;
      transform: translate(-50%, calc(100% + 18px));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
