/* Atlantic Race: the Online page (online.html, 2026-11-12). Built on race.css, menu-polish.css
   and settings.css (cards, fields, buttons); only what is new here. */
.online-page .page-main { width: min(980px, 100%); }
.ol-form { display: grid; gap: 14px; }
.ol-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.ol-form .ol-row { margin-top: 0; }
.ol-sign { max-width: 560px; }
.ol-sign input, .ol-join input { font-size: 1.1rem; }
#code { letter-spacing: .4em; font-variant-numeric: tabular-nums; font-size: 1.5rem; max-width: 12ch; }
.ol-msg { min-height: 1.4em; margin: 12px 0 0; font-weight: 700; color: var(--mp-ink); }
.ol-msg.bad { color: #ff8b8b; }
.ol-msg:empty { min-height: 0; margin: 0; }
.ol-global { margin-top: 16px; }
.ol-server { margin-top: 18px; opacity: .75; }
.ol-me { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ol-me p { margin: 0; }
.ol-me small { color: var(--mp-ink-2); }
.ol-me .ol-row { margin-top: 0; }
.ol-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ol-join { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
#join-code { text-transform: uppercase; letter-spacing: .3em; font-weight: 800; }
.ol-sub { margin: 20px 0 10px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mp-ink-2); }
.ol-rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ol-room-btn {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; text-align: left; cursor: pointer;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--mp-stroke); border-left: 4px solid var(--accent);
  background: var(--mp-well); color: var(--mp-ink); font: inherit;
}
.ol-room-btn:hover { background: var(--mp-card-hover); border-color: var(--mp-stroke-2); border-left-color: var(--accent); }
.ol-room-btn span { grid-column: 1; color: var(--mp-ink-2); font-size: .86rem; }
.ol-room-btn code { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 800; letter-spacing: .2em; font-size: 1.05rem; }
.ol-room { border-top: 4px solid var(--accent, var(--mp-stroke)); }
.ol-room-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 20px; }
.ol-room-head h2 { margin: 0; }
.ol-eyebrow { margin: 0 0 4px; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.ol-code { margin: 0; color: var(--mp-ink-2); }
.ol-code b { display: inline-block; margin-left: 8px; padding: 4px 12px; border-radius: 8px; background: var(--mp-well); color: var(--mp-ink); font-size: 1.4rem; letter-spacing: .25em; user-select: all; }
.ol-players { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.ol-players li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--mp-well); border: 1px solid var(--mp-stroke); }
.ol-players li.me { border-color: var(--accent); }
.ol-players b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-num { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.ol-tag { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mp-ink-2); }
.ol-players li.ready .ol-tag { color: #6fe39b; }
.race-btn:disabled { opacity: .5; cursor: not-allowed; }
.ol-last ol { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.ol-last li.me { font-weight: 800; color: var(--mp-ink); }
/* multiplayer extras (2026-11-13): stats, quick race, friends, invites, boards, chat, profiles */
.ol-stats { margin: 4px 0 0 !important; color: var(--mp-ink-2); font-size: .9rem; }
.ol-quick { margin-top: 12px; }
.ol-quick .note { margin: 0; flex: 1 1 200px; }
.ol-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--mp-ink-2); cursor: pointer; }
.ol-check input { width: 1.15em; height: 1.15em; margin-top: .15em; accent-color: var(--accent, #3fb6ff); flex: none; }
.ol-name {
  min-width: 0; padding: 0; border: 0; background: none; color: var(--mp-ink); font: inherit; font-weight: 800; text-align: left; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ol-name:hover, .ol-name:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.ol-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ol-people li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--mp-well); border: 1px solid var(--mp-stroke); }
.ol-people li.on { border-left: 4px solid #6fe39b; }
.ol-who { display: grid; min-width: 0; flex: 1 1 160px; }
.ol-who small { color: var(--mp-ink-2); }
.ol-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ol-acts .race-btn.st-small { padding: 6px 14px; min-height: 0; font-size: .85rem; }
.ol-invites { display: grid; gap: 10px; margin-bottom: 20px; }
.ol-invites:empty { display: none; }
.ol-invite-card { border-left: 4px solid var(--accent); }
.ol-invite-card p { margin: 0; font-weight: 700; }
.ol-invite-card .ol-row { margin-top: 10px; }
.ol-board { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.ol-board li { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--mp-well); }
.ol-board li.me { outline: 2px solid var(--accent, #3fb6ff); }
.ol-board li b { font-variant-numeric: tabular-nums; }
.ol-place { font-weight: 800; color: var(--mp-ink-2); font-variant-numeric: tabular-nums; }
.ol-board li:nth-child(1) .ol-place { color: #f2c94c; }
.ol-board li:nth-child(2) .ol-place { color: #cfd8e3; }
.ol-board li:nth-child(3) .ol-place { color: #e0a36b; }
.ol-room-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 6px; }
.ol-chat-log { list-style: none; margin: 0 0 10px; padding: 10px 12px; min-height: 5.5em; max-height: 11em; overflow-y: auto; border-radius: 12px; background: var(--mp-well); display: grid; align-content: start; gap: 4px; }
.ol-chat-log:empty::before { content: 'Say hi with a button below.'; color: var(--mp-ink-2); }
.ol-chat-log li { overflow-wrap: anywhere; }
.ol-chat-log li.me b { color: var(--accent, #3fb6ff); }
.ol-phrases { display: flex; flex-wrap: wrap; gap: 6px; }
.ol-phrases .st-small { padding: 6px 12px; font-size: .85rem; }
.ol-profile { width: min(480px, calc(100vw - 32px)); }
.ol-pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 6px; }
.ol-pstats div { padding: 10px; border-radius: 12px; background: var(--mp-well); text-align: center; }
.ol-pstats dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mp-ink-2); }
.ol-pstats dd { margin: 2px 0 0; font-size: 1.5rem; font-weight: 800; }
.ol-pbest { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; max-height: 12em; overflow-y: auto; }
.ol-pbest li { display: flex; justify-content: space-between; gap: 10px; color: var(--mp-ink-2); }
.ol-pbest b { color: var(--mp-ink); font-variant-numeric: tabular-nums; }
.ol-profile .two button[hidden] { display: none; }
.ol-profile .two:has(button[hidden]) { grid-template-columns: 1fr; }
.card .ol-sub { margin: 20px 0 10px; }
.ol-say { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 10px; }
.ol-say[hidden] { display: none; }
.ol-say input { min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--mp-stroke-2); background: var(--mp-well); color: var(--mp-ink); font: inherit; }
.ol-say input:focus-visible { outline: 2px solid var(--accent, #3fb6ff); outline-offset: 1px; }
.ol-say .race-btn.st-small { padding: 8px 18px; min-height: 0; min-width: 0; width: auto; }
.ol-small { font-size: .82rem; }
.ol-chat .ol-check { margin-top: 12px; }
.ol-chat .note { margin: 8px 0 0; }
.ol-pchat { margin: 0 0 14px; }
.ol-pchat[hidden] { display: none; }
.card .ol-quick + .ol-sub { margin-top: 22px; }
/* the Leaderboards page (leaderboards.html, 2026-11-13) */
.lb-pick { display: grid; gap: 12px; margin-bottom: 20px; }
.lb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--mp-stroke-2); background: var(--mp-well); color: var(--mp-ink-2);
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lb-chip:hover { color: var(--mp-ink); border-color: var(--accent, var(--mp-stroke-2)); }
.lb-chip[aria-pressed='true'] { background: var(--accent, #3fb6ff); border-color: var(--accent, #3fb6ff); color: #06121f; }
.lb-chip:focus-visible { outline: 2px solid var(--mp-ink); outline-offset: 2px; }
.lb-stages .lb-chip b { margin-right: 2px; }
.lb-cards .card h2 { margin-top: 0; }
.lb-who { display: grid; min-width: 0; }
.lb-who b, .lb-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-who small { color: var(--mp-ink-2); font-size: .78rem; }
.lb-right { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-foot { margin-top: 20px; }
.lb-rules { margin-top: 14px; }
@media (max-width: 760px) {
  .ol-cards, .ol-room-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .ol-join { grid-template-columns: minmax(0, 1fr); }
  .ol-join .race-btn { justify-self: start; }
}
