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

html, body {
    overflow-x: hidden;
    min-height: 100vh;
}

html {
    scroll-padding-top: 5.5rem;
}

body {
    font-family: "Lato", sans-serif;
    background: #0a0a0f;
    color: #e8e9eb;
    overflow-x: hidden;
}

body.subpage {
    padding-top: 5.5rem;
}

.bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-slide.active {
    opacity: 0.15;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 2px solid #8b4513;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-link {
    display: flex;
    line-height: 0;
}

.nav-logo {
    height: 40px;
    width: auto;
    filter: sepia(100%) saturate(200%) hue-rotate(30deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 400;
    font-family: "Cinzel", serif;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(10, 10, 15, 0.7), rgba(139, 69, 19, 0.3));
    z-index: 1;
}

.hero h1 {
    font-family: "Cinzel", serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #d4af37, #ffd700, #8b4513);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.cta-button {
    background: linear-gradient(45deg, #8b4513, #d4af37);
    color: #0a0a0f;
    padding: 1rem 2rem;
    border: 2px solid #d4af37;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: "Cinzel", serif;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6);
    background: linear-gradient(45deg, #d4af37, #ffd700);
}

.section-separator {
    height: 300px;
    background-color: #0a0a0f;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-top: 3px solid #8b4513;
    border-bottom: 3px solid #8b4513;
    margin: 4rem 0;
}

.section-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.7);
}

.featured-games,
.music-section,
.media-section,
.words-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(10, 10, 15, 0.8);
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: "Cinzel", serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.game-card {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(10, 10, 15, 0.8));
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #8b4513;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 3;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: sepia(20%) saturate(120%);
    background: #050508;
}

.game-image-logo {
    object-fit: contain;
    height: 280px;
    filter: none;
}

.game-info {
    padding: 2rem;
}

.game-title {
    font-family: "Cinzel", serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #d4af37;
}

.game-status {
    font-size: 0.9rem;
    color: #cd853f;
    margin-bottom: 1rem;
    font-style: italic;
}

.game-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: #cd853f;
}

.links-array {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
    align-items: center;
}

.download-link {
    padding: 0.5rem 1rem;
    background: #8b4513;
    color: #d4af37;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #d4af37;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    display: inline-block;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.download-link:hover {
    background: #d4af37;
    color: #0a0a0f;
    transform: translateY(-1px);
}

.icon {
    width: 24px;
    height: 24px;
    margin: 0 5px;
    filter: sepia(100%) saturate(200%) hue-rotate(30deg);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
    filter: sepia(100%) saturate(200%) hue-rotate(30deg) brightness(1.2);
}

.download-spoiler {
    margin-top: 1rem;
    border: 1px solid #8b4513;
    border-radius: 8px;
    background: rgba(139, 69, 19, 0.2);
}

.download-spoiler summary {
    cursor: pointer;
    list-style: none;
    padding: 0.85rem 1rem;
    color: #d4af37;
    font-family: "Cinzel", serif;
    position: relative;
    z-index: 10;
}

.download-spoiler summary::-webkit-details-marker {
    display: none;
}

.download-spoiler summary::marker {
    content: "";
}

.download-spoiler summary::before {
    content: "▸  ";
}

.download-spoiler[open] summary::before {
    content: "▾  ";
}

.download-spoiler:not([open]) .release-info {
    display: none;
}

.release-info {
    background: transparent;
    padding: 0 1rem 1rem;
    border-radius: 0;
    margin-top: 0;
    border: 0;
    border-top: 1px solid #8b4513;
}

.release-info h4 {
    color: #d4af37;
    font-family: "Cinzel", serif;
    margin-bottom: 0.75rem;
}

.download-section {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(10, 10, 15, 0.5);
    border-radius: 5px;
    position: relative;
    z-index: 5;
}

.download-section h5 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-family: "Cinzel", serif;
}

.download-section small {
    color: #cd853f;
    font-size: 0.8rem;
    display: block;
    margin-top: 0.5rem;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.music-intro,
.media-intro {
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.8;
    color: #cd853f;
    font-size: 1.1rem;
}

.music-albums {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

.album-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #8b4513;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    filter: sepia(20%) saturate(120%);
    background: #0a0a0f;
}

.album-cover:hover {
    border-color: #d4af37;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    filter: sepia(10%) saturate(130%);
}

.media-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tile {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(10, 10, 15, 0.8));
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid #8b4513;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.tile p {
    color: #cd853f;
    line-height: 1.6;
    margin-top: 1rem;
}

.words-section {
    text-align: center;
}

.words-section img {
    max-width: 300px;
    border-radius: 10px;
    border: 2px solid #8b4513;
    margin-top: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.words-section img:hover {
    border-color: #d4af37;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.words-section p {
    color: #cd853f;
    line-height: 1.6;
}

.philosophy {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9), rgba(139, 69, 19, 0.3));
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy h2 {
    font-family: "Cinzel", serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #d4af37;
}

.philosophy p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #cd853f;
}

.philosophy a {
    color: #d4af37;
}

.philosophy hr {
    border: 0;
    border-top: 1px solid #8b4513;
    margin: 2rem 0;
}

footer {
    background: rgba(10, 10, 15, 0.95);
    padding: 2rem;
    text-align: center;
    border-top: 2px solid #8b4513;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.footer h5 {
    color: #d4af37;
    font-family: "Cinzel", serif;
    margin: 0.5rem 0;
}

.footer a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffd700;
}

code {
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    display: block;
    padding: 0.5rem;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 3px;
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    nav {
        position: sticky;
        padding: 0.75rem 1rem;
    }

    body.subpage {
        padding-top: 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 0.65rem;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.45rem 0.9rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .games-grid,
    .media-container {
        grid-template-columns: 1fr;
    }

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

    .section-separator {
        height: 200px;
        margin: 2rem 0;
    }

    .download-section {
        padding: 0.75rem;
    }

    .download-section small,
    code {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bg-slide,
    .game-card,
    .album-cover,
    .tile,
    .cta-button {
        transition: none;
    }
}
