@import url("game_fonts.css?v=fonts-3");

:root {
    --game-bg: #07090d;
    --game-surface: rgba(10, 14, 20, 0.88);
    --game-surface-strong: rgba(15, 20, 28, 0.96);
    --game-border: rgba(221, 190, 112, 0.58);
    --game-border-soft: rgba(255, 231, 164, 0.18);
    --game-gold: #f0c86a;
    --game-gold-bright: #ffe59a;
    --game-cyan: #62ddff;
    --game-green: #43d67a;
    --game-red: #ff6575;
    --game-purple: #a879ff;
    --game-text: #fff7df;
    --game-muted: rgba(255, 239, 199, 0.66);
    --game-radius: 8px;
    --game-panel-shadow: 0 18px 48px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lobbyBody,
body.playerMobileBody,
body.vipRoomBody,
body.pokerRoomBody {
    background:
        radial-gradient(circle at 50% 0%, rgba(98, 221, 255, 0.08), transparent 30%),
        radial-gradient(circle at 12% 18%, rgba(240, 200, 106, 0.08), transparent 34%),
        var(--game-bg);
}

.lobbyBody::after,
body.playerMobileBody::after,
body.vipRoomBody::after,
body.pokerRoomBody::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.24)),
        radial-gradient(circle at 50% 88%, rgba(67, 214, 122, 0.07), transparent 30%);
}

#topPanel,
#app.lobbyApp .lobbyTopPanel,
.liveRoomApp #topPanel,
.privateRoomApp #topPanel,
.vipRoomApp #topPanel,
body.playerMobileBody #topPanel,
body.vipRoomBody #topPanel,
body.pokerRoomBody #topPanel {
    border-color: var(--game-border);
    border-radius: var(--game-radius);
    background:
        linear-gradient(180deg, rgba(35, 42, 52, 0.96), rgba(8, 11, 17, 0.98)),
        linear-gradient(90deg, rgba(240, 200, 106, 0.08), rgba(98, 221, 255, 0.06), rgba(67, 214, 122, 0.06));
    box-shadow: var(--game-panel-shadow);
}

#topPanel::before,
#app.lobbyApp .lobbyTopPanel::before {
    border-radius: calc(var(--game-radius) - 2px);
    border-color: rgba(255, 238, 184, 0.12);
}

#topPanel #avatar,
#app.lobbyApp #topPanel #avatar,
.liveRoomApp #topPanel #avatar,
.privateRoomApp #topPanel #avatar,
.vipRoomApp #topPanel #avatar,
body.playerMobileBody #topPanel #avatar,
body.vipRoomBody #topPanel #avatar,
body.pokerRoomBody #topPanel #avatar {
    background:
        linear-gradient(#11151d, #11151d) padding-box,
        conic-gradient(from 25deg, #f0c86a, #62ddff, #43d67a, #f0c86a) border-box;
    box-shadow:
        0 0 0 3px rgba(5, 7, 10, 0.92),
        0 0 0 4px rgba(240, 200, 106, 0.34),
        0 8px 18px rgba(0, 0, 0, 0.46);
}

#topPanel .playerRankName {
    color: var(--game-gold-bright);
}

#topPanel .playerRankTrack {
    border-color: rgba(255, 229, 154, 0.36);
    background: rgba(2, 4, 8, 0.84);
}

#topPanel .playerRankFill {
    background: linear-gradient(90deg, var(--game-cyan), var(--game-green), var(--game-gold));
}

