/* ─────────────────────────────────────────────────────────────────────────
   Lobby-hub UI system — the angular-bold, SOLID, type-driven language
   (Ref1 FPS-lobby + Ref4 type-hero). Replaces the old glass .panel on this
   screen. The .lh-* pieces are the reusable kit — solid opaque panels, clip-path
   speed-wing cuts, a topographic contour pattern (depth from layering, NEVER
   blur), big italic display type, exactly one yellow CTA — that propagates to
   the other screens next. First consumer: the server-select "lobby gate".
   ───────────────────────────────────────────────────────────────────────── */

.lh-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vh, 56px) clamp(16px, 4vw, 60px);
  /* SOLID navy deck + topographic contour lines + a faint engineering grid.
     This is the texture that replaces glass/blur — flat, layered, opaque. */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700'%3E%3Cg fill='none' stroke='%2300E5FF' stroke-width='1' opacity='0.05'%3E%3Cpath d='M-50 120 Q300 60 620 150 T1260 130'/%3E%3Cpath d='M-50 190 Q300 130 620 220 T1260 200'/%3E%3Cpath d='M-50 270 Q320 210 640 300 T1260 280'/%3E%3Cpath d='M-50 360 Q300 300 620 390 T1260 370'/%3E%3Cpath d='M-50 450 Q320 390 640 480 T1260 460'/%3E%3Cpath d='M-50 540 Q300 480 620 570 T1260 550'/%3E%3Cpath d='M-50 630 Q320 570 640 660 T1260 640'/%3E%3C/g%3E%3C/svg%3E") center / 1200px 700px repeat,
    linear-gradient(transparent 96%, rgba(0, 229, 255, .04) 96%) 0 0 / 34px 34px,
    linear-gradient(90deg, transparent 96%, rgba(0, 229, 255, .04) 96%) 0 0 / 34px 34px,
    radial-gradient(130% 95% at 50% 6%, #0c1d3b 0%, #071027 52%, #04091a 100%);
}

/* the content column */
.lh {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.6vh, 26px);
}
.lh--narrow { width: min(100%, 520px); }

/* solid angular text field (lobby forms — e.g. the username gate) */
.lh-input {
  width: 100%;
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(18px, 3vh, 26px);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cream);
  background: #0e2240;
  border: 1px solid rgba(0, 229, 255, .3);
  border-radius: 0;
  padding: 15px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 97% 100%, 0 100%);
  outline: none;
  transition: border-color var(--engine-dur), box-shadow var(--engine-dur);
}
.lh-input::placeholder { color: var(--cream-warm); opacity: .4; }
.lh-input:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(0, 229, 255, .18); }

/* ── top chrome — brand mark only (currency/nav land on richer surfaces) ──── */
.lh-top { display: flex; align-items: center; justify-content: space-between; }
.lh-brand { display: flex; align-items: center; gap: 11px; }
.lh-mark {
  width: 34px;
  height: 34px;
  background: var(--gold);
  /* the speed-wing slant — the recurring signature shape */
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lh-mark svg { width: 19px; height: 19px; }
.lh-brand b {
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(18px, 2.4vh, 23px);
  letter-spacing: .01em;
  color: var(--cream);
  text-transform: uppercase;
}
.lh-brand b i { color: var(--brass); font-style: italic; }

/* ── type-hero title (the Ref4 graft) ─────────────────────────────────────── */
.lh-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.5vh, 12px);
  letter-spacing: .34em;
  color: var(--brass);
  text-transform: uppercase;
}
.lh-rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(0, 229, 255, .5), transparent); }
.lh-word {
  position: relative;
  margin: 6px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .84;
  font-size: clamp(42px, 9.5vh, 96px);
  color: var(--cream);
  padding-left: 18px;
}
.lh-word em { color: var(--brass); font-style: italic; }
/* yellow speed-wing slab cutting the left edge — the single most distinctive move */
.lh-word::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16%;
  width: 9px;
  height: 68%;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 100%);
}
.lh-sub {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(12px, 1.7vh, 14px);
  color: var(--cream-warm);
  opacity: .8;
  max-width: 52ch;
}

