body {
  overflow: hidden;
  background: #101b4b;
}
.play-surface {
  height: calc(100dvh - 96px);
  min-height: 230px;
  background: #111e49;
}
#board {
  outline-offset: -5px;
}
#combo {
  font-size: 12px;
  color: #caff9d;
  margin-top: 6px;
  font-weight: 600;
}
#dash {
  position: absolute;
  right: 22px;
  bottom: 40px;
  border: 3px solid #efffc8;
  background: #ceff87;
  color: #1b3340;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow:
    0 6px 0 #396a66,
    0 0 0 7px #ceff8715;
  z-index: 4;
}
#dash > span {
  font: 700 32px Poppins;
  line-height: 1;
}
#dash strong {
  font: 700 13px Poppins;
  line-height: 1.2;
}
#dash small {
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 3px;
}
#dash:disabled {
  opacity: 0.7;
  background: #718f9d;
  color: #193647;
  box-shadow: 0 4px 0 #173955;
  border-color: #c4f2e2;
}
#move-hint {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  text-align: center;
  font: 700 16px Poppins;
  pointer-events: none;
  text-shadow: 0 2px 4px #07182b;
  transition: opacity 0.4s;
  width: 60%;
}
#move-hint b {
  font: inherit;
  color: inherit;
}
@media (hover: none) and (pointer: coarse) {
  #dash small {
    display: none;
  }
}
#move-hint span {
  display: block;
  font: 500 12px Inter;
  margin-top: 5px;
  color: #bededc;
}
.level-track {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.level-track > span {
  font: 700 11px Poppins;
  white-space: nowrap;
  color: #ddffd1;
}
.level-track > div {
  width: 170px;
  height: 7px;
  border-radius: 5px;
  background: #091832c9;
  overflow: hidden;
  border: 1px solid #99c9d544;
}
.level-track i,
#rage i {
  height: 100%;
  background: #c8ff8e;
  display: block;
  transition: width 0.15s;
}
.level-track #power-name {
  margin-left: auto;
  letter-spacing: 1px;
  font-size: 8px;
  color: #d2f2e3;
}
#rage {
  position: absolute;
  left: 20px;
  bottom: 47px;
  pointer-events: none;
  width: 110px;
}
#rage > span {
  font: 700 12px Poppins;
  font-style: italic;
  letter-spacing: 1px;
  color: #d1ff8d;
}
#rage > div {
  height: 6px;
  background: #0c1635cc;
  border-radius: 3px;
  margin-top: 4px;
  overflow: hidden;
}
#rage i {
  background: #ff82c9;
}
#boss-hud {
  position: absolute;
  top: 90px;
  left: 50%;
  width: min(45%, 400px);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
#boss-hud > span {
  font: 700 11px Poppins;
  letter-spacing: 2px;
  color: #ffa8bd;
}
#boss-hud > div {
  height: 10px;
  background: #171336;
  border: 2px solid #481c4a;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 5px;
}
#boss-fill {
  display: block;
  background: #ff648f;
  height: 100%;
  transition: width 0.12s;
}
.return-home {
  align-self: center;
  text-align: center;
  font-size: 13px;
  line-height: 44px;
}
.game-footer {
  height: 34px;
}
.dialog .big-play {
  width: 100%;
}
@media (max-width: 600px) {
  .play-surface {
    height: calc(100dvh - 87px);
  }
  .game-footer {
    height: 30px;
    padding: 6px 12px;
  }
  #dash {
    width: 76px;
    height: 76px;
    right: 15px;
    bottom: 40px;
  }
  #dash small {
    display: none;
  }
  #dash > span {
    font-size: 28px;
  }
  #move-hint {
    bottom: 145px;
    width: 85%;
    font-size: 14px;
  }
  .level-track {
    left: 14px;
    right: 14px;
    bottom: 10px;
  }
  .level-track #power-name {
    display: none;
  }
  .level-track > div {
    width: 160px;
  }
  #rage {
    left: 14px;
    bottom: 48px;
  }
  #boss-hud {
    top: 85px;
    width: 65%;
  }
  .hud-time small {
    letter-spacing: 1px;
    font-size: 9px;
  }
  #combo {
    font-size: 10px;
  }
}
@media (max-height: 500px) and (min-width: 601px) {
  .topbar {
    height: 48px;
  }
  .play-surface {
    height: calc(100dvh - 48px);
  }
  .game-footer {
    display: none;
  }
  .floating-hud {
    top: 10px;
  }
  .hud-score strong,
  .hud-time strong {
    font-size: 22px;
  }
  .hud-hearts {
    font-size: 17px;
  }
  #dash {
    width: 64px;
    height: 64px;
    right: 18px;
    bottom: 25px;
  }
  #dash > span {
    font-size: 23px;
  }
  #dash small {
    display: none;
  }
  #boss-hud {
    top: 14px;
    width: 30%;
  }
  .level-track {
    bottom: 9px;
  }
  .level-track #power-name {
    display: none;
  }
  #move-hint {
    bottom: 48px;
  }
  /* Tighter result spacing keeps the personal-best line on screen. */
  #result .lede {
    margin: 8px 0 12px;
  }
  #saved {
    margin-top: 6px;
  }
}

body,
.play-surface {
  background: #11101e;
}
#combo {
  color: #5de4ff;
}
#dash {
  background: linear-gradient(135deg, #00a6ff, #8152f2);
  border-color: #b5b9ff;
  color: #fff;
  box-shadow:
    0 4px 0 #37235c,
    0 0 25px #8152f265;
}
.level-track i,
#rage-fill {
  background: linear-gradient(90deg, #00a6ff, #ff5eed);
}
.level-track > span {
  color: #cda9f6;
}
.floating-hud {
  text-shadow: 0 2px 12px #050314;
}
#boss-hud span {
  letter-spacing: 0.2em;
}
@media (max-width: 600px) {
  .play-surface {
    height: calc(100dvh - 92px);
  }
}