#topPanel #playerBalance,
#topPanel #cardPrice,
#app.lobbyApp #topPanel #playerBalance,
#app.lobbyApp #topPanel #cardPrice,
.liveRoomApp #topPanel #playerBalance,
.liveRoomApp #topPanel #cardPrice,
.privateRoomApp #topPanel #playerBalance,
.privateRoomApp #topPanel #cardPrice,
.vipRoomApp #topPanel #playerBalance,
.vipRoomApp #topPanel #cardPrice,
body.playerMobileBody #topPanel #playerBalance,
body.playerMobileBody #topPanel #cardPrice,
body.vipRoomBody #topPanel #playerBalance,
body.vipRoomBody #topPanel #cardPrice,
body.pokerRoomBody #topPanel #playerBalance,
body.pokerRoomBody #topPanel #cardPrice {
    border-color: rgba(255, 229, 154, 0.62);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 238, 184, 0.15), transparent 58%),
        linear-gradient(180deg, rgba(35, 27, 18, 0.96), rgba(8, 10, 15, 0.96));
    color: #fff4be;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.32),
        0 0 14px rgba(240, 200, 106, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

#topPanel .leaderboardButton,
#topPanel .achievementButton,
#topPanel .topMenuButton {
    border-color: rgba(255, 229, 154, 0.48);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 238, 184, 0.16), transparent 58%),
        linear-gradient(180deg, rgba(28, 36, 46, 0.98), rgba(9, 13, 20, 0.98));
}

#app.lobbyApp #topPanel .leaderboardButton {
    display: none;
}

#app.lobbyApp {
    --lobby-bottom-nav-height: clamp(64px, calc(var(--scene-w, 390px) * 0.17), 72px);
    --lobby-bottom-nav-gap: 8px;
    --room-width: min(94vw, 390px, calc((100dvh - var(--top-panel-height) - var(--top-safe) - var(--bottom-safe) - 164px) / 4 * 1.67));
    --poker-room-width: min(94vw, 390px, calc((100dvh - var(--top-panel-height) - var(--top-safe) - var(--bottom-safe) - 224px) / 2 * 1.67));
}

#app.lobbyApp .roomList {
    bottom: calc(10px + var(--bottom-safe) + var(--lobby-bottom-nav-height) + var(--lobby-bottom-nav-gap));
}

#app.lobbyApp .pokerRoomList {
    bottom: calc(12px + var(--bottom-safe) + var(--lobby-bottom-nav-height) + var(--lobby-bottom-nav-gap));
}

.lobbyGameSwitch {
    top: calc(var(--top-safe) + var(--top-panel-height) + 29px);
    width: min(calc(100% - 18px), 412px);
    height: clamp(65px, 20vw, 82px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

.lobbyGameSwitchBtn {
    position: relative;
    width: clamp(132px, 42vw, 174px);
    height: 100%;
    flex: 0 0 auto;
    isolation: isolate;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    transition: transform 180ms ease, filter 180ms ease;
}

.lobbyGameSwitchBtn.active {
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 0 5px rgba(255, 211, 94, 0.36));
}

.lobbyGameSwitchBtn:active {
    transform: scale(0.965);
}

.lobbyGameSwitchIcon {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    filter: brightness(1.08) saturate(1.08) contrast(1.03)
        drop-shadow(0 4px 5px rgba(0, 0, 0, 0.78));
    transform: scale(0.864);
    transform-origin: center;
    transition: transform 180ms ease, filter 180ms ease;
}

.lobbyGameSwitchBtn.active .lobbyGameSwitchIcon {
    transform: scale(0.896);
    filter: brightness(1.13) saturate(1.12) contrast(1.04)
        drop-shadow(0 4px 6px rgba(0, 0, 0, 0.82))
        drop-shadow(0 0 5px rgba(255, 210, 91, 0.5));
}

.lobbyGameSwitchGlow {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    width: min(74vw, 118px);
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(255, 240, 171, 0.24) 0 16%,
        rgba(255, 198, 61, 0.12) 32%,
        rgba(255, 184, 46, 0.03) 55%,
        transparent 72%);
    opacity: 0.72;
    pointer-events: none;
}

