/* v6-clublobby.css — club lobby (ClubLobbyS2Final / S2Filter / LobbyInlineFull /
   ClubLobbyUnion / UnionClubs). Prefix cl-. */

main[data-view="club"].on { display: block; height: 100%; min-height: 0; overflow: hidden; }
.cl-root { position: relative; height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: #161618; font-family: Manrope, sans-serif; color: #F2EFEA; }
.cl-root * { box-sizing: border-box; }
.cl-root a { color: #E3C998; text-decoration: none; }
.cl-root button { font-family: Manrope, sans-serif; }
.cl-bg { position: absolute; left: 0; top: 0; pointer-events: none; }
.cl-grow { flex-grow: 1; }

@keyframes cltw { 0%,100% { opacity: .15; transform: scale(.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.cl-tw1 { animation: cltw 2.4s ease-in-out infinite; }
.cl-tw2 { animation: cltw 2.4s ease-in-out .8s infinite; }
.cl-tw3 { animation: cltw 2.4s ease-in-out 1.6s infinite; }

/* ---------- top bar ---------- */
.cl-top { position: relative; z-index: 2; flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 12px 12px 10px; }
.cl-back { width: 40px; height: 40px; margin-right: 2px; border: 0; background: transparent; color: #F2EFEA; display: flex; align-items: center; justify-content: center; padding: 0; }
.cl-ttl { flex-grow: 1; min-width: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: #8A8178; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-ib { position: relative; width: 38px; height: 38px; border-radius: 19px; background: #1F1F22; border: 1px solid #2E2E33; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: #F2EFEA; padding: 0; flex-shrink: 0; }
.cl-dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 4px; background: #E5484D; }

.cl-scroll { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-y; }
.cl-scroll.drag-scroll-ready { cursor: grab; }
.cl-scroll.drag-scrolling { cursor: grabbing; user-select: none; }
.cl-scroll.drag-scrolling * { user-select: none; }
.cl-scroll::-webkit-scrollbar { display: none; }
.cl-body { padding-bottom: max(104px, calc(88px + env(safe-area-inset-bottom, 0px))); }

.cl-searchbox, .cl-usearch { margin: 0 16px 10px; height: 42px; border-radius: 12px; background: #1F1F22; border: 1px solid #2E2E33; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #8A8178; }
.cl-searchbox input, .cl-usearch input { flex-grow: 1; min-width: 0; border: 0; background: transparent; color: #F2EFEA; font: 500 14px Manrope, sans-serif; outline: none; }
.cl-usearch { margin: 14px 16px 0; height: 44px; }

/* ---------- header card ---------- */
.cl-card { position: relative; margin: 0 16px; padding: 15px 12px 12px; border-radius: 18px; overflow: hidden; background: var(--cl-g); border: 1px solid var(--cl-bd); box-shadow: 0 14px 28px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.12); color: var(--cl-tx); }
.cl-rings { position: absolute; right: 0; top: 0; pointer-events: none; }
.cl-card-top { position: relative; display: flex; gap: 16px; padding-left: 4px; min-height: 60px; }
.cl-tilewrap { position: relative; flex-shrink: 0; width: 54px; height: 54px; margin-top: 1px; }
.cl-tile { width: 54px; height: 54px; border-radius: 14px; background: var(--cl-tile, rgba(0,0,0,0.35)); border: 1px solid rgba(255,255,255,0.16); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cl-lvl { position: absolute; right: -6px; bottom: -7px; line-height: 0; }
.cl-card-id { flex-grow: 1; min-width: 0; }
.cl-name-row { display: flex; align-items: center; gap: 8px; }
.cl-name { flex-grow: 1; min-width: 0; font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-role { flex-shrink: 0; font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--cl-pill); border: 1px solid var(--cl-pillbd); border-radius: 5px; padding: 2px 6px; }
.cl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12px; color: var(--cl-sub); }
.cl-meta b { color: var(--cl-tx); }
.cl-ppl, .cl-meta2 { display: inline-flex; align-items: center; gap: 5px; }
.cl-meta2 { margin-top: 6px; }
.cl-root .cl-ulink { display: inline-flex; align-items: center; gap: 6px; color: var(--cl-tx); font-size: 12px; font-weight: 700; margin: -6px 0; }
.cl-ulink span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.cl-solo { position: relative; margin: 10px 0 0 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--cl-sub); }
.cl-card-u .cl-tiles { margin-top: 14px; }
.cl-tiles { position: relative; display: flex; gap: 6px; margin-top: 12px; }
.cl-bal { flex: 1; min-width: 0; padding: 8px 9px; border-radius: 10px; background: rgba(0,0,0,0.35); border: 1px solid rgba(212,185,138,0.2); }
.cl-bal-k { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; color: var(--cl-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-bal-v { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 14.5px; font-weight: 800; color: #F2EFEA; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.cl-bal-v.gold { color: #E3C998; }
.cl-bal-v svg, .cl-dia { flex-shrink: 0; }
.cl-dia { position: relative; display: inline-flex; width: 15px; height: 15px; }
.cl-light .cl-bal { background: rgba(255,255,255,0.28); border-color: rgba(0,0,0,0.18); }
.cl-light .cl-bal-v { color: var(--cl-tx); }
.cl-light .cl-bal-v.gold { color: #5A4012; }

/* ---------- jackpot ---------- */
.cl-root .cl-jp { margin: 10px 16px 0; height: 56px; padding: 0 14px 0 10px; border-radius: 12px; background: linear-gradient(135deg, #F3E2B6 0%, #C9A664 30%, #F6E8C6 52%, #B08744 78%, #E3CA90 100%); border: 1px solid #8A6A30; box-shadow: 0 8px 18px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.55); display: flex; align-items: center; gap: 8px; overflow: hidden; }
.cl-root .cl-jp.empty { background: rgba(18,18,20,.78); border-color: rgba(212,185,138,.32); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.cl-jp-art { position: relative; flex-shrink: 0; width: 58px; height: 46px; }
.cl-jp.empty .cl-jp-art { opacity: .32; filter: grayscale(.35); }
.cl-ruby { position: relative; display: inline-flex; }
.cl-jp-t { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; -webkit-text-stroke: 0.25px #2E2109; white-space: nowrap; color: #2E2109; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cl-jp.empty .cl-jp-t { color: #D4B98A; -webkit-text-stroke: 0; }
.cl-jp-v { font-size: 19px; font-weight: 800; color: #1A140A; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-jp.empty .cl-jp-v { color: #8A8178; }
.cl-live { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 10px; background: #1A140A; font-size: 9.5px; font-weight: 800; color: #22F08A; flex-shrink: 0; }
.cl-live i { width: 5px; height: 5px; border-radius: 3px; background: #22F08A; }
.cl-jp.empty .cl-live { color: #A79F94; background: #242326; }
.cl-jp.empty .cl-live i { background: #6F675E; }

/* ---------- controls ---------- */
.cl-ctrl { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; }
.cl-seg { display: flex; flex-shrink: 1; min-width: 0; padding: 3px; border-radius: 11px; background: #1F1F22; border: 1px solid #2E2E33; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); overflow-x: auto; scrollbar-width: none; }
.cl-seg::-webkit-scrollbar { display: none; }
.cl-seg button { flex-shrink: 0; height: 30px; padding: 0 7px; border-radius: 8px; border: 0; background: transparent; color: #A79F94; font: 800 12px Manrope, sans-serif; display: inline-flex; align-items: center; gap: 5px; }
.cl-seg button i { width: 3px; height: 12px; border-radius: 2px; }
.cl-seg button[aria-pressed="true"] { background: rgba(212,185,138,0.18); color: #E3C998; }
.cl-ddwrap { position: relative; flex: 1; min-width: 64px; }
.cl-dd { width: 100%; height: 36px; padding: 0 10px; border-radius: 11px; background: #1F1F22; border: 1px solid #2E2E33; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); color: #F2EFEA; font: 700 12.5px Manrope, sans-serif; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.cl-dd span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-ddmenu { position: absolute; z-index: 5; top: 40px; right: 0; min-width: 160px; padding: 6px; border-radius: 12px; background: #1F1F22; border: 1px solid #3A3226; box-shadow: 0 14px 28px rgba(0,0,0,0.6); display: flex; flex-direction: column; }
.cl-ddmenu button { height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #F2EFEA; font: 700 12.5px Manrope, sans-serif; display: flex; align-items: center; gap: 8px; text-align: left; }
.cl-ddmenu button i, .cl-fcats button i { width: 7px; height: 7px; border-radius: 4px; flex-shrink: 0; }
.cl-ddmenu button.on { background: rgba(212,185,138,0.16); color: #E3C998; }
.cl-fbtn { position: relative; flex-shrink: 0; width: 38px; height: 36px; border-radius: 11px; background: #1F1F22; border: 1px solid #2E2E33; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); color: #F2EFEA; display: flex; align-items: center; justify-content: center; padding: 0; }
.cl-fbtn.on { border-color: rgba(212,185,138,0.6); }
.cl-badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #D4B98A; color: #15120D; font: 800 10px Manrope, sans-serif; display: flex; align-items: center; justify-content: center; }

/* filter panel (S2Filter) */
.cl-fpanel { margin: 8px 16px 0; padding: 4px 14px 14px; border-radius: 16px; background: #1F1F22; border: 1px solid #3A3226; }
.cl-fk { font-size: 10px; font-weight: 800; letter-spacing: 0.18em; color: #8A8178; margin: 12px 0 8px; }
.cl-fcats { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-fcats button { height: 30px; padding: 0 11px; border-radius: 15px; background: #1F1F22; border: 1px solid #2E2E33; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); color: #F2EFEA; display: inline-flex; align-items: center; gap: 6px; font: 700 12px Manrope, sans-serif; }
.cl-fcats button.on { background: rgba(212,185,138,0.16); border-color: rgba(212,185,138,0.6); color: #E3C998; box-shadow: none; }
.cl-fvars { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 4px; }
.cl-fvars button { display: inline-flex; height: 26px; padding: 0 10px; transform: skewX(-18deg); border-radius: 4px; background: transparent; border: 1px solid color-mix(in srgb, var(--vc) 60%, transparent); align-items: center; }
.cl-fvars button span { transform: skewX(18deg); font: 800 11.5px Manrope, sans-serif; color: color-mix(in srgb, var(--vc) 55%, #fff); white-space: nowrap; }
.cl-fvars button.on { background: linear-gradient(90deg, var(--vc), color-mix(in srgb, var(--vc) 70%, transparent)); border-color: transparent; }
.cl-fvars button.on span { color: #FFFFFF; }
.cl-fseg { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: #1F1F22; border: 1px solid #2E2E33; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.cl-fseg button { flex: 1; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: #A79F94; font: 700 12px Manrope, sans-serif; }
.cl-fseg button[aria-pressed="true"] { border-color: rgba(212,185,138,0.5); background: rgba(212,185,138,0.14); color: #E3C998; }
.cl-fact { display: flex; gap: 8px; margin-top: 14px; }
.cl-freset { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(212,185,138,0.45); background: transparent; color: #E3C998; font: 700 13px Manrope, sans-serif; }
.cl-fshow { flex: 1; height: 40px; border-radius: 10px; border: 0; background: #D4B98A; color: #15120D; font: 800 13.5px Manrope, sans-serif; }

/* status row */
.cl-status { display: flex; align-items: center; gap: 16px; margin: 10px 16px 0; }
.cl-ck { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; font-size: 12.5px; font-weight: 700; color: #F2EFEA; cursor: pointer; white-space: nowrap; }
.cl-ck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cl-ck .box { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #5F5A54; display: inline-flex; align-items: center; justify-content: center; }
.cl-ck .box.on { background: #D4B98A; border-color: #D4B98A; }
.cl-ck input:focus-visible + .box { outline: 2px solid #E3C998; outline-offset: 2px; }
.cl-ck i { width: 6px; height: 6px; border-radius: 3px; }
.cl-ck em { font-style: normal; font-size: 11px; color: #8A8178; }
.cl-new { margin-left: auto; flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: #D4B98A; color: #15120D; font: 800 13px Manrope, sans-serif; display: inline-flex; align-items: center; gap: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); white-space: nowrap; }

/* section labels */
.cl-sect { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 14px 16px 8px; }
.cl-sect > span:first-child { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: #8A8178; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-sect a, .cl-sect-r { font-size: 12px; font-weight: 700; color: #E3C998; white-space: nowrap; }

/* ---------- table rows (S2) ---------- */
.cl-list { display: flex; flex-direction: column; gap: 7px; margin: 0 16px; }
.cl-row { position: relative; display: flex; gap: 10px; padding: 10px 10px 11px 16px; border-radius: 14px; overflow: hidden; background: #1F1F22; border: 1px solid #2E2E33; cursor: pointer; }
.cl-row.pinned { border-color: #8C7444; }
.cl-row:focus-visible { outline: 2px solid #E3C998; outline-offset: 1px; }
.cl-row.open { border-color: #D4B98A; border-bottom: 0; border-radius: 14px 14px 0 0; margin-bottom: -7px; }
.cl-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.cl-row-l { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cl-row-tags { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.cl-gb { flex-shrink: 0; display: inline-flex; height: 21px; padding: 0 10px; margin-left: 2px; transform: skewX(-18deg); border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.45); align-items: center; }
.cl-gb span { transform: skewX(18deg); font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.cl-fmt { flex-shrink: 0; font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; }
.cl-tag { flex-shrink: 0; font-size: 9.5px; font-weight: 800; color: #E3C998; border: 1px solid #4A3F2C; border-radius: 5px; padding: 0 5px; line-height: 17px; white-space: nowrap; }
.cl-tag-u { color: #A9B8D6; border-color: #33405A; }
.cl-bbj { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px 0 3px; border-radius: 9px; background: #2A1416; border: 1px solid #7A2A34; font-size: 9.5px; font-weight: 800; color: #FF8A98; }
.cl-row-name { min-width: 0; font-size: 17px; font-weight: 800; color: #F2EFEA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-row-stk { font-size: 14px; font-weight: 700; color: #E3C998; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-row-r { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cl-pin { width: 30px; height: 26px; margin: -4px -4px 0 0; border: 0; background: transparent; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #6E675F; }
.cl-pin.on { color: #E3C998; }
.cl-pin-sp { height: 22px; }
.cl-buy { display: inline-flex; align-items: center; gap: 5px; font-size: 21px; font-weight: 800; color: #F2EFEA; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-seat { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; color: #A79F94; font-variant-numeric: tabular-nums; }
.cl-seat.full { color: #F2A322; }

/* inline expansion (LobbyInlineFull) */
.cl-x { padding: 4px 12px 12px; border: 1px solid #D4B98A; border-top: 1px solid #2E2E33; border-radius: 0 0 14px 14px; background: #121214; }
.cl-root .cl-x-vip { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 8px 10px; border-radius: 10px; background: #18160F; border: 1px solid #3A3226; }
.cl-x-vip span { flex-grow: 1; min-width: 0; font-size: 12px; font-weight: 700; color: #A79F94; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-x-vip b { font-size: 12px; font-weight: 800; color: #E3C998; white-space: nowrap; }
.cl-x-seats { display: flex; flex-direction: column; margin-top: 8px; }
.cl-x-seat { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 4px; }
.cl-x-seat .n { width: 18px; font-size: 12px; font-weight: 800; color: #8A8178; font-variant-numeric: tabular-nums; }
.cl-x-seat .nm { flex-grow: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: #F2EFEA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-x-seat .nm.you { font-weight: 800; color: #E3C998; }
.cl-x-seat .nm.empty { color: #5F5A54; }
.cl-x-seat .open { flex-grow: 1; font-size: 13.5px; font-weight: 700; color: #E3C998; }
.cl-x-wl { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 10px; border-radius: 11px; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.3); }
.cl-x-wl b { font-size: 12px; font-weight: 800; color: #F59E0B; }
.cl-x-wl span { flex-grow: 1; min-width: 0; font-size: 12px; color: #A79F94; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-x-stats { display: flex; gap: 10px; padding: 10px 2px 12px; border-bottom: 1px solid #202024; }
.cl-x-stat { flex: 1; min-width: 0; }
.cl-x-stat .k { font-size: 9px; font-weight: 800; letter-spacing: 0.12em; color: #8A8178; white-space: nowrap; }
.cl-x-stat .v { margin-top: 2px; font-size: 13.5px; font-weight: 800; color: #F2EFEA; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-x-note { margin-top: 10px; font-size: 12.5px; color: #A79F94; padding: 0 2px; }
.cl-x-btns { display: flex; gap: 8px; margin-top: 12px; }
.cl-btn { flex: 1; height: 44px; border-radius: 11px; font: 800 14px Manrope, sans-serif; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(212,185,138,0.5); background: #1F1F22; color: #E3C998; white-space: nowrap; padding: 0 6px; }
.cl-btn.gold { background: #D4B98A; color: #15120D; border-color: #D4B98A; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); }
.cl-btn.off { background: #1A1A1D; border-color: #2E2E33; color: #5F5A54; cursor: default; }

.cl-empty { padding: 26px 18px; text-align: center; font-size: 13px; line-height: 1.5; color: #8A8178; border: 1px dashed #2E2E33; border-radius: 14px; }
.cl-empty b { color: #E3C998; }
.cl-spin { width: 26px; height: 26px; margin: 40px auto; border-radius: 50%; border: 2.5px solid #2E2E33; border-top-color: #D4B98A; animation: clspin 0.9s linear infinite; }
@keyframes clspin { to { transform: rotate(360deg); } }

/* ---------- rail ---------- */
.cl-rail { position: relative; z-index: 3; flex-shrink: 0; display: flex; background: #161618; border-top: 1px solid rgba(255,255,255,0.08); padding-bottom: env(safe-area-inset-bottom, 0); }
.cl-root .cl-rail a { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 14px; color: #7A746C; font-size: 11px; font-weight: 600; white-space: nowrap; }
.cl-root .cl-rail a.on { color: #E3C998; }
.cl-rail a.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: #D4B98A; }
.cl-global-rail { box-shadow: 0 -10px 22px rgba(0,0,0,0.24); }
.cl-root .cl-global-rail a { padding-top: 9px; }

@supports (-webkit-touch-callout: none) {
  main[data-view="club"].on {
    height: 100svh;
  }

  .cl-root {
    height: 100svh;
  }
}

@media (max-width: 739px) and (pointer: coarse) {
  html:has(main[data-view="club"].on),
  body:has(main[data-view="club"].on),
  body:has(main[data-view="club"].on) #frame {
    height: 100%;
    overflow: hidden;
  }
}

/* owner 2026-10-06: the club rail is a bottom pane, not inline content. */
main[data-view="club"].on .cl-rail { margin-top: auto; }

/* ---------- sheets ---------- */
.cl-sheet { padding: 18px 22px 8px; display: flex; flex-direction: column; gap: 10px; font-family: Manrope, sans-serif; color: #F2EFEA; }
.cl-sheet-t { text-align: center; font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; }
.cl-sheet-s { font-size: 12.5px; color: #A79F94; text-align: center; }
.cl-sheet-amt { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cl-sheet input[type=range] { width: 100%; accent-color: #D4B98A; }
.cl-sheet-rng { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #8A8178; }
.cl-sheet-pw { display: flex; flex-direction: column; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; color: #8A8178; }
.cl-sheet-pw input { height: 42px; border-radius: 10px; background: #1F1F22; border: 1px solid #2E2E33; color: #F2EFEA; padding: 0 12px; font: 600 14px Manrope, sans-serif; outline: none; }
.cl-sheet-go { flex: none; width: 100%; margin-top: 4px; }
.cl-legal { text-align: center; font-size: 11px; color: #6E675F; }

/* ---------- sub sections inside the club (players.js / chipdesk.js / More) ---------- */
.cl-sub #club-body { padding-top: 2px; }
.cl-sub #club-body > .toprow:not(:has(#pl-back)) { display: none; }
.cl-dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 16px; }
.cl-dt { padding: 12px; border-radius: 12px; background: #1F1F22; border: 1px solid #2E2E33; }
.cl-dt .k { font-size: 9.5px; font-weight: 800; letter-spacing: 0.14em; color: #8A8178; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-dt .v { margin-top: 4px; font-size: 19px; font-weight: 800; color: #F2EFEA; font-variant-numeric: tabular-nums; }

/* ---------- union clubs (UnionClubs) ---------- */
.cl-uhead { margin: 0 16px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #3A0F18 0%, #1A080C 55%, #2A0B12 100%); border: 1px solid #7A2A34; box-shadow: 0 14px 28px rgba(0,0,0,0.55); display: flex; align-items: center; gap: 14px; }
.cl-uhead > svg { flex-shrink: 0; }
.cl-uhead-x { flex-grow: 1; min-width: 0; }
.cl-uname { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: #F2EFEA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-usub { margin-top: 2px; font-size: 12px; color: #D6AEB5; }
.cl-usub b, .cl-ustats b { color: #F2EFEA; }
.cl-ustats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: #D6AEB5; }
.cl-root .cl-uclub { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: #1F1F22; border: 1px solid #2E2E33; }
.cl-root .cl-uclub.you { border-color: #8C7444; }
.cl-uc-tw { position: relative; flex-shrink: 0; }
.cl-uc-tile { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.16); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cl-uc-lvl { position: absolute; right: -6px; bottom: -6px; line-height: 0; }
.cl-uc-x { flex-grow: 1; min-width: 0; }
.cl-uc-n { display: flex; align-items: center; gap: 6px; }
.cl-uc-n span { font-size: 15px; font-weight: 800; color: #F2EFEA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-uc-n em { flex-shrink: 0; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; color: #15120D; background: #D4B98A; border-radius: 4px; padding: 1px 5px; }
.cl-uc-s { margin-top: 3px; font-size: 12px; color: #A79F94; }
.cl-uc-s b { color: #F2EFEA; font-variant-numeric: tabular-nums; }
.cl-uc-r { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.cl-uc-r span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #F2EFEA; white-space: nowrap; }
.cl-uc-r i { width: 6px; height: 6px; border-radius: 3px; background: #22F08A; }
.cl-uc-r i.off { background: #5F5A54; }

@media (max-width: 380px) {
  .cl-seg button { padding: 0 5px; font-size: 11.5px; gap: 4px; }
  .cl-ctrl { gap: 6px; }
  .cl-status { gap: 10px; }
  .cl-new { padding: 0 10px; }
  .cl-buy { font-size: 19px; }
  .cl-jp-t { font-size: 12px; letter-spacing: 0.06em; }
  .cl-bal { padding: 7px 7px; }
  .cl-bal-k { font-size: 8.5px; letter-spacing: 0.08em; }
  .cl-bal-v { font-size: 13px; gap: 4px; }
}

/* Manage (club.js renderClubMore rows) — bring the old rows onto the charcoal palette */
.cl-sub #club-body button.player-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; margin: 0 0 7px; padding: 0 14px; border-radius: 14px; background: #1F1F22; border: 1px solid #2E2E33; color: #F2EFEA; font: 700 14px Manrope, sans-serif; text-align: left; }
.cl-sub #club-body button.player-row .nm { color: #F2EFEA; }
.cl-sub #club-body button.player-row .nm small { display: block; margin-top: 3px; color: #8A8178; font: 600 11px Manrope, sans-serif; }
.cl-sub #club-body button.player-row.disabled { opacity: .58; cursor: not-allowed; }
.cl-rail[hidden] { display: none; }

/* tablets / wide windows: two tiles per row; an opened preview spans both */
@media (min-width: 740px) {
  .cl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 10px; align-items: start; }
  .cl-list > .cl-x { grid-column: 1 / -1; }
}
@media (min-width: 1240px) { .cl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cl-lrange { border: 1px solid #2E2E33; background: #1A1A1D; color: #E3C998; font: 700 11.5px 'Manrope', sans-serif; padding: 4px 10px; border-radius: 99px; }
.cl-ledger { margin: 0 16px; border-radius: 16px; background: #1C1C20; border: 1px solid #2B2B31; overflow: hidden; }
.cl-lrow { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font: 600 13px 'Manrope', sans-serif; color: #C9C4BC; }
.cl-lrow + .cl-lrow { border-top: 1px solid #26262B; }
.cl-lrow em { font-style: normal; margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8A8178; }
.cl-lrow small { display: block; font-size: 10.5px; color: #6E6A64; }
.cl-lrow b { font: 800 14px 'Manrope', sans-serif; color: #F2EFEA; font-variant-numeric: tabular-nums; }
.cl-lsum { display: flex; justify-content: space-between; padding: 11px 14px; font: 800 13px 'Manrope', sans-serif; border-top: 1px solid #2B2B31; }
.cl-lsum.ok { background: rgba(34,240,138,.08); color: #22F08A; } .cl-lsum.bad { background: rgba(255,59,78,.1); color: #FF3B4E; }
.cl-lcost { padding: 9px 14px 11px; font: 600 11.5px 'Manrope', sans-serif; color: #8A8178; } .cl-lcost b { color: #F3DEAE; }

.plq-sh.cl-plq { margin: 0 16px; }
.plq-sh { filter: drop-shadow(0 14px 20px rgba(0,0,0,.6)); }
.plq-fr { --cut: 14px; padding: 2px;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  background: linear-gradient(150deg, #FBE7AE, #B8892E 30%, #6E4A14 55%, #E3C998 78%, #8C6420); }
.plq-fr > .cl-card.plq { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px));
  background: radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.10), transparent 55%), repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 5px), var(--cl-g); }

.cl-sub #club-body .sc-row { min-height: 64px; height: auto; padding-top: 10px; padding-bottom: 10px; cursor: default; gap: 10px; }
.cl-sub #club-body .sc-row .nm { min-width: 0; flex: 1; }
.cl-sub #club-body .sc-row .nm small { white-space: normal; line-height: 1.35; }
.sc-k { font-style: normal; margin-left: 6px; padding: 1px 6px; border: 1px solid rgba(212,185,138,.5); border-radius: 4px; color: #E3C998; font-size: 10px; letter-spacing: .08em; }
.sc-acts { display: flex; gap: 6px; }
.sc-b { padding: 6px 10px; border-radius: 8px; border: 1px solid #3A3A40; background: #26262A; color: #E9E2D2; font: 700 11px Manrope, sans-serif; cursor: pointer; }
.sc-b.del { color: #F27A7A; border-color: rgba(242,122,122,.4); }
.cl-sub #club-body .sc-row .nm small { display: block; margin-top: 4px; color: #8A8178; font: 600 11px Manrope, sans-serif; }

/* report export (owner 2026-10-07) */
.cl-xrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 16px 6px; }
.cl-xbtn { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border-radius: 12px; border: 1px solid #3a3a40; background: #1F1F22; color: #E9E2D2; font: 800 13px 'Manrope', sans-serif; cursor: pointer; }
.cl-xbtn.gold { background: linear-gradient(180deg, #E3C998, #C9A15E); color: #15120D; border-color: transparent; }
.cl-xbtn:disabled { opacity: .55; }
.cl-xmail { display: block; margin: 14px 0 10px; }
.cl-xmail span { display: block; font: 800 10px 'Manrope', sans-serif; letter-spacing: .16em; color: #8A8178; margin: 0 2px 6px; text-transform: uppercase; }
.cl-xmail input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #3a3a40; background: #151518; color: #F2EFEA; font: 600 15px 'Manrope', sans-serif; }
.cl-xsend { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #E3C998, #C9A15E); color: #15120D; font: 800 14.5px 'Manrope', sans-serif; cursor: pointer; }
.cl-xsend:disabled { opacity: .6; }

/* club settings (owner 2026-10-07) */
.cs-wrap { padding: 4px 16px 24px; }
.cs-sec { font: 800 10px 'Manrope', sans-serif; letter-spacing: .18em; color: #8A8178; margin: 16px 2px 8px; }
.cs-sec em { font-style: normal; letter-spacing: 0; font-weight: 600; color: #6E685F; margin-left: 6px; text-transform: none; }
.cs-card { background: #1C1C20; border: 1px solid #2B2B31; border-radius: 16px; padding: 12px; }
.cs-f { display: block; margin: 0 0 12px; }
.cs-f:last-child { margin-bottom: 0; }
.cs-f > span { display: block; font: 700 12px 'Manrope', sans-serif; color: #CFC8BA; margin: 0 2px 6px; }
.cs-f > span em { font-style: normal; font-weight: 600; color: #7A746C; margin-left: 4px; }
.cs-f input, .cs-f textarea, .cs-f select { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border-radius: 11px; border: 1px solid #3a3a40; background: #151518; color: #F2EFEA; font: 600 14.5px 'Manrope', sans-serif; resize: vertical; }
.cs-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #151518; border: 1px solid #2E2E33; border-radius: 12px; padding: 3px; }
.cs-seg button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: #A39C8E; font: 800 12.5px 'Manrope', sans-serif; cursor: pointer; }
.cs-seg button.on { background: linear-gradient(180deg, #E3C998, #C9A15E); color: #15120D; }
.cs-cap { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px; align-items: center; padding: 6px 0; font: 700 13px 'Manrope', sans-serif; color: #E9E2D2; }
.cs-cap input { min-width: 0; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid #3a3a40; background: #151518; color: #F3DEAE; font: 700 13.5px 'Manrope', sans-serif; text-align: right; }
.cs-cap input:disabled { opacity: .45; }
.cs-cap-h { font: 800 9.5px 'Manrope', sans-serif; letter-spacing: .14em; color: #7A746C; text-transform: uppercase; padding-top: 0; }
.cs-cap-h span:not(:first-child) { text-align: right; }
.cs-lvl { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; font: 700 13px 'Manrope', sans-serif; color: #CFC8BA; }
.cs-lvl b { color: #F3DEAE; margin-left: 4px; }
.cs-lvl small { color: #7A746C; font-weight: 600; font-size: 11.5px; }
.cs-levels { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.cs-level { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; min-height: 54px; padding: 9px 10px; border-radius: 14px; border: 1px solid #2B2B31; background: #1C1C20; }
.cs-level.cur { border-color: #8C7444; box-shadow: inset 0 0 0 1px rgba(227,201,152,.08); }
.cs-level-badge { width: 30px; height: 32px; display: grid; place-items: center; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); background: #D4B98A; color: #15120D; font: 900 12px 'Manrope', sans-serif; }
.cs-level-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-level-copy b { color: #F2EFEA; font: 800 13px 'Manrope', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-level-copy small { color: #8A8178; font: 600 11.5px 'Manrope', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-level-free, .cs-level-cost { color: #8A8178; font: 800 11.5px 'Manrope', sans-serif; white-space: nowrap; }
.cs-level-free { color: #22F08A; }
.cs-level-buy { min-height: 30px; padding: 0 9px; display: inline-flex; align-items: center; gap: 4px; border-radius: 9px; border: 1px solid #E7C873; background: linear-gradient(180deg, #E7C873, #C9A162); color: #1A1406; font: 900 12px 'Manrope', sans-serif; cursor: pointer; white-space: nowrap; }
.cs-level-buy em { font-style: normal; margin-left: 4px; padding-left: 6px; border-left: 1px solid rgba(26,20,6,.3); }
.cs-level-buy:disabled { opacity: .6; }
.cs-save { width: 100%; min-height: 48px; margin-top: 16px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #E3C998, #C9A15E); color: #15120D; font: 800 14.5px 'Manrope', sans-serif; cursor: pointer; }
.cs-save:disabled { opacity: .6; }
/* club logo (owner 2026-10-07) */
.cs-logo { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.cs-logo-t { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #1B1D22; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); flex: none; }
.cs-logo-b { height: 38px; padding: 0 14px; border-radius: 11px; display: inline-flex; align-items: center; background: #F5F3EF; color: #0B0C0E; font: 800 13px 'Manrope', sans-serif; cursor: pointer; }
.cs-logo-x { height: 38px; padding: 0 12px; border-radius: 11px; border: 0; background: transparent; color: #FF8A8E; font: 800 12.5px 'Manrope', sans-serif; cursor: pointer; }
