@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --paper: #f1ede5;
  --surface: #fffdf9;
  --surface-muted: #e9e2d7;
  --ink: #181715;
  --ink-soft: #56514a;
  --ink-faded: #8a8277;
  --line: #d6cec0;
  --red: #c8332b;
  --red-dark: #9f2823;
  --gold: #d7a43a;
  --green: #1f6b5a;
  --blue: #4167a9;
  --purple: #7456a8;
  --shadow: 0 16px 36px rgba(38, 29, 18, 0.08), 0 2px 5px rgba(38, 29, 18, 0.05);
  --shadow-small: 0 8px 18px rgba(38, 29, 18, 0.07), 0 1px 3px rgba(38, 29, 18, 0.05);
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'DM Sans', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(200, 51, 43, 0.3);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1220px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(24, 23, 21, 0.14);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--ink-faded);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.topbar-actions,
.account-button,
.schedule-actions,
.utility-row,
.date-toolbar {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 8px;
}

.icon-button,
.round-button,
.date-picker-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  transition-property: background-color, color, transform, border-color;
  transition-duration: 180ms;
}

.icon-button:hover,
.round-button:hover,
.date-picker-button:hover {
  color: var(--surface);
  border-color: var(--ink);
  background: var(--ink);
}

.icon-button:active,
.round-button:active,
.date-picker-button:active,
.red-button:active,
.today-button:active,
.filter-button:active,
.text-button:active,
.account-button:active {
  transform: scale(0.96);
}

[data-icon] {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

[data-icon] svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.account-button {
  gap: 8px;
  min-height: 44px;
  padding: 3px 10px 3px 4px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition-property: background-color, color, transform;
  transition-duration: 180ms;
}

.account-button:hover {
  background: var(--surface-muted);
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--surface);
  background: var(--red);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
}

.account-label {
  font-size: 13px;
  font-weight: 700;
}

.account-button [data-icon] {
  width: 14px;
  height: 14px;
  color: var(--ink-faded);
}

.main-content {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.intro-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(200, 51, 43, 0.12);
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(52px, 8vw, 86px);
  line-height: 0.9;
}

.intro-copy {
  max-width: 360px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.season-stamp {
  display: grid;
  align-content: end;
  justify-items: end;
  color: var(--red);
  transform: rotate(-4deg);
}

.season-stamp span:first-child {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.season-stamp strong {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 800;
  line-height: 0.8;
}

.season-stamp strong span {
  color: var(--gold);
  font-size: 0.58em;
}

.date-toolbar {
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.date-heading {
  display: grid;
  gap: 2px;
  margin-right: auto;
  min-width: 0;
}

.date-heading-kicker {
  color: var(--ink-faded);
  font-size: 12px;
  font-weight: 700;
}

.date-heading strong {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
  white-space: nowrap;
}

.today-button,
.filter-button,
.text-button,
.clear-filter,
.switch-auth {
  background: transparent;
  transition-property: color, background-color, transform;
  transition-duration: 180ms;
}

.today-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--red);
  border: 1px solid rgba(200, 51, 43, 0.35);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.today-button:hover {
  color: var(--surface);
  background: var(--red);
}

.date-picker-button {
  cursor: pointer;
}

.date-picker-wrap {
  position: relative;
  flex: 0 0 auto;
}

.date-picker-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: min(320px, calc(100vw - 28px));
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(38, 29, 18, 0.18), 0 2px 6px rgba(38, 29, 18, 0.08);
}

.date-picker-head {
  display: grid;
  grid-template-columns: 34px 1fr 34px 34px;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
}

.date-picker-head strong {
  text-align: center;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
}

.calendar-nav,
.calendar-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink-soft);
  background: transparent;
  border-radius: 50%;
}

