:root {
  color-scheme: light;
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  background: #87d6ed;
  color: #24170d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}

body {
  min-height: 100svh;
  touch-action: manipulation;
  user-select: none;
}

.game-shell {
  position: relative;
  width: 100vw;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      var(--game-shell-sky, #84d5ed) 0 50%,
      #bee694 50% 66%,
      var(--game-shell-field, #6cbb55) 66% 100%
    );
}

#jump-game {
  display: block;
  width: min(100vw, calc(100svh * 16 / 9));
  height: auto;
  max-height: 100svh;
  aspect-ratio: 16 / 9;
}

.hud {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: none;
  color: #fff;
  font-size: clamp(0.95rem, 2.5vw, 1.5rem);
  font-weight: 900;
  text-shadow:
    0 2px 0 rgba(64, 53, 28, 0.35),
    0 5px 18px rgba(64, 53, 28, 0.22);
}

#score {
  min-width: 0;
  border-radius: 8px;
  background: rgba(48, 111, 65, 0.58);
  padding: 8px 12px;
  backdrop-filter: blur(8px);
}

#score {
  min-width: 3.2em;
  text-align: center;
}

@media (max-width: 620px) {
  .hud {
    align-items: flex-start;
    font-size: 0.95rem;
  }

  #score {
    padding: 7px 9px;
  }
}
