@font-face {
  font-family: Galmuri;
  src: url("./font.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #0b1020;
  color: #e9edfa;
  font:
    14px Galmuri,
    monospace;
}
main {
  max-width: 920px;
  margin: auto;
  padding: 22px;
}
button,
select {
  font: inherit;
  color: inherit;
  background: #10162a;
  border: 1px solid #343e5e;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
}
button:hover,
select:hover {
  border-color: #a4b0ca;
}
button:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid #c6f432;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
h1 {
  font-size: 24px;
  margin: 0;
}
.sub {
  font-size: 12px;
  color: #929db7;
}
header > button {
  margin-left: auto;
}
nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
nav button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}
nav svg {
  height: 34px;
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
button[aria-pressed="true"] {
  color: #c6f432;
  border-color: #c6f432;
}
.settings {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #252e47;
}
.settings label {
  color: #929db7;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings select {
  font-size: 12px;
}
.settings button {
  font-size: 12px;
}
.settings #undo {
  margin-left: auto;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 26px;
  margin-top: 18px;
}
.turn-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}
#status {
  color: #c6f432;
  font-size: 13px;
}
#moveCount {
  color: #929db7;
  font-size: 12px;
  white-space: nowrap;
}
#board {
  position: relative;
  aspect-ratio: 1;
  max-width: 530px;
  margin: 4px auto;
}
#lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: #67748e;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.point {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.point:before {
  content: "";
  width: 10px;
  height: 10px;
  background: #34415d;
  border: 1px solid #8190ad;
  border-radius: 50%;
  display: block;
}
.point.own:before,
.point.enemy:before {
  width: 29px;
  height: 29px;
  border: 3px solid #0b1020;
  box-shadow: 0 0 0 1px #8390ab;
  background: #e9edfa;
}
.point.own:before {
  background: #c6f432;
  box-shadow: 0 0 0 1px #c6f432;
}
.point.selected {
  outline: 2px solid #c6f432;
  outline-offset: 1px;
}
.point.destination:before {
  background: #65d9ff;
  width: 15px;
  height: 15px;
  border: 3px solid #0b1020;
  box-shadow: 0 0 0 1px #65d9ff;
}
.point.takeable {
  outline: 2px dashed #ff9b57;
  outline-offset: 0;
}
.point.hinted {
  outline: 2px dashed #65d9ff;
  outline-offset: 1px;
}
.point.last:after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  background: #92a0bf;
  border-radius: 50%;
}
.point.stake:before {
  content: "×";
  background: #0b1020;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: #929db7;
  width: 26px;
  height: 26px;
}
.point:disabled {
  opacity: 1;
}
.point:disabled:hover {
  border: 0;
}
.players {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 12px;
}
.players span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.players i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  background: #c6f432;
}
.players i.computer {
  background: #e9edfa;
}
.players b {
  color: #929db7;
  font-weight: 400;
}
#message {
  color: #929db7;
  font-size: 12px;
  line-height: 1.7;
  min-height: 21px;
  margin: 14px 0 0;
}
aside {
  border-left: 1px solid #252e47;
  padding-left: 22px;
}
h2 {
  font-size: 15px;
  margin: 4px 0 12px;
}
aside p {
  font-size: 12px;
  line-height: 1.9;
  color: #b1bdd4;
}
.help {
  color: #7f8eaa;
}
.record {
  border-top: 1px solid #252e47;
  padding-top: 16px;
  margin-top: 22px;
}
.record p {
  color: #c6f432;
}
.record small {
  font-size: 10px;
  color: #929db7;
}
details {
  margin-top: 22px;
  border-top: 1px solid #252e47;
  padding-top: 14px;
}
summary {
  font-size: 12px;
  cursor: pointer;
  color: #aab8d1;
}
details a {
  color: #c6f432;
  font-size: 11px;
  line-height: 1.8;
}
dialog {
  background: #10162a;
  color: #e9edfa;
  border: 1px solid #343e5e;
  border-radius: 8px;
  max-width: 340px;
  padding: 24px;
}
dialog::backdrop {
  background: #020612bd;
}
dialog p {
  font-size: 12px;
  color: #929db7;
}
dialog form > div {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
dialog button {
  flex: 1;
  font-size: 12px;
}
.primary {
  background: #c6f432;
  color: #0b1020;
  border-color: #c6f432;
}
@media (max-width: 640px) {
  main {
    padding: 16px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  aside {
    border-left: 0;
    border-top: 1px solid #252e47;
    padding: 18px 0 0;
  }
  nav button {
    font-size: 12px;
    gap: 6px;
    padding: 8px 4px;
  }
  nav svg {
    width: 26px;
    height: 26px;
  }
  .settings {
    gap: 8px;
  }
  .settings select {
    max-width: 100px;
    padding: 7px;
  }
  .settings button {
    padding: 8px;
  }
  .settings #undo {
    margin-left: 0;
  }
  #board {
    max-width: 480px;
  }
  .point {
    width: 36px;
    height: 36px;
  }
  .point.own:before,
  .point.enemy:before {
    width: 25px;
    height: 25px;
  }
  .point.stake:before {
    font-size: 22px;
  }
  .turn-line #status {
    font-size: 12px;
  }
  .record {
    margin-top: 14px;
  }
}