.calendar-nav:hover,
.calendar-close:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.calendar-nav:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-weekdays {
  padding: 0 2px 6px;
  color: var(--ink-faded);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 38px;
  padding: 4px 2px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

button.calendar-day:hover:not(:disabled) {
  border-color: var(--line);
  background: var(--paper);
}

.calendar-day.is-selected {
  color: var(--surface);
  background: var(--ink);
}

.calendar-day:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.calendar-day small {
  position: absolute;
  right: 4px;
  bottom: 2px;
  color: var(--gold);
  font-size: 8px;
  line-height: 1;
}

.calendar-day.has-match::after {
  position: absolute;
  bottom: 3px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  content: '';
}

.calendar-day-empty {
  pointer-events: none;
}

.date-picker-scrim {
  position: fixed;
  z-index: 39;
  inset: 0;
  background: transparent;
}

body.date-picker-open {
  overflow: hidden;
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 16px 0 2px;
}

.date-tile {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 11px 8px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: center;
  transition-property: color, background-color, border-color, transform;
  transition-duration: 180ms;
}

.date-tile:hover {
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.5);
}

.date-tile.is-selected {
  color: var(--surface);
  background: var(--ink);
  box-shadow: var(--shadow-small);
}

.date-tile:active {
  transform: scale(0.98);
}

.date-tile .date-week {
  font-size: 11px;
  font-weight: 700;
}

.date-tile .date-number {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  line-height: 0.9;
}

.date-tile .date-games {
  color: var(--ink-faded);
  font-size: 10px;
  font-weight: 700;
}

.date-tile.is-selected .date-games {
  color: var(--gold);
}

.utility-row {
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 24px;
}

.time-zone-note,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink-faded);
  font-size: 12px;
  font-weight: 700;
}

.time-zone-note [data-icon] {
  color: var(--green);
}

.text-button {
  padding: 0;
  color: var(--red);
}

.text-button:hover,
.clear-filter:hover,
.switch-auth:hover {
  color: var(--red-dark);
}

.content-grid {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 20px;
}

.side-section + .side-section {
  margin-top: 32px;
}

.side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.side-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.manage-button {
  min-height: 40px;
  padding: 0 4px;
  color: var(--red);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.manage-button:hover {
  color: var(--red-dark);
}

.count-badge {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  color: var(--surface);
  background: var(--red);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.favorite-list,
.league-list {
  display: grid;
  gap: 3px;
  padding-top: 9px;
}

.side-empty {
  padding: 12px 8px;
  color: var(--ink-faded);
  font-size: 11px;
}

.favorite-item,
.league-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 8px;
  color: var(--ink-soft);
  background: transparent;
  border-radius: 4px;
  text-align: left;
  transition-property: color, background-color, transform;
  transition-duration: 180ms;
}

.favorite-item {
  width: 100%;
  padding: 3px 4px;
}

.favorite-link,
.league-filter {
  display: flex;
  align-items: center;
  min-width: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.favorite-link {
  flex: 1;
  gap: 10px;
  min-height: 36px;
  padding: 3px 4px;
}

.league-filter {
  flex: 1;
  gap: 10px;
  min-height: 42px;
  padding: 6px 8px;
}

.favorite-link:hover,
.league-filter:hover {
  color: var(--ink);
}

.favorite-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--ink-faded);
  background: transparent;
  border-radius: 50%;
}

.favorite-toggle:hover,
.favorite-toggle.is-active {
  color: var(--gold);
  background: rgba(215, 164, 58, 0.12);
}

.favorite-toggle.is-active [data-icon] svg {
  fill: currentColor;
}

