/* The lobby (/, templates/lobby.html). LOBBY_PLAN.md step 7.
 *
 * Its own stylesheet, written by hand, like the landing's (static/css/landing.css): base.html still loads Tailwind for
 * the shell (top bar, tray, modals), but nothing the lobby or its script draws may depend on it. A utility class in
 * lobby.html does nothing: style it here (tests/lobby/test_lobby_page.py checks every class the page uses is defined here).
 *
 * Systems (the landing's, LANDING_PLAN.md 6; use only these):
 *   type   - Playfair Display for headings (the tables' and the Store's voice), Inter for text, JetBrains Mono for
 *            figures that tick; the scale --fs-1..4 (the landing's first three steps; --fs-4 is the lobby's section
 *            title: a dashboard, not a poster).
 *   motion - --t-fast / --t-base / --t-slow with --ease (out); nothing overshoots. Under reduced motion nothing loops.
 *   colour - gold is for actions and prizes only (buttons, money, the ready rewards); labels are stone.
 *   skeletons - every block starts as a .lb-skel in its final shape (same height), so nothing jumps when data lands.
 */
#lb, #lb-fx, #lb-toast, #lb-sw {
    --ink: #0a0b0e; --panel: #121217; --panel-2: #0b0b0f; --line: rgba(212, 175, 55, .26); --hair: rgba(255, 255, 255, .06);
    /* the room's material (LOBBY_PLAN.md v2 4.6): #lb[data-salon] redefines these per Salon tier (the room section below) */
    --card: #15151b; --card-2: #0b0c11; --tile: #0f0f13; --line-soft: rgba(212, 175, 55, .2); --line-strong: rgba(212, 175, 55, .42);
    --sheen: rgba(255, 236, 179, .07);
    --light-1: rgba(251, 191, 36, .13); --light-2: rgba(251, 191, 36, .10); --light-floor: rgba(146, 64, 14, .16);
    --gold: #f2cf6b; --gold-hi: #fde68a; --gold-lo: #a8741c; --amber: #fcd34d; --label: rgba(245, 158, 11, .8);
    /* the mode's own (LOBBY_PLAN_V3.md 4.1): headings, and the mode switch's lit button; #lb[data-mode] redefines them */
    --head: #f6d77a; --mode-btn: linear-gradient(#f6d77a, #c99a2e); --mode-ink: #1a1205; --mode-hi: #fbbf24;
    --text: #f4f4f5; --soft: #d6d3d1; --muted: #a8a29e; --dim: #78716c;
    --emerald: #34d399; --emerald-hi: #6ee7b7; --ruby: #f87171;
    --f-display: 'Playfair Display', serif;
    --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-num: 'JetBrains Mono', ui-monospace, monospace;
    --fs-1: .75rem;                                  /* captions, labels, fine print */
    --fs-2: .9375rem;                                /* body */
    --fs-3: 1.125rem;                                 /* card titles */
    --fs-4: 1.5rem;                                   /* section titles */
    --t-fast: 160ms; --t-base: 280ms; --t-slow: 560ms;
    --ease: cubic-bezier(.22, .8, .24, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---- page frame ---- */
.lb-wrap { position: relative; max-width: 1440px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; padding: 16px; }
@media (min-width: 768px) { .lb-wrap { padding: 24px; } }
.lb-wrap [hidden] { display: none !important; }
/* The layout (LOBBY_PLAN.md v2 4.3, step 4; LOBBY_PLAN_V3.md 4, step 4; rearranged 2026-11-03). The markup holds the
   play column (#lb-front = the search, since you were away, the Daily High Roller, Your Games, the club strip and Main
   Events; then the directory) and the people column (#lb-people = your club, the rewards, your road, who's here, private
   tables, the Discord, the poll; #lb-side = the bounties, your race and the floor). One column: #lb-people is
   `display: contents` and `order` gives the phone order - the games first, then the rewards (the phone bar's Rewards item
   scrolls to them), your road, your club, who's here, private tables, the Discord, the poll, the rest. From 1024px two
   columns: #lb-people is one grid item beside the play column spanning rows 1-2 (row 2 is the 1fr track its height goes
   to, never back into row 1), so the directory starts right under Main Events whatever the people column holds; the club
   strip is gone there (the card is in view). */
#lb-front, #lb-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
#lb-people { display: contents; }
#lb-front { order: 1; } #directory { order: 3; } #lb-floor-back { order: 4; } #lb-lounge-badges { order: 5; } #lb-ready { order: 4; } #lb-progress { order: 5; } #lb-club { order: 6; } #lb-social { order: 7; } #lb-private { order: 8; } #lb-discord { order: 9; } #lb-poll { order: 10; } #lb-side { order: 11; }
/* One column (MOBILE_CLEANUP_PLAN.md phase 5): #lb-front's blocks join the page's own order, so rewards waiting to be
   claimed (home.js: #lb-ready.lb-ready-now) come up right under Your Games, above the club strip, Main Events and the
   shelves; with nothing to claim the panel keeps its place after the shelves. */
@media (max-width: 1023px) {
    #lb-front { display: contents; }
    #lb-front > * { order: 1; }
    #lb-front > :is(#lb-club-strip, #lb-events) { order: 2; }
    #lb-ready.lb-ready-now { order: 1; }
}
@media (min-width: 1024px) {
    .lb-wrap { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 27vw, 400px); grid-template-rows: auto 1fr;
        column-gap: 28px; row-gap: 0; align-items: start; }
    #lb-front { grid-column: 1; grid-row: 1; }
    #directory { grid-column: 1; grid-row: 2; margin-top: 28px; min-width: 0; }
    #lb-people { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
    #lb-people > * { order: 0; }                             /* the markup's order inside the column */
    #lb-club-strip { display: none; }
    #lb-club .lb-ch-skel { height: 400px; }
}
/* A search is typed (directory.js): the blocks between the search and the directory stand aside for its matches. */
#lb.lb-searching :is(#lb-lounge, #lb-away, #lb-hr, #lb-resume, #lb-club-strip, #lb-events) { display: none; }
.lb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lb-head.flush { flex-wrap: wrap; margin-bottom: 0; }
.lb-head-txt { min-width: 0; }
.lb-head-act { flex: none; margin-bottom: 6px; }
.lb-title { font-size: var(--fs-4); line-height: 2rem; margin: 0; }
.lb-title.trunc, .lb-strip-title.trunc, .lb-trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-link { font-size: 11px; font-weight: 600; color: var(--amber); transition: color var(--t-fast) var(--ease); }
.lb-link:hover { color: var(--gold-hi); }
.lb-link:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; border-radius: 4px; }
#directory, #lb-ready, #lb-bounties, #lb-club { scroll-margin-top: 96px; }
.lb-pad { padding: 20px; }
.lb-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-note { font-size: 11px; color: var(--dim); margin-top: 2px; }
.lb-note b { color: var(--soft); font-variant-numeric: tabular-nums; }
.lb-desc { font-size: var(--fs-1); color: var(--muted); margin: 4px 0 0; }
.lb-desc.tight { margin-top: 2px; }
.lb-desc b { color: var(--gold-hi); }
.lb-card-h { font-size: 1.25rem; line-height: 1.75rem; margin-top: 8px; }
.lb-card-h.sm { font-size: var(--fs-3); margin-top: 0; }
.lb-tag { font-family: var(--f-text); font-size: .875rem; font-weight: 400; color: var(--dim); }
.lb-cta { margin-top: 20px; }
.lb-cta-top { margin-top: 12px; }
.lb-btn-sm { height: 36px; padding: 0 16px; font-size: 11px; }
.lb-crest svg { width: 26px; height: 26px; }
.lb-btn-md { height: 40px; padding: 0 20px; font-size: var(--fs-1); }

/* ---- skeletons: each one the size of what replaces it ---- */
.lb-fr-skel { height: 52px; }
.lb-rr-skel { height: 42px; }
.lb-fl-skel { height: 52px; }
.lb-bb-skel { height: 452px; border-radius: 12px; }
.lb-road-skel { height: 280px; border-radius: 12px; }
.lb-ch-skel { height: 440px; border-radius: 18px; }
.lb-online-skel { display: inline-block; width: 64px; height: 12px; vertical-align: middle; border-radius: 6px; }
.lb-top3-skel { width: 60%; height: 20px; border-radius: 8px; }

/* Obsidian & Gold private salon. Every figure on this page comes from the API (app/api/routes/lobby.py,
   app/services/lobby*.py); nothing here is decorative data. */
/* `clip`, not `hidden`: it clips the same without making #lb a scroll box, so the directory's chips can stick under the
   top bar (a sticky element sticks to its nearest scroll box). */
#lb { position: relative; min-height: calc(100vh - 4rem); background-color: var(--ink); color: var(--text); font-family: var(--f-text); overflow: hidden; overflow: clip; }
.lb-panel { position: relative; border-radius: 18px; background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.55), inset 0 1px 0 var(--sheen); }
.lb-panel.brushed::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
    background: repeating-linear-gradient(100deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); }
.lb-kicker { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--label); font-weight: 700; }
.lb-h { font-family: var(--f-display); font-weight: 700; color: var(--head); }
/* Directory card: the game name on one line, its size following the card's width (directory.js fitTitles). */
.lb-card { container-type: inline-size; }
.lb-card-title { min-width: 0; margin: 0; font-size: clamp(15px, 7cqi, 19px); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-gold { background: linear-gradient(180deg, #fff3c4, #f2cf6b 40%, #c9962f 70%, #f6d77a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lb-num { font-variant-numeric: tabular-nums; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; letter-spacing: .08em; border-radius: 12px;
    transition: transform var(--t-fast) var(--ease), filter var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); white-space: nowrap; }
.lb-btn:active:not(:disabled) { transform: translateY(1px); }
.lb-btn:disabled { opacity: .45; cursor: not-allowed; }
.lb-btn-gold { color: #1a1206; background: linear-gradient(180deg, #fff1b0, #e2b44a 50%, #a8741c);
    box-shadow: 0 6px 0 #6b4a12, 0 10px 24px rgba(245,158,11,.25); }
.lb-btn-gold:hover:not(:disabled) { filter: brightness(1.08); }
.lb-btn-gold:active:not(:disabled) { box-shadow: 0 3px 0 #6b4a12, 0 6px 14px rgba(245,158,11,.2); transform: translateY(3px); }
.lb-btn-ghost { color: #fde68a; background: linear-gradient(180deg, #24211d, #121110); border: 1px solid rgba(212,175,55,.4); }
.lb-btn-ghost:hover:not(:disabled) { filter: brightness(1.25); }
.lb-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; border: 1px solid rgba(255,255,255,.05); }
.lb-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a8741c, #f2cf6b, #fff1b0);
    box-shadow: 0 0 12px rgba(251,191,36,.5); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.lb-skel { background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)); background-size: 200% 100%;
    animation: lb-skel 1.4s linear infinite; border-radius: 12px; }
@keyframes lb-skel { to { background-position: -200% 0; } }


/* ---- the Daily High Roller's line (#lb-hr) and the rewards' offers: Also today's slim lines (V3 step 4) ---- */
.lb-al { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 44px;
    padding: 6px 8px 6px 8px; border-radius: 12px; background: rgba(18,18,23,.85); border: 1px solid rgba(212,175,55,.2); }
.lb-al.hr { border-color: rgba(168,85,247,.32); background: linear-gradient(90deg, rgba(76,29,149,.28), rgba(18,18,23,.85) 45%); }
.lb-al-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--gold); font-size: 15px;
    border: 1px solid rgba(212,175,55,.3); }
