/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient( rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35) ), url("/images/rockhonest-bg.png") center top / cover fixed no-repeat;
    background-color: #050505;
    color: #f2f2f2;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* =========================================
   VARIABLES
========================================= */

:root {
    --red: #9e0000;
    --red-light: #d00000;
    --white: #f2f2f2;
    --gray: #8a8a8a;
    --dark: #050505;
    --header-height: 90px;
    --content-width: 1250px;
    --transition: 0.25s ease;
}


/* =========================================
   BODY OVERLAY
========================================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient( ellipse at center, transparent 20%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.7) 100% );
    z-index: -1;
}


/* =========================================
   HEADER
========================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}


    /* Состояние после прокрутки */

    header.scrolled {
        height: 70px;
        background: rgba(0, 0, 0, 0.92);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    }


/* =========================================
   NAV
========================================= */

nav {
    width: min( calc(100% - 50px), var(--content-width) );
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}


/* =========================================
   LOGO
========================================= */

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: max-content;
    user-select: none;
}

.logo-label {
    color: var(--white);
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 2px 2px 0 #000, 0 0 12px rgba(160, 0, 0, 0.5);
}

.logo-muted {
    margin-top: 5px;
    color: #777;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}


/* =========================================
   NAVIGATION
========================================= */

.navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .navigation a {
        position: relative;
        display: block;
        padding: 12px 15px;
        color: #aaa;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        text-decoration: none;
        transition: color var(--transition), background var(--transition);
    }


        /* Красная полоска снизу */

        .navigation a::after {
            content: "";
            position: absolute;
            left: 15px;
            right: 15px;
            bottom: 5px;
            height: 2px;
            background: var(--red);
            transform: scaleX(0);
            transform-origin: center;
            transition: transform var(--transition);
        }


        /* Hover */

        .navigation a:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.04);
        }

            .navigation a:hover::after {
                transform: scaleX(1);
            }


        /* Активный */

        .navigation a.active {
            color: #fff;
        }

            .navigation a.active::after {
                transform: scaleX(1);
            }


/* =========================================
   HAMBURGER
========================================= */

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

    .menu-button span {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        transition: transform var(--transition), opacity var(--transition);
    }


    /* Анимация hamburger */

    .menu-button.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-button.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-button.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


/* =========================================
   MAIN
========================================= */

main {
    width: 100%;
    min-height: 100vh;
    padding-top: var(--header-height);
}


/* =========================================
   CONTENT
========================================= */

.container {
    width: min( calc(100% - 40px), var(--content-width) );
    margin: 0 auto;
}


/* =========================================
   SECTIONS
========================================= */

section {
    min-height: 30vh;
    padding: 20px 0 0px;
    scroll-margin-top: 80px;
}


/* Центральная стеклянная область */

.content-card {
    width: 100%;
    padding: 50px;
    background: linear-gradient( 135deg, rgba(0, 0, 0, 0.78), rgba(15, 15, 15, 0.55) );
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}


/* =========================================
   HEADINGS
========================================= */

h1,
h2,
h3 {
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0 #000;
}

h1 {
    font-size: clamp(40px, 7vw, 90px);
}

h2 {
    font-size: clamp(28px, 4vw, 55px);
}

h3 {
    font-size: 24px;
}

p {
    color: #aaa;
    line-height: 1.8;
    font-size: 16px;
}


/* =========================================
   RED TEXT
========================================= */

.red {
    color: var(--red-light);
}


/* =========================================
   BUTTON
========================================= */

.btn-rock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 25px;
    border: 1px solid var(--red);
    background: rgba(120, 0, 0, 0.25);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

    .btn-rock:hover {
        background: var(--red);
        color: #fff;
        box-shadow: 0 0 25px rgba(180, 0, 0, 0.35);
        transform: translateY(-2px);
    }


/* =========================================
   FOOTER
========================================= */

footer {
    position: relative;
    min-height: 120px;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

    footer .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
    }

