/* 2026 play mode compact controls */
.performance-hero-compact-v3 {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.performance-title-block-compact-v3 {
  display: grid;
  gap: 2px;
}

.performance-title-block-compact-v3 .performance-subtitle {
  margin: 0;
  color: rgba(245, 234, 210, 0.78);
}

.performance-statusbar-compact-v3 {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.performance-statusbar-compact-v3 > * {
  flex: 0 0 auto;
}

.performance-utility-button {
  background: rgba(255, 247, 234, 0.08);
  color: #f5ead2;
  border: 1px solid rgba(255, 247, 234, 0.14);
  box-shadow: none;
  min-height: 52px;
  padding: 0 20px;
  font-size: 1rem;
}

.performance-utility-button.is-active {
  background: #e2ae43;
  color: #17372f;
  border-color: rgba(226, 174, 67, 0.96);
  box-shadow: 0 10px 24px rgba(226, 174, 67, 0.22);
}



.performance-jumpbar-compact-v3 {
  padding-top: 0;
  gap: 8px;
  /* P2-C: jumpbar skrollaa vaaka — ei rivitä pitkällä setlistillä */
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.performance-jumpbar-compact-v3::-webkit-scrollbar { display: none; }

.performance-jumpbar-compact-v3 .jump-chip {
  min-height: 52px;
  padding: 10px 18px;
  font-size: 1rem;
}

.performance-bottombar-compact-v3 {
  padding-top: 0;
}

.performance-bottombar-compact-v3 .performance-step-actions-v2 {
  width: 100%;
  justify-content: space-between;
}

.performance-bottombar-compact-v3 .performance-step-actions-v2 button {
  min-width: 0;
}

.performance-screen-v2.is-fullscreen .performance-layout-v2 {
  width: min(100vw, calc(100vw - 16px));
}

.performance-screen-v2.is-fullscreen .performance-chrome-v2 {
  padding: 12px;
}

.performance-screen-v2.is-fullscreen .performance-host-v2 {
  min-height: calc(100dvh - 156px);
}
@media (min-width: 900px) {
  .performance-hero-compact-v3 {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .performance-statusbar-compact-v3 {
    justify-content: flex-end;
  }
}

/* P2-A: UI-minimize — piilottaa header+jumpbar+bottombar nuotin maksimoimiseksi */
.performance-screen-v2.ui-minimized .performance-hero-compact-v3,
.performance-screen-v2.ui-minimized .performance-jumpbar-compact-v3,
.performance-screen-v2.ui-minimized .performance-bottombar-compact-v3,
.performance-screen-v2.ui-minimized .performance-cue {
  display: none !important;
}

.performance-screen-v2.ui-minimized .performance-host-v2 {
  min-height: calc(100dvh - 80px);
}

.performance-screen-v2.ui-minimized .performance-chrome-v2 {
  gap: 0;
}

/* Minimalize-nappi bottombarissa */
/* P3-D: Klikattava sivuindikaattori — avaa prompt sivunumerohyppäystä varten */
.perf-page-jump-btn {
  cursor: pointer;
  border: none;
  font: inherit;
}

.perf-page-jump-btn:hover {
  background: rgba(255, 247, 234, 0.22) !important;
  transform: none;
  box-shadow: none;
}

.perf-minimize-btn {
  min-height: 40px;
  font-size: 0.78rem;
  padding: 0 12px;
  opacity: 0.6;
  color: rgba(245, 234, 210, 0.8);
  background: transparent;
  border: none;
}

.perf-minimize-btn:hover {
  opacity: 1;
  background: rgba(255, 247, 234, 0.1);
  box-shadow: none;
  transform: none;
}

/* Mini-statusbar kun UI on piilotettu */
.perf-mini-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(8, 20, 14, 0.85);
  color: #ede4cc;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  border-radius: 0;
}

.perf-mini-status:hover {
  background: rgba(12, 28, 20, 0.95);
}

.perf-mini-badges {
  display: flex;
  gap: 6px;
  color: rgba(237, 228, 204, 0.65);
  font-size: 0.82rem;
}

.perf-mini-hint {
  margin-left: auto;
  color: var(--gold);
  font-size: 0.8rem;
}

/* 2026 performance header contrast hardening */
.performance-statusbar-v2 .performance-pill,
.performance-statusbar-v2 .badge.performance-pill {
  background: rgba(255, 247, 234, 0.12) !important;
  color: #fff8eb !important;
  border: 1px solid rgba(255, 247, 234, 0.26) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.performance-statusbar-v2 .performance-pill.performance-pill-highlight,
.performance-statusbar-v2 .badge.performance-pill.performance-pill-highlight {
  background: linear-gradient(135deg, rgba(217, 164, 65, 0.98), rgba(236, 195, 110, 0.96)) !important;
  color: #1a160d !important;
  border-color: rgba(236, 195, 110, 0.5) !important;
}

.performance-statusbar-v2 .performance-exit-button,
.performance-statusbar-v2 button.ghost.performance-exit-button,
.performance-statusbar-v2 a .performance-exit-button {
  background: rgba(255, 248, 232, 0.96) !important;
  color: #163a31 !important;
  border: 1px solid rgba(255, 248, 232, 0.7) !important;
  box-shadow: 0 10px 22px rgba(8, 24, 20, 0.24) !important;
}

.performance-statusbar-v2 .performance-exit-button:hover,
.performance-statusbar-v2 button.ghost.performance-exit-button:hover,
.performance-statusbar-v2 a .performance-exit-button:hover {
  background: #fffdf7 !important;
  color: #102b24 !important;
}

.performance-jumpbar-v2 .jump-chip {
  background: rgba(255, 247, 234, 0.14);
  color: rgba(255, 247, 234, 0.75);
  border-color: rgba(255, 247, 234, 0.18);
  font-weight: 400;
}

.performance-jumpbar-v2 .jump-chip.active {
  background: linear-gradient(135deg, #c4912a, #d4a43a);
  color: #1a160d;
  border-color: rgba(212, 164, 58, 0.6);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(196, 145, 42, 0.35);
}

