html, body {
  margin: 0;
  height: 100%;
  background: #13233a;
  overflow: hidden;
  font-family: Helvetica, Arial, sans-serif;
  color: #f4f8ff;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
#game {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  outline: none;
  cursor: crosshair;
}
#bar {
  position: fixed;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
#bar button, #bar a {
  font: 600 15px Helvetica, Arial, sans-serif;
  color: #f4f8ff;
  background: rgba(19, 35, 58, .78);
  border: 1px solid rgba(159, 198, 232, .55);
  border-radius: 6px;
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#bar button:hover, #bar a:hover { background: rgba(2, 82, 156, .9); }
#tribute {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 2px;
  text-align: center;
  font-size: 11px;
  color: rgba(216, 230, 244, .55);
  pointer-events: none;
  z-index: 1;
}
#touch[hidden] { display: none; }
#touch {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
#stick {
  position: absolute;
  left: max(20px, env(safe-area-inset-left));
  bottom: 30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(19, 35, 58, .45);
  border: 2px solid rgba(159, 198, 232, .5);
  pointer-events: auto;
  touch-action: none;
}
#knob {
  position: absolute;
  left: 45px;
  top: 45px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(244, 248, 255, .75);
}
#buttons {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 8px;
  pointer-events: auto;
}
#buttons button {
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(159, 198, 232, .6);
  background: rgba(19, 35, 58, .7);
  color: #f4f8ff;
  font: 600 12px Helvetica, Arial, sans-serif;
  touch-action: none;
}
#buttons button.big {
  grid-row: span 2;
  height: 112px;
  font-size: 22px;
  background: rgba(2, 82, 156, .75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#buttons button.big span { font-size: 12px; }
#buttons button.down { background: rgba(220, 30, 53, .8); }
