/* ══════════ 8 Ball Pool: o'yin turi va do'stlarni taklif qilish (views/games/pool.php). O'yinning o'zi — pool.css ══════════ */
.pool-sub { margin: -4px 4px 14px; color: var(--text-2); font-size: 14px; line-height: 1.45 }
.pool-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px }
.pool-mode {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left; cursor: pointer;
    border-radius: var(--radius-md); border: 1px solid var(--border); color: var(--text-1); text-decoration: none;
    background: rgba(var(--card-rgb), .88); box-shadow: var(--shadow-sm); font: inherit;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.pool-mode:hover { border-color: var(--brand); box-shadow: var(--shadow-md) }
.pool-mode:active { transform: scale(.98) }
.pool-mode > .bx { margin-left: auto; font-size: 22px; color: var(--text-3) }
.pool-mode-ic { width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--grad) }
.pool-mode-ic.alt { background: linear-gradient(135deg, #34C38F, #1B6B4E) }
.pool-mode-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.3 }
.pool-mode-tx b { font-size: 15px }
.pool-mode-tx small { font-size: 13px; color: var(--text-2) }
.pool-st.on { color: var(--success); font-weight: 600 }
.pool-inv-btn { flex: none; gap: 6px }
.pool-inv-btn:disabled { background: var(--surface-3); color: var(--text-3); box-shadow: none }
.pool-wait .modal { max-width: 340px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center }
.pool-wait-tx { margin: 0; font-weight: 600 }
.pool-wait-ball {
    width: 54px; height: 54px; border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #fff 0 22%, transparent 23%), radial-gradient(circle at 35% 30%, #4a4a4a, #0c0c0c 70%);
    animation: pool-roll 1.4s ease-in-out infinite alternate;
}
@keyframes pool-roll { from { transform: translateX(-18px) rotate(-120deg) } to { transform: translateX(18px) rotate(120deg) } }

/* Kiruvchi taklif (inbox.js: PoolInvite) — qaysi sahifada bo'lmasin tepada chiqadi */
.pool-inv {
    position: fixed; top: 12px; left: 50%; z-index: 31500; width: min(420px, calc(100vw - 20px));
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center;
    padding: 12px; border-radius: 20px; overflow: hidden;
    background: var(--card); color: var(--text-1); border: 1.5px solid var(--brand);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .35), 0 0 0 4px rgba(var(--glow-rgb), .16);
    opacity: 0; transform: translate(-50%, -24px) scale(.96);
    transition: opacity .25s, transform .3s cubic-bezier(.34, 1.4, .64, 1);
}
.pool-inv.show { opacity: 1; transform: translate(-50%, 0) }
.pool-inv-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.3 }
.pool-inv-tx b { font-size: 15px }
.pool-inv-tx span { font-size: 13.5px; color: var(--text-2) }
.pool-inv-act { grid-column: 1 / -1; display: flex; gap: 8px }
.pool-inv-act .btn { flex: 1 }
.pool-inv-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--brand); transform-origin: 0 0; animation: pool-inv-t 40s linear forwards }
@keyframes pool-inv-t { to { transform: scaleX(0) } }
@media (prefers-reduced-motion: reduce) { .pool-wait-ball, .pool-inv-bar { animation: none } .pool-inv { transition: none } }