.lobbyGameSwitchGlow::before,
.lobbyGameSwitchGlow::after {
    content: "";
    position: absolute;
    inset: -7%;
    border-radius: 50%;
    background: repeating-conic-gradient(from 5deg,
        transparent 0deg 8deg,
        rgba(255, 223, 128, 0.22) 9deg 11deg,
        transparent 12deg 25deg,
        rgba(255, 194, 57, 0.14) 26deg 29deg,
        transparent 30deg 44deg);
    -webkit-mask: radial-gradient(circle, transparent 0 23%, #000 31% 53%, transparent 72%);
    mask: radial-gradient(circle, transparent 0 23%, #000 31% 53%, transparent 72%);
    animation: lobbyGameRaysClockwise 13s linear infinite;
}

.lobbyGameSwitchGlow::after {
    inset: 8%;
    background: repeating-conic-gradient(from 19deg,
        transparent 0deg 13deg,
        rgba(255, 242, 184, 0.27) 14deg 16deg,
        transparent 17deg 34deg,
        rgba(255, 184, 42, 0.16) 35deg 39deg,
        transparent 40deg 58deg);
    -webkit-mask: radial-gradient(circle, transparent 0 18%, #000 29% 57%, transparent 75%);
    mask: radial-gradient(circle, transparent 0 18%, #000 29% 57%, transparent 75%);
    animation-duration: 8.5s;
}

.lobbyGameSwitchBtn.active .lobbyGameSwitchGlow {
    opacity: 1;
}

#app.lobbyApp .lobbyGameSwitchBtn:focus-visible {
    outline: none;
}

#app.lobbyApp .lobbyGameSwitchBtn:focus-visible .lobbyGameSwitchIcon {
    filter: brightness(1.15) saturate(1.12)
        drop-shadow(0 4px 6px rgba(0, 0, 0, 0.82))
        drop-shadow(0 0 7px rgba(118, 224, 255, 0.82));
}

@keyframes lobbyGameRaysClockwise {
    to {
        transform: rotate(1turn);
    }
}

.roomCard {
    border-radius: var(--game-radius);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.32));
}

.roomCard::before {
    inset: 6% 7%;
    border: 1px solid rgba(255, 229, 154, 0.12);
    border-radius: var(--game-radius);
    background:
        linear-gradient(105deg, transparent 0 40%, rgba(255, 255, 255, 0.14) 49%, transparent 58%),
        radial-gradient(circle at 18% 20%, rgba(240, 200, 106, 0.13), transparent 36%),
        radial-gradient(circle at 82% 72%, rgba(98, 221, 255, 0.11), transparent 34%);
}

.roomCardAction:focus-visible,
.roomInfoButton:focus-visible,
.lobbyBottomNavButton:focus-visible,
.lobbyGameSwitchBtn:focus-visible {
    outline: 2px solid var(--game-cyan);
    outline-offset: 2px;
}

#statsPanel,
#tableArea,
#lotok,
#cardTable,
.classicInfoPanel,
.vipStatsPanel,
.vipMainTable,
.privateRoomStats,
.privateRoomTable,
#pokerTable,
#pokerHandPanel,
.pokerGameFeed,
.pokerEntryRows > div,
.pokerBank,
.pokerStatus {
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.24));
}

.classicInfoPanel,
.pokerGameFeed,
.pokerBank,
.pokerStatus,
.pokerEntryRows > div,
.pokerRoomsList,
.pokerPrivateRoomsList,
.notificationsList,
.mobileHistoryTable,
.roomMenuHistoryTable {
    border-color: var(--game-border-soft);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 229, 154, 0.1), transparent 50%),
        linear-gradient(180deg, rgba(20, 25, 34, 0.9), rgba(5, 8, 13, 0.92));
}

.classicInfoHeader strong,
.pokerGameFeedTitle,
.pokerBank span,
.pokerEntryTitle,
.mobileHistoryModalHeader h3,
.roomMenuModalHeader h3,
.mobileProfileModalHeader h3 {
    color: var(--game-gold-bright);
}

.pokerStatus,
.classicInfoStats strong,
.pokerBank strong {
    color: #fdf7e3;
}

body.pokerRoomBody #pokerTable .pokerBank {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    filter: none;
}

