:root {
    color-scheme: dark;
    font-family: Segoe UI, system-ui, -apple-system, BlinkMacSystemFont, Helvetica Neue, Arial, sans-serif;
    background-color: #0c192d
}

*, :after, :before {
    box-sizing: border-box
}

body, html {
    margin: 0;
    padding: 0;
    background-color: #0c192d;
    color: #e2f0ff
}

body {
    min-height: 100vh;
    position: relative
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(76, 133, 255, .2), transparent 55%), radial-gradient(circle at 80% 10%, rgba(93, 245, 255, .12), transparent 48%), radial-gradient(circle at 50% 80%, rgba(15, 61, 112, .35), transparent 55%);
    pointer-events: none;
    z-index: -1
}

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

button, input {
    font: inherit;
    border: none;
    outline: none
}

.site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh
}

.site-header {
    display: grid;
    grid-template-columns:auto 1fr 260px;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 3rem;
    background: rgba(9, 24, 45, .8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(84, 111, 156, .3);
    position: sticky;
    top: 0;
    z-index: 10
}

.brand {
    gap: .65rem;
    text-decoration: none;
    color: inherit
}

.brand {
    display: inline-flex;
    align-items: center
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem;
    font-size: .95rem;
    color: #a8c7ff
}

.site-nav a {
    padding: .5rem .75rem;
    border-radius: .5rem;
    transition: background-color .2s ease, color .2s ease
}

.site-nav a:focus-visible, .site-nav a:hover {
    background-color: rgba(93, 245, 255, .12);
    color: #5df5ff
}

.search-box {
    justify-self: end;
    width: 100%;
    max-width: 260px;
    position: relative
}

.search-box input {
    width: 100%;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: rgba(17, 36, 62, .85);
    color: #e2f0ff;
    border: 1px solid rgba(84, 111, 156, .45);
    transition: border-color .2s ease
}

.search-box input:focus-visible {
    border-color: #5df5ff
}

.site-main {
    flex: 1;
    padding: 2rem 3rem 3.5rem;
    background: radial-gradient(circle at top, rgba(47, 82, 152, .16), transparent 55%)
}

.site-footer {
    padding: 2.5rem 3rem 3rem;
    background: rgba(9, 24, 45, .9);
    border-top: 1px solid rgba(84, 111, 156, .3);
    display: grid;
    gap: 1.5rem;
    align-items: center;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr))
}

.footer-brand {
    display: grid;
    gap: .4rem
}

.footer-title {
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #5df5ff
}

.footer-description {
    margin: 0;
    max-width: 320px;
    color: #86a5d9;
    font-size: .9rem;
    line-height: 1.5
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #85a9ff
}

.footer-links a:focus-visible, .footer-links a:hover {
    color: #5df5ff
}

.footer-related-games {
    display: grid;
    gap: .75rem
}

.footer-related-title {
    margin: 0;
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8fb5ff;
    font-weight: 600
}

.footer-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem
}

.footer-related-list a {
    color: #85a9ff;
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s ease
}

.footer-related-list a:focus-visible, .footer-related-list a:hover {
    color: #5df5ff
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 11;
    position: relative
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: #5df5ff;
    border-radius: 2px;
    transition: all .3s ease;
    transform-origin: center
}

.menu-toggle:hover span {
    background: #8ff4ff
}

.menu-toggle[aria-expanded=true] span:first-child {
    transform: rotate(45deg) translate(6px, 6px)
}

.menu-toggle[aria-expanded=true] span:nth-child(2) {
    opacity: 0
}

.menu-toggle[aria-expanded=true] span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px)
}

@media (max-width: 1024px) {
    .site-header {
        grid-template-columns:1fr auto;
        gap: 1rem;
        padding: 1rem 1.5rem;
        text-align: left
    }

    .brand {
        justify-content: flex-start
    }

    .menu-toggle {
        display: flex
    }

    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(9, 24, 45, .98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        transform: translateX(-100%);
        transition: transform .3s ease;
        z-index: 9;
        overflow-y: auto;
        height: 100vh;
    }

    .site-nav.is-open {
        transform: translateX(0)
    }

    .site-nav a {
        width: 100%;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(84, 111, 156, .2);
        font-size: 1.1rem;
        display: block
    }

    .search-box {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        padding: 0 1.5rem;
        max-width: 100%;
        background: rgba(9, 24, 45, .98);
        backdrop-filter: blur(20px);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform .3s ease, opacity .3s ease;
        z-index: 8
    }

    .search-box.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        padding: 1rem 1.5rem
    }

    .site-main {
        padding: 1.5rem 1.5rem 3rem
    }

    .site-footer {
        padding: 2rem 1.5rem 2.5rem
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: .875rem 1rem
    }

    .menu-toggle {
        width: 28px;
        height: 28px
    }

    .search-box input {
        font-size: 16px
    }

    .site-main {
        padding: 1.25rem 1rem 2.5rem
    }
}


.base-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(93, 245, 255, .42);
    background: rgba(10, 24, 42, .88);
    color: #5df5ff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, border-color .2s ease, background-color .2s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 32px -20px rgba(0, 0, 0, .95)
}

.base-top svg {
    width: 18px;
    height: 18px;
    display: block
}

.base-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.base-top:hover {
    border-color: #5df5ff;
    background: rgba(93, 245, 255, .16);
    transform: translateY(-2px)
}

.base-top:focus-visible {
    outline: 2px solid #5df5ff;
    outline-offset: 3px
}

@media (max-width: 640px) {
    .base-top {
        right: .9rem;
        bottom: .9rem;
        width: 40px;
        height: 40px
    }

    .base-top svg {
        width: 16px;
        height: 16px
    }
}

@media (prefers-reduced-motion: reduce) {
    .base-top {
        transition: none
    }
}
