/* TTTV Arcade leaderboard: board list + nickname / board modals (used with js/leaderboard.js). */
.lb { --lb-red: #ff3045; --lb-yellow: #ffc629; font-family: "Inter", system-ui, -apple-system, sans-serif; color: #f4f1ea; }
.lb__tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.lb__tab { flex: 1; min-height: 40px; font: 400 16px/1 "Anton", Impact, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #1a1f33; border: 3px solid #000; border-radius: 4px; cursor: pointer; box-shadow: 2px 2px 0 #000; }
.lb__tab[aria-selected="true"] { background: var(--lb-yellow); color: #000; }
.lb__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: none; }
.lb__row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; background: rgba(255,255,255,.06); border: 2px solid #000; border-radius: 4px; }
.lb__rank { font: 400 18px/1 "Anton", Impact, sans-serif; color: #c7cad4; text-align: center; }
.lb__name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__name em { font: 700 10px/1 "Oswald", sans-serif; letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: #000; background: var(--lb-yellow); padding: 2px 5px; border-radius: 2px; vertical-align: 2px; }
.lb__score { font: 400 19px/1 "Anton", Impact, sans-serif; color: var(--lb-yellow); font-variant-numeric: tabular-nums; }
.lb__row.is-top1 { background: rgba(255,198,41,.18); } .lb__row.is-top1 .lb__rank { color: var(--lb-yellow); }
.lb__row.is-top2 .lb__rank { color: #e5e7ee; } .lb__row.is-top3 .lb__rank { color: #e0a36b; }
.lb__row.is-me { box-shadow: inset 0 0 0 2px var(--lb-red); }
.lb__msg { padding: 14px 10px; text-align: center; color: #c7cad4; font-size: 14px; background: rgba(255,255,255,.04); border: 2px dashed rgba(255,255,255,.18); border-radius: 4px; }

.lbm { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  background: radial-gradient(rgba(0,0,0,.35) 1px, transparent 1.5px) 0 0 / 7px 7px, rgba(6,7,12,.78); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.lbm__card { width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; padding: 20px; text-align: center; color: #f4f1ea; font-family: "Inter", system-ui, sans-serif;
  background: #0e1220; border: 3px solid #000; border-radius: 8px; box-shadow: 7px 7px 0 #ff3045, 7px 7px 0 3px #000; animation: lbm-pop .35s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes lbm-pop { from { transform: scale(.85) rotate(-2deg); opacity: 0; } }
.lbm__kicker { margin: 0 0 6px; display: flex; justify-content: center; align-items: center; gap: 8px; font: 600 12px/1 "Oswald", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #c7cad4; }
.lbm__live { background: #ff3045; color: #fff; border: 2px solid #000; padding: 4px 6px; border-radius: 3px; }
.lbm__title { margin: 4px 0 8px; font: 400 clamp(28px, 7vw, 38px)/.95 "Anton", Impact, sans-serif; text-transform: uppercase; color: #ffc629; text-shadow: 3px 3px 0 #000, 5px 5px 0 #ff3045; }
.lbm__text { margin: 0 0 12px; font-size: 14.5px; color: #d6d8e0; line-height: 1.45; }
.lbm__form { display: grid; gap: 8px; text-align: left; }
.lbm__label { font: 600 12px/1 "Oswald", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #c7cad4; }
.lbm__input { width: 100%; min-height: 50px; padding: 0 14px; font: 600 16px/1 "Inter", system-ui, sans-serif; color: #000; background: #fff; border: 3px solid #000; border-radius: 4px; box-shadow: 3px 3px 0 #000; }
.lbm__input:focus { outline: 3px solid #ffc629; outline-offset: 2px; }
.lbm__input[aria-invalid="true"] { border-color: #ff3045; }
.lbm__err { margin: 0; min-height: 1.3em; font-size: 13.5px; color: #ff8a96; }
.lbm__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.lbm__btn { min-height: 52px; min-width: 140px; padding: 0 18px; font: 400 20px/1 "Anton", Impact, sans-serif; letter-spacing: .05em; text-transform: uppercase; border: 3px solid #000; border-radius: 4px; box-shadow: 4px 4px 0 #000; cursor: pointer; }
.lbm__btn--go { background: #ff3045; color: #fff; }
.lbm__btn--no { background: #fff; color: #000; }
.lbm__board { text-align: left; margin: 6px 0 4px; }
.lbm__me { margin: 10px 0 0; font-size: 13.5px; color: #c7cad4; }
.lbm__link { background: none; border: 0; padding: 4px 2px; color: #fff; font: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: #ff3045; text-underline-offset: 3px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .lbm__card { animation: none; } }
/* nickname claims: crew code / device code fields, one-time code panel */
.lbm__extra { display: grid; gap: 8px; }
.lbm__extra[hidden], .lbm__step[hidden], .lbm__code[hidden] { display: none; }
.lbm__input--code { text-transform: uppercase; letter-spacing: .12em; }
.lbm__code { margin: 10px 0 4px; padding: 12px; border: 2px dashed #ffc629; border-radius: 6px; background: rgba(255,198,41,.08); text-align: center; }
.lbm__codeval { margin: 6px 0; font: 400 30px/1.1 "Anton", Impact, sans-serif; letter-spacing: .12em; color: #ffc629; user-select: all; -webkit-user-select: all; }
.lbm__small { margin: 4px 0 6px; font-size: 13px; line-height: 1.4; color: #c7cad4; }
.lbm__btn:disabled { opacity: .6; cursor: progress; }
.lbm__btn--done { background: #ff3045; color: #fff; }
