:root {
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  color: #243b34;
  background: #f2ecdf;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 80% 0%, #fff7e6, transparent 60%);
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #b94f35;
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.38;
  cursor: default;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 30px 48px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 25px;
  border-bottom: 1px solid #c9c6b7;
}
.wordmark {
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.mark {
  background: #2d4f40;
  color: #eee6ce;
  font-size: 32px;
  line-height: 37px;
  text-align: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
}
.edition {
  font-size: 13px;
  font-weight: 700;
}
.edition i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 2px;
  margin-left: 18px;
  color: #6b7364;
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 35px 0 27px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  margin: 0 0 15px;
}
h1 {
  font-family: Georgia, serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -3px;
  margin: 0;
}
h1 br {
  display: none;
}
h1 em {
  font-weight: 400;
  color: #ae4a35;
}
.intro-copy {
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 4px;
  color: #657065;
}
.play-area {
  border-top: 1px solid #c9c6b7;
}
.game-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 0;
}
.difficulty {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
}
#levels {
  display: flex;
  gap: 5px;
}
#levels button {
  width: 35px;
  height: 35px;
  border: 1px solid #b7baaa;
  border-radius: 50%;
  background: transparent;
  color: #405647;
}
#levels button.active {
  background: #2b4b3b;
  color: #fcf5e6;
  border-color: #2b4b3b;
}
.metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  font-variant-numeric: tabular-nums;
}
.metrics div {
  text-align: center;
  display: flex;
  gap: 7px;
  align-items: baseline;
}
.metrics strong {
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
}
.metrics span {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.metrics b {
  font-size: 27px;
  color: #b6b9aa;
  font-weight: 300;
}
.board {
  height: 290px;
  position: relative;
  isolation: isolate;
  margin: 0 7px;
}
.sun {
  position: absolute;
  width: 410px;
  height: 240px;
  background: linear-gradient(#e7d7b2, #ece3ce);
  border-radius: 240px 240px 0 0;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  z-index: -2;
}
.sun:after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid #f6eddb;
  border-bottom: none;
  border-radius: 240px 240px 0 0;
}
.peg-row {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-around;
  gap: 16px;
}
.peg {
  position: relative;
  flex: 1;
  max-width: 300px;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  height: 100%;
  touch-action: manipulation;
}
.pole {
  position: absolute;
  left: calc(50% - 5px);
  bottom: 44px;
  width: 10px;
  height: 187px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, #988156, #edd8a6 40%, #b09867);
  box-shadow: 3px 2px 4px #38361814;
  z-index: -1;
}
.peg-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 10px;
  letter-spacing: 2px;
}
.peg-label b {
  display: inline-flex;
  background: #e9e0cd;
  border: 1px solid #d4cbb7;
  border-radius: 50%;
  height: 22px;
  width: 22px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.disc {
  position: absolute;
  height: 25px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px 10px 9px 9px;
  box-shadow:
    inset 0 3px 1px #ffffff44,
    inset 0 -5px 1px #00000016,
    0 3px 3px #0000001a;
  background: var(--disc);
  border: 1px solid #00000017;
  display: grid;
  place-items: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
  transition:
    bottom 0.2s,
    transform 0.2s;
  min-width: 42px;
}
.disc:before {
  content: "";
  position: absolute;
  top: 4px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: #ffffff3b;
}
.peg.selected .disc.top {
  transform: translate(-50%, -13px);
  outline: 3px solid #2f493a;
  outline-offset: 4px;
}
.peg.selected .peg-label {
  font-weight: 700;
}
.peg:hover:not(:disabled) .pole {
  filter: brightness(1.1);
}
.base {
  position: absolute;
  bottom: 35px;
  left: 0;
  right: 0;
  height: 11px;
  border-radius: 8px;
  background: linear-gradient(#c0b89b, #a29b7d);
  box-shadow: 0 8px 12px #4c493525;
  z-index: -1;
}
.status {
  font-size: 13px;
  text-align: center;
  margin: 6px 0 20px;
  min-height: 20px;
}
.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-bottom: 29px;
}
.actions button {
  border-radius: 5px;
  padding: 13px 23px;
  font-size: 12px;
  font-weight: 600;
}
.soft {
  background: transparent;
  border: 1px solid #b7bcaa;
  color: #3c5647;
}
.primary {
  background: #2b4b3b;
  border: 1px solid #2b4b3b;
  color: #fff5e6;
  min-width: 165px;
}
.primary span {
  margin-left: 15px;
}
.result {
  margin: 0 auto 20px;
  max-width: 480px;
  background: #2b4b3b;
  color: #fff6e6;
  text-align: center;
  padding: 21px 25px;
  border-radius: 8px;
}
.result strong {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  display: block;
  margin-bottom: 6px;
}
.result p {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #c9c6b7;
  padding: 17px 0;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #76816e;
}
.rules {
  border-top: 1px solid #c9c6b7;
  margin-top: 22px;
}
.rules summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 13px;
  font-weight: 600;
}
.rules summary span {
  font-size: 20px;
}
.rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 8px 0 20px;
}
h2 {
  font:
    30px Georgia,
    serif;
  margin: 0 0 20px;
}
h3 {
  font-size: 12px;
  margin: 0 0 10px;
}
.rules p {
  font-size: 13px;
  line-height: 1.8;
  color: #5d6c60;
}
.fine {
  font-size: 11px !important;
}
kbd {
  border: 1px solid #bfc4b4;
  border-radius: 3px;
  padding: 1px 5px;
}
@media (max-width: 650px) {
  main {
    padding: 20px 18px;
  }
  .edition i {
    display: none;
  }
  header {
    padding-bottom: 20px;
  }
  .intro {
    padding: 29px 0 25px;
  }
  .intro-copy {
    max-width: 122px;
    font-size: 11px;
    line-height: 1.8;
  }
  h1 {
    font-size: 49px;
    letter-spacing: -2px;
  }
  h1 br {
    display: block;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }
  .game-top {
    padding: 20px 0;
  }
  .difficulty {
    gap: 8px;
    display: block;
  }
  .difficulty > span {
    display: block;
    font-size: 8px;
    margin-bottom: 8px;
  }
  #levels {
    gap: 4px;
  }
  #levels button {
    width: 27px;
    height: 27px;
    font-size: 11px;
  }
  .metrics {
    gap: 11px;
  }
  .metrics div {
    display: block;
  }
  .metrics span {
    display: block;
    font-size: 8px;
    margin-top: 4px;
  }
  .metrics strong {
    font-size: 27px;
  }
  .board {
    height: 257px;
    margin: 0 1px;
  }
  .sun {
    width: 240px;
    height: 190px;
    bottom: 35px;
  }
  .peg-row {
    gap: 4px;
  }
  .peg {
    height: 100%;
  }
  .pole {
    bottom: 42px;
    height: 175px;
    width: 8px;
    left: calc(50% - 4px);
  }
  .disc {
    height: 23px;
    font-size: 10px;
  }
  .peg-label {
    font-size: 8px;
    letter-spacing: 1px;
    bottom: -2px;
  }
  .peg-label b {
    margin-right: 3px;
    height: 19px;
    width: 19px;
  }
  .base {
    bottom: 38px;
  }
  .actions {
    gap: 8px;
  }
  .actions button {
    padding: 12px 13px;
    font-size: 11px;
  }
  .primary {
    min-width: 132px;
  }
  .primary span {
    margin-left: 9px;
  }
  .status {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .rule-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .result strong {
    font-size: 25px;
  }
  footer {
    font-size: 8px;
    letter-spacing: 1px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.peg:disabled {
  opacity: 1;
}
