@font-face {
    font-family: 'PixeloidSans';
    src: url('assets/PixeloidSans.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'PixeloidSans';
    src: url('assets/PixeloidSansBold.ttf') format('truetype');
    font-weight: bold;
}

:root {
    --bg-dark: #281432;
    --bg-darker: #141423;
    --text-primary: #eaeaea;
    --text-secondary: #b8b8b8;
    --text-shadow: rgba(0, 0, 0, 0.75);
    --accent-red: #FF4757;
    --accent-blue: #2c72c7;
    --accent-green: #2ed573;
    --accent-yellow: #ffd700;
    --accent-purple: #a29bfe;
    --accent-orange: #ff6400;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PixeloidSans', 'Courier New', monospace;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: linear-gradient(to bottom, var(--bg-darker), transparent);
}

nav {
    display: flex;
    justify-content: flex-end;
    max-width: 1200px;
    margin: 0 auto;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--text-secondary);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    image-rendering: pixelated;
}

.lang-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--bg-dark);
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.logo {
    max-width: 100%;
    width: 600px;
    height: auto;
    image-rendering: pixelated;
    margin-bottom: 2rem;
}

.tagline {
    font-size: 1.5rem;
    color: var(--accent-yellow);
    font-weight: bold;
    text-shadow: 2px 2px 0 var(--bg-darker);
}

.steam {
    width: 646px;
    height: 190px;
}
section {
    margin-bottom: 4rem;
}

.intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    padding: 2rem;
    border-left: 4px solid var(--accent-blue);
    background: rgba(52, 152, 219, 0.1);
}

.video {
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-purple);
    object-fit: contain;
    background: var(--bg-darker);
}

h1 {
    font-size: 7rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 10px 10px 0 var(--text-shadow);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-green);
    position: relative;
    display: inline-block;
}

h2::before {
    content: '→ ';
    color: var(--accent-orange);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-purple);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.modes {
    background: var(--bg-darker);
    padding: 2rem;
    border: 2px solid var(--accent-purple);
}

.mode {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-yellow);
}

.mode:last-of-type {
    margin-bottom: 1.5rem;
}

.difficulty {
    padding: 1rem;
    background: rgba(241, 196, 15, 0.1);
    border: 1px dashed var(--accent-yellow);
}

.features ul {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.features li {
    padding: 1rem;
    background: var(--bg-darker);
    border-left: 4px solid var(--accent-red);
    color: var(--text-secondary);
    transition: transform 0.2s, border-color 0.2s;
}

.features li:hover {
    transform: translateX(8px);
    border-color: var(--accent-green);
}

.features li:nth-child(2) { border-color: var(--accent-blue); }
.features li:nth-child(3) { border-color: var(--accent-green); }
.features li:nth-child(4) { border-color: var(--accent-yellow); }
.features li:nth-child(5) { border-color: var(--accent-purple); }
.features li:nth-child(6) { border-color: var(--accent-red); }
.features li:nth-child(7) { border-color: var(--accent-blue); }
.features li:nth-child(8) { border-color: var(--accent-green); }

.screenshot-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.screenshot-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 2px solid var(--accent-purple);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.screenshot-gallery img.active {
    opacity: 1;
}

.game-icon {
    width: 256px;
    height: 256px;
    image-rendering: pixelated;
    margin-bottom: 1.5rem;
    border: 1px solid var(--text-secondary);
}

.target {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(52, 152, 219, 0.1));
    border: 2px solid var(--accent-blue);
}

.target h2 {
    display: block;
}

.target-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: left;
}

.target-content .game-icon {
    flex-shrink: 0;
    margin-bottom: 0;
}

.target-content p {
    margin: 0;
    font-size: 1.1rem;
}
.store-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent-green);
    color: var(--bg-dark);
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

@media (max-width: 600px) {
    .target-content {
        flex-direction: column;
        text-align: center;
    }
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.community-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.community-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    fill: currentColor;
}

.community-btn.discord {
    background: #5865F2;
    color: #fff;
    border-color: #5865F2;
}

.community-btn.discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.community-btn.youtube {
    background: #FF0000;
    color: #fff;
    border-color: #FF0000;
}

.community-btn.youtube:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero {
        min-height: 30vh;
        padding: 6rem 0 2rem;
    }

    .logo {
        width: 90%;
    }

    .tagline {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    main {
        padding: 1rem;
    }

    .modes,
    .intro,
    .target {
        padding: 1.5rem 1rem;
    }
    .steam {
        width: 450px;
        height: 190px;
    }
}

@media (max-width: 480px) {
    .tagline {
        font-size: 1rem;
    }

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .features li {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    .steam {
        width: 450px;
        height: 190px;
    }
}
