:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: #202322;
  background: #f5f5f3;
  font-size: 15px;
  --secondary: #717571;
  --gold: #e4be5f;
  --line: #f0f0eb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
}
.app {
  max-width: 740px;
  margin: 0 auto;
  padding: 30px 24px 22px;
}
.app-header {
  display: flex;
  align-items: center;
  padding: 0 2px 24px;
}
.app-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #232725;
  color: var(--gold);
  box-shadow: 0 3px 6px #19251c12;
}
.app-icon svg {
  width: 26px;
  height: 26px;
}
h1 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.7px;
  line-height: 29px;
  font-weight: 650;
}
.app-header p {
  margin: 3px 0 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 18px;
}
.season-card {
  border-radius: 22px;
  padding: 20px 22px 16px;
  background: #242826;
  color: #fff;
  box-shadow:
    0 6px 16px #1d272017,
    inset 0 1px 0 #ffffff0b;
  font-variant-numeric: tabular-nums;
}
.seat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #bdc2bd;
}
.seat-line strong {
  color: #f4f5f0;
  font-weight: 600;
}
.separator {
  padding: 0 8px;
  color: #828781;
}
.seat-count {
  font-size: 11px;
  color: #d6dad4;
  background: #ffffff0c;
  padding: 5px 8px;
  border: 1px solid #ffffff12;
  border-radius: 7px;
}
.totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 21px;
}
.totals > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.totals > div + div {
  border-left: 1px solid #ffffff19;
  padding-left: 24px;
}
.totals span {
  color: #b7bdb6;
  font-size: 12px;
}
.totals strong {
  font-size: 26px;
  letter-spacing: -0.6px;
  font-weight: 600;
}
.totals .pair-total {
  color: #f2d082;
}
.season-context {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #b7bdb6;
  border-top: 1px solid #ffffff15;
  padding-top: 14px;
  margin: 17px 0 0;
}
#schedule {
  scroll-margin-top: 10px;
}
.schedule-controls {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-top: 23px;
  background: #f5f5f3f5;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.schedule-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
h2 {
  font-size: 19px;
  line-height: 26px;
  letter-spacing: -0.4px;
  font-weight: 650;
  margin: 0;
}
.month-filter {
  position: relative;
  display: flex;
  align-items: center;
}
.month-filter select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #555b54;
  border: 0;
  border-radius: 9px;
  padding: 10px 24px 10px 10px;
  min-height: 44px;
  max-width: 190px;
  font-size: 12px;
  cursor: pointer;
}
.month-filter svg {
  position: absolute;
  pointer-events: none;
  right: 3px;
  width: 16px;
  height: 16px;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  isolation: isolate;
  border-radius: 13px;
  padding: 4px;
  background: #e9eae6;
}
.segment-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 2px 5px #1b252312,
    0 0 1px #1b252312;
  z-index: -1;
}
.filters[data-active="dad"] .segment-indicator {
  transform: translateX(100%);
}
.filters button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  color: #6d736a;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  color: #252924;
  font-weight: 600;
}
.filters button span {
  margin-left: 5px;
  font-size: 11px;
  padding: 2px 5px;
  background: #dcded766;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.filters button[aria-pressed="true"] span {
  background: #f0f0eb;
}
.filters button:hover {
  color: #202322;
}
.list-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px 12px;
  font-size: 11px;
  color: var(--secondary);
}
.list-meta p {
  margin: 0;
}
button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid #916b19;
  outline-offset: 3px;
}
table {
  display: block;
  width: 100%;
  font-variant-numeric: tabular-nums;
  border-collapse: collapse;
}
.month-group {
  display: block;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 2px 7px #27302806,
    0 0 0 1px #e9ebe58a;
  overflow: hidden;
}
.month {
  display: block;
}
.month th {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding: 16px 18px 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.month-count {
  font-size: 11px;
  font-weight: 400;
  color: #7a8077;
  letter-spacing: 0;
}
.game {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 98px;
  align-items: center;
  min-height: 77px;
  margin: 0 16px;
  position: relative;
}
.game + .game {
  border-top: 1px solid var(--line);
}
.game:last-child {
  margin-bottom: 6px;
}
.game td,
.game th {
  padding: 12px 0;
  min-width: 0;
  text-align: left;
  font-weight: 400;
}
time {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  min-height: 49px;
  border-radius: 12px;
  background: #f3f4f0;
  gap: 1px;
}
time > span {
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
  color: #747b6f;
}
time strong {
  font-size: 21px;
  line-height: 25px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.opponent {
  display: block;
  font-size: 15px;
  line-height: 21px;
  font-weight: 550;
  letter-spacing: -0.25px;
}
.star {
  font-size: 12px;
}
.game-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin-top: 4px;
}
.game-details:empty {
  display: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #806016;
  background: #f9efd5;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 10px;
  line-height: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.pick-mark {
  font-size: 10px;
}
.note {
  font-size: 11px;
  line-height: 17px;
  color: #70776c;
}
.game .price {
  text-align: right;
  padding-left: 7px;
  font-weight: 550;
  font-size: 15px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.game.dad time {
  background: #f8eac4;
}
.game.dad time > span {
  color: #82662b;
}
.game.dad time strong {
  color: #624c1e;
}
.game.dad .opponent {
  color: #252922;
  font-weight: 600;
}
.notes {
  padding: 1px 3px 8px;
  color: #7a8077;
  font-size: 11px;
  line-height: 18px;
}
.notes p {
  margin: 10px 0;
}
.empty-state {
  background: #fff;
  border-radius: 18px;
  padding: 26px 18px;
  text-align: center;
  font-size: 14px;
  color: var(--secondary);
}
.empty-state button {
  display: block;
  margin: 12px auto 0;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 15px;
  background: #252924;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  top: -80px;
  padding: 12px;
  background: white;
  z-index: 10;
  color: #202322;
}
.skip:focus {
  top: 5px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .app {
    padding: 22px 18px 16px;
  }
  .app-header {
    padding: 0 1px 21px;
  }
  h1 {
    font-size: 22px;
  }
  .app-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .season-card {
    padding: 17px 17px 14px;
    border-radius: 20px;
  }
  .seat-line {
    font-size: 12px;
    gap: 5px;
  }
  .seat-count {
    display: none;
  }
  .separator {
    padding: 0 7px;
  }
  .totals {
    gap: 13px;
    margin-top: 19px;
  }
  .totals > div + div {
    padding-left: 17px;
  }
  .totals strong {
    font-size: 23px;
  }
  .totals span {
    font-size: 11px;
  }
  .season-context {
    font-size: 10px;
    gap: 6px;
    margin-top: 16px;
    padding-top: 13px;
  }
  .schedule-controls {
    padding-top: 15px;
  }
  .schedule-heading {
    margin-bottom: 7px;
  }
  .game {
    grid-template-columns: 56px minmax(0, 1fr) 83px;
    margin-inline: 14px;
  }
  .month th {
    padding: 15px 15px 10px;
    font-size: 13px;
  }
  .opponent {
    font-size: 14px;
  }
  .game .price {
    font-size: 14px;
  }
  .month-group {
    border-radius: 17px;
    margin-bottom: 16px;
  }
}
@media (max-width: 350px) {
  .app {
    padding-inline: 12px;
  }
  .totals strong {
    font-size: 21px;
  }
  .game {
    grid-template-columns: 50px minmax(0, 1fr) 74px;
    margin-inline: 12px;
  }
  .game .price {
    font-size: 13px;
  }
  .opponent {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .segment-indicator {
    transition: transform 230ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .filters button {
    transition: color 160ms;
  }
}
@media print {
  :root {
    background: white;
  }
  .app {
    max-width: none;
    padding: 0;
  }
  .season-card {
    color: #202322;
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
  }
  .season-card span,
  .season-card strong,
  .season-context {
    color: #202322;
  }
  .filters,
  .month-filter,
  .skip,
  .empty-state,
  .list-meta {
    display: none !important;
  }
  .schedule-controls {
    position: static;
    background: white;
  }
  .month-group {
    break-inside: avoid;
    border: 1px solid #ddd;
    box-shadow: none;
  }
  .month-group[hidden] {
    display: block !important;
  }
  .game[hidden] {
    display: grid !important;
  }
}
/* Reflow at high zoom without shrinking readable text. */
.app {
  container-type: inline-size;
}
@container (max-width: 280px) {
  .app-icon {
    display: none;
  }
  .app-identity {
    min-width: 0;
  }
  .seat-line {
    line-height: 21px;
  }
  .totals {
    grid-template-columns: minmax(0, 1fr);
  }
  .totals > div + div {
    border-left: 0;
    border-top: 1px solid #ffffff19;
    padding: 12px 0 0;
  }
  .season-context {
    flex-direction: column;
  }
  .schedule-heading {
    flex-wrap: wrap;
  }
  .month-filter {
    width: 100%;
  }
  .month-filter select {
    max-width: 100%;
    width: 100%;
  }
  .filters button {
    font-size: 12px;
    padding: 5px;
  }
  .list-meta {
    flex-wrap: wrap;
  }
  .month th {
    flex-wrap: wrap;
    gap: 5px;
  }
  .game {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .game td:first-child {
    grid-row: 1 / span 2;
    align-self: start;
  }
  .game th {
    padding-bottom: 4px;
  }
  .game .price {
    grid-column: 2;
    text-align: left;
    padding: 0 0 12px;
  }
  .schedule-controls {
    position: static;
  }
}
@media print {
  .month-count {
    display: none;
  }
}
/* One pricing mode controls the entire screen. */
.pricing-control {
  display: flex;
  align-items: center;
  gap: 6px;
}
.list-meta {
  align-items: center;
  padding-block: 4px;
}
#price-toggle {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 44px;
  border: 0;
  padding: 0 2px;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.switch-track {
  display: block;
  width: 38px;
  height: 24px;
  padding: 3px;
  border-radius: 20px;
  background: #d9dcd5;
}
.switch-track > span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #20232225;
}
#price-toggle[aria-checked="true"] .switch-track {
  background: #c39c40;
}
#price-toggle[aria-checked="true"] .switch-track > span {
  transform: translateX(14px);
}
.month-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fafbf8;
}
.month-total th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  color: #68705f;
}
.subtotal-unit {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
  color: var(--secondary);
}
.month-total td {
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.print-month-subtotal,
.print-subtotal-label {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .switch-track {
    transition: background 180ms;
  }
  .switch-track > span {
    transition: transform 180ms ease;
  }
}
@media print {
  #price-toggle,
  .month-subtotal,
  .subtotal-label {
    display: none;
  }
  .print-month-subtotal,
  .print-subtotal-label {
    display: inline;
  }
}
