/* Lanes Raceway — leaderboards */
.lanes-lb { font-family: var(--lanes-body, Barlow, sans-serif); color: var(--lanes-ink, #0B0D12); }

/* Tabs */
.lanes-lb__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.lanes-lb .lanes-lb__tabs a { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border: 2px solid var(--lanes-ink, #0B0D12); background: #fff; color: var(--lanes-ink, #0B0D12); text-decoration: none; font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; transition: background .15s, color .15s; }
.lanes-lb .lanes-lb__tabs a:hover { background: var(--lanes-ink, #0B0D12); color: #fff; }
.lanes-lb .lanes-lb__tabs a.is-active { background: var(--lanes-blue, #0019FF); border-color: var(--lanes-blue, #0019FF); color: #fff; }

/* Overview cards */
.lanes-lb__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lanes-lb .lanes-lb__card { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 20px; background: #fff; border: 1px solid var(--lanes-line, #DADDE5); border-top: 4px solid var(--lanes-blue, #0019FF); text-decoration: none; color: var(--lanes-ink, #0B0D12); transition: transform .15s, box-shadow .15s; }
.lanes-lb .lanes-lb__card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11, 13, 18, .12); }
.lanes-lb .lanes-lb__card--pinball { border-top-color: var(--lanes-flag, #FFD400); }
.lanes-lb .lanes-lb__card--liverc { border-top-color: var(--lanes-muted, #5B6070); }
.lanes-lb__kicker { font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--lanes-muted, #5B6070); }
.lanes-lb__cardtitle { font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 800; font-size: 28px; line-height: 1.02; text-transform: uppercase; }
.lanes-lb__blurb { font-size: 15px; color: var(--lanes-muted, #5B6070); }
.lanes-lb__go { margin-top: 8px; font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--lanes-blue, #0019FF); }

/* Board header */
.lanes-lb__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; }
.lanes-lb__title { margin: 2px 0 0; font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: .98; text-transform: uppercase; color: var(--lanes-ink, #0B0D12); }
.lanes-lb__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lanes-lb a.lanes-lb__btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; background: var(--lanes-blue, #0019FF); border: 2px solid var(--lanes-blue, #0019FF); color: #fff !important; text-decoration: none; font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.lanes-lb a.lanes-lb__btn:hover { background: var(--lanes-blue-deep, #0012B8); border-color: var(--lanes-blue-deep, #0012B8); }
.lanes-lb a.lanes-lb__btn--ghost { background: transparent; color: var(--lanes-ink, #0B0D12) !important; border-color: var(--lanes-ink, #0B0D12); }
.lanes-lb a.lanes-lb__btn--ghost:hover { background: var(--lanes-ink, #0B0D12); color: #fff !important; }
.lanes-lb__empty { background: #fff; border: 1px solid var(--lanes-line, #DADDE5); border-left: 4px solid var(--lanes-flag, #FFD400); padding: 18px 20px; font-size: 16px; line-height: 1.6; }
.lanes-lb__empty .lanes-lb__btn { margin-left: 8px; vertical-align: middle; }
.lanes-lb__livedot { display: inline-block; width: 8px; height: 8px; margin: 0 6px 1px 0; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: lanes-lb-pulse 1.6s ease-in-out infinite; vertical-align: middle; }
@keyframes lanes-lb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 60% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }

/* Panels + tables */
.lanes-lb__panel { background: #fff; border: 1px solid var(--lanes-line, #DADDE5); border-top: 4px solid var(--lanes-blue, #0019FF); padding: 20px 22px 14px; margin: 0 0 16px; }
.lanes-lb__panelhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lanes-lb__h3 { margin: 0 0 12px; font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; color: var(--lanes-ink, #0B0D12); }
.lanes-lb__asof { font-size: 13px; color: var(--lanes-muted, #5B6070); margin-bottom: 12px; }
.lanes-lb__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lanes-lb__table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.lanes-lb__table th, .lanes-lb__table td { padding: 10px 12px; border-bottom: 1px solid var(--lanes-line, #DADDE5); text-align: left; white-space: nowrap; vertical-align: middle; }
.lanes-lb__table th { font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--lanes-muted, #5B6070); border-bottom: 2px solid var(--lanes-ink, #0B0D12); }
.lanes-lb__table tbody tr:last-child td { border-bottom: 0; }
.lanes-lb__table .is-pos { font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 800; font-size: 18px; color: var(--lanes-muted, #5B6070); width: 2.2em; }
.lanes-lb__table .is-name a { color: var(--lanes-ink, #0B0D12); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.lanes-lb__table .is-name a:hover { border-bottom-color: var(--lanes-blue, #0019FF); }
.lanes-lb__table .is-time { font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 800; font-size: 20px; }
.lanes-lb__table .is-driver { font-weight: 600; }
.lanes-lb__table .is-date { color: var(--lanes-muted, #5B6070); }
.lanes-lb__table tr.is-top td { background: rgba(0, 25, 255, .06); }
.lanes-lb__table tr.is-top .is-pos, .lanes-lb__table tr.is-top .is-time { color: var(--lanes-blue, #0019FF); }
.lanes-lb__lane { display: inline-block; min-width: 5.2em; padding: 3px 10px; border-radius: 2px; text-align: center; font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #0B0D12; border: 1px solid rgba(11, 13, 18, .15); }
.lanes-lb__tag { display: inline-block; margin-left: 8px; padding: 2px 8px; background: var(--lanes-flag, #FFD400); color: #0B0D12; font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; vertical-align: middle; }
.lanes-lb__src { margin: 8px 0 0; font-size: 13px; color: var(--lanes-muted, #5B6070); }
.lanes-lb__src a { color: var(--lanes-blue, #0019FF); }

/* Pinball */
.lanes-lb__pingrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lanes-lb__machine { border-top-color: var(--lanes-flag, #FFD400); margin: 0; }
.lanes-lb__none { margin: 0 0 8px; font-size: 14px; color: var(--lanes-muted, #5B6070); }
.lanes-lb__scores { list-style: none; margin: 0; padding: 0; }
.lanes-lb__scores li { display: grid; grid-template-columns: 2em 34px 1fr auto; gap: 12px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--lanes-line, #DADDE5); font-size: 15px; }
.lanes-lb__scores li:last-child { border-bottom: 0; }
.lanes-lb__scores li.is-top { background: rgba(255, 212, 0, .14); }
.lanes-lb__rank { font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 800; font-size: 18px; color: var(--lanes-muted, #5B6070); text-align: center; }
.lanes-lb__scores li.is-top .lanes-lb__rank { color: var(--lanes-ink, #0B0D12); }
.lanes-lb__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(11, 13, 18, .12); }
.lanes-lb__avatar--blank { background: var(--lanes-ink, #0B0D12); color: #fff; font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 800; font-size: 15px; }
.lanes-lb__player { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lanes-lb__score { font-family: var(--lanes-display, "Barlow Condensed", sans-serif); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.lanes-lb__scores li.is-top .lanes-lb__score { color: var(--lanes-blue, #0019FF); }

@media (max-width: 900px) { .lanes-lb__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.lanes-lb__grid, .lanes-lb__pingrid { grid-template-columns: 1fr; }
	.lanes-lb__panel { padding: 16px 14px 10px; }
	.lanes-lb__table { font-size: 14px; }
	.lanes-lb__table th, .lanes-lb__table td { padding: 8px 8px; }
	.lanes-lb__scores li { grid-template-columns: 1.8em 30px 1fr auto; gap: 8px; }
	.lanes-lb__avatar { width: 30px; height: 30px; }
	.lanes-lb__score { font-size: 18px; }
}
