:root {
  --bg-top: #ffd9a8;
  --bg-bottom: #f7f2df;
  --panel: rgba(38, 52, 67, 0.88);
  --panel-soft: rgba(255, 250, 239, 0.76);
  --ink: #213040;
  --accent: #ff8f5a;
  --accent-strong: #ff6233;
  --skyline: #8ab7c9;
  --grass: #6ca968;
  --shadow: rgba(16, 21, 28, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.5), transparent 30%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body.focus-mode-active {
  overflow: hidden;
  background: #263443;
}

body.focus-mode-active .page-shell {
  width: 100vw;
  max-width: none;
  padding: 0;
}

body.focus-mode-active .hero {
  display: none;
}

.music-prompt {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 31, 41, 0.42);
  backdrop-filter: blur(6px);
}

.music-prompt-card {
  width: min(440px, 100%);
  padding: 28px 28px 24px;
  border-radius: 28px;
  background: rgba(255, 248, 236, 0.98);
  box-shadow: 0 24px 55px rgba(16, 21, 28, 0.24);
  text-align: center;
}

.music-prompt-eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(33, 48, 64, 0.62);
}

.music-prompt-card h2 {
  margin: 0 0 10px;
  font-family: "Jersey 15", sans-serif;
  font-size: 3rem;
  line-height: 0.95;
}

.music-prompt-card p:last-of-type {
  margin: 0 0 18px;
}

.music-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(33, 48, 64, 0.08);
  font-weight: 700;
}

.music-toggle-control {
  position: relative;
  width: 52px;
  height: 30px;
}

.music-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.music-toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #b8bec7;
  transition: background 180ms ease;
}

.music-toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease;
}

.music-toggle input:checked + .music-toggle-slider {
  background: #63d471;
}

.music-toggle input:checked + .music-toggle-slider::after {
  transform: translateX(22px);
}

.music-prompt-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.music-prompt-actions button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  color: #1d2a38;
  background: linear-gradient(180deg, #fff3d5, #ffcf82);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.instructions-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  color: #1d2a38;
  background: rgba(33, 48, 64, 0.1);
  cursor: pointer;
}

.instructions-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.instructions-copy {
  text-align: left;
  line-height: 1.5;
}

.instructions-copy p {
  margin: 0;
}

.prompt-install-hint {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(33, 48, 64, 0.08);
  text-align: left;
  line-height: 1.4;
}

.prompt-install-hint strong {
  font-size: 0.9rem;
}

.prompt-install-hint span {
  font-size: 0.82rem;
}

.share-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-weight: 700;
  white-space: nowrap;
}

.share-icon {
  position: relative;
  display: inline-block;
  width: 0.95rem;
  height: 1rem;
  flex: 0 0 auto;
}

.share-icon-box {
  position: absolute;
  left: 0.12rem;
  right: 0.12rem;
  bottom: 0.08rem;
  height: 0.58rem;
  border: 0.11rem solid currentColor;
  border-top: 0;
  border-radius: 0 0 0.2rem 0.2rem;
}

.share-icon-arrow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0.11rem;
  height: 0.58rem;
  background: currentColor;
  transform: translateX(-50%);
}

.share-icon-arrow::before,
.share-icon-arrow::after {
  content: "";
  position: absolute;
  top: 0.02rem;
  width: 0.42rem;
  height: 0.11rem;
  background: currentColor;
  transform-origin: center;
}

.share-icon-arrow::before {
  left: -0.28rem;
  transform: rotate(-45deg);
}

.share-icon-arrow::after {
  right: -0.28rem;
  transform: rotate(45deg);
}

.instructions-panel:not(.hidden) ~ * {
  display: none;
}

.music-prompt.hidden {
  display: none;
}

.rotate-prompt {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 31, 41, 0.66);
  backdrop-filter: blur(8px);
}

.rotate-prompt-card {
  width: min(360px, 100%);
  padding: 24px 22px;
  border-radius: 24px;
  background: rgba(255, 248, 236, 0.98);
  box-shadow: 0 24px 55px rgba(16, 21, 28, 0.24);
  text-align: center;
}

.rotate-prompt-card h2 {
  margin: 0 0 8px;
  font-family: "Jersey 15", sans-serif;
  font-size: 2.6rem;
  line-height: 0.95;
}

.rotate-prompt-card p:last-child {
  margin: 0;
}

