.runner-page {
  background: #14292c;
}
.runner-page .game-layout {
  grid-template-columns: 300px minmax(0, 460px);
  gap: 60px;
  padding-top: 8px;
}
.runner-page .game-kicker {
  color: #d5c38a;
}
.runner-page .game-aside h1 > span {
  color: #b2c2b2;
}
.run-stage {
  width: min(100%, calc((100dvh - 105px) * 0.6));
  aspect-ratio: 3/5;
  justify-self: center;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  touch-action: none;
  box-shadow: 0 35px 80px #0005;
  background: #bbd3c3;
  outline: none;
}
.run-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.run-top-label {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  color: #254a45;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  text-shadow: 0 1px 3px #fff9;
}
.run-top-label > span:last-child {
  font: 8px var(--mono);
  padding-top: 2px;
}
.run-progress {
  position: absolute;
  top: 44px;
  left: 20px;
  right: 20px;
  background: #ffffff44;
  height: 3px;
  pointer-events: none;
}
.run-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: #3f7762;
}
.run-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  background: linear-gradient(#122e3620 5%, #0d2d36aa 58%, #071f2be8);
  color: #fff;
}
.run-overlay h2 {
  font-size: 45px;
  letter-spacing: -0.05em;
  font-weight: 450;
  margin: 20px 0 0;
}
.run-overlay p {
  font-size: 13px;
  line-height: 1.9;
  max-width: 250px;
  margin: 20px 0 26px;
  color: #f1f2de;
}
.run-overlay .game-kicker {
  font-size: 9px;
  color: #f2e6b5;
}
.run-instructions {
  font-size: 11px;
  margin-top: 25px;
  color: #c1d9d2;
}
.run-touch-controls {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.run-touch-controls button {
  background: #173e4960;
  border: 1px solid #fff3;
  backdrop-filter: blur(6px);
  font-size: 21px;
  width: 45px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
}
.run-stage:has(.run-overlay:not([hidden])) .run-touch-controls {
  display: none;
}
.run-toast {
  position: absolute;
  top: 20%;
  width: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 2px 8px #183b45;
  opacity: 0;
  transition: opacity 0.2s;
}
.run-toast.show {
  opacity: 1;
}
.run-hit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 70px #ff623d00;
  transition: box-shadow 0.15s;
}
.run-hit.active {
  box-shadow: inset 0 0 70px #ff623dbb;
}
.runner-page #run-lives {
  font-size: 17px;
  color: #ecc377;
  padding-top: 9px;
}
.runner-page .sample-note {
  color: #a1b6b4;
}
@media (max-width: 760px) {
  .runner-page .game-layout {
    padding: 0 12px 10px;
    gap: 0;
  }
  .run-stage {
    order: 1;
    width: min(100%, calc((100dvh - 200px) * 0.6));
    min-width: 250px;
    border-radius: 18px;
  }
  .run-overlay h2 {
    font-size: 38px;
  }
  .runner-page .game-stats {
    margin: 5px 0 10px;
  }
  .runner-page #run-lives {
    font-size: 13px;
    padding-top: 5px;
  }
  .run-top-label {
    font-size: 10px;
  }
  .run-touch-controls {
    bottom: 12px;
    left: 15px;
    right: 15px;
  }
  .runner-page .sample-note {
    max-width: 360px;
  }
}
