:root {
  color-scheme: light;
  --ink: #173b33;
  --cream: #fff6df;
  --orange: #ed6b38;
  --muted: #b2c6b4;
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #173b33;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffe18b;
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.3;
}
[hidden] {
  display: none !important;
}
#game {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 320px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: contain;
  color: var(--cream);
}
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.topbar {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: max(22px, env(safe-area-inset-left));
  right: max(22px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}
.brand {
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -2px;
  color: var(--cream);
  text-decoration: none;
}
.brand span {
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-left: 10px;
  font-weight: 600;
}
.tools {
  display: flex;
  gap: 8px;
}
.tools button {
  border: 1px solid #fff6df44;
  background: #193e32b8;
  color: var(--cream);
  border-radius: 99px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.tools #help,
.tools #pause {
  font-size: 18px;
  padding: 0;
}
.title-block {
  position: absolute;
  top: 12%;
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.3px;
  font-weight: 800;
}
.title-block .eyebrow {
  color: #ddcca1;
}
.title-block h1 {
  font-family: Impact, "Arial Narrow", Arial, sans-serif;
  font-size: clamp(38px, 7vw, 68px);
  letter-spacing: 2px;
  line-height: 0.98;
  margin: 14px 0 8px;
  font-weight: 900;
  text-shadow: 0 3px 0 #173b3370;
}
.title-block h1 > span {
  display: block;
  font-size: clamp(50px, 10vw, 94px);
  letter-spacing: 3px;
}
.title-dot {
  color: var(--orange);
}
.subtitle {
  font-size: 12px;
  color: #fff1d0;
  margin: 10px 0;
}
.menu-actions {
  position: absolute;
  width: min(350px, calc(100% - 56px));
  left: 50%;
  transform: translateX(-50%);
  bottom: max(20px, env(safe-area-inset-bottom));
  text-align: center;
}
.menu-tag {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #f1e6c5;
  margin-bottom: 13px;
  font-weight: 700;
}
.orange-dot {
  display: inline-block;
  background: var(--orange);
  width: 6px;
  height: 6px;
  border-radius: 100%;
  margin-right: 7px;
}
.primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 24px;
  border: 0;
  border-bottom: 4px solid #ad4525;
  border-radius: 8px;
  background: var(--orange);
  color: #fff8e8;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1.5px;
  box-shadow: 0 8px 24px #132e3033;
}
.primary:hover {
  background: #f7804d;
}
.primary:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}
.primary > span {
  font-size: 24px;
  line-height: 16px;
}
.split {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.secondary {
  padding: 15px 13px;
  min-height: 44px;
  border: 1px solid #fff6df66;
  border-radius: 7px;
  background: #214538e6;
  color: var(--cream);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.split > * {
  flex: 1;
}
.personal {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 16px 0 10px;
}
.preview {
  font-size: 8px;
  letter-spacing: 2px;
  color: #dfd7b8;
  opacity: 0.7;
}
.hud {
  position: absolute;
  z-index: 2;
  left: 6%;
  right: 6%;
  top: max(82px, calc(env(safe-area-inset-top) + 62px));
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 8px;
  pointer-events: none;
}
.small-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #d7d6b7;
}
.hud strong {
  display: block;
  font-size: 16px;
  margin-top: 7px;
}
.hud #round-name {
  font-size: 12px;
  max-width: 130px;
  line-height: 1.3;
}
.score-box {
  text-align: center;
}
.score-box strong {
  font-size: 34px;
  letter-spacing: -1.8px;
  line-height: 1;
}
.score-box #goal {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 6px;
  color: #f3dbac;
}
.ammo {
  text-align: right;
}
.ammo strong {
  font-size: 20px;
}
.ammo #axe-icons {
  font-size: 9px;
  margin-top: 5px;
  letter-spacing: 2px;
  color: #eaa865;
}
.lane-info {
  position: absolute;
  z-index: 2;
  top: 21%;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  pointer-events: none;
  color: #f6e6bb;
}
.lane-info span {
  background: #1d3a30a8;
  border-radius: 20px;
  padding: 7px 10px;
}
#timer {
  color: #ffc687;
}
.aim-ui {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  width: min(310px, 80%);
  transform: translateX(-50%);
  pointer-events: none;
}
.power-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 800;
}
.meter {
  height: 8px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #0f292ba8;
  margin-top: 8px;
  border: 1px solid #fff2c32b;
}
.good-range {
  position: absolute;
  left: 32%;
  width: 60%;
  height: 100%;
  background: #80bb8070;
}
#power-fill {
  height: 100%;
  width: 0;
  background: #f5ca78;
  position: relative;
  transition: width 0.06s;
}
.aim-ui p {
  text-align: center;
  font-size: 10px;
  line-height: 1.4;
  color: #f1dfb2;
  margin: 9px -20px 0;
}
.tutorial {
  position: absolute;
  bottom: 28%;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px #123;
}
.tutorial span {
  display: block;
  font-size: 24px;
  line-height: 30px;
}
.feedback {
  position: absolute;
  top: 61%;
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
  font-family: Impact, "Arial Narrow", Arial, sans-serif;
  letter-spacing: 2px;
  font-size: clamp(26px, 6vw, 45px);
  color: #fff3ce;
  text-shadow: 0 3px 0 #1c382988;
  line-height: 1.1;
}
.feedback small {
  display: block;
  font:
    800 11px Arial,
    sans-serif;
  letter-spacing: 2px;
  margin-top: 8px;
}
.feedback.bull {
  color: #ffd16b;
}
.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #0d292dc9;
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 20px
    max(20px, env(safe-area-inset-bottom));
  overflow: auto;
}
.panel {
  width: min(390px, 100%);
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--cream);
  color: var(--ink);
  padding: 32px 28px;
  border-radius: 14px;
  box-shadow: 0 18px 90px #081f2a66;
  text-align: center;
}
.panel .eyebrow {
  color: #966348;
  font-size: 9px;
}
.panel h2 {
  font-family: Impact, "Arial Narrow", Arial, sans-serif;
  font-size: 39px;
  letter-spacing: 0.5px;
  line-height: 1.06;
  margin: 13px 0;
}
.panel p {
  font-size: 12px;
  line-height: 1.7;
  color: #536653;
}
.panel .primary {
  margin-top: 16px;
}
.panel .secondary {
  width: 100%;
  margin-top: 9px;
}
.results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-top: 1px solid #1d473325;
  border-bottom: 1px solid #1d473325;
  padding: 21px 0;
  margin: 20px 0;
}
.results span {
  font-size: 9px;
  letter-spacing: 1px;
  display: block;
  color: #65745c;
}
.results b {
  font-size: 25px;
  display: block;
  margin-top: 5px;
}
.stars {
  color: #dc903c;
  font-size: 39px;
  letter-spacing: 7px;
  margin-top: 18px;
}
.stars .empty {
  color: #d8d7bd;
}
.help-panel {
  text-align: left;
}
.help-panel h2 {
  font-size: 35px;
}
.ring-key {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 10px;
  gap: 10px;
  padding: 16px 0;
  border-block: 1px solid #173b3322;
}
.ring-key span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ring-key b {
  margin-left: auto;
}
.bull-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bf5138;
}
.bonus-key {
  color: #aa6422;
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 22px 0;
}
.level-grid button {
  border: 1px solid #18463320;
  min-height: 53px;
  border-radius: 6px;
  background: #e7e6cc;
  color: #174834;
  font-weight: 900;
  font-size: 17px;
}
.level-grid button.current {
  background: #ed6b38;
  color: #fff6df;
}
.level-grid small {
  display: block;
  font-size: 8px;
  margin-top: 3px;
  letter-spacing: 1px;
}
.no-script {
  position: absolute;
  z-index: 20;
  inset: 30% 10%;
  padding: 24px;
  background: var(--cream);
  color: var(--ink);
}
@media (max-width: 420px) {
  .brand span {
    display: none;
  }
  .topbar {
    left: 18px;
    right: 18px;
  }
  .title-block h1 {
    font-size: 41px;
  }
  .title-block h1 > span {
    font-size: 59px;
  }
  .tools {
    gap: 6px;
  }
  .hud {
    left: 5%;
    right: 5%;
  }
  .lane-info {
    font-size: 8px;
  }
  .lane-info span {
    padding: 6px 8px;
  }
}
@media (max-height: 710px) and (orientation: portrait) {
  .title-block {
    top: 12%;
  }
  .title-block h1 {
    font-size: 34px;
    margin-top: 11px;
  }
  .title-block h1 > span {
    font-size: 49px;
  }
  .title-block .subtitle {
    display: none;
  }
  .menu-actions {
    bottom: 10px;
  }
  .primary {
    padding: 15px 20px;
  }
  .menu-tag {
    margin-bottom: 9px;
  }
  .personal {
    margin: 10px 0 5px;
  }
  .hud {
    top: 75px;
  }
  .hud strong {
    font-size: 15px;
  }
  .hud .score-box strong {
    font-size: 27px;
  }
  .lane-info {
    top: 24%;
  }
  .tutorial {
    bottom: 25%;
  }
  .aim-ui p {
    font-size: 9px;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .topbar {
    top: max(10px, env(safe-area-inset-top));
    left: 20px;
    right: 20px;
  }
  .title-block {
    left: 3%;
    top: 30%;
    width: 29%;
    text-align: left;
  }
  .title-block h1 {
    font-size: 28px;
  }
  .title-block h1 > span {
    font-size: 39px;
  }
  .title-block .eyebrow {
    font-size: 7px;
    line-height: 1.7;
    max-width: 180px;
  }
  .subtitle {
    font-size: 10px;
    max-width: 150px;
    line-height: 1.5;
  }
  .menu-actions {
    left: auto;
    right: 4%;
    width: 25%;
    transform: none;
    bottom: 17%;
  }
  .menu-actions .primary {
    font-size: 13px;
    padding: 15px;
  }
  .split {
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
  }
  .split .secondary {
    padding: 10px;
    min-height: 36px;
  }
  .menu-tag {
    font-size: 7px;
    line-height: 1.6;
  }
  .personal {
    font-size: 7px;
    line-height: 1.5;
  }
  .preview {
    display: none;
  }
  .hud {
    top: 65px;
    left: 4%;
    right: 4%;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .hud > div:first-child {
    max-width: 150px;
  }
  .hud .score-box {
    position: absolute;
    left: 0;
    top: 61px;
    text-align: left;
  }
  .hud .score-box strong {
    font-size: 27px;
  }
  .hud .ammo {
    grid-column: 3;
  }
  .lane-info {
    top: auto;
    bottom: 20px;
    left: 3%;
    right: auto;
    max-width: 28%;
    flex-wrap: wrap;
    font-size: 8px;
  }
  .aim-ui {
    left: auto;
    right: 3%;
    bottom: 20px;
    transform: none;
    width: 25%;
  }
  .aim-ui p {
    font-size: 9px;
  }
  .feedback {
    top: 65%;
    font-size: 26px;
  }
  .tutorial {
    bottom: 8%;
    font-size: 8px;
    width: 40%;
    left: 30%;
  }
  .tutorial span {
    font-size: 18px;
    line-height: 20px;
  }
  .panel {
    padding: 22px;
  }
  .overlay {
    padding: 15px;
  }
  .tools button {
    min-height: 36px;
  }
  .title-block .subtitle {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media (min-width: 1000px) and (min-height: 601px) {
  .title-block {
    left: 5%;
    top: 31%;
    width: 27%;
    text-align: left;
  }
  .title-block h1 {
    font-size: 43px;
  }
  .title-block h1 > span {
    font-size: 60px;
  }
  .title-block .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .subtitle {
    font-size: 12px;
  }
  .menu-actions {
    left: auto;
    right: 5%;
    bottom: 28%;
    width: 24%;
    max-width: 350px;
    transform: none;
  }
}
