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

.mobileProfileModalContent,
#roomMenuProfileModal .roomMenuModalContent {
    display: flex;
    flex-direction: column;
}

.mobileProfileModalBody,
#roomMenuProfileModal .roomMenuProfileBody {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 220, 111, 0.58) rgba(4, 7, 12, 0.46);
}

.clientPreferencePanel {
    grid-column: 1 / -1;
    padding: 9px;
    border: 1px solid rgba(255, 222, 123, 0.3);
    border-radius: 12px;
    background:
        radial-gradient(circle at 18% 0%, rgba(102, 225, 255, 0.14), transparent 42%),
        linear-gradient(145deg, rgba(31, 23, 38, 0.92), rgba(7, 10, 17, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.23);
}

#profilePreferenceMount .clientPreferencePanel {
    position: relative;
    overflow: hidden;
    padding: 9px 10px 10px;
    border-color: rgba(255, 222, 123, 0.34);
    background:
        radial-gradient(circle at 10% 0%, rgba(102, 225, 255, 0.16), transparent 38%),
        radial-gradient(circle at 90% 100%, rgba(255, 204, 84, 0.11), transparent 42%),
        linear-gradient(145deg, rgba(31, 23, 38, 0.95), rgba(6, 9, 16, 0.97));
}

#profilePreferenceMount .clientPreferencePanel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 18px rgba(105, 229, 255, 0.035);
}

#profilePreferenceMount .clientPreferenceTitle {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    color: #fff2bc;
    font-size: 10px;
}

#profilePreferenceMount .clientPreferenceRows {
    position: relative;
    z-index: 1;
}

#profilePreferenceMount .clientPreferenceRow {
    min-height: 40px;
    border-color: rgba(118, 226, 255, 0.24);
    background: linear-gradient(145deg, rgba(6, 13, 22, 0.76), rgba(12, 9, 18, 0.72));
}

.clientPreferenceTitle {
    margin: 0 0 7px;
    color: #fff0b3;
    font-family: "Alegreya Sans SC", "IBM Plex Sans", sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.clientPreferenceRows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.clientPreferenceRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    min-height: 38px;
    padding: 4px 5px 4px 9px;
    border: 1px solid rgba(121, 223, 255, 0.2);
    border-radius: 10px;
    background: rgba(5, 10, 17, 0.62);
}

.clientPreferenceRow > span {
    flex: 1 1 auto;
    overflow: hidden;
    color: #dff9ff;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.clientSoundToggle {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 29px;
    padding: 0;
    border: 1px solid rgba(255, 119, 136, 0.55);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(106, 31, 48, 0.96), rgba(52, 16, 28, 0.98));
    color: #ff98a5;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 10px rgba(255, 67, 91, 0.12);
}

.clientSoundToggle.isEnabled {
    border-color: rgba(115, 246, 180, 0.62);
    background: linear-gradient(180deg, rgba(32, 132, 88, 0.96), rgba(14, 73, 54, 0.98));
    color: #a8ffd0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 12px rgba(87, 255, 173, 0.2);
}

.clientSoundToggle svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.clientSoundToggle .soundWaves,
.clientSoundToggle .soundSlash {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.clientLanguageToggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 0 0 68px;
    padding: 2px;
    border: 1px solid rgba(255, 222, 126, 0.28);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.34);
}

.clientLanguageToggle button {
    min-width: 0;
    height: 25px;
    padding: 0 6px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(234, 244, 255, 0.68);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.clientLanguageToggle button.isActive {
    background: linear-gradient(180deg, #ffe486, #bd7724);
    color: #211104;
    box-shadow: 0 0 10px rgba(255, 207, 91, 0.26), inset 0 1px 0 rgba(255,255,255,.5);
}

html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] select {
    letter-spacing: 0.015em;
}

html[lang="en"] .lobbyBottomNavButton > span:last-child {
    font-size: clamp(8px, 2.25vw, 10px);
}

html[lang="en"] .pokerActionButton,
html[lang="en"] .privateActionButton {
    font-size: clamp(10px, 2.8vw, 13px);
}

@media (max-width: 350px) {
    .clientPreferenceRows {
        grid-template-columns: 1fr;
    }

    .clientPreferencePanel {
        padding: 8px;
    }
}
html[lang="en"] #topPanel #playerBalance::before {
    content: "BALANCE";
}

html[lang="en"] #topPanel #cardPrice::before {
    content: "CARD";
}

html[lang="en"] #winnerPopup::before {
    content: "VICTORY!";
}

html[lang="en"] #myHistoryModal .historyBalanceBefore::before,
html[lang="en"] #roomMenuMyHistoryModal .historyBalanceBefore::before {
    content: "BEFORE";
}

html[lang="en"] #myHistoryModal .historyBalanceAfter::before,
html[lang="en"] #roomMenuMyHistoryModal .historyBalanceAfter::before {
    content: "AFTER";
}

html[lang="en"] #registrationPopup #gameTypeLine::before {
    content: "GAME TYPE";
}

html[lang="en"] #registrationPopup #cardPriceLine::before {
    content: "CARD PRICE";
}

html[lang="en"] #registrationPopup #cardCountLine::before {
    content: "CARDS";
}

html[lang="en"] #registrationPopup #totalPriceLine::before {
    content: "TOTAL";
}

html[lang="en"] #registrationPopup #timerLine::before {
    content: "REMAINING";
}