/* ── server card — solid angular row (opaque, clip-path, accent bar) ──────── */
.lh-srv {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: #0e2240;
  border: 1px solid rgba(0, 229, 255, .24);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 97% 100%, 0 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  cursor: pointer;
  transition: background var(--engine-dur) var(--engine-ease), transform var(--engine-dur) var(--engine-ease);
}
.lh-srv:hover { background: #123059; transform: translateY(-2px); }
.lh-srv:active { transform: translateY(0); }
.lh-srv-acc {
  width: 6px;
  height: 38px;
  background: var(--brass);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}
.lh-srv-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(18px, 2.6vh, 24px);
  letter-spacing: .02em;
  color: var(--cream);
  text-transform: uppercase;
}
.lh-srv-meta {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.4vh, 12px);
  letter-spacing: .12em;
  color: var(--cream-warm);
  opacity: .65;
}
.lh-srv-rt { display: flex; align-items: center; gap: 12px; justify-self: end; }
.lh-srv-pop {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.7vh, 15px);
  color: var(--cream);
  white-space: nowrap;
}
.lh-srv-png { display: flex; align-items: center; }
/* status dot — JS sets .srv-dot + .open / .full / .off */
#screen-servers .srv-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 9px var(--brass);
}
#screen-servers .srv-dot.open { background: var(--gem-emerald); box-shadow: 0 0 9px var(--gem-emerald); }
#screen-servers .srv-dot.full { background: var(--gold); box-shadow: 0 0 9px rgba(255, 224, 0, .7); }
#screen-servers .srv-dot.off  { background: var(--gem-ruby); box-shadow: 0 0 9px rgba(255, 92, 138, .6); }

.lh-msg {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--gem-ruby);
  min-height: 14px;
}

/* ── actions — one yellow chevron CTA + a quiet ghost back ─────────────────── */
.lh-actions { display: flex; align-items: stretch; gap: 12px; margin-top: 2px; }
.lh-ghost {
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(14px, 2vh, 17px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-warm);
  background: none;
  border: 1px solid rgba(0, 229, 255, .35);
  padding: 0 26px;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  cursor: pointer;
  transition: color var(--engine-dur), border-color var(--engine-dur);
}
.lh-ghost:hover { color: var(--brass); border-color: var(--brass); }
.lh-cta {
  position: relative;
  flex: 1;
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(20px, 3vh, 30px);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #1a1500;
  background: var(--gold);
  border: none;
  padding: 16px 64px 16px 26px;
  text-align: left;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  box-shadow: 0 12px 30px rgba(255, 224, 0, .22);
  cursor: pointer;
  overflow: hidden;
  transition: filter var(--engine-dur), transform var(--engine-dur);
}
.lh-cta:hover { filter: brightness(1.06); transform: translateY(-2px); }
.lh-cta:active { transform: translateY(0); }
/* chevron speed-wing stripes baked on the right via gradient (survives JS textContent) */
.lh-cta::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 0;
  bottom: 0;
  width: 40px;
  background:
    linear-gradient(115deg, transparent 38%, rgba(26, 21, 0, .85) 38% 46%, transparent 46%) 0 0 / 14px 100%,
    linear-gradient(115deg, transparent 38%, rgba(26, 21, 0, .55) 38% 46%, transparent 46%) 13px 0 / 14px 100%;
  background-repeat: no-repeat;
}
.lh-cta:disabled {
  background: #20304e;
  color: var(--cream-warm);
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
  transform: none;
}
.lh-cta:disabled::after { opacity: .3; }

/* ── short-landscape (phones) + small screens — compress, drop type drama ──── */
@media (orientation: landscape) and (max-height: 480px) {
  #screen-servers { padding: 14px 22px; }
  .lh { gap: 10px; }
  .lh-word { font-size: clamp(30px, 12vh, 50px); }
  .lh-sub { display: none; }
}
@media (max-width: 560px) {
  .lh-word { font-size: clamp(38px, 13vw, 60px); }
  .lh-actions { flex-direction: column-reverse; }
  .lh-ghost { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lh-srv, .lh-cta, .lh-ghost { transition: none; }
}

/* ── Results — reuses the lobby kit; place chip + solid stat tiles ─────────── */
.lh-place {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  font-size: 13px;
  letter-spacing: .06em;
  color: #1a1500;
  background: var(--gem-gold);
  padding: 3px 11px;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}
.lh-msg.ok { color: var(--gem-emerald); }

#screen-results .res-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  width: 100%;
}
#screen-results .res-stat {
  background: #0e2240;
  border: 1px solid rgba(0, 229, 255, .2);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 95% 100%, 0 100%);
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
#screen-results .res-stat .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-warm);
  opacity: .6;
}
#screen-results .res-stat .v {
  margin-top: 4px;
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(20px, 3vh, 28px);
  color: var(--brass);
}