.lb-al-ico svg { width: 20px; height: 20px; overflow: visible; }
.lb-al-txt { min-width: 0; font-size: 12.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lb-al-k { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--label); margin-right: 4px; }
.lb-al.hr .lb-al-k { color: #e9d5ff; }
.lb-al-a { color: #c7d2fe; text-decoration: underline; text-underline-offset: 2px; }
.lb-al-a:hover { color: #e0e7ff; }
.lb-al-t { font-weight: 700; color: var(--gold-hi); margin-right: 4px; }
.lb-al-d { color: var(--muted); }
.lb-al-d b { color: var(--gold-hi); font-weight: 700; }
.lb-al-go { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 9px; font-size: 10.5px; font-weight: 800;
    letter-spacing: .08em; color: var(--gold-hi); background: linear-gradient(180deg, #24211d, #121110); border: 1px solid rgba(212,175,55,.4);
    white-space: nowrap; transition: filter var(--t-fast) var(--ease); }
.lb-al-go:hover { filter: brightness(1.25); }
.lb-al-x { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: var(--muted);
    border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.3); }
.lb-al-x:hover { color: var(--gold-hi); border-color: rgba(251,191,36,.5); }
.lb-al-x:focus-visible, .lb-al-go:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
@media (max-width: 639px) {
    .lb-al { grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 8px; }
    .lb-al-ico { width: 26px; height: 26px; }
    .lb-al-d { display: none; }
    /* The Daily High Roller's kicker on a line of its own, so the game's full name fits beside the button. */
    .lb-al.hr .lb-al-k { display: block; line-height: 1.4; }
    .lb-al.hr .lb-al-t { display: block; overflow: hidden; text-overflow: ellipsis; }
}

/* ---- Since you were away (v2 4.5, step 5): up to three slim lines above the hero, dismissed for good ---- */
#lb-away { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 10px 14px; border-radius: 14px;
    background: linear-gradient(90deg, rgba(212,175,55,.08), rgba(18,18,23,.85) 55%); border: 1px solid var(--line); }
#lb-away[hidden] { display: none; }
.lb-aw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lb-aw-title { margin: 0; font-family: var(--f-display); font-size: var(--fs-2); font-weight: 700; color: var(--gold-hi); }
.lb-aw-lines { display: flex; flex-direction: column; gap: 4px; }
.lb-aw { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 36px; }
.lb-aw .lb-al-ico { width: 26px; height: 26px; }
.lb-aw-t { min-width: 0; font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }
.lb-aw-t b { color: var(--gold-hi); font-weight: 700; }
@media (max-width: 639px) {
    .lb-aw-t { font-size: 12.5px; }
}

/* ---- hover footage (step 6): a muted loop of real play over the card's thumb, desktop pointers only ---- */
.lb-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none; }
.lb-film.on { opacity: 1; }
.lb-thumb.filming .ico { opacity: 0; transform: scale(.9); }

/* ---- the Resume strip (LOBBY_PLAN.md v2 4.1; data: /api/lobby/summary `resume`, app/services/lobby_home.py): up to three
   compact rows under the hero, icon | what | value over the button; one row wide from 1024px ---- */
.lb-strip-title { font-size: var(--fs-3); line-height: 1.5rem; margin: 0; }
/* The live strip: unfinished play (a bet riding, a held seat, a run), one full-width line above the rows. */
#lb-resume-live { margin-bottom: 8px; }
.lb-ls { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
    min-height: 56px; padding: 8px 12px; border-radius: 14px; text-decoration: none; color: inherit;
    background: linear-gradient(90deg, rgba(16,185,129,.14), rgba(18,18,23,.9) 55%); border: 1px solid rgba(52,211,153,.45); }
.lb-ls:hover, .lb-ls:focus-visible { border-color: rgba(251,191,36,.7); outline: none; }
.lb-ls-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #f2cf6b; border: 1px solid rgba(212,175,55,.3); }
.lb-ls-ico svg { width: 26px; height: 26px; overflow: visible; }
.lb-ls-txt { min-width: 0; font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-ls-k { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--emerald-hi); }
.lb-ls-k i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: lb-ls-pulse 1.8s ease-out infinite; }
@keyframes lb-ls-pulse { 70% { box-shadow: 0 0 0 7px transparent; } to { box-shadow: 0 0 0 0 transparent; } }
.lb-ls-t { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 15px; color: #f6d77a; }
.lb-ls-d { color: #a8a29e; }
.lb-ls-v { font-size: 12px; color: #a8a29e; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-ls-v b { color: #fde68a; font-weight: 700; }
.lb-ls-go { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 9px; font-size: 11px; font-weight: 800;
    letter-spacing: .08em; color: #1a1206; background: linear-gradient(180deg, #fff1b0, #e2b44a 50%, #a8741c); white-space: nowrap; }
@media (max-width: 767px) {
    .lb-ls { grid-template-columns: 36px minmax(0, 1fr) auto; }
    /* the kicker over the game's name (it cut the name to "Your r…"), as the rows under it */
    .lb-ls-k { display: flex; margin-right: 0; line-height: 1.5; }
    .lb-ls-t { display: block; overflow: hidden; text-overflow: ellipsis; }
    .lb-ls-ico { width: 36px; height: 36px; }
    .lb-ls-v { display: none; }
    .lb-ls-d { display: none; }
}
html.calm-motion .lb-ls-k i { animation: none; }
#lb-resume-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 1280px) { #lb-resume-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* the play column's width */
.lb-rs { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
    min-height: 68px; padding: 11px 12px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, var(--card), var(--card-2));
    border: 1px solid var(--line-soft); transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.lb-rs:hover, .lb-rs:focus-visible { border-color: rgba(251,191,36,.7); transform: translateY(-1px); outline: none; }
.lb-rs.live { border-color: rgba(52,211,153,.4); }
.lb-rs.live::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 0% 0%, rgba(52,211,153,.1), transparent 55%); }
.lb-rs-ico { position: relative; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #f2cf6b;
    border: 1px solid rgba(212,175,55,.25); }
.lb-rs-ico svg { width: 26px; height: 26px; overflow: visible; }
.lb-rs-head { position: relative; min-width: 0; }
.lb-rs-head > span { display: block; }
.lb-rs-k { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: rgba(245,158,11,.8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-rs.live .lb-rs-k { color: #6ee7b7; }
.lb-rs-t { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 15px; line-height: 1.3; color: #f6d77a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-rs-d { font-size: 11.5px; color: #a8a29e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-rs-foot { position: relative; grid-column: 3; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 0; }
.lb-rs-v { max-width: 9rem; font-size: 11px; color: #a8a29e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lb-rs-v b { color: #fde68a; font-weight: 700; }
.lb-rs-go { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 9px; font-size: 10.5px;
    font-weight: 800; letter-spacing: .08em; color: #fde68a; background: linear-gradient(180deg, #24211d, #121110); border: 1px solid rgba(212,175,55,.4); }
.lb-rs.live .lb-rs-go, .lb-rs:hover .lb-rs-go { color: #1a1206; border-color: transparent; background: linear-gradient(180deg, #fff1b0, #e2b44a 50%, #a8741c); }
.lb-rs-skel { min-height: 68px; border-radius: 14px; }

/* ---- the rewards: one panel, the lobby's only rewards (LOBBY_PLAN.md 4.2, V3 4.2) ---- */
#lb-ready { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.lb-ready-title { margin: 0; font-size: var(--fs-3); }
.lb-rd-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.lb-rd { flex: 1 1 140px; min-width: 0; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 12px 6px 8px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); text-align: left; transition: border-color var(--t-fast) var(--ease), filter var(--t-fast) var(--ease); }
a.lb-rd:hover, button.lb-rd:hover:not(:disabled) { border-color: rgba(251,191,36,.6); filter: brightness(1.1); }
.lb-rd:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.lb-rd-txt { min-width: 0; }
.lb-rd svg { width: 24px; height: 24px; flex: none; color: #78716c; }
.lb-rd .k { display: block; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: #78716c; }
.lb-rd .v { display: block; font-size: 13px; font-weight: 700; color: #d6d3d1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-variant-numeric: tabular-nums; }
.lb-rd.ready { border-color: rgba(251,191,36,.55); background: linear-gradient(180deg, rgba(251,191,36,.13), rgba(251,191,36,.04)); }
.lb-rd.ready svg { color: #f2cf6b; }
.lb-rd.ready .k { color: rgba(245,158,11,.9); }
.lb-rd.ready .v { color: #fde68a; }
.lb-rd.locked .v { font-weight: 600; color: #a8a29e; }
.lb-rd-skel { flex: 1 1 140px; height: 44px; border-radius: 12px; }
.lb-claim-all { width: 100%; height: 44px; padding: 0 18px; font-size: 12px; }
.lb-ready-quiet { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; font-size: 13px; color: #a8a29e; }
.lb-ready-quiet b { color: #fde68a; font-variant-numeric: tabular-nums; }
.lb-ready-quiet a { color: #fcd34d; font-weight: 600; }
/* The offers (a new Collection): Also today's lines, wrapped so the detail and its link stay. */
.lb-rw-offers { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--hair); }
.lb-rw-offers .lb-al { align-items: start; }
.lb-rw-offers .lb-al-txt { white-space: normal; line-height: 1.45; }
.lb-rw-offers .lb-al-d { display: block; }
/* The phone bar's Rewards count (home.js; the item scrolls to the panel on the lobby). */
#lr-phonebar [data-pb="rewards"] .pb-badge { background: #f2cf6b; color: #1a1205; }

/* ---- the Player Council's poll card (poll.js; the card itself is council_poll.css, drawn flat inside the panel) ---- */
#lb-poll { padding: 16px; }
#lb-poll .pc-card { padding: 0; background: none; border: 0; box-shadow: none; }
#lb-poll .pc-q { font-size: 15px; }
#lb-poll .pc-opts { margin: 10px 0; }
#lb-poll .pc-opt, #lb-poll .pc-bar { background: var(--tile); }

.lb-mult { padding: 1px 8px; border-radius: 999px; font-weight: 800; font-size: 11px; }
.lb-mult.t1 { background: rgba(16,185,129,.14); color: #6ee7b7; border: 1px solid rgba(16,185,129,.35); }
.lb-mult.t2 { background: rgba(251,191,36,.14); color: #fde68a; border: 1px solid rgba(251,191,36,.45); }
.lb-mult.t3 { background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; box-shadow: 0 0 12px rgba(239,68,68,.45); }

/* ---- directory: the chips (LOBBY_PLAN_V3.md 4.6) ---- */
.lb-chip { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #f4f4f5;
    background: var(--panel); border: 1px solid rgba(255,255,255,.12); white-space: nowrap;
    transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.lb-chip:hover { color: #fde68a; border-color: rgba(212,175,55,.5); }
.lb-chip:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.lb-chip.on { color: #1a1206; font-weight: 800; background: linear-gradient(180deg, #f6d77a, #c99a2e); border-color: transparent; }
.lb-chip .n { opacity: .6; margin-left: 5px; font-weight: 600; }
.lb-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--tile);
    border: 1px solid var(--line-soft); box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.lb-card:hover, .lb-card:focus-within { border-color: rgba(251,191,36,.72); transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(251,191,36,.16), 0 24px 50px rgba(0,0,0,.7); }
/* A directory card out of view is not rendered (content-visibility; it holds its height, remembered once seen; never a
   width, which would widen a one-column grid): a frame that
   repaints anything (a miniature, a symbol's twinkle) then has two dozen fewer cards to paint and layerize. On screen
   nothing changes: the card already clips (overflow: hidden) and contains its layout (container-type). */
#lb-games .lb-card { content-visibility: auto; contain-intrinsic-block-size: auto 290px; }
/* The whole card is one link (stretched over it); the live line's own buttons (Sit now, Call) sit above it. */
.lb-card-link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.lb-card-link:focus-visible { outline: 2px solid #fbbf24; outline-offset: -2px; }
/* Not Tailwind's flex-1: base.html gives every .flex-1 z-index 10, which would lift the body over the card link. */
.lb-card-body { flex: 1 1 auto; min-width: 0; }
.lb-thumb { position: relative; height: 138px; display: grid; place-items: center; overflow: hidden; }
.lb-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15,15,19,.95)); }
.lb-thumb .ico { position: relative; z-index: 1; width: 78px; height: 78px; color: #f2cf6b; transition: transform .35s cubic-bezier(.2,.8,.2,1);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.lb-thumb .ico svg { width: 100%; height: 100%; overflow: visible; }
.lb-card:hover .lb-thumb .ico { transform: scale(1.1) translateY(-3px); }
.lb-pill { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
    font-size: 10.5px; font-weight: 700; background: rgba(10,11,14,.8); border: 1px solid rgba(255,255,255,.12); color: #d6d3d1; }
.lb-pill i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.lb-pill.idle i { background: #78716c; box-shadow: none; }
html.calm-motion .lb-live.wait { animation: none; }
/* Daily High Roller crown (app/services/high_roller.py): gold on royal purple, on the pill and the card. */
.lb-pill.hr { color: #fde68a; font-weight: 800; letter-spacing: .04em; border-color: rgba(251,191,36,.7);
    background: linear-gradient(110deg, rgba(59,7,100,.95), rgba(109,40,217,.92) 55%, rgba(59,7,100,.95));
    box-shadow: 0 0 14px rgba(168,85,247,.55), inset 0 0 0 1px rgba(253,230,138,.15); }
.lb-pill.hr b { filter: drop-shadow(0 0 5px rgba(251,191,36,.9)); }
.lb-card.hr-card { border-color: rgba(251,191,36,.55); box-shadow: 0 0 0 1px rgba(168,85,247,.35), 0 18px 40px rgba(76,29,149,.35); }
.lb-card.hr-card .lb-thumb::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(168,85,247,.35), transparent 60%); }
.lb-hr-perk { margin-top: 8px; display: inline-flex; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #e9d5ff; }
.lb-hr-perk span { padding: 1px 7px; border-radius: 999px; background: rgba(76,29,149,.35); border: 1px solid rgba(192,132,252,.4); }
/* ---- live line (LOBBY_PLAN.md 4.3: /api/lobby/live, app/services/lobby_live.py): one fixed-height row per card, so
   a card never changes size when its data arrives or moves. */
.lb-live { margin-top: 10px; height: 52px; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0;
    font-size: 11.5px; color: #a8a29e; }
.lb-live.wait { border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03));
    background-size: 200% 100%; animation: lb-skel 1.4s linear infinite; }
.lb-live b { color: #fde68a; font-weight: 700; }
.lb-lv-row { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.lb-lv-row > .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lb-lv-fill { flex: 1 1 auto; }
/* The Grand Session is the night's event: its name is gold leaf wherever the lobby says it (Bingo's live line). */
.lb-grand { background: linear-gradient(180deg, #fff3c4, #f2cf6b 40%, #c9962f 70%, #f6d77a); -webkit-background-clip: text; background-clip: text;
    color: transparent; filter: drop-shadow(0 0 8px rgba(251, 191, 36, .4)); font-weight: 800; }
.lb-lv-k { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #78716c; flex: none; }
/* ...and on the Bingo card's label it is a lit gold pill, so the night's event never reads as one more grey caption. */
.lb-lv-k.lb-grand { padding: 2px 7px; border-radius: 999px; font-size: 10px; color: #fde68a; -webkit-text-fill-color: #fde68a;
    background: linear-gradient(180deg, rgba(146, 98, 18, .55), rgba(84, 52, 8, .55)); -webkit-background-clip: border-box; background-clip: border-box;
    border: 1px solid rgba(242, 207, 107, .7); filter: none; text-shadow: 0 0 8px rgba(251, 191, 36, .6); box-shadow: 0 0 10px rgba(251, 191, 36, .25); }
.lb-act { position: relative; z-index: 4; flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 8px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #1a1206; background: linear-gradient(180deg, #fff1b0, #e2b44a 50%, #a8741c); }
.lb-act:hover { filter: brightness(1.08); }
.lb-act.ghost { color: #fde68a; background: linear-gradient(180deg, #24211d, #121110); border: 1px solid rgba(212,175,55,.4); }
.lb-act:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.lb-act.busy { opacity: .55; pointer-events: none; }   /* a Coinflip CALL in flight */
/* A touch screen (MOBILE_CLEANUP_PLAN.md phase 5): the cards' buttons, the cards' head links and the boards' switches are
   targets of 30px or more (SIT NOW was 24px, "Open social ›" a 16px line, the race's tabs 26px). */
@media (hover: none) {
    .lb-act { height: 32px; padding: 0 12px; }
    .lb-head-act .lb-link, .lb-race-foot .lb-link, a.lb-link.lb-dn-form { display: inline-flex; align-items: center; min-height: 32px; }
    .lb-seg button { min-height: 32px; padding: 0 12px; }
    .lb-al-x { width: 32px; height: 32px; }
}
.lb-seats { display: inline-flex; gap: 3px; flex: none; }
.lb-seats i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(52,211,153,.6); }
.lb-seats i.on { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.6); border-color: transparent; }
.lb-pk { flex: none; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: #d6d3d1; }
.lb-pocket { flex: none; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; color: #fff;
    font-variant-numeric: tabular-nums; border: 1px solid rgba(255,255,255,.18); }
.lb-pocket.RED, .lb-pocket.red { background: #b91c1c; } .lb-pocket.BLACK, .lb-pocket.black { background: #1c1917; }
.lb-pocket.GREEN, .lb-pocket.green { background: #047857; } .lb-pocket.BLUE { background: #1d4ed8; }
.lb-pocket.fw-n { background: #1f8a8a; }   /* Ferris: a number gondola (live.js) */
.lb-pocket:first-child { box-shadow: 0 0 0 2px rgba(251,191,36,.7); }
.lb-cr { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-cr svg { flex: none; width: 64px; height: 30px; overflow: visible; }
.lb-cr-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-cr-m { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 20px; font-weight: 800; color: #fde68a; font-variant-numeric: tabular-nums; }
.lb-cr[data-phase="FLYING"] .lb-cr-m { color: #6ee7b7; }
.lb-cr[data-phase="CRASHED"] .lb-cr-m { color: #f87171; }
.lb-cp { flex: none; padding: 0 5px; border-radius: 6px; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; color: #a8a29e; background: rgba(255,255,255,.04); }
.lb-cp.g { color: #6ee7b7; } .lb-cp.h { color: #fde68a; background: rgba(251,191,36,.12); }
.lb-hitc { flex: none; display: inline-flex; }
.lb-stakes { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px; font-size: 11px; color: #a8a29e;
    border-top: 1px solid rgba(212,175,55,.14); background: rgba(0,0,0,.3); }
.lb-stakes b { color: #fde68a; font-weight: 700; }

/* ---- directory bar: search + tabs (LOBBY_PLAN.md 4.3, step 4) ---- */
.lb-dir-bar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 420px; }
.lb-search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: #78716c; pointer-events: none; }
.lb-search input { width: 100%; height: 38px; padding: 0 34px 0 33px; border-radius: 999px; font-size: 13px; color: #f4f4f5;
    background: rgba(0,0,0,.35); border: 1px solid rgba(120,113,108,.4); outline: none; transition: border-color .15s; }
.lb-search input::placeholder { color: #78716c; }
.lb-search input:focus { border-color: rgba(251,191,36,.7); box-shadow: 0 0 0 3px rgba(251,191,36,.12); }
.lb-search input::-webkit-search-cancel-button { display: none; }
.lb-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); min-width: 18px; padding: 0 5px; border-radius: 5px;
    font: 600 10px/16px 'JetBrains Mono', ui-monospace, monospace; text-align: center; color: #a8a29e; border: 1px solid rgba(255,255,255,.14); }
.lb-search input:focus ~ kbd, .lb-search input:not(:placeholder-shown) ~ kbd { display: none; }
.lb-search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; color: #a8a29e; font-size: 15px; }
.lb-search-clear[hidden] { display: none; }
.lb-search-clear:hover { color: #fde68a; background: rgba(255,255,255,.06); }
#lb-games-empty { padding: 28px 16px; text-align: center; font-size: 13px; color: #a8a29e; border-radius: 16px; border: 1px dashed rgba(212,175,55,.25); }
#lb-games-empty b { color: #fde68a; }
@media (max-width: 639px) {
    .lb-search { max-width: none; }
    .lb-search input { height: 44px; }
    .lb-search kbd { display: none; }
}
/* ---- the mode switch (LOBBY_PLAN_V3.md 4.1, step 5; static/js/lobby/modes.js): Casino · Ranked · Lounge as real links
   beside the search, the page's own mode lit in its palette. Hidden until two modes have games. A phone: a row of equal
   44px buttons above the search, names only; from 640px each adds its second line ("36 games · chips"). ---- */
.lb-modes { flex: none; display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); }
.lb-mode-btn { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 5px 18px; border-radius: 10px;
    color: var(--text); text-decoration: none; transition: background var(--t-fast) var(--ease); }
.lb-mode-btn b { font-size: 14px; font-weight: 700; line-height: 1.2; }
.lb-mode-btn span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.lb-mode-btn:hover { background: rgba(255, 255, 255, .05); }
.lb-mode-btn:focus-visible { outline: 2px solid var(--mode-hi); outline-offset: 2px; }
.lb-mode-btn[aria-current="page"] { background: var(--mode-btn); color: var(--mode-ink); }
.lb-mode-btn[aria-current="page"] b { font-weight: 800; }
.lb-mode-btn[aria-current="page"] span { color: inherit; opacity: .78; font-weight: 600; }
@media (max-width: 639px) {
    #lb-find { flex-wrap: wrap; }
    .lb-modes { flex: 1 1 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
    .lb-mode-btn { align-items: center; padding: 0 8px; }
    .lb-mode-btn span { display: none; }
}
/* A card or a Main Event's line from another mode, in a search or the Favourites (directory.js): that mode's tag. */
.lb-card-body .lb-mode { display: inline-block; margin-top: 2px; }
.lb-me-hit:has(.lb-mode) { grid-template-columns: auto auto auto minmax(0, 1fr) auto; }
.lb-me-hit .lb-mode { align-self: center; }
/* ---- favourite star: above the card link, like the live line's buttons ---- */
.lb-fav { position: absolute; top: 8px; left: 8px; z-index: 4; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    color: #a8a29e; background: rgba(10,11,14,.72); border: 1px solid rgba(255,255,255,.12); transition: color .15s, border-color .15s; }
.lb-fav svg { width: 15px; height: 15px; }
.lb-fav:hover { color: #fde68a; border-color: rgba(251,191,36,.6); }
.lb-fav:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.lb-fav.on { color: #f6d77a; border-color: rgba(251,191,36,.7); background: rgba(40,28,6,.85); }
.lb-fav.on svg { fill: currentColor; filter: drop-shadow(0 0 4px rgba(251,191,36,.7)); }
.lb-fav.pop { animation: lb-fav-pop .32s cubic-bezier(.2,.8,.2,1); }
@keyframes lb-fav-pop { 50% { transform: scale(1.25); } }
html.calm-motion .lb-fav.pop { animation: none; }
/* ---- quest hint: a strip at the foot of the thumb (a fixed box, so a card never changes size when quests load) ---- */
.lb-qhint { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 2; display: flex; align-items: center; gap: 7px; height: 22px;
    padding: 0 8px; border-radius: 7px; overflow: hidden; font-size: 10.5px; color: #e7e5e4; background: rgba(10,11,14,.82);
    border: 1px solid rgba(212,175,55,.28); }
.lb-qhint .k { flex: none; font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: rgba(245,158,11,.9); }
.lb-qhint .t { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-qhint .n { flex: none; font-weight: 700; color: #fde68a; font-variant-numeric: tabular-nums; }
.lb-qhint > i { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p); background: linear-gradient(90deg, #a8741c, #f2cf6b); }
.lb-qhint.ready { border-color: rgba(251,191,36,.7); background: rgba(40,28,6,.9); }
.lb-qhint.ready .n { color: #6ee7b7; }

/* ---- club + quests ---- */
.lb-crest { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--gold);
    background: linear-gradient(135deg, #3a2a0c, #09090b);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px rgba(0,0,0,.5); border: 1px solid rgba(255,236,179,.35); }
.lb-rw { white-space: nowrap; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.05); color: #d6d3d1; }
.lb-rw.gold { color: var(--gold-hi); background: rgba(251,191,36,.1); }
.lb-rw.ticket { color: #f5d0fe; background: rgba(217,70,239,.12); }

/* ---- who's here (LOBBY_PLAN.md v2 4.3, step 4): compact crests by default, the rows on a tap; Sit with me ---- */
#lb-social { padding: 16px; }
.lb-social-acts { display: flex; align-items: center; gap: 14px; }
.lb-pcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; margin-top: 12px; }
.lb-pcs-skel { height: 82px; margin-top: 12px; }
.lb-pc { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 8px 4px 7px; border-radius: 12px;
    background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06);
    transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.lb-pc:hover { border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.05); }
.lb-pc:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.lb-pc-crest { display: grid; place-items: center; width: 40px; height: 40px; }
.lb-pc-init { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--ink); background: var(--gold); }
.lb-pc-nm { max-width: 100%; font-size: 11.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pc-at { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.lb-pc-at::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 6px rgba(52,211,153,.7); }
.lb-pc-at.idle::before { background: var(--muted); box-shadow: none; }
.lb-pc-more .lb-pc-crest { width: 36px; height: 36px; margin: 2px; border-radius: 50%; font-size: 12px; font-weight: 800; color: var(--gold-hi);
    border: 1px dashed rgba(212,175,55,.5); }
#lb-social-list > .lb-fr:first-child, #lb-social-list > .lb-people-empty:first-child { margin-top: 12px; }
#lb-wait-slot > .lb-wait { margin: 12px 0 0; }
/* Sit with me: a small menu under the button (fixed, moved by people.js) */
#lb-sw { position: fixed; z-index: 85; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; font-family: var(--f-text);
    background: linear-gradient(180deg, #17161b, #0c0c10); border: 1px solid rgba(212,175,55,.45); box-shadow: 0 18px 40px rgba(0,0,0,.65); }
#lb-sw[hidden] { display: none; }
.lb-sw-h { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.lb-sw-h b { color: var(--gold-hi); }
.lb-sw-go { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 10px; text-align: left;
    color: var(--text); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); transition: border-color var(--t-fast) var(--ease); }
.lb-sw-go:hover, .lb-sw-go:focus-visible { border-color: rgba(251,191,36,.7); outline: none; }
.lb-sw-go:disabled { opacity: .5; }
.lb-sw-ico { flex: none; width: 26px; height: 26px; color: var(--gold); }
.lb-sw-ico svg { width: 100%; height: 100%; overflow: visible; }
.lb-sw-txt { min-width: 0; display: flex; flex-direction: column; }
.lb-sw-txt b { font-size: 13px; color: var(--gold-hi); }
.lb-sw-txt span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-sw-x { align-self: flex-end; padding: 4px 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.lb-sw-x:hover, .lb-sw-x:focus-visible { color: var(--gold-hi); outline: none; }

/* ---- Your race (4.7) ---- */
.lb-wait { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px;
    border: 1px solid rgba(251,191,36,.6); background: linear-gradient(100deg, rgba(251,191,36,.14), rgba(251,191,36,.03) 70%); }
.lb-wait-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18), 0 0 12px #34d399; }
.lb-wait-txt { flex: 1 1 auto; min-width: 0; }
.lb-wait-txt .k { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: rgba(245,158,11,.95); }
.lb-wait-txt .t { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 15px; color: #fde68a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-wait-txt .d { font-size: 11.5px; color: #a8a29e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lb-wait .lb-act { height: 32px; padding: 0 14px; font-size: 11px; }
@media (max-width: 639px) {
    .lb-wait { flex-wrap: wrap; }
    .lb-wait .lb-act { flex: 1 1 100%; justify-content: center; }
}
#lb-social-list { display: flex; flex-direction: column; gap: 6px; }
.lb-fr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px;
    border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); }
.lb-fr-who { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.lb-fr-who .np { cursor: pointer; }
.lb-fr-loc { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font-size: 11px; color: #a8a29e; white-space: nowrap; overflow: hidden; }
.lb-fr-loc > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lb-fr-loc i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.7); }
.lb-fr-loc i.idle { background: #a8a29e; box-shadow: none; }
.lb-rel { flex: none; padding: 0 6px; border-radius: 6px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800;
    color: #c4b5fd; background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.3); }
.lb-rel.club { color: #fcd34d; background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.3); }
.lb-fr .lb-act { height: 24px; justify-content: center; }
.lb-fr-acts { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.lb-fr.hit { border-color: rgba(251,191,36,.7); background: rgba(251,191,36,.07); transition: border-color var(--t-slow) var(--ease), background var(--t-slow) var(--ease); }
/* Who's here: the mode a person is playing in (V3 4.7; shown only while the list spans more than one mode). */
.lb-mode { flex: none; padding: 1px 6px; border-radius: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--mc); border: 1px solid color-mix(in srgb, var(--mc) 55%, transparent); }
.lb-mode { --mc: #f2cf6b; } .lb-mode[data-mode="ranked"] { --mc: #f87171; } .lb-mode[data-mode="lounge"] { --mc: #93c5fd; }
.lb-pc .lb-mode { margin-top: 2px; }
.lb-people-empty { padding: 16px; border-radius: 12px; border: 1px dashed rgba(212,175,55,.25); font-size: 13px; line-height: 1.55; color: #a8a29e; }
.lb-people-empty b { color: #fde68a; }
.lb-people-empty a { color: #fcd34d; font-weight: 600; }
.lb-more { margin-top: 8px; font-size: 12px; font-weight: 600; color: #fcd34d; }
.lb-more:hover { color: #fde68a; }
.lb-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(120,113,108,.35); }
.lb-seg button { padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #a8a29e; white-space: nowrap; }
.lb-seg button:hover { color: #fde68a; }
.lb-seg button[aria-pressed="true"] { color: #1a1206; background: linear-gradient(180deg, #fff1b0, #e2b44a 55%, #a8741c); }
.lb-top3 { display: flex; flex-wrap: wrap; gap: 6px 14px; min-height: 20px; margin: 12px 0; font-size: 11.5px; color: #a8a29e; }
.lb-top3 > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; cursor: pointer; }
.lb-top3 .p { font-weight: 800; color: rgba(245,158,11,.9); }
.lb-top3 .nm { color: #e7e5e4; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-top3 b { color: #fde68a; font-variant-numeric: tabular-nums; }
#lb-race-list { display: flex; flex-direction: column; gap: 4px; }
.lb-rr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 42px; padding: 6px 10px;
    border-radius: 10px; border: 1px solid transparent; cursor: pointer; }
.lb-rr:hover { background: rgba(255,255,255,.03); }
.lb-rr:focus-visible { outline: 2px solid #fbbf24; outline-offset: -2px; }
.lb-rr .rk { font-size: 12px; font-weight: 800; color: #78716c; font-variant-numeric: tabular-nums; text-align: right; }
.lb-rr .val { font-size: 12.5px; font-weight: 700; color: #d6d3d1; font-variant-numeric: tabular-nums; }
.lb-rr.me { border-color: rgba(251,191,36,.6); background: linear-gradient(90deg, rgba(251,191,36,.12), rgba(251,191,36,.03)); }
.lb-rr.me .rk, .lb-rr.me .val { color: #fde68a; }
.lb-race-gap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lb-race-gap:empty { display: none; }
.lb-race-gap > span { padding: 5px 10px; border-radius: 10px; font-size: 11.5px; color: #d6d3d1; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.lb-race-gap b { color: #fde68a; font-variant-numeric: tabular-nums; }
.lb-race-gap .in { border-color: rgba(52,211,153,.35); color: #a7f3d0; }

/* ---- particles + toast ---- */
#lb-fx { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.lb-p { position: absolute; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2); border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff8d6, #f2cf6b 45%, #a8741c); box-shadow: 0 0 8px rgba(251,191,36,.8);
    animation: lb-p var(--t) cubic-bezier(.15,.7,.3,1) forwards; }
.lb-p.spark { background: #fff3c4; box-shadow: 0 0 10px #fbbf24, 0 0 20px rgba(251,191,36,.6); }
@keyframes lb-p { 0% { transform: translate(0,0) scale(1); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
#lb-toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: all .25s;
    padding: 11px 18px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #fde68a; background: rgba(20,14,6,.96); border: 1px solid rgba(212,175,55,.5);
    box-shadow: 0 16px 40px rgba(0,0,0,.6); }
#lb-toast.show { opacity: 1; transform: translate(-50%, 0); }
#lb-toast.err { color: #fecaca; border-color: rgba(239,68,68,.55); }

/* ---- the floor (LOBBY_PLAN.md v2 4.4, floor.js): the latest hits, newest first, updated in place. Nothing scrolls on
   its own; a hit that arrives slides in at the top. Two columns from 1024 px; phones keep the first five. ---- */
.lb-kicker.live { display: inline-flex; align-items: center; gap: 8px; color: var(--emerald-hi); }
.lb-ping { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.lb-ping::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--emerald); opacity: .6;
    animation: lb-ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes lb-ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.lb-floor-online { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
#lb-floor-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 14px; }
@media (min-width: 640px) and (max-width: 1023px) { #lb-floor-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; } }
@media (max-width: 639px) { #lb-floor-list > :nth-child(n+6) { display: none; } }
.lb-fl { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 52px; padding: 7px 10px;
    border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06);
    transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.lb-fl:hover { border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.04); }
.lb-fl:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.lb-fl.new { animation: lb-fl-in var(--t-slow) var(--ease) both; }
@keyframes lb-fl-in { from { opacity: 0; transform: translateY(-8px); } }
.lb-fl-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--ink); }
.lb-fl-who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lb-fl-nm { font-size: 13px; font-weight: 600; color: #e7e5e4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-fl-g { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.lb-fl-gi { flex: none; width: 15px; height: 15px; color: var(--gold); }
.lb-fl-gi svg { width: 100%; height: 100%; }
.lb-fl-amt { font-size: 13px; font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; text-align: right; }
/* A friend's or clubmate's moment (lobby_feed.py): their crest, a cool tint so the eye finds the people first. */
.lb-fl-mo { border-color: rgba(125,211,252,.22); background: linear-gradient(90deg, rgba(56,189,248,.07), rgba(255,255,255,.02) 60%); }
.lb-fl-crest { width: 30px; height: 30px; display: grid; place-items: center; }
.lb-fl-nm b { color: var(--gold-hi); font-weight: 700; }
.lb-fl-nm .lb-rel { margin-left: 6px; vertical-align: 1px; }
.lb-fl-tag { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.lb-floor-empty { grid-column: 1 / -1; padding: 16px; border-radius: 12px; border: 1px dashed rgba(212,175,55,.25); font-size: 13px; color: var(--muted); }

/* ---- the directory: chips, shelves, a chip's grid and the cards ---- */
/* The chips stick under the fixed top bar (64px) while the shelves scroll; one line that scrolls sideways when it is
   longer than the column (a phone). */
#lb-chips { position: sticky; top: 64px; z-index: 6; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px;
    padding: 10px 0; background: color-mix(in srgb, var(--ink) 94%, transparent); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
#lb-chips::-webkit-scrollbar { display: none; }
/* A phone's fixed chrome (top bar + bottom bar) already takes ~16% of the height: the chips scroll with the page there
   (MOBILE_CLEANUP_PLAN.md phase 2, at most 18%); the bottom bar's Games opens the directory. */
@media (max-width: 767px) { #lb-chips { position: static; margin-inline: -16px; padding-inline: 16px; } }
/* A chip's grid (and a search's matches, the Favourites). */
.lb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) { .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .lb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* the play column's width */
#lb-games.shelves { display: flex; flex-direction: column; gap: 26px; }
/* A shelf: its heading row (name, the line under it, See all, the ‹ › buttons on a desktop) and one row of cards that
   scrolls sideways. Cards are 236px on a desktop and 196px on a phone (wide enough for their two lines, MOBILE_CLEANUP_PLAN.md
   phase 5: at 150px "A seat is open right now" was cut), so the last one in view is cut: there is more. */
.lb-shelf { min-width: 0; scroll-margin-top: 132px; }
.lb-shelf-head { display: flex; align-items: baseline; gap: 12px; min-width: 0; margin-bottom: 10px; }
.lb-shelf-title { margin: 0; flex: none; font-size: 22px; line-height: 1.2; }
.lb-shelf-sub { min-width: 0; font-size: 13px; color: #a8a29e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-shelf-all { flex: none; margin-left: auto; font-size: 13px; font-weight: 700; }
.lb-shelf-nav { flex: none; display: flex; gap: 6px; align-self: center; }
.lb-shelf-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; color: #fde68a;
    background: var(--panel); border: 1px solid rgba(242,207,107,.4); transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.lb-shelf-btn:hover:not(:disabled) { border-color: rgba(251,191,36,.8); }
.lb-shelf-btn:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.lb-shelf-btn:disabled { color: #57534e; border-color: rgba(255,255,255,.12); cursor: default; }
.lb-shelf.fits .lb-shelf-nav { display: none; }
.lb-shelf:not(:has(.lb-shelf-all)) .lb-shelf-nav { margin-left: auto; }
.lb-shelf-row { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 6px 2px 10px; margin: -6px -2px -10px; scroll-snap-type: x proximity; }
.lb-shelf-row::-webkit-scrollbar { display: none; }
/* More to the right (directory.js shelfButtons): the row fades out at its edge, so the cut card reads as "there is more". */
.lb-shelf.more .lb-shelf-row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.lb-shelf-row > .lb-card { flex: 0 0 236px; scroll-snap-align: start; }
@media (max-width: 767px) {
    .lb-shelf-title { font-size: 18px; }
    .lb-shelf-sub, .lb-shelf-nav { display: none; }
    .lb-shelf-all { font-size: 12px; padding: 8px 0; }
    .lb-shelf-head { margin-bottom: 4px; }
    /* the row runs to the screen's edges, its first card on the page's gutter */
    .lb-shelf-row { gap: 10px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; }
    .lb-shelf-row > .lb-card { flex-basis: 196px; }
}
.lb-card-body { padding: 4px 16px 14px; }
/* A phone shelf's 196px card: a shorter thumb, a tighter body, the stakes as one line (the minimum only). */
@media (max-width: 767px) {
    .lb-shelf-row .lb-thumb { height: 104px; }
    .lb-shelf-row .lb-card-body { padding: 4px 10px 10px; }
    .lb-shelf-row .lb-stakes { padding: 7px 10px; }
    .lb-shelf-row .lb-stakes > span + span { display: none; }
}
/* A chip's centrepiece (directory.js FEATURED: Ferris on Draws & Shows): two columns wide where the grid has two or more,
   with a taller thumb for its wheel; the fair's teal edge. */
@media (min-width: 640px) { .lb-grid .lb-card.featured { grid-column: span 2; } .lb-grid .lb-card.featured .lb-thumb { height: 176px; } }
.lb-grid .lb-card.featured { border-color: rgba(45,180,180,.5); box-shadow: 0 0 0 1px rgba(214,69,61,.25), 0 18px 40px rgba(31,138,138,.25); }
.lb-chip-key { display: none; margin-left: 6px; padding: 0 4px; border-radius: 4px; font: 600 9px/14px var(--f-num); color: inherit; opacity: .55;
    border: 1px solid currentColor; }
.lb-keys .lb-chip-key { display: inline-block; }
/* Private Tables (Card Rooms' first card): no game art, a dashed gold edge, the lock, what it is and how many are open. */
.lb-pt-n { font-size: 12px; font-weight: 700; color: #fde68a; white-space: nowrap; }
.lb-pt-d { margin: 6px 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.lb-pt-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lb-pt-acts .lb-btn { width: 100%; padding: 0 10px; }
/* The Discord card (home.js renderDiscord): Discord's blurple on the lobby's panel, the prize and one button. */
.lb-dc { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 14px 14px 16px;
    border-radius: 18px; border: 1px solid rgba(129,140,248,.45); box-shadow: 0 18px 40px rgba(0,0,0,.55);
    background: radial-gradient(ellipse 80% 120% at 0% 0%, rgba(88,101,242,.32), transparent 70%), linear-gradient(180deg, var(--panel), var(--panel-2)); }
.lb-dc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #5865f2, #3c45a5);
    border: 1px solid rgba(129,140,248,.6); }
.lb-dc-ico svg { width: 24px; height: 24px; }
.lb-dc-txt { min-width: 0; }
.lb-dc-k { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: #a5b4fc; }
.lb-dc-t { margin: 2px 0 0; font-family: var(--f-display); font-size: 1.05rem; line-height: 1.3; color: #eef2ff; }
.lb-dc-d { margin: 3px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.lb-dc-d b { color: #e0e7ff; }
.lb-dc-d a { color: #a5b4fc; text-decoration: underline; }
.lb-dc-go { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; height: 40px; border-radius: 11px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: #fff; background: linear-gradient(180deg, #6d78f7, #4752c4);
    border: 1px solid rgba(165,180,252,.5); transition: filter var(--t-fast) var(--ease); }
.lb-dc-go:hover { filter: brightness(1.12); }
.lb-dc-go:focus-visible, .lb-dc-d a:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.lb-dc .lb-al-x { align-self: start; }
/* The directory's heading is for screen readers (the chips say what the section is). */
.lb-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- progress: your road, the club, the bounties ---- */
.lb-xp-line { margin-top: 8px; font-size: var(--fs-1); color: var(--muted); }
.lb-xp-line b { color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.lb-vault-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 16px; font-size: 11px; color: var(--muted); }
.lb-vault-foot b { color: #e7e5e4; font-variant-numeric: tabular-nums; }
.lb-vault-foot b.gold { color: var(--gold-hi); }
.lb-claimed { font-size: 11px; font-weight: 700; color: var(--emerald); }
.lb-quest-bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.lb-quest-bar .lb-bar { flex: 1 1 auto; height: 6px; }
.lb-quest-bar .n { flex: none; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-race-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 11px; color: var(--dim); }
.lb-race-foot b { color: var(--soft); font-variant-numeric: tabular-nums; }
.lb-rr-who { min-width: 0; }

/* ---- bounties: the side column's board, daily or weekly (a switch), its three bounties and its chest (progress.js) ---- */
.lb-seg-n { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 6px; padding: 0 4px; border-radius: 999px;
    font: 800 9.5px/1 var(--f-num); color: #1a1206; background: var(--gold); vertical-align: 1px; }
.lb-seg button[aria-pressed="true"] .lb-seg-n { color: var(--gold-hi); background: #1a1206; }
#lb-quests { margin-top: 14px; }
.lb-bq-list { display: flex; flex-direction: column; gap: 8px; }
.lb-bq { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px;
    background: rgba(255,255,255,.025); border: 1px solid var(--hair); transition: border-color var(--t-fast) var(--ease); }
.lb-bq.ready { border-color: rgba(251,191,36,.5); background: linear-gradient(90deg, rgba(251,191,36,.08), rgba(251,191,36,.02)); }
.lb-bq.claimed { opacity: .55; }
.lb-bq.claimed .lb-bar > i { background: linear-gradient(90deg, #047857, #34d399); }
.lb-bq .qi { align-self: start; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px;
    background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.25); }
.lb-bq-txt { min-width: 0; }
.lb-bq-nm { font-size: .8125rem; font-weight: 600; color: var(--text); }
.lb-bq-d { font-size: 11px; color: var(--muted); }
.lb-bq .lb-quest-bar { margin-top: 5px; }
.lb-bq-rw { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.lb-bq-rw .lb-rw { font-size: 10px; }
.lb-btn-xs { height: 30px; padding: 0 12px; font-size: 10.5px; border-radius: 10px; }
.lb-btn-gold.lb-btn-xs { box-shadow: 0 4px 0 #6b4a12, 0 8px 18px rgba(245,158,11,.22); }
.lb-btn-gold.lb-btn-xs:active:not(:disabled) { box-shadow: 0 2px 0 #6b4a12; transform: translateY(2px); }
.lb-bq .lb-claimed { width: 30px; text-align: center; font-size: 14px; }

/* ---- your road (progress.js renderNext): a card in the people column - your level and the next unlock, the XP bar to
   it, every stop as one row of medallions (you on it), what the next stop opens and the one button. ---- */
.lb-road { padding: 18px; overflow: hidden; }
.lb-road::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(251,191,36,.09), transparent 70%); }
#lb-next { position: relative; display: flex; flex-direction: column; gap: 14px; }
.lb-road-top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
.lb-road-lv { width: 56px; height: 56px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 30%, #2a2210, #0b0b0f 70%); border: 2px solid var(--gold-lo);
    box-shadow: 0 0 0 3px rgba(212,175,55,.12), 0 8px 20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,236,179,.25); }
.lb-road-lv small { font-size: 7.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 800; color: var(--label); }
.lb-road-lv b { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.5rem; color: var(--gold-hi); font-variant-numeric: lining-nums; }
.lb-road-head { min-width: 0; }
.lb-road-h { margin: 3px 0 0; font-size: 1.2rem; line-height: 1.45rem; }
.lb-road-h .more { font-family: var(--f-text); font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lb-road-xp { display: flex; flex-direction: column; gap: 6px; }
.lb-road-xp .lb-xp-line { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.lb-road-xp .lb-xp-line b { color: var(--gold-hi); }
/* The stops: medallions on a line filled up to you (--pos), each one's unlocks in its title. */
.lb-road-pips { position: relative; display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.lb-road-pips::before, .lb-road-pips::after { content: ''; position: absolute; left: 15px; top: 14px; height: 3px; border-radius: 999px; }
.lb-road-pips::before { right: 15px; background: rgba(255,255,255,.08); }
.lb-road-pips::after { width: calc((100% - 30px) * var(--pos)); background: linear-gradient(90deg, #047857, #34d399 60%, #f2cf6b); }
.lb-stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lb-stop .m { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center;
    font: 700 11px/1 var(--f-num); color: var(--dim); background: #121217; border: 2px solid rgba(255,255,255,.14); }
.lb-stop.salon .m { box-shadow: 0 0 0 2px #0b0b0f, 0 0 0 3px rgba(212,175,55,.35); }
.lb-stop.done .m { color: var(--emerald-hi); border-color: rgba(52,211,153,.7); background: #0c1a14; font-size: 13px; }
.lb-stop.next .m { color: #1a1206; border-color: #fde68a; background: linear-gradient(180deg, #fff1b0, #e2b44a 55%, #a8741c);
    box-shadow: 0 0 0 3px rgba(251,191,36,.18), 0 0 16px rgba(251,191,36,.4); }
.lb-stop .lv { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--dim); }
.lb-stop.done .lv { color: rgba(110,231,183,.8); }
.lb-stop.next .lv { color: var(--amber); }
.lb-road-opens { display: flex; flex-direction: column; gap: 8px; }
.lb-road-open { min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(251,191,36,.28); background: rgba(251,191,36,.045); }
.lb-road-open.salon { border-color: rgba(251,191,36,.55); background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(251,191,36,.03)); }
.lb-road-open .t { font-family: var(--f-display); font-size: .95rem; font-weight: 700; color: var(--gold-hi); }
.lb-road-open .d { margin-top: 2px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
#lb-next > .lb-desc { margin: 0; }
.lb-road-cta .lb-btn { width: 100%; }

/* ---- your club (progress.js renderClub): a card at the foot, the same build as your road above it; the crest's icon a faint
   watermark in its corner. Before you join one, a slim stripe with the way in. ---- */
.lb-cf { padding: 28px; overflow: hidden; isolation: isolate; container-type: inline-size; }
.lb-cf::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(ellipse 40% 90% at 0% 0%, rgba(251,191,36,.09), transparent 70%),
        radial-gradient(ellipse 50% 80% at 100% 100%, var(--light-floor), transparent 70%); }
.lb-cf-mark { position: absolute; right: -60px; top: -110px; width: 360px; height: 360px; z-index: -1; color: var(--gold);
    opacity: .05; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 62%); mask-image: linear-gradient(180deg, #000 30%, transparent 62%); }
.lb-cf-mark svg { width: 100%; height: 100%; fill: currentColor; }
.lb-cf-inner { position: relative; display: flex; flex-direction: column; gap: 24px; }
.lb-cf-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; }
.lb-cf-crest { flex: none; filter: drop-shadow(0 12px 24px rgba(0,0,0,.6)); }
.lb-cf-id { min-width: 0; }
.lb-cf-name { margin: 4px 0 0; font-size: 1.75rem; line-height: 2.1rem; }
.lb-cf-name .lb-tag { font-size: 1rem; }
.lb-cf-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.lb-cf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px 0; border-block: 1px solid var(--hair); }
.lb-cf-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 0 22px; border-left: 1px solid var(--hair); }
.lb-cf-stat:first-child { padding-left: 0; border-left: 0; }
.lb-cf-stat .k { display: flex; align-items: center; gap: 6px; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 800; color: var(--dim); }
.lb-cf-stat .v { font-family: var(--f-display); font-size: 2rem; line-height: 2.4rem; font-weight: 700; color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.lb-cf-stat .v small { font-family: var(--f-num); font-size: .8125rem; color: var(--dim); font-weight: 600; }
.lb-cf-stat .s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-cf-stat.on .v { color: var(--emerald-hi); }
.lb-cf-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 760px) { .lb-cf-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lb-cf-body > :first-child { grid-column: 1 / -1; } }
@media (min-width: 1180px) {
    .lb-cf-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; }
    .lb-cf-body > :first-child { grid-column: auto; }
    .lb-cf-col { padding: 0 28px; border-left: 1px solid var(--hair); }
    .lb-cf-col:first-child { padding-left: 0; border-left: 0; }
    .lb-cf-col:last-child { padding-right: 0; }
}
.lb-cf-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lb-cf-col > .lb-ch-sub { margin-bottom: -8px; }
.lb-cf-col .lb-vault-foot { margin-top: -4px; }
.lb-cf-col .lb-cta-top { margin-top: 0; align-self: flex-start; }
.lb-cf-col .lb-lg-foot { margin-top: -10px; }
.lb-cf-col .lb-ch-live, .lb-cf-col .lb-ch-online { flex: none; }
.lb-cf.invite { padding: 14px 20px; }
@container (max-width: 520px) {                             /* the stripe in the side column */
    .lb-cf.invite .lb-cf-top { grid-template-columns: auto minmax(0, 1fr); }
    .lb-cf.invite .lb-cf-acts { grid-column: 1 / -1; align-items: stretch; }
}
.lb-cf.invite .lb-cf-top { gap: 16px; }
.lb-crest.lb-cf-crest { width: 44px; height: 44px; border-radius: 13px; }
.lb-crest.lb-cf-crest svg { width: 22px; height: 22px; }
.lb-cf.invite .lb-cf-name { margin: 0; font-size: 1.125rem; line-height: 1.5rem; }
.lb-cf.invite .lb-desc { margin: 2px 0 0; font-size: var(--fs-1); }
@media (max-width: 639px) {
    .lb-cf { padding: 20px; }
    .lb-cf.invite { padding: 14px 16px; }
    .lb-cf-top { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
    .lb-cf-acts { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
    .lb-cf-name { font-size: 1.375rem; line-height: 1.75rem; }
    .lb-cf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
    .lb-cf-stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .lb-cf-stat .v { font-size: 1.5rem; line-height: 1.9rem; }
    .lb-cf .lb-ch-lv .lb-bar { width: auto; flex: 1 1 48px; min-width: 40px; }
    .lb-cf.invite .lb-cf-acts .lb-btn { flex: 1; }
}

.lb-chest { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px;
    border-radius: 14px; background: linear-gradient(90deg, rgba(251,191,36,.07), rgba(255,255,255,.02)); border: 1px dashed rgba(212,175,55,.35); }
.lb-chest.platinum { background: linear-gradient(90deg, rgba(228,228,231,.07), rgba(255,255,255,.02)); border-color: rgba(212,212,216,.3); }
.lb-chest.ready { border-style: solid; border-color: rgba(251,191,36,.7); box-shadow: 0 0 22px rgba(251,191,36,.12); }
.lb-chest.platinum.ready { border-color: rgba(244,244,245,.65); box-shadow: 0 0 22px rgba(244,244,245,.1); }
.lb-chest-svg { width: 52px; height: 42px; display: block; }
.lb-chest:not(.ready):not(.opened) .lb-chest-svg { opacity: .7; filter: grayscale(.3); }
.lb-chest.ready .lb-chest-svg { animation: lb-chest-bob 1.6s ease-in-out infinite; }
@keyframes lb-chest-bob { 50% { transform: translateY(-3px); } }
html.calm-motion .lb-chest.ready .lb-chest-svg { animation: none; }
.lb-chest-txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lb-chest-nm { font-family: var(--f-display); font-size: .9375rem; font-weight: 700; color: var(--gold-hi); }
.lb-chest.platinum .lb-chest-nm { color: #f4f4f5; }
.lb-chest-d { font-size: 11px; color: var(--dim); }
.lb-chest-n { font-family: var(--f-num); font-size: 12px; font-weight: 700; color: var(--muted); }

/* ---- the club hero: identity, who is on, the message of the day, vault milestones, the weekly league ---- */
.lb-ch-lv { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.lb-ch-lv b { color: var(--soft); }
.lb-ch-lv .lb-bar { width: 120px; height: 6px; flex: none; }
.lb-ch-lv > span:first-child { white-space: nowrap; }
.lb-ch-rank { padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--rc); border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); background: color-mix(in srgb, var(--rc) 10%, transparent); }
.lb-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--emerald); box-shadow: 0 0 6px rgba(52,211,153,.7); }
.lb-motd { margin: 0; padding: 12px 16px; border-radius: 12px; border-left: 3px solid var(--gold); background: linear-gradient(90deg, rgba(251,191,36,.07), rgba(255,255,255,.015)); }
.lb-motd-k { display: flex; align-items: center; gap: 6px; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--label); }
.lb-motd-k svg { width: 13px; height: 13px; }
.lb-motd blockquote { margin: 6px 0 0; font-size: var(--fs-2); line-height: 1.5; color: var(--soft); white-space: pre-line; overflow-wrap: anywhere; }
.lb-motd figcaption { margin-top: 4px; font-size: 11px; color: var(--dim); }
.lb-motd.empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-1); color: var(--muted);
    border-left-color: rgba(255,255,255,.15); background: rgba(255,255,255,.02); }
.lb-ch-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: var(--fs-1); font-weight: 700; color: #e7e5e4; }
.lb-ch-sub .n { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-ch-sub.sm { margin: 0 0 6px; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--dim); }
/* The vault close to its next tier (club.js nearHTML; Also today's line until V3 step 4). */
.lb-vnear { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; padding: 8px 10px;
    border-radius: 12px; font-size: 12.5px; color: var(--soft); background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.35); }
.lb-vnear b { color: var(--gold-hi); }
.lb-vsteps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lb-vstep { min-width: 0; text-align: center; }
.lb-vstep-bar { height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); }
.lb-vstep-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #a8741c, #f2cf6b, #fff1b0); }
.lb-vstep.on .lb-vstep-bar { box-shadow: 0 0 10px rgba(251,191,36,.35); }
.lb-vstep-t { margin-top: 6px; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--dim); }
.lb-vstep.on .lb-vstep-t { color: var(--emerald-hi); }
.lb-vstep.next .lb-vstep-t { color: var(--amber); }
.lb-vstep-c { font-family: var(--f-num); font-size: 12px; font-weight: 700; color: var(--soft); }
.lb-vstep.on .lb-vstep-c, .lb-vstep.next .lb-vstep-c { color: var(--gold-hi); }
.lb-vstep-x { font-size: 9.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-ch-zone { padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.05); }
.lb-ch-zone.lead { color: var(--gold-hi); background: rgba(251,191,36,.12); }
.lb-ch-zone.up { color: var(--emerald-hi); background: rgba(52,211,153,.12); }
.lb-ch-zone.down { color: #fca5a5; background: rgba(248,113,113,.12); }
.lb-lg { display: flex; flex-direction: column; gap: 4px; }
.lb-lg-row { display: grid; grid-template-columns: 24px 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 38px; padding: 4px 10px;
    border-radius: 10px; border-left: 3px solid transparent; background: rgba(255,255,255,.02); }
.lb-lg-row.promotion, .lb-lg-row.leader { border-left-color: rgba(52,211,153,.6); }
.lb-lg-row.relegation { border-left-color: rgba(248,113,113,.6); }
.lb-lg-row.mine { background: rgba(251,191,36,.08); box-shadow: inset 0 0 0 1px rgba(251,191,36,.35); }
.lb-lg-row .r { font-family: var(--f-num); font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.lb-lg-row .nm { font-size: 13px; font-weight: 600; color: var(--soft); }
.lb-lg-row.mine .nm { color: var(--gold-hi); }
.lb-lg-row .nm .lb-tag { font-size: 11px; }
.lb-lg-row .x { font-family: var(--f-num); font-size: 12px; font-weight: 700; color: var(--amber); }
.lb-lg-row .x small { font-size: 9px; color: var(--dim); }
.lb-lg-foot { margin-top: 10px; font-size: 11px; color: var(--muted); }
.lb-lg-foot b { color: var(--soft); font-variant-numeric: tabular-nums; }
.lb-ch-online { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1 1 260px; }
.lb-ch-pp { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
    color: var(--soft); background: rgba(255,255,255,.035); border: 1px solid var(--hair); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-ch-pp small { font-weight: 400; color: var(--dim); }
.lb-ch-pp.more { color: var(--muted); }
.lb-ch-live { display: flex; flex-direction: column; gap: 6px; flex: 0 1 320px; min-width: 0; }
.lb-ch-table { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); }
.lb-ch-table .nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-ch-table b { color: var(--soft); }
.lb-ch-req { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--gold-hi);
    background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.35); }

/* ---- your club, small (LOBBY_PLAN_V3.md 4.4, static/js/lobby/club.js): the strip above Main Events in one column, the
   side column's card from 1024px. NEW marks a message of the day the player has not seen. ---- */
.lb-new { display: inline-block; flex: none; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 9px; font-weight: 800;
    letter-spacing: .08em; line-height: 14px; color: var(--ink); background: var(--gold); vertical-align: middle; }
.lb-cs { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; text-align: left; cursor: pointer;
    font: inherit; color: inherit; border-radius: 14px; border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--sheen);
    background: radial-gradient(ellipse 50% 120% at 0% 0%, rgba(251,191,36,.09), transparent 70%), linear-gradient(180deg, var(--panel), var(--panel-2));
    transition: border-color var(--t-fast) var(--ease); }
.lb-cs:hover { border-color: var(--line-strong); }
.lb-cs:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.lb-cs-crest { flex: none; display: grid; }
.lb-cs-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lb-cs-top { display: flex; align-items: center; gap: 4px; min-width: 0; }
.lb-cs-name { min-width: 0; font-family: var(--f-display); font-size: .9375rem; font-weight: 700; color: var(--gold-hi); }
.lb-cs-on { display: inline-flex; align-items: center; gap: 5px; flex: none; margin-left: auto; padding-left: 8px; font-size: 11px; font-weight: 700; color: var(--emerald-hi); }
.lb-cs-msg { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.4;
    color: var(--soft); overflow-wrap: anywhere; }
.lb-cs-msg .by, .lb-cs-msg.none { color: var(--dim); }

.lb-cm { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; overflow: hidden; isolation: isolate; }
.lb-cm::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(ellipse 60% 70% at 0% 0%, rgba(251,191,36,.09), transparent 70%); }
.lb-cm-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-cm-head .lb-cf-crest { display: grid; }
.lb-cm-id { flex: 1; min-width: 0; }
.lb-cm-name { margin: 1px 0 0; font-size: 1.25rem; line-height: 1.6rem; }
.lb-cm-name .lb-tag { font-size: .75rem; }
.lb-cm-on { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 12px; font-weight: 700; color: var(--emerald-hi); font-variant-numeric: tabular-nums; }
.lb-cm .lb-motd { padding: 10px 12px; }
.lb-cm .lb-motd blockquote { font-size: var(--fs-1); }
.lb-cm-vault { display: flex; flex-direction: column; gap: 6px; }
.lb-cm-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--soft); }
.lb-cm-line b { color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.lb-cm-line.dim { color: var(--muted); }
.lb-cm-line.dim b { color: var(--text); }
.lb-vsteps.slim { gap: 4px; }
.lb-vsteps.slim .lb-vstep-bar { height: 7px; }
.lb-cm-claim { align-self: flex-start; margin-top: 4px; }
.lb-cm-people { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lb-cm-pp { display: grid; place-items: center; flex: none; width: 28px; height: 28px; }
.lb-cm-pp .lb-pc-init { width: 28px; height: 28px; font-size: 11px; }
.lb-cm-pp.more { border-radius: 50%; font-size: 10.5px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.05); }
.lb-cm-tables { min-width: 0; margin-left: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-cm-tables:hover { color: var(--gold-hi); }
.lb-cm .lb-ch-req { margin-top: -4px; }
.lb-cm-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lb-cm-acts .lb-btn { padding: 0 10px; }

/* ---- live miniatures (LOBBY_PLAN.md v2 4.2, static/js/lobby/minis.js): the game itself in the card's thumb. A mini sits
   under the pill, the star and the quest hint; its CSS loops are paused unless minis.js marks it .run (at most six on
   screen, never under reduced motion, Save-Data or a hidden tab), so a still mini holds its last pose, and every loop in
   a mini out of view holds still (minis.js: SceneLoop.pauseOffscreen, which also beats a loop's own `animation`
   shorthand). Rule 1: nothing here draws a figure. */
.lb-mini { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.lb-mini canvas { display: block; }
.lb-mini .cc-card, .lb-mini .cc-card + .cc-card { flex: none; margin: 0; }
.lb-mini[data-game="peg-drop"] canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lb-thumb.has-mini .ico { display: none; }
.lb-thumb.filming .lb-mini { visibility: hidden; }
.lb-mini *, .lb-mini *::before, .lb-mini *::after { animation-play-state: paused; }
.lb-mini.run *, .lb-mini.run *::before, .lb-mini.run *::after { animation-play-state: running; }
.lb-mn-box { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.lb-mn-box canvas { width: 100%; height: 100%; }
/* house card tables: a felt with the shoe, the dealer's two backs and the seats on an arc (filled = the live seat dots) */
.lb-mn-felt { position: relative; width: 100%; height: 100%; }
.lb-mn-dealer { position: absolute; left: 50%; top: 14px; display: flex; gap: 4px; width: max-content; transform: translateX(-50%); }
/* Three Card Showdown's dealer: three backs fanned like a poker hand, so the card never reads as Blackjack's. */
.lb-mn-three { gap: 0; }
.lb-mn-three > * { transform-origin: 50% 120%; }
.lb-mn-three > :nth-child(1) { rotate: -12deg; translate: 6px 3px; }
.lb-mn-three > :nth-child(3) { rotate: 12deg; translate: -6px 3px; }
.lb-mn-shoe { position: absolute; left: 14%; top: 12px; width: 30px; height: 38px; border-radius: 4px; rotate: -12deg;
    background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.18); }
.lb-mn-deal { position: absolute; left: 4px; top: 6px; animation: lb-mn-deal 3.6s var(--ease) infinite; }
@keyframes lb-mn-deal { 0%, 55% { transform: none; opacity: 1; } 85% { transform: translate(46px, 18px) rotate(14deg); opacity: 0; } 100% { opacity: 0; } }
.lb-mn-arc { position: absolute; left: 10%; right: 10%; bottom: 44px; height: 34px; display: flex; justify-content: space-between; align-items: flex-end; }
.lb-mn-arc i, .lb-mn-ring i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed rgba(253,230,138,.6); background: rgba(0,0,0,.35); }
.lb-mn-arc i { transform: translateY(calc(1px * (var(--i) - (var(--n) - 1) / 2) * (var(--i) - (var(--n) - 1) / 2) * -3)); }
.lb-mn-arc i.on, .lb-mn-ring i.on { border-style: solid; border-color: #f2cf6b; background: radial-gradient(circle at 40% 35%, #fde68a, #a8741c 70%); box-shadow: 0 0 8px rgba(242,207,107,.5); }
/* House Hold'em: the board's five backs turning over (the flop together, then the turn, then the river) and a chip stack
   sliding up into Play: the 4x shove. A still mini holds the board down and the stack in place. */
.lb-mn-hhboard { position: absolute; left: 50%; top: 56px; display: flex; gap: 3px; width: max-content; transform: translateX(-50%); }
.lb-mn-hhboard .cc-card { animation: lb-mn-hhturn 6s var(--ease) infinite; }
.lb-mn-hhboard .cc-card:nth-child(4) { animation-delay: 1.2s; }
.lb-mn-hhboard .cc-card:nth-child(5) { animation-delay: 2.4s; }
@keyframes lb-mn-hhturn { 0%, 24%, 100% { transform: none; filter: none; } 12% { transform: scaleX(0); } 18% { filter: brightness(1.35); } }
.lb-mn-shove { position: absolute; left: 50%; bottom: 50px; width: 16px; height: 6px; border-radius: 50%; transform: translateX(-50%);
    background: #f2cf6b; box-shadow: 0 -3px 0 #a8741c, 0 -6px 0 #f2cf6b, 0 -9px 0 #a8741c; animation: lb-mn-shove 6s var(--ease) infinite 3s; }
@keyframes lb-mn-shove { 0% { transform: translate(-50%, 20px); opacity: 0; } 15%, 85% { transform: translateX(-50%); opacity: 1; } 100% { transform: translateX(-50%); opacity: 0; } }
html.calm-motion .lb-mn-hhboard .cc-card, html.calm-motion .lb-mn-shove { animation: none; }
/* Pai Gow Poker: the dealer's seven drawn together, then the two slide apart from the five (the split) and back. A
   still mini holds them split. */
.lb-mn-pgsplit { display: flex; gap: 0; }
.lb-mn-pgsplit > span { display: flex; animation: lb-mn-pgsplit 6s var(--ease) infinite; }
.lb-mn-pgsplit > span:first-child { animation-name: lb-mn-pgfive; }
.lb-mn-pgsplit .cc-card + .cc-card { margin-left: -9px; }
@keyframes lb-mn-pgsplit { 0%, 20%, 100% { transform: none; } 40%, 80% { transform: translate(10px, 6px); } }
@keyframes lb-mn-pgfive { 0%, 20%, 100% { transform: none; } 40%, 80% { transform: translateX(-6px); } }
html.calm-motion .lb-mn-pgsplit > span { animation: none; transform: none; }
html.calm-motion .lb-mn-pgsplit > span + span { margin-left: 12px; }
/* Hold'em: an oval felt, the board face down, eight seats round the rail */
.lb-mn-oval { position: relative; width: 70%; height: 66%; margin-top: -16px; border-radius: 50%; border: 3px solid rgba(168,116,28,.7);
    background: radial-gradient(ellipse at 50% 40%, rgba(16,96,64,.75), rgba(4,40,28,.85)); box-shadow: inset 0 0 18px rgba(0,0,0,.6); }
.lb-mn-board { position: absolute; left: 50%; top: 50%; display: flex; gap: 3px; width: max-content; transform: translate(-50%, -50%); }
.lb-mn-board .cc-card { animation: lb-mn-glow 4s ease-in-out infinite; }
.lb-mn-board .cc-card:nth-child(2) { animation-delay: .25s; }
.lb-mn-board .cc-card:nth-child(3) { animation-delay: .5s; }
.lb-mn-board .cc-card:nth-child(4) { animation-delay: .75s; }
.lb-mn-board .cc-card:nth-child(5) { animation-delay: 1s; }
@keyframes lb-mn-glow { 0%, 70%, 100% { filter: none; } 80% { filter: brightness(1.35); } }
.lb-mn-ring { position: absolute; inset: 0; }
.lb-mn-ring i { position: absolute; left: calc(50% + 52% * sin(var(--i) * 45deg) - 8px); top: calc(50% + 56% * cos(var(--i) * 45deg) - 8px); }
/* Coinflip: the two faces turning, the open duels as plaques */
.lb-mn-cf { display: flex; align-items: center; gap: 18px; margin-top: -14px; perspective: 400px; }
.lb-mn-coin { position: relative; width: 74px; height: 74px; transform-style: preserve-3d; animation: lb-mn-turn 7s linear infinite; }
.lb-mn-face { position: absolute; inset: 0; backface-visibility: hidden; }
.lb-mn-face svg { width: 100%; height: 100%; }
.lb-mn-tails { transform: rotateY(180deg); }
@keyframes lb-mn-turn { to { transform: rotateY(360deg); } }
.lb-mn-duels { display: flex; flex-direction: column; gap: 5px; }
.lb-mn-duels i { width: 46px; height: 12px; border-radius: 4px; border: 1px dashed rgba(253,230,138,.25); }
.lb-mn-duels i.on { border: 1px solid rgba(242,207,107,.7); background: linear-gradient(90deg, #3a2a0c, #a8741c 60%, #3a2a0c); }
/* Baccarat: two face-down cards in each box, the Banker's second card being squeezed (it never turns: rule 1). */
.lb-mn-bac { display: flex; gap: 8px; }
.lb-mn-bbox { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: 76px; padding: 4px 4px 6px; border-radius: 8px;
    border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.lb-mn-bbox b { flex-basis: 100%; text-align: center; font: 800 7px Inter, sans-serif; letter-spacing: .24em; color: var(--c); }
.lb-mn-p { --c: #60a5fa; } .lb-mn-b { --c: #f87171; }
.lb-mn-bbox .cc-card { width: 30px; height: 42px; box-shadow: 0 5px 9px rgba(0,0,0,.5); }
.lb-mn-peel { display: block; transform-origin: 100% 100%; animation: lb-mn-peel 3.6s ease-in-out infinite; }
@keyframes lb-mn-peel { 0%, 30%, 100% { transform: none; } 60% { transform: perspective(160px) rotateX(-28deg) rotateY(24deg); } }
html.calm-motion .lb-mn-peel { animation: none; }
/* War: two face-down cards squaring up across a blade, the open tables beside them */
/* Craps: dice rattling in the shooter's hand (they never land: rule 1), the Pass Line and the puck. */
.lb-mn-craps { position: relative; width: 160px; height: 96px; }
.lb-mn-cline { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 24px; border: 1.5px solid rgba(253,230,138,.55); border-radius: 6px;
    display: grid; place-items: center; font: 700 9px 'Playfair Display', Georgia, serif; letter-spacing: .3em; color: #fcd34d; }
.lb-mn-hand { position: absolute; left: 50%; top: 14px; display: flex; gap: 8px; transform: translateX(-50%); animation: lb-mn-rattle .16s linear infinite; }
.lb-mn-die { width: 28px; height: 28px; border-radius: 6px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 4px;
    background: linear-gradient(145deg, #fffdf5, #e7e0cc); box-shadow: inset -2px -3px 0 #b8ad92, 0 6px 10px rgba(0,0,0,.55); }
.lb-mn-die:nth-child(2) { rotate: 16deg; translate: 0 6px; }
.lb-mn-die b { width: 70%; height: 70%; margin: auto; border-radius: 50%; background: #1c1917; }
.lb-mn-die b.off { visibility: hidden; }
.lb-mn-puck { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    font: 900 7px Inter, sans-serif; color: #111; background: #fafafa; box-shadow: 0 3px 6px rgba(0,0,0,.6); }
.lb-mn-puck.off { color: #fafafa; background: #1c1917; box-shadow: inset 0 0 0 1.5px #fafafa, 0 3px 6px rgba(0,0,0,.6); }
.lb-mn-puck b { font: inherit; } .lb-mn-puck b + b, .lb-mn-puck.off b:first-child { display: none; } .lb-mn-puck.off b + b { display: inline; }
@keyframes lb-mn-rattle { 0% { transform: translateX(-50%) rotate(0); } 25% { transform: translate(calc(-50% - 2px), 1px) rotate(-5deg); }
    50% { transform: translate(calc(-50% + 1px), -2px) rotate(4deg); } 75% { transform: translate(calc(-50% + 2px), 1px) rotate(-2deg); } }
html.calm-motion .lb-mn-hand { animation: none; }
/* Sic Bo: three dice in the pit under a glass dome that lifts on the last real roll (blank dice, dome down, until one is known). */
.lb-mn-sb { position: relative; width: 150px; height: 100px; }
.lb-mn-sbbase { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 12px; border-radius: 50%;
    background: radial-gradient(ellipse at 50% 40%, #3b4b63, #121a26); box-shadow: 0 6px 12px rgba(0,0,0,.6), inset 0 0 0 1.5px rgba(253,230,138,.45); }
.lb-mn-sbdice { position: absolute; left: 50%; bottom: 14px; display: flex; gap: 5px; transform: translateX(-50%); z-index: 1; }
.lb-mn-sb .lb-mn-die { width: 24px; height: 24px; padding: 3px; }
.lb-mn-sb .lb-mn-die:nth-child(2) { rotate: -8deg; translate: 0 -4px; }
.lb-mn-sb .lb-mn-die:nth-child(3) { rotate: 10deg; translate: 0 0; }
.lb-mn-sbdome { position: absolute; left: 22px; right: 22px; bottom: 10px; height: 64px; border-radius: 60px 60px 6px 6px; z-index: 2;
    background: radial-gradient(ellipse 60% 50% at 35% 25%, rgba(255,255,255,.35), rgba(255,255,255,.06) 60%, rgba(180,210,255,.10));
    box-shadow: inset 0 0 0 1.5px rgba(220,235,255,.55), inset -6px -8px 14px rgba(120,160,220,.18); }
.lb-mn-sb.rolled .lb-mn-sbdome { animation: lb-mn-sblift 5.4s ease-in-out infinite; }
@keyframes lb-mn-sblift { 0%, 18%, 92%, 100% { transform: none; } 34%, 76% { transform: translateY(-30px); opacity: .55; } }
html.calm-motion .lb-mn-sb.rolled .lb-mn-sbdome, html.gfx-low .lb-mn-sb.rolled .lb-mn-sbdome { animation: none; transform: translateY(-30px); opacity: .55; }
/* Dice Duel: each player's pair rattling in turn, the open matches beside them */
.lb-mn-dd { position: relative; display: flex; align-items: center; gap: 10px; margin-top: -10px; }
.lb-mn-dd .lb-mn-hand { position: relative; left: auto; top: auto; transform: none; animation-name: lb-mn-rattle-dd; animation-duration: 1.8s; animation-timing-function: ease-in-out; }
.lb-mn-dd .lb-mn-dd-a { animation-delay: 0s; }
.lb-mn-dd .lb-mn-dd-b { animation-delay: -.9s; }
.lb-mn-dd .lb-mn-die { width: 24px; height: 24px; }
.lb-mn-die.bone { background: linear-gradient(145deg, #eef0f2, #c9cdd2); box-shadow: inset -2px -3px 0 #8e949c, 0 6px 10px rgba(0,0,0,.55); }
.lb-mn-die.bone b { background: #7f1d1d; }
.lb-mn-dd .lb-mn-vs { font: 900 11px 'Cinzel', Georgia, serif; color: #fcd34d; letter-spacing: .1em; }
.lb-mn-dd .lb-mn-duels { margin-left: 4px; }
@keyframes lb-mn-rattle-dd { 0%, 45%, 100% { transform: none; } 5%, 15%, 25%, 35% { transform: translate(-2px, 1px) rotate(-6deg); } 10%, 20%, 30%, 40% { transform: translate(2px, -2px) rotate(5deg); } }
/* War: the War Room's map table in miniature (parchment in a timber frame, the front line, a red attack arrow) */
.lb-mn-war { display: flex; align-items: center; gap: 10px; margin-top: -14px; }
.lb-mn-wmap { position: relative; width: 132px; height: 92px; border-radius: 4px; border: 4px solid #3a2717;
    background: radial-gradient(ellipse 80% 70% at 50% 45%, #d7c497, #b69b66); box-shadow: 0 8px 16px rgba(0,0,0,.6), inset 0 0 0 1px rgba(201,164,92,.9), inset 0 0 14px rgba(60,40,15,.45); }
.lb-mn-wmap::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(150,45,30,.22), rgba(150,45,30,0) 52%, rgba(40,75,150,0) 52%, rgba(40,75,150,.22)); }
.lb-mn-wmap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lb-mn-wfront { fill: none; stroke: #3a2414; stroke-width: 2.2; stroke-linecap: round; }
.lb-mn-warrow { fill: none; stroke: rgba(170,30,20,.85); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 46; animation: lb-mn-sweep 4.8s ease-in-out infinite; }
.lb-mn-whead { fill: rgba(170,30,20,.9); animation: lb-mn-head 4.8s ease-in-out infinite; }
.lb-mn-wflag { fill: #e9dcb8; stroke: rgba(60,40,15,.6); stroke-width: .8; }
.lb-mn-wc { position: absolute; left: 50%; animation: lb-mn-square 4.8s ease-in-out infinite; }
.lb-mn-wc-a { top: 4px; margin-left: -40px; }
.lb-mn-wc-b { bottom: 4px; margin-left: 12px; animation-delay: -2.4s; }
.lb-mn-wc .cc-card { width: 24px; height: 34px; box-shadow: 0 5px 8px rgba(0,0,0,.5); }
.lb-mn-war .lb-mn-duels { margin-left: 8px; }
@keyframes lb-mn-sweep { 0%, 15% { stroke-dashoffset: 46; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 46; } }
@keyframes lb-mn-head { 0%, 38% { opacity: 0; } 45%, 85% { opacity: 1; } 100% { opacity: 0; } }
/* Rock Paper Scissors: two gauntlets pumping at each other, the open matches beside them */
.lb-mn-rps { display: flex; align-items: center; gap: 0; margin-top: -14px; }
.lb-mn-rf { width: 100px; }
.lb-mn-rf-a { margin-right: -14px; } .lb-mn-rf-b { margin-left: -14px; }
.lb-mn-rf .lb-mn-rh { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 10px rgba(0,0,0,.55)); }
.lb-mn-rf-a .lb-mn-rh { transform-origin: 20% 55%; animation: lb-mn-pump 2.6s ease-in-out infinite; }
.lb-mn-rf-b .lb-mn-rh { transform-origin: 80% 55%; animation: lb-mn-pump-b 2.6s ease-in-out infinite; }
.lb-mn-rps .lb-mn-duels { margin-left: 8px; }
@keyframes lb-mn-pump { 0%, 36%, 100% { transform: none; } 6%, 18%, 30% { transform: translateY(-7px) rotate(-12deg); } 12%, 24% { transform: none; } }
@keyframes lb-mn-pump-b { 0%, 36%, 100% { transform: none; } 6%, 18%, 30% { transform: translateY(-7px) rotate(12deg); } 12%, 24% { transform: none; } }
html.calm-motion .lb-mn-rf .lb-mn-rh { animation: none; }
@keyframes lb-mn-square { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }
html.calm-motion .lb-mn-wc, html.calm-motion .lb-mn-warrow, html.calm-motion .lb-mn-whead { animation: none; }
/* Slots: the treasure hall's gilt reel frame between two red banners, three reel windows drifting */
.lb-mn-hall { display: flex; align-items: flex-start; gap: 10px; margin-top: -16px; }
.lb-mn-banner { width: 16px; height: 88px; margin-top: -8px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
    background: linear-gradient(90deg, #5c0a14, #a3172a 50%, #5c0a14); box-shadow: inset 0 3px 0 #d4a64a; }
.lb-mn-reels { display: flex; gap: 5px; padding: 6px; border-radius: 6px; background: linear-gradient(180deg, #1a1208, #0b0804);
    border: 3px solid #c9973f; box-shadow: 0 0 0 1px #5a3d12, inset 0 0 0 1px rgba(253,230,138,.35), 0 10px 18px rgba(0,0,0,.55), 0 0 22px rgba(251,191,36,.18); }
.lb-mn-reel { width: 44px; height: 88px; overflow: hidden; border-radius: 3px; background: linear-gradient(180deg, #08070a, #1d1610 50%, #08070a);
    box-shadow: inset 0 0 0 1px rgba(201,151,63,.35); }
.lb-mn-strip { display: flex; flex-direction: column; animation: lb-mn-drift var(--d) linear infinite; }
.lb-mn-sym { flex: none; width: 44px; height: 44px; padding: 4px; }
@keyframes lb-mn-drift { to { transform: translateY(-50%); } }
/* Neo Tokyo: the Rain Market (minis.js 'neo-tokyo'): the Chrome Lotus's face, its five glass tubes ticking over one cell at
   a time behind the shutter's chain link, shard plates (the shell's gold, no value) blinking in, rain slanting past and
   the street's puddle under it. Motion is transform / opacity only; the glows are fixed box-shadows. Still under reduced
   motion (the .lb-mini rule above) and under low graphics (below), whichever card is the one that moves. */
.lb-mn-neo { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 22px; overflow: hidden;
    background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(123,44,255,.32), transparent 70%),
        linear-gradient(180deg, #0c0620, #12061f 55%, #07030f); }
/* the megastructures behind: four dark towers rising from the street (each a mask layer), a few windows lit on them */
.lb-mn-neo::before { content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle, rgba(25,227,255,.55) 0 .8px, transparent 1.3px) 3px 5px / 11px 13px,
        radial-gradient(circle, rgba(255,46,136,.5) 0 .8px, transparent 1.3px) 8px 1px / 17px 19px, #1b0e33;
    -webkit-mask: linear-gradient(#000, #000) 0 100% / 19% 116px no-repeat, linear-gradient(#000, #000) 25% 100% / 11% 92px no-repeat,
        linear-gradient(#000, #000) 76% 100% / 12% 100px no-repeat, linear-gradient(#000, #000) 100% 100% / 17% 124px no-repeat;
    mask: linear-gradient(#000, #000) 0 100% / 19% 116px no-repeat, linear-gradient(#000, #000) 25% 100% / 11% 92px no-repeat,
        linear-gradient(#000, #000) 76% 100% / 12% 100px no-repeat, linear-gradient(#000, #000) 100% 100% / 17% 124px no-repeat; }
.lb-mn-nsign { position: absolute; left: 8%; top: 42px; width: 12px; height: 66px; border-radius: 2px; border: 1.5px solid #ff2e88;
    background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(255,46,136,.75) 5px 8px, transparent 8px 12px) 3px 0 / 4px 100% no-repeat, rgba(40,6,28,.7);
    box-shadow: 0 0 8px rgba(255,46,136,.55), inset 0 0 4px rgba(255,46,136,.4); }
.lb-mn-nsign.b { left: auto; right: 8%; top: 48px; height: 54px; border-color: #19e3ff;
    background: repeating-linear-gradient(180deg, transparent 0 4px, rgba(25,227,255,.75) 4px 7px, transparent 7px 11px) 3px 0 / 4px 100% no-repeat, rgba(4,30,40,.7);
    box-shadow: 0 0 8px rgba(25,227,255,.5), inset 0 0 4px rgba(25,227,255,.35); }
.lb-mn-nface { position: relative; padding: 7px 8px; border-radius: 6px; border: 2px solid #ff2e88;
    background: repeating-linear-gradient(45deg, rgba(160,170,200,.09) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(160,170,200,.09) 0 1px, transparent 1px 6px), #0a0614;
    box-shadow: 0 0 0 1px rgba(25,227,255,.35), 0 0 14px rgba(255,46,136,.45), inset 0 0 12px rgba(0,0,0,.8), 0 10px 18px rgba(0,0,0,.6); }
.lb-mn-ntubes { position: relative; display: flex; gap: 6px; }
.lb-mn-ntube { position: relative; width: 30px; height: 78px; overflow: hidden; border-radius: 9px;
    background: linear-gradient(90deg, rgba(25,227,255,.16), rgba(8,4,20,.92) 28%, rgba(8,4,20,.92) 72%, rgba(255,46,136,.14));
    box-shadow: inset 0 0 0 1px rgba(25,227,255,.45), inset 0 3px 0 rgba(200,210,240,.35), inset 0 -3px 0 rgba(200,210,240,.25); }
.lb-mn-ntube::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px), linear-gradient(90deg, transparent 18%, rgba(255,255,255,.14) 26%, transparent 34%); }
.lb-mn-nstrip { display: flex; flex-direction: column; animation: lb-mn-ntick var(--t) infinite; animation-delay: var(--o); }
.lb-mn-nstrip b { flex: none; display: grid; place-items: center; width: 30px; height: 26px; }
.lb-mn-nstrip svg { width: 19px; height: 19px; filter: drop-shadow(0 0 2px currentColor); }
/* ticking over: six one-cell snaps a lap (a small overshoot, then a hold), the strip's last three cells repeat its first */
@keyframes lb-mn-ntick {
    0%, 12% { transform: translateY(0); animation-timing-function: cubic-bezier(.3,1.5,.6,1); }
    16.7%, 28.7% { transform: translateY(-26px); animation-timing-function: cubic-bezier(.3,1.5,.6,1); }
    33.3%, 45.3% { transform: translateY(-52px); animation-timing-function: cubic-bezier(.3,1.5,.6,1); }
    50%, 62% { transform: translateY(-78px); animation-timing-function: cubic-bezier(.3,1.5,.6,1); }
    66.7%, 78.7% { transform: translateY(-104px); animation-timing-function: cubic-bezier(.3,1.5,.6,1); }
    83.3%, 95.3% { transform: translateY(-130px); animation-timing-function: cubic-bezier(.3,1.5,.6,1); }
    100% { transform: translateY(-156px); }
}
.lb-mn-nplate { position: absolute; left: calc(var(--x) * 36px + 2px); top: calc(var(--y) * 26px + 1px); width: 26px; height: 24px; border-radius: 4px;
    border: 1.5px solid #f2cf6b; background: radial-gradient(circle at 50% 45%, rgba(25,227,255,.35), rgba(10,6,24,.95) 70%);
    box-shadow: 0 0 6px rgba(242,207,107,.5); animation: var(--nshard, lb-mn-nshard) 6s ease-out infinite; animation-delay: var(--d); }
.lb-mn-nplate::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; rotate: 45deg;
    background: linear-gradient(135deg, #e6fdff, #19e3ff 55%, #0b6b84); box-shadow: 0 0 5px rgba(25,227,255,.8); }
@keyframes lb-mn-nshard { 0% { opacity: 0; transform: scale(.55); } 6% { opacity: 1; transform: scale(1.08); } 10%, 60% { opacity: 1; transform: none; }
    68%, 100% { opacity: 0; transform: none; } }
.lb-mn-npuddle { position: absolute; left: 12%; right: 12%; bottom: 14px; height: 10px; border-radius: 50%; opacity: .55;
    background: linear-gradient(90deg, transparent, rgba(255,46,136,.6) 30%, rgba(25,227,255,.55) 70%, transparent); }
.lb-mn-nrain { position: absolute; inset: 0; overflow: hidden; }
.lb-mn-nrain i { position: absolute; left: var(--x); top: -24px; width: 1px; height: 20px; rotate: 14deg;
    background: linear-gradient(180deg, transparent, rgba(200,232,255,.75)); transform: translateY(var(--y));
    animation: lb-mn-nrain var(--t) linear infinite; animation-delay: var(--d); }
@keyframes lb-mn-nrain { from { transform: translateY(0); } to { transform: translateY(170px); } }
/* Reduce flashing (Neo Tokyo's own choice): a plate fades in and out slowly, no pop. (A variable, so the rules that
   hold every loop still - reduced motion, low graphics - still win.) */
.lb-mini.lb-calm-flash .lb-mn-neo { --nshard: lb-mn-nshard-calm; }
@keyframes lb-mn-nshard-calm { 0% { opacity: 0; } 18%, 56% { opacity: 1; } 74%, 100% { opacity: 0; } }
/* Low graphics (NEO_TOKYO_PLAN.md 3.1: still under low graphics): every part holds its first pose, even as the one that moves. */
html.gfx-low .lb-mn-neo *, html.gfx-low .lb-mn-neo *::before, html.gfx-low .lb-mn-neo *::after { animation: none; }
html.gfx-low .lb-mn-nstrip svg { filter: none; }
/* Frostwake: the Hold & Spin in Valhalla (minis.js 'frostwake'): oak cells under a roof of gilded shields; coins (gold, no
   value) lock in one by one, then the row of painted shields above falls away (a Shieldfall). Moved by classes and
   transitions from its tick (still under reduced motion and low graphics). */
.lb-mn-frost { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 14px; overflow: hidden;
    background: radial-gradient(ellipse 70% 55% at 50% 100%, rgba(255,150,60,.35), transparent 70%), linear-gradient(180deg, #1a0f07, #2e1a0c 60%, #120a05); }
.lb-mn-fpeaks { position: absolute; left: -6px; right: -6px; top: 0; height: 30px; opacity: .85;
    background: radial-gradient(circle closest-side, #e8b24a 0 30%, #8a5a1c 60% 86%, transparent 90%) 0 0 / 22px 15px,
                radial-gradient(circle closest-side, #c9963a 0 30%, #6e4616 60% 86%, transparent 90%) 11px 8px / 22px 15px; }
.lb-mn-fwall { position: relative; display: grid; gap: 3px; padding: 5px; border-radius: 5px; background: #140b05;
    box-shadow: 0 0 0 2px #6e4b2e, 0 0 0 3px rgba(255,214,150,.3), 0 10px 18px rgba(0,0,0,.6); }
.lb-mn-fseal, .lb-mn-fgrid { display: grid; grid-template-columns: repeat(5, 26px); gap: 3px; }
.lb-mn-fgrid i, .lb-mn-fseal i { position: relative; height: 22px; border-radius: 3px;
    background: linear-gradient(180deg, #2a180c, #3e2614); box-shadow: inset 0 0 0 1px rgba(214,170,110,.3); }
.lb-mn-fseal i { background: radial-gradient(circle closest-side, #b9c2c8 0 18%, #2a2622 18% 26%, transparent 26% 82%, #2a2622 82% 96%, transparent 96%),
    conic-gradient(#9b2f25 0 25%, #e8dcc4 0 50%, #9b2f25 0 75%, #e8dcc4 0);
    -webkit-mask: radial-gradient(circle closest-side, #000 0 95%, transparent 96%); mask: radial-gradient(circle closest-side, #000 0 95%, transparent 96%);
    box-shadow: none; transition: opacity .5s, transform .5s; }
.lb-mn-fseal i:nth-child(even) { background: radial-gradient(circle closest-side, #b9c2c8 0 18%, #2a2622 18% 26%, transparent 26% 82%, #2a2622 82% 96%, transparent 96%),
    conic-gradient(#2f5466 0 25%, #e8dcc4 0 50%, #2f5466 0 75%, #e8dcc4 0); }
.lb-mn-fseal { border-radius: 3px; background: linear-gradient(180deg, #5a3c24, #24160b); }
.lb-mn-fwall.open .lb-mn-fseal i { opacity: 0; transform: translateY(8px) rotate(8deg); }
.lb-mn-fgrid i::before { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: radial-gradient(circle at 38% 34%, #fff3c4, #f2cf6b 45%, #a8781f); box-shadow: 0 0 0 1.5px rgba(255,214,150,.55), 0 0 6px rgba(255,170,80,.5);
    opacity: 0; transform: scale(.5); transition: opacity .25s, transform .3s cubic-bezier(.3,1.6,.6,1); }
.lb-mn-fgrid i.c::before { opacity: 1; transform: none; }
.lb-mini.lb-calm-flash .lb-mn-fwall.open .lb-mn-fseal i { transition-duration: .6s; }
/* Valley of the Kings: five little reels in the false door's lapis frame under its lintel, glyphs drifting down them; the
   fourth reel turns to gold now and then (the Sacred symbol's expansion). The chamber's own colours are stone and paint:
   gold only for the expansion. Its loops hold still with the other minis' (not .run, reduced motion, low graphics). */
.lb-mn-tomb { display: flex; flex-direction: column; align-items: center; margin-top: -10px; }
.lb-mn-lintel { width: 176px; height: 10px; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #c8a874, #8a6a3e);
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); }
.lb-mn-preels { display: flex; gap: 3px; padding: 5px; background: linear-gradient(180deg, #0b1430, #060a18);
    border: 3px solid #1d3f7a; border-top: 0; box-shadow: 0 0 0 1px #0a1a3a, inset 0 0 0 1px rgba(143,220,215,.25), 0 10px 18px rgba(0,0,0,.6); }
.lb-mn-preel { position: relative; width: 30px; height: 78px; overflow: hidden; border-radius: 2px;
    background: linear-gradient(180deg, #050812, #121b33 50%, #050812); box-shadow: inset 0 0 0 1px rgba(92,200,194,.22); }
.lb-mn-pstrip { display: flex; flex-direction: column; animation: lb-mn-drift var(--d) linear infinite; }
.lb-mn-pstrip i { flex: none; width: 30px; height: 26px; padding: 3px 5px; }
.lb-mn-pstrip svg, .lb-mn-pgold svg { display: block; width: 100%; height: 100%; }
.lb-mn-pgold { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 4px; color: #3b2606; opacity: 0;
    background: linear-gradient(180deg, #fef3c7, #fbbf24 45%, #b45309); animation: lb-mn-gild 4.2s ease-in-out infinite; }
.lb-mn-pgold svg { height: 46px; }
@keyframes lb-mn-gild { 0%, 46%, 100% { opacity: 0; } 58%, 86% { opacity: 1; } }
html.calm-motion .lb-mn-pstrip, html.calm-motion .lb-mn-pgold { animation: none; }
/* Marigold Night: papel picado over a tiny 6 x 6 grid in the ofrenda's carved frame; one cluster (marigold cells) glows,
   dissolves into petals that rise and drift off, and comes back. Gold is for money: the cluster is marigold, not gold.
   Its loops hold still with the other minis' (not .run, reduced motion, low graphics: the board as it lands). */
.lb-mn-mg { display: flex; flex-direction: column; align-items: center; margin-top: 10px; }
.lb-mn-mgflags { display: flex; gap: 3px; margin-bottom: 5px; }
.lb-mn-mgflags i { width: 15px; height: 13px; clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); opacity: .9;
    transform-origin: 50% 0; animation: lb-mn-mgsway 2.4s ease-in-out var(--d) infinite alternate; }
@keyframes lb-mn-mgsway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.lb-mn-mggrid { position: relative; display: grid; grid-template-columns: repeat(6, 11px); gap: 2px; padding: 4px;
    border-radius: 3px; background: linear-gradient(180deg, #2a1650, #1c1240); border: 3px solid #8c4413;
    box-shadow: 0 0 0 1px #3d1d08, 0 10px 18px rgba(0,0,0,.6); }
.lb-mn-mggrid > i { width: 11px; height: 11px; border-radius: 3px; opacity: .85; }
.lb-mn-mggrid > i.c { background: #f2891b; animation: lb-mn-mgcell 4.8s ease-in-out infinite; }
@keyframes lb-mn-mgcell { 0%, 30% { opacity: .85; box-shadow: none; transform: scale(1); }
    40%, 48% { opacity: 1; box-shadow: 0 0 6px 2px rgba(242,137,27,.8); transform: scale(1.08); }
    60%, 80% { opacity: 0; transform: scale(.4); } 92%, 100% { opacity: .85; transform: scale(1); } }
.lb-mn-mgpetals { position: absolute; inset: 0; pointer-events: none; }
.lb-mn-mgpetals i { position: absolute; left: var(--x); top: var(--y); width: 5px; height: 7px; border-radius: 60% 0 60% 0;
    background: #f59e0b; opacity: 0; animation: lb-mn-mgpetal 4.8s ease-out var(--t) infinite; }
@keyframes lb-mn-mgpetal { 0%, 50% { opacity: 0; transform: translateY(0) rotate(0); }
    58% { opacity: 1; } 84%, 100% { opacity: 0; transform: translateY(-46px) rotate(160deg); } }
html.calm-motion .lb-mn-mg *, html.gfx-low .lb-mn-mg * { animation: none; }
/* Scratch Kiosk: a bronze ticket, its silver foil spots wiped in turn (the foil returns, so nothing is ever "revealed") */
.lb-mn-scratch { position: relative; margin-top: -14px; }
.lb-mn-tk { position: relative; width: 132px; padding: 6px 8px 8px; border-radius: 6px; rotate: -4deg;
    background: linear-gradient(160deg, #b07a43, #7a4a22 60%, #5e3818); box-shadow: 0 8px 16px rgba(0,0,0,.6), inset 0 0 0 1px rgba(253,230,138,.35); }
.lb-mn-band { display: block; width: 62%; height: 9px; margin: 2px 0 7px; border-radius: 2px; background: linear-gradient(90deg, #fde68a, #e2b44a); opacity: .9; }
.lb-mn-seal { position: absolute; right: 6px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff1b0, #e2b44a 50%, #8a5a14); box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.lb-mn-spots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 4px; background: #efe4c8; }
.lb-mn-spots i { position: relative; height: 22px; border-radius: 3px; display: grid; place-items: center; background: #f8f1de; }
.lb-mn-spots b { font: 700 13px/1 Georgia, serif; color: #6e4421; }
.lb-mn-spots i::after { content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 2px, transparent 2px 4px), linear-gradient(135deg, #e4e4e7, #9ca3af 45%, #f4f4f5 60%, #a1a1aa);
    animation: lb-mn-wipe 7.2s ease-in-out infinite; animation-delay: calc(var(--d) * .9s); }
@keyframes lb-mn-wipe { 0%, 8% { clip-path: inset(0 0 0 0); } 16%, 70% { clip-path: inset(0 0 0 100%); } 78%, 100% { clip-path: inset(0 0 0 0); } }
.lb-mn-code { display: block; width: 46px; height: 8px; margin: 6px 0 0 auto;
    background: repeating-linear-gradient(90deg, #1c1917 0 1px, transparent 1px 3px, #1c1917 3px 5px, transparent 5px 6px), #f4ecd6; }
.lb-mn-nail { position: absolute; width: 16px; height: 16px; border-radius: 50%; left: 18px; top: 26px;
    background: radial-gradient(circle at 35% 30%, #fde68a, #a8741c 70%); box-shadow: 0 2px 4px rgba(0,0,0,.6); animation: lb-mn-nail 5.4s ease-in-out infinite; }
@keyframes lb-mn-nail { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(86px, 4px); } 50% { transform: translate(10px, 28px); } 75% { transform: translate(90px, 30px); } }
/* Crossroad: the road from above (minis.js crossroad): the kerb, a cycle lane, two asphalt lanes and a bus lane under the
   zebra, the hen hopping across, a car passing the lane ahead */
.lb-mn-cross { position: relative; width: 196px; height: 92px; margin-top: -12px; display: flex; border-radius: 4px; overflow: hidden;
    background: #3b3f46; box-shadow: 0 8px 16px rgba(0,0,0,.5); }
.lb-mn-cross .kerb { flex: none; width: 36px; background: repeating-linear-gradient(180deg, #b8b2a6 0 13px, #a39d91 13px 14px); box-shadow: inset -3px 0 0 #8b8577; }
.lb-mn-cross .ln { flex: 1; border-right: 2px dashed rgba(255,255,255,.7); }
.lb-mn-cross .ln:nth-of-type(1) { background: #2f5d3f; }
.lb-mn-cross .ln:last-of-type { border-right: 2px solid #facc15; background: #5a2a2a; }
.lb-mn-cross .zebra { position: absolute; left: 36px; right: 0; top: 34px; height: 24px; pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 6px, transparent 6px 12px); }
.lb-mn-cross .hen { position: absolute; top: 32px; left: calc(8px + var(--lane, 0) * 40px); width: 24px; height: 20px;
    filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)); transition: left .32s cubic-bezier(.34,1.56,.64,1); }
.lb-mn-cross .hen svg { display: block; width: 100%; height: 100%; }
.lb-mn-cross .car { position: absolute; top: -30px; left: calc(36px + (var(--lane, 1) - 1) * 40px + 11px); width: 18px; height: 28px; border-radius: 4px;
    background: var(--paint, #dc2626); box-shadow: inset 0 5px 0 rgba(15,23,42,.65), inset 0 -5px 0 rgba(15,23,42,.45), 0 4px 6px rgba(0,0,0,.5); }
.lb-mn-cross .car.go { animation: lb-mn-car .8s linear; }
@keyframes lb-mn-car { from { top: -30px; } to { top: 96px; } }
/* Video Poker (minis.js 'video-poker'): a small blue machine screen in a chrome rim, the paytable's yellow rows, five cards
   turning up in turn, the HELD lamp blinking under the first (steady under reduced flashing; no pay is ever lit) */
.lb-mn-vp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 18px;
    background: radial-gradient(circle at 50% 40%, #1d3fa8, #050a1c 75%); }
.lb-mn-vpscr { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 9px 7px; border-radius: 7px;
    background: radial-gradient(130% 120% at 50% 30%, #1530c4, #0d22a8 55%, #040b52);
    box-shadow: 0 0 0 3px #c3cad8, 0 0 0 4px rgba(0,0,0,.6), 0 10px 18px rgba(0,0,0,.55), inset 0 0 12px rgba(0,0,20,.6); }
.lb-mn-vpt { display: grid; grid-template-columns: repeat(2, 46px); gap: 2px 8px; align-self: stretch; justify-content: center; }
.lb-mn-vpt i { height: 3px; border-radius: 2px; background: linear-gradient(90deg, #ffe838 0 64%, transparent 64% 78%, #ffe838 78%); opacity: .8; }
.lb-mn-vph { display: flex; gap: 3px; }
.lb-mn-vpc { position: relative; display: grid; padding-bottom: 9px; }
.lb-mn-vpc > b, .lb-mn-vpc > s { grid-area: 1 / 1; display: block; text-decoration: none; transition: opacity .16s; }
.lb-mn-vpc > b { opacity: 0; } .lb-mn-vpc.up > b { opacity: 1; } .lb-mn-vpc.up > s { opacity: 0; }
.lb-mn-vpc > u { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font: 800 6.5px/1 'Inter', sans-serif;
    letter-spacing: .06em; text-decoration: none; color: #ff2b2b; opacity: 0; }
.lb-mn-vpc.held.up > u { opacity: 1; animation: lb-mn-vpheld 1s steps(1) infinite; }
@keyframes lb-mn-vpheld { 0% { opacity: 1; } 50% { opacity: .25; } }
.lb-calm-flash .lb-mn-vpc.held.up > u, html.calm-motion .lb-mn-vpc.held.up > u { animation: none; }
html.gfx-low .lb-mn-vpscr { box-shadow: 0 0 0 3px #c3cad8; }
/* Circuit Breaker's gauge (minis.js): the dial on the board green, the needle turned by its tick, the socket LEDs. */
.lb-mn-cb { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding-bottom: 18px; background: radial-gradient(circle at 50% 42%, #1f6b4a 0, #0b1410 78%); }
.lb-mn-cb svg { width: 62%; max-width: 132px; overflow: visible; }
.lb-mn-cb .arc { fill: none; stroke: url(#lb-mn-cbg); stroke-width: 6; stroke-linecap: round; }
.lb-mn-cb .line { stroke: #f4f1e6; stroke-width: 2.2; }
.lb-mn-cb .ndl { stroke: #ffcf6b; stroke-width: 2.6; stroke-linecap: round; transform-box: view-box; transform-origin: 50px 52px;
    transition: transform .2s ease-out; }
.lb-mn-cb circle { fill: #c57b3a; }
.lb-mn-cbled { display: flex; gap: 6px; }
.lb-mn-cbled i { width: 7px; height: 7px; border-radius: 50%; background: #163126; box-shadow: inset 0 0 0 1px #2f5c48; transition: background .15s; }
.lb-mn-cbled i.on { background: #ffb347; }
html.calm-motion .lb-mn-cb .ndl { transition: none; }
/* Spite (minis.js spite): the oxblood baize, a ladder of cards climbing from the Ace a card at a time (each drops onto the
   one below), the leather glove landing beside it now and then; under reduced motion the frame is still (minis.js) */
.lb-mn-sp { position: absolute; inset: 0; background: radial-gradient(circle at 46% 42%, #5a1a22, #120709 78%); }
.lb-mn-spl { position: absolute; left: calc(50% - 72px); top: calc(50% - 2px); }
.lb-mn-spl i { position: absolute; left: calc(var(--i) * 16px); top: calc(var(--i) * -8px); display: block; opacity: 0;
    transform: translateY(-10px); transition: opacity .2s, transform .28s cubic-bezier(.2,.9,.3,1.2); filter: drop-shadow(0 3px 3px rgba(0,0,0,.55)); }
.lb-mn-spl i.on { opacity: 1; transform: none; }
.lb-mn-spg { position: absolute; left: calc(50% + 44px); top: calc(50% - 6px); width: 30px; height: 37px; opacity: 0;
    transform: translateY(-26px) rotate(-30deg) scale(1.3); transition: opacity .18s, transform .34s cubic-bezier(.3,1.5,.5,1);
    filter: drop-shadow(0 4px 3px rgba(0,0,0,.6)); }
.lb-mn-spg.down { opacity: 1; transform: rotate(14deg); }
.lb-mn-spg svg { display: block; width: 100%; height: 100%; }
html.calm-motion .lb-mn-spl i, html.calm-motion .lb-mn-spg { transition: opacity .2s; transform: none; }
html.calm-motion .lb-mn-spg.down { transform: rotate(14deg); }
/* Riverboat Run (minis.js riverboat): the river at dusk in four lanes, the timber pier on the right, the steamers nudging up
   a length at a time (a crossfade under reduced motion), one buoy's card turning face up */
.lb-mn-rb { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 26px 40px 14px 12px;
    background: linear-gradient(180deg, #1f5a62 0%, #e7a14a 20%, #123540 30%, #0b2129 100%); }
.lb-mn-rb .pier { position: absolute; right: 12px; top: 26%; bottom: 14px; width: 14px; border-radius: 2px;
    background: repeating-linear-gradient(180deg, #5a3b22 0 5px, #3a2618 5px 6px); box-shadow: -2px 0 0 #b59a4a, 0 4px 8px rgba(0,0,0,.5); }
.lb-mn-rb .lane { position: relative; height: 24px; border-bottom: 1px solid rgba(231,161,74,.16); }
.lb-mn-rb .boat { position: absolute; left: calc(var(--p, 0) * 40px); bottom: 1px; width: 42px; height: 22px;
    filter: drop-shadow(0 2px 1px rgba(0,0,0,.5)); transition: left .4s cubic-bezier(.3,.7,.3,1); }
.lb-mn-rb .boat svg { display: block; width: 100%; height: 100%; }
.lb-mn-rb .buoy { position: absolute; top: 4px; left: calc(12px + 3 * 40px); display: grid; }
.lb-mn-rb .buoy > b, .lb-mn-rb .buoy > s { grid-area: 1 / 1; display: block; text-decoration: none; transition: opacity .3s; }
.lb-mn-rb .buoy > b { opacity: 0; } .lb-mn-rb .buoy.up > b { opacity: 1; } .lb-mn-rb .buoy.up > s { opacity: 0; }
html.calm-motion .lb-mn-rb .boat { transition: left 0s, opacity .2s; }
/* The Lido (minis.js lido): a strip of turquoise sea with its surf over pale sand (cream, never gold), a 3 x 3 patch of
   umbrellas popping open in their stripes; a completed line lifts (a fade in place under reduced motion) */
.lb-mn-ld { position: absolute; inset: 0; background: linear-gradient(180deg, #8fd8f0 0 14%, #1fb5c4 14% 30%, #f4f1e6 30% 32%, #efe3c4 32% 100%); }
.lb-mn-ld .sea { position: absolute; left: 0; right: 0; top: 27%; height: 6px;
    background: radial-gradient(circle at 6px 0, transparent 5px, #fff 5.5px 6.5px, transparent 7px) 0 0 / 12px 6px repeat-x; opacity: .8; }
.lb-mn-ld .beach { position: absolute; left: 50%; top: 64%; transform: translate(-50%, -50%); display: grid;
    grid-template-columns: repeat(3, 38px); gap: 4px 14px; }
.lb-mn-ld .u { position: relative; width: 38px; height: 38px; filter: drop-shadow(0 3px 1px rgba(107,74,43,.28)); }
.lb-mn-ld .u svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lb-mn-ld .u .o { opacity: 0; transform: scale(.35, .2); transform-origin: 15px 6px; transition: opacity .18s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.lb-mn-ld .u .f { transition: opacity .15s; }
.lb-mn-ld .u.open .o { opacity: 1; transform: none; }
.lb-mn-ld .u.open .f { opacity: 0; }
.lb-mn-ld .u svg { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.lb-mn-ld .u.lift svg { transform: translateY(-4px); }
html.calm-motion .lb-mn-ld .u .o, html.calm-motion .lb-mn-ld .u svg { transition: opacity .25s; transform: none; }
html.calm-motion .lb-mn-ld .u.lift { filter: drop-shadow(0 0 4px rgba(255,255,255,.9)); }
html.gfx-low .lb-mn-ld .u { filter: none; }
/* Roost: the treehouse at sunset in miniature - the sun on the treeline, a round wooden table, the nest set in it (a ring
   of twigs round the pile), a card flying in from a seat, four seats */
.lb-mn-rk { position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(255,214,140,.55) 0 5%, rgba(255,170,100,.22) 6%, transparent 22%),
                linear-gradient(180deg, transparent 0 22%, rgba(224,116,79,.22) 34%, rgba(46,26,42,.5) 40%, transparent 46%); }
.lb-mn-rk::before { content: ''; position: absolute; left: 50%; top: 58%; width: 74%; height: 50%; transform: translate(-50%, -50%); border-radius: 50%;
    background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(40,20,8,.45) 9px 10px), linear-gradient(180deg, #9a6239, #6c4024);
    box-shadow: 0 5px 0 #4a2a16, 0 10px 16px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,196,130,.5); }
.lb-mn-rk .nest { position: absolute; left: 50%; top: 56%; width: 46%; height: 30%; transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(ellipse at 50% 45%, #2a1c12 30%, #4a3020 62%, #2a1a10 72%, transparent 74%),
                repeating-linear-gradient(28deg, transparent 0 5px, rgba(140,100,60,.5) 5px 6px); }
.lb-mn-rk .pile, .lb-mn-rk .drop { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: block; }
.lb-mn-rk .drop { transform: translate(-260%, -230%) rotate(-24deg); opacity: 0; }
.lb-mn-rk .drop.go { transform: translate(-50%, -50%) rotate(6deg); opacity: 1; transition: transform .55s cubic-bezier(.3,.7,.3,1), opacity .15s; }
.lb-mn-rk .lb-mn-ring i:nth-child(1) { left: 14%; top: 64%; }
.lb-mn-rk .lb-mn-ring i:nth-child(2) { left: 22%; top: 20%; }
.lb-mn-rk .lb-mn-ring i:nth-child(3) { left: calc(78% - 16px); top: 20%; }
.lb-mn-rk .lb-mn-ring i:nth-child(4) { left: calc(86% - 16px); top: 64%; }
html.gfx-low .lb-mn-rb .boat { filter: none; }
/* Six Tricks (minis.js tricks): the Palace Theatre's stage, crimson to night, the hat under a limelight follow-spot, tricks
   rising out of it onto the mark (ivory playbill cards), six marks round the stage. Reduced motion: the card fades in place. */
.lb-mn-sx { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 108%, #7a1424 0%, #3a0a14 46%, #14040a 80%); }
.lb-mn-sx .spot { position: absolute; left: 50%; top: -8%; width: 70%; height: 92%; transform: translateX(-50%);
    background: radial-gradient(ellipse 34% 22% at 50% 88%, rgba(255,244,214,.34), transparent 70%),
                linear-gradient(180deg, rgba(255,244,214,.10), rgba(255,244,214,.04)); clip-path: polygon(44% 0, 56% 0, 86% 100%, 14% 100%); }
.lb-mn-sx .hat { position: absolute; left: 50%; top: 58%; width: 30px; height: 26px; transform: translate(-50%, -50%);
    background: linear-gradient(90deg, #0d0b10, #2a2430 50%, #0d0b10); border-radius: 3px 3px 2px 2px;
    box-shadow: 0 9px 0 -4px #15131a, inset 0 -6px 0 #7a1424; }
.lb-mn-sx .row { position: absolute; left: 50%; top: 82%; transform: translate(-50%, -50%); display: flex; gap: 3px; }
.lb-mn-sx .sx-mc { display: grid; place-items: center; width: 15px; height: 21px; border-radius: 2px; background: #f6efe0; color: #7a1424;
    font: 900 10px/1 'Playfair Display', Georgia, serif; box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.lb-mn-sx .rise { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%) scale(.6); opacity: 0; }
.lb-mn-sx .rise.go { transform: translate(-50%, 70%) scale(1); opacity: 1; transition: transform .55s cubic-bezier(.3,.7,.3,1), opacity .15s; }
.lb-mn-sx .lb-mn-ring i:nth-child(1) { left: 8%; top: 70%; }
.lb-mn-sx .lb-mn-ring i:nth-child(2) { left: 12%; top: 36%; }
.lb-mn-sx .lb-mn-ring i:nth-child(3) { left: 28%; top: 10%; }
.lb-mn-sx .lb-mn-ring i:nth-child(4) { left: calc(72% - 16px); top: 10%; }
.lb-mn-sx .lb-mn-ring i:nth-child(5) { left: calc(88% - 16px); top: 36%; }
.lb-mn-sx .lb-mn-ring i:nth-child(6) { left: calc(92% - 16px); top: 70%; }
html.calm-motion .lb-mn-sx .rise.go { transform: translate(-50%, 70%) scale(1); transition: opacity .2s; }
html.gfx-low .lb-mn-sx .sx-mc { box-shadow: none; }
/* Liar's Dice (minis.js 'liars-dice'): the Ridotto's round table, lagoon teal to night ink; two leather cups lift off their
   dice and a die slides into the Lagoon Dish. Reduced motion: the cups and the die fade in place. */
.lb-mn-ld { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 112%, #0f3b3c 0%, #0a2324 48%, #050f10 82%); }
.lb-mn-ld .table { position: absolute; left: 50%; top: 62%; width: 74%; height: 48%; transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(ellipse at 50% 40%, #1d5a52, #0f3b36 70%); box-shadow: 0 0 0 4px #4a2c18, 0 0 0 5px #c9a24a, 0 10px 16px rgba(0,0,0,.6); }
.lb-mn-ld .dish { position: absolute; left: 50%; top: 62%; width: 22px; height: 12px; transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(ellipse at 50% 40%, #2a7c78, #0e3e3c); box-shadow: 0 0 0 1.5px #c9a24a; }
.lb-mn-ld .heap { position: absolute; top: 60%; display: flex; gap: 2px; transform: translate(-50%, -50%); }
.lb-mn-ld .heap.a { left: 30%; }
.lb-mn-ld .heap.b { left: 70%; }
.lb-mn-ld .ld-md { display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); width: 9px; height: 9px; padding: 1px; border-radius: 2px;
    background: #f4ecd8; box-shadow: 0 1px 1px rgba(0,0,0,.55); box-sizing: border-box; }
.lb-mn-ld .ld-md i.p { border-radius: 50%; background: #2a1a10; }
.lb-mn-ld .cup { position: absolute; top: 60%; width: 24px; height: 26px; transform: translate(-50%, -78%); border-radius: 5px 5px 3px 3px / 3px 3px 3px 3px;
    background: linear-gradient(90deg, #3b1d10, #7a4424 45%, #4a2414); box-shadow: inset 0 -3px 0 #c9a24a, 0 4px 5px rgba(0,0,0,.55);
    transition: transform .55s cubic-bezier(.3,.7,.3,1); }
.lb-mn-ld .cup.a { left: 30%; }
.lb-mn-ld .cup.b { left: 70%; }
.lb-mn-ld.up .cup { transform: translate(-50%, -150%) rotate(-6deg); }
.lb-mn-ld.up .cup.b { transform: translate(-50%, -150%) rotate(6deg); }
.lb-mn-ld .slide { position: absolute; left: 70%; top: 60%; transform: translate(-50%, -50%); opacity: 0; }
.lb-mn-ld.go .slide { left: 50%; top: 62%; opacity: 1; transition: left .7s cubic-bezier(.3,.7,.3,1), top .7s, opacity .2s; }
.lb-mn-ld .lb-mn-ring i:nth-child(1) { left: 8%; top: 70%; }
.lb-mn-ld .lb-mn-ring i:nth-child(2) { left: 10%; top: 34%; }
.lb-mn-ld .lb-mn-ring i:nth-child(3) { left: 30%; top: 10%; }
.lb-mn-ld .lb-mn-ring i:nth-child(4) { left: calc(70% - 16px); top: 10%; }
.lb-mn-ld .lb-mn-ring i:nth-child(5) { left: calc(90% - 16px); top: 34%; }
.lb-mn-ld .lb-mn-ring i:nth-child(6) { left: calc(92% - 16px); top: 70%; }
html.calm-motion .lb-mn-ld .cup, html.calm-motion .lb-mn-ld.go .slide { transition: opacity .2s; }
html.gfx-low .lb-mn-ld .table, html.gfx-low .lb-mn-ld .cup, html.gfx-low .lb-mn-ld .ld-md { box-shadow: none; }
/* Backgammon (minis.js backgammon): the Caravanserai's lapis night, the cedar case with its points in ebony and walnut either
   side of the bar, a bone and an ebony checker stepping round the horseshoe, the bone cube on the bar turning over now and
   then. Reduced motion: the checkers fade in place and the cube holds (minis.js draws still frames only). */
/* Party Line (PARTY_LINE_PLAN.md 3.1): the switchboard's walnut panel, brass sockets, ruby / cobalt plugs, the connected line. */
.lb-mn-pl { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, #7a1c2a, #2a1430 48%, #0a1430 82%); }
.lb-mn-pl .panel { position: absolute; left: 50%; top: 50%; height: 78%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6%; padding: 5%; box-sizing: border-box; border-radius: 5px;
  background: linear-gradient(160deg, #5a3820, #3a2212 60%, #2a170b); box-shadow: inset 0 0 0 1px #8a6a3a, 0 4px 10px rgba(0,0,0,.45); }
.lb-mn-pl .panel > i { display: block; border-radius: 50%; background: radial-gradient(circle, #120a06 0 38%, #9a7a48 42% 60%, #4a3018 64%);
  transition: background .25s, box-shadow .3s; }
.lb-mn-pl .panel > i.trunk { background: radial-gradient(circle, #f2e6c8 0 34%, #9a7a48 38% 60%, #4a3018 64%); }
.lb-mn-pl .panel > i.r { background: radial-gradient(circle at 40% 35%, #ff8a8a, #c0283a 45%, #6a0c18 80%); }
.lb-mn-pl .panel > i.b { background: radial-gradient(circle at 40% 35%, #9ac0ff, #2a5cc8 45%, #0c2264 80%); }
.lb-mn-pl .panel > i.in { animation: lb-mn-plin .35s cubic-bezier(.3,.7,.3,1); }
.lb-mn-pl .panel > i.lit { box-shadow: 0 0 0 1.5px #ffe7a8, 0 0 7px 2px rgba(255, 210, 120, .75); }
.lb-mn-pl .strip { position: absolute; left: 50%; top: 50%; width: 0; height: 2px; background: #ffe7a8; border-radius: 1px; opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg); }
.lb-mn-pl .strip.on { width: 76%; opacity: .8; }
.lb-mn-pl .strip.run { transition: width .7s ease-out .2s, opacity .2s; }
@keyframes lb-mn-plin { 0% { transform: scale(1.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
html.calm-motion .lb-mn-pl .panel > i.in { animation: none; }
html.calm-motion .lb-mn-pl .strip.run { transition: opacity .3s; }
html.calm-flash .lb-mn-pl .panel > i.lit { box-shadow: 0 0 0 1.5px #ffe7a8; }
html.gfx-low .lb-mn-pl .panel, html.gfx-low .lb-mn-pl .panel > i.lit { box-shadow: none; }
.lb-mn-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #123a6b, #071330 78%); }
.lb-mn-bg .case { position: absolute; left: 8%; right: 8%; top: 14%; bottom: 14%; border-radius: 4px; background: #3b2414;
    box-shadow: 0 0 0 3px #8a4a25, 0 0 0 4px #efe5cf, 0 8px 14px rgba(0,0,0,.55); }
.lb-mn-bg .pts { position: absolute; left: 0; right: 0; height: 42%; display: flex; }
.lb-mn-bg .pts.top { top: 0; } .lb-mn-bg .pts.bot { bottom: 0; }
.lb-mn-bg .pts > i, .lb-mn-bg .pts > s { flex: 1; display: block; }
.lb-mn-bg .pts > i.e { background: #1b1410; } .lb-mn-bg .pts > i.w { background: #a8774a; }
.lb-mn-bg .pts.top > i { clip-path: polygon(8% 0, 92% 0, 50% 100%); }
.lb-mn-bg .pts.bot > i { clip-path: polygon(50% 0, 92% 100%, 8% 100%); }
.lb-mn-bg .bar { position: absolute; left: calc(600% / 13); width: calc(100% / 13); top: 0; bottom: 0; background: linear-gradient(90deg, #6a3a1c, #8a4a25 50%, #6a3a1c); }
.lb-mn-bg .ck { position: absolute; left: calc((var(--c, 0) + .5) * 100% / 13); top: calc(var(--r, 1) * 76% + 12%); width: 7%; aspect-ratio: 1;
    border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 2px 3px rgba(0,0,0,.6);
    transition: left .5s cubic-bezier(.3,.7,.3,1), top .5s cubic-bezier(.3,.7,.3,1), opacity .25s; }
.lb-mn-bg .ck.a { background: radial-gradient(circle at 35% 30%, #fffaf0, #efe5cf 45%, #cbbd9c); }
.lb-mn-bg .ck.b { background: radial-gradient(circle at 35% 30%, #5a4a40, #231914 50%, #0d0806); border: 1px solid #8a6a4a; box-sizing: border-box; }
.lb-mn-bg .ck.off { opacity: 0; transition: opacity .25s; }
.lb-mn-bg .cube { position: absolute; left: 50%; top: 50%; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center;
    border-radius: 3px; background: linear-gradient(145deg, #fffaf0, #e8dcc0 55%, #c9b994); box-shadow: 0 2px 4px rgba(0,0,0,.55); }
.lb-mn-bg .cube b { font: 900 9px/1 'Cinzel', Georgia, serif; color: #6b3a1a; }
.lb-mn-bg .cube.go { animation: lb-mn-bgcube .9s cubic-bezier(.3,.7,.3,1); }
@keyframes lb-mn-bgcube { 0% { transform: translate(-50%, -50%); } 45% { transform: translate(-50%, -90%) rotateX(180deg) scale(1.15); }
    100% { transform: translate(-50%, -50%) rotateX(360deg); } }
html.calm-motion .lb-mn-bg .ck { transition: opacity .2s; }
html.gfx-low .lb-mn-bg .case, html.gfx-low .lb-mn-bg .ck, html.gfx-low .lb-mn-bg .cube { box-shadow: none; }
/* Peak Run (minis.js peak-run, the Lounge's): the Lounge table from above (lounge_table.css's palette: walnut, aged brass,
   the teal Lounge cloth under the lamp, the room falling away into the dark), three peaks of cards on the cloth, a run
   climbing the left peak (each card lifts off to the waste, the card it uncovers turns), its summit beacon lighting in
   ember (never gold: gold is money). Reduced motion: the cards fade in place; reduce flashing: the beacon fades, no
   flare. */
.lb-mn-pr { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 58%, #2b2219, #120d09 70%, #0b0806); }
.lb-mn-pr .tbl { position: absolute; left: calc(50% - 96px); top: calc(44% - 24px); width: 192px; height: 86px; border-radius: 14px;
    background: linear-gradient(135deg, #7d4c2a, #57331b 55%, #6a3f22); box-shadow: 0 10px 22px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,222,170,.12); }
.lb-mn-pr .tbl::before { content: ''; position: absolute; inset: 3px; border-radius: 11px; border: 1px solid rgba(168,135,90,.6); }
.lb-mn-pr .cloth { position: absolute; inset: 7px; border-radius: 8px; box-shadow: inset 0 0 14px 2px rgba(0,0,0,.5);
    background: radial-gradient(ellipse 70% 62% at 50% 46%, rgba(255,236,200,.1), transparent 70%),
        radial-gradient(ellipse 85% 80% at 50% 42%, #237570 0%, #165450 52%, #0b302e 100%); }
.lb-mn-pr .cloth::after { content: ''; position: absolute; inset: 4px; border-radius: 5px; border: 1px solid rgba(239,228,203,.22); }
.lb-mn-pr .beacon { position: absolute; left: calc(50% - 60px); top: calc(44% - 12px); width: 8px; height: 8px; border-radius: 50%;
    background: #3b2a1a; transition: background .3s, box-shadow .3s; }
.lb-mn-pr .beacon.lit { background: #fb923c; box-shadow: 0 0 10px 4px rgba(251,146,60,.7); animation: lb-mn-pr-flare .7s ease-out; }
@keyframes lb-mn-pr-flare { 0% { box-shadow: 0 0 22px 10px rgba(255,214,170,.95); } 100% { box-shadow: 0 0 10px 4px rgba(251,146,60,.7); } }
.lb-mini.lb-calm-flash .lb-mn-pr .beacon.lit { animation: none; transition: background .4s, box-shadow .4s; }
.lb-mn-pr .peaks { position: absolute; left: calc(50% - 82px); top: 44%; width: 126px; height: 48px; }
.lb-mn-pr .c { position: absolute; left: var(--x); top: var(--y); display: grid; transition: transform .25s ease-out, opacity .25s; }
.lb-mn-pr .c > b, .lb-mn-pr .c > s { grid-area: 1 / 1; display: block; text-decoration: none; transition: opacity .25s; }
.lb-mn-pr .c > b { opacity: 0; } .lb-mn-pr .c.up > b { opacity: 1; } .lb-mn-pr .c.up > s { opacity: 0; }
.lb-mn-pr .c.gone { opacity: 0; transform: translate(40px, 14px) scale(.9); }
.lb-mn-pr .waste { position: absolute; left: calc(50% + 52px); top: calc(44% + 22px); display: grid; }
.lb-mn-pr .w { grid-area: 1 / 1; opacity: 0; transform: rotate(calc(var(--k) * 3deg - 6deg)); transition: opacity .2s; }
.lb-mn-pr .w.on { opacity: 1; }
.lb-mn-pr .cc-card { box-shadow: 0 1px 2px rgba(0,0,0,.45); }
html.calm-motion .lb-mn-pr .c.gone { transform: none; }
html.gfx-low .lb-mn-pr .cc-card, html.gfx-low .lb-mn-pr .tbl { box-shadow: none; }
html.gfx-low .lb-mn-pr .beacon.lit { box-shadow: none; animation: none; }
/* Klondike (minis.js klondike, the Lounge's): the same Lounge table from above as Peak Run's, the classic layout on its
   cloth (the stock and the waste, four foundations, seven columns fanned down); the low cards fly home one by one and
   the card under each turns up. Reduced motion: the cards fade in place. */
.lb-mn-kl { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 58%, #2b2219, #120d09 70%, #0b0806); }
.lb-mn-kl .tbl { position: absolute; left: calc(50% - 90px); top: calc(46% - 52px); width: 180px; height: 112px; border-radius: 14px;
    background: linear-gradient(135deg, #7d4c2a, #57331b 55%, #6a3f22); box-shadow: 0 10px 22px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,222,170,.12); }
.lb-mn-kl .tbl::before { content: ''; position: absolute; inset: 3px; border-radius: 11px; border: 1px solid rgba(168,135,90,.6); }
.lb-mn-kl .cloth { position: absolute; inset: 7px; border-radius: 8px; box-shadow: inset 0 0 14px 2px rgba(0,0,0,.5);
    background: radial-gradient(ellipse 70% 62% at 50% 46%, rgba(255,236,200,.1), transparent 70%),
        radial-gradient(ellipse 85% 80% at 50% 42%, #237570 0%, #165450 52%, #0b302e 100%); }
.lb-mn-kl .top { position: absolute; left: calc(50% - 64px); top: calc(46% - 42px); width: 128px; height: 20px; }
.lb-mn-kl .p { position: absolute; top: 0; display: grid; width: 14px; height: 19.6px; border-radius: 2px; }
.lb-mn-kl .p.stock { left: 0; } .lb-mn-kl .p.waste { left: 19px; }
.lb-mn-kl .p.f { box-shadow: inset 0 0 0 1px rgba(239,228,203,.25); }
.lb-mn-kl .p.f[data-f="0"] { left: 57px; } .lb-mn-kl .p.f[data-f="1"] { left: 76px; } .lb-mn-kl .p.f[data-f="2"] { left: 95px; } .lb-mn-kl .p.f[data-f="3"] { left: 114px; }
.lb-mn-kl .p.f b { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .25s, transform .3s ease-out; }
.lb-mn-kl .p.f b.on { opacity: 1; transform: none; }
.lb-mn-kl .cols { position: absolute; left: calc(50% - 64px); top: calc(46% - 17px); width: 128px; height: 60px; }
.lb-mn-kl .col { position: absolute; left: var(--x); top: 0; }
.lb-mn-kl .c { position: absolute; left: 0; top: var(--y); display: grid; transition: transform .3s ease-out, opacity .25s; }
.lb-mn-kl .c > b, .lb-mn-kl .c > s { grid-area: 1 / 1; display: block; text-decoration: none; transition: opacity .25s; }
.lb-mn-kl .c > b { opacity: 0; } .lb-mn-kl .c.up > b { opacity: 1; } .lb-mn-kl .c.up > s { opacity: 0; }
.lb-mn-kl .c.gone { opacity: 0; transform: translateY(-26px); }
.lb-mn-kl .cc-card { box-shadow: 0 1px 2px rgba(0,0,0,.45); }
html.calm-motion .lb-mn-kl .c.gone, html.calm-motion .lb-mn-kl .p.f b { transform: none; }
html.gfx-low .lb-mn-kl .cc-card, html.gfx-low .lb-mn-kl .tbl { box-shadow: none; }
/* Chess (minis.js chess, the Lounge's): the same Lounge table from above, the board on its cloth and the game's own pieces
   (chess_pieces.js) sliding through an opening. Reduced motion: the pieces cut to their squares. */
.lb-mn-ch { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 58%, #2b2219, #120d09 70%, #0b0806); }
.lb-mn-ch .tbl { position: absolute; left: calc(50% - 90px); top: calc(46% - 56px); width: 180px; height: 112px; border-radius: 14px;
    background: linear-gradient(135deg, #7d4c2a, #57331b 55%, #6a3f22); box-shadow: 0 10px 22px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,222,170,.12); }
.lb-mn-ch .tbl::before { content: ''; position: absolute; inset: 3px; border-radius: 11px; border: 1px solid rgba(168,135,90,.6); }
.lb-mn-ch .cloth { position: absolute; inset: 7px; border-radius: 8px; box-shadow: inset 0 0 14px 2px rgba(0,0,0,.5);
    background: radial-gradient(ellipse 70% 62% at 50% 46%, rgba(255,236,200,.1), transparent 70%),
        radial-gradient(ellipse 85% 80% at 50% 42%, #237570 0%, #165450 52%, #0b302e 100%); }
.lb-mn-ch .brd { position: absolute; left: calc(50% - 44px); top: calc(46% - 44px); width: 88px; height: 88px; outline: 3px solid #4b2c17;
    box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.lb-mn-ch .sqs { position: absolute; inset: 0; background: repeating-conic-gradient(#a87a4c 0 25%, #efd9b0 0 50%) 0 0 / 22px 22px; }
.lb-mn-ch .pc { position: absolute; width: 11px; height: 11px; transition: left .35s ease-out, top .35s ease-out; }
.lb-mn-ch .pc svg { display: block; width: 100%; height: 100%; }
html.calm-motion .lb-mn-ch .pc { transition: none; }
html.gfx-low .lb-mn-ch .tbl, html.gfx-low .lb-mn-ch .brd { box-shadow: none; }
/* Four in a Row (minis.js four-in-a-row, the Lounge's): the same Lounge table, the walnut frame standing on it, pearl and
   jade discs falling into their cells (behind the face, seen through its holes). Reduced motion: the discs appear. */
.lb-mn-fr { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 58%, #2b2219, #120d09 70%, #0b0806); }
.lb-mn-fr .tbl { position: absolute; left: calc(50% - 90px); top: calc(50% - 30px); width: 180px; height: 84px; border-radius: 14px;
    background: linear-gradient(135deg, #7d4c2a, #57331b 55%, #6a3f22); box-shadow: 0 10px 22px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,222,170,.12);
    transform: perspective(300px) rotateX(48deg); transform-origin: 50% 0; }
.lb-mn-fr .cloth { position: absolute; inset: 7px; border-radius: 8px; background: radial-gradient(ellipse 85% 80% at 50% 42%, #237570 0%, #165450 52%, #0b302e 100%); }
.lb-mn-fr .frm { position: absolute; left: calc(50% - 45px); top: calc(50% - 56px); width: 90px; height: 78px; overflow: hidden; border-radius: 4px 4px 0 0; }
.lb-mn-fr .back { position: absolute; left: 3px; top: 3px; right: 3px; bottom: 3px; background: #0f0804; }
.lb-mn-fr .d { position: absolute; width: 10px; height: 10px; margin: 1px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle at 35% 30%, #fffdf8, #d8cdb6 70%); transition: top .32s cubic-bezier(.45,0,.9,.5), opacity .1s; }
.lb-mn-fr .d.b { background: radial-gradient(circle at 35% 30%, #8fe0c6, #24826a 60%, #0f4a3b); }
.lb-mn-fr .d.on { opacity: 1; }
.lb-mn-fr .face { position: absolute; inset: 0; border-radius: 4px 4px 0 0;
    background: radial-gradient(circle at 6px 6px, transparent 4.6px, #5a3519 5.2px) 3px 3px / 12px 12px repeat;
    box-shadow: inset 0 0 0 3px #5a3519, inset 0 0 0 4px #3e2410, 0 4px 8px rgba(0,0,0,.5); }
html.calm-motion .lb-mn-fr .d { transition: opacity .15s; }
html.gfx-low .lb-mn-fr .tbl, html.gfx-low .lb-mn-fr .face { box-shadow: none; }
/* Checkers (minis.js checkers, the Lounge's): the same Lounge table from above, the board on its cloth and the men (the
   page's two-disc look, flat) sliding through an opening; a jumped man fades. Reduced motion: the men cut to their squares. */
.lb-mn-ck { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 58%, #2b1d19, #120b09 70%, #0b0706); }
.lb-mn-ck .tbl { position: absolute; left: calc(50% - 90px); top: calc(46% - 56px); width: 180px; height: 112px; border-radius: 14px;
    background: linear-gradient(135deg, #7d4c2a, #57331b 55%, #6a3f22); box-shadow: 0 10px 22px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,222,170,.12); }
.lb-mn-ck .tbl::before { content: ''; position: absolute; inset: 3px; border-radius: 11px; border: 1px solid rgba(168,135,90,.6); }
.lb-mn-ck .cloth { position: absolute; inset: 7px; border-radius: 8px; box-shadow: inset 0 0 14px 2px rgba(0,0,0,.5);
    background: radial-gradient(ellipse 70% 62% at 50% 46%, rgba(255,236,200,.1), transparent 70%),
        radial-gradient(ellipse 85% 80% at 50% 42%, #237570 0%, #165450 52%, #0b302e 100%); }
.lb-mn-ck .brd { position: absolute; left: calc(50% - 44px); top: calc(46% - 44px); width: 88px; height: 88px; outline: 3px solid #5a2a1d;
    box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.lb-mn-ck .sqs { position: absolute; inset: 0; background: repeating-conic-gradient(#efe0bf 0 25%, #3f6e4f 0 50%) 0 0 / 22px 22px; }
.lb-mn-ck .mn { position: absolute; width: 11px; height: 11px; transition: left .35s ease-out, top .35s ease-out, opacity .3s .2s; }
.lb-mn-ck .mn::before { content: ''; position: absolute; inset: 1.5px; border-radius: 50%; box-shadow: 0 1px 0 rgba(0,0,0,.5); }
.lb-mn-ck .mn.b::before { background: radial-gradient(circle at 36% 30%, #4a3a33, #1d1512 62%); }
.lb-mn-ck .mn.w::before { background: radial-gradient(circle at 36% 30%, #fff8ea, #e9d7b4 60%, #c8ae84); }
.lb-mn-ck .mn.off { opacity: 0; }
html.calm-motion .lb-mn-ck .mn { transition: none; }
html.gfx-low .lb-mn-ck .tbl, html.gfx-low .lb-mn-ck .brd { box-shadow: none; }
/* Ludo (minis.js ludo, the Lounge's): the same Lounge table from above, the cross board on its cloth (linen track, the four
   wood-stained yards, a brass centre) and four turned pawns hopping round the track. Reduced motion: the pawns cut to their squares. */
.lb-mn-lu { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 58%, #2b1d19, #120b09 70%, #0b0706); }
.lb-mn-lu .tbl { position: absolute; left: calc(50% - 90px); top: calc(46% - 56px); width: 180px; height: 112px; border-radius: 14px;
    background: linear-gradient(135deg, #7d4c2a, #57331b 55%, #6a3f22); box-shadow: 0 10px 22px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,222,170,.12); }
.lb-mn-lu .cloth { position: absolute; inset: 7px; border-radius: 8px; box-shadow: inset 0 0 14px 2px rgba(0,0,0,.5);
    background: radial-gradient(ellipse 85% 80% at 50% 42%, #237570 0%, #165450 52%, #0b302e 100%); }
.lb-mn-lu .brd { position: absolute; left: calc(50% - 45px); top: calc(46% - 45px); width: 90px; height: 90px; background:
    linear-gradient(#e2cfa8, #e2cfa8) 36px 0 / 18px 90px no-repeat, linear-gradient(#e2cfa8, #e2cfa8) 0 36px / 90px 18px no-repeat, #3a2414;
    outline: 3px solid #4f2e16; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.lb-mn-lu .yd { position: absolute; width: 34px; height: 34px; border-radius: 4px; }
.lb-mn-lu .yd.c { left: 1px; top: 1px; background: #7a2234; } .lb-mn-lu .yd.b { right: 1px; top: 1px; background: #2d4675; }
.lb-mn-lu .yd.j { right: 1px; bottom: 1px; background: #2b6c53; } .lb-mn-lu .yd.p { left: 1px; bottom: 1px; background: #a39886; }
.lb-mn-lu .ctr { position: absolute; left: 36px; top: 36px; width: 18px; height: 18px; background: radial-gradient(circle, #b08d58 0 30%, #6b4d26 70%); }
.lb-mn-lu .pw { position: absolute; width: 6px; height: 6px; border-radius: 50%; transition: left .3s ease-out, top .3s ease-out; box-shadow: 0 1px 1px rgba(0,0,0,.6); }
.lb-mn-lu .pw.c { background: #b54a5c; } .lb-mn-lu .pw.b { background: #6d8bc4; } .lb-mn-lu .pw.j { background: #6fbf9f; } .lb-mn-lu .pw.p { background: #fffaf0; }
html.calm-motion .lb-mn-lu .pw { transition: none; }
html.gfx-low .lb-mn-lu .tbl, html.gfx-low .lb-mn-lu .brd { box-shadow: none; }
/* Landmark (minis.js landmark, the Lounge's): the same Lounge table from above, the city's ring board on its cloth (linen
   lots tinted by district, plain corners, a midnight square in the middle) and four pieces stepping round. No gold
   (LOUNGE_PLAN rule 1). Reduced motion: the pieces cut to their lots. */
.lb-mn-lm { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 58%, #1c2136, #0b0d17 70%, #07080e); }
.lb-mn-lm .tbl { position: absolute; left: calc(50% - 90px); top: calc(46% - 56px); width: 180px; height: 112px; border-radius: 14px;
    background: linear-gradient(135deg, #7d4c2a, #57331b 55%, #6a3f22); box-shadow: 0 10px 22px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,222,170,.12); }
.lb-mn-lm .cloth { position: absolute; inset: 7px; border-radius: 8px; box-shadow: inset 0 0 14px 2px rgba(0,0,0,.5);
    background: radial-gradient(ellipse 85% 80% at 50% 42%, #2a3a66 0%, #1c2a4f 52%, #0d1530 100%); }
.lb-mn-lm .brd { position: absolute; left: calc(50% - 40px); top: calc(46% - 40px); width: 80px; height: 80px; background: #e6d9bb;
    outline: 3px solid #4f2e16; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.lb-mn-lm .lt { position: absolute; width: 10px; height: 10px; box-shadow: inset 0 0 0 .5px rgba(60,40,20,.45); background: #e6d9bb; }
.lb-mn-lm .lt.k { background: #3b4a6e; } .lb-mn-lm .lt.n { background: #d6c8a6; }
.lb-mn-lm .lt.d1 { background: #7d766d; } .lb-mn-lm .lt.d2 { background: #2e7f78; } .lb-mn-lm .lt.d3 { background: #874273; }
.lb-mn-lm .lt.d4 { background: #6650b0; } .lb-mn-lm .lt.d5 { background: #4f6d8a; } .lb-mn-lm .lt.d6 { background: #6f7a3f; }
.lb-mn-lm .lt.d7 { background: #45484f; }   /* static/js/landmark_page.js TINT: off the genre's set colours (LANDMARK_PLAN.md 1.2) */
.lb-mn-lm .sq { position: absolute; left: 10px; top: 10px; width: 60px; height: 60px; background: radial-gradient(circle at 50% 45%, #2b3b63, #172240 75%); }
.lb-mn-lm .pc { position: absolute; width: 5px; height: 5px; border-radius: 50%; transition: left .3s ease-out, top .3s ease-out; box-shadow: 0 1px 1px rgba(0,0,0,.6); }
.lb-mn-lm .pc.r { background: #e0883a; } .lb-mn-lm .pc.j { background: #4fa8e8; } .lb-mn-lm .pc.m { background: #9ccc4a; } .lb-mn-lm .pc.v { background: #efe6d2; }   /* the seats' stand-in discs */
html.calm-motion .lb-mn-lm .pc { transition: none; }
html.gfx-low .lb-mn-lm .tbl, html.gfx-low .lb-mn-lm .brd { box-shadow: none; }
/* Hearts (minis.js hearts, the Lounge's): the same Lounge table from above, a face-down hand along each edge, a trick played
   into the middle card by card (backs only) and gathered in. Reduced motion: the cards appear without sliding. */
.lb-mn-he { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 58%, #2b1d19, #120b09 70%, #0b0706); }
.lb-mn-he .tbl { position: absolute; left: calc(50% - 90px); top: calc(46% - 56px); width: 180px; height: 112px; border-radius: 14px;
    background: linear-gradient(135deg, #7d4c2a, #57331b 55%, #6a3f22); box-shadow: 0 10px 22px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,222,170,.12); }
.lb-mn-he .cloth { position: absolute; inset: 7px; border-radius: 8px; box-shadow: inset 0 0 14px 2px rgba(0,0,0,.5);
    background: radial-gradient(ellipse 85% 80% at 50% 42%, #237570 0%, #165450 52%, #0b302e 100%); }
.lb-mn-he .hd { position: absolute; display: flex; }
.lb-mn-he .hd i { width: 9px; height: 13px; margin-left: -4px; border-radius: 2px; background: linear-gradient(135deg, #7a1f35, #3d0f1b); border: 1px solid rgba(255,235,220,.55); }
.lb-mn-he .h0 { left: calc(50% - 14px); top: calc(46% + 36px); } .lb-mn-he .h2 { left: calc(50% - 14px); top: calc(46% - 50px); }
.lb-mn-he .h1 { left: calc(50% - 82px); top: calc(46% - 6px); rotate: 90deg; } .lb-mn-he .h3 { left: calc(50% + 56px); top: calc(46% - 6px); rotate: 90deg; }
.lb-mn-he .tk { position: absolute; width: 14px; height: 20px; border-radius: 2px; opacity: 0; transition: transform .3s ease-out, opacity .3s;
    background: linear-gradient(135deg, #f6efe2, #d9ccb4); border: 1px solid rgba(0,0,0,.35); box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.lb-mn-he .t0 { left: calc(50% - 7px); top: calc(46% + 2px); transform: translateY(26px); }
.lb-mn-he .t1 { left: calc(50% - 22px); top: calc(46% - 10px); transform: translateX(-40px); }
.lb-mn-he .t2 { left: calc(50% - 7px); top: calc(46% - 22px); transform: translateY(-26px); }
.lb-mn-he .t3 { left: calc(50% + 8px); top: calc(46% - 10px); transform: translateX(40px); }
.lb-mn-he .tk.on { opacity: 1; transform: none; }
html.calm-motion .lb-mn-he .tk { transition: none; }
html.gfx-low .lb-mn-he .tbl { box-shadow: none; }
/* Keno: the Keno Lounge (minis.js keno): the gilt board on the panelled wall, a blank 8 x 5 grid of navy tiles, five marks
   ringed, the draw lights landing in turn, the blower tumbling beside it (no numbers) */
.lb-mn-keno { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding-bottom: 18px;
    background: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 2px, transparent 2px 26px), linear-gradient(180deg, #6b4423, #3d2412 70%, #2a1608); }
.lb-mn-kframe { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 7px 7px; border-radius: 6px;
    background: #0d1220; border: 3px solid #d4a64a; box-shadow: 0 0 0 1px #6b4a12, inset 0 0 0 1px rgba(253,230,138,.3), 0 10px 18px rgba(0,0,0,.6), 0 0 18px rgba(251,191,36,.2); }
.lb-mn-krail { display: flex; gap: 3px; padding: 3px 5px; border-radius: 999px; background: #050608; border: 1px solid rgba(168,116,28,.45); }
.lb-mn-krail b { width: 7px; height: 7px; border-radius: 50%; background: #111318; box-shadow: inset 0 1px 2px rgba(0,0,0,.9); transition: background .2s; }
.lb-mn-krail b.on { background: radial-gradient(circle at 35% 30%, #fff, #cfc6b0 70%); }
.lb-mn-krail b.h { background: radial-gradient(circle at 35% 30%, #fffbeb, #f59e0b 70%); box-shadow: 0 0 5px rgba(245,158,11,.7); }
.lb-mn-kboard { display: grid; grid-template-columns: repeat(8, 13px); grid-auto-rows: 11px; gap: 2.5px; }
.lb-mn-kboard i { border-radius: 2px; background: linear-gradient(180deg, #27324d, #1a2238); border: 1px solid rgba(100,116,139,.45); transition: background .25s, box-shadow .25s; }
.lb-mn-kboard i.m { border-color: #f59e0b; box-shadow: inset 0 0 0 1px rgba(245,158,11,.55); }
.lb-mn-kboard i.d { background: #121827; border-color: rgba(51,65,85,.6); box-shadow: inset 0 0 0 2.5px #121827, inset 0 0 0 5px rgba(203,213,225,.5); }
.lb-mn-kboard i.h { background: radial-gradient(circle at 50% 30%, #fffbeb, #fde68a 35%, #f59e0b 75%); border-color: #fef3c7; box-shadow: 0 0 6px rgba(245,158,11,.7); }
.lb-mn-kblow { position: relative; width: 50px; height: 50px; margin-top: 30px; }
.lb-mn-kblow::after { content: ''; position: absolute; left: 50%; top: 100%; width: 10px; height: 26px; margin-left: -5px; background: linear-gradient(90deg, #6b4a12, #d4a64a, #6b4a12); }
.lb-mn-kglass, .lb-mn-glass { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
    background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.4), rgba(255,255,255,.06) 30%, rgba(20,20,30,.35) 70%);
    box-shadow: inset 0 0 0 2px rgba(212,166,74,.85), inset 0 -6px 12px rgba(0,0,0,.35); }
.lb-mn-kglass { --R: 25px; } .lb-mn-glass { --R: 35px; }                  /* the glass's radius: the balls' lanes are shares of it */
.lb-mn-kglass i, .lb-mn-glass i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #d6d3d1 70%); transform: rotate(var(--a)) translateX(calc(var(--r) * var(--R)));
    animation: lb-orbit var(--lap) linear infinite; animation-delay: calc(var(--d) * -1); }
.lb-mn-kglass i.g { background: radial-gradient(circle at 35% 30%, #fffbeb, #f59e0b 70%); }
/* A ball riding the air round its glass (Bingo's globe, Keno's blower, LuckyBall's drum): it orbits the centre on its own
   lane (--r x the glass's --R), tumbling as it goes, instead of bobbing in place. */
@keyframes lb-orbit {
    from { transform: rotate(var(--a)) translateX(calc(var(--r) * var(--R))) rotate(0deg); }
    to { transform: rotate(calc(var(--a) + 360deg)) translateX(calc(var(--r) * var(--R))) rotate(540deg); }
}
html.calm-motion .lb-mn-kglass i, html.calm-motion .lb-mn-glass i { animation: none; }
.lb-mn-limbo { display: flex; justify-content: center; margin-top: 12px; }
.lb-mn-well { position: relative; width: 112px; height: 92px; border-left: 3px solid #1a1522; border-right: 3px solid #1a1522;
  background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(124,58,237,.35), transparent 70%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 7px, transparent 7px 14px), linear-gradient(180deg, #0d0918, #160b24 70%, #23103a);
  box-shadow: inset 0 0 14px rgba(0,0,0,.9); }
.lb-mn-rim { position: absolute; left: -10px; right: -10px; top: -8px; height: 16px; border-radius: 50%; border: 2px solid rgba(196,181,253,.45);
  background: radial-gradient(ellipse, rgba(10,6,20,.95) 55%, rgba(76,29,149,.5)); }
.lb-mn-well i { position: absolute; left: -6px; right: -6px; height: 16px; margin-top: -8px; border-radius: 50%;
  border: 2px solid #b8891f; transition: border-color .2s, box-shadow .2s; }
.lb-mn-well i.on { border-color: #fde68a; box-shadow: 0 0 9px rgba(253,224,71,.75), inset 0 0 6px rgba(253,224,71,.4); }
.lb-mn-well i.limbo { border-color: #c4b5fd; box-shadow: 0 0 9px rgba(167,139,250,.75); }
.lb-mn-well b { position: absolute; left: 50%; top: 4%; width: 9px; height: 12px; margin: -6px 0 0 -4.5px; border-radius: 45%;
  background: radial-gradient(circle at 50% 45%, #fffbeb, #fbbf24 55%, #b45309); box-shadow: 0 0 10px 3px rgba(251,191,36,.45); }
.lb-mn-well b::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 2px; height: var(--chain, 0px); margin-left: -1px;
  background: repeating-linear-gradient(180deg, #6b5d52 0 3px, #2a2320 3px 5px); }   /* the chain */
/* Mines: the plate grid, a glint running across it */
.lb-mn-mines { display: grid; grid-template-columns: repeat(5, 17px); gap: 3px; margin-top: -14px; padding: 4px; background: #120d0a;
    box-shadow: 0 0 0 3px #5b3b20, 0 0 0 4px #2a190c; }
.lb-mn-mines i { width: 17px; height: 17px; border-radius: 4px 6px 3px 5px; background: linear-gradient(155deg, #6b5a4b, #3f342b 55%, #241c16);
    box-shadow: inset 0 1px 0 rgba(255,220,180,.18), 0 1px 2px rgba(0,0,0,.6); animation: lb-mn-glint 4s ease-in-out infinite; animation-delay: calc(var(--d) * 90ms); }
.lb-mn-mines i:nth-child(7n + 3) { border-radius: 6px 3px 5px 4px; }
.lb-mn-mines i.gem { background: radial-gradient(circle at 50% 55%, #6ee7b7 0 22%, #059669 40%, #0b0806 70%); animation: none; }
@keyframes lb-mn-glint { 0%, 80%, 100% { filter: none; } 88% { filter: brightness(1.5) sepia(.4); } }
/* Doors: three doors set in the facility's corridor wall, badge readers beside them; the middle one swings open on gold */
.lb-mn-doors { display: flex; gap: 16px; margin-top: -14px; padding: 0 8px; }
.lb-mn-door { position: relative; width: 40px; height: 70px; padding: 4px 4px 0; border-radius: 3px 3px 0 0; perspective: 160px;
    background: linear-gradient(90deg, #2c1c0f, #4a321c 40%, #24170b); box-shadow: 0 6px 12px rgba(0,0,0,.55); }
.lb-mn-door::before { content: ''; position: absolute; inset: 4px 4px 0; background: radial-gradient(ellipse at 50% 70%, #fde68a, #b8862b 45%, #2a1a05 80%); }
.lb-mn-leaf { position: absolute; inset: 4px 4px 0; transform-origin: left center; border-radius: 1px;
    background: linear-gradient(90deg, #4b2f17, #6b4424 45%, #3d2512); box-shadow: inset 0 0 0 1px rgba(0,0,0,.5); }
.lb-mn-leaf::before { content: ''; position: absolute; left: 18%; right: 18%; top: 9%; height: 34%; background: rgba(232,226,200,.35); box-shadow: 0 0 0 2px #3d2512; }
.lb-mn-leaf::after { content: ''; position: absolute; right: 12%; top: 52%; width: 22%; height: 3px; border-radius: 2px; background: #e3b65c; }
.lb-mn-door.open .lb-mn-leaf { animation: lb-mn-swing 5s ease-in-out infinite; }
@keyframes lb-mn-swing { 0%, 30%, 100% { transform: none; } 45%, 85% { transform: rotateY(-78deg); } }
.lb-mn-led { position: absolute; left: calc(100% + 4px); top: 44%; width: 6px; height: 10px; border-radius: 2px; background: #18181b; box-shadow: 0 0 0 1px #000; }
.lb-mn-led::after { content: ''; position: absolute; left: 1.5px; top: 1.5px; width: 3px; height: 3px; border-radius: 50%; background: #ef4444; }
.lb-mn-door.open .lb-mn-led::after { animation: lb-mn-led 5s steps(1) infinite; }
@keyframes lb-mn-led { 0%, 28% { background: #ef4444; } 30%, 88% { background: #4ade80; } }
html.calm-motion .lb-mn-door.open .lb-mn-leaf, html.calm-motion .lb-mn-door.open .lb-mn-led::after { animation: none; } html.calm-motion .lb-mn-door.open .lb-mn-leaf { transform: rotateY(-60deg); }
/* Reduce flashing (Doors' own choice, minis.js `.lb-calm-flash`): the open door's reader stays steady green, no red blink. */
.lb-mini.lb-calm-flash .lb-mn-door.open .lb-mn-led::after { animation: none; background: #4ade80; }
/* Slider: the Generator Hall (minis.js slider): the riveted control plate between two copper coils, its rail's two zones
   and the marker drifting */
.lb-mn-slider { display: flex; align-items: center; gap: 14px; margin-top: -14px; }
.lb-mn-coil { position: relative; width: 14px; height: 74px; border-radius: 3px; margin-top: 14px;
    background: repeating-linear-gradient(180deg, #b87333 0 2px, #7a4320 2px 4px); box-shadow: 0 6px 10px rgba(0,0,0,.5); }
.lb-mn-coil::before { content: ''; position: absolute; left: 50%; top: -8px; width: 34px; height: 10px; margin-left: -17px; border-radius: 50%;
    background: radial-gradient(ellipse at 50% 35%, #e5e7eb, #9ca3af 60%, #4b5563); box-shadow: 0 0 12px rgba(125,211,252,.35); }
.lb-mn-plate { position: relative; width: 150px; padding: 9px 12px 9px; border-radius: 4px;
    background: linear-gradient(180deg, #2b3138, #1b1f24); border: 1px solid #4b5563;
    box-shadow: 0 10px 18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); }
.lb-mn-plate::before, .lb-mn-plate::after { content: ''; position: absolute; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: #6b7280; }
.lb-mn-plate::before { left: 4px; } .lb-mn-plate::after { right: 4px; }
.lb-mn-readout { display: block; width: 58px; height: 16px; margin: 0 auto 9px; border-radius: 3px; background: #0b0d10;
    box-shadow: inset 0 0 0 1px #374151, inset 0 0 8px rgba(0,0,0,.8); }
.lb-mn-rail { position: relative; display: flex; height: 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: #0b0d10; }
.lb-mn-win { flex: 1; border-radius: 999px 0 0 999px; background: linear-gradient(180deg, #34d399, #047857); }
.lb-mn-loss { flex: 1; border-radius: 0 999px 999px 0; background: linear-gradient(180deg, #f87171, #991b1b); }
.lb-mn-knob { position: absolute; top: -7px; left: 30%; width: 12px; height: 22px; margin-left: -6px; border-radius: 3px;
    background: radial-gradient(circle at 50% 50%, #fde68a, #c9973f 55%, #8a5a14); box-shadow: 0 0 8px rgba(242,207,107,.6); animation: lb-mn-slide 6s ease-in-out infinite alternate; }
@keyframes lb-mn-slide { to { left: 70%; } }
.lb-mn-ticks { display: flex; justify-content: space-between; margin-top: 4px; padding: 0 1px; }
.lb-mn-ticks b { width: 1px; height: 4px; background: #c9973f; }
.lb-mn-ticks b:nth-child(5n + 1) { height: 6px; }
/* Hi-Lo: the Higher or Lower Show's board under its sunburst arch, the prize tower climbing (templates/hilo.html) */
.lb-mn-show { position: relative; display: flex; align-items: flex-end; gap: 6px; margin-top: -6px; padding-top: 22px; }
.lb-mn-arch { position: absolute; left: 50%; bottom: 8px; width: 190px; height: 92px; margin-left: -95px; border-radius: 95px 95px 0 0; pointer-events: none;
    background: repeating-conic-gradient(from -90deg at 50% 100%, #ea580c 0 9deg, #d9a21b 9deg 18deg, #b8410e 18deg 27deg);
    box-shadow: 0 0 0 4px #7a4a24; opacity: .9; }
.lb-mn-arch::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 2px dotted #fff1cf; animation: lb-mn-breathe 1.2s steps(2) infinite; }
.lb-mn-board { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px;
    background: radial-gradient(ellipse at 50% 40%, #3a1d10, #1c0d06 75%); box-shadow: 0 0 0 3px #7a4a24, 0 8px 16px rgba(0,0,0,.5); }
.lb-mn-tower { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 3px; border-radius: 4px; background: #170a05; box-shadow: 0 0 0 2px #7a4a24; }
.lb-mn-tower i { width: 14px; height: 9px; border-radius: 2px; background: #2f1a0e; animation: lb-mn-rung 6s infinite; animation-delay: calc(var(--d) * .6s); }
@keyframes lb-mn-rung { 0%, 58% { background: #ea580c; box-shadow: 0 0 6px rgba(234,88,12,.7); } 60%, 100% { background: #2f1a0e; box-shadow: none; } }
html.calm-motion .lb-mn-arch::after, html.calm-motion .lb-mn-tower i { animation: none; }
/* Reduce flashing (Hi-Lo's own choice, minis.js `.lb-calm-flash`): the arch's bulbs breathe slowly instead of blinking. */
.lb-mini.lb-calm-flash .lb-mn-arch::after { animation: lb-mn-breathe 2.4s ease-in-out infinite; }
html.calm-motion .lb-mini.lb-calm-flash .lb-mn-arch::after { animation: none; }
.lb-mn-calls { display: flex; flex-direction: column; gap: 6px; }
.lb-mn-calls i { width: 0; height: 0; border: 7px solid transparent; border-bottom: 9px solid #34d399; border-top: 0; animation: lb-mn-breathe 2.4s ease-in-out infinite; }
.lb-mn-calls i.dn { border-bottom: 0; border-top: 9px solid #f87171; animation-delay: 1.2s; }
@keyframes lb-mn-breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
/* Ride the Bus: the coach on its desert road over the ticket (templates/ride_the_bus.html) */
.lb-mn-bus { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: -10px; }
.lb-mn-road { position: relative; width: 176px; height: 30px; border-radius: 4px 4px 0 0; overflow: hidden;
    background: linear-gradient(180deg, #3f3a6b 0, #b2456b 45%, #f6914f 72%, #c99a6b 72%, #d9a56b 84%, #38373b 84%); }
.lb-mn-road::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: repeating-linear-gradient(90deg, #f2c230 0 6px, transparent 6px 12px); }
.lb-mn-coach { position: absolute; left: 4%; bottom: 4px; width: 34px; height: 13px; border-radius: 3px 7px 2px 2px;
    background: linear-gradient(180deg, #f1f4f7 0 18%, #2b3340 18% 52%, #b4321f 52% 60%, #c9cfd6 60%); box-shadow: 0 2px 0 #141416;
    animation: lb-mn-ride 8s ease-in-out infinite; }
@keyframes lb-mn-ride { 0%, 14% { left: 4%; } 25%, 39% { left: 28%; } 50%, 64% { left: 52%; } 75%, 92% { left: 74%; } 100% { left: 4%; } }
.lb-mn-ticket { display: flex; padding: 5px 6px; border-radius: 0 0 4px 4px; background: linear-gradient(180deg, #f6ead0, #e6d3a9);
    box-shadow: 0 8px 14px rgba(0,0,0,.45); }
.lb-mn-stage { padding: 0 4px; border-right: 1px dashed rgba(59,36,23,.4); animation: lb-mn-glow 8s ease-in-out infinite; animation-delay: calc(var(--d) * 2s); }
.lb-mn-stage:last-child { border-right: 0; }
html.calm-motion .lb-mn-coach { animation: none; }

/* ---- Salon walls (docs/features/landing-and-lobby.md "Salon walls"; LOBBY_PLAN.md v2 4.6). #lb[data-salon] (room.js,
   from the progression status' `salon_style`) swaps the room's material tokens, never the layout, and .lb-room is the
   tier's wall: its material (--wall-top into --ink), its light (--light-1 from above, --light-2 the sconces either side,
   --light-floor), and its wallpaper (--wall: static/media/lobby/wall-<style>.svg, scripts/paint_lobby_walls.py) pressed
   into it, strongest at the top and the edges, quiet behind the middle of the page, under a fine grain and a vignette.
   FIXED to the viewport, so the page scrolls past the wall and never repaints it; 100lvh: the phone's address bar showing /
   hiding never resizes it. Nothing moves at rest, nothing is drawn in the page. Gold stays for actions and prizes.
   tests/lobby/test_lobby_rooms.py checks every salon.TIERS style has its tokens and its wallpaper. ---- */
.lb-room { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; overflow: hidden;
    background:
        radial-gradient(ellipse 60% 48% at 50% -8%, var(--light-1), transparent 72%),
        radial-gradient(ellipse 26% 52% at -2% 26%, var(--light-2), transparent 72%),
        radial-gradient(ellipse 26% 52% at 102% 26%, var(--light-2), transparent 72%),
        radial-gradient(ellipse 70% 34% at 50% 108%, var(--light-floor), transparent 72%),
        linear-gradient(180deg, var(--wall-top) 0, var(--ink) 78%); }
.lb-room::before, .lb-room::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.lb-room::before { background: var(--wall) 50% 0 repeat;
    -webkit-mask-image: radial-gradient(ellipse 46% 62% at 50% 58%, rgba(0, 0, 0, .3), #000 100%);
    mask-image: radial-gradient(ellipse 46% 62% at 50% 58%, rgba(0, 0, 0, .3), #000 100%); }
.lb-room::after { background: radial-gradient(ellipse 110% 85% at 50% 40%, transparent 52%, rgba(0, 0, 0, .55)),
    url(/static/media/lobby/grain.png) 0 0 / 160px 160px repeat; }
.lb-wrap { z-index: 1; }
/* The wall covers the whole viewport, so base.html's gold dust (behind the page) could never be seen here: with no box,
   SceneLoop draws none of it (base.html, "a page whose opaque stage covers the whole viewport hides it"). */
#gold-dust-canvas { display: none; }
/* 1 The Parlor: slate, brass pinstripes on a herringbone weave */
#lb[data-salon="slate"] {
    --ink: #0b0c0e; --panel: #141517; --panel-2: #0d0e10; --line: rgba(181, 140, 72, .34); --line-soft: rgba(181, 140, 72, .22);
    --line-strong: rgba(196, 154, 82, .5); --card: #16171a; --card-2: #0c0d0f; --tile: #111214; --sheen: rgba(232, 206, 160, .06);
    --light-1: rgba(214, 168, 92, .13); --light-2: rgba(200, 150, 70, .07); --light-floor: rgba(90, 60, 30, .14);
    --wall-top: #15161a; --wall: url(/static/media/lobby/wall-slate.svg); }
/* 2 The Gallery: smoked glass, a silver Deco lattice */
#lb[data-salon="silver"] {
    --ink: #0a0c10; --panel: rgba(28, 31, 38, .92); --panel-2: rgba(12, 14, 18, .95); --line: rgba(203, 213, 225, .26);
    --line-soft: rgba(203, 213, 225, .16); --line-strong: rgba(226, 232, 240, .42); --card: #171a20; --card-2: #0b0d11; --tile: #101217;
    --sheen: rgba(241, 245, 249, .09); --light-1: rgba(186, 199, 219, .14); --light-2: rgba(148, 163, 184, .08); --light-floor: rgba(51, 65, 85, .18);
    --wall-top: #141820; --wall: url(/static/media/lobby/wall-silver.svg); }
/* 3 The Conservatory: walnut, glasshouse ogee ironwork in amber */
#lb[data-salon="amber"] {
    --ink: #0d0a08; --panel: #1a130e; --panel-2: #0f0b08; --line: rgba(217, 151, 62, .3); --line-soft: rgba(217, 151, 62, .2);
    --line-strong: rgba(245, 170, 70, .48); --card: #1c150f; --card-2: #0e0a07; --tile: #140f0b; --sheen: rgba(255, 214, 160, .08);
    --light-1: rgba(251, 176, 59, .17); --light-2: rgba(251, 146, 60, .1); --light-floor: rgba(120, 53, 15, .2);
    --wall-top: #1d140d; --wall: url(/static/media/lobby/wall-amber.svg); }
/* 4 The Grand Salon: black lacquer, gold Art Deco fans */
#lb[data-salon="gold"] {
    --ink: #070708; --panel: #0e0e10; --panel-2: #060607; --line: rgba(234, 190, 90, .4); --line-soft: rgba(234, 190, 90, .26);
    --line-strong: rgba(245, 205, 110, .6); --card: #111113; --card-2: #060607; --tile: #0b0b0c; --sheen: rgba(255, 240, 200, .12);
    --light-1: rgba(245, 190, 70, .15); --light-2: rgba(245, 190, 70, .08); --light-floor: rgba(146, 100, 14, .16);
    --wall-top: #121112; --wall: url(/static/media/lobby/wall-gold.svg); }
/* 5 The Royal Salon: obsidian, a gold and violet guilloche */
#lb[data-salon="prismatic"] {
    --ink: #06050a; --panel: #0f0d15; --panel-2: #07060b; --line: rgba(232, 200, 120, .36); --line-soft: rgba(196, 170, 230, .2);
    --line-strong: rgba(240, 210, 130, .55); --card: #12101a; --card-2: #07060b; --tile: #0c0a11; --sheen: rgba(230, 215, 255, .09);
    --light-1: rgba(250, 204, 21, .11); --light-2: rgba(168, 85, 247, .12); --light-floor: rgba(88, 28, 135, .2);
    --wall-top: #110e1a; --wall: url(/static/media/lobby/wall-prismatic.svg); }

/* ---- the modes' palettes (LOBBY_PLAN_V3.md 4.1, step 5): one layout, each mode its own room and one colour of its own,
   so the colour says where you are (the switch's lit button, the mode tags). The Casino is the default tokens above and
   the Salon walls (room.js dresses #lb[data-salon] in the Casino only); Ranked is crimson on night under rank chevrons
   capped with gold tier diamonds, the Lounge midnight blue and cream under a quatrefoil lattice (wall-ranked.svg /
   wall-lounge.svg, scripts/paint_lobby_walls.py, pressed in like a Salon wall). Each redefines the material, the light,
   the wallpaper, the headings and the switch's lit button; gold stays for actions and prizes. ---- */
#lb[data-mode="ranked"] {
    --ink: #0b0607; --panel: #1a0f12; --panel-2: #10090b; --line: rgba(248, 113, 113, .24); --line-soft: rgba(248, 113, 113, .17);
    --line-strong: rgba(252, 165, 165, .42); --card: #1b1013; --card-2: #0f080a; --tile: #150c0e; --sheen: rgba(254, 226, 226, .07);
    --light-1: rgba(220, 38, 38, .17); --light-2: rgba(220, 38, 38, .08); --light-floor: rgba(127, 29, 29, .22);
    --wall-top: #250b10; --wall: url(/static/media/lobby/wall-ranked.svg); --head: #fee2e2; --label: rgba(252, 165, 165, .88);
    --mode-btn: linear-gradient(#fecaca, #ef4444); --mode-ink: #2a0709; --mode-hi: #f87171; }
#lb[data-mode="lounge"] {
    --ink: #070a13; --panel: #121a2c; --panel-2: #0b1120; --line: rgba(147, 197, 253, .24); --line-soft: rgba(147, 197, 253, .17);
    --line-strong: rgba(147, 197, 253, .42); --card: #131b2e; --card-2: #0a1020; --tile: #0e1526; --sheen: rgba(245, 239, 224, .07);
    --light-1: rgba(96, 165, 250, .15); --light-2: rgba(245, 239, 224, .06); --light-floor: rgba(30, 64, 175, .18);
    --wall-top: #0e1630; --wall: url(/static/media/lobby/wall-lounge.svg); --head: #f5efe0; --label: rgba(147, 197, 253, .88);
    --text: #f5efe0; --soft: #e7dfcc; --muted: #a3b2c9;
    --mode-btn: linear-gradient(#dbeafe, #60a5fa); --mode-ink: #0b1530; --mode-hi: #93c5fd; }
/* What is the Casino's alone stands aside in the other modes (LOBBY_PLAN_V3.md 4.8 / 4.9): the Daily High Roller, the Main
   Events and the private tables (Ranked is queue only). The Lounge never shows money (section 1, rule 4): no rewards
   panel, Discord prize, bounties, race or floor of wins, and the top bar's wallet gives way to a "Free play" pill
   (base.html #nv-free-play). */
#lb:not([data-mode="casino"]) :is(#lb-hr, #lb-events, #lb-private) { display: none !important; }
#lb[data-mode="lounge"] :is(#lb-ready, #lb-discord, #lb-bounties, #lb-race, #lb-floor) { display: none !important; }
.lb-card[data-mode="lounge"] .lb-stakes { display: none; }           /* a Lounge game, wherever its card shows */
.lb-card .lb-free-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px;
    border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--muted); }
.lb-card .lb-free-foot b { color: var(--mode-hi, #93c5fd); font-weight: 800; letter-spacing: .06em; }

/* ---- the Lounge's own blocks (LOBBY_PLAN_V3.md 4.9, step 6; lounge.js): the welcome with the games in progress where
   Your Games is in the Casino, Back to the floor and the milestones in the people column. In the Lounge, Your Games,
   Since You Were Away and your road stand aside (the first is Casino play, the others Casino news and the casino's levels);
   the Casino never shows the Lounge's blocks. ---- */
#lb:not([data-mode="lounge"]) :is(#lb-lounge, #lb-floor-back, #lb-lounge-badges) { display: none !important; }
#lb[data-mode="lounge"] :is(#lb-resume, #lb-away, #lb-progress) { display: none !important; }
.lb-lounge-title { font-size: var(--fs-4); line-height: 2rem; margin: 2px 0 0; }
.lb-lounge-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.lb-lg-list { display: grid; gap: 8px; margin-top: 14px; }
.lb-lg-row, .lb-fb-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; min-height: 44px;
    background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.lb-lg-row:hover, .lb-fb-row:hover { border-color: var(--line-strong); }
.lb-lg-row:focus-visible, .lb-fb-row:focus-visible { outline: 2px solid var(--mode-hi, #fbbf24); outline-offset: 2px; }
.lb-lg-ico { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #f5efe0; }
.lb-lg-ico svg { width: 30px; height: 30px; }
.lb-lg-txt, .lb-fb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lb-lg-txt b, .lb-fb-txt b { font-size: 14px; color: var(--head, var(--text)); }
.lb-lg-txt span, .lb-fb-txt span { font-size: 12px; color: var(--muted); }
.lb-fb-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin-bottom: 10px; }
.lb-lb-game + .lb-lb-game { margin-top: 4px; border-top: 1px solid var(--line-soft); }
/* Each game is a fold (lounge.js): the summary is its name, a bar of the milestones done and the count. */
.lb-lb-head { display: grid; grid-template-columns: minmax(0, 1fr) 64px auto auto; column-gap: 10px; align-items: center; min-height: 40px; margin: 6px 0;
    font-size: 13px; cursor: pointer; list-style: none; }
.lb-lb-head::-webkit-details-marker { display: none; }
.lb-lb-head::after { content: ''; width: 7px; height: 7px; margin: 0 4px 3px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg);
    transition: transform var(--t-fast) var(--ease); }
details[open] > .lb-lb-head::after { transform: rotate(-135deg); margin-bottom: -3px; }
.lb-lb-head:focus-visible { outline: 2px solid var(--mode-hi, #93c5fd); outline-offset: 2px; border-radius: 6px; }
.lb-lb-head b { color: var(--head, var(--text)); } .lb-lb-head > span:last-of-type { font-size: 11px; color: var(--muted); white-space: nowrap; }
details.lb-lb-game[open] > .lb-lb-list { margin-bottom: 8px; }
html.calm-motion .lb-lb-head::after { transition: none; }
.lb-lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-lb-list li { display: grid; grid-template-columns: 16px 1fr 64px; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.lb-lb-list li > i { grid-row: 1 / 3; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); }
.lb-lb-list li.done > i { border-color: var(--mode-hi, #93c5fd); background: radial-gradient(circle, #f5efe0 0 25%, var(--mode-hi, #93c5fd) 30%); }
.lb-lb-list .nm { font-size: 13px; font-weight: 700; color: var(--text); }
.lb-lb-list .nd { grid-row: 2; grid-column: 2; font-size: 11px; color: var(--muted); }
/* The bars' track reads against the card (it was the card's own tile colour: an unstarted bar did not show). */
.lb-lb-bar { grid-row: 1 / 3; grid-column: 3; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); overflow: hidden; }
.lb-lb-head > .lb-lb-bar { grid-row: auto; grid-column: auto; }
.lb-lb-bar b { display: block; height: 100%; background: var(--mode-hi, #93c5fd); }

/* ---- Ranked's own blocks (LOBBY_PLAN_V3.md 4.8, COMPETITIVE_PLAN.md 9.7; static/js/lobby/ranked.js): the season header,
   the Find a Match cards, the bar, recent matches and How Ranked works, and the ready check's sheet. Ranked has no shelves
   (queue only): the directory stands aside there except while a search is typed (it looks in every mode). ---- */
#lb:not([data-mode="ranked"]) :is(#lb-ranked, #lb-rk-ready) { display: none !important; }
#lb[data-mode="ranked"]:not(.lb-searching) #directory { display: none; }
#lb-ranked { margin-top: 18px; }
.lb-rk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lb-rk-title { font-size: var(--fs-4); line-height: 2rem; margin: 2px 0 0; }
.lb-rk-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.lb-rk-me { display: flex; gap: 10px; }
.lb-rk-tier, .lb-rk-purse { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px;
    background: var(--panel); border: 1px solid var(--line); }
.lb-rk-tier > i { width: 26px; height: 26px; transform: rotate(45deg); border-radius: 5px; border: 2px solid var(--line-strong);
    background: var(--tg, var(--tile)); }
/* The tier colours, for the emblem, the rewards track and the ladder's rows. */
#lb-ranked [data-tier="bronze"] { --tg: linear-gradient(135deg, #f0b27a, #8a4b1e); }
#lb-ranked [data-tier="silver"] { --tg: linear-gradient(135deg, #f3f4f6, #8a94a6); }
#lb-ranked [data-tier="gold"] { --tg: linear-gradient(135deg, #fde68a, #b7791f); }
#lb-ranked [data-tier="platinum"] { --tg: linear-gradient(135deg, #e0f2fe, #5eaed6); }
#lb-ranked [data-tier="diamond"] { --tg: linear-gradient(135deg, #dbeafe, #6366f1); }
#lb-ranked [data-tier="rook"] { --tg: linear-gradient(135deg, #fef3c7, #7c3aed); }
.lb-rk-tier span, .lb-rk-purse { flex-direction: column; align-items: flex-start; }
.lb-rk-tier span { display: flex; }
.lb-rk-tier b, .lb-rk-purse b { font-size: 15px; color: var(--head, var(--text)); }
.lb-rk-tier small, .lb-rk-purse small { font-size: 11px; color: var(--muted); }
.lb-rk-purse { gap: 0; }
.lb-rk-beta { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; color: var(--mode-ink); background: var(--mode-hi, #f87171); vertical-align: 1px; }
.lb-rk-me { flex-wrap: wrap; }
.lb-rk-chest.ready { border-color: var(--mode-hi, #f87171); gap: 4px; }
/* The season rewards track: Bronze to Rook in one row (a scrolling row on a phone), the tiers reached lit. */
.lb-rk-track { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.lb-rk-step { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 10px 40px; border-radius: 12px;
    background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.lb-rk-step > i { position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; transform: rotate(45deg); border-radius: 3px;
    background: var(--tg, var(--tile)); opacity: .45; }
.lb-rk-step.got { border-color: var(--line-strong); }
.lb-rk-step.got > i { opacity: 1; box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--mode-hi, #f87171); }
.lb-rk-step b { font-size: 14px; color: var(--head, var(--text)); }
.lb-rk-step small { font-size: 11px; color: var(--muted); }
.lb-rk-step .up, .lb-rk-step .pay { font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.lb-rk-step .pay { color: var(--soft, var(--text)); }
.lb-rk-step .badge { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.lb-rk-step .badge em { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-rk-track-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .lb-rk-track { grid-template-columns: repeat(6, 148px); } }
.lb-rk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; }
.lb-rk-card { position: relative; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; cursor: pointer;
    background: var(--card); border: 1px solid var(--line); min-height: 44px; }
.lb-rk-card:hover:not(.later) { border-color: var(--line-strong); }
.lb-rk-card.on { border-color: var(--mode-hi, #f87171); box-shadow: 0 0 0 1px var(--mode-hi, #f87171) inset; }
.lb-rk-card:has(input:focus-visible) { outline: 2px solid var(--mode-hi, #f87171); outline-offset: 2px; }
.lb-rk-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lb-rk-card.later { cursor: default; filter: saturate(.25); opacity: .55; }
.lb-rk-art { height: 104px; display: grid; place-items: center; color: #f5efe0; }
.lb-rk-art svg { width: 64px; height: 64px; }
.lb-rk-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.lb-rk-body .nm { font-size: 16px; color: var(--head, var(--text)); }
.lb-rk-body .fmt { font-size: 12px; color: var(--label); font-weight: 700; }
.lb-rk-body .you { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lb-rk-body .meta { font-size: 11px; color: var(--muted); }
.lb-rk-pips { display: inline-flex; gap: 3px; }
.lb-rk-pips i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-strong); }
.lb-rk-pips i.on { background: var(--mode-hi, #f87171); border-color: var(--mode-hi, #f87171); }
.lb-rk-tick { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 7px;
    border: 2px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .35); }
.lb-rk-card.on .lb-rk-tick { background: var(--mode-hi, #f87171); border-color: var(--mode-hi, #f87171); }
.lb-rk-card.on .lb-rk-tick::after { content: ''; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px;
    border: solid var(--mode-ink, #2a0709); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.lb-rk-later { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; background: rgba(0, 0, 0, .55); color: #e5e7eb; }
.lb-rk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px;
    padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); min-height: 44px; }
.lb-rk-say { font-size: 13px; color: var(--muted); flex: 1 1 220px; min-width: 0; }      /* one sentence: inline, so a phone
    wraps it as text instead of dropping the part after the bold onto a line of its own */
.lb-rk-say b { color: var(--text); }
.lb-rk-say .lb-rk-refused { color: #fca5a5; }
.lb-rk-gate b { color: var(--head, var(--text)); }
.lb-rk-searching > i { display: inline-block; vertical-align: middle; margin-right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--mode-hi, #f87171);
    animation: lb-rk-pulse 1.4s ease-in-out infinite; }
@keyframes lb-rk-pulse { 50% { opacity: .3; } }
html.calm-motion .lb-rk-searching > i { animation: none; }
.lb-rk-note-more { display: none; }
/* A phone (MOBILE_CLEANUP_PLAN.md phase 5): Find a Match in the first screen. The bar comes up under the header, the game
   cards are rows (the art a tile at their left), the tier track follows them and the season's long note folds to two
   lines behind "How the season pays". */
@media (max-width: 639px) {
    #lb-ranked:not([hidden]) { display: flex; flex-direction: column; }
    #lb-ranked > .lb-rk-bar { order: 1; }
    #lb-ranked > .lb-rk-cards { order: 2; margin-top: 12px; }
    #lb-ranked > .lb-rk-track { order: 3; }
    #lb-ranked > .lb-rk-track-note { order: 4; }
    #lb-ranked > .lb-rk-note-more { order: 5; }
    #lb-ranked > .lb-rk-cols { order: 6; }
    .lb-rk-sub { font-size: 12.5px; }
    .lb-rk-me { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
    .lb-rk-tier, .lb-rk-purse { padding: 7px 9px; gap: 7px; }
    .lb-rk-purse { gap: 0; }
    .lb-rk-tier > i { width: 18px; height: 18px; flex: none; }
    .lb-rk-tier b, .lb-rk-purse b { font-size: 14px; }
    .lb-rk-tier small, .lb-rk-purse small { line-height: 1.25; }
    .lb-rk-chest.ready .lb-btn { padding: 0 8px; }
    .lb-rk-card { flex-direction: row; }
    .lb-rk-art { flex: none; width: 76px; height: auto; min-height: 88px; }
    .lb-rk-art svg { width: 40px; height: 40px; }
    .lb-rk-body { min-width: 0; padding: 10px 44px 10px 12px; }
    .lb-rk-body .nm { font-size: 15px; }
    .lb-rk-later { top: auto; bottom: 10px; }
    .lb-rk-track-note:not(.open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
    .lb-rk-note-more { display: block; align-self: flex-start; min-height: 36px; padding: 0; font-size: 12.5px; }
}
.lb-rk-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.lb-rk-h3 { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.lb-rk-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 6px 0;
    border-top: 1px solid var(--line-soft); font-size: 13px; }
.lb-rk-row:first-child { border-top: 0; }
.lb-rk-row .wl { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--tile); }
.lb-rk-row.won .wl { color: #86efac; } .lb-rk-row.lost .wl { color: #fca5a5; }
.lb-rk-row .who { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-rk-row .who b { color: var(--text); }
.lb-rk-row .ch { font-variant-numeric: tabular-nums; color: var(--text); }
.lb-rk-none { margin: 0; font-size: 13px; color: var(--muted); }
.lb-rk-ladder { min-width: 0; }
/* The ladder: a tab per game, the top 100 in a scrolling list, the viewer's own row pinned under it when below. */
.lb-rk-lgames { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.lb-rk-lgames button { min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--tile);
    color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.lb-rk-lgames button.on { color: var(--mode-ink); background: var(--mode-hi, #f87171); border-color: var(--mode-hi, #f87171); }
.lb-rk-lrows { max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.lb-rk-lrow { display: grid; grid-template-columns: 34px 1fr auto 52px; gap: 8px; align-items: center; padding: 5px 0;
    border-top: 1px solid var(--line-soft); font-size: 13px; }
.lb-rk-lrow:first-child { border-top: 0; }
.lb-rk-lrow.me { color: var(--head, var(--text)); font-weight: 700; }
.lb-rk-lrow .pos { color: var(--label); font-variant-numeric: tabular-nums; }
.lb-rk-lrow .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.lb-rk-lrow .tr { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.lb-rk-lrow .tr > i { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; background: var(--tg, var(--tile)); }
.lb-rk-lrow .rt { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.lb-rk-lyou { margin-top: 6px; padding-top: 4px; border-top: 1px dashed var(--line-strong); }
.lb-rk-lyou .lb-rk-lrow { border-top: 0; }
.lb-rk-how { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--soft, var(--text)); }
.lb-rk-ready { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(8, 3, 4, .74); }
.lb-rk-ready[hidden] { display: none; }
.lb-rk-ready-card { width: min(380px, 100%); text-align: center; padding: 22px 20px; border-radius: 18px; background: var(--panel);
    border: 1px solid var(--line-strong); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-rk-ready-card .lb-h { font-size: var(--fs-4); margin: 4px 0 12px; }
.lb-rk-ready-ring { --f: 1; width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--mode-hi, #f87171) calc(var(--f) * 360deg), var(--tile) 0); }
.lb-rk-ready-ring b { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--panel);
    font-size: 26px; color: var(--head, var(--text)); font-variant-numeric: tabular-nums; }
.lb-rk-ready-opp { margin: 12px 0 2px; font-size: 15px; color: var(--text); font-weight: 700; }
.lb-rk-ready-note { margin: 0; font-size: 12px; color: var(--muted); min-height: 1.4em; }
.lb-rk-ready-act { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.lb-rk-ready-act .lb-btn { min-width: 120px; min-height: 44px; }

/* The promotion reveal (room.js, once per new tier): the lift's doors part on the new floor's wall (two dark panels with
   a brass seam slide apart, once, compositor transforms only), and a plaque names the room. Under calm motion only the plaque. */
.lb-room > i { position: absolute; inset: 0; z-index: 2; display: none; }
.lb-room > i::before, .lb-room > i::after { content: ''; position: absolute; top: 0; bottom: 0; width: 50.5%;
    background: linear-gradient(180deg, #121215, #0a0a0c); }
.lb-room > i::before { left: 0; box-shadow: inset -2px 0 0 rgba(212, 175, 55, .55); }
.lb-room > i::after { right: 0; box-shadow: inset 2px 0 0 rgba(212, 175, 55, .55); }
#lb.lb-revealing .lb-room > i { display: block; }
#lb.lb-revealing .lb-room > i::before { animation: lb-lift-l 1.5s var(--ease-io) .3s both; }
#lb.lb-revealing .lb-room > i::after { animation: lb-lift-r 1.5s var(--ease-io) .3s both; }
@keyframes lb-lift-l { to { transform: translateX(-101%); } }
@keyframes lb-lift-r { to { transform: translateX(101%); } }
#lb-reveal { position: fixed; z-index: 70; left: 50%; top: 84px; width: min(420px, calc(100vw - 32px)); transform: translateX(-50%);
    display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 16px 16px 18px;
    border-radius: 18px; background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .7), inset 0 1px 0 var(--sheen); animation: lb-rv-in var(--t-slow) var(--ease) .5s both; }
#lb-reveal[hidden] { display: none; }
#lb-reveal.out { animation: lb-rv-out var(--t-base) var(--ease) both; }
@keyframes lb-rv-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes lb-rv-out { to { opacity: 0; transform: translate(-50%, -6px); } }
.lb-rv-n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 1.375rem;
    font-weight: 700; color: var(--gold-hi); border: 1px solid var(--line-strong); background: radial-gradient(circle at 50% 30%, var(--light-1), transparent 70%); }
.lb-rv-txt { min-width: 0; }
.lb-rv-k { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; font-weight: 800; color: var(--label); }
.lb-rv-h { margin: 2px 0 0; font-size: var(--fs-3); line-height: 1.5rem; }
.lb-rv-d { margin: 2px 0 0; font-size: var(--fs-1); color: var(--muted); }

/* ---- reduced motion and hidden tabs: nothing loops (the skeletons hold still, new floor rows just appear) ---- */
html.calm-motion .lb-ping::after, html.calm-motion .lb-skel, html.calm-motion .lb-live.wait { animation: none; }
html.calm-motion .lb-card, html.calm-motion .lb-rs, html.calm-motion .lb-fl, html.calm-motion .lb-pc, html.calm-motion .lb-fr.hit { transition: none; }
html.calm-motion .lb-fl.new { animation: none; }
html.calm-motion .lb-card:hover, html.calm-motion .lb-rs:hover, html.calm-motion .lb-rs:focus-visible { transform: none; }
html.calm-motion .lb-mini *, html.calm-motion .lb-mini *::before, html.calm-motion .lb-mini *::after { animation: none; }
html.calm-motion .lb-gbx-dot, html.calm-motion .lb-gbx-ball.new, html.calm-motion .lb-gbx-replay i { animation: none; }   /* LuckyBall's card (the painter holds itself still) */
html.calm-motion .lb-room > i, html.calm-motion #lb-reveal, html.calm-motion #lb-reveal.out { animation: none; }
html.calm-motion #lb.lb-revealing .lb-room > i { display: none; }

/* LuckyBall's Main Event card (static/js/lobby/luckyball.js): the lobby is the only way to LuckyBall, so its card is a
   window onto the page's rooftop (LUCKYBALL_ROOFTOP_PLAN.md 7). The scene is the page's painter in its small mode (two
   canvases filling .lb-gbx-win, the tower screen placed on it by the painter); as the featured card the facts sit on navy
   glass at the left (compact and phone layouts: the Main Events block below). The rooftop's palette: midnight navy, a teal hairline,
   ivory balls with navy numbers, the coral bonus ball; gold only for the jackpot figure. */
.lb-gbx { position: relative; display: grid; grid-template-columns: minmax(290px, 400px) minmax(0, 1fr); min-height: 300px; overflow: hidden; isolation: isolate;
    background: radial-gradient(ellipse 80% 90% at 70% 10%, rgba(62, 40, 112, .55), transparent 70%), linear-gradient(180deg, #0b1030, #05071a);
    border: 1px solid rgba(94, 234, 212, .32); border-radius: 20px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(165, 243, 252, .1), 0 0 30px rgba(94, 234, 212, .07); }
.lb-gbx.drop { border-color: rgba(255, 106, 85, .6); box-shadow: 0 22px 50px rgba(0, 0, 0, .6), 0 0 34px rgba(255, 106, 85, .2); }
.lb-gbx.live { border-color: rgba(94, 234, 212, .7); }
.lb-gbx-win { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.lb-gbx-win canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
/* the tower screen: an LED panel (placed by the painter on the tower) */
.lb-gbx-scr { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; overflow: hidden;
    border-radius: 2px; background: radial-gradient(ellipse at 50% 40%, #071022, #010208 75%); container-type: size; text-align: center; }
.lb-gbx-scr::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 52%, rgba(0, 0, 0, .55) 62%) 0 0 / 3px 3px; }
.lb-gbx-scr-t { font: 800 min(13cqh, 5cqw) / 1.1 Inter, sans-serif; letter-spacing: .26em; margin-right: -.26em; text-transform: uppercase; color: #a5f3fc;
    text-shadow: 0 0 6px rgba(103, 232, 249, .85); white-space: nowrap; }
.lb-gbx-amt { font: 800 min(36cqh, 13cqw) / 1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: -.02em; color: #ffd36b; white-space: nowrap;
    text-shadow: 0 0 10px rgba(255, 190, 80, .75), 0 0 2px #fff3c4; font-variant-numeric: tabular-nums; }
.lb-gbx-scr-s { font: 700 min(11cqh, 4.6cqw) / 1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: #dbeafe; white-space: nowrap; }
.lb-gbx.drop .lb-gbx-scr-t { color: #ffb4a8; text-shadow: 0 0 6px rgba(255, 106, 85, .8); }
/* the facts, on navy glass */
.lb-gbx-info { position: relative; z-index: 2; align-self: center; display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 16px; padding: 16px 18px;
    border-radius: 16px; background: rgba(7, 11, 30, .86); border: 1px solid rgba(94, 234, 212, .28); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.lb-gbx.flat .lb-gbx-info { grid-column: 1 / -1; }
.lb-gbx-kick { color: rgba(94, 234, 212, .9); }
.lb-gbx-title { margin: 0; font: 400 clamp(30px, 4vw, 40px)/1 'Limelight', 'Playfair Display', Georgia, serif; letter-spacing: .06em; color: #d9fffa;
    text-shadow: 0 0 8px rgba(94, 234, 212, .8), 0 0 22px rgba(94, 234, 212, .4); }
.lb-gbx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-gbx-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; color: #cbd5e1;
    background: rgba(3, 5, 16, .8); border: 1px solid rgba(94, 234, 212, .2); white-space: nowrap; }
.lb-gbx-chip b { color: #ecfeff; font-family: var(--f-num); font-weight: 700; }
.lb-gbx-chip.live { color: #ccfbf1; border-color: rgba(94, 234, 212, .6); background: rgba(6, 40, 44, .7); }
.lb-gbx-chip.live b { color: #fff; }
.lb-gbx-chip.drop { color: #ffd6cc; border-color: rgba(255, 106, 85, .55); }
.lb-gbx-chip.drop b { color: #fff; }
.lb-gbx-chip.mine { border-color: rgba(94, 234, 212, .5); }
/* the last (or live) draw */
.lb-gbx-draw { padding: 10px 12px; border-radius: 12px; background: rgba(3, 5, 16, .7); border: 1px solid rgba(148, 163, 205, .18); }
.lb-gbx-draw.live { border-color: rgba(94, 234, 212, .55); box-shadow: 0 0 22px rgba(94, 234, 212, .14); }
.lb-gbx-dh { display: flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: #94a3c4; }
.lb-gbx-dot { width: 7px; height: 7px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 8px #5eead4; animation: lb-gbx-blink 1.2s ease-in-out infinite; }
@keyframes lb-gbx-blink { 50% { opacity: .3; } }
.lb-gbx-balls { display: flex; gap: 6px; margin: 8px 0 6px; }
.lb-gbx-ball { --s: 36px; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; position: relative;
    font: 800 15px/1 var(--f-num); color: #1b2550; background: radial-gradient(circle at 34% 28%, #fff 0, #f6f1e5 26%, #e2d8c2 62%, #a89c82 100%);
    box-shadow: inset -3px -4px 8px rgba(40, 40, 70, .3), 0 4px 10px rgba(0, 0, 0, .45); }
.lb-gbx-ball span { position: relative; z-index: 1; }
.lb-gbx-ball.bonus { margin-left: 6px; color: #fff; background: radial-gradient(circle at 34% 28%, #ffd6cc 0, #ff6a55 34%, #c53a2b 78%, #73190f 100%);
    box-shadow: inset -3px -4px 8px rgba(70, 10, 0, .4), 0 4px 12px rgba(255, 106, 85, .4); }
.lb-gbx-ball.ghost { color: #64748b; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1.5px rgba(148, 163, 205, .22); }
.lb-gbx-ball.ghost.bonus { box-shadow: inset 0 0 0 1.5px rgba(255, 106, 85, .5); }
.lb-gbx-ball.new { animation: lb-gbx-pop .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes lb-gbx-pop { from { transform: scale(.3) translateY(-12px); opacity: 0; } }
.lb-gbx-note { font-size: 12px; color: #94a3c4; }
.lb-gbx-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lb-gbx-cta { flex: 1 1 auto; text-align: center; color: #04201c; font-weight: 800; background: linear-gradient(180deg, #99f6e4, #2dd4bf);
    border: 1px solid rgba(165, 243, 252, .7); box-shadow: 0 0 18px rgba(94, 234, 212, .3); }
.lb-gbx-cta:hover { filter: brightness(1.06); }
.lb-gbx-replay { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: #ccfbf1; text-decoration: none; white-space: nowrap; }
.lb-gbx-replay:hover { color: #fff; text-decoration: underline; }
.lb-gbx-replay i { position: relative; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd6cc, #ff6a55 45%, #c53a2b);
    box-shadow: 0 0 10px rgba(255, 106, 85, .6); animation: lb-gbx-blink 2.4s ease-in-out infinite; }
.lb-gbx-replay i::after { content: ''; position: absolute; left: 55%; top: 50%; transform: translate(-40%, -50%); border-style: solid;
    border-width: 4.5px 0 4.5px 7px; border-color: transparent transparent transparent #fff; }

/* Bingo's miniature (static/js/lobby/minis.js `bingo`): the hall's glass globe on its brass stand, balls in the five column
   colours tumbling, beside a card under B I N G O's colours whose daubs land in turn (its tick, one every 0.9 s, then the
   card clears). */
.lb-mn-bingo { display: flex; align-items: center; gap: 16px; margin-top: -14px; }
.lb-mn-globe { position: relative; width: 70px; height: 70px; margin-bottom: 14px; }
.lb-mn-glass i { width: 11px; height: 11px; margin: -5.5px; }
.lb-mn-glass i.cb { background: radial-gradient(circle at 35% 30%, #dbeafe, #2563eb 65%); }
.lb-mn-glass i.ci { background: radial-gradient(circle at 35% 30%, #fee2e2, #dc2626 65%); }
.lb-mn-glass i.cn { background: radial-gradient(circle at 35% 30%, #fff, #d6d3d1 70%); }
.lb-mn-glass i.cg { background: radial-gradient(circle at 35% 30%, #dcfce7, #16a34a 65%); }
.lb-mn-glass i.co { background: radial-gradient(circle at 35% 30%, #fef3c7, #f59e0b 65%); }
.lb-mn-gstand { position: absolute; left: 50%; top: 100%; width: 40px; height: 14px; margin: -3px 0 0 -20px; border-radius: 0 0 50% 50% / 0 0 100% 100%;
    background: linear-gradient(180deg, #e2b44a, #8a5a14); box-shadow: 0 6px 10px rgba(0,0,0,.5); }
.lb-mn-bcard { padding: 4px; border-radius: 5px; background: #1a0a0e; border: 1.5px solid #c9973f; box-shadow: 0 8px 16px rgba(0,0,0,.55); }
.lb-mn-bhd { display: grid; grid-template-columns: repeat(5, 15px); gap: 2px; margin-bottom: 2px; }
.lb-mn-bhd b { height: 7px; border-radius: 2px; background: #2563eb; }
.lb-mn-bhd b:nth-child(2) { background: #dc2626; } .lb-mn-bhd b:nth-child(3) { background: #e7e5e4; }
.lb-mn-bhd b:nth-child(4) { background: #16a34a; } .lb-mn-bhd b:nth-child(5) { background: #f59e0b; }
.lb-mn-bgrid { display: grid; grid-template-columns: repeat(5, 15px); grid-auto-rows: 15px; gap: 2px; }
.lb-mn-bgrid i { position: relative; border-radius: 2px; background: #fdf8ec; }
.lb-mn-bgrid i.free { background: radial-gradient(circle, #f2cf6b 0 40%, #fdf8ec 42%); }
.lb-mn-bgrid i.d::after { content: ''; position: absolute; inset: 1.5px; border-radius: 50%; background: rgba(200, 30, 30, .85);
    animation: lb-mn-daub .25s ease-out; }
@keyframes lb-mn-daub { from { transform: scale(.2); opacity: 0; } }
/* The PvP lock (directory.js `lockHTML`, app/services/lobby_home.py `pvp_gate`): the art dims, the pill names the level,
   and the live line becomes what is still missing with its progress (same fixed height). */
.lb-card.locked .lb-thumb .ico { filter: grayscale(.65) brightness(.7) drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.lb-card.locked:hover .lb-thumb .ico { transform: none; }
.lb-pill.lock { color: #fde68a; border-color: rgba(251,191,36,.45); }
.lb-pill.lock b { font-weight: 400; }
.lb-lock-k .t { color: #e7e5e4; }
.lb-lock-bar .lb-bar { flex: 0 0 42%; height: 6px; }
.lb-lock-bar .t { font-variant-numeric: tabular-nums; }

/* Dice Duel's miniature: the VS between the two hands. */
.lb-mn-vs { position: relative; font: 800 13px var(--f-display); letter-spacing: .08em; color: #fde68a; text-shadow: 0 2px 6px rgba(0,0,0,.7); }

/* Low graphics (COMFORT_AND_PERFORMANCE_PLAN.md 7.2; static/js/lobby/minis.js moves one miniature, SceneLoop holds every
   other infinite loop on its first frame): no glow / drop-shadow filters on the cards, pills and crests the live data
   redraws, and the Prismatic salon's vein stands still on its own layer no more. */
html.gfx-low .lb-thumb .ico, html.gfx-low .lb-pill.hr b, html.gfx-low .lb-grand, html.gfx-low .lb-fav.on svg,
    html.gfx-low .lb-cf-crest, html.gfx-low .lb-mn-rf .lb-mn-rh { filter: none; }
html.gfx-low .lb-card.locked .lb-thumb .ico { filter: grayscale(.65) brightness(.7); }

/* LuckyRook Downs' Main Event card (static/js/lobby/downs.js; docs/plans/games/HORSE_RACING_PLAN.md 10.2): the Downs has
   no shelf card, so this is its way in. The track at night at the left (the game's miniature, faded into the panel), the
   Downs' brass and turf on the right: the name, the three track tiles (the first race to go lit in brass; a race that is
   off wears a steady red dot - no loop, nothing to calm), the next big race. Compact and phone layouts: the Main Events
   block below. */
.lb-downs { position: relative; display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); min-height: 206px;
    overflow: hidden; isolation: isolate; border-radius: 18px; border: 1px solid rgba(201,160,62,.34);
    background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(122,90,22,.32), transparent 70%), linear-gradient(160deg, #0b1d12, #03100a 70%);
    box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(232,201,106,.12); }
.lb-dn-art { position: relative; min-height: 150px; background: #241509; }
.lb-dn-art::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, transparent 55%, #07170e 100%), linear-gradient(0deg, rgba(3,16,10,.55), transparent 40%); }
.lb-dn-art .lb-mini canvas { position: absolute; inset: 0; }
.lb-dn-info { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; padding: 16px 18px 16px 6px; }
.lb-dn-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 12px; }
.lb-dn-txt { min-width: 0; }
.lb-dn-kick { color: rgba(232,201,106,.85); }
.lb-dn-title { margin: 4px 0 0; font: 600 clamp(22px, 2.4vw, 30px)/1.05 'Cinzel', 'Playfair Display', Georgia, serif; letter-spacing: .05em; color: #f1d78a;
    text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 18px rgba(232,201,106,.18); }
.lb-dn-acts { display: flex; align-items: center; gap: 14px; flex: none; }
.lb-dn-form { white-space: nowrap; }
.lb-dn-cta { color: #2a1c04; background: linear-gradient(180deg, #f6dc8c, #c9a03e); border: 1px solid rgba(255,236,170,.7);
    box-shadow: 0 0 16px rgba(232,201,106,.22); text-decoration: none; white-space: nowrap; }
.lb-dn-cta:hover { filter: brightness(1.06); }
.lb-dn-tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lb-dn-skel { height: 58px; border-radius: 12px; }
.lb-dn-idle { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; font-size: 13px; color: #d6d3d1; background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.07); }
.lb-dn-idle a { color: #e8c96a; }
.lb-dn-t { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; min-height: 58px; padding: 9px 12px; border-radius: 12px;
    text-decoration: none; color: #e7e5e4; background: rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.08); transition: border-color .15s, background .15s; }
.lb-dn-t:hover, .lb-dn-t:focus-visible { border-color: rgba(232,201,106,.55); background: rgba(0,0,0,.5); }
.lb-dn-t.first { border-color: rgba(232,201,106,.6); background: linear-gradient(180deg, rgba(232,201,106,.1), rgba(0,0,0,.34));
    box-shadow: inset 0 0 0 1px rgba(232,201,106,.18); }
.lb-dn-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-dn-when, .lb-dn-off { font-size: 12px; color: #d6d3d1; font-variant-numeric: tabular-nums; }
.lb-dn-when b { color: #e8c96a; }
.lb-dn-off { color: #fca5a5; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lb-dn-off i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #ef4444; vertical-align: 1px; }
.lb-dn-sub { font-size: 11px; color: #a8a29e; font-variant-numeric: tabular-nums; }
/* The next named race under the tracks (stage B): one line, the name and its countdown in brass. */
.lb-dn-feat { display: block; min-width: 0; padding: 7px 12px; border-radius: 10px; text-decoration: none;
    color: #d6d3d1; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: rgba(232,201,106,.07); border: 1px solid rgba(232,201,106,.25); }
.lb-dn-feat:hover, .lb-dn-feat:focus-visible { border-color: rgba(232,201,106,.55); }
.lb-dn-feat b { color: #e8c96a; }
.lb-dn-k { margin-right: 8px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #a8a29e; }

/* The Main Events (#lb-events, static/js/lobby/events.js; LOBBY_PLAN_V3.md 4.5): one row of stage cards, laid out by the
   row's own width (a container, so the play column and a phone read the same rules):
   - 760px and wider: the featured card (about two thirds) beside a column of compact cards, 322px tall; past two compact
     cards the column scrolls.
   - 560-759px: the featured card across the row, the compact cards in a row under it.
   - narrower (a phone): one card per swipe, scroll snap, a peek of the next card, dots. Nothing scrolls by itself.
   A compact card is a link as a whole (its title link's ::after covers it; the Downs' track tiles stay on top). */
#lb-events { container: ev / inline-size; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lb-me-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-width: 0; }
.lb-me-title { margin: 2px 0 0; font-size: 26px; line-height: 1.15; }
.lb-me-note { font-size: 12.5px; font-weight: 700; color: var(--emerald-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-me-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; height: 322px; min-width: 0; }
.lb-me-row.solo { grid-template-columns: minmax(0, 1fr); height: auto; }
.lb-me-row.solo .lb-me-side { display: none; }
.lb-me-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; overflow-y: auto; scrollbar-width: thin; }
.lb-me { position: relative; min-width: 0; margin: 0; }
.lb-me.featured { height: 100%; }
.lb-me-row.solo .lb-me.featured { height: auto; min-height: 300px; }
.lb-me-side > .lb-me { flex: 0 0 154px; min-height: 0; }
.lb-me-dots { display: none; justify-content: center; gap: 6px; }
.lb-me-dots i { width: 6px; height: 6px; border-radius: 3px; background: #44403c; transition: width var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.lb-me-dots i.on { width: 18px; background: var(--gold); }
html.calm-motion .lb-me-dots i { transition: none; }
.lb-me-link { color: inherit; text-decoration: none; }
.lb-me-link:hover, .lb-me-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lb-me.lb-gbx, .lb-me.lb-downs { min-height: 0; }
.lb-gbx-name { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.lb-gbx-jp { display: none; flex: none; font: 800 14px var(--f-num); color: #fde68a; font-variant-numeric: tabular-nums; }
/* the featured LuckyBall card: its glass a little tighter, so the facts fit the row's height */
.lb-gbx.featured .lb-gbx-info { margin: 12px; padding: 14px 16px; gap: 8px; }
.lb-gbx.featured .lb-gbx-title { font-size: 34px; }
/* the plain card (an event with no card module of its own) */
.lb-me-plain { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); overflow: hidden; border-radius: 18px; border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card), var(--card-2)); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 1px 0 var(--sheen); }
.lb-me-art { display: grid; place-items: center; min-height: 0; }
.lb-me-art svg { width: 56%; max-width: 120px; height: auto; }
.lb-me-info { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; padding: 14px 16px; }
.lb-me-name { margin: 0; font: 700 24px/1.1 var(--f-display); color: #f6d77a; }
.lb-me-fact { margin: 0; font-size: 13px; color: var(--soft); }
.lb-me-cta { align-self: flex-start; }
/* a search that finds a Main Event with no card of its own (LuckyBall): one line to it above the grid */
.lb-me-hit { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: baseline; gap: 12px; min-height: 44px; margin-bottom: 14px;
    padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--text); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.lb-me-hit:hover, .lb-me-hit:focus-visible { border-color: var(--line-strong); }
.lb-me-hit b { font-family: var(--f-display); color: #f6d77a; }
.lb-me-hit-fact { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@container ev (min-width: 560px) {
    .lb-me.compact .lb-me-link::after { content: ''; position: absolute; inset: 0; z-index: 3; }
    .lb-me.compact .lb-me-cta { display: none; }
    .lb-me-plain.compact .lb-me-fact { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .lb-me-plain.compact .lb-me-name { font-size: 20px; }
    /* LuckyBall, compact: the window a still frame at the left, the clock and the jackpot beside it */
    .lb-gbx.compact { grid-template-columns: 38% minmax(0, 1fr); }
    .lb-gbx.compact .lb-gbx-win { position: relative; inset: auto; grid-column: 1; grid-row: 1; }
    .lb-gbx.compact .lb-gbx-draw, .lb-gbx.compact .lb-gbx-acts,
        .lb-gbx.compact .lb-gbx-chip:not(#lb-gbx-clock) { display: none; }
    .lb-gbx.compact .lb-gbx-info { position: static; grid-column: 2; grid-row: 1; margin: 0; padding: 12px 14px; gap: 8px; border: 0; border-radius: 0;
        background: none; box-shadow: none; }
    .lb-gbx.compact .lb-gbx-title { font-size: 24px; }
    .lb-gbx.compact .lb-gbx-name { flex-direction: column; gap: 4px; }
    .lb-gbx.compact .lb-gbx-jp { display: block; font-size: 15px; }       /* the tower screen is small here */
    /* the Downs, compact: the track at the left, the three tracks as lines */
    .lb-downs.compact { grid-template-columns: 38% minmax(0, 1fr); }
    .lb-downs.compact .lb-dn-art { min-height: 0; }
    .lb-downs.compact .lb-dn-info { padding: 10px 12px 10px 4px; gap: 6px; }
    .lb-downs.compact .lb-dn-acts, .lb-downs.compact .lb-dn-featured, .lb-downs.compact .lb-dn-sub { display: none; }
    .lb-downs.compact .lb-dn-title { margin-top: 2px; font-size: 18px; }
    .lb-downs.compact .lb-dn-tracks { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .lb-downs.compact .lb-dn-skel { height: 20px; }
    .lb-downs.compact .lb-dn-t { position: relative; z-index: 4; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px;
        min-height: 0; padding: 3px 8px; border-radius: 6px; }
    .lb-downs.compact .lb-dn-t:not(.first) { border-color: transparent; background: none; }
    .lb-downs.compact .lb-dn-name { font-size: 12px; }
    .lb-downs.compact .lb-dn-when, .lb-downs.compact .lb-dn-off { flex: none; font-size: 11.5px; }
}
@container ev (min-width: 760px) {
    /* a lone compact card (two events): the column's full height, its art across the top */
    .lb-me-side.one > .lb-me { flex: 1 1 auto; }
    .lb-me-side.one .lb-gbx.compact, .lb-me-side.one .lb-downs.compact, .lb-me-side.one .lb-me-plain.compact {
        grid-template-columns: minmax(0, 1fr); grid-template-rows: 132px auto; }
    .lb-me-side.one .lb-gbx.compact .lb-gbx-info { grid-column: 1; grid-row: 2; }
    .lb-me-side.one .lb-gbx.compact .lb-gbx-name { flex-direction: row; }
    .lb-me-side.one .lb-gbx.compact .lb-gbx-jp { display: none; }               /* the tower screen shows it */
    .lb-me-side.one .lb-downs.compact .lb-dn-art::after { background: linear-gradient(0deg, #07170e 0%, transparent 55%); }
    .lb-me-side.one .lb-downs.compact .lb-dn-info { padding: 10px 14px 14px; gap: 8px; }
    .lb-me-side.one .lb-downs.compact .lb-dn-title { font-size: 22px; }
    .lb-me-side.one .lb-downs.compact .lb-dn-tracks { gap: 4px; }
    .lb-me-side.one .lb-downs.compact .lb-dn-t { padding: 5px 10px; }
}
@container ev (min-width: 560px) and (max-width: 759.98px) {
    .lb-me-row { grid-template-columns: minmax(0, 1fr); height: auto; }
    .lb-me.featured { height: auto; min-height: 300px; }
    .lb-me.lb-downs.featured { min-height: 206px; }
    .lb-me-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); overflow: visible; }
    .lb-me-side > .lb-me { height: 154px; }
}
@container ev (max-width: 559.98px) {
    .lb-me-title { font-size: 20px; }
    .lb-me-row { display: flex; gap: 10px; height: auto; margin-inline: -16px; padding: 0 16px 2px; scroll-padding-inline: 16px; overflow-x: auto;
        scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
    .lb-me-row::-webkit-scrollbar { display: none; }
    .lb-me-side { display: contents; }
    .lb-me, .lb-me-side > .lb-me, .lb-me.featured { flex: 0 0 min(86%, 340px); height: auto; min-height: 0; scroll-snap-align: start; }
    .lb-me-row.solo .lb-me { flex-basis: 100%; }
    .lb-me-dots { display: flex; }
    .lb-me-plain { grid-template-columns: minmax(0, 1fr); grid-template-rows: 128px auto; }
    .lb-me-cta { align-self: stretch; text-align: center; }
    /* LuckyBall: the window across the top, the facts under it; the last draw only while one is live */
    .lb-gbx { grid-template-columns: minmax(0, 1fr); grid-template-rows: 140px auto; }
    .lb-gbx-win { position: relative; inset: auto; grid-row: 1; grid-column: 1; }
    .lb-gbx:not(.live) .lb-gbx-draw { display: none; }
    .lb-gbx-info, .lb-gbx.featured .lb-gbx-info { grid-row: 2; grid-column: 1; margin: -18px 10px 10px; align-self: stretch; padding: 12px 14px; gap: 8px; }
    .lb-gbx-title, .lb-gbx.featured .lb-gbx-title { font-size: 30px; }
    .lb-gbx-balls { gap: 4px; }
    .lb-gbx-ball { --s: 32px; font-size: 13px; }
    .lb-gbx-ball.bonus { margin-left: 4px; }
    /* the Downs: the track a band across the top */
    .lb-downs { grid-template-columns: minmax(0, 1fr); }
    .lb-dn-art { height: 128px; min-height: 0; }
    .lb-dn-art::after { background: linear-gradient(0deg, #07170e 0%, transparent 55%); }
    .lb-dn-info { margin-top: -26px; position: relative; z-index: 2; padding: 0 12px 12px; }
    .lb-dn-head { flex-direction: column; align-items: stretch; gap: 10px; }
    .lb-dn-acts { justify-content: space-between; }
    .lb-dn-cta { flex: 1; }
    .lb-dn-tracks { gap: 6px; }
    .lb-dn-t { padding: 8px; }
    .lb-dn-name { font-size: 12px; }
}