.pokerActionButton,
.pokerEntryActions button,
.pokerPrivateCreateButton,
.privateRoomCreateBtn,
#registrationPopup button,
#winnerPopup button,
.mobileProfileSaveBtn,
.mobileHistoryActionBtn {
    border-radius: var(--game-radius);
    border-color: rgba(255, 229, 154, 0.42);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
        linear-gradient(180deg, #2d8f54, #126235);
    color: #fff8dd;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pokerActionButton.isFold,
.pokerActionButton[data-action="fold"],
#skipBtn {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
        linear-gradient(180deg, #6d2730, #351017);
}

.pokerActionButton:disabled,
#registrationPopup button:disabled,
.mobileProfileSaveBtn:disabled {
    opacity: 0.58;
    filter: grayscale(0.25);
}

.lobbyBottomNav {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: calc(6px + var(--bottom-safe));
    z-index: 120;
    height: var(--lobby-bottom-nav-height);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(255, 229, 154, 0.48);
    border-radius: var(--game-radius);
    background:
        linear-gradient(180deg, rgba(32, 39, 49, 0.96), rgba(7, 10, 16, 0.98)),
        radial-gradient(circle at 50% 0%, rgba(240, 200, 106, 0.12), transparent 58%);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.lobbyBottomNav::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 4px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 229, 154, 0.72), rgba(98, 221, 255, 0.46), transparent);
}

.lobbyBottomNavButton {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 242, 207, 0.7);
    font-family: var(--font-ui);
    font-size: clamp(9px, calc(var(--scene-w, 390px) * 0.027), 11px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
}

.lobbyBottomNavButton.isActive {
    border-color: rgba(255, 229, 154, 0.42);
    background: radial-gradient(circle at 50% 50%, rgba(255, 229, 154, 0.12), transparent 70%);
    color: #fff6d8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 16px rgba(240, 200, 106, 0.14);
}

.lobbyBottomNavButton:active {
    transform: translateY(1px) scale(0.98);
}

.lobbyBottomNavIcon {
    position: absolute;
    inset: 1px;
    width: auto;
    height: auto;
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 1;
    filter: saturate(1.08) brightness(1.05) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.42));
    transition: transform 160ms ease, opacity 160ms ease, filter 160ms ease;
}

.lobbyBottomNavButton > span:not(.lobbyBottomNavIcon) {
    display: none;
}

.lobbyBottomNavIcon::before,
.lobbyBottomNavIcon::after {
    display: none;
}

.lobbyBottomNavIcon.isLobby {
    background-image: url("img/mobile/lobby.png");
}

.lobbyBottomNavIcon.isTournaments {
    background-image: url("img/mobile/Turnir.png");
}

.lobbyBottomNavIcon.isBonuses {
    background-image: url("img/mobile/Bonus.png");
}

.lobbyBottomNavIcon.isRating {
    background-image: url("img/mobile/Reyting.png");
}

.lobbyBottomNavIcon.isProfile {
    background-image: url("img/mobile/Profil.png");
}

.lobbyBottomNavButton.isActive .lobbyBottomNavIcon {
    opacity: 1;
    filter: saturate(1.1) brightness(1.08) drop-shadow(0 0 5px rgba(255, 207, 100, 0.38));
    transform: scale(1.02);
}

/* All bottom-menu pages live on one GPU-composited horizontal track. */
.lobbyPageViewport {
    position: absolute;
    inset: 0;
    z-index: 32;
    overflow: hidden;
    pointer-events: none;
    contain: layout paint;
}

.lobbyPageTrack {
    --lobby-track-x: 0%;
    --lobby-slide-duration: 375ms;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    transform: translate3d(var(--lobby-track-x), 0, 0);
    transition: none;
    will-change: transform;
    backface-visibility: hidden;
}

.lobbyPageViewport.isReady .lobbyPageTrack {
    transition: transform var(--lobby-slide-duration) cubic-bezier(.22, .76, .24, 1);
}

.lobbyNavPage {
    position: relative;
    inset: auto;
    z-index: auto;
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    visibility: visible;
    opacity: 1;
    pointer-events: none;
    backface-visibility: hidden;
}

.lobbyNavPage.isActive {
    pointer-events: auto;
}

.lobbyHomePage {
    overflow: hidden;
}

.lobbyHomePage .lobbyGameSwitch,
.lobbyHomePage .roomList {
    pointer-events: auto;
}

.lobbyFutureSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--top-safe) + var(--top-panel-height) + 58px) 34px calc(var(--bottom-safe) + var(--lobby-bottom-nav-height) + 40px);
    overflow: hidden;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    isolation: isolate;
}