/* ── Option rows + segmented controls — shared by any .lh screen (setup, settings) ─ */
.lh-opts { display: flex; flex-direction: column; gap: clamp(10px, 1.8vh, 16px); width: 100%; }
.lh .opt { display: flex; flex-direction: column; gap: 7px; }
.lh .opt .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-warm);
  opacity: .6;
}
.lh .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.lh .seg button {
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(13px, 1.9vh, 16px);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cream);
  background: #0e2240;
  border: 1px solid rgba(0, 229, 255, .22);
  padding: 10px 18px;
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  cursor: pointer;
  transition: background var(--engine-dur), color var(--engine-dur), border-color var(--engine-dur);
}
.lh .seg button:hover { background: #123059; border-color: rgba(0, 229, 255, .5); }
.lh .seg button.on { background: var(--brass); color: #02232a; border-color: var(--brass); }
/* inline help note (e.g. settings scheme help) */
.lh-note {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--cream-warm);
  opacity: .7;
}
.lh-note b { color: var(--brass); font-weight: 500; }

/* ── Board (leaderboard) — top-aligned lobby layout with a scrolling list ──── */
#screen-board.lh-screen { justify-content: flex-start; padding-top: clamp(22px, 5vh, 46px); }
.lh--board { width: min(100%, 860px); height: 100%; justify-content: flex-start; gap: clamp(9px, 1.7vh, 16px); }
#screen-board #lb-list {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lh-actions--spread { justify-content: space-between; }

/* ── auth screens (register / login / wallet) ── */
.lh-input.hidden { display: none; }
.lh-link { background: none; border: none; padding: 0; font: inherit; cursor: pointer; color: var(--gem-aqua); text-decoration: underline; }
.auth-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.auth-stack .lh-cta, .auth-stack .auth-wide { width: 100%; }
.auth-opt {
    display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer;
    padding: 13px 16px; border-radius: 14px;
    background: linear-gradient(180deg, rgba(14,27,51,0.7), rgba(8,20,40,0.82));
    border: 1px solid rgba(0,229,255,0.26); color: var(--cream);
    transition: transform 0.14s, border-color 0.2s, box-shadow 0.2s;
}
.auth-opt:hover {
    transform: translateY(-2px); border-color: var(--gem-aqua);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 0 16px rgba(0,229,255,0.2);
}
.auth-opt b { font-family: var(--font-head); font-weight: 700; font-size: clamp(14px, 1.9vw, 17px); display: flex; align-items: center; gap: 8px; }
.auth-opt b .ti { color: var(--gold-hot); font-size: 18px; }
.auth-opt span { font-size: clamp(11px, 1.5vw, 13px); opacity: 0.7; padding-left: 26px; }

/* created-wallet credential fields */
.wal-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.wal-field label { display: block; font-size: clamp(10px, 1.3vw, 12px); letter-spacing: 0.5px; text-transform: uppercase; color: var(--brass-hi); margin-bottom: 5px; }
.wal-row { display: flex; align-items: stretch; gap: 8px; }
.wal-row code {
    flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px;
    background: rgba(0,0,0,0.36); border: 1px solid rgba(0,229,255,0.2);
    color: var(--cream); font-family: var(--font-mono); font-size: clamp(11px, 1.4vw, 13px);
    word-break: break-all; line-height: 1.4;
}
.wal-copy {
    flex: 0 0 auto; width: 42px; border-radius: 10px; cursor: pointer;
    background: rgba(0,229,255,0.1); border: 1px solid rgba(0,229,255,0.3);
    color: var(--cream); font-size: 16px; transition: transform 0.12s, background 0.2s;
}
.wal-copy:hover { transform: scale(1.06); background: rgba(0,229,255,0.22); }
.wal-copy.ok { background: rgba(20,241,149,0.22); border-color: rgba(20,241,149,0.5); color: #7bf2c0; }
.wal-warn {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    padding: 9px 12px; border-radius: 11px; font-size: clamp(11px, 1.4vw, 13px);
    background: rgba(255,170,60,0.12); border: 1px solid rgba(255,170,60,0.36); color: #ffd29a;
}
.wal-warn .ti { color: var(--gold-hot); font-size: 17px; flex: 0 0 auto; }

/* ═════════════════════════════════════════════════════════════════════════════
   Remaining-screen rollout — shop / online / lobby / mpresults / daily reskinned
   from the old glass .panel chrome to this kit, + Tabler-webfont icons replacing
   every emoji. (Removed the refined-asset cove backdrops these screens shipped.)
   ═════════════════════════════════════════════════════════════════════════════ */

/* Tabler glyphs ride the text baseline and inherit colour */
.lh .ti { font-size: 1.05em; line-height: 1; vertical-align: -2px; }

/* ── Shop — angular cosmetic tiles (locked "soon") ────────────────────────── */
.lh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  width: 100%;
}
.lh-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 16px;
  background: #0e2240;
  border: 1px solid rgba(0, 229, 255, .2);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 94% 100%, 0 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  text-align: left;
  cursor: pointer;
  transition: background var(--engine-dur) var(--engine-ease), transform var(--engine-dur) var(--engine-ease);
}
.lh-tile:hover { background: #123059; transform: translateY(-2px); }
.lh-tile:active { transform: translateY(0); }
.lh .lh-tile__ico { font-size: 30px; color: var(--brass); }
.lh-tile__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: 17px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--cream);
}
.lh-tile__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #1a1500;
  background: var(--brass);
  padding: 2px 7px;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

