@import url("./tokens.css");
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: #080f16;
  color: #eef2f6;
  font-family: var(--sans);
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background: transparent;
  border: 1px solid #ffffff28;
  border-radius: 30px;
  padding: 9px 16px;
  font-size: 12px;
}
button:hover {
  background: #ffffff16;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #87d7ee;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.35;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
.game-top {
  height: 72px;
  max-width: 1200px;
  margin: auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.game-back {
  font-size: 13px;
  color: #b2c0cc;
}
.game-brand {
  font: 12px var(--mono);
  letter-spacing: 0.2em;
}
.game-top > span {
  font-size: 10px;
  color: #788997;
}
.game-layout {
  max-width: 1050px;
  margin: auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 460px);
  justify-content: center;
  gap: 75px;
  padding: 20px 24px 40px;
  align-items: center;
}
.game-aside {
  align-self: center;
}
.game-kicker {
  font: 11px var(--mono);
  letter-spacing: 0.15em;
  color: #87c8d8;
}
.game-aside h1 {
  font-size: 54px;
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.055em;
  margin: 18px 0;
}
.game-aside h1 > span {
  display: block;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: #8a9fab;
  margin: 14px 0;
}
.game-aside > p {
  font-size: 14px;
  line-height: 1.9;
  color: #9baab5;
}
.game-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.game-controls label {
  font-size: 12px;
  color: #9baab5;
}
.game-controls select {
  background: #11202c;
  border: 1px solid #ffffff28;
  padding: 8px;
  border-radius: 20px;
  max-width: 170px;
}
.help {
  border-top: 1px solid #ffffff20;
  margin-top: 24px;
  padding-top: 18px;
  font-size: 12px;
  color: #899ba7;
  line-height: 1.8;
}
.help summary {
  cursor: pointer;
  color: #a8b7c3;
}
.help p {
  margin: 10px 0;
}
.game-stats {
  display: flex;
  gap: 30px;
  margin: 25px 0;
}
.game-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.game-stats small {
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  color: #8194a2;
}
.game-stats strong {
  font: 30px var(--mono);
  font-weight: 400;
}
.play-column {
  position: relative;
  min-width: 0;
}
.table-stage {
  width: 100%;
  aspect-ratio: 420/760;
  position: relative;
  touch-action: none;
  outline: none;
  max-height: calc(100dvh - 140px);
}
.table-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.table-stage:focus-visible {
  outline: 1px solid #91d5e4;
  border-radius: 28px;
}
.table-status {
  font-size: 12px;
  color: #9aacb8;
  text-align: center;
  min-height: 22px;
  line-height: 1.5;
  margin: 6px 0;
}
.power-meter {
  height: 3px;
  background: #ffffff16;
  max-width: 150px;
  margin: 8px auto;
  overflow: hidden;
  border-radius: 5px;
}
.power-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: #8fdbef;
  transition: width 0.05s;
}
.game-result {
  position: absolute;
  inset: 20% 5%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #081723ed;
  border: 1px solid #86bccc55;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 30px 100px #0008;
}
.game-result h2 {
  font-size: 38px;
  font-weight: 400;
  margin: 15px 0;
}
.game-result p {
  font-size: 14px;
  color: #9bafba;
  line-height: 1.8;
}
.primary-button {
  background: #bcebdc;
  color: #102b23;
  border: 0;
  padding: 12px 28px;
}
.sample-note {
  font-size: 11px;
  color: #697d89;
  border-top: 1px solid #ffffff15;
  padding-top: 16px;
  line-height: 1.8;
}
.mobile-stats {
  display: none;
}
@media (max-width: 760px) {
  .game-top {
    height: 48px;
    padding: 12px 18px;
  }
  .game-top > span {
    display: none;
  }
  .game-brand {
    font-size: 10px;
  }
  .game-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 12px 22px;
    max-width: 460px;
  }
  .game-aside {
    display: contents;
  }
  .game-kicker,
  .game-aside h1,
  .game-aside > p,
  .game-aside > .help {
    display: none;
  }
  .game-stats {
    order: 0;
    margin: 8px 0 2px;
    gap: 34px;
    justify-content: center;
    width: 100%;
  }
  .game-stats div {
    gap: 3px;
    text-align: center;
  }
  .game-stats small {
    font-size: 9px;
  }
  .game-stats strong {
    font-size: 22px;
  }
  .play-column {
    order: 1;
    width: min(100%, calc((100dvh - 205px) * 420 / 760));
    min-width: 250px;
  }
  .table-stage {
    max-height: none;
  }
  .game-controls {
    order: 2;
    justify-content: center;
    gap: 6px;
    margin: 8px 0;
    align-items: center;
  }
  .game-controls button {
    font-size: 11px;
    padding: 7px 11px;
  }
  .game-controls select {
    font-size: 11px;
    padding: 6px;
    max-width: 120px;
  }
  .sample-note {
    order: 3;
    text-align: center;
    padding: 8px 12px;
    margin: 0;
    font-size: 10px;
  }
  .game-result {
    inset: 15% 2%;
  }
  .game-result h2 {
    font-size: 30px;
  }
}
@media (min-width: 761px) {
  .play-column {
    width: min(100%, calc((100dvh - 140px) * 420 / 760));
    justify-self: center;
  }
  .table-stage {
    max-height: none;
  }
}