.left-footer {
    color: #777;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.right-footer {
    color: #666;
    font-size: 11px;
    line-height: 1.7;
    text-align: right;
    letter-spacing: 1px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    :root {
        --header-height: 75px;
    }

    nav {
        width: calc(100% - 30px);
    }

    .navigation {
        gap: 0;
    }

        .navigation a {
            padding: 10px 8px;
            font-size: 11px;
        }

            .navigation a::after {
                left: 8px;
                right: 8px;
            }

    .logo-label {
        font-size: 21px;
    }

    .logo-muted {
        font-size: 8px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    body {
        background: linear-gradient( rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.5) ), url("/images/rockhonest-bg-mobile.png") center top / auto 100% fixed no-repeat;
        background-color: #050505;
    }


    /* Header */

    header {
        height: 65px;
    }

        header.scrolled {
            height: 60px;
        }

    nav {
        width: calc(100% - 24px);
    }


    /* Logo */

    .logo-label {
        font-size: 19px;
        letter-spacing: 2px;
    }

    .logo-muted {
        margin-top: 4px;
        font-size: 7px;
        letter-spacing: 3px;
    }


    /* Hamburger */

    .menu-button {
        display: flex;
        z-index: 1002;
    }


    /* Navigation */

    .navigation {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        height: calc(100vh - 65px);
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        background: rgba(0, 0, 0, 0.96);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }


        /* Открыто */

        .navigation.open {
            transform: translateX(0);
        }


        .navigation a {
            padding: 18px 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            font-size: 14px;
            letter-spacing: 2px;
        }

            .navigation a::after {
                left: 15px;
                right: auto;
                width: 40px;
                bottom: 8px;
            }


    /* Main */

    main {
        padding-top: 65px;
    }

    .container {
        width: calc(100% - 24px);
    }


    /* Sections */

    section {
        min-height: auto;
        padding: 90px 0 50px;
    }


    /* Content */

    .content-card {
        padding: 25px 20px;
        background: rgba(0, 0, 0, 0.72);
    }


    /* Typography */

    h1 {
        font-size: clamp(36px, 12vw, 65px);
    }

    h2 {
        font-size: clamp(27px, 9vw, 45px);
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 15px;
        line-height: 1.7;
    }


    /* Footer */

    footer {
        padding: 30px 0;
    }

        footer .container {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

    .right-footer {
        text-align: center;
    }
}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 400px) {

    .logo-label {
        font-size: 17px;
    }

    .container {
        width: calc(100% - 18px);
    }

    .content-card {
        padding: 22px 16px;
    }

    section {
        padding-top: 80px;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

.player-input,
.player-input input {
    box-sizing: border-box;
}


.player-input {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    background: rgba(10, 10, 10, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: blur(10px);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}


    .player-input:hover {
        background: rgba(18, 5, 5, 0.7) !important;
        border-color: rgba(143, 0, 0, 0.35) !important;
    }


    .player-input:focus-within {
        background: rgba(20, 5, 5, 0.75) !important;
        border-color: rgba(143, 0, 0, 0.7) !important;
        box-shadow: inset 2px 0 0 #8f0000 !important;
    }


    /* сам input */

    .player-input input,
    .player-input input.form-control {
        display: block;
        width: 100% !important;
        height: 46px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #d8d8d8 !important;
        font-family: inherit;
        font-size: 12px;
        appearance: none;
        -webkit-appearance: none;
    }


        /* placeholder */

        .player-input input::placeholder {
            color: #555 !important;
            opacity: 1 !important;
        }


        .player-input input:focus {
            background: transparent !important;
            color: #e0e0e0 !important;
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
        }


    /* номер игрока */

    .player-input > span {
        flex-shrink: 0;
        width: 32px;
        color: #8f0000 !important;
        font-size: 8px;
        font-weight: 700;
        letter-spacing: 1px;
    }


/* =========================================================
   BUTTONS
   ========================================================= */

.game-card button,
.host-player-state button,
button.game-button,
.game-button,
button[type="button"],
button[type="submit"] {
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(10, 10, 10, 0.7) !important;
    color: #777 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: inherit;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}


    /* hover */

    .game-card button:hover,
    .host-player-state button:hover,
    button.game-button:hover,
    .game-button:hover,
    button[type="button"]:hover,
    button[type="submit"]:hover {
        background: rgba(30, 5, 5, 0.85) !important;
        color: #ddd !important;
        border-color: rgba(143, 0, 0, 0.55) !important;
    }


    /* active */

    .game-card button:active,
    .host-player-state button:active,
    button.game-button:active,
    .game-button:active,
    button[type="button"]:active,
    button[type="submit"]:active {
        background: rgba(143, 0, 0, 0.18) !important;
        color: #fff !important;
        border-color: #8f0000 !important;
        transform: scale(0.97);
    }


    /* focus */

    .game-card button:focus,
    .host-player-state button:focus,
    button.game-button:focus,
    .game-button:focus,
    button[type="button"]:focus,
    button[type="submit"]:focus {
        outline: none !important;
        box-shadow: 0 0 0 1px rgba(143, 0, 0, 0.25) !important;
    }


/* =========================================================
   КНОПКИ HOST
   ========================================================= */

.host-player-state button {
    min-height: 28px;
    padding: 5px 9px !important;
    font-size: 7px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}


    /* Убийство */

    .host-player-state button[data-action="kill"] {
        color: #8f0000 !important;
        border-color: rgba(143, 0, 0, 0.25) !important;
    }


        .host-player-state button[data-action="kill"]:hover {
            background: rgba(143, 0, 0, 0.12) !important;
            border-color: rgba(143, 0, 0, 0.7) !important;
            color: #b00000 !important;
        }


    /* Возвращение */

    .host-player-state button[data-action="revive"] {
        color: #777 !important;
    }


        .host-player-state button[data-action="revive"]:hover {
            color: #ddd !important;
            border-color: rgba(255, 255, 255, 0.2) !important;
        }


    /* Лечение */

    .host-player-state button[data-action="heal"] {
        color: #777 !important;
    }


        .host-player-state button[data-action="heal"]:hover {
            color: #aaa !important;
            border-color: rgba(255, 255, 255, 0.25) !important;
        }


    /* Снять лечение */

    .host-player-state button[data-action="unheal"] {
        color: #8f0000 !important;
        border-color: rgba(143, 0, 0, 0.25) !important;
    }


/* =========================================================
   SELECT
   если у тебя есть select для ролей
   ========================================================= */

select,
select.form-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: rgba(10, 10, 10, 0.7) !important;
    color: #aaa !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 10px 12px;
    font-family: inherit;
}


    select:focus,
    select.form-select:focus {
        background: rgba(20, 5, 5, 0.8) !important;
        color: #ddd !important;
        border-color: rgba(143, 0, 0, 0.7) !important;
        box-shadow: 0 0 0 1px rgba(143, 0, 0, 0.2) !important;
    }


/* =========================================================
   CHECKBOX
   ========================================================= */

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    margin: 0;
    background: rgba(10, 10, 10, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 0;
    cursor: pointer;
}


    input[type="checkbox"]:checked {
        background: #8f0000 !important;
        border-color: #8f0000 !important;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .player-input {
        min-height: 46px;
    }

        .player-input input,
        .player-input input.form-control {
            height: 44px !important;
        }

    .host-player-state {
        width: 100%;
    }

        .host-player-state button {
            min-height: 30px;
            padding: 6px 10px !important;
        }
}

/* =========================================================
   ROCKHONEST — ROLE ITEMS
   ========================================================= */

.role-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 15px;
}


/* Сама строка роли */

.role-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 6px 8px;
    box-sizing: border-box;
    background: rgba(8, 8, 8, 0.58) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 0 !important;
    backdrop-filter: blur(10px);
    transition: background .2s ease, border-color .2s ease;
}


    .role-item:hover {
        background: rgba(20, 5, 5, 0.65) !important;
        border-color: rgba(143, 0, 0, 0.35) !important;
    }


    /* Номер роли */

    .role-item .role-number {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 25px;
        color: #8f0000;
        font-size: 8px;
        font-weight: 700;
        letter-spacing: 1px;
    }


    /* =========================================================
   INPUT НАЗВАНИЯ РОЛИ
   ========================================================= */

    .role-item input[type="text"],
    .role-item input.role-name,
    .role-item .role-input {
        flex: 1;
        min-width: 0;
        width: 100%;
        height: 34px;
        margin: 0;
        padding: 0 9px;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.025) !important;
        color: #d0d0d0 !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 0 !important;
        outline: none !important;
        box-shadow: none !important;
        font-family: inherit;
        font-size: 10px;
        appearance: none;
        -webkit-appearance: none;
        transition: background .2s ease, border-color .2s ease, color .2s ease;
    }


        .role-item input[type="text"]::placeholder,
        .role-item input.role-name::placeholder,
        .role-item .role-input::placeholder {
            color: #4d4d4d !important;
            opacity: 1 !important;
        }


        .role-item input[type="text"]:hover,
        .role-item input.role-name:hover,
        .role-item .role-input:hover {
            background: rgba(255, 255, 255, 0.04) !important;
            border-color: rgba(255, 255, 255, 0.12) !important;
        }


        .role-item input[type="text"]:focus,
        .role-item input.role-name:focus,
        .role-item .role-input:focus {
            background: rgba(143, 0, 0, 0.06) !important;
            color: #e0e0e0 !important;
            border-color: rgba(143, 0, 0, 0.6) !important;
            outline: none !important;
            box-shadow: inset 2px 0 0 #8f0000 !important;
        }


    /* =========================================================
   INPUT КОЛИЧЕСТВА
   ========================================================= */

    .role-item input[type="number"],
    .role-item .role-count {
        flex: 0 0 55px;
        width: 55px !important;
        height: 34px;
        margin: 0;
        padding: 0 6px;
        box-sizing: border-box;
        text-align: center;
        background: rgba(255, 255, 255, 0.025) !important;
        color: #aaa !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 0 !important;
        outline: none !important;
        box-shadow: none !important;
        font-family: inherit;
        font-size: 10px;
        appearance: textfield;
        -moz-appearance: textfield;
    }


        .role-item input[type="number"]::-webkit-inner-spin-button,
        .role-item input[type="number"]::-webkit-outer-spin-button {
            opacity: 0.25;
            filter: invert(1);
        }


        .role-item input[type="number"]:focus,
        .role-item .role-count:focus {
            background: rgba(143, 0, 0, 0.06) !important;
            color: #ddd !important;
            border-color: rgba(143, 0, 0, 0.6) !important;
            outline: none !important;
            box-shadow: inset 0 -1px 0 #8f0000 !important;
        }


    /* =========================================================
   КНОПКА УДАЛЕНИЯ РОЛИ
   ========================================================= */

    .role-item .remove-role,
    .role-item .delete-role,
    .role-item button {
        flex: 0 0 30px;
        width: 30px !important;
        height: 30px !important;
        margin: 0;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        color: #444 !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-radius: 0 !important;
        outline: none !important;
        box-shadow: none !important;
        font-size: 13px;
        line-height: 1;
        cursor: pointer;
        transition: color .2s ease, background .2s ease, border-color .2s ease;
    }


        .role-item .remove-role:hover,
        .role-item .delete-role:hover,
        .role-item button:hover {
            color: #b00000 !important;
            background: rgba(143, 0, 0, 0.08) !important;
            border-color: rgba(143, 0, 0, 0.4) !important;
        }


    /* =========================================================
   LABEL
   ========================================================= */

    .role-item label {
        margin: 0;
        color: #666 !important;
        font-size: 8px;
        letter-spacing: 1px;
        white-space: nowrap;
    }


    /* =========================================================
   ДОПОЛНИТЕЛЬНАЯ ИНФОРМАЦИЯ РОЛИ
   ========================================================= */

    .role-item .role-description {
        color: #444;
        font-size: 8px;
        line-height: 1.4;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .role-item {
        gap: 5px;
        min-height: 44px;
        padding: 5px;
    }


        .role-item .role-number {
            flex-basis: 20px;
        }


        .role-item input[type="text"],
        .role-item input.role-name,
        .role-item .role-input {
            height: 34px;
            padding: 0 7px;
            font-size: 10px;
        }


        .role-item input[type="number"],
        .role-item .role-count {
            flex-basis: 48px;
            width: 48px !important;
            height: 34px;
            font-size: 10px;
        }


        .role-item .remove-role,
        .role-item .delete-role,
        .role-item button {
            flex-basis: 28px;
            width: 28px !important;
            height: 28px !important;
        }
}