/* v0.9.19 Clubs (src/ui/clubs.js) + the game's own scrollbar (Uday 15-10: a custom scroller, rewards without scrolling).
   The Clubs page fits the screen: the page never scrolls, long lists scroll inside their own panel. */

/* ---- the scrollbar, everywhere: a thin rail, a yellow thumb that wakes on hover */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 204, 0, 0.55) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 8px; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(255, 204, 0, 0.65), rgba(255, 140, 0, 0.55)); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffcc00, #ff9a1f); background-clip: padding-box; border: 2px solid transparent; }
*::-webkit-scrollbar-corner { background: transparent; }

/* ---- the reward card: costs in red (repairs), and short enough to read without scrolling */
.rw-lines li.cost b { color: #fb7185; }
.rw-lines { max-height: none; }
.reward .rw-lines li { padding-top: 3px; padding-bottom: 3px; }

/* ---- the page */
.clubs .side.cl-wrap { position: absolute; inset: 0; max-width: none; width: auto; height: auto; display: flex; flex-direction: column; gap: 12px; padding: 76px clamp(16px, 3vw, 40px) 18px; overflow: hidden; }
.clubs .scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.clubs .scroll-x { overflow-x: auto; overscroll-behavior: contain; }
.clubs h1 { margin: 2px 0 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; letter-spacing: -0.01em; }
.clubs h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; font-weight: 900; letter-spacing: 0.02em; }
.clubs h3 svg { color: var(--acc); }
.clubs p { margin: 0; color: #c9cfda; font-size: 13.5px; line-height: 1.45; }
.cl-loading { color: var(--dim); margin: auto; }
.cl-head { display: flex; align-items: center; gap: 16px; }
.cl-head > div:nth-child(2) { flex: 1; }
.cl-back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 1px solid var(--line); color: var(--txt); padding: 8px 12px 8px 8px; border-radius: 999px; cursor: pointer; font-weight: 800; }
.cl-back:hover { border-color: var(--acc); }
.cl-wallet { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--panel-2); border: 1px solid rgba(245, 181, 36, 0.35); border-radius: 999px; }
.cl-wallet b { font-size: 16px; font-variant-numeric: tabular-nums; }
.cl-wallet small { color: var(--dim); font-size: 12px; }
.clubs .chip { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--txt); font-weight: 800; font-size: 12.5px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.clubs .chip:hover:not(:disabled) { border-color: rgba(255, 204, 0, 0.6); }
.clubs .chip:active:not(:disabled) { transform: translateY(1px); }
.clubs .chip.on { background: var(--acc); color: #111; border-color: var(--acc); }
.clubs .chip:disabled { opacity: 0.35; cursor: default; }
.clubs button.primary svg, .clubs button.ghost svg { vertical-align: -4px; margin-right: 6px; }
.cl-err, .cl-ok { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 70; padding: 11px 18px; border-radius: 12px; font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); animation: clToast 3.6s ease both; pointer-events: none; max-width: min(640px, calc(100vw - 32px)); text-align: center; }
.cl-err { background: #3b0d14; border: 1px solid #fb7185; color: #ffe4e6; }
.cl-ok { background: #0f2a1a; border: 1px solid #22c55e; color: #dcfce7; }
@keyframes clToast { 0% { opacity: 0; transform: translate(-50%, 8px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.cl-fine { color: var(--dim); font-size: 12px; display: block; }

/* ---- badge */
.club-badge { flex: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }
.club-badge.shine .sh { animation: clShine 5.5s ease-in-out infinite; }
@keyframes clShine { 0%, 62% { transform: skewX(-20deg) translateX(0); } 100% { transform: skewX(-20deg) translateX(150px); } }
@media (prefers-reduced-motion: reduce) { .club-badge.shine .sh, .cl-err, .cl-ok { animation: none; } }

/* ---- sign-in gate */
.v-gate .cl-wrap { align-items: center; justify-content: center; text-align: center; }
.cl-gate { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cl-gate-art { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 8px; }
.cl-gate-art .club-badge:not(:first-child) { opacity: 0.85; transform: translateY(6px); animation: clFloat 4s ease-in-out infinite; }
.cl-gate-art .club-badge:last-child { animation-delay: -2s; }
@keyframes clFloat { 50% { transform: translateY(0); } }

/* ---- browse */
.cl-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cl-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; }
.cl-search:focus-within { border-color: var(--acc); }
.cl-search input { flex: 1; background: none; border: 0; color: var(--txt); padding: 11px 0; font-size: 14px; outline: none; }
.cl-chips { display: flex; gap: 6px; }
.cl-list { list-style: none; margin: 0; padding: 0 4px 0 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cl-row { width: 100%; display: grid; grid-template-columns: 28px 44px 1fr 92px 92px 64px; align-items: center; gap: 12px; padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--txt); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.cl-row:hover { border-color: rgba(255, 204, 0, 0.55); background: var(--panel-2); transform: translateX(2px); }
.cl-rank { font-weight: 900; color: var(--acc); text-align: center; font-variant-numeric: tabular-nums; }
.cl-nm { display: flex; flex-direction: column; min-width: 0; }
.cl-nm b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-nm small { color: var(--dim); font-size: 12px; font-style: italic; }
.cl-stat { display: flex; align-items: center; gap: 5px; color: var(--dim); }
.cl-stat b { color: var(--txt); font-variant-numeric: tabular-nums; }
.cl-stat small { font-size: 11px; }
.cl-go, .cl-full { font-style: normal; font-size: 12px; font-weight: 900; text-align: center; padding: 4px 8px; border-radius: 999px; }
.cl-go { color: #111; background: var(--acc); }
.cl-full { color: var(--dim); border: 1px solid var(--line); }
.cl-empty { color: var(--dim); padding: 22px; text-align: center; list-style: none; }

/* ---- found */
.cl-found { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.4fr; gap: 18px; }
.cl-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 50% 35%, rgba(255, 204, 0, 0.12), transparent 60%), var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; }
.cl-pv-name { font-size: 22px; font-weight: 900; margin-top: 6px; max-width: 100%; overflow-wrap: anywhere; }
.cl-preview small { color: var(--dim); font-style: italic; }
.cl-car { margin-top: 10px; }
.cl-form { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.cl-field { display: flex; flex-direction: column; gap: 6px; }
.cl-field > span { font-size: 11px; letter-spacing: 0.14em; font-weight: 900; color: var(--dim); text-transform: uppercase; }
.cl-field input, .cl-field select { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--txt); font-size: 15px; font-weight: 700; outline: none; }
.cl-field input:focus, .cl-field select:focus { border-color: var(--acc); }
.cl-msg { font-size: 12px; color: var(--dim); }
.cl-msg.good { color: #4ade80; }
.cl-msg.bad { color: #fb7185; }
.cl-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-sw .sw { width: 26px; height: 26px; border-radius: 8px; background: var(--c); border: 2px solid rgba(255, 255, 255, 0.12); cursor: pointer; transition: transform .12s; }
.cl-sw .sw:hover { transform: scale(1.12); }
.cl-sw .sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--acc); }
.cl-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-pick .pk { padding: 4px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .12s, transform .12s; }
.cl-pick .pk:hover { transform: translateY(-1px); border-color: rgba(255, 204, 0, 0.5); }
.cl-pick .pk.on { border-color: var(--acc); background: rgba(255, 204, 0, 0.12); }
.cl-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cl-cost { color: var(--dim); font-size: 13px; }
.cl-cost em { font-style: normal; color: #111; background: var(--acc); font-weight: 900; font-size: 11px; padding: 2px 7px; border-radius: 999px; margin-right: 6px; }

/* ---- your club */
.cl-club { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 16px; }
.cl-left { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.cl-id { display: flex; gap: 12px; align-items: center; }
.cl-id h1 { font-size: 24px; overflow-wrap: anywhere; }
.cl-id p { font-style: italic; color: var(--dim); }
.cl-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cl-facts > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.cl-facts svg { color: var(--acc); }
.cl-facts b { font-size: 15px; font-variant-numeric: tabular-nums; }
.cl-facts small { color: var(--dim); font-size: 11px; line-height: 1.2; }
.cl-tabs { display: flex; flex-direction: column; gap: 4px; }
.cl-tabs button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: transparent; border: 1px solid transparent; color: var(--txt); font-weight: 800; font-size: 14px; cursor: pointer; text-align: left; }
.cl-tabs button:hover { background: rgba(255, 255, 255, 0.04); }
.cl-tabs button.on { background: var(--panel-2); border-color: rgba(255, 204, 0, 0.5); }
.cl-tabs button.on svg { color: var(--acc); }
.cl-tabs .dot { margin-left: auto; font-style: normal; background: var(--acc); color: #111; font-size: 11px; font-weight: 900; min-width: 20px; padding: 1px 6px; border-radius: 999px; text-align: center; }
.cl-leave { margin-top: auto; color: var(--dim); }
.cl-right { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.cl-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 12px; }
.cl-grid.cup { grid-template-rows: 1fr; }
.cl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.cl-donate { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cl-donate h3 { margin: 0; }
.cl-amts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.cl-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cl-tier { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); }
.cl-tier svg { width: 100%; height: auto; max-width: 150px; }
.cl-tier b { font-size: 14px; }
.cl-tier small { font-size: 11px; color: var(--dim); line-height: 1.25; }
.cl-tier.own { border-color: rgba(255, 255, 255, 0.22); }
.cl-tier.drive { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.cl-tier.t-pro b { color: #d6dde7; }
.cl-tier.t-elite b { color: #fbbf24; }
.cl-tier button { margin-top: 4px; padding: 6px 10px; font-size: 12px; }
.cl-tier-car { filter: saturate(1.05); }
.cl-tier:not(.own) .cl-tier-car { opacity: 0.45; filter: grayscale(0.6); }
.cl-lock { color: var(--dim); font-size: 11px; margin-top: 4px; }
.cl-members ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cl-mhead, .cl-members li { display: grid; grid-template-columns: 1.4fr 0.8fr 0.5fr 1.4fr; gap: 8px; align-items: center; }
.cl-mhead { font-size: 11px; letter-spacing: 0.12em; color: var(--dim); font-weight: 900; text-transform: uppercase; padding: 0 8px; }
.cl-members li { padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.cl-members li:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.cl-members li.me { background: rgba(255, 204, 0, 0.1); }
.cl-mn { display: flex; align-items: center; gap: 5px; min-width: 0; }
.cl-mn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-crown { color: var(--acc); display: inline-flex; }
.cl-md, .cl-mc { font-variant-numeric: tabular-nums; color: #c9cfda; }
.cl-mt { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cl-mt .tg { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.cl-mt .tt { font-style: normal; font-size: 11px; font-weight: 900; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); }
.cl-mt .tt.t-elite { color: #fbbf24; border-color: rgba(251, 191, 36, 0.5); }
.cl-mt .link.danger { color: #fb7185; font-size: 11.5px; }

/* ---- chat */
.cl-chat { flex: 1; min-width: 0; }
.cl-chat-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cl-chat-h h3 { margin: 0; }
.cl-msgs { list-style: none; margin: 0; padding: 4px 6px 4px 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cl-msgs li { max-width: 78%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 6px 10px 7px; animation: clMsg .2s ease-out both; }
.cl-msgs li.me { align-self: flex-end; background: rgba(255, 204, 0, 0.12); border-color: rgba(255, 204, 0, 0.35); border-radius: 12px 12px 4px 12px; }
.cl-msgs li.muted { opacity: 0.5; }
@keyframes clMsg { from { opacity: 0; transform: translateY(4px); } }
.cm-h { display: flex; align-items: center; gap: 8px; }
.cm-h b { font-size: 12px; color: var(--acc); }
.cm-h small { font-size: 11px; color: var(--dim); }
.cm-act { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.cl-msgs li:hover .cm-act, .cl-msgs li:focus-within .cm-act { opacity: 1; }
.cm-act .ic { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 2px; border-radius: 6px; display: inline-flex; }
.cm-act .ic:hover { color: var(--txt); background: rgba(255, 255, 255, 0.08); }
.cl-msgs p { color: var(--txt); font-size: 14px; overflow-wrap: anywhere; }
.cl-msgs .pre { font-weight: 800; }
.cl-presets { display: flex; gap: 6px; padding-bottom: 4px; min-width: 0; max-width: 100%; overflow-x: auto; }
.cl-send { display: flex; gap: 8px; }
.cl-send input { flex: 1; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; color: var(--txt); font-size: 14px; outline: none; }
.cl-send input:focus { border-color: var(--acc); }
.cl-send .primary { padding: 0 16px; }
.cl-send .primary svg { margin: 0; }

/* ---- cup */
.cl-cupcard .primary { margin-top: auto; }
.cl-cuptrack { background: linear-gradient(120deg, rgba(255, 204, 0, 0.16), rgba(255, 90, 31, 0.08)); border: 1px solid rgba(255, 204, 0, 0.35); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.cl-cuptrack b { font-size: 22px; font-weight: 900; }
.cl-cuptrack small:last-child { color: var(--dim); }
.cl-mine b { color: var(--acc); }
.cl-ladder ul { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cl-ladder li { display: grid; grid-template-columns: 26px 34px 1fr auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 10px; }
.cl-ladder li.me { background: rgba(255, 204, 0, 0.12); }
.cl-ladder .cl-pts { font-weight: 900; font-variant-numeric: tabular-nums; }

/* v0.9.24 (QA round 9, Chromebook window): two columns hold down to 700 px (the one-column layout crushed every card
   into one screen at 900 px); below that, one column that scrolls as a page */
@media (max-width: 900px) {
  .cl-club { grid-template-columns: minmax(200px, 236px) minmax(0, 1fr); gap: 12px; }
  .cl-row { grid-template-columns: 24px 40px 1fr 70px; }
  .cl-row .pts, .cl-row em { display: none; }
}

/* ---- the update bonus card (src/ui/hub.js bonusCard) */
.bonus-card .hi-card { width: min(540px, 100%); }
.bn-ray { display: flex; gap: 12px; align-items: center; }
.bn-ray img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: rgba(255, 255, 255, 0.06); }
.bn-ray h2 { margin: 2px 0 0; font-size: 24px; }
.hi-card ul.bn-bill { display: grid; gap: 4px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.hi-card li.bn-row { display: flex; justify-content: space-between; grid-template-columns: none; font-size: 14px; }
.hi-card li.bn-row b { font-variant-numeric: tabular-nums; color: #fb7185; }
.hi-card li.bn-row.total { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-weight: 900; }
.bn-gift { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: linear-gradient(110deg, rgba(255, 204, 0, 0.2), rgba(255, 140, 0, 0.08)); border: 1px solid rgba(255, 204, 0, 0.45); animation: bnPop .5s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
.bn-gift svg { width: 34px; height: 34px; }
.bn-gift b { display: block; font-size: 26px; font-weight: 900; color: var(--acc); font-variant-numeric: tabular-nums; }
.bn-gift span { color: var(--txt-2, #c9cfda); font-size: 13px; }
.bn-rule { font-size: 13px; }
.bonus-card .row { display: flex; gap: 10px; justify-content: flex-end; }
@keyframes bnPop { from { opacity: 0; transform: scale(.92); } }
.cl-prizes ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; }
.cl-prizes li { display: flex; justify-content: space-between; font-size: 12.5px; color: #c9cfda; }
.cl-prizes b { color: var(--acc); font-variant-numeric: tabular-nums; }

.cl-carsvg { width: 100%; height: auto; }
.cl-preview .cl-car { width: min(260px, 90%); }
.cl-tier .cl-tier-car { width: 100%; padding: 4px 6px 0; }
.cl-tier { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.25)); }
.cl-tier.t-pro { background: linear-gradient(180deg, rgba(203,213,225,.10), rgba(0,0,0,.25)); }
.cl-tier.t-elite { background: linear-gradient(180deg, rgba(251,191,36,.12), rgba(0,0,0,.25)); }

/* v0.9.21 chat sending: a spinner while a line travels, a ring counting down to the next one */
.cl-sendbtn { min-width: 84px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 900; font-size: 13px; }
.cl-sendbtn:disabled { opacity: 0.85; filter: none; }
.cl-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(17, 17, 17, 0.25); border-top-color: #111; animation: clSpin .7s linear infinite; }
@keyframes clSpin { to { transform: rotate(360deg); } }
.cl-ring { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#111 calc(var(--p) * 360deg), rgba(17, 17, 17, 0.2) 0); }
.cl-presets .chip:disabled { opacity: 0.45; }

/* v0.9.24 (CrazyGames QA round 9: "this UI extends beyond its panel"): the club cars always stay inside their card.
   A narrow card shows each car as a compact row (icon left, words right); the list scrolls inside the card if it must. */
.cl-cars { container-type: inline-size; overflow: hidden; }
.cl-cars .cl-tiers { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; }
@container (max-width: 470px) {
  .cl-cars .cl-tiers { grid-template-columns: 1fr; gap: 6px; }
  .cl-cars .cl-tier { display: grid; grid-template-columns: 74px 1fr; column-gap: 10px; row-gap: 1px; align-items: center; text-align: left; padding: 6px 10px 6px 6px; }
  .cl-cars .cl-tier .cl-tier-car { grid-row: 1 / span 4; padding: 0; }
  .cl-cars .cl-tier svg { max-width: 74px; }
  .cl-cars .cl-tier > :not(.cl-tier-car) { grid-column: 2; }
  .cl-cars .cl-tier button { justify-self: start; margin-top: 2px; }
}

@media (max-width: 700px) {
  .cl-club, .cl-found, .cl-grid { grid-template-columns: 1fr; }
  .clubs .side.cl-wrap { overflow-y: auto; }
  .cl-club, .cl-grid, .cl-left, .cl-right, .cl-card { flex: none; min-height: auto; }
}

/* v0.9.25 (QA hunt): an empty Club Cup ladder is one line of text, not a column of words; the quick-line chips show
   that more scroll in from the right */
.cl-ladder li.cl-empty { display: block; padding: 10px 8px; color: var(--dim); }
.cl-presets { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); padding-right: 32px; }

/* v0.9.25 the club cars list fades at the bottom when there is more to scroll to */
.cl-cars .cl-tiers { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent); padding-bottom: 18px; }

/* v0.9.27 (CrazyGames QA round 10, a 764x385 window: "the Club Cup and Club Cars buttons are not visible in the Club
   menu"): in a short window the club page scrolls as one page, every card at its own height (none squashed to a line),
   and the left column puts the tabs (Club, Chat, Club Cup) right under the club's name, before the numbers */
@media (max-height: 560px) {
  .clubs .side.cl-wrap { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
  .cl-club, .cl-grid, .cl-left, .cl-right, .cl-card { flex: none; min-height: auto; }
  .cl-club { align-items: start; }
  .cl-grid { grid-template-rows: auto; }
  .cl-left { gap: 8px; }
  .cl-id { gap: 10px; }
  .cl-id svg { width: 54px; height: 54px; }
  .cl-id h1 { font-size: 20px; }
  .cl-id p { font-size: 12px; }
  .cl-id { order: -2; }
  .cl-tabs { order: -1; gap: 3px; }
  .cl-tabs button { padding: 7px 10px; font-size: 13px; }
  .cl-facts > div { padding: 5px; }
  .cl-facts b { font-size: 13px; }
  .cl-facts small { font-size: 11px; }
  .cl-card { padding: 10px 12px; }
  .cl-cars .cl-tiers { overflow: visible; -webkit-mask-image: none; mask-image: none; padding-bottom: 0; }
  .cl-msgs { min-height: 140px; }
}
/* v0.9.27 (QA hunt, 764x385): the guest's club page scrolls from its top; nothing is cut off above or below */
@media (max-height: 560px) { .v-gate .cl-wrap { justify-content: safe center; } .cl-gate-art .club-badge { width: 64px; height: 64px; } }
