/* ══════════════════════════════════════
   GAME HEADER & PAGE LAYOUT
══════════════════════════════════════ */

#game-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1B0093;
  padding: 20px 1.2rem;
  padding-bottom: 0;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

#game-header.show { display: flex; }

.combo-timer-bar {
  order: 3;
  width: 100%;
  height: 4px;
  margin-top: 12px;
  background: var(--ok);
  transition: background 0.15s;
  display: none;
}

.header-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.06em;
}

.header-score-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--plus2);
  line-height: 1;
}

/* ── GAME PAGE ── */
#game-page {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

#game-page.show { display: flex; }

#ct {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Piano card — same width as other cards, piano scrolls inside */
.piano-card {
  max-width: 480px;
  width: 100%;
}

/* Piano answer container — must have width to constrain .pianow */
#pia {
  width: 100%;
}

/* Desktop: expand containers so full piano is visible */
@media (min-width: 700px) {
  #ct { max-width: none; }
  .piano-card { max-width: none; width: fit-content; }
}

