@font-face {
    font-family: "hobostd";
    src: url("/assets/font/hobostd.ttf");
}
:root {
    --bg-dark: #1f2937;
    --primary-blue: #8b88e8;
    --accent-red: #df768d;
    --accent-red-hover: #ffafc1;

    --card-bg: #131d2c;
    --section-bg-alt: #3c4655;

    --text-light: #f3f4f6;
    --text-medium: #9ca3af;
    --text-dark: #111827;
}

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

body, html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'hobostd', sans-serif;
}

.pos\:rel {
    position: relative;
}

overlay[active="false"] {
    display: none;
}
overlay[active="true"],
overlay {
    position: fixed;
    display: flex;
    inset: 0;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}
overlay img {
    height: 90vh;
    width: 90vw;
    border-radius: 3px;
    box-shadow: 0 0 6px -2px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.v-x {
    position: absolute;
    right: 0;
    color: #929a9f;
    font-size: 13px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

header {
    background: rgba(25, 33, 50, 0.76);
    backdrop-filter: blur(7px);
    padding: 4px 0;
    position: fixed;
    left: 0;
    right: 0;
    top: 16px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-top: 3px solid rgba(255, 255, 255, 0.06);
    border-bottom: 3px solid rgba(255, 255, 255, 0.06);
}

header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 0 !important;
    min-height: 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: 1px;
    position: absolute;
    left: calc(100% - 90% + 130px);
    display: flex;
}
.logo span { /* Optional: if you want part of logo in accent */
    color: var(--accent-red);
}

.aref {
    text-decoration: none;
    color: var(--primary-blue);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    background: rgba(239, 239, 239, 0.12);
    padding: 2px 14px;
    border-radius: 3px;
    margin-left: 14px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
}

/* Hero Section */
.hero {
    background:
        linear-gradient(
            rgba(39, 53, 72, 0.85),
            rgba(57, 15, 57, 0.81)
        ),
        url('/assets/img/background-hero.jpg') no-repeat center center/cover;
    height: min( 1920px, 100vh );
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero h1 span {
    color: var(--primary-blue); /* Game name highlight */
}

.hero .tagline {
    font-size: 1.6rem;
    margin-bottom: 25px;
    max-width: 750px;
    color: var(--text-medium); /* Subtler tagline */
}

.hero .release-status {
    font-size: 1.1rem;
    color: var(--accent-red);
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    background: var(--accent-red);
    color: var(--text-light);
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid var(--accent-red);
    box-shadow: 0 4px 15px rgba(160, 39, 50, 0.3);
}

.btn:hover {
    background: #ab6676;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(160, 39, 50, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: none;
}
.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--text-light);
    border-color: var(--primary-blue);
    box-shadow: none;
}

/* Sections */
section {
    padding: 70px 0;
}
/* Alternating section backgrounds */
main > section:nth-of-type(even) {
    background-color: var(--card-bg); /* Slightly lighter dark bg */
}

section#about {
    box-shadow: 0 0 11px 18px #131d2c54;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--primary-blue); 
}
.section-title::after,
.section-title::before {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background: var(--accent-red);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* About Section */
#about p {
    text-align: center;
    font-size: 1.25rem;
    max-width: 850px;
    margin: 0 auto 30px auto;
    color: var(--text-medium);
}
#about .highlight {
    color: var(--text-light);
    font-weight: 500;
}

/* Features Section */
.features-grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-card {
    background: var(--bg-dark);
    padding: 35px;
    border-radius: 6px 6px 0 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--accent-red);
}
#features .feature-card { /* If features is on --card-bg, cards should be darker */
    background: var(--bg-dark);
    width: 30%;
}
main > section:nth-of-type(odd) .feature-card { /* If section is --bg-dark, cards can be --card-bg */
    background: var(--card-bg);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.feature-card .icon {
    font-size: 3.5rem; 
    color: var(--accent-red);
    margin-bottom: 20px;
    display: inline-block; /* For potential icon bg */
}

.feature-card h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1.05rem;
    color: var(--text-medium);
}

/* Gallery Section - Using the light alternate background */
#gallery {
    background-color: var(--section-bg-alt);
    color: var(--text-dark); 
}
#gallery .section-title {
    color: var(--accent-red); 
}
#gallery .section-title::after,
#gallery .section-title::before {
    background: var(--primary-blue); 
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.gallery-grid img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1920/1080;
}
.gallery-grid img:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}


/* Steambuy Section */
#steambuy .section-title {
    color: var(--primary-blue);
}
#steambuy .section-title::after,
#steambuy .section-title::before {
    background: var(--accent-red);
}
.steam-widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    max-width: 726px;
    /* background-color: #16202D; */
    padding: 20px 32px;
    border-radius: 5px;
    /* box-shadow: 0 0 15px rgba(0,0,0,0.2); */
}
.steam-widget-container iframe {
    display: block; 
}
#steambuy p.steambuy-support-text,
.steambuy-support-text {
    font-size: 1.2rem;
    margin: 25px auto 0;
    max-width: 700px;
    color: var(--text-medium); 
    text-align: center;
}
#steambuy p.steambuy-support-text strong {
    color: var(--text-light);
}


