:root {
            --purple: #a855f7;
            --purple-light: #d8b4fe;
            --border: rgba(255,255,255,.08);
            --text-muted: rgba(255,255,255,.62);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html,
        body {
            min-height: 100%;
        }

        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
            color: #fff;

            background:
                radial-gradient(
                    ellipse at top,
                    rgba(147,51,234,.22) 0%,
                    rgba(124,58,237,.12) 25%,
                    transparent 60%
                ),
                linear-gradient(
                    180deg,
                    rgba(26,16,47,.75) 0%,
                    rgba(18,8,31,.82) 40%,
                    rgba(8,3,15,.88) 75%,
                    rgba(0,0,0,.92) 100%
                ),
                url("/assets/images/brand/myteria-bg.webp");

            background-size: auto, auto, cover;
            background-position: center top, center top, center center;
            background-repeat: no-repeat;
        }

        main {
            flex: 1;
            padding: 48px 24px 64px;
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
            text-align: center;
        }

        .logo {
            width: min(80vw, 720px);
            height: auto;
            margin-bottom: 18px;

            filter:
                drop-shadow(0 0 20px rgba(168,85,247,.18))
                drop-shadow(0 0 50px rgba(124,58,237,.12));
        }

        .title {
            font-size: clamp(2rem, 2.8vw, 3.5rem);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            line-height: 1;

            margin-bottom: 16px;

            background: linear-gradient(
                180deg,
                #f3e8ff 0%,
                #d8b4fe 30%,
                #c084fc 60%,
                #a855f7 100%
            );

            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .tagline {
            max-width: 700px;
            margin: 0 auto 36px;

            font-size: 1.05rem;
            line-height: 1.7;

            color: var(--text-muted);
        }

        .section-title {
            margin-bottom: 12px;

            font-size: .95rem;
            font-weight: 600;

            text-transform: uppercase;
            letter-spacing: 1px;

            color: rgba(255,255,255,.55);
        }

        .trailer-card {
            display: block;
            width: 100%;
            max-width: 900px;

            margin: 0 auto 32px;

            border-radius: 14px;
            overflow: hidden;

            text-decoration: none;

            box-shadow:
                0 0 0 1px rgba(255,255,255,.05),
                0 20px 60px rgba(0,0,0,.35);

            transition:
                transform .25s ease,
                box-shadow .25s ease;
        }

        .trailer-card:hover {
            transform: translateY(-4px);

            box-shadow:
                0 0 0 1px rgba(255,255,255,.08),
                0 28px 80px rgba(0,0,0,.45),
                0 0 60px rgba(168,85,247,.30),
                0 0 120px rgba(168,85,247,.15);
        }

        .trailer-card img {
            width: 100%;
            display: block;
        }

        .server-label {
            margin-bottom: 10px;

            font-size: .72rem;
            font-weight: 600;

            letter-spacing: 1px;
            text-transform: uppercase;

            color: rgba(255,255,255,.42);
        }

        .server-box {
            display: inline-flex;
            align-items: center;
            gap: 10px;

            margin-bottom: 36px;

            padding: 8px 10px;

            background: rgba(255,255,255,.03);
            border: 1px solid rgba(255,255,255,.08);
            border-radius: 8px;

            backdrop-filter: blur(10px);
        }

        .server-ip {
            font-family:
                Consolas,
                Monaco,
                monospace;

            font-size: .95rem;
            font-weight: 600;
            color: #fff;

            white-space: nowrap;
        }

        .copy-btn {
            display: flex;
            align-items: center;
            justify-content: center;

            width: 34px;
            height: 34px;

            cursor: pointer;

            border: 0;
            border-radius: 6px;

            background: rgba(168,85,247,.18);

            transition: .15s ease;
        }

        .copy-btn img {
            width: 16px;
            height: 16px;
            opacity: .85;
        }

        .copy-btn:hover {
            background: rgba(168,85,247,.28);
        }

        .copy-btn:hover img {
            opacity: 1;
        }

        .how-to-play-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;

            margin: -12px auto 36px;
            padding: 12px 18px;

            border: 1px solid rgba(216,180,254,.28);
            border-radius: 8px;

            color: #fff;
            background: rgba(168,85,247,.18);
            text-decoration: none;
            font-size: .9rem;
            font-weight: 700;
            letter-spacing: .2px;

            transition:
                transform .2s ease,
                background .2s ease,
                border-color .2s ease;
        }

        .how-to-play-link:hover {
            transform: translateY(-2px);
            background: rgba(168,85,247,.28);
            border-color: rgba(216,180,254,.5);
        }

        .socials {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 32px;
        }

        .socials a {
            opacity: .65;
            transition: .2s ease;
        }

        .socials a:hover {
            opacity: 1;
            transform: translateY(-3px);
        }

        .socials img {
            width: 28px;
            height: 28px;
            display: block;
        }

        footer {
            border-top: 1px solid var(--border);
            background: rgba(0,0,0,.15);
            backdrop-filter: blur(8px);

            padding: 18px 24px;
            text-align: center;
        }

        .footer-description {
            color: rgba(255,255,255,.48);

            font-size: .82rem;
            line-height: 1.45;

            max-width: 900px;
            margin: 0 auto;
        }

        
