.root {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.ytPlayer {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 240px;
  height: 135px;
  z-index: 40;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.ytPlayer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.ytPlayer:empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.ytPlayer:empty::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid rgba(217, 70, 239, 0.2);
  border-top-color: #d946ef;
  border-radius: 50%;
  animation: yt-spin 0.8s linear infinite;
}

@keyframes yt-spin {
  to { transform: rotate(360deg); }
}

.loadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(217, 70, 239, 0.2);
  border-top-color: #d946ef;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loadingText {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.bottomHud {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scoreHud {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.comboValue {
  font-size: 24px;
  color: #ff44aa;
  text-shadow: 0 0 16px rgba(255, 68, 170, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
  min-height: 30px;
}

.scoreValue {
  font-size: 48px;
  color: #fff;
  text-shadow: 0 0 16px rgba(217, 70, 239, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
  font-variant-numeric: tabular-nums;
}

.scoreDelta {
  font-size: 20px;
  font-weight: 700;
  color: #00ffcc;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  animation: delta-fade 0.8s ease-out forwards;
}

@keyframes delta-fade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.progressBar {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.progressFill {
  height: 100%;
  background: linear-gradient(90deg, #d946ef, #f0abfc);
  transition: width 0.1s linear;
}

.menuBtn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menuBtn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cornerBtn {
  position: absolute;
  bottom: 16px;
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.cornerBtn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.cornerBtnLeft {
  left: 16px;
}

.cornerBtnLeft2 {
  left: 72px;
}

.cornerBtnLeft3 {
  left: 140px;
}

.cornerBtnRight {
  right: 16px;
  font-size: 18px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pauseMenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pauseTitle {
  font-size: 48px;
  color: #d946ef;
  margin: 0 0 8px;
  text-shadow: 0 0 30px rgba(217, 70, 239, 0.5);
}

.pauseBtn {
  width: 260px;
  padding: 14px 0;
  border: 2px solid #d946ef;
  border-radius: 8px;
  background: rgba(217, 70, 239, 0.2);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.pauseBtn:hover {
  background: rgba(217, 70, 239, 0.4);
}

.pauseBtn:active {
  transform: scale(0.97);
}

.pauseBtnDanger {
  background: rgba(220, 38, 38, 0.2);
  border-color: #dc2626;
}

.pauseBtnDanger:hover {
  background: rgba(220, 38, 38, 0.4);
}

.pauseBtnSecondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

.pauseBtnSecondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