.install-banner {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 248, 236, 0.96);
  color: #213040;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.install-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.35;
}

.install-banner-copy strong {
  font-size: 0.94rem;
}

.install-banner-copy span {
  font-size: 0.84rem;
}

#closeInstallBannerButton {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  color: #fff8ef;
  background: #213040;
  cursor: pointer;
}

.page-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 calc(40px + env(safe-area-inset-bottom));
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(33, 48, 64, 0.68);
}

h1 {
  margin: 0;
  font-family: "Jersey 15", sans-serif;
  font-size: clamp(3.6rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
}

.intro {
  max-width: 50rem;
  margin: 14px 0 0;
  font-size: 1.04rem;
  line-height: 1.6;
}

.controls-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--panel-soft);
  box-shadow: 0 20px 45px var(--shadow);
  backdrop-filter: blur(10px);
}

.controls-card p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(33, 48, 64, 0.1);
}

.controls-card p:last-child {
  border-bottom: 0;
}

.controls-card span {
  font-weight: 700;
}

.game-panel {
  position: relative;
  padding: 16px 16px 12px;
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 28px 60px rgba(16, 21, 28, 0.25);
  overflow: hidden;
  user-select: none;
}

.analog-clock {
  position: absolute;
  top: 92px;
  right: 16px;
  z-index: 4;
  width: 74px;
  height: 74px;
  pointer-events: none;
  transition: right 180ms ease;
}

.level-stats {
  position: absolute;
  top: 96px;
  left: 18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff8ef;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.clock-face {
  position: relative;
  width: 100%;
  height: 100%;
  border: 3px solid #1f2530;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0f0f0, #cfcfcf);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(0deg);
  border-radius: 999px;
  background: #1f2530;
}

.hour-hand {
  width: 5px;
  height: 20px;
}

.minute-hand {
  width: 4px;
  height: 28px;
}

.second-hand {
  width: 2px;
  height: 31px;
  background: #5a5f66;
}

.clock-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid #1f2530;
  border-radius: 50%;
  background: #d7d7d7;
  transform: translate(-50%, -50%);
}

.hud {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fff8ef;
  font-size: 0.98rem;
  margin-bottom: 12px;
}

#counterText {
  font-weight: 700;
}

.hud-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

#musicButton,
#changelogButton,
#restartButton,
#fullscreenButton {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  color: #1d2a38;
  background: linear-gradient(180deg, #fff3d5, #ffcf82);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

#musicButton:hover,
#changelogButton:hover,
#restartButton:hover,
#fullscreenButton:hover {
  background: linear-gradient(180deg, #fff7e2, #ffd89b);
}

#musicButton:active,
#changelogButton:active,
#restartButton:active,
#fullscreenButton:active {
  transform: translateY(1px);
}

.changelog-panel {
  position: absolute;
  top: 64px;
  right: 16px;
  z-index: 3;
  width: min(430px, calc(100% - 32px));
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 248, 236, 0.97);
  color: #213040;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  max-height: min(72vh, 640px);
  overflow: hidden;
}

.hidden {
  display: none;
}

.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.changelog-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.changelog-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.debug-level-button {
  width: 18px;
  height: 18px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
}

#closeChangelogButton {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  color: #fff8ef;
  background: #213040;
  cursor: pointer;
}

.changelog-body p {
  margin: 0 0 10px;
}

.changelog-body {
  max-height: calc(min(72vh, 640px) - 76px);
  overflow-y: auto;
  padding-right: 6px;
}

.debug-level-panel {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(33, 48, 64, 0.12);
}

.debug-level-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.debug-level-buttons button {
  border: 0;
  border-radius: 12px;
  padding: 8px 0;
  font: inherit;
  font-weight: 700;
  color: #213040;
  background: #ffd89b;
  cursor: pointer;
}

.version-entry + .version-entry {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(33, 48, 64, 0.12);
}

.changelog-body ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffc97d, #fff0b8);
  margin-bottom: 12px;
  touch-action: none;
}

.touch-controls {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 2px 4px 6px;
}

.touch-controls.hidden {
  display: none;
}

