* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    background: #080808;

    color: #eeeeee;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.game {
    width: 100%;
    max-width: 600px;

    margin: 0 auto;

    min-height: 100vh;

    background: #0d0d0d;
}


/*
|--------------------------------------------------------------------------
| BENDRAS VIRŠUS / TOPBAR
|--------------------------------------------------------------------------
|
| Naudojamas per:
|
| includes/topbar.php
|
| Kairė:
| ☰ -> account.php
|
| Centras:
| puslapio pavadinimas
|
| Dešinė:
| ✉ -> messages.php
|
|--------------------------------------------------------------------------
*/

.topbar {
    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr)
        42px;

    align-items: center;

    min-height: 50px;

    padding:
        8px
        12px;

    background: #0d0d0d;

    border-bottom:
        1px solid
        #252525;
}


/*
|--------------------------------------------------------------------------
| MENIU
|--------------------------------------------------------------------------
*/

.menu {
    width: 42px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    color: #e50914;

    font-size: 24px;

    font-weight: 900;

    line-height: 1;

    text-decoration: none;

    cursor: pointer;

    user-select: none;
}


/*
|--------------------------------------------------------------------------
| LOGO / PUSLAPIO PAVADINIMAS
|--------------------------------------------------------------------------
*/

.logo {
    min-width: 0;

    text-align: center;

    color: #ffffff;

    font-size: 22px;

    font-weight: 900;

    letter-spacing: 1.2px;

    line-height: 1.1;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    text-shadow:
        2px 2px 0 #8b0000,
        0 0 12px rgba(255, 0, 0, 0.25);
}


/*
|--------------------------------------------------------------------------
| ŽINUTĖS
|--------------------------------------------------------------------------
*/

.mail {
    position: relative;

    width: 42px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    color: #eeeeee;

    font-size: 20px;

    line-height: 1;

    text-decoration: none;

    cursor: pointer;

    user-select: none;
}


/*
|--------------------------------------------------------------------------
| NAUJŲ ŽINUČIŲ BURBULIUKAS
|--------------------------------------------------------------------------
*/

.mail-count {
    position: absolute;

    top: -3px;
    right: -6px;

    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 18px;

    padding:
        0
        4px;

    background: #e50914;

    border:
        2px solid
        #0d0d0d;

    border-radius: 999px;

    color: #ffffff;

    font-size: 8px;

    font-weight: 900;

    line-height: 1;

    pointer-events: none;
}


/*
|--------------------------------------------------------------------------
| PASPAUDIMO EFEKTAS
|--------------------------------------------------------------------------
*/

.menu:active,
.mail:active {
    opacity: 0.7;
}


/*
|--------------------------------------------------------------------------
| ŽAIDĖJO KORTELĖ
|--------------------------------------------------------------------------
*/

.player-main {
    display: flex;

    align-items: center;

    gap: 16px;
}

.player-avatar {
    width: 92px;
    height: 92px;

    min-width: 92px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #080808;

    border:
        2px solid
        #3a3a3a;

    border-radius: 50%;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 55px;

    background:
        radial-gradient(
            circle at center,
            #252525 0%,
            #0c0c0c 70%
        );
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-card {
    margin: 15px;

    padding: 18px;

    background: #111111;

    border:
        1px solid
        #292929;

    border-radius: 10px;
}

.player-name {
    font-size: 23px;

    font-weight: bold;
}

.level {
    margin-top: 5px;

    color: #ff1a1a;

    font-size: 18px;

    font-weight: bold;
}

.xp-text {
    margin-top: 8px;

    color: #aaaaaa;
}

.xp-bar {
    height: 10px;

    margin-top: 8px;

    overflow: hidden;

    background: #252525;

    border-radius: 10px;
}

.xp-fill {
    height: 100%;

    background: #e50914;
}


/*
|--------------------------------------------------------------------------
| PRESTIŽAS
|--------------------------------------------------------------------------
*/

.prestige {
    margin-top: 15px;

    padding: 12px;

    text-align: center;

    border:
        1px solid
        #3a3a3a;

    border-radius: 8px;
}

.prestige-title {
    color: #f2b900;

    font-weight: bold;
}

.prestige-value {
    margin-top: 5px;

    font-size: 22px;
}


/*
|--------------------------------------------------------------------------
| STATISTIKA
|--------------------------------------------------------------------------
*/

.stats {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    margin: 15px;

    overflow: hidden;

    border:
        1px solid
        #292929;

    border-radius: 10px;
}

.stat {
    padding:
        13px
        5px;

    text-align: center;

    background: #111111;

    border-right:
        1px solid
        #292929;
}

.stat:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 21px;
}

.stat-value {
    margin-top: 5px;

    font-weight: bold;
}

.stat-title {
    margin-top: 4px;

    color: #999999;

    font-size: 11px;
}

.money {
    color: #00d63f;
}

.reputation {
    color: #f2b900;
}


/*
|--------------------------------------------------------------------------
| VEIKSMAI
|--------------------------------------------------------------------------
*/

.section-title {
    display: flex;

    align-items: center;

    gap: 10px;

    margin:
        22px
        15px
        12px;

    color: #e50914;

    font-size: 20px;

    font-weight: bold;
}

