/* ═══════════════════════════════════════════════════════════════════════════
   RacePTL lobby, pro layout. Dense contest table in the style of a DFS or poker
   lobby: flat surfaces, one restrained accent, sentence-case type, no halo effects.
   Scoped to body.lobby-pro so the shared psh- chrome on other pages is unchanged.
   ═══════════════════════════════════════════════════════════════════════════ */
.lobby-pro {
  --lp-bg: #0b0e13; --lp-panel: #10141a; --lp-panel-2: #151a22; --lp-line: #212833; --lp-line-2: #2b3340;
  --lp-ink: #e7eaef; --lp-ink-2: #a3acb9; --lp-ink-3: #6f7a89;
  --lp-accent: #E3263B; --lp-accent-ink: #fff; --lp-amber: #e0a43a; --lp-red: #e5484d; --lp-live: #e3263b;
  --lp-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --lp-section: 28px;
}
.lobby-pro .pshell { font-family: var(--lp-sans); }
.lobby-pro .lp-wrap { max-width: 1080px; width: 100%; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

/* At rail widths the gutters are the sponsor wrap (ptl-shell.css). The center
   column is a solid panel with a crisp edge so section rules stop at the wrap. */
@media (min-width: 1440px) {
  body.lobby-pro { background: #05070a; }
  body.lobby-pro .pshell {
    background: linear-gradient(#0b0e13, #0b0e13) center top / 1080px 100% no-repeat;
  }
  body.lobby-pro .lp-welcome {
    width: 1080px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  body.lobby-pro .ptl-legal-footer {
    width: 1080px;
    max-width: 1080px;
    box-sizing: border-box;
    background: #0b0e13;
    border-left: 1px solid #24303c;
    border-right: 1px solid #24303c;
  }
}

/* Header + nav styles now live in ptl-shell.css so every page shares one header. */

/* Account strip */
.lp-strip { border-bottom: 1px solid var(--lp-line); background: var(--lp-panel); }
.lp-strip__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.lp-stats { display: flex; align-items: center; gap: 0; min-width: 0; }
.lp-stat { display: flex; flex-direction: column; gap: 1px; padding: 0 18px; border-left: 1px solid var(--lp-line); }
.lp-stat:first-child { padding-left: 0; border-left: 0; }
.lp-stat .k { font-size: 11px; color: var(--lp-ink-3); font-weight: 500; }
.lp-stat .v { font-size: 15px; font-weight: 600; color: var(--lp-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-signin { font-size: 13px; color: var(--lp-ink-2); }
.lp-signin a { color: var(--lp-ink); font-weight: 600; }
.lp-strip__side { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lobby-pro .psh-presence { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; font: 500 12.5px/1 var(--lp-sans); text-transform: none; letter-spacing: 0; color: var(--lp-ink-2); }
.lobby-pro .psh-presence .dot { width: 6px; height: 6px; background: var(--lp-ink-3); }
.lobby-pro .psh-presence.live { color: var(--lp-ink); }
.lobby-pro .psh-presence.live .dot { background: var(--lp-live); box-shadow: none; animation: none; }
.lobby-pro .pd-fastest { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; font: 500 12.5px/1 var(--lp-sans); text-transform: none; letter-spacing: 0; color: var(--lp-ink-2); max-width: none; }
.lobby-pro .pd-fastest .dot { width: 6px; height: 6px; background: var(--lp-amber); box-shadow: none; }
.lobby-pro .pd-fastest b { color: var(--lp-ink); font-size: 12.5px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.lobby-pro .pd-fastest .cta { color: var(--lp-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Featured: slim banner row */
.lp-feature { display: flex; gap: 8px; margin-top: 12px; }
.lp-feature__wk { flex: 1 1 auto; min-width: 0; }
.lp-feature__wk:empty { display: none; }
.lp-qm { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px 0 14px; border: 1px solid var(--lp-line); border-radius: 6px; background: var(--lp-panel); text-decoration: none; color: var(--lp-ink); }
.lp-feature:has(.lp-feature__wk:not(:empty)) .lp-qm { flex: 0 0 auto; }
.lp-qm:hover { border-color: var(--lp-line-2); }
.lp-qm__t { font-weight: 600; font-size: 14px; white-space: nowrap; }
.lp-qm__s { font-size: 12.5px; color: var(--lp-ink-2); white-space: nowrap; }
.lp-qm__go { margin-left: auto; background: var(--lp-accent); color: var(--lp-accent-ink); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 4px; white-space: nowrap; }
.wks { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px 0 0; border: 1px solid var(--lp-line); border-radius: 6px; background: var(--lp-panel); text-decoration: none; color: var(--lp-ink); overflow: hidden; }
.wks:hover { border-color: var(--lp-line-2); }
.wks-tag { align-self: stretch; display: flex; align-items: center; padding: 0 10px; background: #1a1f26; color: var(--lp-amber); font-size: 11px; font-weight: 600; border-right: 1px solid var(--lp-line); }
.wks-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.wks-t { font-weight: 600; font-size: 14px; white-space: nowrap; }
.wks-s { font-size: 12px; color: var(--lp-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wks-count { font-size: 12.5px; color: var(--lp-ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wks-count b { color: var(--lp-ink); font-weight: 600; }
.wks-go { border: 1px solid var(--lp-line-2); color: var(--lp-ink); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 4px; white-space: nowrap; }
.lobby-pro .wk-banner { margin: 0; border-radius: 6px; padding: 8px 12px; min-height: 48px; box-shadow: none; background: var(--lp-panel); border: 1px solid var(--lp-line); }

/* Category pills (sub-tabs). Scroll sideways on a phone. */
.lobby-pro .psh-filters { position: static; background: transparent; border-bottom: 0; margin: 0; }
.lobby-pro .psh-filters__row { gap: 8px; padding: 0 16px 2px; }
.lobby-pro .psh-chip { border: 1px solid var(--lp-line-2); border-radius: 999px; background: var(--lp-panel); padding: 8px 14px; font: 600 13px/1 var(--lp-sans); color: var(--lp-ink-2); }
.lobby-pro .psh-chip:hover { color: var(--lp-ink); border-color: #3a4352; }
.lobby-pro .psh-chip.on { background: var(--lp-accent); color: var(--lp-accent-ink); border-color: var(--lp-accent); }

/* Launch toolbar (the old tile deck) */
.lobby-pro .lp-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 16px; margin-top: var(--lp-section); padding: 0 16px; grid-template-columns: none; max-width: 1080px; }
.lp-tools__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.lp-tools__end { display: flex; align-items: center; gap: 16px; margin-left: auto; flex: 0 0 auto; }
.lobby-pro .pd-tile { flex-direction: row; align-items: center; gap: 6px; padding: 0 12px; height: 32px; border-radius: 4px; background: var(--lp-panel); border: 1px solid var(--lp-line-2); color: var(--lp-ink); transition: border-color .12s; }
.lobby-pro .pd-tile:hover { transform: none; border-color: #3a4352; }
.lobby-pro .pd-tile--primary { background: var(--lp-accent); border-color: var(--lp-accent); color: var(--lp-accent-ink); }
.lobby-pro .pd-tile--primary:hover { border-color: var(--lp-accent); filter: brightness(1.05); }
.lobby-pro .pd-name { font: 600 13px/1 var(--lp-sans); text-transform: none; letter-spacing: 0; }
.lobby-pro .pd-last { position: static; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: currentColor; opacity: .55; font-size: 0; }
.lobby-pro .pd-tile--join { margin-left: 0; padding: 0 3px 0 0; background: var(--lp-panel); }
.lobby-pro .pd-joinrow { margin: 0; gap: 0; align-items: center; }
.lobby-pro .pd-joinrow input { width: 96px; background: transparent; border: 0; font: 500 16px/1 var(--lp-sans); letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 6px 10px; color: var(--lp-ink); }
.lobby-pro .pd-joinrow input::placeholder { text-transform: none; letter-spacing: 0; color: var(--lp-ink-3); font-size: 13px; }
.lobby-pro .pd-joinrow button { background: var(--lp-panel-2); border: 1px solid var(--lp-line-2); color: var(--lp-ink); font: 600 12.5px/1 var(--lp-sans); text-transform: none; letter-spacing: 0; padding: 6px 10px; border-radius: 3px; }

/* Feed + table */
.lobby-pro .psh-feed { padding-top: var(--lp-section); }
.lt-head { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 8px; }
.lt-head:first-child { margin-top: 0; }
.lt-title { margin: 0; font: 600 15px/1.2 var(--lp-sans); color: var(--lp-ink); display: inline-flex; align-items: center; gap: 8px; }
.lt-count { font-size: 12px; color: var(--lp-ink-3); font-variant-numeric: tabular-nums; }
.lt-create { margin-left: auto; background: none; border: 1px solid var(--lp-line-2); color: var(--lp-ink); font: 600 12.5px/1 var(--lp-sans); padding: 7px 12px; border-radius: 4px; cursor: pointer; }
.lt-create:hover { border-color: #3a4352; }
.lt-wrap { border: 1px solid var(--lp-line); border-radius: 6px; background: var(--lp-panel); overflow: hidden; }
.lt { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 13px; color: var(--lp-ink); }
.lt thead th { position: sticky; top: 0; background: var(--lp-panel-2); border-bottom: 1px solid var(--lp-line); text-align: left; padding: 0; font-weight: 500; white-space: nowrap; }
.lt-sort { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 4px; width: 100%; height: 34px; padding: 0 12px; font: 500 11.5px/1 var(--lp-sans); color: var(--lp-ink-3); cursor: pointer; }
.lt th.c-num .lt-sort { justify-content: flex-end; }
.lt-sort:hover, .lt-sort.on { color: var(--lp-ink); }
.lt-sort:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: -2px; }
.lt-arrow { font-size: 8px; }
.lt td { height: 44px; padding: 0 12px; border-bottom: 1px solid var(--lp-line); vertical-align: middle; white-space: nowrap; }
.lt tbody tr:last-child td { border-bottom: 0; }
.lt tbody tr:hover td { background: #131820; }
.lt .c-num { text-align: right; font-variant-numeric: tabular-nums; }
.lt .c-contest { white-space: normal; min-width: 180px; }
.lt .c-format, .lt .c-class { color: var(--lp-ink-2); }
.lt .c-act { width: 1%; text-align: right; padding-right: 8px; }
.lt-name { display: block; font-weight: 600; line-height: 1.25; }
.lt-sub { display: block; font-size: 11.5px; color: var(--lp-ink-3); line-height: 1.3; }
.lt-meta { display: none; font-size: 11.5px; color: var(--lp-ink-3); line-height: 1.3; }
.lt-free { color: var(--lp-ink); }
.lt-muted { color: var(--lp-ink-3); }
.lt-st { font-size: 12.5px; color: var(--lp-ink-2); }
.lt-st.hot { color: var(--lp-amber); }
.lt-st.mine { color: #8fb3ff; }
.lt-row.is-mine td:first-child { box-shadow: inset 2px 0 0 #8fb3ff; }
.lt-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 44px; height: auto; padding: 0 12px; border-radius: 6px; border: 1px solid #9e1828; background: linear-gradient(180deg, #ef4658 0%, #c81f33 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 4px 10px rgba(0,0,0,.28); color: #fff; font: 800 12.5px/1 var(--lp-sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; white-space: nowrap; text-transform: uppercase; }
.lt-btn:hover { filter: brightness(1.06); }
.lt-btn:active { transform: translateY(1px); filter: brightness(.96); }
.lt-btn.ghost { background: #171c24; border-color: var(--lp-line-2); color: var(--lp-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.lt-btn.ghost:hover { border-color: #3a4352; filter: none; }
.lt-btn .psh-contest__enter { all: unset; }
.lt .sr, .lobby-pro .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.psh-feed[data-stale="1"] .lt-btn[data-paid="1"] { opacity: .5; }
.lt-none { padding: 14px 12px; font-size: 13px; color: var(--lp-ink-2); }
.lt-link { background: none; border: 0; padding: 0; color: var(--lp-ink); font: 600 13px var(--lp-sans); text-decoration: underline; cursor: pointer; }
.lt-empty { padding: 12px; font-size: 13px; color: var(--lp-ink-2); }
.lt-empty a { color: var(--lp-ink); font-weight: 600; }
.lobby-pro .pc-pill { font: 500 11.5px/1 var(--lp-sans); letter-spacing: 0; text-transform: none; padding: 3px 7px; border-radius: 3px; }
.lobby-pro .psh-livedot .dot { width: 6px; height: 6px; background: var(--lp-live); box-shadow: none; animation: none; }
.lobby-pro .pc-pill--live { color: #ffffff; background: var(--lp-live); }
.lobby-pro .lt-mine { margin-top: 18px; padding: 10px 12px; gap: 10px; border-radius: 6px; background: var(--lp-panel); border: 1px solid var(--lp-line); box-shadow: none; }
.lobby-pro .lt-mine .h { font: 600 13px/1.3 var(--lp-sans); }
.lobby-pro .lt-mine .d { font-size: 12px; color: var(--lp-ink-3); }
.lobby-pro .lt-mine .ic { width: 28px; height: 28px; border-radius: 4px; }
.lobby-pro .psh-tick { border-radius: 6px; background: var(--lp-panel); padding: 6px 10px; margin-bottom: 12px; font-family: var(--lp-sans); }
/* Operator promotion, slimmed to a banner */
.lobby-pro .psh-mega { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 10px 12px 10px 14px; border-radius: 6px; border: 1px solid var(--lp-line); background: var(--lp-panel); }
.lobby-pro .psh-mega::before, .lobby-pro .psh-mega::after { display: none; }
.lobby-pro .psh-mega__l { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lobby-pro .psh-mega .cls { font: 600 14px/1.2 var(--lp-sans); text-transform: none; letter-spacing: 0; }
.lobby-pro .psh-mega .sub { font-size: 12.5px; color: var(--lp-ink-2); margin: 0; }
.lobby-pro .psh-mega .chips, .lobby-pro .psh-mega__kick { display: none; }
.lobby-pro .psh-mega__r .enter { background: var(--lp-accent); color: var(--lp-accent-ink); font: 600 12.5px/1 var(--lp-sans); text-transform: none; letter-spacing: 0; padding: 7px 12px; border-radius: 4px; box-shadow: none; }

/* Tablet: drop the Format column (it rides in the contest cell). */
@media (max-width: 900px) {
  .lt .c-format { display: none; }
  .lt .lt-sub { display: none; }
  .lt .lt-meta { display: block; }
  .lp-qm__s { display: none; }
}
/* Mobile: the same table, condensed. Contest · Entry · Prize · Seats · action. */
@media (max-width: 640px) {
  .lobby-pro .lp-wrap { padding: 0 12px; }
  .lp-strip__row { min-height: 48px; gap: 10px; }
  .lp-stat { padding: 0 12px; }
  .lp-stat--opt { display: none; }
  .lp-stat .v { font-size: 14px; }
  .lp-strip__side .pd-fastest { display: none; }
  .lp-feature { flex-direction: column; margin-top: 10px; }
  .lp-feature:has(.lp-feature__wk:not(:empty)) .lp-qm { flex: 1 1 auto; }
  .lp-qm__s { display: none; }
  .wks-s { display: none; }
  .wks-count .wks-cl { display: none; }
  .wks-tag { display: none; }
  .wks { padding-left: 12px; }
  .lobby-pro .lp-tools { flex-direction: column; align-items: stretch; gap: 12px; padding: 0 12px; overflow: visible; }
  .lp-tools__actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .lp-tools__actions::-webkit-scrollbar { display: none; }
  .lp-tools__end { width: 100%; margin-left: 0; justify-content: space-between; }
  .lobby-pro .pd-tile { flex: 0 0 auto; }
  .lobby-pro .pd-tile--join { margin-left: 0; }
  .lobby-pro .psh-filters__row { padding: 0 8px; }
  .lobby-pro .psh-feed { padding-left: 12px; padding-right: 12px; }
  .lt .c-class, .lt .c-status { display: none; }
  .lt td { padding: 0 8px; }
  .lt .c-contest { min-width: 0; padding-top: 6px; padding-bottom: 6px; }
  .lt-sort { padding: 0 8px; }
  .lt-btn { min-width: 56px; padding: 0 10px; }
  .lt-name { font-size: 13px; }
  .lt--live .c-num, .lt--recent .c-class { display: none; }
}

.lt-m-ent { display: none; }
.lp-qm .pd-last { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-ink-3); }
.lp-qm .pd-last[hidden] { display: none; }
@media (max-width: 640px) {
  .lt-name { white-space: nowrap; }
  .lt .c-contest { width: 100%; }
}
@media (max-width: 420px) {
  .lt .c-ent { display: none; }
  .lt-m-ent { display: inline; }
}
.lobby-pro .psh-acct { text-transform: none; }
.lp-feature:has(.lp-feature__wk:not(:empty)) .lp-qm__s { display: none; }

/* ── Featured contests: one hero plus equal secondary cards. Phones swipe. ── */
.lobby-pro .lp-feat { display: block; margin-top: var(--lp-section); }
.lp-h { margin: 0 0 10px; font: 600 16px/1.2 var(--lp-sans); color: var(--lp-ink); }
.lp-carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; align-items: stretch; }
.lp-carousel::-webkit-scrollbar { display: none; }
.lp-feat__rest, .lp-feat__side, #lp-feat-real { display: contents; }
.lp-carousel > .lp-feat__main, .lp-feat__side > *, #lp-feat-real > .lp-fcard { flex: 0 0 86%; scroll-snap-align: start; min-width: 0; min-height: 260px; box-sizing: border-box; }
#wk-hero-slot:not(:empty) { display: flex; flex: 0 0 92%; }
#wk-hero-slot > .wkf { flex: 1; width: 100%; min-width: 0; }
#wk-hero-slot:empty, #wk-banner-slot:empty, #lp-promo-slot:empty, #lp-feat-real:empty { display: none; }
.lp-feat__main:empty, .lp-feat__promo:empty { display: none; }

.wkf { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 248px; box-sizing: border-box; padding: 22px 24px 18px; border-radius: 10px; text-decoration: none; color: var(--lp-ink);
  background: linear-gradient(135deg, #1a1f26 0%, #1a1f26 38%, #0f1b26 100%); border: 1px solid #1a1f26; overflow: hidden; }
.wkf::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(230,184,76,.10) 0%, transparent 45%); }
.wkf > * { position: relative; z-index: 1; }
.wkf { transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.wkf:hover { border-color: #e3263b; box-shadow: 0 0 0 1px rgba(230,184,76,.22), 0 16px 32px -22px rgba(230,184,76,.4); transform: translateY(-2px); }
.wkf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wkf-eyebrow { font-size: 13px; font-weight: 600; color: #e6c66e; }
.wkf-badge { font-size: 11.5px; font-weight: 500; color: #f4f6fa; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); padding: 4px 8px; border-radius: 4px; }
.wkf-prize { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wkf-prize b { font-size: 64px; line-height: .95; font-weight: 700; letter-spacing: -0.02em; color: #ffffff; font-variant-numeric: tabular-nums; }
.wkf-prize span { font-size: 15px; color: #b9cbbf; }
.wkf-facts { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; flex-wrap: wrap; }
.wkf-facts li { display: flex; flex-direction: column; gap: 2px; padding: 0 18px; border-left: 1px solid rgba(255,255,255,.12); }
.wkf-facts li:first-child { padding-left: 0; border-left: 0; }
.wkf-facts span { font-size: 11.5px; color: #93a89a; }
.wkf-facts b { font-size: 15px; font-weight: 600; color: #f1f4f2; }
.wkf-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wkf-count { display: flex; flex-direction: column; gap: 6px; }
.wkf-cl { font-size: 11.5px; color: #93a89a; }
.wkf-units { display: flex; gap: 6px; }
.wkf-units > span { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 4px 5px; border-radius: 6px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); }
.wkf-units b { font-size: 22px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; }
.wkf-units small { font-size: 10.5px; color: #93a89a; }
.wkf-go { background: var(--lp-accent); color: var(--lp-accent-ink); font-weight: 600; font-size: 15px; padding: 11px 28px; border-radius: 6px; white-space: nowrap; }
.wkf:hover .wkf-go { filter: brightness(1.06); }
.wkf-fine { font-size: 11px; color: #7f9386; }

.lp-fcard { display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; padding: 16px 18px; border-radius: 10px; text-decoration: none; color: var(--lp-ink);
  background: linear-gradient(160deg, #18202b 0%, #121821 100%); border: 1px solid var(--lp-line-2); min-height: 118px; min-width: 0; overflow: hidden; }
.lp-fcard:hover { border-color: #3a4352; }
.lp-fcard__eyebrow { font-size: 12px; font-weight: 500; color: var(--lp-ink-3); display: flex; align-items: center; gap: 6px; }
.lp-fcard__eyebrow .pd-last { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-accent); }
.lp-fcard__eyebrow .pd-last[hidden] { display: none; }
.lp-fcard__t { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.lp-fcard__s { font-size: 12.5px; color: var(--lp-ink-2); line-height: 1.4; }
.lp-fcard__row { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 6px; min-width: 0; }
.lp-fcard__k { font-size: 11.5px; color: var(--lp-ink-3); flex: 0 0 auto; }
.lp-fcard__v { font-size: 14px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-fcard__go { margin-left: auto; flex: 0 0 auto; background: var(--lp-accent); color: var(--lp-accent-ink); font-weight: 600; font-size: 13px; padding: 8px 16px; border-radius: 5px; white-space: nowrap; transition: transform .12s ease, filter .12s ease; }
.lp-fcard__go:active, .lp-fcard:active .lp-fcard__go { transform: scale(.98); }

/* Quick Match: the gameplay tree, scaled to the card. Frozen staged, both lanes. */
.lp-fcard--qm {
  gap: 8px;
  background:
    radial-gradient(90% 55% at 50% 8%, rgba(224,164,58,.20), transparent 58%),
    radial-gradient(70% 40% at 50% 100%, rgba(227,38,59,.12), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 16px),
    linear-gradient(165deg, #22190f 0%, #141910 52%, #101610 100%);
  border-color: #4a3b22;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.lp-fcard--qm:hover { border-color: #e0a43a; box-shadow: 0 0 0 1px rgba(224,164,58,.35), 0 16px 32px -20px rgba(224,164,58,.55); transform: translateY(-2px); }
.lp-fcard--qm:active { transform: translateY(0) scale(.985); }
.lp-fcard--qm .lp-tag { color: #f3ddb0; background: rgba(0,0,0,.38); border-color: rgba(224,164,58,.45); letter-spacing: .03em; }
.lp-qm-tree { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0; }
.lp-qm-tree .ptl-tree { height: 100%; width: auto; max-width: 100%; aspect-ratio: 901 / 1746; background: transparent; line-height: 0; }
.lp-qm-tree .ptl-tree-art { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: fill; }
.lp-fcard--qm .lp-fcard__t { font-size: 22px; }
/* Quick Match: two straight-on lane scoreboards, head-to-head. */
.lp-qm-boards { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; overflow: hidden; }
.lp-qm-lane { flex: 1 1 0; min-width: 0; max-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: center; }
.lp-qm-lane__lbl { font: 700 9.5px/1 var(--lp-sans); letter-spacing: .14em; text-transform: uppercase; color: #a8977a; display: inline-flex; align-items: center; gap: 5px; }
.lp-qm-lane--l .lp-qm-lane__lbl::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff2121; }
.lp-qm-board { position: relative; line-height: 0; background: transparent; max-height: calc(100% - 14px); aspect-ratio: 574 / 983; width: 100%; height: auto; }
.lp-qm-board img { width: 100%; height: 100%; display: block; object-fit: contain; }
.lp-qm-board .ptl-rt-canvas { position: absolute; left: 11%; top: 33%; width: 78%; height: 23.3%; background: #080604; border-radius: 2px; }
.lp-qm-vs { position: absolute; left: 50%; top: 80%; transform: translate(-50%, -50%); z-index: 1; font: 800 11px/1 var(--lp-sans); letter-spacing: .06em; color: #f3ddb0; background: rgba(0,0,0,.55); border: 1px solid rgba(224,164,58,.5); border-radius: 999px; padding: 5px 6px; }
/* Practice card: tree fills the stage area (same sizing as the old Quick Match tree). */
.lp-prac .lp-prac__stage { flex: 1 1 0; min-height: 150px; }
.lp-prac .lp-prac-tree { height: 100%; width: 100%; }
.lp-qm__live { font-size: 12.5px; font-weight: 600; color: #f0d7a4; font-variant-numeric: tabular-nums; }
.lp-qm__live[hidden] { display: none; }
.lp-fcard--qm .lp-fcard__row { margin-top: 0; padding-top: 2px; }
.lp-fcard--qm .lp-fcard__go { margin-left: 0; min-width: 108px; padding: 11px 22px; font-size: 15px; font-weight: 700; border-radius: 6px; box-shadow: 0 10px 18px -12px rgba(227,38,59,.9); }
.lp-fcard--qm .lp-fcard__go:hover { filter: brightness(1.06); }
/* Operator promotion as a side card */
.lobby-pro .lp-feat__promo .psh-mega { height: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px 18px; border-radius: 10px; background: linear-gradient(160deg, #1e1a26 0%, #141220 100%); border: 1px solid var(--lp-line-2); }
.lobby-pro .lp-feat__promo .psh-mega__l { flex-direction: column; align-items: flex-start; gap: 4px; }
.lobby-pro .lp-feat__promo .psh-mega__kick { display: block; font: 500 12px/1.2 var(--lp-sans); color: var(--lp-ink-3); text-transform: none; letter-spacing: 0; }
.lobby-pro .lp-feat__promo .psh-mega .cls { font-size: 18px; font-weight: 700; }
.lobby-pro .lp-feat__promo .psh-mega__r { margin-top: auto; text-align: right; }

/* Phones: one large card at a time inside the carousel. */
@media (max-width: 1023px) {
  .wkf { padding: 18px 18px 14px; min-height: 260px; }
  .wkf-prize b { font-size: 48px; }
  .wkf-facts li { padding: 0 12px; }
  .wkf-facts li:nth-child(3) { display: none; }
  .wkf-units > span { min-width: 44px; }
  .wkf-units b { font-size: 18px; }
  .wkf-go { padding: 10px 20px; }
}

/* Header balance pill: compact, links to the wallet, signed in only. */
.lobby-pro .psh-bal { font-family: var(--lp-sans); padding: 5px 11px 5px 6px; gap: 7px; }
.lobby-pro .psh-bal .amt { font-family: var(--lp-sans); font-size: 13.5px; font-weight: 600; }
.lobby-pro .psh-bal:hover { border-color: var(--lp-line-2); }
.lp-fastest { margin-top: 10px; }
.lp-fastest:has(.pd-fastest[hidden]) { display: none; }
.lt-head .psh-presence { margin-left: auto; }

/* ── Practice tree card (featured side column on wide screens, a band on phones) ── */
.lp-prac { box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; border-radius: 10px; color: var(--lp-ink); min-width: 0; overflow: hidden;
  background:
    radial-gradient(80% 60% at 18% 20%, rgba(227,38,59,.16), transparent 60%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.03) 0 1px, transparent 1px 14px),
    linear-gradient(165deg, #1a1f26 0%, #0d1612 100%);
  border: 1px solid #1a1f26;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.lp-prac:hover { border-color: #e3263b; box-shadow: 0 0 0 1px rgba(227,38,59,.28), 0 16px 32px -20px rgba(227,38,59,.45); transform: translateY(-2px); }
.lp-prac:empty { display: none; }
.lp-prac__hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-prac__t { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: #f4f7f5; }
.lp-prac__s { margin: 0; font-size: 12.5px; line-height: 1.35; color: #b7c9be; }
.lp-prac__stage { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.lp-prac__stage .ptl-board { width: auto; max-width: 100%; line-height: 0; background: transparent; }
.lp-prac__stage .ptl-board img { width: auto; height: auto; max-width: 100%; max-height: 320px; display: block; }
.lp-prac__stage .ptl-rt-canvas { background: #080604; }
.lp-prac__cell .v.is-foul { color: var(--lp-red); }
.lp-prac__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 0; }
.lp-prac__go { background: var(--lp-accent); color: var(--lp-accent-ink); font-weight: 700; font-size: 15px; padding: 11px 22px; border-radius: 6px; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 18px -12px rgba(227,38,59,.9); transition: transform .12s ease, filter .12s ease; }
.lp-prac__go:hover { filter: brightness(1.06); }
.lp-prac__go:active { transform: scale(.98); }
.lp-prac__note { font-size: 11.5px; color: var(--lp-ink-3); }
.lp-prac__note a { color: var(--lp-ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .wkf, .lp-fcard--qm, .lp-prac, .lp-fcard__go, .lp-prac__go { transition: none; }
  .wkf:hover, .lp-fcard--qm:hover, .lp-fcard--qm:active, .lp-prac:hover { transform: none; }
  .lp-fcard__go:active, .lp-fcard:active .lp-fcard__go, .lp-prac__go:active { transform: none; }
  .lp-qm-tree .pr-bulb, .lp-qm-board .ptl-rt-canvas { animation: none; transition: none; }
}
.lp-prac--band { display: none; }
/* Desktop and tablet: one hero, then equal-width secondary cards that fill the row. */
@media (min-width: 1024px) {
  .lp-carousel { overflow: visible; scroll-snap-type: none; min-height: 280px; align-items: stretch; }
  .lp-feat__rest { display: flex; flex: 1.2 1 0; gap: 12px; min-width: 0; align-items: stretch; }
  .lp-feat__side, #lp-feat-real { display: contents; }
  #wk-hero-slot:not(:empty), #wk-banner-slot:not(:empty) { flex: 1 1 0; width: auto; max-width: none; min-width: 0; min-height: 280px; }
  .lp-feat__side > *, #lp-feat-real > .lp-fcard { flex: 1 1 0; width: auto; min-width: 0; min-height: 0; height: auto; align-self: stretch; scroll-snap-align: none; }
  .lp-carousel:not(:has(#wk-hero-slot:not(:empty))):not(:has(#wk-banner-slot:not(:empty))) .lp-feat__rest { flex: 1 1 auto; }
}
/* Phones: the side copy leaves the swipe row; the full-width band shows instead. */
@media (max-width: 760px) {
  .lp-feat .lp-prac--side { display: none; }
  .lp-prac--band:not(:empty) { display: flex; margin: var(--lp-section) 16px 0; width: auto; max-width: none; }
  .lp-prac--band .lp-prac__stage { flex: 0 0 auto; height: 260px; min-height: 0; }
}

/* Live now empty state: one compact line with a single action. */
.lt-empty--live { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.lt-empty--live .lt-empty__ic { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--lp-ink-3); box-shadow: 0 0 0 4px rgba(111,122,137,.15); margin: 0 4px; }
.lt-empty--live .lt-empty__tx { flex: 1; min-width: 0; line-height: 1.4; }
.lt-empty--live .lt-empty__tx b { color: var(--lp-ink); font-weight: 600; }
.lt-empty--live .lt-btn { flex: 0 0 auto; color: var(--lp-ink); font-weight: 600; }
@media (max-width: 560px) { .lt-empty--live { flex-wrap: wrap; } .lt-empty--live .lt-btn { width: 100%; } }

/* Reserve the carousel so the weekly card arriving does not shove the page. */
@media (min-width: 761px) and (max-width: 1023px) {
  .lp-carousel { min-height: 260px; }
}

/* ── Top-bar counts, welcome strip, pills, action bar, list, friends ── */
.lp-topstats { display: none; align-items: center; gap: 2px; }
@media (min-width: 900px) { .lp-topstats { display: flex; } }
.lp-topstat { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 64px; padding: 0 10px; text-decoration: none; color: inherit; border-left: 1px solid var(--lp-line); }
.lp-topstat b { font: 600 13px/1.1 var(--lp-sans); font-variant-numeric: tabular-nums; color: var(--lp-ink); }
.lp-topstat span { font: 500 10px/1 var(--lp-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--lp-ink-3); }
.lp-topstat[hidden] { display: none !important; }

.lp-ask { margin-top: var(--lp-section); }
.lp-ask__hd h2 { margin: 0 0 8px; font: 600 15px/1.2 var(--lp-sans); color: var(--lp-ink); }
.lp-more { position: relative; flex: 0 0 auto; }
.lp-more__menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 180px; padding: 6px; border-radius: 8px; background: var(--lp-panel-2); border: 1px solid var(--lp-line-2); }
.lp-more__menu[hidden] { display: none; }
.lp-more__item { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--lp-ink-2); font: 600 13px/1 var(--lp-sans); padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.lp-more__item:hover, .lp-more__item.on { background: #1c2430; color: var(--lp-ink); }

.lp-welcome { border-bottom: 1px solid var(--lp-line); background: var(--lp-panel); margin-top: var(--lp-section); }
.lp-welcome__row { display: flex; align-items: center; justify-content: flex-start; gap: 24px; min-height: 56px; padding-top: 12px; padding-bottom: 12px; flex-wrap: nowrap; }
.lp-welcome__tx { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.lp-welcome__tx h1 { margin: 0; font: 600 18px/1.2 var(--lp-sans); letter-spacing: -0.02em; color: var(--lp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-welcome__tx p { margin: 0; font-size: 13px; color: var(--lp-ink-2); white-space: nowrap; }
.lp-welcome__tx p[hidden] { display: none; }
.lp-welcome__meta { display: flex; align-items: flex-end; margin-left: auto; flex: 0 0 auto; }
.lp-welcome__meta:not(:has(.lp-count, .lp-wstat)) { display: none; }
.lp-welcome__counts, .lp-welcome__stats { display: flex; align-items: flex-end; }
.lp-count, .lp-wstat { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; box-sizing: border-box; min-width: 76px; padding: 0 0 0 16px; margin-left: 16px; border-left: 1px solid var(--lp-line); text-decoration: none; color: inherit; }
.lp-welcome__counts .lp-count:first-child { margin-left: 0; padding-left: 0; border-left: 0; }
.lp-welcome__counts:empty + .lp-welcome__stats .lp-wstat:first-child { margin-left: 0; padding-left: 0; border-left: 0; }
a.lp-count { text-decoration: none; }
.lp-count b, .lp-wstat b { font-family: var(--lp-sans); font-weight: 600; font-size: 16px; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--lp-ink); white-space: nowrap; }
.lp-count span, .lp-wstat .k { font-family: var(--lp-sans); font-weight: 500; font-size: 11px; line-height: 1.2; color: var(--lp-ink-3); }

.lp-tag { display: inline-flex; align-items: center; font: 600 11px/1 var(--lp-sans); color: var(--lp-ink-2); background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); border-radius: 4px; padding: 4px 7px; }
.lp-tag--prize { color: #f4f6fa; }
.lp-tag--soon { color: var(--lp-amber); }
.lp-fcard__tags, .wkf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-fcard, .wkf, .lp-prac { height: 100%; }
.lp-carousel .lp-fcard, .lp-carousel .wkf, .lp-carousel .lp-prac { height: auto; align-self: stretch; }
.lp-fcard__fill { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.lp-fcard__fill-l { font-size: 12.5px; color: var(--lp-ink-2); font-variant-numeric: tabular-nums; }
.lp-fcard__bar, .lt-bar, .wkf-bar { display: block; height: 5px; border-radius: 3px; background: #1c2430; overflow: hidden; }
.lp-fcard__bar > span, .lt-bar > span, .wkf-bar > span { display: block; height: 100%; background: var(--lp-accent); border-radius: 3px; }
.wkf-ent { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #d5e4da; font-variant-numeric: tabular-nums; }
.wkf { min-height: 280px; }

.lp-next { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; margin: 0; padding: 0; min-width: 0; text-align: right; }
.lp-next[hidden] { display: none !important; }
.lp-next .k { font: 600 11px/1.45 var(--lp-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--lp-amber); }
.lp-next b { font: 600 15px/1.35 var(--lp-sans); font-variant-numeric: tabular-nums; color: var(--lp-ink); white-space: nowrap; }
body.lobby-pro[data-stale="1"] a.psh-contest--live[data-paid="1"] { opacity: .5; }

.lobby-pro .lp-you { margin-top: var(--lp-section); }
.lobby-pro .lp-you > .lt-head { margin: 0 0 12px; }
.lp-you__list { border: 1px solid var(--lp-line); border-radius: 8px; background: var(--lp-panel); overflow: hidden; }
.lp-you-row { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(88px, .7fr) auto auto; gap: 10px; align-items: center; padding: 12px 12px; border-bottom: 1px solid var(--lp-line); }
.lp-you-row:last-child { border-bottom: 0; }
.lp-you-kind { font: 700 11px/1 var(--lp-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--lp-accent-ink); background: var(--lp-accent); border-radius: 4px; padding: 5px 7px; }
.lp-you-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lp-you-main b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-you-main small { font-size: 12px; color: var(--lp-ink-3); }
.lp-you-ent { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--lp-ink-2); font-variant-numeric: tabular-nums; }
.lp-you-prize { font-size: 13px; font-weight: 600; color: var(--lp-ink); font-variant-numeric: tabular-nums; text-align: right; }
.lp-you-empty { padding: 14px 12px; font-size: 13px; color: var(--lp-ink-2); }
.lp-you-empty a { color: var(--lp-ink); font-weight: 600; }

.lobby-pro .lp-friends { margin-top: var(--lp-section); }
.lobby-pro .psh-waitlist { margin-top: var(--lp-section); }
.lobby-pro .psh-waitlist:empty, .lobby-pro .psh-waitlist[hidden] { display: none; margin: 0; }
.lobby-pro .psh-waitlist .ptl-wln { margin: 0; }
.lp-friends__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-friend { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border-radius: 10px; background: var(--lp-panel); border: 1px solid var(--lp-line); color: var(--lp-ink); text-decoration: none; min-height: 132px; }
.lp-friend h3 { margin: 0; font: 650 16px/1.2 var(--lp-sans); }
.lp-friend p { margin: 0; font-size: 13px; color: var(--lp-ink-2); line-height: 1.4; }
.lp-friend__go { margin-top: auto; align-self: flex-start; background: transparent; border: 1px solid var(--lp-line-2); color: var(--lp-ink); font: 600 13px/1 var(--lp-sans); padding: 8px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; }
.lp-friend__go:hover { border-color: #3a4352; }
button.lp-friend__go { font-family: inherit; }

.lt-ent { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 72px; }
.lt-ent__n { font-variant-numeric: tabular-nums; }
.lt .lt-bar { width: 72px; }
.lp-prac__cell .v.is-foul { color: var(--lp-red); }

/* Phones: table rows become compact cards. Pills and the carousel already scroll. */
@media (max-width: 720px) {
  .lp-welcome__row { flex-wrap: wrap; align-items: flex-start; gap: 12px; min-height: 0; }
  .lp-welcome__tx, .lp-welcome__meta { width: 100%; }
  .lp-welcome__meta { margin-left: 0; justify-content: flex-start; overflow-x: auto; }
  .lp-count, .lp-wstat { min-width: 64px; flex: 0 0 auto; margin-left: 12px; padding-left: 12px; }
  .lp-friends__row { grid-template-columns: 1fr; }
  .lp-you-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .lp-you-ent { display: none; }
  .lp-next { margin-left: 0; }
  .lt thead { display: none; }
  .lt, .lt tbody, .lt tr, .lt td { display: block; width: auto; }
  .lt tr { padding: 10px 12px 8px; border-bottom: 1px solid var(--lp-line); }
  .lt tbody tr:last-child { border-bottom: 0; }
  .lt td { height: auto; border-bottom: 0; padding: 2px 0; white-space: normal; text-align: left; }
  .lt td.c-style, .lt td.c-format, .lt td.c-class { display: none; }
  .lt td.c-entry::before, .lt td.c-prize::before, .lt td.c-ent::before, .lt td.c-status::before { content: attr(data-label); display: inline-block; min-width: 64px; margin-right: 8px; font-size: 11px; color: var(--lp-ink-3); }
  .lt td.c-num { text-align: left; }
  .lt td.c-act { text-align: right; padding-top: 8px; }
  .lt-ent { align-items: flex-start; }
  .lt-row.is-mine td:first-child { box-shadow: inset 2px 0 0 #8fb3ff; }
}

.lp-kinds {
  margin: 14px 0 10px;
  color: var(--lp-ink-2, #C5CCD4);
  font-size: 13px;
  line-height: 1.45;
}
.lp-playfirst__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.lp-playfirst__grid a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 92px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #303641;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 42%), #1B2028;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 18px rgba(0,0,0,0.22);
  color: inherit;
  text-decoration: none;
}
.lp-playfirst__grid a:hover { border-color: #4c5563; }
.lp-playfirst__grid b { font-family: Saira, system-ui, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.15; }
.lp-playfirst__grid span { color: #E3263B; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; }
@media (max-width: 1100px) {
  .lp-playfirst__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lp-playfirst__grid { grid-template-columns: 1fr 1fr; }
  .lp-playfirst__grid a { min-height: 76px; }
}
