#navbar {
  display: flex;
  flex-direction: column;
  background: #1a1a2e;
  border-bottom: 1px solid #2a2a3d;
  position: relative;
  z-index: 20;
}

/* ---- Row 1: Player · Title · Finish ---- */
.nav-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 24px;
  height: 52px;
}

/* ---- Row 2: Score ---- */
.nav-row-score {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 24px;
  border-top: 1px solid #2a2a3d;
  min-height: 32px;
}

/* ---- Left: Player Name ---- */
.nav-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 160px;
}

.nav-label {
  font-size: 0.65rem;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

#nav-player-name {
  font-size: 1rem;
  font-weight: 700;
  color: #4ecca3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

/* ---- Center: Title ---- */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#nav-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #4ecca3;
  letter-spacing: 1px;
}

.score-display {
  font-size: 0.88rem;
  color: #e6edf3;
}

#nav-score {
  font-weight: 700;
  color: #f0c000;
  font-size: 1rem;
}

/* ---- Kids score display ---- */
#kids-score-display {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #e6edf3;
  white-space: nowrap;
}

#kids-next-letter {
  font-weight: 800;
  font-size: 1rem;
  color: #4ecca3;
}

.kids-divider {
  color: #30363d;
  font-size: 1rem;
}

.kids-collected-label {
  color: #8b949e;
}

#kids-letters-eaten {
  font-weight: 700;
  color: #58a6ff;          /* soft blue for collected letters */
  letter-spacing: 1px;
}
.nav-right {
  min-width: 160px;
  display: flex;
  justify-content: flex-end;
}

#finish-btn {
  padding: 8px 18px;
  background: #bf4955;
  color: #fff;
  border: 1px solid #bf4955;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

#finish-btn:hover  {
  background: #a33d48;
  border-color: #a33d48;
  transform: translateY(-1px);
}
#finish-btn:active { transform: translateY(0); }

/* =============================================
   NAVBAR MOBILE
   ============================================= */
@media (max-width: 700px) {
  .nav-row-main {
    padding: 0 10px;
    height: 46px;
  }

  .nav-row-score {
    padding: 3px 10px;
  }

  .nav-left  { min-width: 0; flex: 1; }
  .nav-right { min-width: 0; }

  #nav-player-name { font-size: 0.85rem; max-width: 100px; }
  #nav-title       { font-size: 0.95rem; }
  .score-display   { font-size: 0.78rem; }

  #finish-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  #kids-score-display {
    font-size: 0.78rem;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }

  #kids-next-letter { font-size: 0.85rem; }
}
