/* Police pixel art */
@font-face {
    font-family: "Dogica Pixel";
    src: url("dogicapixel.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

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

/* Body */
body {
    font-family: "Dogica Pixel", "Courier New", monospace;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* Fond avec gradient et motifs casino */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a5a1f 0%, #0b6623 50%, #1a5c1a 100%);
    z-index: 0;
}

/* Texture de tapis (damier) */
.background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        rgba(0, 0, 0, 0.1) 0deg 90deg,
        transparent 90deg 180deg,
        rgba(0, 0, 0, 0.1) 180deg 270deg,
        transparent 270deg 360deg
    );
    background-size: 20px 20px;
    image-rendering: pixelated;
}

/* Motifs losanges dorés animés */
.casino-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(255, 215, 0, 0.05) 35px,
            rgba(255, 215, 0, 0.05) 70px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 35px,
            rgba(255, 215, 0, 0.05) 35px,
            rgba(255, 215, 0, 0.05) 70px
        );
    image-rendering: pixelated;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(70px) translateY(70px);
    }
}

/* Contenu principal */
.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 2rem;
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Logo */
.logo-container {
    margin-bottom: 3rem;
    animation: logoBounce 2s ease-in-out infinite;
}

.logo {
    height: 40vh;
    max-height: 400px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 40px rgba(255, 140, 0, 0.7));
}

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

/* Bouton Download Steam */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    font-family: "Dogica Pixel", "Courier New", monospace;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #1b2838;
    border: 4px solid #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow:
        6px 6px 0 #000,
        0 0 30px rgba(27, 40, 56, 0.5);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    background: #2a475e;
    transform: translate(2px, 2px);
    box-shadow:
        4px 4px 0 #000,
        0 0 40px rgba(27, 40, 56, 0.7);
}

.download-btn:active {
    transform: translate(4px, 4px);
    box-shadow:
        2px 2px 0 #000,
        0 0 20px rgba(27, 40, 56, 0.5);
}

.steam-icon {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
}

.footer-link {
    font-size: 14px;
    color: rgba(255, 215, 0, 0.7);
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-link:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        height: 30vh;
        max-height: 250px;
    }

    .download-btn {
        padding: 16px 32px;
        font-size: 14px;
        gap: 8px;
    }

    .steam-icon {
        width: 20px;
        height: 20px;
    }

    .footer-link {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 25vh;
        max-height: 200px;
    }

    .download-btn {
        padding: 14px 24px;
        font-size: 12px;
    }

    .content {
        padding: 1rem;
    }
}