.favorite-item:hover,
.league-item:hover,
.league-item.is-selected {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.favorite-item:active,
.league-item:active {
  transform: scale(0.98);
}

.favorite-team-mark,
.league-swatch {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--surface);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.favorite-team-mark {
  background: var(--team-color, var(--ink));
}

.favorite-copy,
.league-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.favorite-copy strong,
.league-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-copy small,
.league-copy small {
  color: var(--ink-faded);
  font-size: 10px;
  font-weight: 600;
}

.favorite-toggle [data-icon] {
  width: 14px;
  height: 14px;
}

.league-item {
  width: 100%;
  padding: 0;
}

.league-swatch {
  width: 12px;
  height: 12px;
  background: var(--league-color, var(--ink));
}

.league-item .league-copy {
  flex: 1;
}

.league-item .league-count {
  color: var(--ink-faded);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.clear-filter {
  padding: 0;
  color: var(--ink-faded);
  font-size: 10px;
  font-weight: 700;
}

.data-status {
  display: flex;
  gap: 10px;
  margin-top: 36px;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
}

.status-mark {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.data-status div {
  display: grid;
  gap: 3px;
}

.data-status strong {
  font-size: 10px;
  font-weight: 800;
}

.data-status small {
  color: var(--ink-faded);
  font-size: 10px;
  line-height: 1.4;
}

.schedule-panel {
  min-width: 0;
}

.schedule-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.schedule-header h2 {
  margin-top: 5px;
  font-size: 38px;
  line-height: 0.95;
}

.schedule-header h2 span {
  color: var(--ink-faded);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.schedule-actions {
  gap: 7px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 11px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--red);
  border-color: rgba(200, 51, 43, 0.45);
}

.filter-button.is-active [data-icon] {
  fill: var(--gold);
  color: var(--gold);
}

.filter-icon-button {
  width: 40px;
  justify-content: center;
  padding: 0;
}

.search-drawer {
  padding: 14px 0 4px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.search-field > [data-icon] {
  color: var(--ink-faded);
}

.search-field input {
  min-width: 0;
  flex: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 13px;
}

.search-field button,
.pinned-banner button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink-faded);
  background: transparent;
  border-radius: 50%;
}

.search-field button:hover,
.pinned-banner button:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.pinned-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 9px 10px;
  color: var(--red-dark);
  background: rgba(215, 164, 58, 0.14);
  border-left: 3px solid var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.pinned-banner .pinned-icon {
  color: var(--gold);
}

.pinned-banner button {
  width: 25px;
  height: 25px;
  margin-left: auto;
}

.match-groups {
  display: grid;
  gap: 26px;
  padding-top: 22px;
}

.match-group {
  display: grid;
  gap: 8px;
}

.league-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 24px;
  color: var(--ink-soft);
}

.league-heading .league-swatch {
  width: 10px;
  height: 10px;
}

.league-heading strong {
  font-size: 11px;
  font-weight: 800;
}

.league-heading small {
  color: var(--ink-faded);
  font-size: 10px;
  font-weight: 700;
}

.league-heading .league-rule {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.season-date-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  color: var(--ink-soft);
}

.season-date-heading strong {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.season-date-heading small {
  color: var(--ink-faded);
  font-size: 10px;
  font-weight: 700;
}

.season-date-heading .league-rule {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.match-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 100px 40px;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: var(--shadow-small);
  transition-property: border-color, box-shadow, transform;
  transition-duration: 180ms;
}

.match-row:hover {
  border-color: rgba(200, 51, 43, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.match-row.is-pinned {
  border-color: rgba(215, 164, 58, 0.65);
}

.match-time {
  display: grid;
  gap: 3px;
}

.match-time strong {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 800;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.match-time small {
  color: var(--ink-faded);
  font-size: 9px;
  font-weight: 700;
}

.teams {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.team-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-line strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-badge {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--surface);
  background: var(--team-color, var(--ink));
  border-radius: 50%;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
}

.match-note {
  justify-self: end;
  min-width: 0;
  color: var(--ink-faded);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.match-note strong {
  display: block;
  overflow: hidden;
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-note span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-search-group .match-note strong {
  color: var(--red-dark);
}

.season-search-group .match-row {
  animation: season-result-in 220ms ease-out both;
}

.season-search-group .match-row:nth-child(2) {
  animation-delay: 35ms;
}

.season-search-group .match-row:nth-child(3) {
  animation-delay: 70ms;
}

.season-search-group .match-row:nth-child(4) {
  animation-delay: 105ms;
}

.season-search-group .match-row:nth-child(5) {
  animation-delay: 140ms;
}

.season-search-group .match-row:nth-child(n + 6) {
  animation-delay: 175ms;
}

@keyframes season-result-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-reminder {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink-faded);
  background: transparent;
  border-radius: 50%;
  transition-property: color, background-color, transform;
  transition-duration: 180ms;
}

.match-reminder:hover {
  color: var(--red);
  background: rgba(200, 51, 43, 0.08);
}

.match-reminder.is-active {
  color: var(--red);
}

.match-reminder.is-active [data-icon] {
  fill: rgba(200, 51, 43, 0.18);
}

.match-reminder:active {
  transform: scale(0.96);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 70px 20px;
  color: var(--ink-faded);
  text-align: center;
}

.empty-state strong {
  color: var(--ink-soft);
  font-size: 14px;
}

.empty-state > span:last-child {
  font-size: 12px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--red);
  border: 1px solid rgba(200, 51, 43, 0.35);
  border-radius: 50%;
}

.mobile-next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding: 20px;
  color: var(--surface);
  background: var(--ink);
  border-radius: 6px;
}

.mobile-next-card .section-kicker {
  color: var(--gold);
  font-size: 9px;
}

.mobile-next-card strong {
  display: block;
  margin: 7px 0 4px;
  font-family: var(--display);
  font-size: 24px;
  line-height: 0.95;
}

.mobile-next-card p {
  max-width: 420px;
  margin: 0;
  color: #b8b1a6;
  font-size: 11px;
  line-height: 1.45;
}

.red-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--surface);
  background: var(--red);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  transition-property: background-color, transform, box-shadow;
  transition-duration: 180ms;
}

.red-button:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 14px rgba(159, 40, 35, 0.24);
}

.red-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.full-button {
  width: 100%;
}

.bottom-nav {
  display: none;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(24, 23, 21, 0.45);
}

.modal {
  position: fixed;
  z-index: 21;
  top: 50%;
  left: 50%;
  width: min(430px, calc(100% - 32px));
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(24, 23, 21, 0.22);
  transform: translate(-50%, -50%);
}

.favorites-modal {
  width: min(520px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: hidden;
}

.favorites-search {
  margin-bottom: 18px;
}

.favorite-manager {
  display: grid;
  gap: 20px;
  max-height: min(510px, calc(100vh - 290px));
  overflow: auto;
  padding-right: 4px;
}

.manager-section {
  min-width: 0;
}

.manager-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.manager-heading strong {
  font-size: 12px;
  font-weight: 800;
}

.manager-heading small {
  color: var(--ink-faded);
  font-size: 10px;
  font-weight: 700;
}

.manager-list {
  display: grid;
  gap: 2px;
  padding-top: 6px;
}

.manager-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 5px 4px 5px 8px;
  border-radius: 4px;
}

.manager-item:hover {
  background: var(--paper);
}

.manager-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

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

.manager-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-copy small {
  overflow: hidden;
  color: var(--ink-faded);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink-faded);
  background: transparent;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.modal-logo {
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(24, 23, 21, 0.14);
  border-radius: 50%;
}

.modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal h2 {
  margin-top: 6px;
  font-size: 36px;
  line-height: 0.95;
}

.modal-copy {
  margin: 12px 0 24px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label > span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
}

.auth-form input:focus {
  border-color: var(--red);
  outline: 0;
}

.form-note {
  margin: 14px 0 0;
  color: var(--ink-faded);
  font-size: 10px;
  line-height: 1.5;
}

.switch-auth {
  display: block;
  margin-top: 20px;
  padding: 0;
  color: var(--ink-faded);
  font-size: 11px;
}

.switch-auth strong {
  color: var(--red);
}

.reminder-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reminder-setting div {
  display: grid;
  gap: 5px;
}

.reminder-setting strong,
.reminder-options > span {
  font-size: 12px;
  font-weight: 800;
}

.reminder-setting span,
.reminder-options > span {
  color: var(--ink-faded);
  font-size: 11px;
}

.toggle {
  position: relative;
  width: 50px;
  height: 30px;
  padding: 3px;
  background: var(--line);
  border-radius: 18px;
  transition-property: background-color;
  transition-duration: 180ms;
}

.toggle span {
  display: block;
  width: 24px;
  height: 24px;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(24, 23, 21, 0.16);
  transition-property: transform;
  transition-duration: 180ms;
}

.toggle.is-on {
  background: var(--green);
}

.toggle.is-on span {
  transform: translateX(20px);
}

.reminder-options {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.segmented-control button {
  min-height: 35px;
  color: var(--ink-faded);
  background: transparent;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
}

.segmented-control button:hover,
.segmented-control button.is-selected {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.toast {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--surface);
  background: var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  animation: toast-in 220ms ease-out;
}

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

.is-hidden {
  display: none !important;
}

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

@media (max-width: 860px) {
  .topbar,
  .main-content {
    width: min(100% - 28px, 680px);
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .schedule-panel {
    order: 1;
  }

  .sidebar {
    order: 2;
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .side-section + .side-section {
    margin-top: 0;
  }

  .data-status {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 74px;
  }

  .topbar {
    min-height: 68px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy small,
  .account-label,
  .account-button > [data-icon] {
    display: none;
  }

  .account-button {
    padding: 3px;
    border: 0;
    background: transparent;
  }

  .topbar-actions {
    gap: 2px;
  }

  .topbar-actions .icon-button {
    width: 40px;
    height: 40px;
    border-color: transparent;
  }

  .main-content {
    width: min(100% - 28px, 520px);
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .intro-row {
    align-items: flex-start;
    margin-bottom: 24px;
  }

  h1 {
    max-width: 250px;
    font-size: 54px;
  }

  .intro-copy {
    max-width: 250px;
    margin-top: 12px;
    font-size: 13px;
  }

  .season-stamp {
    display: none;
  }

  .date-toolbar {
    gap: 9px;
  }

  .date-heading strong {
    font-size: 23px;
  }

  .date-heading-kicker {
    font-size: 11px;
  }

  .round-button {
    width: 40px;
    height: 40px;
  }

  .date-picker-button {
    width: 40px;
    height: 40px;
  }

  .today-button {
    padding: 0 9px;
    font-size: 10px;
  }

  .date-strip {
    gap: 4px;
    padding-top: 12px;
  }

  .date-tile {
    min-height: 66px;
    padding: 9px 3px;
  }

  .date-tile .date-number {
    font-size: 24px;
  }

  .date-tile .date-games {
    font-size: 9px;
  }

  .utility-row {
    padding: 12px 0 16px;
  }

  .time-zone-note {
    font-size: 10px;
  }

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

  .schedule-header {
    align-items: flex-start;
  }

  .schedule-header h2 {
    font-size: 34px;
  }

  .filter-button:not(.filter-icon-button) {
    padding: 0 9px;
    font-size: 10px;
  }

  .match-row {
    grid-template-columns: 55px minmax(0, 1fr) 32px;
    gap: 9px;
    min-height: 74px;
    padding: 10px 9px;
  }

  .match-time strong {
    font-size: 23px;
  }

  .match-note {
    display: none;
  }

  .team-line strong {
    font-size: 12px;
  }

  .match-reminder {
    width: 32px;
    height: 40px;
  }

  .mobile-next-card {
    display: grid;
    gap: 16px;
    margin-bottom: 12px;
    padding: 18px;
  }

  .mobile-next-card .red-button {
    width: 100%;
  }

  .bottom-nav {
    position: fixed;
    z-index: 10;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 66px;
    padding: 6px 10px max(6px, env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(38, 29, 18, 0.07);
    backdrop-filter: blur(12px);
  }

  .nav-item {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-height: 52px;
    color: var(--ink-faded);
    background: transparent;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
  }

  .nav-item [data-icon] {
    width: 18px;
    height: 18px;
  }

  .nav-item.is-active {
    color: var(--red);
    background: rgba(200, 51, 43, 0.07);
  }

  .modal {
    padding: 28px 22px;
  }

  .date-picker-scrim {
    background: rgba(24, 23, 21, 0.2);
  }

  .date-picker-popover {
    position: fixed;
    top: auto;
    right: 14px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
    max-height: min(72vh, 520px);
    overflow: auto;
    padding: 18px;
    border-radius: 12px;
  }

  .date-picker-head {
    grid-template-columns: 38px 1fr 38px 38px;
    gap: 8px;
    padding-bottom: 14px;
  }

  .calendar-nav,
  .calendar-close {
    width: 38px;
    height: 38px;
  }

  .calendar-day {
    min-height: 42px;
  }
}

@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;
  }
}