.lobbyFutureSection::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--top-safe) + var(--top-panel-height) + 34px);
    bottom: calc(var(--bottom-safe) + var(--lobby-bottom-nav-height) + 16px);
    z-index: -1;
    border: 1px solid rgba(255, 229, 154, 0.42);
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 0%, rgba(240, 200, 106, 0.18), transparent 38%),
        radial-gradient(circle at 100% 100%, rgba(98, 221, 255, 0.12), transparent 40%),
        linear-gradient(180deg, rgba(22, 28, 37, 0.96), rgba(6, 9, 15, 0.98));
    box-shadow: var(--game-panel-shadow);
}

.lobbyFutureSection[hidden] {
    display: none;
}

.lobbyFutureIcon {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 229, 154, 0.45);
    border-radius: 18px;
    background: rgba(255, 229, 154, 0.08);
    color: var(--game-gold-bright);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.lobbyFutureIcon::before,
.lobbyFutureIcon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.lobbyFutureIcon.isTournaments::before {
    left: 17px;
    top: 13px;
    width: 30px;
    height: 25px;
    border: 4px solid currentColor;
    border-radius: 4px 4px 16px 16px;
}

.lobbyFutureIcon.isTournaments::after {
    left: 28px;
    top: 39px;
    width: 8px;
    height: 11px;
    border-bottom: 4px solid currentColor;
    box-shadow: -7px 8px 0 -5px currentColor, 7px 8px 0 -5px currentColor;
}

.lobbyFutureIcon.isBonuses::before {
    inset: 24px 12px 11px;
    border: 4px solid currentColor;
    border-radius: 6px;
}

.lobbyFutureIcon.isBonuses::after {
    left: 29px;
    top: 14px;
    bottom: 11px;
    width: 6px;
    background: currentColor;
    box-shadow: -14px 8px 0 -2px currentColor, 14px 8px 0 -2px currentColor;
}

.lobbyFutureEyebrow {
    color: var(--game-cyan);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lobbyFutureSection h2 {
    margin: 7px 0 8px;
    color: var(--game-gold-bright);
    font-family: var(--font-display);
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1;
}

.lobbyFutureSection > p {
    max-width: 320px;
    margin: 0;
    color: rgba(255, 247, 224, 0.72);
    font-size: 13px;
    line-height: 1.45;
}

.lobbyFutureCards {
    width: min(100%, 340px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.lobbyFutureCard {
    min-height: 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border: 1px solid rgba(255, 229, 154, 0.18);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    text-align: left;
}

.lobbyFutureCard strong {
    color: #fff7df;
    font-size: 12px;
}

.lobbyFutureCard span {
    color: rgba(255, 247, 224, 0.58);
    font-size: 10px;
    line-height: 1.3;
}

#leaderboardModal.lobbySectionPage,
#profileModal.lobbySectionPage {
    display: flex !important;
    position: relative;
    inset: auto;
    z-index: auto;
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    padding: calc(var(--top-safe) + var(--top-panel-height) + 34px) 8px calc(var(--bottom-safe) + var(--lobby-bottom-nav-height) + 14px);
    box-sizing: border-box;
    align-items: stretch;
    justify-content: stretch;
    background: transparent;
    backdrop-filter: none;
}

#leaderboardModal.lobbySectionPage .mobileHistoryModalContent,
#profileModal.lobbySectionPage .mobileProfileModalContent {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 14px;
    animation: none;
}

#leaderboardModal.lobbySectionPage .mobileHistoryModalHeader,
#profileModal.lobbySectionPage .mobileProfileModalHeader {
    flex: 0 0 auto;
    min-height: 48px;
    padding-right: 14px;
}

#leaderboardModal.lobbySectionPage .mobileHistoryModalClose,
#profileModal.lobbySectionPage .mobileProfileModalClose {
    display: none;
}

#leaderboardModal.lobbySectionPage .mobileHistoryModalBody,
#profileModal.lobbySectionPage .mobileProfileModalBody {
    flex: 1 1 auto;
    min-height: 0;
}

#profileModal.lobbySectionPage .mobileProfileAvatarGrid {
    max-height: none;
    overflow: visible;
    padding-right: 2px;
}