.footer-description{
            margin-bottom:14px;
        }

        .footer-link{
            display:inline-block;
            color:#d8b4fe;
            text-decoration:none;
            font-size:.85rem;
            font-weight:600;
            transition:.2s ease;
        }

        .footer-link:hover{
            color:#fff;
        }


        @media (max-width: 768px) {

            main {
                padding: 32px 16px 48px;
            }

            .logo {
                width: 92vw;
            }

            .socials {
                gap: 20px;
            }

            .server-box {
                max-width: calc(100vw - 32px);
            }
        }
    
.footer-links{
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
    margin-bottom:14px;
}

.footer-links button,
.footer-links a{
    background:none;
    border:none;
    color:#d8b4fe;
    cursor:pointer;
    text-decoration:none;
    font-size:.85rem;
    font-weight:600;
}

.footer-links button:hover,
.footer-links a:hover{
    color:#fff;
}

.copyright{
    margin-top:12px;
    font-size:.8rem;
    color:rgba(255,255,255,.4);
}

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.72);
    backdrop-filter:blur(12px);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.modal-overlay.active{display:flex;}

.modal{
    width:min(700px,calc(100vw - 32px));
    max-height:80vh;
    overflow-y:auto;
    background:#12081f;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:28px;
}


.modal{
    width:min(760px,calc(100vw - 32px));
    max-height:85vh;
    overflow-y:auto;
    background:linear-gradient(180deg,#1a102f 0%,#12081f 100%);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:0;
    box-shadow:
        0 30px 80px rgba(0,0,0,.5),
        0 0 80px rgba(168,85,247,.12);
}

.modal-header{
    padding:24px 28px;
    border-bottom:1px solid rgba(255,255,255,.08);
    background:rgba(168,85,247,.05);
}

.modal-body{
    padding:28px;
}

.modal h2{
    margin:0;
    font-size:1.6rem;
}

.modal-subtitle{
    color:rgba(255,255,255,.55);
    margin-top:6px;
    font-size:.9rem;
}

.modal h3{
    margin:24px 0 10px;
}

.modal p,
.modal li{
    color:rgba(255,255,255,.72);
    line-height:1.8;
}

.modal ul{
    padding-left:20px;
}

.modal-close{
    margin-top:24px;
}

.modal p, .modal li{
    color:rgba(255,255,255,.72);
    line-height:1.7;
}
.modal-close{
    margin-top:20px;
    padding:10px 16px;
    border:none;
    border-radius:8px;
    background:rgba(168,85,247,.18);
    color:white;
    cursor:pointer;
}


/* Loading Screen */
.loader{
    position:fixed;
    inset:0;
    z-index:10000;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    background:
        radial-gradient(ellipse at top, rgba(147,51,234,.18), transparent 60%),
        linear-gradient(180deg,#12081f,#08030f);
    transition:opacity .8s ease, visibility .8s ease;
}

.loader.hidden{
    opacity:0;
    visibility:hidden;
}

.loader-logo{
    width:min(60vw,420px);
    animation:loaderFloat 3s ease-in-out infinite;
}

.loader-text{
    margin-top:18px;
    color:rgba(255,255,255,.65);
    letter-spacing:2px;
    text-transform:uppercase;
    font-size:.8rem;
}

@keyframes loaderFloat{
    0%,100%{transform:translateY(0px);}
    50%{transform:translateY(-8px);}
}




to{
        transform:translate3d(60px,-15px,0);
    }
}


@media (prefers-reduced-motion: reduce){
    *,
    *::before,
    *::after{
        animation:none !important;
        transition:none !important;
        scroll-behavior:auto !important;
    }

    .loader{
        display:none;
    }

    .reveal{
        opacity:1 !important;
        transform:none !important;
    }
}


.store-nav-wrapper{
    display:flex;
    justify-content:center;
    margin:12px 0 18px;
}

.store-nav-btn{
    display:block;
    width:360px;
    height:270px;
    background-image:url('/assets/images/brand/myteria_icons_nav_sprite.png');
    background-repeat:no-repeat;
    background-size:300% 200%;
    background-position:50% 0%;
    transition:transform .15s ease, filter .15s ease;
}

.store-nav-btn:hover{
    background-position:50% 100%;
    transform:translateY(-4px) scale(1.03);
    filter:drop-shadow(0 10px 28px rgba(0,0,0,.35));
}
