* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #050505;
    font-family: Rubik, sans-serif;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
}

.hero {
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    background-image: url('images/bg-img.jpg');
    background-image: -webkit-image-set(url('images/bg-img.webp') 1x,
            url('images/bg-img-2x.webp') 2x,
            url('images/bg-img.jpg') 1x,
            url('images/bg-img-2x.jpg') 2x);
    background-image: image-set(url('images/bg-img.webp') type("image/webp") 1x,
            url('images/bg-img-2x.webp') type("image/webp") 2x,
            url('images/bg-img.jpg') type("image/jpeg") 1x,
            url('images/bg-img-2x.jpg') type("image/jpeg") 2x);
    background-size: cover;
    background-position: center;
}

.hero-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 0 auto;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    width: 100%;
}

.hero-content__hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo-container {
    max-width: 41.8%;
    width: 100%;
    margin-bottom: 30px;
}

.hero-logo {
    width: 100%;
    height: auto;
    pointer-events: none;
}

.hero-lnk {
    border: none;
    font-weight: 700;
    word-wrap: break-word;
    text-transform: uppercase;
    padding: 25px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    width: max-content;
    border-radius: 20px;
    -webkit-box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.15);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.15);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .hero-lnk:hover {
        -webkit-transform: translateY(-3px);
        -ms-transform: translateY(-3px);
        transform: translateY(-3px);
        -webkit-box-shadow:
            0 3px 6px rgba(0, 0, 0, 0.12),
            0 6px 14px rgba(0, 0, 0, 0.18);
        box-shadow:
            0 3px 6px rgba(0, 0, 0, 0.12),
            0 6px 14px rgba(0, 0, 0, 0.18);
        -webkit-filter: brightness(1.03);
        filter: brightness(1.03);
    }
}

.hero-lnk:active {
    -webkit-transform: translateY(1px);
    -ms-transform: translateY(1px);
    transform: translateY(1px);
    -webkit-box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.15),
        0 2px 5px rgba(0, 0, 0, 0.2);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.15),
        0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-lnk:focus-visible {
    outline-offset: 5px;
}

.hero-lnk .icon {
    display: block;
    width: 50px;
    margin-right: 20px;
}

.hero-lnk__steam {
    font-size: clamp(2rem, 2.083vw, 5rem);
    color: #A04E00;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #FFDD3C, #FFD028);
    margin-bottom: 30px;
}

.hero-lnk__steam:focus-visible {
    outline: 2px solid #FFD028;
    box-shadow:
        0 0 0 3px rgba(255, 208, 40, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.15);
}

.hero-lnk__discord {
    font-size: clamp(2rem, 2.083vw, 5rem);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, #4A4DDB, #4A4DDB);
    margin-bottom: 50px;
}

.hero-lnk__discord:focus-visible {
    outline: 2px solid #70A3FF;
    box-shadow:
        0 0 0 4px rgba(112, 163, 255, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.15);
}

.socials-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 40px;
}

.social-lnk {
    font-size: 0;
    display: inline-block;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    -webkit-box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.6);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.6);
    -webkit-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter, box-shadow;
}

@media (hover: hover) {
    .social-lnk:hover {
        -webkit-transform: translateY(-1px);
        -ms-transform: translateY(-1px);
        transform: translateY(-1px);
        -webkit-filter: brightness(1.15);
        filter: brightness(1.15);
        -webkit-box-shadow:
            0 3px 6px rgba(0, 0, 0, 0.5),
            0 6px 16px rgba(0, 0, 0, 0.7);
        box-shadow:
            0 3px 6px rgba(0, 0, 0, 0.5),
            0 6px 16px rgba(0, 0, 0, 0.7);
    }
}

.social-lnk:active {
    -webkit-transform: translateY(1px);
    -ms-transform: translateY(1px);
    transform: translateY(1px);
    -webkit-box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.6);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.6);
}

.social-lnk:focus-visible {
    outline-offset: 3px;
    box-shadow:
        0 0 0 3px rgba(139, 139, 175, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.6);
}

