:root {
    --body_background: #262a36;
}

html, body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--body_background);
    padding: 0;
    margin: 0;
}

.main_privacy_checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0 8px;
}

.privacy_checkbox_label {
	display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 10px 14px;
    background: #2d3347;
    border: 1px solid #3a4160;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.privacy_checkbox_label:hover {
    border-color: #5a6480;
    background: #323850;
}

.privacy_checkbox {
    display: none;
}

.privacy_checkbox_custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #4a5270;
    border-radius: 5px;
    background: #1e2230;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.privacy_checkbox_custom::after {
    content: '';
    width: 5px;
    height: 10px;
    border: 2px solid transparent;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
    position: absolute;
    top: 1px;
}

.privacy_checkbox:checked + .privacy_checkbox_custom {
    background: #FFC600;
    border-color: #FFC600;
}

.privacy_checkbox:checked + .privacy_checkbox_custom::after {
    border-color: #1a1e28;
    transform: rotate(45deg) scale(1);
}

.privacy_checkbox:checked ~ .privacy_checkbox_text {
    color: #c0c8dc;
}

.privacy_checkbox_label:has(.privacy_checkbox:checked) {
    border-color: rgba(255, 198, 0, 0.35);
    background: rgba(255, 198, 0, 0.05);
}

.privacy_checkbox_text {
	font-size: 12px;
    color: #6b7590;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.privacy_checkbox_text strong {
    color: #8891a8;
}

.privacy_checkbox_text a {
    color: #29B6F6;
    text-decoration: none;
}

.privacy_checkbox_text a:hover {
    text-decoration: underline;
}

.privacy_checkbox_text a strong {
    color: #29B6F6;
}

/* Disabled button */
.goto_login_button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.4);
}

.main_background_blackout {
    z-index: 1;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: linear-gradient(
        to top right,
        rgba(38, 42, 54, 1) 0%,
        rgba(38, 42, 54, .950) 60%,
        rgba(38, 42, 54, .9) 70%,
        rgba(38, 42, 54, .8) 80%,
        rgba(38, 42, 54, .7) 100%
    );
}

.main_background_video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.main_body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    z-index: 2;
}

.main_body .main_content {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.main_content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.main_body .main_content .main_content_title {
    font-size: 40px;
    font-weight: 900;
    color: #fdfeff;
    letter-spacing: -.1rem;
    text-align: center;
}

.main_body .main_content .main_content_title_after {
    font-size: 14px;
    color: #b0b4c1;
    margin-bottom: 2rem;
    letter-spacing: -.010rem;
    text-align: center;
}

input[type='text'], input[type='password'], input[type='email'] {
    padding: 0;
    outline: 0;
    border: 0;
    background-color: #333645;
    padding: .8rem 1rem;
    border-radius: 1rem;
    color: #fdfeff;
    font-size: 14px;
    transition: .5s;
}

input::placeholder {
    color: #a5a5a5;
}

input[type='text']:active,
input[type='password']:active,
input[type='email']:focus,
input[type='text']:focus,
input[type='password']:focus,
input[type='email']:focus {
    box-shadow: 0px 2px 2px 0px #048bff85;
}

.goto_actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.goto_login_button, .goto_reset_password {
    border: 0;
    padding: .9rem 2rem;
    cursor: pointer;
    border-radius: 50px;
    color: #fdfeff;
    font-size: 14px;
}

.goto_login_button {
    background-color: #1e90f3;
    box-shadow: 0px 2px 7px 1px #048bff85;
  opacity: 0.8;
}

.goto_login_button:hover{
	cursor: pointer;
  opacity: 1;
}

.goto_reset_password:hover{
	cursor: pointer;
  opacity: 1;
}

.goto_reset_password {
    background-color: #555b67;
    box-shadow: 0px 2px 7px 1px #555b6785;
  opacity: 0.8;
}


.goto_column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

a {
    color: #1e90f3;
    text-decoration: none;
    font-weight: 600;
}

.main_feedback {
    position: absolute;
    z-index: 2;
    width: 500px;
    height: 100px;
    overflow: hidden;
    bottom: 0;
    right: 4rem;
}

.main_feedback .main_feedback_content {
    position: absolute;
    top: 100%;
    width: 100%;
    opacity: 0;
    transition: top 1s ease, opacity 1s ease;
}

.main_feedback .main_feedback_content.active {
    top: 0;
    opacity: 1;
}

.main_feedback .main_feedback_content .main_feedback_message,
.main_feedback .main_feedback_content .main_feedback_author {
    margin: 0;
    text-align: end;
}

.main_feedback .main_feedback_content .main_feedback_message {
    font-size: 18px;
    margin-bottom: .5rem;
    color: #dfdfdf;
}

.main_feedback .main_feedback_content .main_feedback_author {
    color: #6bbaff;
}

.main_voice_enable {
    position: absolute;
    z-index: 2;
    right: 2rem;
    top: 2rem;
}

.main_voice_enable .main_voice_enable_content {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 1rem;
}

.main_voice_enable .main_voice_enable_content .main_voice_enable_message {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #fdfeff;
    animation: ClickSoundAction 1s infinite alternate;
    font-size: 18px;
}

@keyframes ClickSoundAction {
	0% {
        transform: translateX(0);
    }
	100% {
        transform: translateX(-10px);
    }
}

.main_voice_enable .main_voice_enable_content .main_voice_enable_button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
    background: #fdfeff;
    outline: 0;
    border: 0;
    border-radius: 50%;
    animation: Pulse 1.5s infinite;
    transition: 1s;
    font-size: 28px;
    width: 56px;
    height: 56px;
}

