:root {
  --juniora-h: 56px;
  --mc-h: 0px
}
@font-face {
  font-family: 'Jura';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/jura-500.woff2') format('woff2')
}
* {
  box-sizing: border-box
}
html,
body {
  margin: 0;
  padding: 0;
  background: rgb(19, 21, 25);
  color: #fff;
  font-family: var(--jn-font);
  font-size: 16px;
  -webkit-tap-highlight-color: transparent
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden
}
body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  padding-bottom: var(--juniora-h)
}

canvas {
  display: block;
  max-width: 100%
}

.mobile-controls {
  direction: ltr;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--juniora-h) + 12px);
  display: none;
  grid-template-columns: 64px 64px 64px 64px 64px;
  grid-template-rows: 64px;
  gap: 8px;
  z-index: 90;
  user-select: none;
  padding: 0 8px;
  max-width: 100vw
}
.mc-btn {
  background: rgba(60, 64, 72, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 22px;
  font-family: var(--jn-font);
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0
}
.mc-btn.mc-drop {
  background: rgba(255, 232, 96, 0.95);
  color: rgb(28, 30, 34);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em
}
.mc-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4)
}
@media (hover: none) and (pointer: coarse) {
  .mobile-controls {
    display: grid
  }
  :root {
    --mc-h: 88px
  }
  body {
    padding-bottom: calc(var(--juniora-h) + var(--mc-h))
  }
}
@media (max-width: 820px) {
  .mobile-controls {
    display: grid
  }
  :root {
    --mc-h: 88px
  }
  body {
    padding-bottom: calc(var(--juniora-h) + var(--mc-h))
  }
}
@media (max-width: 420px) {
  .mobile-controls {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: calc(100vw - 16px);
    gap: 6px
  }
  .mc-btn {
    font-size: 20px
  }
  .mc-btn.mc-drop {
    font-size: 12px
  }
}

.juniora-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--juniora-h, 56px);
  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-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;
}