.touch-pad {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.touch-action-pad {
  align-items: stretch;
}

.touch-middle {
  display: flex;
  gap: 10px;
}

.touch-button {
  min-width: 74px;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  color: #1d2a38;
  background: linear-gradient(180deg, #fff3d5, #ffcf82);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  touch-action: none;
  user-select: none;
}

.touch-button:active,
.touch-button.is-active {
  transform: translateY(1px) scale(0.98);
  background: linear-gradient(180deg, #ffe9be, #ffbf5d);
}

.jump-button {
  min-width: 110px;
}

.virtual-keys-toggle {
  display: block;
  width: 100%;
  margin-top: 4px;
  border: 0;
  padding: 4px 0 2px;
  background: transparent;
  color: rgba(255, 248, 239, 0.58);
  font: inherit;
  font-size: 0.82rem;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}

.game-panel:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  padding: 20px;
}

.game-panel.focus-mode {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100vw;
  height: 100dvh;
  border-radius: 0;
  background: #263443;
  box-shadow: none;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom));
}

.game-panel:fullscreen .changelog-panel {
  top: 74px;
  right: 20px;
  max-height: min(78vh, 700px);
}

.game-panel.focus-mode .changelog-panel {
  top: calc(64px + env(safe-area-inset-top));
  right: 16px;
  max-height: min(78vh, 700px);
}

.game-panel:fullscreen .analog-clock {
  top: 96px;
  right: 20px;
}

.game-panel.focus-mode .analog-clock {
  top: calc(92px + env(safe-area-inset-top));
  right: 16px;
}

.game-panel:fullscreen .level-stats {
  top: 100px;
  left: 22px;
}

.game-panel.focus-mode .level-stats {
  top: calc(96px + env(safe-area-inset-top));
  left: 18px;
}

.game-panel.changelog-open .analog-clock {
  right: 460px;
}

.game-panel:fullscreen.changelog-open .analog-clock {
  right: 464px;
}

.game-panel.focus-mode.changelog-open .analog-clock {
  right: 460px;
}

.game-panel:fullscreen canvas {
  height: calc(100vh - 190px);
  max-height: calc(100vh - 190px);
  object-fit: contain;
}

