:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --ink: #152825;
  --muted: #4e625b;
  --line: #d1d8cb;
  --mint: #beefb8;
  --white: #fffefa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 "Barlow",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}
.wrap {
  width: min(100% - 40px, 880px);
  margin-inline: auto;
}
.mast {
  background: var(--ink);
  color: white;
}
.mast-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
.wordmark {
  font:
    bold 27px/1 "Barlow",
    system-ui,
    sans-serif;
  letter-spacing: -1.5px;
  text-decoration: none;
  color: inherit;
}
.wordmark span {
  color: var(--mint);
}
.mast-label {
  font-size: 14px;
  color: #c7d4ca;
}
main {
  padding: 34px 0 80px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.2;
}
h2 {
  font-size: 20px;
  margin: 32px 0 12px;
}
form {
  max-width: 460px;
  margin-top: 24px;
}
label {
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}
.lookup-controls,
.toolbar,
.board-meta {
  display: flex;
  align-items: center;
}
.lookup-controls {
  gap: 8px;
}
.lookup-controls input {
  flex: 1;
  min-width: 0;
  border: 1px solid #89998d;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
  color: inherit;
  font: inherit;
}
button {
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
a {
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid #378159;
  outline-offset: 3px;
}
.quiet {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 11px;
  font-size: 14px;
}
.toolbar {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.toolbar a {
  text-decoration: none;
  font-weight: 600;
}
.board-head {
  border-radius: 14px;
  background: #203b34;
  color: #f4f8ef;
  padding: clamp(20px, 4vw, 36px);
  border-left: 5px solid #90ce91;
}
.board-head h1 {
  margin: 10px 0 12px;
}
.board-meta {
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #c9dcca;
}
.board-meta #phase {
  font-weight: bold;
  color: var(--mint);
}
.mono,
.score-col,
.rank {
  font-variant-numeric: tabular-nums;
}
.mono {
  font-family: "IBM Plex Mono", Consolas, monospace;
}
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cards a {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  text-decoration: none;
  background: var(--white);
}
.cards a:hover {
  border-color: #679476;
}
.cards strong,
.cards small {
  display: block;
}
.cards small,
.subline,
#home-status,
#board-status,
#empty {
  color: var(--muted);
  font-size: 14px;
}
#board-status {
  margin: 16px 0 10px;
}
.scores {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th,
td {
  padding: 13px 14px;
}
th {
  font-size: 13px;
  color: var(--muted);
  background: #e8ede3;
}
td {
  border-top: 1px solid var(--line);
}
.score-col {
  text-align: right;
  white-space: nowrap;
}
.rank {
  font-size: 20px;
  font-weight: bold;
}
.player {
  overflow-wrap: anywhere;
  font-weight: bold;
}
.subline {
  display: block;
}
.score {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-weight: 650;
}
tr.lead .rank {
  color: #287147;
}
.row-status {
  font-size: 13px;
  white-space: nowrap;
}
#empty:not(:empty) {
  padding: 20px 0;
}
@media (max-width: 520px) {
  .wrap {
    width: calc(100% - 24px);
  }
  main {
    padding-top: 22px;
  }
  .mast-in {
    min-height: 56px;
  }
  td,
  th {
    padding: 10px 6px;
  }
  .score {
    font-size: 14px;
  }
  .rank {
    font-size: 17px;
  }
  .row-status,
  .subline {
    font-size: 12px;
  }
  .board-meta {
    font-size: 12px;
  }
}
[hidden] {
  display: none !important;
}
