/* public/css/mp-nav.css -- the bar across the top (public/js/mp-nav.js).
   Shaped like the MoneyPot poker page's bar: name left, buttons, who is
   signed in. Phones: buttons on their own full-width row under the name.
   Fallback colours cover challenge-new.html, which does not load main.css. */

#mp-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border, #1b2540);
  font-family: inherit; box-sizing: border-box; }
#mp-nav:empty { display: none; }

.mn-brand { margin-right: auto; display: flex; align-items: center; gap: 7px;
  font-size: 18px; font-weight: 900; letter-spacing: -.02em; color: var(--text-primary, #e8edf7); }
.mn-mark { color: var(--accent, #22d3ee); font-size: 17px; }
.mn-tag { font: 700 10px ui-monospace, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-secondary, #9aa6bd); margin-left: 3px; }

.mn-acts { display: flex; gap: 6px; order: 3; width: 100%; }
.mn-acts a { flex: 1; text-align: center; font-size: 13px; font-weight: 700; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--border, #1b2540); background: var(--bg-secondary, #0d1424);
  color: var(--text-primary, #e8edf7); text-decoration: none; white-space: nowrap; }
.mn-acts a:hover { border-color: var(--accent, #22d3ee); text-decoration: none; }
.mn-acts a.on { background: var(--accent, #22d3ee); border-color: var(--accent, #22d3ee); color: #04121a; }

.mn-who { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; min-width: 0;
  color: var(--text-secondary, #9aa6bd); text-decoration: none; max-width: 160px; }
.mn-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-who::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--win, #34d399); box-shadow: 0 0 8px rgba(52, 211, 153, .6); }
.mn-who:hover { color: var(--text-primary, #e8edf7); text-decoration: none; }

/* Computer: the buttons sit beside the name, once the row has room for all of
   it (about 650px). With the chat docked (900px and up) the bar loses 300px to
   it, so the one-row layout waits until 1000px; in between it keeps the
   two-row phone layout rather than pushing the player's name onto a line of
   its own. */
@media (min-width: 700px) and (max-width: 899px), (min-width: 1000px) {
  #mp-nav { flex-wrap: nowrap; }            /* one row: a long name shortens with ... */
  .mn-brand { flex: none; }
  .mn-acts { order: 0; width: auto; flex: none; }
  .mn-acts a { flex: none; padding: 7px 12px; }
}
/* The chat column is docked on the right: the bar stops where it starts. */
@media (min-width: 900px) {
  html.cp-docked #mp-nav { margin-right: 300px; }
}
