/* Car Launch online bits (online.js): the account line and leaderboard button under the level
   pill. The account sheet and the family leaderboard sheet are shared (shared/account.css). */

.online-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 8px;
  pointer-events: none !important;
}
.online-row:empty { display: none; }
.online-row > * { pointer-events: auto; }

.acct-line, .board-btn {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: var(--panel-soft);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
}
.acct-line:active, .board-btn:active { transform: scale(0.97); }

.acct-line {
  flex: 1;
  min-width: 0;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  text-align: left;
}
.acct-line .avatar { box-shadow: 0 0 0 2px #fff; }
.acct-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
}
.acct-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.acct-words { display: flex; flex-direction: column; min-width: 0; }
.acct-words b, .acct-words small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-words b { font-size: 15px; font-weight: 800; line-height: 1.15; }
.acct-words small { font-size: 13px; font-weight: 600; line-height: 1.15; color: #23955a; }
.acct-line.out .acct-words small { color: var(--ink-soft); }
.acct-line.out .acct-words b { color: var(--orange-lo); }
.acct-line.warn .acct-words small { color: #b5620a; }

/* The family leaderboard in the same look as every game's (.lb-open in shared/account.css: the
   amber circle and the warm card), and more prominent here: always labelled, right in the garage. */
.board-btn {
  flex: none;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  background: #fff3d9;
  text-align: left;
}
.board-btn .lb-open-icon { width: 36px; height: 36px; }
.board-btn .lb-open-icon svg { width: 22px; height: 22px; }
.board-words { display: flex; flex-direction: column; }
.board-words b { font-size: 16px; font-weight: 800; line-height: 1.1; }
.board-words small { font-size: 13px; font-weight: 700; line-height: 1.1; color: #8a5a12; }
