.rh-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  height: calc(100vh - 53px);
}

.rh-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050510;
  overflow: hidden;
}

.rh-main canvas {
  display: block;
  max-height: 100%;
}

.rh-sidebar {
  background: var(--card);
  border-left: 1px solid var(--border);
  padding: 1rem;
  overflow-y: auto;
}

/* Overlays */
.rh-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 16, 0.92);
  z-index: 10;
  gap: 0.75rem;
  transition: opacity 0.3s;
}
.rh-overlay.hidden { opacity: 0; pointer-events: none; }

.rh-overlay-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rh-overlay-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  text-align: center;
}

.rh-keys-hint {
  display: flex;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.rh-key-hint {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 900;
  background: rgba(255,255,255,0.05);
}

.rh-song-select {
  margin: 0.75rem 0;
  text-align: center;
}

.rh-song-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.rh-songs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.rh-song-btn {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.1);
  color: rgba(255,255,255,0.7);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.rh-song-btn:hover { border-color: #a855f7; color: #fff; }
.rh-song-btn.active {
  background: #a855f7;
  border-color: #a855f7;
  color: #fff;
}

.rh-start-btn {
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Results */
.rh-result-score {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a855f7, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.rh-result-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.rh-result-stats {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
}

.rh-stat {
  text-align: center;
}

.rh-stat-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.rh-stat-lbl {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rh-result-combo {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .rh-layout { grid-template-columns: 1fr; }
  .rh-sidebar { display: none; }
}
