:root {
  --juniora-h: 56px
}
* {
  box-sizing: border-box
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none
}
body {
  font-family: var(--jn-font);
  cursor: pointer;
  background: #FEF1E1;
  touch-action: none;
  overscroll-behavior: none
}
.container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--juniora-h);
  display: flex;
  justify-content: center;
  align-items: center
}
#game {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none
}
#score {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2em;
  font-weight: 900;
  z-index: 10;
  pointer-events: none
}
#introduction {
  width: 220px;
  position: absolute;
  font-weight: 600;
  font-size: 0.9em;
  font-family: var(--jn-font);
  text-align: center;
  transition: opacity 2s;
  z-index: 10;
  pointer-events: none;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px
}
#restart {
  width: 120px;
  height: 120px;
  position: absolute;
  border-radius: 50%;
  color: white;
  background-color: red;
  border: none;
  font-weight: 700;
  font-size: 1.2em;
  font-family: var(--jn-font);
  display: none;
  cursor: pointer;
  z-index: 20;
  touch-action: manipulation
}
#perfect {
  position: absolute;
  top: 30%;
  opacity: 0;
  transition: opacity 2s;
  font-weight: 800;
  font-size: 1.4em;
  z-index: 10;
  pointer-events: none
}

.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
  }
  #restart {
    width: 100px;
    height: 100px;
    font-size: 1em
  }
  #score {
    top: 14px;
    right: 14px;
    font-size: 1.6em
  }
  #introduction {
    font-size: 0.85em;
    width: 200px
  }
}

.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;
}
#restart {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
