* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f7f0;
  color: #202e25;
  font:
    15px/1.5 "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
.button {
  cursor: pointer;
}
button {
  color: inherit;
}
header {
  background: #fffef9;
  border-bottom: 1px solid #d9ded2;
}
.bar,
main,
footer {
  width: min(1232px, 92%);
  margin: auto;
}
.bar {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 5%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #183f2b;
}
.brand span {
  font:
    900 17px/0.93 "Arial Black",
    Arial,
    sans-serif;
  letter-spacing: -0.7px;
}
.bar nav {
  display: flex;
  align-self: stretch;
  gap: 24px;
}
.bar nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #626a60;
  border-bottom: 3px solid transparent;
  padding: 3px 2px 0;
}
.bar nav a.active {
  color: #235036;
  border-color: #416c43;
}
.icon {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.account,
.btn,
.button {
  border: 1px solid #cbd2c5;
  background: #fffef8;
  border-radius: 7px;
  padding: 9px 15px;
  font-weight: 650;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.account {
  margin-left: auto;
  white-space: nowrap;
}
.btn.primary {
  background: #234e36;
  color: white;
  border-color: #234e36;
}
button:hover,
.button:hover {
  filter: brightness(0.95);
}
main {
  min-height: 70vh;
  padding: 33px 0 40px;
}
.titlebar,
.panelhead,
.row,
.spread,
.actions,
.meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.titlebar,
.panelhead,
.spread {
  justify-content: space-between;
}
.heading-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.eyebrow,
.badge,
.datebox small,
.tablehead,
.rankhead,
.mini {
  font:
    700 10px/1.4 "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #48674a;
}
.eyebrow:before {
  content: "";
  height: 2px;
  width: 23px;
  background: #678954;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 720;
  letter-spacing: -2.4px;
  line-height: 1.17;
  margin: 4px 0 7px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.9px;
  line-height: 1.22;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
}
.sub,
.muted,
.meta {
  color: #606a60;
}
.location {
  font-size: 13px;
  color: #5a6759;
}
.titlebar {
  margin-bottom: 24px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 15px;
  background: #123d2b;
  color: #fffdf0;
  min-height: 285px;
  padding: 32px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 44, 30, 0.96) 1%,
    rgba(5, 43, 28, 0.83) 32%,
    transparent 65%
  );
  z-index: -1;
}
.badge {
  background: #dfedac;
  color: #284532;
  padding: 5px 10px;
  border-radius: 5px;
  letter-spacing: 1.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge .icon {
  width: 13px;
  height: 13px;
}
.hero h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -2.6px;
  margin: 13px 0 9px;
  max-width: 65%;
}
.hero p {
  color: #e3e9d8;
  font-size: 16px;
}
.meta {
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}
.hero .meta {
  color: #f3f5e5;
  margin: 16px 0 21px;
}
.meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hero .button {
  border: 0;
  color: #213b27;
  background: #e2efbb;
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  gap: 22px;
  margin-top: 23px;
}
.panel {
  border: 1px solid #d8ddd0;
  border-radius: 12px;
  background: #fffef9;
  overflow: hidden;
}
.panelhead {
  padding: 21px 23px 17px;
}
.panelhead h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.panelhead h2 .icon {
  color: #52724c;
  width: 21px;
  height: 21px;
}
.link {
  background: none;
  border: 0;
  padding: 2px;
  color: #365c3a;
  font-weight: 650;
  font-size: 13px;
  white-space: nowrap;
}
.eventrow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid #e2e5db;
  margin: 0 23px;
}
.eventrow:hover h3,
.link:hover {
  text-decoration: underline;
}
.datebox {
  display: grid;
  text-align: center;
  align-content: center;
  flex-shrink: 0;
  width: 55px;
  height: 57px;
  border-radius: 8px;
  background: #eef2e3;
  color: #3c5635;
}
.datebox small {
  font-size: 10px;
  letter-spacing: 1.25px;
}
.datebox b {
  font-size: 23px;
  line-height: 1.1;
}
.eventrow .meta {
  font-size: 12px;
  margin-top: 4px;
  gap: 10px;
}
.eventrow > .icon {
  margin-left: auto;
  color: #667760;
}
.division-heading {
  padding: 14px 18px 7px;
}
.standings-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.standings-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.standings-table th,
.standings-table td {
  padding: 10px 8px;
  text-align: right;
  border-bottom: 1px solid #e4e8dd;
}
.standings-table thead th {
  font-size: 12px;
  line-height: 1.2;
  color: #4c584b;
  background: #f1f3e9;
}
.standings-table th:first-child {
  text-align: left;
  padding-left: 16px;
}
.league-standings {
  --stat-min-width: 2.75rem;
  table-layout: fixed;
  min-width: 21rem;
}
.league-standings[data-detailed] {
  --stat-min-width: 3.5rem;
  min-width: 32.5rem;
}
.league-standings thead th:not(:first-child) {
  width: clamp(var(--stat-min-width), 7vw, 5rem);
}
.standings-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fffef9;
  overflow-wrap: anywhere;
  min-width: 72px;
}
.standings-table small {
  display: block;
  font-weight: 400;
  color: #586658;
}
.standings-table .cut-cell {
  border: 0;
  padding: 3px 9px;
}
.cutoff {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #365637;
  font-size: 12px;
  font-weight: 650;
}
.cutoff::before,
.cutoff::after {
  content: "";
  flex: 1;
  border-top: 1px dashed #698062;
}
.cutoff-beyond {
  font-size: 13px;
  padding: 10px 16px;
  color: #365637;
}
.qr-card {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.qr-card img {
  width: min(100%, 290px);
  height: auto;
}
.qr-card a,
.qr-card p {
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .standings-table {
    font-size: 12px;
  }
  .standings-table th,
  .standings-table td {
    padding: 9px 4px;
  }
  .standings-table th:first-child {
    padding-left: 8px;
  }
  .standings-table thead th {
    font-size: 11px;
  }
}
.section {
  margin-top: 22px;
}
.content {
  padding: 22px;
}
.actions {
  flex-wrap: wrap;
  margin: 14px 0;
}
.pill {
  border-radius: 20px;
  background: #ebf1df;
  color: #45633d;
  font-weight: 600;
  font-size: 12px;
  padding: 4px 9px;
}
.filters {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.filters button {
  border: 1px solid #cdd4c7;
  background: transparent;
  border-radius: 20px;
  padding: 6px 15px;
}
.filters .active {
  background: #234e36;
  color: white;
}
.empty {
  padding: 20px;
  color: #687162;
}
.form {
  display: grid;
  gap: 14px;
}
.form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 650;
}
.form label[hidden] {
  display: none;
}
.form input,
.form select,
.form textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #c4ccbe;
  border-radius: 6px;
  color: inherit;
  background: #fff;
}
.form textarea {
  min-height: 120px;
  resize: vertical;
}
.form small {
  color: #64705e;
  font-weight: 400;
}
.entry-form {
  max-width: 660px;
  gap: 18px;
}
.league-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 16px;
  margin-top: 18px;
}
.league-card h2 {
  overflow-wrap: anywhere;
  min-width: 0;
}
.league-card .actions {
  margin-bottom: 0;
}
.entry-mode,
.score-fields {
  border: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.entry-mode legend {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 10px;
}
.entry-mode label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #c4ccbe;
  border-radius: 7px;
  cursor: pointer;
}
.entry-mode label:has(:checked) {
  background: #edf4e7;
  border-color: #426347;
}
.entry-mode input {
  width: 16px;
  height: 16px;
  accent-color: #234e36;
}
.entry-fields {
  display: grid;
  gap: 14px;
}
.entry-fields[hidden] {
  display: none;
}
.entry-form select[size] {
  padding: 0;
}
.entry-form select[size] option {
  padding: 9px 12px;
}
.entry-form .actions,
.personal-match .actions {
  margin-bottom: 0;
}
.entry-form :disabled {
  opacity: 0.65;
}
.formerror:empty {
  display: none;
}
.personal-match {
  margin: 18px 0;
  border-left: 4px solid #416546;
  overflow-wrap: anywhere;
}
.personal-match h2 {
  margin: 8px 0;
}
.personal-match .match-score {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}
.match-score small {
  font-size: 14px;
  font-weight: 400;
  color: #606a60;
}
.dispute-notice {
  border-left: 4px solid #9a662d;
  padding: 10px 14px;
  background: #fcf1de;
}
.score-fields label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.score-fields {
  grid-template-columns: 1fr;
  gap: 16px;
}
.wins-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.wins-picker legend {
  overflow-wrap: anywhere;
  font-weight: 650;
  margin-bottom: 5px;
}
.wins-picker > div {
  display: flex;
  gap: 8px;
}
.wins-picker label {
  flex: 1;
  position: relative;
  cursor: pointer;
}
.wins-picker span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid #c4ccbe;
  background: white;
  font-size: 18px;
}
.wins-picker :checked + span {
  background: #234e36;
  color: white;
  border-color: #234e36;
}
.wins-picker :focus-visible + span {
  outline: 2px solid #345c40;
  outline-offset: 2px;
}
.score-fields:disabled {
  opacity: 0.55;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wins-picker input.sr-only {
  width: 1px;
  padding: 0;
}
dialog {
  width: min(460px, 94vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #d3dccf;
  border-radius: 12px;
  background: #fffef9;
  color: inherit;
  padding: 24px;
}
dialog::backdrop {
  background: #0d231bbb;
}
.historical-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-width: 0;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid #d3dccf;
  border-radius: 8px;
}
.historical-table label,
.historical-table select {
  min-width: 0;
}
.history-score {
  grid-column: 1 / -1;
}
.close {
  border: 0;
  background: transparent;
  font-size: 23px;
}
.formerror {
  color: #9b3029;
}
.note {
  font-size: 12px;
  color: #6a7466;
  margin: 12px 0;
}
.stack > * + * {
  margin-top: 12px;
}
details {
  border-top: 1px solid #e1e6da;
  padding: 13px 0;
}
summary {
  font-weight: 650;
  cursor: pointer;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
footer {
  border-top: 1px solid #d7dece;
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  color: #64705f;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #214833;
  color: white;
  border-radius: 7px;
  padding: 10px 16px;
  z-index: 5;
}
#toast:empty,
#slips {
  display: none;
}
.match {
  padding: 14px 0;
  border-top: 1px solid #d9dfd2;
}
.match .actions {
  margin: 8px 0 0;
}
.resources a {
  text-decoration: underline;
}
.smallselect {
  width: auto;
  max-width: 200px;
}
@media (max-width: 900px) {
  .bar {
    gap: 22px;
  }
  .bar nav {
    gap: 13px;
  }
  .bar nav a {
    font-size: 13px;
  }
  .bar nav .icon {
    display: none;
  }
  .grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .panelhead,
  .content {
    padding: 17px;
  }
  .panelhead h2 {
    font-size: 20px;
  }
  .eventrow {
    margin: 0 16px;
    gap: 10px;
  }
  .hero {
    min-height: 270px;
  }
}
@media (max-width: 650px) {
  .bar {
    height: auto;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 12px;
  }
  .brand svg {
    height: 32px;
    width: 30px;
  }
  .brand span {
    font-size: 14px;
  }
  .bar nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0;
    margin-top: 10px;
  }
  .bar nav a {
    padding: 8px 0;
  }
  .account {
    font-size: 13px;
    padding: 6px 10px;
  }
  .titlebar {
    align-items: flex-start;
  }
  .location {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 23px 20px;
    background-position: 57% center;
  }
  .hero:before {
    background: linear-gradient(90deg, #103925f5, #103925b3 56%, #10392520);
  }
  .hero h2 {
    max-width: 85%;
    font-size: 37px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero .meta {
    gap: 10px;
  }
  .eventrow h3 {
    font-size: 15px;
  }
  main {
    padding-top: 22px;
  }
  .panelhead h2 {
    font-size: 20px;
  }
  .spread {
    flex-wrap: wrap;
  }
  .btn {
    font-size: 13px;
  }
  .sub {
    font-size: 14px;
  }
}
@media (max-width: 650px) {
  .form input:not([type="radio"]),
  .form select,
  .form textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .btn,
  .button,
  .account,
  .close,
  .entry-form .actions a {
    min-height: 44px;
  }
  .entry-form .actions a {
    display: inline-flex;
    align-items: center;
  }
  .personal-match .actions > *,
  .entry-form .actions > * {
    flex: 1 1 auto;
    justify-content: center;
  }
  .grid > *,
  .titlebar > *,
  .eventrow > div,
  .trainer {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  dialog {
    padding: 18px;
    max-height: 90dvh;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body > #slips {
    display: block !important;
    color: #000;
  }
}
.setup-code {
  overflow-wrap: anywhere;
  user-select: all;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}
.admin-grid p,
.admin-back {
  margin-bottom: 1rem;
}
.admin-search,
.admin-event-label {
  display: grid;
  gap: 0.35rem;
  max-width: 100%;
  font-weight: 700;
}
.admin-search {
  width: 24rem;
  margin: 1rem 0;
}
.admin-event-label select {
  max-width: 100%;
}
.admin-table :is(th, td) {
  white-space: nowrap;
}
.welcome {
  padding: clamp(24px, 4vw, 54px);
}
.welcome-copy {
  width: min(54%, 38rem);
}
.welcome .welcome-location,
.schedule-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.welcome .welcome-location,
.welcome-discord {
  color: #e2efbb;
}
.welcome h1 {
  margin: 0.65rem 0 1rem;
  line-height: 1.05;
  text-wrap: balance;
}
.welcome .actions {
  margin: 1.2rem 0 0.55rem;
}
.welcome .welcome-update {
  font-size: 0.8rem;
}
.welcome-discord {
  padding: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.night-schedule {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid #d8ddd0;
}
.night-schedule h2 {
  margin: 0.25rem 0 0.45rem;
}
.schedule-label {
  color: #48674a;
}
.home-tables {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
}
@media (max-width: 900px) {
  .night-schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-tables {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .welcome-copy {
    width: 100%;
  }
  .welcome .welcome-copy p {
    max-width: 100%;
  }
  .welcome .cards {
    opacity: 0.16;
  }
  .welcome h1 {
    max-width: 26rem;
  }
}
@media (max-width: 480px) {
  .night-schedule {
    gap: 1.25rem 0.85rem;
  }
  .night-schedule h2 {
    font-size: 1.12rem;
  }
  .night-schedule div > p:last-child {
    font-size: 0.9rem;
  }
}

.storelogo {
  height: 50px;
  width: 62px;
  object-fit: contain;
}
.brand .brandname {
  font:
    700 17px "Segoe UI",
    sans-serif;
  letter-spacing: -0.7px;
  border-left: 1px solid #cbd2c3;
  padding-left: 13px;
}
.cards {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 46%;
  background: radial-gradient(ellipse at center, #567849, transparent 70%);
  pointer-events: none;
}
.cards img {
  height: 108%;
  width: auto;
  position: absolute;
  top: 8%;
  filter: drop-shadow(0 10px 9px #05190c70);
  border-radius: 4.8%;
}
.cards img:nth-child(1) {
  left: 16%;
  transform: rotate(-19deg);
  top: 21%;
}
.cards img:nth-child(2) {
  right: 6%;
  transform: rotate(21deg);
  top: 17%;
}
.cards img:nth-child(3) {
  left: 38%;
  transform: rotate(5deg);
  top: 5%;
}
.hero {
  background: linear-gradient(110deg, #133e2b, #214f36 60%, #5e794b);
}
.hero:before {
  display: none;
}
@media (max-width: 700px) {
  .cards {
    left: 60%;
    opacity: 0.5;
  }
  .hero h2,
  .hero p,
  .hero .meta {
    max-width: 75%;
  }
  .brand .brandname {
    font-size: 15px;
  }
  .storelogo {
    height: 40px;
  }
  .cards img:nth-child(3) {
    left: 10%;
  }
}
@media (max-width: 650px) {
  .hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      #153e2bf5,
      #153e2bbf 48%,
      transparent 90%
    );
    z-index: -1;
  }
  .hero h2 {
    max-width: 82%;
  }
  .cards {
    left: 65%;
  }
  .cards img:nth-child(2) {
    right: auto;
    left: 10%;
  }
}
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }
  body {
    background: white;
  }
  .slip {
    position: relative;
    break-inside: avoid;
    width: 100%;
  }
  .slip img {
    display: block;
    width: 100%;
    height: auto;
  }
  .slip-fields {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: #000;
  }
}