/* 8 Ball Pool: statistika, bo'limlar, reyting va o'yinlar tarixi */
.pool-me { display: grid; grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px }
.pool-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: var(--radius-md); background: rgba(var(--card-rgb), .88); border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-align: center; min-width: 0 }
.pool-stat b { font-size: 20px; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--text-1) }
.pool-stat span { font-size: 12px; color: var(--text-2); line-height: 1.3 }
.pool-stat.main { background: var(--grad); border-color: transparent; box-shadow: var(--shadow-btn) }
.pool-stat.main b, .pool-stat.main span { color: #fff }
.pool-stat.main em { font-style: normal; font-weight: 700 }
.pool-botline { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px }
@media (max-width: 330px) { .pool-me { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.pool-stat.main em { display: block }
.pool-tabs { margin: 16px 0 10px }
.pool-empty { margin: 8px 4px; color: var(--text-2); font-size: 14px; line-height: 1.45 }
.pool-note { margin: 12px 4px 0; color: var(--text-3); font-size: 12.5px; line-height: 1.45 }
.pool-panel[hidden] { display: none }
.pool-top { gap: 12px; text-decoration: none; color: inherit }
.pool-top.is-me { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--glow-rgb), .14) }
.pool-pos { width: 26px; flex: none; text-align: center; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums }
.pool-pos.p1, .pool-pos.p2, .pool-pos.p3 { height: 26px; line-height: 26px; border-radius: 50%; color: #fff }
.pool-pos.p1 { background: linear-gradient(135deg, #F6C744, #C9921A) }
.pool-pos.p2 { background: linear-gradient(135deg, #C9D3DD, #8E9AA6) }
.pool-pos.p3 { background: linear-gradient(135deg, #E3A36B, #A8652E) }
.pool-rt { margin-left: auto; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--brand-deep) }
.pool-res { flex: none; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px }
.pool-res.win { background: var(--ok-bg); color: var(--ok-fg) }
.pool-res.loss { background: var(--bad-bg); color: var(--danger) }
.pool-res small { font-weight: 600; opacity: .85 }
.pool-top .list-item-body { display: flex; flex-direction: column; min-width: 0 }

/* Profil: 8 Ball Pool kartasi (views/home/profile.php) — musiqa kartasi bilan bir uslubda, yashil movut rangida */
.pv-pool {
    position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 12px 12px 16px;
    border-radius: 24px; color: #fff; box-shadow: 0 14px 30px -14px rgba(16, 110, 70, .7);
    background: radial-gradient(120% 160% at 100% 0%, #3FD08F 0%, transparent 55%), linear-gradient(120deg, #0E5A3C, #138A57 60%, #1BAA6A);
}
.pv-pool::before { content: ''; position: absolute; z-index: -1; right: 70px; top: -44px; width: 120px; height: 120px; border-radius: 50%; border: 18px solid rgba(255,255,255,.08) }
.pv-pool-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; transition: transform .2s }
.pv-pool-main:hover { transform: translateY(-2px) }
.pp-ball { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #4a4a4a, #0c0c0c 70%); box-shadow: 0 6px 14px rgba(0,0,0,.35) }
.pp-ball b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; font-size: 13px; font-weight: 800; line-height: 1 }
.pp-inv { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 14px; font-size: 13px; font-weight: 700; color: #0E5A3C; background: #fff; text-decoration: none; box-shadow: 0 6px 14px rgba(0,0,0,.18) }
.pp-inv i { font-size: 18px }
@media (max-width: 380px) { .pp-inv span { display: none } }

/* ══════════ Pool mavsumi: liga medallari (models/PoolSeason.php, assets/img/medals/*.svg) ══════════ */
/* Medal animatsiyasi DARAJAGA QARAB (PoolSeason::shiny): Bronza, Kumush — harakatsiz; Oltin — sekin yaltirash;
   Platina — tezroq yaltirash + orqada aylanuvchi nurlar; Olmos, g'olib, top-10 — yaltirash + nurlar + yengil porlash.
   --md — medal SVG (yaltirash shu shaklga kesiladi), --md-d — kechikish (ro'yxatda hammasi bir vaqtda yaltiramasin) */
.md-shine { position: relative; display: inline-block; flex: none; line-height: 0; isolation: isolate }
.md-shine > img { display: block; width: 100%; height: 100% }
.md-shine::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    -webkit-mask: var(--md) center / contain no-repeat; mask: var(--md) center / contain no-repeat;
    background: linear-gradient(105deg, transparent 45%, rgba(255, 255, 255, .6) 50%, transparent 55%) 160% 0 / 260% 100% no-repeat }
.md-bronze::after, .md-silver::after { display: none }
.md-rays::before { content: ''; position: absolute; z-index: -1; inset: -32%; border-radius: 50%; pointer-events: none; opacity: .55;
    background: repeating-conic-gradient(var(--md-ray, #FFE58A) 0 9deg, transparent 9deg 24deg);
    -webkit-mask: radial-gradient(circle, #000 22%, transparent 66%); mask: radial-gradient(circle, #000 22%, transparent 66%) }
.md-plat { --md-ray: #B8F2F4; --md-glow: rgba(47, 181, 189, .75) } .md-diamond { --md-ray: #DCD0FF; --md-glow: rgba(138, 107, 255, .8) }
.md-champ { --md-ray: #FFB4A8; --md-glow: rgba(226, 80, 76, .75) } .md-first { --md-ray: #FFE58A; --md-glow: rgba(242, 185, 43, .85) }
@media (prefers-reduced-motion: no-preference) {
    .md-gold::after { animation: md-shine 6s ease-in-out var(--md-d, 0s) infinite }
    .md-plat::after { animation: md-shine 4.5s ease-in-out var(--md-d, 0s) infinite }
    .md-diamond::after, .md-first::after, .md-champ::after { animation: md-shine 3.4s ease-in-out var(--md-d, 0s) infinite }
    .md-diamond > img, .md-first > img, .md-champ > img { animation: md-glow 3.4s ease-in-out var(--md-d, 0s) infinite }
    .md-rays::before { animation: md-rays 14s linear infinite }
    .md-diamond.md-rays::before, .md-first.md-rays::before { animation-duration: 9s }
}
@keyframes md-shine { 0%, 55% { background-position: 160% 0 } 85%, 100% { background-position: -60% 0 } }
@keyframes md-rays { to { transform: rotate(360deg) } }
@keyframes md-glow { 0%, 100% { filter: drop-shadow(0 0 0 transparent) } 50% { filter: drop-shadow(0 0 5px var(--md-glow, rgba(255, 255, 255, .6))) } }
/* Lobbi: mavsum kartasi (views/games/pool.php) */
.ss-card { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 14px; padding: 12px 12px 12px 14px; font: inherit; text-align: left; cursor: pointer;
    color: var(--text-1); border-radius: var(--radius-md); background: rgba(var(--card-rgb), .9); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate;
    transition: transform .15s, box-shadow .15s }
.ss-card::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .14; background: radial-gradient(90% 140% at 0% 50%, var(--ss-c, #C97B3D), transparent 60%) }
.ss-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md) }
.ss-card:active { transform: scale(.99) }
.ss-card.lg-bronze { --ss-c: #C97B3D } .ss-card.lg-silver { --ss-c: #8E99A6 } .ss-card.lg-gold { --ss-c: #F2B92B } .ss-card.lg-plat { --ss-c: #2FB5BD } .ss-card.lg-diamond { --ss-c: #8A6BFF }
.ss-medal { flex: none; width: 44px; height: 55px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)) }
a.ss-card { text-decoration: none }
.ss-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px }
.ss-top { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap }
.ss-top b { font-size: 16px; line-height: 1.2 }
.ss-top small { font-size: 12px; color: var(--text-2); white-space: nowrap }
.ss-sub { font-size: 12.5px; color: var(--text-2); line-height: 1.35 }
.ss-bar { display: block; height: 7px; margin-top: 2px; border-radius: 999px; background: rgba(120, 130, 145, .18); overflow: hidden }
.ss-bar i { display: block; height: 100%; min-width: 7px; border-radius: inherit; background: linear-gradient(90deg, var(--ss-c, #C97B3D), var(--brand)) }
.ss-next { font-size: 12px; font-weight: 600; color: var(--text-2) }
.ss-go { flex: none; font-size: 22px; color: var(--text-3) }
/* Nik chap tomonidagi medal (PoolSeason::nick, faqat o'yin ichidagi ro'yxatlarda) — bosilsa liga sahifasi (ajax.js: data-md-href) */
.md-nick { display: inline-flex; align-items: center; flex: none; margin-right: 5px; vertical-align: -4px; cursor: pointer; border-radius: 4px; transition: transform .15s }
.md-nick .md-shine { width: 16px; height: 20px; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .3)) }
.md-nick:hover { transform: scale(1.15) }
.md-nick:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px }
/* "Mavsum" bo'limi: ligalar va qoidalar */
.ss-how { margin-top: 14px; padding: 14px; border-radius: var(--radius-md); background: rgba(var(--card-rgb), .88); border: 1px solid var(--border) }
.ss-how h3 { margin: 12px 0 6px; font-size: 15px }
.ss-how p { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--text-2) }
.ss-how p:last-child { margin-bottom: 0 }
.ss-lgs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px }
.ss-lg { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0 }
.ss-lg img { width: 36px; height: 45px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2)) }
.ss-lg b { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.ss-lg small { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums }

/* ══════════ O'yin lobbisi — C dizayni (Pool va Shashka): salomlashuv, rejim kartalari, partiyalar, chipta ══════════ */
.gm-hi { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 12px 12px 14px; border-radius: var(--radius-md);
    background: rgba(var(--card-rgb), .9); border: 1px solid var(--border); box-shadow: var(--shadow-sm) }
.gm-hi-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3 }
.gm-hi-tx b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.gm-hi-tx small { font-size: 12.5px; color: var(--text-2) }
.gm-ic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; cursor: pointer;
    color: var(--brand-deep); background: var(--brand-tint); border: 1px solid var(--border) }
html[data-theme="dark"] .gm-ic { color: var(--brand); background: rgba(var(--glow-rgb), .12) }
/* Kartalar qatori sahifa ichida qoladi (manfiy margin YO'Q: sahifa chetidagi bo'shliq har xil — ekrandan chiqib, butun sahifa suriladigan
   bo'lib qolardi). Keyingi karta chetdan ko'rinib turadi — surish mumkinligi bilinadi */
.gm-modes { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    max-width: 100%; margin: 0; padding: 4px 0 10px; scrollbar-width: none }
.gm-modes::-webkit-scrollbar { display: none }
.gm-card { position: relative; isolation: isolate; overflow: hidden; flex: 0 0 min(78%, 290px); scroll-snap-align: center; display: flex; flex-direction: column;
    padding: 14px; border-radius: 24px; color: #fff; background: var(--gm, var(--grad-deep)); box-shadow: 0 12px 26px -12px var(--gm-sh, rgba(45, 96, 139, .6)) }
.gm-card::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(90% 70% at 88% 6%, rgba(255, 255, 255, .24), transparent 60%) }
.gm-card::after { content: ''; position: absolute; z-index: -1; right: -40px; bottom: -50px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .07) }
.gm-card h3 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.1 }
.gm-card p { flex: 1; margin: 5px 0 12px; font-size: 12.5px; line-height: 1.4; opacity: .92; min-height: 35px }
.gm-art { display: flex; align-items: center; gap: 5px; height: 30px; margin-bottom: 10px }
.gm-ball { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c);
    box-shadow: inset -3px -4px 6px rgba(0, 0, 0, .28), 0 3px 6px rgba(0, 0, 0, .25) }
.gm-ball.st { background: linear-gradient(180deg, #fff 0 24%, var(--c) 24% 76%, #fff 76%) }
.gm-ball i { width: 13px; height: 13px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; font: 800 8.5px/1 'Onest', sans-serif; font-style: normal }
.gm-ball.iv { background: #EEE2C4 } .gm-ball.iv i { width: 6px; height: 6px; background: #CD2026 } .gm-ball.cue { background: #FCFCFF }
.gm-aim { font-size: 26px; opacity: .9 }
.gm-pc { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .18), inset 0 0 0 7px rgba(0, 0, 0, .18), 0 3px 6px rgba(0, 0, 0, .3) }
.gm-pc.k::after { content: '♛'; display: grid; place-items: center; height: 100%; font-size: 14px; color: #F2C14E }
.gm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.gm-btns.one { grid-template-columns: 1fr }
.gm-btns.three { grid-template-columns: repeat(3, 1fr) }
.gm-btns button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 8px; border-radius: 14px; cursor: pointer;
    font: 700 13.5px/1 'Onest', sans-serif; transition: transform .12s, filter .15s }
.gm-btns button i { font-size: 18px }
.gm-btns button:active { transform: scale(.96) }
.gm-a { border: 0; color: var(--gm-t, #12324d); background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .18) }
.gm-b { color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .32) }
.gm-b:hover, .gm-a:hover { filter: brightness(1.06) }
.gm-b small { font-size: 10px; opacity: .8 }
.m-8ball { --gm: linear-gradient(150deg, #19A870, #0D6644); --gm-sh: rgba(14, 107, 71, .65); --gm-t: #0D5A3C }
.m-9ball { --gm: linear-gradient(150deg, #E9AE22, #B26604); --gm-sh: rgba(194, 118, 9, .6); --gm-t: #6B4200 }
.m-free  { --gm: var(--grad-deep); --gm-t: var(--brand-deep) }
.m-pro   { --gm: linear-gradient(150deg, #7458EA, #2E1F7A); --gm-sh: rgba(46, 31, 122, .6); --gm-t: #2E1F7A }
.m-t30   { --gm: linear-gradient(150deg, #F2665A, #B0302A); --gm-sh: rgba(176, 48, 42, .55); --gm-t: #8A221C }
.m-t40   { --gm: var(--grad-deep); --gm-t: var(--brand-deep) }
.m-t60   { --gm: linear-gradient(150deg, #33BFC7, #1A7C82); --gm-sh: rgba(26, 124, 130, .55); --gm-t: #125A5E }
.m-bot   { --gm: linear-gradient(150deg, #4C5D74, #1F2A38); --gm-sh: rgba(31, 42, 56, .6) }
.gm-dots { display: flex; justify-content: center; gap: 6px; margin: 2px 0 12px }
.gm-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 9px; cursor: pointer; background: var(--border-2); transition: width .2s, background .2s }
.gm-dots button.on { width: 20px; background: var(--brand) }
.gm-bo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px }
.gm-bo button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 14px; cursor: pointer;
    font: 600 13.5px/1 'Onest', sans-serif; color: var(--text-2); background: rgba(var(--card-rgb), .9); border: 1px solid var(--border); transition: .15s }
.gm-bo button i { font-size: 18px }
.gm-bo button.on { color: var(--brand-deep); border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 3px rgba(var(--glow-rgb), .14) }
html[data-theme="dark"] .gm-bo button.on { color: var(--brand); background: rgba(var(--glow-rgb), .12) }
.lb-tour.gm-ticket { margin: 0 0 12px; border-color: #F2C14E; background: linear-gradient(135deg, #FFF4D2, #FFE3A0); box-shadow: 0 8px 18px -10px rgba(214, 155, 16, .6); color: #5C3B02 }
.gm-ticket .lb-tour-sub, .gm-ticket .lb-tour-cd small { color: #8A6215 }
.gm-ticket .lb-tour-ic { color: #fff; background: linear-gradient(135deg, #F5BE33, #C27609) }
html[data-theme="dark"] .lb-tour.gm-ticket { background: linear-gradient(135deg, #3A2C08, #241B05); border-color: #8A6215; color: #FFE58A }
html[data-theme="dark"] .gm-ticket .lb-tour-sub, html[data-theme="dark"] .gm-ticket .lb-tour-cd small { color: #D9B45A }
.gm-chip { margin-left: auto; margin-right: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--brand-deep); background: var(--brand-tint); white-space: nowrap }
html[data-theme="dark"] .gm-chip { color: var(--brand); background: rgba(var(--glow-rgb), .12) }
.gm-chip:empty { display: none }
.gm-more { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-md); text-decoration: none; font-weight: 600; font-size: 14px;
    color: var(--text-1); background: rgba(var(--card-rgb), .9); border: 1px solid var(--border) }
.gm-more > i:first-child { font-size: 20px; color: #D99B10 }
.gm-more > i:last-child { margin-left: auto; color: var(--text-3); font-size: 20px }

/* ══════════ Liga sahifasi (views/games/league.php) ══════════ */
.lg-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    margin-top: 6px; padding: 20px 16px 18px; border-radius: var(--radius-lg); background: rgba(var(--card-rgb), .92); border: 1px solid var(--border); box-shadow: var(--shadow-md) }
.lg-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .18; background: radial-gradient(70% 60% at 50% 18%, var(--ss-c, var(--brand)), transparent 70%) }
.lg-hero.lg-bronze { --ss-c: #C97B3D } .lg-hero.lg-silver { --ss-c: #8E99A6 } .lg-hero.lg-gold { --ss-c: #F2B92B } .lg-hero.lg-plat { --ss-c: #2FB5BD } .lg-hero.lg-diamond { --ss-c: #8A6BFF }
.lg-hero-md { height: 150px; display: grid; place-items: center }
.lg-big { width: 112px; height: 140px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3)) }
.lg-empty { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; color: var(--text-3); background: rgba(120, 130, 145, .12); border: 2px dashed var(--border-2) }
.lg-who { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; text-decoration: none; font-size: 13.5px; font-weight: 600;
    color: var(--text-1); background: rgba(var(--card-rgb), .8); border: 1px solid var(--border) }
.lg-title { margin: 4px 0 0; font-size: 24px; line-height: 1.2 }
.lg-sub { margin: 0; font-size: 13.5px; color: var(--text-2) }
.lg-prog { width: 100%; max-width: 360px; margin-top: 6px }
.lg-prog-tx { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--text-2) }
.lg-season { margin: 4px 0 0; font-size: 12px; color: var(--text-3) }
.lg-play { margin-top: 8px; min-width: 180px }
.lg-hide { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-md); cursor: pointer;
    background: rgba(var(--card-rgb), .9); border: 1px solid var(--border); box-shadow: var(--shadow-sm) }
.lg-hide-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: var(--text-2); background: rgba(120, 130, 145, .12) }
.lg-hide-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3 }
.lg-hide-tx b { font-size: 14px }
.lg-hide-tx small { font-size: 12px; color: var(--text-2) }
.lg-h { margin: 22px 4px 10px; font-size: 17px }
.lg-ladder { display: flex; flex-direction: column; gap: 8px }
.lg-step { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; border-radius: var(--radius-md); background: rgba(var(--card-rgb), .88); border: 1px solid var(--border) }
.lg-step-md { width: 40px; height: 50px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .22)) }
.lg-step-tx { flex: 1; display: flex; flex-direction: column; line-height: 1.3 }
.lg-step-tx b { font-size: 15px }
.lg-step-tx small { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums }
.lg-step.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--glow-rgb), .16); background: var(--brand-tint) }
html[data-theme="dark"] .lg-step.on { background: rgba(var(--glow-rgb), .12) }
.lg-here { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad) }
.lg-prizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.lg-prize { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-md); background: rgba(var(--card-rgb), .88); border: 1px solid var(--border) }
.lg-prize-md { width: 36px; height: 45px }
.lg-prize span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3 }
.lg-prize b { font-size: 14px }
.lg-prize small { font-size: 11.5px; color: var(--text-2) }
.lg-prize:last-child:nth-child(odd) { grid-column: 1 / -1 }
.lg-note { margin: 10px 4px 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2) }
.lg-hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px }
.lg-aw { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; text-align: center; border-radius: var(--radius-md); background: rgba(var(--card-rgb), .88); border: 1px solid var(--border) }
.lg-aw-md { width: 48px; height: 60px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25)) }
.lg-aw b { font-size: 12px; line-height: 1.25 }
.lg-aw small { font-size: 11px; color: var(--text-3) }
@media (max-width: 380px) { .lg-prizes { grid-template-columns: 1fr } }
/* 8 Ball Pool: qoida tanlovi (8 Ball / Erkin) */
.pool-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px }
.pool-rule { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; text-align: left; cursor: pointer; font: inherit; color: var(--text-1);
    border-radius: var(--radius-md); border: 1.5px solid var(--border); background: rgba(var(--card-rgb), .88) }
