button {
  outline: none;
  border: none;
  background: unset;
  padding: 0;
}
.main {
  container-type: inline-size;
  container-name: main;
}
#ScoreNavigation {
  width: 100%;
}
#ScoreNavigation .nav-root {
  display: grid;
  grid-template: auto/repeat(2, minmax(0, 1fr));
}
#ScoreNavigation .nav-item:nth-of-type(1) .nav-label {
  background-color: #46a201;
}
#ScoreNavigation .nav-item:nth-of-type(2) .nav-label {
  background-color: #0a74bf;
}
#ScoreNavigation .nav-label {
  display: block;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 2rem;
}
#ScoreNavigation .nav-sub {
  display: grid;
  grid-template: auto/repeat(4, minmax(0, 1fr));
  background-color: rgba(0,0,0,0.8);
  grid-gap: 1px;
}
#ScoreNavigation .nav-sub li {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}
#ScoreNavigation .nav-sub li.active,
#ScoreNavigation .nav-sub li:hover {
  background-color: #444;
}
#ScoreNavigation .nav-sub li button,
#ScoreNavigation .nav-sub li a {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 2rem;
  text-align: center;
  cursor: pointer;
}
#ScoreNavigation .ui {
  padding: 0.5rem 0 0;
}
#ScoreNavigation .ui button {
  appearance: none;
  padding: 0 1em;
  border-radius: 1em;
  background-color: #ffd700;
  font-size: 0.9rem;
  line-height: 2;
  user-select: none;
  cursor: pointer;
}
#ScoreNavigation .ui button:hover {
  background-color: rgba(255,215,0,0.8);
}
.box {
  width: 100%;
  overflow: auto;
}
.box .message {
  font-size: 0.8rem;
  line-height: 2rem;
  margin-top: 1rem;
}
.table {
  border: none;
}
.table tr {
  font-size: 0.9rem;
  text-align: center;
  line-height: 2;
}
.table .message {
  font-size: 0.8rem;
  line-height: 3rem;
  text-align: left;
}
#Timestamp {
  text-align: right;
  font-size: 0.9rem;
  line-height: 2;
}
#Playoff {
  display: none;
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
#Playoff.active {
  display: table;
}
#Playoff thead tr {
  color: #fff;
}
#Playoff thead tr th {
  padding: 0 0.5em;
  background-color: #46a201;
}
#Playoff thead tr .winner {
  width: 4rem;
}
#Playoff thead tr .name {
  min-width: 10rem;
}
#Playoff thead tr .score {
  width: 3rem;
}
#Playoff tbody tr {
  background-color: #fff;
  line-height: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}
#Playoff tbody tr td {
  padding: 0 0.5em;
}
#Playoff tbody tr td + td {
  border-left: 1px solid #eee;
}
#Playoff tbody tr .name {
  background-color: #f3f3f3;
}
#Playoff tbody tr .name .row {
  display: grid;
  grid-template: auto/1fr auto;
  align-items: center;
  line-height: 2.5;
}
#Playoff tbody tr:hover {
  background-color: #f9f9f9;
}
#LeaderBoard {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
}
#LeaderBoard thead tr {
  color: #fff;
}
#LeaderBoard thead tr th {
  padding: 0 0.5em;
  background-color: #46a201;
}
#LeaderBoard thead tr .rank {
  width: 3rem;
}
#LeaderBoard thead tr .name {
  min-width: 10rem;
}
#LeaderBoard thead tr .score {
  width: 3rem;
}
#LeaderBoard tbody tr {
  background-color: #fff;
  line-height: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}
#LeaderBoard tbody tr td {
  padding: 0 0.5em;
}
#LeaderBoard tbody tr td + td {
  border-left: 1px solid #eee;
}
#LeaderBoard tbody tr:has(a) {
  background-color: #fefe98;
}
#LeaderBoard tbody tr:has(a) .name {
  background-color: #fefe98;
}
#LeaderBoard tbody tr .name {
  background-color: #f3f3f3;
}
#LeaderBoard tbody tr .name .row {
  display: grid;
  grid-template: auto/1fr auto;
  align-items: center;
  line-height: 2.5;
}
#LeaderBoard tbody tr .name a {
  color: inherit;
  width: fit-content;
  margin: auto;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
