:root {
  --primary-color: #bbe0ef;
  --secondary-color: #06599f;
  --overlay-color: #1a1314;
  --gradient-color: #f2f3f4;
  --text-color: #f0f0ed;
  --border-radius: 0.5rem;
  --juniora-h: 56px
}
* {
  box-sizing: border-box
}
html,
body {
  margin: 0;
  padding: 0
}
body {
  background-color: var(--primary-color);
  background-image: linear-gradient(
    315deg,
    var(--primary-color) 0%,
    var(--gradient-color) 100%
  );
  font-family: var(--jn-font);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px 16px calc(var(--juniora-h) + 16px);
  -webkit-tap-highlight-color: transparent
}
button {
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  border-radius: var(--border-radius);
  padding: 10px 15px;
  border: none;
  color: #333;
  background-color: var(--gradient-color)
}
button:hover {
  color: var(--text-color);
  background-color: var(--overlay-color)
}
button:active {
  transform: scale(0.98)
}
select {
  width: 200px;
  max-width: 100%;
  padding: 6px 10px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: var(--border-radius);
  background-color: var(--gradient-color);
  border: none;
  font-size: 14px
}
select:focus,
button:focus,
input:focus {
  outline: 0
}
.settings-btn {
  position: fixed;
  bottom: calc(var(--juniora-h) + 14px);
  right: 16px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0
}
.icon-cog {
  display: block
}
.settings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--overlay-color);
  color: var(--text-color);
  min-height: 70px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out
}
.settings.hide {
  transform: translateY(-100%)
}
.settings label {
  margin-right: 10px
}
.container {
  background-color: var(--secondary-color);
  padding: 64px 20px 24px;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 5px var(--overlay-color);
  color: var(--text-color);
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 500px
}
h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 40px);
  word-break: break-word
}
h2 {
  background-color: var(--overlay-color);
  padding: 8px;
  border-radius: var(--border-radius);
  margin: 0 0 16px;
  font-size: clamp(18px, 5vw, 22px)
}
small {
  font-size: clamp(12px, 3.5vw, 14px)
}
input {
  border: 0;
  border-radius: var(--border-radius);
  font-size: 16px;

  font-family: inherit;
  width: 100%;
  max-width: 320px;
  padding: 12px 16px;
  margin-top: 14px;
  color: #222;
  background: #fff
}
.score-container,
.time-container {
  position: absolute;
  top: 14px;
  margin: 0;
  font-size: clamp(12px, 3.5vw, 16px)
}
.time-container {
  left: 14px
}
.score-container {
  right: 14px
}
.end-game-container {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  padding: 16px;
  text-align: center
}
.end-game-container h1 {
  font-size: clamp(22px, 6vw, 32px);
  margin-bottom: 10px
}
.end-game-container p {
  margin: 6px 0 16px
}

.juniora-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--juniora-h);
  background: #292929;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 0 16px
}
.juniora-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--jn-font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.9
}
.juniora-logo {
  width: 28px;
  height: auto;
  display: block
}
.juniora-text {
  letter-spacing: normal
}
@media (max-width: 480px) {
  :root {
    --juniora-h: 52px
  }
  .juniora-link {
    font-size: 12.5px
  }
  .settings-btn {
    bottom: calc(var(--juniora-h) + 10px);
    right: 12px
  }
  .container {
    padding: 58px 14px 20px
  }
  .time-container {
    left: 10px
  }
  .score-container {
    right: 10px
  }
}
@media (max-height: 600px) and (orientation: landscape) {
  body {
    padding-top: 8px
  }
  .container {
    padding-top: 52px
  }
  h2 {
    margin-bottom: 8px
  }
  input {
    margin-top: 8px
  }
}

.juniora-overlay {
  height: var(--juniora-h)
}
.juniora-link {
  font-family: var(--jn-font);
  font-size: clamp(12px, 3.4vw, 15px);
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: normal;
  gap: 8px;
  white-space: nowrap
}
.juniora-logo {
  width: 22px;
  height: auto
}
.juniora-text {
  letter-spacing: normal
}
@media (max-height: 520px) {
  .juniora-link {
    font-size: 12px
  }
  .juniora-logo {
    width: 18px
  }
}

@media (max-height: 520px) {
  .container {
    padding: 40px 16px 14px;
    zoom: 0.86
  }
  h1 {
    font-size: 26px
  }
  h2 {
    margin-bottom: 8px
  }
  input {
    margin-top: 8px
  }
  .score-container,
  .time-container {
    top: 8px
  }
}

.mc-btn, .jump-btn, #jumpBtn, #controls button, .mc-fire {
  font-family: var(--jn-font);
  font-weight: 700;
}