.section-title::before,
.section-title::after {
    content: "";

    height: 2px;

    flex: 1;

    background: #4a1111;
}

.action {
    display: flex;

    align-items: center;

    min-height: 76px;

    margin:
        9px
        15px;

    padding: 13px;

    background: #111111;

    border:
        1px solid
        #292929;

    border-radius: 8px;
}

.action-icon {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-right: 14px;

    border:
        1px solid
        #3b3b3b;

    border-radius: 8px;

    font-size: 27px;
}

.action-content {
    flex: 1;
}

.action-title {
    font-size: 18px;

    font-weight: bold;
}

.action-description {
    margin-top: 4px;

    color: #999999;

    font-size: 13px;
}

.action-arrow {
    color: #777777;

    font-size: 30px;
}

.locked {
    opacity: 0.65;
}

.locked .action-description {
    color: #ff3030;
}


/*
|--------------------------------------------------------------------------
| APAČIOS NAVIGACIJA
|--------------------------------------------------------------------------
*/

.bottom-nav {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 8px;

    margin: 15px;
}

.nav-button {
    padding: 15px;

    text-align: center;

    background: #111111;

    border:
        1px solid
        #333333;

    border-radius: 7px;

    color: #999999;
}

.nav-button.active {
    border-color: #e50914;

    color: #e50914;
}


/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/

.footer {
    display: flex;

    justify-content: space-between;

    padding:
        0
        18px
        20px;

    color: #777777;

    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| BENDRA NICKO SISTEMA
|--------------------------------------------------------------------------
|
| STAFF simbolis ir nickas visada yra vienas elementas.
|
| Pvz:
|
| @Testuotojas
| ^Moderis
| ®Prižiūrėtojas
|
| Nicko spalvas / efektus valdo username.php.
|
|--------------------------------------------------------------------------
*/

.styled-username {
    position: relative;

    display: inline-block;

    color: #ffffff;

    font-weight: 900;

    line-height: 1.15;

    text-decoration: none;

    word-break: break-word;
}


/*
|--------------------------------------------------------------------------
| NICKO EFEKTAS – PULSE
|--------------------------------------------------------------------------
*/

@keyframes usernamePulse {

    0%,
    100% {
        opacity: 1;

        transform:
            scale(1);
    }

    50% {
        opacity: 0.78;

        transform:
            scale(1.025);
    }
}

.username-pulse {
    animation:
        usernamePulse
        1.8s
        ease-in-out
        infinite;
}


/*
|--------------------------------------------------------------------------
| NICKO EFEKTAS – SHINE
|--------------------------------------------------------------------------
*/

@keyframes usernameShine {

    0% {
        filter:
            brightness(1);
    }

    50% {
        filter:
            brightness(1.8);
    }

    100% {
        filter:
            brightness(1);
    }
}

.username-shine {
    animation:
        usernameShine
        2s
        ease-in-out
        infinite;
}


/*
|--------------------------------------------------------------------------
| NICKO EFEKTAS – RAINBOW
|--------------------------------------------------------------------------
*/

@keyframes usernameRainbow {

    0% {
        filter:
            hue-rotate(0deg);
    }

    100% {
        filter:
            hue-rotate(360deg);
    }
}

.username-rainbow {
    animation:
        usernameRainbow
        4s
        linear
        infinite;
}


/*
|--------------------------------------------------------------------------
| BENDROS NICKO KLASĖS
|--------------------------------------------------------------------------
*/

.username-small {
    font-size: 11px;
}

.username-medium {
    font-size: 13px;
}

.username-large {
    font-size: 23px;
}

.username-no-link {
    cursor: default;
}


/*
|--------------------------------------------------------------------------
| MOBILUS
|--------------------------------------------------------------------------
*/

@media (max-width: 400px) {

    /*
    |--------------------------------------------------------------------------
    | TOPBAR
    |--------------------------------------------------------------------------
    */

    .topbar {
        grid-template-columns:
            38px
            minmax(0, 1fr)
            38px;

        padding:
            7px
            10px;
    }

    .menu {
        width: 38px;
        height: 32px;

        font-size: 23px;
    }

    .logo {
        font-size: 18px;

        letter-spacing: 0.7px;
    }

    .mail {
        width: 38px;
        height: 32px;

        font-size: 19px;
    }

    .mail-count {
        top: -3px;
        right: -5px;

        min-width: 17px;
        height: 17px;

        font-size: 8px;
    }


    /*
    |--------------------------------------------------------------------------
    | ŽAIDĖJO KORTELĖ
    |--------------------------------------------------------------------------
    */

    .player-avatar {
        width: 78px;
        height: 78px;

        min-width: 78px;
    }

    .avatar-placeholder {
        font-size: 47px;
    }

    .player-name {
        font-size: 20px;
    }


    /*
    |--------------------------------------------------------------------------
    | STATISTIKA
    |--------------------------------------------------------------------------
    */

    .stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .stat:nth-child(1),
    .stat:nth-child(2) {
        border-bottom:
            1px solid
            #292929;
    }

    .stat:nth-child(2) {
        border-right: none;
    }


    /*
    |--------------------------------------------------------------------------
    | NICK
    |--------------------------------------------------------------------------
    */

    .username-large {
        font-size: 20px;
    }
}