:root {
  color-scheme: dark;
  font-family: "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  background: #000000;
  color: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000000;
}

body {
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app {
  position: relative;
  min-height: 100vh;
  user-select: none;
  -webkit-user-select: none;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0) 26%),
    #000000;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  touch-action: manipulation;
}

.stage__overlay {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  width: min(560px, calc(100vw - 40px));
  padding: 4px 8px 6px;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
}

.stage__overlay[data-visible='true'] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.stage__status,
.stage__selection,
.stage__hint {
  margin-top: 4px;
  color: #ff9fcc;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', 'Trebuchet MS', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-shadow:
    0 0 10px rgba(255, 133, 194, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.16);
  user-select: none;
  -webkit-user-select: none;
}

.stage__selection,
.stage__hint {
  color: #ffb4d9;
  font-size: 18px;
  font-weight: 700;
}

.stage__selection--bpm {
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.88;
}

.stage__glow {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(720px, 92vw);
  height: min(560px, 78vh);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 70%);
  filter: blur(48px);
  pointer-events: none;
  transition: transform 90ms linear, opacity 120ms ease, filter 120ms ease;
  will-change: transform, opacity, filter;
}

.actor {
  position: relative;
  width: 220px;
  display: grid;
  place-items: end center;
  cursor: pointer;
  transition: transform 90ms linear;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.actor__sprite {
  position: relative;
  z-index: 2;
  display: block;
  width: min(176px, 24vw);
  max-width: 100%;
  height: auto;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.actor__shadow {
  position: absolute;
  bottom: 8px;
  width: 140px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(14px);
}

.hud {
  display: none;
}

.hud__keys,
.hud__status,
.hud__mode,
.hud__track {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hud__label,
.hud__text {
  color: #8a8a8a;
  font-size: 14px;
  letter-spacing: 0.04em;
}

#statusText {
  font-size: 15px;
}

#bassName {
  font-size: 15px;
}

.hud__meta {
  color: #707070;
  font-size: 13px;
}

.keycap {
  min-width: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 768px) {
  .stage__overlay {
    top: 14px;
    padding: 4px 8px 6px;
  }

  .stage__status,
  .stage__selection,
  .stage__hint {
    font-size: 18px;
  }

  .stage__selection,
  .stage__hint {
    font-size: 15px;
  }

  .stage__selection--bpm {
    font-size: 12px;
  }

  .actor {
    width: 180px;
  }

  .actor__sprite {
    width: min(156px, 42vw);
  }
}