#profileModal.lobbySectionPage .mobileProfileActions {
    flex: 0 0 auto;
    padding-bottom: 12px;
}

.mobileHistoryModalContent,
.roomMenuModalContent,
.mobileProfileModalContent,
#roomMenuProfileModal .roomMenuModalContent,
.privateRoomForm,
.pokerPrivateDialog,
.pokerEntryDialog,
.pokerEntryRoomPicker {
    border-radius: var(--game-radius);
    border-color: var(--game-border);
    background:
        linear-gradient(180deg, rgba(20, 25, 34, 0.96), rgba(5, 7, 12, 0.98)) padding-box,
        linear-gradient(115deg, rgba(255, 229, 154, 0.74), rgba(98, 221, 255, 0.48), rgba(67, 214, 122, 0.38), rgba(255, 229, 154, 0.74)) border-box;
    box-shadow: var(--game-panel-shadow);
    animation: profileModalIn 0.22s ease-out;
}

.mobileHistoryModalHeader,
.roomMenuModalHeader,
.mobileProfileModalHeader,
#roomMenuProfileModal .roomMenuModalHeader {
    border-bottom-color: var(--game-border-soft);
    background: linear-gradient(180deg, rgba(255, 229, 154, 0.08), transparent);
}

.mobileHistoryModalClose,
.roomMenuModalClose,
.mobileProfileModalClose,
#roomMenuProfileModal .roomMenuModalClose,
.privateRoomClose,
.pokerPrivateHeader button,
#pokerRoomsRefreshBtn {
    border-radius: 50%;
}

#registrationPopup {
    border-radius: var(--game-radius);
    border-color: var(--game-border);
    background:
        linear-gradient(180deg, rgba(18, 24, 34, 0.96), rgba(5, 7, 12, 0.98)) padding-box,
        linear-gradient(115deg, rgba(255, 229, 154, 0.75), rgba(98, 221, 255, 0.5), rgba(255, 229, 154, 0.75)) border-box !important;
    box-shadow: var(--game-panel-shadow);
}

#winnerPopup {
    border-radius: var(--game-radius);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 229, 154, 0.2), transparent 40%) padding-box,
        linear-gradient(180deg, rgba(21, 26, 35, 0.98), rgba(6, 8, 13, 0.98)) padding-box,
        linear-gradient(115deg, #ffe59a, #62ddff, #43d67a, #ffe59a) border-box;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.66),
        0 0 34px rgba(240, 200, 106, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    animation: winnerPopupEnter 0.34s ease-out;
}

#winnerPopup::after,
#winnerConfetti.show::before,
#winnerConfetti.show::after {
    animation-duration: 2.8s;
    opacity: 0.44;
}

.auth-page {
    background:
        radial-gradient(circle at 50% 10%, rgba(240, 200, 106, 0.12), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(98, 221, 255, 0.1), transparent 34%),
        #05070b;
}

.auth-scene {
    filter: drop-shadow(0 22px 52px rgba(0, 0, 0, 0.56));
}

.auth-input {
    color: var(--game-text);
}

.auth-submit,
.install-app-btn {
    color: var(--game-gold-bright);
}

@media (max-height: 720px) {
    #app.lobbyApp {
        --lobby-bottom-nav-height: 68px;
    }

}

body.pokerRoomBody #topPanel #playerBalance {
    border-color: transparent;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 244, 185, 0.19), transparent 58%) padding-box,
        linear-gradient(180deg, rgba(36, 43, 54, 0.99), rgba(10, 14, 21, 0.99)) padding-box,
        linear-gradient(120deg, #fff0a2, #75efff, #ffd96d, #a0ffbd, #fff0a2) border-box;
    background-size: auto, auto, 260% 260%;
    color: #fff2a8;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 0 1px rgba(255, 224, 133, 0.2),
        0 0 18px rgba(115, 239, 255, 0.28),
        0 5px 12px rgba(0, 0, 0, 0.34);
    text-shadow: 0 0 8px rgba(255, 226, 121, 0.42), 0 1px 2px rgba(0, 0, 0, 0.9);
}