/* Footer */
footer {
    background: #111827;
    color: var(--text-medium);
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(332deg, #000 -50%, #0f0f32);
    box-shadow: 0 6px 16px 10px rgba(0, 0, 0, 0.09);
}
footer p {
    margin-bottom: 10px;
}
footer .release-footer-note {
    font-style: italic;
    color: var(--primary-blue);
    margin-bottom: 15px;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
}
.social-links a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
    height: 30px;
    width: 30px;
    display: block;
}
.social-links a:hover {
    color: var(--accent-red);
}

@media (max-width: 1340px) {
    #features .feature-card {
        width: 48%;
    }
    aside {
        display: none!important;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero .tagline {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 2.4rem;
    }
    #features .feature-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 10px;
    }
    .logo {
        left: calc(50% - 84px)!important;
        top: 28px;
        display: none;
    }
    nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 5px 10px;
    }

    .hero {
        height: auto;
        min-height: 0;
        padding: 100px 20px 60px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero .tagline {
        font-size: 1.2rem;
    }
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.1rem;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr; 
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .steam-widget-container iframe {
        width: 100% !important; /* Force iframe to be responsive if widget allows */
        max-width: 646px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.6rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero .tagline {
        font-size: 1.05rem;
    }
    .hero .release-status {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .feature-card h3 {
        font-size: 1.4rem;
    }
    .feature-card p {
        font-size: 1rem;
    }
    #about p {
        font-size: 1.1rem;
    }
    .steam-widget-container {
        padding: 5px; /* Reduce padding for widget on small screens */
    }
}

/* NEW UNSUPPORTED */
sectionspacer {
    width: 100%;
    display: block;
    background: rgba(25, 33, 50, 0.76);
    height: 12px;
    border-top: 3px solid rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}
.video-container {
    margin: 56px auto 0;
    max-width: 850px;
}
.video-embed {
    border: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
}
.background-grad-variant-1 {
    background: radial-gradient(ellipse at top, #ac5a7045, transparent), radial-gradient(ellipse at bottom, #0f0f4da8, transparent), radial-gradient(ellipse at left, #684b8aa8, transparent), var(--card-bg);
}
.background-grad-variant-2 {
    background: radial-gradient(ellipse at top, #221022, transparent), radial-gradient(ellipse at bottom, #1d1d54, transparent) #0c0734;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 20px;
    transition: .3s margin;
}
aside {
    position: fixed;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    margin-left: 22px;
    justify-content: center;
    gap: 10px;
    z-index: 100;
}
.sidebar-item .background {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    width: 36px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}
.sidebar-item .grad-pattern {
    background: radial-gradient(calc(1.28*16px + 6px/2) at left 50% bottom calc(-.8*16px),#2270E5 calc(100% - 6px),#343436 calc(101% - 6px) 100%,#0000 101%) calc(2*16px) calc(-1*calc(1.5*16px + 6px)), radial-gradient(calc(1.28*16px + 6px/2) at left 50% bottom calc(-.8*16px),#E5114A calc(100% - 6px),#343436 calc(101% - 6px) 100%,#0000 101%) calc(-1*16px) calc(calc(1.5*16px + 6px)/-2), radial-gradient(calc(1.28*16px + 6px/2) at left 50% top calc(-.8*16px),#E5114A calc(100% - 6px),#343436 calc(101% - 6px) 100%,#0000 101%) 0 calc(1.5*16px + 6px), radial-gradient(calc(1.28*16px + 6px/2) at left 50% top calc(-.8*16px),#2270E5 calc(100% - 6px),#343436 calc(101% - 6px) 100%,#0000 101%) 16px calc(calc(1.5*16px + 6px)/ 2), linear-gradient(#2270E5 50%,#E5114A 0) rgba(255, 255, 255, 0.1);
    background-size: auto, auto, auto, auto, auto;
    background-size: auto, auto, auto, auto, auto;
    background-size: calc(4*16px) calc(1.5*16px + 6px);
    filter: blur(3px);
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: -1;
    opacity: 30%;
}
.sidebar-item .background svg {
    height: 20px;
    width: auto;
}
.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 44px;
    cursor: pointer;
}
.sidebar-item.focused {
    margin-left: 18px;
}
.sidebar-item.focused .background {
    border: 3px solid rgba(232, 102, 126, 0.62);
}
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-header {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    border: 3px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    min-width: 170px;
}
.sidebar-header .top-sec {
    background: linear-gradient(152deg, #d764943d, #1f22c64a);
    padding: 6px 12px 3px;
    color: white;
}
.bottom-sec {
    color: #b7bbc8;
    padding: 4px 12px;
}

/* controls */
kbd {
    border: none;
    background: linear-gradient(-225deg, #2c232e, #363337);
    border-radius: 3px;
    box-shadow: inset 0 -4px 0 0 #251c26, inset 0 0 1px 1px #454145, 0 1px 2px 1px rgba(24, 7, 25, 0.26);
    color: #d9deef;
    text-align: center;
    padding: 0.3em 0.9em;
    display: inline-block;
    font-weight: bold;
    font-size: 0.85em;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
}
kbd:active {
  	transform: translateY(2px);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #461a51;
    border-radius: 14px;
}
::-webkit-scrollbar-thumb {
    background: #bf18bd;
    border-radius: 8px;
    border: 2px solid #461a51;
}
::-webkit-scrollbar-thumb:hover {
    background: #f16cf0;
}