#LeaderBoard tbody tr:hover {
  background-color: #f9f9f9;
}
#LeaderBoard tbody tr:hover .name {
  background-color: #ededed;
}
#LeaderBoard tbody tr:hover:has(a) {
  background-color: #fefe70;
}
#LeaderBoard tbody tr:hover:has(a) .name {
  background-color: #fefe70;
}
#HoleByHole {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
}
#HoleByHole thead tr {
  color: #fff;
}
#HoleByHole thead tr th {
  padding: 0 0.5em;
}
#HoleByHole thead tr:nth-of-type(3) th {
  border-top: 1px solid #ccc;
}
#HoleByHole thead tr .rank {
  background-color: #0a74bf;
  width: 3rem;
}
#HoleByHole thead tr .name {
  background-color: #46a201;
}
#HoleByHole thead tr .total {
  background-color: #46a201;
  width: 3rem;
}
#HoleByHole thead tr .par {
  background-color: #51a1da;
}
#HoleByHole thead tr .hole {
  background-color: #78bf42;
  min-width: 1.5rem;
}
#HoleByHole thead tr .inout {
  background-color: #a1a1a1;
  width: 2.5rem;
}
#HoleByHole tbody tr {
  background-color: #fff;
}
#HoleByHole tbody tr td {
  padding: 0 0.5em;
}
#HoleByHole tbody tr:nth-of-type(2n+1) {
  border-top: 1px solid #ccc;
}
#HoleByHole tbody tr:last-child {
  border-bottom: 1px solid #ccc;
}
#HoleByHole tbody tr .rank {
  background-color: #d6ecfc;
  border-right: 1px solid #ccc;
}
#HoleByHole tbody tr .name {
  background-color: #f3f3f3;
}
#HoleByHole tbody tr .name:has(a) {
  background-color: #fefe98;
}
#HoleByHole tbody tr .name .row {
  display: grid;
  grid-template: auto/1fr auto;
  align-items: center;
  line-height: 2.5;
  padding: 0 0.7em;
}
#HoleByHole tbody tr .name .row a {
  color: inherit;
  width: fit-content;
  margin: auto;
}
#HoleByHole tbody tr .hole {
  padding: 0.2em 0;
  border-top: 1px solid #dedede;
}
#HoleByHole tbody tr .hole span {
  display: block;
  line-height: 1.5;
}
#HoleByHole tbody tr .hole + .hole {
  border-left: 1px solid #dedede;
}
#HoleByHole tbody tr .hole.even {
  color: #07a407;
}
#HoleByHole tbody tr .hole.under {
  color: #c03434;
}
#HoleByHole tbody tr .hole.over {
  color: #8a8a8a;
}
#HoleByHole tbody tr .total {
  border-left: 1px solid #ccc;
}
#HoleByHole tbody tr:hover,
#HoleByHole tbody tr:nth-of-type(2n+1):has(+ tr:hover),
#HoleByHole tbody tr:nth-of-type(2n+1):hover + tr {
  background-color: #f9f9f9;
}
#HoleByHole tbody tr:hover .rank,
#HoleByHole tbody tr:nth-of-type(2n+1):has(+ tr:hover) .rank,
#HoleByHole tbody tr:nth-of-type(2n+1):hover + tr .rank {
  background-color: #c9e6fb;
}
#HoleByHole tbody tr:hover .name,
#HoleByHole tbody tr:nth-of-type(2n+1):has(+ tr:hover) .name,
#HoleByHole tbody tr:nth-of-type(2n+1):hover + tr .name {
  background-color: #eee;
}
#HoleByHole tbody tr:hover .name:has(a),
#HoleByHole tbody tr:nth-of-type(2n+1):has(+ tr:hover) .name:has(a),
#HoleByHole tbody tr:nth-of-type(2n+1):hover + tr .name:has(a) {
  background-color: #fefe70;
}
@container main (width < 768px) {
  #ScoreNavigation .nav-root {
    grid-template: auto/minmax(0, 1fr);
  }
}
@container main (width < 501px) {
  #ScoreNavigation .nav-root {
    grid-template: auto/minmax(0, 1fr);
  }
  #ScoreNavigation .nav-sub {
    grid-template: auto/repeat(2, minmax(0, 1fr));
  }
}