.pool-rule b { font-size: 15px }
.pool-rule small { font-size: 12px; line-height: 1.35; color: var(--text-2) }
.pool-rule.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--glow-rgb), .16); background: var(--brand-tint) }
.pool-inv-rules { color: var(--brand-deep) }

/* 8 Ball Pool: turnirlar (lobbi va views/games/tour.php) */
.pool-tours { display: flex; flex-direction: column; gap: 10px }
.pool-tour { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius-md); border: 1px solid var(--border); background: rgba(var(--card-rgb), .9); box-shadow: var(--shadow-sm); color: var(--text-1); text-decoration: none }
.pool-tour.st-live { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--glow-rgb), .14), var(--shadow-sm) }
.pool-tour.st-done, .pool-tour.st-cancel { opacity: .85 }
.pool-tour-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0 }
.pool-tour-top b { font-size: 16px; min-width: 0; overflow-wrap: anywhere }
.pool-tour-prize { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #7A4E00; background: linear-gradient(135deg, #FFE7A3, #F6C744) }
.pool-tour-prize.big { font-size: 15px; padding: 6px 14px }
.pool-tour-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-2) }
.pool-tour-meta span { display: inline-flex; align-items: center; gap: 4px }
.pool-tour-win, .pool-tour-me { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 13px; font-weight: 700 }
.pool-tour-win { color: #B07A0C }
.pool-tour-me { color: var(--success) }
.pool-chip { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--text-2) }
.pool-chip.st-reg { background: var(--brand-tint); color: var(--brand-deep) }
.pool-chip.st-live { background: var(--grad); color: #fff }
.pool-chip.st-done { background: var(--ok-bg); color: var(--ok-fg) }
.pool-chip.st-cancel { background: var(--bad-bg); color: var(--danger) }
.pool-trnew { margin-bottom: 12px }
.pool-trnew > summary { list-style: none; cursor: pointer; display: inline-flex }
.pool-trnew > summary::-webkit-details-marker { display: none }
.pool-trform { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 14px; border-radius: var(--radius-md); border: 1px solid var(--border); background: rgba(var(--card-rgb), .92) }
.pool-trform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); min-width: 0 }
.pool-trform input, .pool-trform select { font: inherit; font-size: 15px; color: var(--text-1); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); min-width: 0 }
.pool-trrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.pool-back { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--brand-deep); text-decoration: none }
.pool-trhead { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-lg); background: rgba(var(--card-rgb), .9); border: 1px solid var(--border); box-shadow: var(--shadow-sm) }
.pool-trhead .ppl-title { margin: 0; font-size: 22px }
.pool-champion { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); font-weight: 800; font-size: 16px; color: #5A3A00; background: linear-gradient(135deg, #FFE7A3, #F6C744); box-shadow: 0 10px 24px -12px rgba(176, 122, 12, .8) }
.pool-champion i { font-size: 26px }
.pool-trplay { font-size: 16px; padding: 14px }
.pool-bracket { display: flex; gap: 12px; overflow-x: auto; padding: 14px 2px 6px; margin-top: 12px; -webkit-overflow-scrolling: touch }
.pool-round { flex: 0 0 180px; display: flex; flex-direction: column; justify-content: space-around; gap: 10px }
.pool-round h3 { margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3) }
.pool-match { position: relative; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: rgba(var(--card-rgb), .95); box-shadow: var(--shadow-sm) }
.pool-match.st-live { border-color: var(--brand) }
.pool-mp { padding: 8px 10px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.pool-mp + .pool-mp { border-top: 1px solid var(--border) }
.pool-mp em { font-style: normal; font-weight: 500; color: var(--text-3) }
.pool-mp.win { color: var(--ok-fg); background: var(--ok-bg) }
.pool-mp.out { color: var(--text-3); text-decoration: line-through }
.pool-mp.me { box-shadow: inset 3px 0 0 var(--brand) }
.pool-match-live, .pool-match-note { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 999px }
.pool-match-live { color: #fff; background: var(--grad) }
.pool-match-note { color: var(--text-3); background: var(--surface-3) }
.pool-trplayers { display: flex; flex-wrap: wrap; gap: 8px }
.pool-trp { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: rgba(var(--card-rgb), .9); color: var(--text-1); font-size: 13.5px; font-weight: 600; text-decoration: none }
.pool-trp.me { border-color: var(--brand) }
.pool-trcancel { margin-top: 16px }

/* 8 Ball Pool: rejim tanlash oynasi (bot / taklif oldidan) */
.pool-pick .modal { max-width: 380px; display: flex; flex-direction: column; gap: 12px; text-align: center }
.pool-pick-t { margin: 0; font-size: 18px }
.pool-pick-s { margin: -6px 0 0; color: var(--text-2); font-size: 14px }
.pool-pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.pool-pk { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px; cursor: pointer; font: inherit; color: var(--text-1);
    background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-md, 14px); transition: transform .15s, border-color .15s, box-shadow .15s }
.pool-pk:hover, .pool-pk:focus-visible { border-color: var(--brand); outline: none; transform: translateY(-2px); box-shadow: var(--shadow-sm, 0 4px 14px rgba(0,0,0,.08)) }
.pool-pk.on { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 3px rgba(var(--glow-rgb), .16) }
.pool-pk b { font-size: 16px }
.pool-pk small { font-size: 12px; line-height: 1.35; color: var(--text-2) }
.pool-pk-ball { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; position: relative;
    box-shadow: inset -6px -8px 14px rgba(0,0,0,.35), 0 5px 10px rgba(0,0,0,.18) }
.pool-pk-ball::after { content: ""; position: absolute; left: 22%; top: 14%; width: 30%; height: 22%; border-radius: 50%; background: rgba(255,255,255,.55); filter: blur(2px) }
.pool-pk-ball i { font-style: normal; font-weight: 800; font-size: 15px; width: 26px; height: 26px; line-height: 26px; border-radius: 50%; background: #f7f4ea; color: #161618 }
.pool-pk-ball.b8 { background: radial-gradient(circle at 35% 30%, #4a4a52, #0d0d10 70%) }
.pool-pk-ball.ivory { background: radial-gradient(circle at 35% 30%, #fffdf6, #e4d6b2 75%) }
.pool-pk-ball.ivory i { background: transparent; color: #1c1c1e; font-size: 18px }
/* 4 ta rejim — 2x2, kartalar bir xil o'lchamda; tavsif ko'pi bilan 3 qator */
.pool-pick .modal { max-width: 420px }
.pool-pk { justify-content: flex-start; min-height: 168px }
.pool-pk-tx { display: flex; flex-direction: column; align-items: center; gap: 4px }
.pool-pk small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.pool-pk-ball i { text-align: center }
.pool-pk-ball.b9 { background: radial-gradient(circle at 35% 30%, #fff6c2, #f3c22b 45%, #b98a07 100%) }
.pool-pk-ball.b9::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: linear-gradient(180deg, #fbf7ea 0 22%, transparent 22% 78%, #fbf7ea 78%); opacity: .95 }
.pool-pk-ball.b9 i { position: relative; z-index: 1 }
.pool-pk-ball.pro { background: radial-gradient(circle at 35% 30%, #4a4a52, #0d0d10 70%); box-shadow: inset -6px -8px 14px rgba(0,0,0,.35), 0 0 0 3px #E7B341, 0 5px 12px rgba(231,179,65,.35) }
.pool-pk-ball.pro i { background: #E7B341; color: #161618 }
.pool-pick-bo { display: flex; align-items: center; gap: 10px; text-align: left }
.pool-pick-bo > span { flex: none; font-size: 13.5px; font-weight: 700; color: var(--text-2) }
.pool-pick-bo .lb-seg { flex: 1 }
.pool-bo button { height: 38px; font-size: 13.5px }
.pool-pick-rl { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 700; color: var(--brand-deep, #2D608B) }
.pool-pick-rl i { font-size: 18px }
@media (max-width: 360px) { .pool-pk { min-height: 150px; padding: 12px 8px } .pool-pk-ball { width: 46px; height: 46px } }
/* Qoidalar oynasi (lobbi) */
.pool-rl-btn { flex: none; display: inline-flex; align-items: center; gap: 6px }
.pool-rl-btn i { font-size: 18px }
.pool-rules .modal { width: min(480px, calc(100vw - 32px)); max-width: 480px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; max-height: min(88vh, 640px) }
.pool-rules-h { display: flex; align-items: center; justify-content: space-between }
.pool-rules-h h3 { margin: 0; font-size: 18px }
.prl-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; flex: none }
.prl-tabs::-webkit-scrollbar { display: none }
.prl-tabs button { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700;
    color: var(--brand-deep); background: var(--card); border: 1px solid var(--brand-light) }
.prl-tabs button.on { color: #fff; background: var(--grad); border-color: transparent; box-shadow: var(--shadow-btn) }
.pool-rules .prl { display: flex; flex-direction: column; gap: 10px; min-height: 0 }
.pool-rules .prl-pane { overflow-y: auto }
.prl-pane[hidden] { display: none }
.prl-pane ul { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; line-height: 1.5; color: var(--text-1) }
.prl-pane li::marker { color: var(--brand) }
@media (prefers-reduced-motion: reduce) { .pool-pk { transition: none } }

/* 8 Ball Pool: tugamagan o'yinga qaytish */
.pool-resume { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px 14px; border-radius: var(--radius-md, 14px);
    color: #fff; background: var(--grad); box-shadow: var(--shadow-sm); text-decoration: none; font-weight: 600 }
.pool-resume[hidden] { display: none }
.pool-resume > i { font-size: 22px }
.pool-resume span { flex: 1; min-width: 0; font-size: 14px }
.pool-resume b { display: inline-flex; align-items: center; white-space: nowrap }

/* ── Shashka: lobbi va profil kartasi (views/games/checkers.php, views/home/profile.php) ── */
.ck-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.ck-rules-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #7A4A1E; background: #F6E7CF; border: 1px solid #EBCFA5 }
html[data-theme="dark"] .ck-rules-chip { color: #F1D3A6; background: rgba(160, 100, 45, .22); border-color: rgba(200, 140, 70, .35) }
.pool-mode-ic.ck-ic { background: linear-gradient(135deg, #A86E3A, #6B3F1E) }
.pool-res.draw { color: var(--text-2); background: rgba(var(--glow-rgb), .1) }
.ck-pick-row { grid-template-columns: repeat(3, 1fr); gap: 8px }
.ck-pk { padding: 14px 6px 12px }
.ck-pk b { font-size: 15px }
.ck-lvdots { display: flex; gap: 4px; margin-bottom: 2px }
.ck-lvdots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); box-shadow: inset 0 1px 2px rgba(0,0,0,.15) }
.ck-lvdots i.on { background: radial-gradient(circle at 35% 30%, #6c6c72, #141416 70%); box-shadow: 0 2px 4px rgba(0,0,0,.3) }
.ck-wait-board { position: relative; width: 64px; height: 64px; border-radius: 8px;
    background: repeating-conic-gradient(#a5703f 0 25%, #f0dcb4 0 50%) 0 0 / 32px 32px; box-shadow: 0 0 0 4px #5a3317, 0 8px 18px rgba(60, 30, 0, .3) }
.ck-wait-board i { position: absolute; width: 24px; height: 24px; border-radius: 50%; left: 4px; top: 36px;
    background: radial-gradient(circle at 35% 30%, #fffdf6, #d9c296 80%); box-shadow: 0 2px 0 #a88b5c; animation: ck-wait 1.6s ease-in-out infinite }
.ck-wait-board i + i { left: 36px; top: 4px; background: radial-gradient(circle at 35% 30%, #6c6c72, #141416 80%); box-shadow: 0 2px 0 #000; animation-delay: .8s }
@keyframes ck-wait { 0%, 100% { transform: none } 40%, 60% { transform: translate(32px, -32px) } }
.ck-rules ol { margin: 0; padding: 4px 4px 4px 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--text-1) }
.ck-rules li::marker { color: var(--brand); font-weight: 800 }
.pool-pick .modal.ck-rules { text-align: left }
.pool-pick .modal.ck-rules .pool-pick-t { text-align: center }
.pv-ck { background: radial-gradient(120% 160% at 100% 0%, #D49A5C 0%, transparent 55%), linear-gradient(120deg, #4A2810, #7A4A1E 60%, #A06A35); box-shadow: 0 14px 30px -14px rgba(90, 50, 15, .7) }
.pv-ck .pp-inv { color: #5A3317 }
.pp-ck { background: repeating-conic-gradient(#8b5a2f 0 25%, #f0dcb4 0 50%) 0 0 / 24px 24px; border-radius: 12px; position: relative }
.pp-ck i { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6c6c72, #141416 75%); box-shadow: 0 2px 0 #000, 0 4px 8px rgba(0,0,0,.4) }
@media (prefers-reduced-motion: reduce) { .ck-wait-board i { animation: none } }
/* Turnir: boshlanishiga qolgan vaqt (views/games/tour.php, checkers.php) */
.pool-countdown { margin: 4px 0 0; font-weight: 800; font-size: 15px; color: var(--brand-deep); font-variant-numeric: tabular-nums }
.pool-countdown.sm { display: block; margin: 0; font-size: 13px }
.pool-countdown[hidden] { display: none }
/* Shashka: vaqt tanlash */
.ck-tcn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, #A86E3A, #6B3F1E); box-shadow: 0 4px 10px rgba(90, 50, 15, .3) }
.ck-tc-note { margin: -2px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--text-2) }

/* ── O'yinlar: "Jonli" — hozir kimlar o'ynayapti (assets/js/games-live.js) ── */
.gl-tabdot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--danger); vertical-align: 1px; animation: gl-pulse 1.4s ease-in-out infinite }
@keyframes gl-pulse { 50% { opacity: .35 } }
.ppl-tab.on .gl-tabdot { background: #fff }
.ppl-tab.on .gl-count { color: var(--brand-deep); background: #fff }
.gl-count { margin-left: 4px; padding: 0 7px; border-radius: 999px; font-size: 12px; line-height: 18px; color: #fff; background: var(--danger) }
.gl-count[hidden] { display: none }
.gl-list { display: flex; flex-direction: column; gap: 8px }
.gl-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md, 16px); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm) }
.gl-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.2) }
.gl-pool .gl-ic { background: radial-gradient(circle at 35% 30%, #4a4a4a, #0c0c0c 70%) }
.gl-pool .gl-ic b { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; font-size: 10px; font-weight: 800 }
.gl-checkers .gl-ic { background: repeating-conic-gradient(#8b5a2f 0 25%, #f0dcb4 0 50%) 0 0 / 18px 18px; border-radius: 10px }
.gl-checkers .gl-ic i { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6c6c72, #141416 75%); box-shadow: 0 2px 0 #000 }
.gl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px }
.gl-watch { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-tint); color: var(--brand-deep); text-decoration: none; font-size: 22px; transition: background .15s, transform .1s }
.gl-watch:active { transform: scale(.94) }
@media (hover: hover) { .gl-watch:hover { background: var(--brand-light) } }
html[data-theme="dark"] .gl-watch { background: rgba(var(--glow-rgb), .14); color: var(--brand) }
.gl-vs { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 700; font-size: 14px }
.gl-vs em { flex: none; font-style: normal; font-size: 11px; font-weight: 800; color: var(--text-3); text-transform: uppercase }
.gl-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.gl-ava { flex: none; display: inline-flex }
.gl-ava .avatar, .gl-ava .avatar-holder { width: 26px !important; height: 26px !important; min-width: 26px !important; font-size: 11px }
.gl-ini { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--grad) }
.gl-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--text-2) }
.gl-time { display: inline-flex; align-items: center; gap: 5px; color: var(--danger); font-weight: 700 }
.gl-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); animation: gl-pulse 1.4s ease-in-out infinite }
.gl-tour { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: #B07A0C }
.gl-score { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--text-1); font-variant-numeric: tabular-nums }
.gl-chip { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.35) }
.gl-chip.w { background: radial-gradient(circle at 35% 30%, #fffaf0, #d9c296 70%) }
.gl-chip.b { background: radial-gradient(circle at 35% 30%, #67676d, #1d1d20 70%) }
@media (prefers-reduced-motion: reduce) { .gl-tabdot, .gl-dot { animation: none } }

/* ── O'yin lobbisi (Pool va Shashka): sarlavha, o'ynash tugmalari, yaqin turnir, taklif oynasi — assets/js/games-lobby.js ── */
.lb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px }
.lb-head .ppl-title { flex: 1; min-width: 0 }
.lb-gic { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(45, 96, 139, .18) }
.lb-gic.ck { background: linear-gradient(135deg, #A86E3A, #6B3F1E) }
.lb-gic.ck i { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffdf6, #d9c296 80%); box-shadow: 0 2px 0 #a88b5c, inset 0 0 0 4px rgba(0, 0, 0, .06) }
.lb-gic.pool { background: linear-gradient(135deg, #34C38F, #1B6B4E) }
.lb-gic.pool i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9px; font-weight: 800; color: #111;
    background: radial-gradient(circle, #fff 0 4.5px, transparent 5px), radial-gradient(circle at 35% 30%, #4a4a4a, #0c0c0c 70%) }
.lb-help { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; cursor: pointer; font: inherit; font-size: 17px; font-weight: 700;
    color: var(--brand-deep); background: rgba(var(--card-rgb), .8); border: 1px solid var(--brand-light) }
.lb-help:hover { background: var(--brand-light) }
.lb-modes { display: flex; flex-direction: column; gap: 10px }
.pool-mode.lb-main { color: #fff; background: var(--grad); border-color: transparent; box-shadow: var(--shadow-btn) }
.pool-mode.lb-main:hover { box-shadow: 0 10px 22px rgba(var(--glow-rgb), .5) }
.lb-main .pool-mode-ic { background: rgba(255, 255, 255, .22) }
.lb-main .pool-mode-tx b { font-size: 16px }
.lb-main .pool-mode-tx small, .lb-main > .bx { color: rgba(255, 255, 255, .9) }
.lb-chip { flex: none; margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--brand-deep); background: var(--brand-tint) }
.lb-chip + .bx { margin-left: 0 !important }
.lb-tour { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-md); color: var(--text-1); text-decoration: none;
    background: rgba(var(--card-rgb), .9); border: 1px solid var(--brand); box-shadow: 0 0 0 3px rgba(var(--glow-rgb), .14), var(--shadow-sm) }
.lb-tour-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #7A4E00; background: linear-gradient(135deg, #FFE7A3, #F6C744) }
.lb-tour-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; line-height: 1.25 }
.lb-tour-tx > b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lb-tour-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--text-2) }
.lb-tour-sub .pool-tour-prize { padding: 2px 8px; font-size: 12px; white-space: nowrap }
.lb-tour-cd { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2 }
.lb-tour-cd small { font-size: 11px; color: var(--text-2) }
.lb-tour-cd .pool-countdown { margin: 0; font-size: 16px; color: var(--brand-mid) }
/* Taklif oynasi: pastdan chiqadi */
html.lb-lock, html.lb-lock body { overflow: hidden }
.lb-sheet-wrap { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: flex-end; justify-content: center; background: rgba(16, 32, 48, .45);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .22s }
.lb-sheet-wrap[hidden] { display: none }
.lb-sheet-wrap.open { opacity: 1 }
.lb-sheet { width: 100%; max-width: 520px; max-height: 86vh; display: flex; flex-direction: column; gap: 12px; box-sizing: border-box;
    padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--card);
    box-shadow: 0 -12px 32px rgba(45, 96, 139, .18); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1) }
.lb-sheet-wrap.open .lb-sheet { transform: none }
.lb-grip { align-self: center; width: 42px; height: 5px; border-radius: 999px; background: var(--line) }
.lb-sheet-head { display: flex; align-items: center; gap: 10px }
.lb-sheet-head b { flex: 1; font-family: 'Unbounded', sans-serif; font-size: 17px; font-weight: 700 }
.lb-x { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; cursor: pointer; font-size: 22px; color: var(--text-2); background: var(--surface-3) }
.lb-opt { display: flex; flex-direction: column; gap: 8px }
.lb-opt > span { font-size: 13px; font-weight: 600; color: var(--text-2) }
.lb-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px }
.lb-seg button { height: 42px; padding: 0 6px; border-radius: 14px; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--brand-deep);
    background: var(--card); border: 1px solid var(--brand-light); transition: background .15s, box-shadow .15s }
.lb-seg button.on { color: #fff; background: var(--grad); border-color: transparent; box-shadow: var(--shadow-btn) }
.lb-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line); color: var(--text-3) }
.lb-search i { font-size: 19px }
.lb-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text-1) }
.lb-search { transition: border-color .15s, box-shadow .15s, color .15s }
.lb-search:focus-within { border-color: var(--brand-light); color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--glow-rgb), .12) }   /* .hm-find bilan bir xil */
.lb-search input::-webkit-search-cancel-button, .lb-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none }
.lb-clr { flex: none; width: 28px; height: 28px; margin-right: -6px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--line); color: var(--text-2); cursor: pointer }
.lb-clr[hidden] { display: none }
.lb-search .lb-clr i { font-size: 18px }
/* Lobbi: boshlang'ich yorliq tanlanguncha (games-lobby.js) yorliqlar ko'rinmaydi — "Reyting" -> "Jonli" sakrashi bo'lmasin.
   Skript ishlamay qolsa ham 1,5 s dan keyin o'zi ko'rinadi */
.pool-lobby.lb-wait .pool-tabs, .pool-lobby.lb-wait .pool-panel { visibility: hidden; animation: lb-show 0s 1.5s forwards }
@keyframes lb-show { to { visibility: visible } }
.lb-sheet-body { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -18px; padding: 0 18px; -webkit-overflow-scrolling: touch }
.lb-sheet .fr-sec { margin: 0 0 6px }
.lb-sheet .fr-sec[hidden], .lb-sheet .list-item[hidden] { display: none }
.lb-sheet .list-stack { gap: 0 }
.lb-sheet .list-item { padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none }
@media (prefers-reduced-motion: reduce) { .lb-sheet-wrap, .lb-sheet { transition: none } }

/* ── Shashka: o'yinni qayta ko'rish (views/games/replay.php) ── */
.rp-head { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px }
.rp-players { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.rp-players em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--text-3); text-transform: uppercase }
.rp-pl { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text-1); text-decoration: none; min-width: 0 }
.rp-pl span { display: flex; flex-direction: column; min-width: 0 }
.rp-pl b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px }
.rp-pl small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2) }
.rp-pl.win { border-color: #E9C46A; box-shadow: 0 0 0 3px rgba(233, 196, 106, .25) }
.rp-crown { color: #D9A441; font-size: 18px }
.rp-pl .ck-chip { width: 11px; height: 11px }
.rp-res { font-size: 14px; color: var(--text-2) }
.rp-res b { color: var(--text-1) }
.rp-boardwrap { display: grid; place-items: center }
.rp-ctrl { display: flex; justify-content: center; gap: 8px; margin: 14px 0 8px }
.rp-b { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; cursor: pointer; color: var(--brand-deep); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm) }
.rp-b.main { width: 56px; color: #fff; background: var(--grad); border-color: transparent }
.rp-b:active { transform: scale(.95) }
.rp-range { width: 100%; accent-color: var(--brand) }
.rp-pos { margin: 4px 0 10px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums }
.rp-moves { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); max-height: 200px; overflow: auto;
    font: 600 13px/1.4 ui-monospace, 'SF Mono', Menlo, Consolas, monospace }
.rp-mn { margin-left: 6px; color: var(--text-3) }
.rp-m { border: 0; padding: 3px 7px; border-radius: 8px; font: inherit; color: var(--text-1); background: transparent; cursor: pointer }
.rp-m:hover { background: rgba(var(--glow-rgb), .1) }
.rp-m.on { color: #fff; background: var(--brand) }


.live-as .a, .p-user .a, .p-row .a, .rk-row .a {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg,#6b5cff,#49aaff); color:#fff;
  display: grid; place-items: center; font-weight: 800; flex: none;
}
.live-as .a img, .p-user .a img, .p-row .a img, .rk-row .a img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