/* ── Shop boat tiles (extend .lh-tile) ────────────────────────────────────── */
.shop-tile { align-items: stretch; gap: 8px; }
.shop-tile[disabled] { opacity: .82; cursor: default; }
.shop-tile[disabled]:hover { transform: none; background: #0e2240; }
.shop-tile__art {
  width: 100%;
  height: clamp(92px, 13vh, 140px);
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5));
}
.shop-tile__rarity {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  color: #04121f;
  background: #7fb2c8;
}
.shop-tile__rarity.rare { background: #59c1ff; }
.shop-tile__rarity.legendary { background: linear-gradient(90deg, #ffd400, #ff9e2c); }
.shop-tile__price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  color: var(--gem-gold);
}
.shop-tile__price .coin-dot {
  width: 14px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FFE680, var(--gem-gold) 60%, var(--marigold-dark));
}
.shop-tile__owned {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: 14px;
  color: #3ad29f;
}
.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(0, 229, 255, .5);
}

/* ── Garage — per-stat boat upgrade rows (reuse .stat / .stat-track) ───────── */
.garage-list {
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 1.8vh, 14px);
  width: min(100%, 560px);
  margin: 0 auto;
}
.garage-row {
  background: #0e2240;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .18);
  clip-path: polygon(1% 0, 100% 0, 99% 100%, 0 100%);
  padding: clamp(10px, 1.6vh, 14px) clamp(12px, 1.8vw, 16px);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.garage-row__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.garage-row__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(14px, 2vh, 17px);
  letter-spacing: .03em;
  color: var(--cream);
}
.garage-pips { display: inline-flex; gap: 3px; }
.garage-pips i {
  width: 14px;
  height: 5px;
  background: #06121f;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .25);
}
.garage-pips i.on { background: var(--brass); box-shadow: 0 0 8px var(--brass); }
.garage-row__body { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 14px); }
.garage-row__body .stat { flex: 1; }
.garage-up {
  flex: none;
  white-space: nowrap;
  padding: 7px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.garage-up[disabled] { opacity: .5; cursor: default; filter: grayscale(.5); }
.garage-up .coin-dot {
  width: 13px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FFE680, var(--gem-gold) 60%, var(--marigold-dark));
}

/* ── Daily — chest hero + reward amount ───────────────────────────────────── */
.lh-gift {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: center;
}
.lh .lh-gift__ico {
  font-size: clamp(76px, 16vh, 124px);
  line-height: 1;
  color: var(--gold);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .55));
}
.lh-gift__amt {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(34px, 7vh, 52px);
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--gold);
}
.lh-gift__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--cream-warm);
  opacity: .8;
}

/* ── Lobby — option row, action cluster, de-glassed code chip + slots ─────── */
.lh-opts--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.lh-action-grp { display: flex; gap: 10px; flex-wrap: wrap; }

.lh .code-chip {
  background: #0e2240;
  border: 1px solid rgba(0, 229, 255, .28);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 95% 100%, 0 100%);
}
.lh .code-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, .16);
  border-radius: 0;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}
#lobby-slots { margin: 0; }
#lobby-slots .slot { border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%); }
#lobby-slots .slot.me { border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass); }

/* ── Online — angular code field + join button ───────────────────────────── */
.lh-input.code-input {
  flex: 1;
  text-align: center;
  letter-spacing: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.join-row .lh-ghost { display: inline-flex; align-items: center; white-space: nowrap; }

/* ── MP results — Tabler medals (gold / silver / bronze) ──────────────────── */
#mp-list .lb-medal { font-size: 22px; }
#mp-list .lb-medal--gold { color: #ffd05a; }
#mp-list .lb-medal--silver { color: #cdd7e5; }
#mp-list .lb-medal--bronze { color: #d68a4e; }

/* ── World HUD + race-portal popup — size Tabler glyphs like the old emoji ── */
.world-pop .ti, .world-coins .ti { font-size: 15px; vertical-align: -2px; }
.iconbtn .ti { font-size: 19px; line-height: 1; }
.rp-ico .ti { font-size: 40px; color: var(--gold); }

/* ── Auth gate (username screen) — wallet-first + collapsible account ─────── */
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
}
.auth-or span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .35), transparent); }
.auth-or em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream-warm);
  opacity: .6;
}
.auth-account { display: flex; flex-direction: column; gap: 10px; }
.auth-account.hidden { display: none; }
#auth-wallet .ti { vertical-align: -2px; }
/* account row in settings */
.lh-account { display: flex; flex-direction: column; gap: 8px; }
.lh-account .who { font-family: var(--font-mono); font-size: 12px; color: var(--cream-warm); }
.lh-account .who b { color: var(--brass); font-weight: 500; }

/* Loader brand logo lives in css/loader.css (.ldr-logo, dead-centered img). */
