:root {
  --juniora-h: 56px
}
* {
  box-sizing: border-box
}
html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
  position: relative;
  background: #D0CBC7;
  font-family: var(--jn-font);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  touch-action: manipulation
}
#container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--juniora-h);
  width: 100%;
  height: calc(100% - var(--juniora-h));
  overflow: hidden
}
#container #score {
  position: absolute;
  top: 20px;
  width: 100%;
  text-align: center;
  font-size: clamp(48px, 10vh, 96px);
  transition: transform 0.5s ease;
  color: #333344;
  transform: translatey(-200px) scale(1);
  font-weight: 700;
  pointer-events: none
}
#container #game {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0
}
#container #game canvas {
  display: block;
  width: 100% !important;
  height: 100% !important
}
#container .game-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center
}
#container .game-over * {
  transition: opacity 0.5s ease,transform 0.5s ease;
  opacity: 0;
  transform: translatey(-50px);
  color: #333344
}
#container .game-over h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(28px, 8vw, 40px)
}
#container .game-over p {
  font-size: clamp(14px, 4vw, 18px);
  margin: 8px 0
}
#container .game-ready {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around
}
#container .game-ready #start-button {
  transition: opacity 0.5s ease,transform 0.5s ease;
  opacity: 0;
  transform: translatey(-50px);
  border: 3px solid #333344;
  padding: 10px 24px;
  background-color: transparent;
  color: #333344;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px
}
#container #instructions {
  position: absolute;
  width: 100%;
  top: 16vh;
  left: 0;
  text-align: center;
  transition: opacity 0.5s ease,transform 0.5s ease;
  opacity: 0;
  color: #333344;
  font-size: clamp(13px, 3.5vw, 18px);
  padding: 0 16px
}
#container #instructions.hide {
  opacity: 0 !important
}
#container.playing #score,
#container.resetting #score {
  transform: translatey(0px) scale(1)
}
#container.playing #instructions {
  opacity: 1
}
#container.ready .game-ready #start-button {
  opacity: 1;
  transform: translatey(0)
}
#container.ended #score {
  transform: translatey(6vh) scale(1.5)
}
#container.ended .game-over * {
  opacity: 1;
  transform: translatey(0)
}
#container.ended .game-over p {
  transition-delay: 0.3s
}

.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
  }
  .juniora-logo {
    width: 24px
  }
}

.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
  }
}

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