:root {
  color-scheme: light;
  --paper: #f6f4f9;
  --surface: #fff;
  --text: #282331;
  --muted: #625a6d;
  --quiet: #756b80;
  --line: #e2dce9;
  --accent: #65468a;
  --accent-soft: #eee6f6;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font:
    15px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.38;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.ui-icon {
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  pointer-events: none;
}
.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 11px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  clip-path: inset(50%);
  transform: translateY(-170%);
}
.skip-link:focus {
  clip-path: none;
  transform: none;
}
header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0 32px;
  background: #ffffffed;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.topbar {
  max-width: 1160px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 42px;
  min-height: 83px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.brand-mark {
  display: block;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.brand > .brand-mark {
  width: 36px;
  height: 36px;
}
.brand small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 400;
  color: var(--quiet);
}
.header-navigation {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-left: auto;
}
.header-navigation a {
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
  min-height: 38px;
  white-space: nowrap;
}
.header-navigation a:hover {
  background: #f5f1f9;
}
.header-navigation a.selected {
  color: #5a3b7a;
  background: var(--accent-soft);
  font-weight: 500;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px;
  background: #faf8fc;
}
.language-switch > span {
  display: none;
}
.language-switch button {
  border: 0;
  background: none;
  color: var(--quiet);
  border-radius: 4px;
  font-size: 11px;
  min-width: 34px;
  min-height: 30px;
}
.language-switch button[aria-pressed="true"] {
  background: #fff;
  color: #4c365f;
  box-shadow: 0 1px 4px #2f204214;
  font-weight: 600;
}
main {
  max-width: 1160px;
  width: calc(100% - 64px);
  margin: 0 auto;
  padding-top: 49px;
}
.hero {
  padding: 0 0 33px;
}
.hero-copy {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--quiet);
  font-weight: 600;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -1.8px;
  margin: 14px 0 15px;
}
.intro-text > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  max-width: 50ch;
}
.hero-search {
  position: relative;
  min-width: 0;
  z-index: 10;
  padding-top: 8px;
}
.hero-search > label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 9px;
  color: #51455f;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 15px;
  border: 1px solid #b6a5c8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px #3b245305;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.search > span {
  display: flex;
  align-items: center;
}
.search > span .ui-icon {
  width: 20px;
  height: 20px;
}
.search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: none;
  font-size: 15px;
  line-height: 28px;
  color: var(--text);
  appearance: none;
}
.search input:focus-visible {
  outline: none;
}
.search input::placeholder {
  color: #786b85;
}
.search input::-webkit-search-cancel-button {
  display: none;
}
.search:focus-within {
  border-color: #806296;
  box-shadow: 0 0 0 3px #8d6caf12;
}
.icon-button {
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: none;
}
.icon-button:hover {
  background: var(--accent-soft);
}
kbd {
  font:
    11px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #776a83;
  border: 1px solid #d6cddd;
  border-radius: 4px;
  padding: 1px 6px;
}
#search-help {
  font-size: 11px;
  line-height: 1.7;
  color: var(--quiet);
  margin: 10px 0 0;
}
.search-results {
  position: absolute;
  z-index: 20;
  top: 95px;
  left: 0;
  right: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c3b3d1;
  border-radius: 10px;
  box-shadow: 0 15px 35px #38204a1a;
  animation: panelIn 0.15s ease-out;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 69px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.search-result:last-child {
  border: 0;
}
.search-result > img:not(.ui-icon) {
  width: 48px;
  height: 35px;
  object-fit: cover;
  border-radius: 4px;
}
.suggestion-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-right: auto;
}
.suggestion-copy strong {
  font-size: 14px;
  font-weight: 500;
}
.suggestion-copy small {
  font-size: 11px;
  color: var(--muted);
}
.search-result:hover,
.search-result[aria-selected="true"] {
  background: #f5f0fa;
}
.search-result[aria-selected="true"] {
  box-shadow: inset 3px 0 var(--accent);
}
.no-suggestions {
  padding: 18px;
}
.no-suggestions strong {
  font-size: 14px;
  font-weight: 500;
}
.no-suggestions p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
}
.notice {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 13px 17px;
  margin: 0 0 36px;
  background: #ece5f3;
  border: 1px solid #ddd1e7;
  border-radius: 9px;
}
.notice-label {
  font-size: 11px;
  color: #624678;
  font-weight: 600;
  white-space: nowrap;
}
.notice p {
  font-size: 12px;
  line-height: 1.8;
  color: #64556f;
  margin: 0;
}
h2 {
  font:
    400 30px/1.3 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.6px;
  margin: 0 0 10px;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
}
.section-top h2 {
  margin: 0;
}
#count {
  color: var(--quiet);
  font-size: 11px;
  white-space: nowrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.cards article {
  min-width: 0;
  background: #fff;
  border: 1px solid #e1d8e9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px #32214403;
  transition:
    box-shadow 0.18s,
    transform 0.18s,
    border-color 0.18s;
}
.cards article:hover {
  transform: translateY(-3px);
  border-color: #bcabd0;
  box-shadow: 0 8px 24px #3221440b;
}
.card-open {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}
.card-open:focus-visible {
  outline-offset: -4px;
}
.card-art {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1.9;
  overflow: hidden;
  background: #e8e3ed;
}
.card-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-index {
  position: absolute;
  left: 13px;
  top: 13px;
  min-width: 29px;
  height: 26px;
  padding: 4px 7px;
  border: 1px solid #ffffff80;
  border-radius: 5px;
  background: #ffffffed;
  color: #483552;
  font:
    11px/16px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  box-shadow: 0 1px 3px #0001;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  width: 100%;
  flex: 1;
}
.card-heading {
  display: block;
}
.card-title {
  display: block;
  font:
    400 26px/1.2 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.4px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #674682;
}
.card-footer > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.card-footer .ui-icon {
  width: 13px;
  height: 13px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #695573;
  background: #f4eff8;
  border: 1px solid #e1d5eb;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
}
.status i {
  display: none;
}
.image-note {
  font-size: 10px;
  color: var(--quiet);
  line-height: 1.8;
  margin: 13px 0 0;
}
.empty-results {
  padding: 27px;
  background: #fff;
  border: 1px dashed #bfaecc;
  border-radius: 10px;
}
.empty-results h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 7px;
}
.empty-results p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 17px;
}
.scoreboard {
  margin: 46px 0 0;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 3px 12px #36244504;
}
.scoreboard-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.scoreboard-top .eyebrow {
  margin-bottom: 9px;
}
.scoreboard-top h2 {
  font-size: 32px;
  margin-bottom: 9px;
}
.scoreboard-top p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.scoreboard-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 250px;
}
.local-badge {
  font-size: 10px;
  color: #696071;
  white-space: nowrap;
  padding: 6px 9px;
  border: 1px solid #dfd8e7;
  border-radius: 6px;
  background: #fbf9fd;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.primary {
  background: #65458a;
  color: #fff;
  border: 1px solid #65458a;
  box-shadow: 0 2px 4px #45246712;
}
.primary:hover {
  background: #543675;
}
.primary .ui-icon {
  filter: brightness(0) invert(1);
}
.secondary {
  background: #fff;
  color: #62467d;
  border: 1px solid #baa8cb;
}
.secondary:hover {
  background: #f5f0fa;
}
.scoreboard-controls .secondary {
  min-height: 33px;
  font-size: 10px;
  padding: 8px 10px;
}
.match-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 13px;
  margin: 24px 0 0;
}
.match-summary > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid #e8e1ef;
  background: #f9f6fc;
  border-radius: 9px;
  min-width: 0;
}
.match-summary span {
  font-size: 9px;
  font-weight: 500;
  color: #6b5b79;
  letter-spacing: 1px;
}
.match-summary strong {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.match-summary > div:last-child strong {
  font-size: 16px;
  line-height: 1.8;
  color: #5f447b;
}
.match-toolbar {
  display: flex;
  align-items: end;
  gap: 20px;
  margin: 25px 0;
}
.match-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.match-toolbar input,
.match-toolbar select,
#player-name,
#rename-name {
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #bcaecc;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}
.match-toolbar select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 150px;
  padding-right: 33px;
  background-image: url("assets/icons/chevron-down.svg");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.match-toolbar input {
  max-width: 125px;
}
.round {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 0 8px;
}
.round > span {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--quiet);
}
.round strong {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
  color: #654a7d;
}
#next-round {
  min-height: 44px;
  font-size: 11px;
}
#player-form {
  display: flex;
  align-items: start;
  gap: 12px;
}
.player-field {
  flex: 1;
  min-width: 0;
}
.player-field label,
#rename-form > label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}
#player-name,
#rename-name {
  width: 100%;
}
#player-name::placeholder {
  color: #7a6e86;
}
#player-form > .primary {
  margin-top: 28px;
  min-height: 44px;
  min-width: 140px;
}
.field-error {
  font-size: 12px;
  color: #a12f43;
  line-height: 1.8;
  margin: 8px 0 0;
}
.match-toolbar + #target-error {
  margin: -10px 0 17px;
}
[aria-invalid="true"] {
  border-color: #ad4354 !important;
}
#score-message {
  font-size: 12px;
  color: #694785;
  line-height: 1.8;
  min-height: 8px;
  margin: 13px 0;
}
#storage-warning {
  font-size: 12px;
  color: #865020;
  background: #fdf5e9;
  border: 1px solid #e0c6a7;
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0;
}
.players-empty {
  font-size: 13px;
  color: var(--quiet);
  margin: 0;
  padding: 22px 0;
}
.player-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 0 25px;
  border-top: 1px solid var(--line);
}
.player-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  margin-right: auto;
}
.player-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid #c4b5d0;
  border-radius: 6px;
  background: #faf7fd;
}
.player-row button:hover {
  background: #f0e9f7;
}
.player-row .player-name-button {
  width: auto;
  height: auto;
  min-height: 34px;
  max-width: 100%;
  justify-content: start;
  text-align: left;
  gap: 9px;
  padding: 0;
  color: var(--text);
  background: none;
  border: 0;
}
.player-name-button strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 500;
}
.player-name-button .ui-icon {
  width: 12px;
  height: 12px;
  opacity: 0.85;
}
.player-info small {
  font-size: 9px;
  padding: 3px 7px;
  color: #66467d;
  border: 1px solid #dac9e8;
  border-radius: 5px;
  background: #f4edf9;
}
.player-row output {
  font-size: 27px;
  line-height: 1.2;
  color: #5f447d;
  text-align: center;
  min-width: 45px;
  font-variant-numeric: tabular-nums;
}
.player-row .remove-player {
  width: 34px;
  border: 0;
  margin-left: 5px;
  background: none;
  opacity: 0.8;
}
.player-row .remove-player .ui-icon {
  width: 14px;
  height: 14px;
}
.score-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: #f0eaf5;
}
.score-progress > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #ab91c4;
  transition: width 0.15s;
}
.leading .score-progress > span {
  background: #7e59a3;
}
.score-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  margin: 12px 0 16px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #69517e;
  min-height: 36px;
  padding: 8px 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.text-button:hover {
  color: #3f2758;
}
.text-button .ui-icon {
  width: 14px;
  height: 14px;
}
.match-tools,
.score-history {
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.match-tools > summary,
.score-history > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  min-height: 46px;
  cursor: pointer;
}
.match-tools summary::marker,
.score-history summary::marker {
  content: "";
  font-size: 0;
}
.match-tools summary::-webkit-details-marker,
.score-history summary::-webkit-details-marker {
  display: none;
}
.history-chevron {
  transition: transform 0.15s;
}
.match-tools[open] > summary .history-chevron,
.score-history[open] > summary .history-chevron {
  transform: rotate(180deg);
}
.match-backup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding-bottom: 18px;
}
.match-backup .text-button {
  font-size: 11px;
}
.backup-hint,
#backup-message {
  width: 100%;
  font-size: 11px;
  line-height: 1.8;
  color: var(--quiet);
}
#backup-message {
  color: #604378;
}
#backup-message:empty {
  display: none;
}
.import-match:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.score-history ol {
  list-style: none;
  max-height: 200px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.score-history li {
  padding: 4px 0;
  border-bottom: 1px solid #eee8f3;
}
.about {
  padding: 31px 0;
  margin-top: 34px;
  border-top: 1px solid #ded5e8;
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 48px;
  row-gap: 8px;
}
.about > div {
  display: contents;
}
.about h2 {
  grid-column: 1;
  grid-row: 1/3;
  font-size: 26px;
}
.about p {
  grid-column: 2;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 68ch;
  margin: 0;
}
.about p + p {
  margin-top: 7px;
}
footer {
  max-width: 1160px;
  width: calc(100% - 64px);
  margin: 0 auto;
  padding: 22px 0 27px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 10px;
  color: var(--quiet);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.footer-brand > .brand-mark {
  width: 24px;
  height: 24px;
}
footer p {
  margin: 0 auto 0 0;
}
footer > button {
  font-size: 10px;
  color: inherit;
  min-height: 34px;
  padding: 6px 0;
  border: 0;
  background: none;
}
footer > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
}
footer .ui-icon {
  width: 12px;
  height: 12px;
}
dialog {
  width: calc(100% - 32px);
  max-width: 580px;
  max-height: calc(100svh - 48px);
  overflow: auto;
  background: #fff;
  color: var(--text);
  border: 1px solid #cfc1dc;
  border-radius: 14px;
  padding: 35px;
  box-shadow: 0 24px 80px #21112e30;
}
dialog[open] {
  animation: panelIn 0.15s ease-out;
}
dialog::backdrop {
  background: #2b223d68;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 31px;
  margin: 18px 0 16px;
}
dialog p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 5px;
  background: none;
}
.close:hover {
  background: #f5f0fa;
}
.placeholder {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.placeholder > span {
  color: #735b89;
  font-size: 10px;
}
.placeholder small {
  color: var(--quiet);
  font-size: 11px;
  margin-left: auto;
}
#track-this-game {
  margin: 5px 0 12px;
}
.done {
  margin-top: 24px;
}
.cancel-reset {
  margin-left: 8px;
}
.dialog-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.restore-preview {
  padding: 14px;
  border: 1px solid #ded0ea;
  border-radius: 6px;
  background: #f6f0fb;
  color: #65457b;
}
#rename-name {
  font-size: 16px;
}
#credits a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #62417d;
}
#credits .ui-icon {
  width: 13px;
  height: 13px;
}
.noscript-message {
  font-size: 13px;
  color: var(--muted);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.page-loader {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  animation: loaderExit 0.2s 0.2s both;
}
.loader-logo {
  display: none;
}
.loader-track {
  display: block;
  width: 100%;
  height: 2px;
  overflow: hidden;
}
.loader-track i {
  display: block;
  width: 100%;
  height: 2px;
  background: #8964aa;
  transform-origin: left;
  animation: loaderProgress 0.35s ease-out both;
}
.reveal.revealed {
  animation: panelIn 0.2s ease-out;
}
.focus-scoreboard > header,
.focus-scoreboard > footer,
.focus-scoreboard > .skip-link,
.focus-scoreboard main > :not(#scoreboard) {
  display: none !important;
}
.focus-scoreboard main {
  width: calc(100% - 40px);
  max-width: 1060px;
  margin: 0 auto;
  padding-top: 20px;
}
.focus-scoreboard .scoreboard {
  margin: 0;
  min-height: calc(100svh - 40px);
  padding: 32px;
}
.focus-scoreboard .player-row {
  padding-block: 24px 30px;
}
.focus-scoreboard .player-row output {
  font-size: 38px;
  min-width: 68px;
}
.focus-scoreboard .player-row button:not(.player-name-button) {
  width: 52px;
  height: 48px;
}
.focus-scoreboard .player-name-button strong {
  font-size: 19px;
}
@keyframes panelIn {
  from {
    opacity: 0.5;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes loaderExit {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes loaderProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (max-width: 1000px) {
  .topbar {
    gap: 25px;
  }
  .hero-copy {
    gap: 35px;
    grid-template-columns: 1fr 1fr;
  }
  h1 {
    font-size: 48px;
  }
  .cards {
    gap: 17px;
  }
  .card-body {
    padding: 19px;
    gap: 20px;
  }
  .card-title {
    font-size: 25px;
  }
  .card-footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  .scoreboard {
    padding: 26px;
  }
  .match-toolbar {
    gap: 14px;
  }
  .match-toolbar select {
    min-width: 130px;
  }
  .match-toolbar input {
    max-width: 115px;
  }
  .round {
    padding: 0;
  }
}
@media (max-width: 940px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards article:last-child {
    grid-column: auto;
  }
  .hero-copy {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-search {
    max-width: 650px;
    padding-top: 0;
  }
  h1 {
    font-size: 49px;
    margin-top: 10px;
  }
  .hero {
    padding-bottom: 25px;
  }
  .search-results {
    top: 87px;
  }
  .notice {
    margin-bottom: 30px;
  }
  .scoreboard-top {
    flex-wrap: wrap;
  }
  .scoreboard-controls {
    justify-content: flex-start;
    max-width: none;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 130px;
  }
  header {
    padding: 0 20px;
  }
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 13px;
    min-height: 0;
    padding: 14px 0 0;
  }
  .brand {
    font-size: 14px;
  }
  .brand > .brand-mark {
    width: 32px;
    height: 32px;
  }
  .brand small {
    font-size: 10px;
  }
  .header-navigation {
    grid-column: 1/3;
    grid-row: 2;
    margin: 0;
    gap: 22px;
    overflow: auto;
    min-width: 0;
  }
  .header-navigation a {
    font-size: 12px;
    border-radius: 0;
    padding: 9px 0;
    min-height: 40px;
    border-bottom: 2px solid transparent;
  }
  .header-navigation a.selected {
    background: none;
    color: #5d3f7d;
    border-bottom-color: #80609d;
  }
  .language-switch {
    grid-column: 2;
    grid-row: 1;
    padding: 2px;
  }
  .language-switch button {
    min-width: 31px;
    font-size: 10px;
  }
  main {
    width: calc(100% - 40px);
    padding-top: 29px;
  }
  h1 {
    font-size: 44px;
    letter-spacing: -1.3px;
  }
  .intro-text > p {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .hero-copy {
    gap: 20px;
  }
  .hero-search {
    max-width: none;
  }
  .hero-search > label {
    font-size: 11px;
  }
  .search {
    min-height: 54px;
    padding: 10px 12px;
  }
  .search input {
    font-size: 16px;
  }
  .search kbd {
    display: none;
  }
  #search-help {
    font-size: 10px;
  }
  .notice {
    gap: 7px;
    align-items: start;
    flex-direction: column;
    padding: 13px 15px;
    border-radius: 8px;
  }
  .notice-label {
    font-size: 11px;
  }
  .notice p {
    font-size: 11px;
  }
  .section-top {
    padding-bottom: 17px;
  }
  h2 {
    font-size: 27px;
  }
  #count {
    font-size: 10px;
  }
  .scoreboard {
    margin-top: 34px;
    padding: 23px 18px;
  }
  .scoreboard-top h2 {
    font-size: 29px;
  }
  .scoreboard-top p {
    font-size: 13px;
  }
  .scoreboard-top .eyebrow {
    font-size: 9px;
  }
  .scoreboard-controls {
    gap: 7px;
  }
  .local-badge {
    font-size: 9px;
    padding: 6px 7px;
  }
  .scoreboard-controls .secondary {
    font-size: 9px;
    padding: 7px 9px;
    min-height: 31px;
  }
  .match-summary {
    gap: 9px;
    margin-top: 20px;
    grid-template-columns: 1fr 1fr 1.2fr;
  }
  .match-summary > div {
    padding: 13px 10px;
    gap: 9px;
    border-radius: 7px;
  }
  .match-summary span {
    font-size: 7px;
    letter-spacing: 0.6px;
  }
  .match-summary strong {
    font-size: 23px;
  }
  .match-summary > div:last-child strong {
    font-size: 12px;
    line-height: 1.7;
  }
  .match-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px 12px;
    margin: 22px 0;
  }
  .match-toolbar label {
    font-size: 11px;
  }
  .match-toolbar select,
  .match-toolbar input {
    width: 100%;
    min-width: 0;
    max-width: none;
    font-size: 12px;
  }
  .round {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin: 0;
    min-height: 44px;
  }
  .round > span {
    font-size: 8px;
  }
  .round strong {
    font-size: 25px;
  }
  #next-round {
    font-size: 10px;
    padding: 10px 8px;
    gap: 6px;
  }
  #player-form {
    flex-direction: column;
    gap: 10px;
  }
  .player-field {
    width: 100%;
  }
  .player-field label {
    font-size: 11px;
  }
  #player-name {
    font-size: 16px;
  }
  #player-form > .primary {
    width: 100%;
    margin-top: 0;
  }
  .field-error {
    font-size: 11px;
  }
  .player-row {
    flex-wrap: wrap;
    gap: 7px;
    padding: 17px 0 24px;
  }
  .player-info {
    width: 100%;
    flex: auto;
    margin: 0 0 4px;
    gap: 8px;
  }
  .player-name-button strong {
    font-size: 14px;
  }
  .player-row button {
    width: 44px;
    height: 42px;
  }
  .player-row output {
    min-width: 55px;
    font-size: 27px;
  }
  .player-row .remove-player {
    width: 34px;
    margin-left: auto;
  }
  .player-info small {
    font-size: 8px;
  }
  .text-button {
    font-size: 10px;
    min-height: 40px;
  }
  .match-backup {
    gap: 5px 15px;
  }
  .match-backup .text-button,
  .backup-hint,
  #backup-message {
    font-size: 10px;
  }
  .score-history,
  .match-tools {
    font-size: 11px;
  }
  .score-history ol {
    font-size: 11px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px 0;
    margin-top: 29px;
  }
  .about h2 {
    grid-column: 1;
    grid-row: auto;
    font-size: 25px;
    margin-bottom: 4px;
  }
  .about p {
    grid-column: 1;
    font-size: 13px;
  }
  .about p + p {
    margin-top: 0;
  }
  footer {
    width: calc(100% - 40px);
    gap: 13px;
    flex-wrap: wrap;
    padding-bottom: 24px;
  }
  .footer-brand {
    width: 100%;
  }
  footer p {
    order: 4;
    width: 100%;
    font-size: 10px;
  }
  dialog {
    padding: 29px 22px;
    border-radius: 12px;
  }
  dialog h2 {
    font-size: 28px;
  }
  dialog p {
    font-size: 13px;
  }
  .placeholder {
    font-size: 12px;
    gap: 10px;
  }
  .placeholder small {
    font-size: 10px;
  }
  .primary,
  .secondary {
    font-size: 11px;
  }
  .focus-scoreboard main {
    width: calc(100% - 24px);
    padding-top: 12px;
  }
  .focus-scoreboard .scoreboard {
    padding: 21px 16px;
    min-height: calc(100svh - 24px);
  }
  .focus-scoreboard .player-name-button strong {
    font-size: 17px;
  }
  .focus-scoreboard .player-row output {
    font-size: 33px;
    min-width: 61px;
  }
  .focus-scoreboard .player-row button:not(.player-name-button) {
    width: 48px;
    height: 44px;
  }
}
@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .card-art {
    aspect-ratio: 1.95;
  }
  .card-body {
    padding: 21px;
    gap: 20px;
  }
  .card-title {
    font-size: 28px;
  }
  .card-footer {
    flex-wrap: nowrap;
    font-size: 12px;
  }
  .status {
    font-size: 11px;
  }
  .card-footer .ui-icon {
    width: 14px;
    height: 14px;
  }
  .image-note {
    font-size: 9px;
  }
  .search-results {
    top: 84px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .page-loader {
    display: none;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
