* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}
body {
  background: #1c3032;
  color: #f3f4eb;
  font:
    16px/1.45 'PingFang SC',
    'Microsoft Yahei',
    system-ui,
    sans-serif;
}
button {
  color: inherit;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #bbd0c4;
  border-radius: 2px;
  background: #142b2d;
  min-height: 40px;
  padding: 7px 14px;
  touch-action: manipulation;
}
button:focus-visible {
  outline: 2px solid #ffe794;
  outline-offset: 2px;
}
button:hover {
  background: #314846;
}
button[hidden],
[hidden] {
  display: none !important;
}
#stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 255px;
  overflow: hidden;
  isolation: isolate;
}
#world {
  display: block;
  width: 100%;
  height: 100%;
}
header {
  position: absolute;
  top: 13px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.plate,
.counter,
.telemetry,
.touch button {
  background: #12282bee;
  border: 1px solid #56716d;
}
.plate,
.counter {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  font-size: 14px;
}
.plate i {
  width: 16px;
  height: 18px;
  background: repeating-linear-gradient(
    125deg,
    #f59144 0 3px,
    transparent 3px 5px
  );
}
.plate span,
.hint,
small {
  font-size: 11px;
  letter-spacing: 1.1px;
  color: #c4d7cc;
}
.counter {
  padding: 4px 8px;
}
.counter button {
  min-height: 31px;
  padding: 2px 8px;
}
.counter span {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.telemetry {
  position: absolute;
  bottom: 15px;
  left: 14px;
  width: min(310px, calc(100% - 175px));
  padding: 8px 11px;
  border-left: 3px solid #f59144;
}
.navigator {
  display: flex;
  align-items: center;
  gap: 11px;
}
.navigator div {
  display: grid;
}
.navigator b {
  font: 800 36px/0.9 system-ui;
  color: #f6ad66;
}
.navigator strong {
  font-size: 17px;
}
.score {
  margin-left: auto;
  text-align: right;
}
.timing {
  position: relative;
  margin: 7px 0 2px;
  height: 11px;
  background: #415151;
  border: 1px solid #82968f;
}
.zone {
  position: absolute;
  left: 62%;
  width: 28%;
  height: 100%;
  background: repeating-linear-gradient(128deg, #addc9c 0 6px, #94c886 6px 8px);
}
#needle {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 3px;
  background: white;
  outline: 1px solid #263a39;
}
#feedback {
  font-size: 12px;
  min-height: 1.45em;
  color: #e4e8de;
}
.touch {
  position: absolute;
  right: 14px;
  bottom: 15px;
  display: flex;
  gap: 5px;
}
.touch button {
  min-width: 68px;
  min-height: 43px;
}
.touch button:active {
  background: #d4e3d3;
  color: #152b2c;
}
.curtain {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0d1c244d;
}
.curtain section {
  max-width: 360px;
  margin: 12px;
  text-align: center;
  padding: 22px 26px;
  background: #11282af5;
  border: 1px solid #a7bcb0;
  border-top: 4px solid #e69952;
}
.curtain h1 {
  font-size: clamp(25px, 4.5vw, 42px);
  line-height: 1.12;
  margin: 7px 0;
}
.curtain p {
  margin: 10px 0 15px;
  color: #d8e2d9;
  font-size: 14px;
}
.curtain button {
  background: #f5a560;
  color: #172a27;
  border-color: #ffd4a7;
  min-width: 116px;
}
.curtain button:hover {
  background: #fec297;
}
.hint {
  margin-top: 8px;
  letter-spacing: 0.3px;
}
@media (max-width: 530px) {
  header {
    left: 7px;
    right: 7px;
    top: 7px;
  }
  .plate span {
    display: none;
  }
  .telemetry {
    left: 7px;
    right: 7px;
    bottom: 56px;
    width: auto;
    padding: 5px 9px;
  }
  .touch {
    bottom: 6px;
    right: 7px;
    left: 7px;
    justify-content: space-between;
  }
  .touch button {
    min-width: 76px;
  }
  .navigator b {
    font-size: 28px;
  }
  .navigator strong {
    font-size: 15px;
  }
  .curtain section {
    padding: 14px 19px;
  }
  .counter {
    font-size: 12px;
  }
}
@media (max-height: 340px) and (min-width: 531px) {
  .curtain section {
    padding: 10px 20px;
  }
  .curtain h1 {
    font-size: 28px;
  }
  .curtain p {
    margin: 6px 0 9px;
  }
  .telemetry {
    bottom: 5px;
  }
  .touch {
    bottom: 5px;
  }
}