.main_voice_enable .main_voice_enable_content .main_voice_enable_button[data-volume="false"] i::before {
    content: '\F60C';
}

.main_voice_enable .main_voice_enable_content .main_voice_enable_button[data-volume="true"] i::before {
    content: '\F610';
}

@keyframes Pulse {
	0% {
		-moz-box-shadow: 0 0 0 0 rgba(253, 254, 255, 0.4);
		box-shadow: 0 0 0 0 rgba(253, 254, 255, 0.4);
	}
	70% {
		-moz-box-shadow: 0 0 0 20px rgba(253, 254, 255, 0);
		box-shadow: 0 0 0 20px rgba(253, 254, 255, 0);
	}
	100% {
		-moz-box-shadow: 0 0 0 0 rgba(253, 254, 255, 0);
		box-shadow: 0 0 0 0 rgba(253, 254, 255, 0);
	}
}

.input_form_icon {
    position: relative
}

.input_form_icon input {
    width: -webkit-fill-available;
    padding-right: 3rem;
}

.input_form_icon i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b7b7b;
}

.jq-toast-wrap {
    top: 1rem !important;
    left: 1rem !important;
}

.jq-toast-single {
    width: -webkit-fill-available !important;
}

.main_connect_social {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.main_connect_social .main_connect_social_title {
    color: #b0b4c1;
    font-size: 14px;
}

.main_connect_social .main_connect_social_list {
    display: flex;
    gap: 1rem;
}

.main_connect_social .main_connect_social_list .main_connect_social_list_item {
    border: 0;
    background-color: transparent;
    padding: 0;
    
    font-size: 30px;
    cursor: pointer;
}

.main_connect_social .main_connect_social_list .main_connect_social_list_item[data-social-action="get_vk_auth_link"],
.main_connect_social .main_connect_social_list .main_connect_social_list_item[data-social-register="vk"] {
    color: #6a9eff;
    opacity: 0.8;
}

.main_connect_social .main_connect_social_list .main_connect_social_list_item[data-social-action="get_vk_auth_link"]:hover,
.main_connect_social .main_connect_social_list .main_connect_social_list_item[data-social-register="vk"]:hover {
    opacity: 1;
}

.main_connect_social .main_connect_social_list .main_connect_social_list_item[data-social-action="get_steam_auth_link"],
.main_connect_social .main_connect_social_list .main_connect_social_list_item[data-social-register="steam"] {
    color: #8f8f8f;
   opacity: 0.8;
}

.main_connect_social .main_connect_social_list .main_connect_social_list_item[data-social-action="get_steam_auth_link"]:hover,
.main_connect_social .main_connect_social_list .main_connect_social_list_item[data-social-register="steam"]:hover {
   opacity: 1;
}

.main_connect_social .main_connect_social_list .main_connect_social_list_item[data-social-action="get_fb_auth_link"],
.main_connect_social .main_connect_social_list .main_connect_social_list_item[data-social-register="fb"] {
    color: #a7a2ff;
}

.jconfirm .jconfirm-box {
    max-width: 400px;
    border-radius: 1rem;
}

.jconfirm .jconfirm-box input[type='email'] {
    background-color: #e5e5e5;
    border: 1px solid #e1e1e1;
    color: #373945;
}

.jconfirm .jconfirm-box input[type='email']:hover {
    box-shadow: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.jconfirm.jconfirm-light .jconfirm-bg {
    background-color: transparent;
    background-image: linear-gradient(
        to top right,
        rgba(38, 42, 54, 1) 0%,
        rgba(38, 42, 54, .950) 60%,
        rgba(38, 42, 54, .9) 70%,
        rgba(38, 42, 54, .8) 80%,
        rgba(38, 42, 54, .7) 100%
    );
    opacity: 1 !important;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #262a36;
    border-top: 1px solid #3a4160;
    padding: 18px 24px;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.35);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
}

.cookie-text h3 {
    font-size: 14px;
    font-weight: 600;
    color: #e8ecf4;
    margin-bottom: 4px;
}

.cookie-text p {
    font-size: 12px;
    color: #6b7590;
    line-height: 1.5;
}

.cookie-text p a {
    color: #29B6F6;
    text-decoration: none;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-details {
    padding: 9px 18px;
    background: transparent;
    border: 1px solid #3a4160;
    border-radius: 7px;
    color: #8891a8;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-details:hover {
    border-color: #5a6480;
    color: #c0c8dc;
    background: #2d3347;
}

.btn-accept {
    padding: 9px 22px;
    background: #FFC600;
    border: none;
    border-radius: 7px;
    color: #1a1e28;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-accept:hover {
    background: #ffd333;
}

.cookie-details-panel {
    margin-top: 14px;
    border-top: 1px solid #3a4160;
    padding-top: 14px;
    display: none;
}

.cookie-details-panel.open {
    display: block;
}

.cookie-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-cat {
    flex: 1;
    min-width: 140px;
    background: #2d3347;
    border: 1px solid #3a4160;
    border-radius: 8px;
    padding: 12px 14px;
}

.cookie-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.cookie-cat-name {
    font-size: 12px;
    font-weight: 600;
    color: #c0c8dc;
}

.cookie-cat-desc {
    font-size: 11px;
    color: #6b7590;
    line-height: 1.4;
}

.toggle {
    position: relative;
    width: 32px;
    height: 17px;
    flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #3a4160;
    border-radius: 17px;
    cursor: pointer;
    transition: 0.25s;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    width: 11px;
    height: 11px;
    left: 3px;
    top: 3px;
    background: #6b7590;
    border-radius: 50%;
    transition: 0.25s;
}

.toggle input:checked + .toggle-slider { background: #FFC600; }
.toggle input:checked + .toggle-slider:before {
    transform: translateX(15px);
    background: #1a1e28;
}

.toggle input:disabled + .toggle-slider { opacity: 0.6; cursor: not-allowed; }

@media only screen and (max-width: 768px) {
    .main_voice_enable .main_voice_enable_content .main_voice_enable_message {
        font-size: 14px;
    }

    .main_body {
        width: 350px;
    }

    .main_feedback {
        display: none;
    }

    .goto_login_button, .goto_reset_password {
        padding: 14px;
    }

    .main_body .main_content .main_content_title {
        font-size: 32px;
    }
}

/* ==========================================================================
   ИСПРАВЛЕНИЯ СТРАНИЦЫ ВХОДА (goldengame v2)
   ========================================================================== */

/* Логотип страницы: размер был прописан инлайном в шаблоне. */
.main_content_logo {
    font-size: 44px;
    font-weight: bold;
    color: #fedd00;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 4px;
}

/* Поля не должны вылезать за форму: ширина + внутренние отступы. */
.input_form_icon input {
    box-sizing: border-box;
    width: 100%;
}

/* Телефоны и планшеты: форма больше не «прибита» к центру экрана.
   Раньше .main_body был absolute + translate(-50%), поэтому высокая форма
   регистрации обрезалась сверху и снизу и страница не прокручивалась. */
@media only screen and (max-width: 991px) {
    .main_background_video,
    .main_background_blackout {
        position: fixed;
    }

    .main_background_video {
        height: 100%;
    }

    .main_body {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        box-sizing: border-box;
        width: 100%;
        max-width: 440px;
        min-height: 100vh;
        margin: 0 auto;
        padding: 76px 16px 150px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main_body .main_content {
        width: 100%;
    }

    .main_content_logo {
        font-size: 30px;
        line-height: 1.15;
    }

    .main_body .main_content .main_content_title {
        font-size: 26px;
    }

    .main_body .main_content .main_content_title_after {
        font-size: 13px;
        margin-bottom: 1.25rem;
    }

    .goto_actions {
        margin-top: 1.25rem;
        gap: 0.6rem;
    }

    .goto_login_button,
    .goto_reset_password {
        padding: 14px 10px;
        font-size: 13px;
    }

    .main_voice_enable {
        top: 10px;
        right: 12px;
    }

    .main_voice_enable .main_voice_enable_content .main_voice_enable_message {
        display: none;
    }

    .main_voice_enable .main_voice_enable_content .main_voice_enable_button {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .privacy_checkbox_label {
        padding: 8px 10px;
        gap: 10px;
    }

    .privacy_checkbox_text {
        line-height: 1.25;
    }

    .cookie-banner {
        padding: 12px 14px;
    }

    .cookie-inner {
        gap: 10px;
    }

    .cookie-icon {
        display: none;
    }

    .cookie-text {
        min-width: 0;
    }

    .cookie-actions {
        width: 100%;
    }
}