.social-lnk__x {
    border-top: 1px solid rgba(150, 150, 190, 0.4);
    background: linear-gradient(180deg, #2A2A40 0%, #171722 35%, #0D0D12 100%);
}

.social-lnk__x:focus-visible {
    outline: 3px solid #8B8BAF;
}

.social-lnk__instagram {
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg,
            #F79F6F 0%,
            #F16E7F 30%,
            #E44E6A 60%,
            #7059C1 100%);
}

.social-lnk__instagram:focus-visible {
    outline: 3px solid #FFCFCF;
}

.social-lnk__tiktok {
    border-top: 1px solid rgba(254, 44, 85, 0.6);
    background: #000;
}

.social-lnk__flexus {
    background: linear-gradient(180deg, #DE0814 0%, #A3050E 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.social-icon {
    width: 50px;
    height: 50px;
}

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .logo-container {
        opacity: 0;
        -webkit-animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .hero-lnk__steam {
        opacity: 0;
        -webkit-animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
        animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
    }

    .hero-lnk__discord {
        opacity: 0;
        -webkit-animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
        animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    }

    .socials {
        opacity: 0;
        -webkit-animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.45s forwards;
        animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.45s forwards;
    }

    .site-footer {
        opacity: 0;
        -webkit-animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
        animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    }

    .back-lnk {
        opacity: 0;
        -webkit-animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .page-title {
        opacity: 0;
        -webkit-animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
        animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
    }

    .page-content {
        opacity: 0;
        -webkit-animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
        animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    }
}

@media (max-width: 768px) {
    .hero {
        background-image: url('images/bg-img-mob.jpg');
    }

    .hero-content {
        padding: 0 20px 20px;
    }

    .logo-container {
        max-width: 85%;
        margin-bottom: 25px;
    }

    .hero-lnk {
        padding: 15px;
        border-radius: 15px;
    }

    .hero-lnk .icon {
        width: 35px;
    }

    .hero-lnk__steam,
    .hero-lnk__discord {
        font-size: clamp(1.4rem, 5vw, 2rem);
        width: max-content;
    }

    .hero-lnk__steam {
        margin-bottom: 20px;
    }

    .hero-lnk__discord {
        margin-bottom: 35px;
    }

    .socials-list {
        gap: 15px;
    }

    .social-lnk {
        padding: 10px;
        border-radius: 8px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }
}

/* Footer Styles */
.site-footer {
    padding: 20px;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    width: 100%;
    margin-top: auto;
}

.site-footer p {
    margin: 5px 0;
}

.site-footer-links {
    margin-top: 10px;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .active-page {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    cursor: default;
}

/* Legal Pages Styles */
.hero.hero-solid {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(180deg, #004FB4 0%, #050505 100%);
}

.hero.hero-solid::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 350px;
    background-image: url('images/shocked.png');
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.hero.hero-solid.show-shocked::after {
    -webkit-animation: peekUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation: peekUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.page-title {
    position: relative;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 40px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.page-content {
    position: relative;
    line-height: 1.8;
    font-size: 1.1rem;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -35%;
    width: 250px;
    height: 250px;
    background-image: url('images/logo 4 2.svg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
    z-index: 10;
    transform: rotate(-15deg);
    -webkit-animation: stampIn 0.5s cubic-bezier(.17, .89, .32, 1.27) forwards, floatBadge 4s ease-in-out 0.5s infinite alternate;
    animation: stampIn 0.5s cubic-bezier(.17, .89, .32, 1.27) forwards, floatBadge 4s ease-in-out 0.5s infinite alternate;
}

.page-content h2 {
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.page-content h3 {
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.page-content p {
    margin-bottom: 20px;
}

.page-content a {
    color: #70A3FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: #fff;
}

.back-lnk {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
}

@media (max-width: 1024px) {
    .hero.hero-solid::after {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 25px 15px;
        font-size: 1rem;
    }

    .page-title {
        margin-bottom: 30px;
    }

    .page-title::before {
        width: 120px;
        height: 120px;
        left: -5%;
        top: -15px;
    }

    .page-content::after {
        width: 120px;
        height: 18px;
        right: -25px;
        top: 15px;
    }

    .hero.hero-solid::after {
        display: none;
    }

    .site-footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 15px;
    }
}

/* Animations for new elements */
@-webkit-keyframes stampIn {
    0% {
        opacity: 0;
        -webkit-transform: scale(2) rotate(-30deg);
        transform: scale(2) rotate(-30deg);
    }

    100% {
        opacity: 0.15;
        -webkit-transform: scale(1) rotate(-15deg);
        transform: scale(1) rotate(-15deg);
    }
}

@keyframes stampIn {
    0% {
        opacity: 0;
        -webkit-transform: scale(2) rotate(-30deg);
        transform: scale(2) rotate(-30deg);
    }

    100% {
        opacity: 0.15;
        -webkit-transform: scale(1) rotate(-15deg);
        transform: scale(1) rotate(-15deg);
    }
}

@-webkit-keyframes floatBadge {
    0% {
        -webkit-transform: scale(1) rotate(-15deg) translateY(0);
        transform: scale(1) rotate(-15deg) translateY(0);
    }

    100% {
        -webkit-transform: scale(1) rotate(-12deg) translateY(-10px);
        transform: scale(1) rotate(-12deg) translateY(-10px);
    }
}

@keyframes floatBadge {
    0% {
        -webkit-transform: scale(1) rotate(-15deg) translateY(0);
        transform: scale(1) rotate(-15deg) translateY(0);
    }

    100% {
        -webkit-transform: scale(1) rotate(-12deg) translateY(-10px);
        transform: scale(1) rotate(-12deg) translateY(-10px);
    }
}

@-webkit-keyframes peekUp {
    0% {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes peekUp {
    0% {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}