#controls {
  position: absolute;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 5;
  pointer-events: auto;
}

#controls button {
  padding: 18px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.06s, box-shadow 0.06s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  min-width: 0;
  flex: 0 1 auto;
}

#controls button:active,
#controls button.active { transform: scale(0.91); }

#leftBtn {
  background: rgba(200,60,160,0.3);
  box-shadow: 0 0 20px rgba(220,80,200,0.35), inset 0 1px 0 rgba(255,200,255,0.12);
}
#leftBtn.active {
  background: rgba(255,120,220,0.5);
  box-shadow: 0 0 36px rgba(255,160,255,0.6);
}

#rightBtn {
  background: rgba(30,140,220,0.3);
  box-shadow: 0 0 20px rgba(40,180,255,0.35), inset 0 1px 0 rgba(180,240,255,0.12);
}
#rightBtn.active {
  background: rgba(80,200,255,0.5);
  box-shadow: 0 0 36px rgba(120,220,255,0.6);
}

#controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 50%;
}

.resume-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--screen-bg),0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.resume-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.resume-overlay__title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(var(--text-primary),0.92);
}

.resume-overlay__hint {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(var(--text-secondary),0.6);
  animation: resumePulse 1.6s ease-in-out infinite;
}

@keyframes resumePulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

.btn-rotate {
  width: 34px;
  height: 34px;
  display: block;
}
#leftBtn  .btn-rotate path { stroke: rgba(255,200,255,0.95); }
#rightBtn .btn-rotate path { stroke: rgba(180,240,255,0.95); }
#leftBtn  .btn-rotate { filter: drop-shadow(0 0 6px rgba(255,140,230,0.7)); }
#rightBtn .btn-rotate { filter: drop-shadow(0 0 6px rgba(80,200,255,0.7)); }

/* overdrive button (center of in-game controls) */
#overdriveBtn {
  align-self: center;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,205,90,0.45);
  background: rgba(255,205,90,0.1);
  color: rgba(255,205,90,0.95);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px;
  letter-spacing: 3px;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
#overdriveBtn.ready {
  opacity: 1;
  box-shadow: 0 0 26px rgba(255,205,90,0.5);
  animation: odReady 1s ease-in-out infinite;
}
@keyframes odReady {
  0%,100% { box-shadow: 0 0 20px rgba(255,205,90,0.4); }
  50%     { box-shadow: 0 0 40px rgba(255,205,90,0.75); }
}
#overdriveBtn:active { transform: scale(0.94); }