.game-panel.focus-mode canvas {
  height: calc(100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  object-fit: contain;
}

body.focus-mode-active .virtual-keys-toggle {
  margin-top: 0;
}

@media (max-width: 900px) and (orientation: landscape) {
  .game-panel.focus-mode {
    padding: calc(8px + env(safe-area-inset-top)) 10px calc(8px + env(safe-area-inset-bottom));
  }

  .game-panel.focus-mode .hud {
    position: absolute;
    top: calc(6px + env(safe-area-inset-top));
    left: 10px;
    right: 64px;
    z-index: 6;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
    font-size: 0.82rem;
  }

  .game-panel.focus-mode #statusText {
    font-size: 0.82rem;
    line-height: 1.2;
    max-width: min(52vw, 360px);
  }

  .game-panel.focus-mode .hud-actions {
    gap: 6px;
    justify-content: flex-start;
  }

  .game-panel.focus-mode #counterText {
    font-size: 0.78rem;
  }

  .game-panel.focus-mode #musicButton,
  .game-panel.focus-mode #changelogButton,
  .game-panel.focus-mode #restartButton,
  .game-panel.focus-mode #fullscreenButton {
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .game-panel.focus-mode .level-stats {
    top: calc(84px + env(safe-area-inset-top));
    left: 12px;
    gap: 2px;
    font-size: 0.74rem;
    max-width: 34%;
  }

  .game-panel.focus-mode .analog-clock {
    top: calc(12px + env(safe-area-inset-top));
    right: 10px;
    width: 46px;
    height: 46px;
  }

  .game-panel.focus-mode.changelog-open .analog-clock {
    right: 10px;
  }

  .game-panel.focus-mode .changelog-panel {
    top: calc(46px + env(safe-area-inset-top));
    right: 10px;
    width: min(390px, calc(100% - 20px));
    max-height: calc(100dvh - 58px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .game-panel.focus-mode canvas {
    margin-bottom: 0;
    height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .game-panel.focus-mode .touch-controls {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: calc(26px + env(safe-area-inset-bottom));
    z-index: 6;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
  }

  .game-panel.focus-mode .touch-move-pad,
  .game-panel.focus-mode .touch-action-pad {
    width: auto;
  }

  .game-panel.focus-mode .touch-move-pad {
    margin-right: auto;
  }

  .game-panel.focus-mode .touch-action-pad {
    margin-left: auto;
    align-items: flex-end;
  }

  .game-panel.focus-mode .touch-middle {
    width: auto;
    justify-content: flex-start;
  }

  .game-panel.focus-mode .touch-button {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .game-panel.focus-mode .jump-button {
    min-width: 96px;
  }

  .game-panel.focus-mode .virtual-keys-toggle {
    position: absolute;
    left: 50%;
    bottom: calc(2px + env(safe-area-inset-bottom));
    z-index: 6;
    width: auto;
    margin: 0;
    padding: 2px 10px 0;
    transform: translateX(-50%);
    font-size: 0.72rem;
  }

  .game-panel.focus-mode .install-banner {
    left: 10px;
    right: 10px;
    bottom: calc(68px + env(safe-area-inset-bottom));
    padding: 10px 12px;
  }

  .game-panel.focus-mode .install-banner-copy strong {
    font-size: 0.84rem;
  }

  .game-panel.focus-mode .install-banner-copy span {
    font-size: 0.76rem;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hud {
    flex-direction: column;
  }

  .touch-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .jump-button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 16px, 100%);
    padding: calc(10px + env(safe-area-inset-top)) 0 calc(16px + env(safe-area-inset-bottom));
  }

  .hero {
    gap: 14px;
    margin-bottom: 12px;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .intro {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .controls-card {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .controls-card p {
    font-size: 0.9rem;
  }

  .game-panel {
    padding: 12px 12px calc(10px + env(safe-area-inset-bottom));
    border-radius: 24px;
  }

  .hud {
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
  }

  .hud-actions {
    gap: 8px;
    justify-content: flex-start;
  }

  #musicButton,
  #changelogButton,
  #restartButton,
  #fullscreenButton {
    padding: 9px 12px;
    font-size: 0.88rem;
  }

  .level-stats {
    top: 82px;
    left: 14px;
    gap: 4px;
    font-size: 0.82rem;
    max-width: 42%;
  }

  .analog-clock {
    top: 78px;
    right: 12px;
    width: 56px;
    height: 56px;
  }

  .game-panel.changelog-open .analog-clock {
    right: 12px;
  }

  .game-panel.focus-mode {
    padding: calc(12px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom));
  }

  .game-panel.focus-mode .changelog-panel {
    top: calc(58px + env(safe-area-inset-top));
    right: 12px;
    width: calc(100% - 24px);
    max-height: min(70vh, 560px);
  }

  .game-panel.focus-mode .level-stats {
    top: calc(82px + env(safe-area-inset-top));
    left: 14px;
    max-width: 42%;
  }

  .game-panel.focus-mode .analog-clock {
    top: calc(78px + env(safe-area-inset-top));
    right: 12px;
    width: 56px;
    height: 56px;
  }

  .game-panel.focus-mode.changelog-open .analog-clock {
    right: 12px;
  }

  .game-panel.focus-mode canvas {
    height: calc(100dvh - 224px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 224px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .changelog-panel {
    top: 58px;
    right: 12px;
    width: calc(100% - 24px);
    max-height: min(70vh, 560px);
    padding: 14px;
  }

  .changelog-body {
    max-height: calc(min(70vh, 560px) - 74px);
  }

  canvas {
    border-radius: 16px;
    margin-bottom: 10px;
  }

  .touch-controls {
    gap: 14px;
    padding: 2px 0 4px;
  }

  .touch-pad {
    width: 100%;
    align-items: center;
  }

  .touch-action-pad {
    align-items: stretch;
  }

  .touch-middle {
    width: 100%;
    justify-content: center;
  }

  .touch-button {
    min-width: 30%;
    min-height: 52px;
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .jump-button {
    min-width: 100%;
  }

  .virtual-keys-toggle {
    padding-bottom: calc(2px + env(safe-area-inset-bottom));
    font-size: 0.78rem;
  }

  .music-prompt {
    padding: 14px;
  }

  .install-banner {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 12px;
    align-items: flex-start;
  }

  .install-banner-copy strong {
    font-size: 0.88rem;
  }

  .install-banner-copy span {
    font-size: 0.78rem;
  }

  .music-prompt-card {
    width: min(100%, 360px);
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .music-prompt-card h2 {
    font-size: 2.3rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .virtual-keys-toggle {
    color: rgba(255, 248, 239, 0.82);
    font-weight: 700;
  }
}
