* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #000;
    color: #fff;
}

.page-header {
    background-color: #111;
    padding: 20px 0;
}

.page-header h1 {
    color: #fff;
    text-align: center;
    font-size: 2.5rem;
}

.preview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.preview video {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.screenshots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.screenshot {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.screenshot img:hover {
    transform: scale(1.05);
}

.game-wrapper {
    width: 100%;
    height: 700px;
    position: relative;
}

.webgl {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
}

.game-ui {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    gap: 20px;
}

.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.game-over-content {
    background-color: #111;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.game-over h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.game-over p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ccc;
}

.final-stats {
    font-size: 1.4rem;
    color: #fff !important;
    margin: 20px 0 !important;
}

.page-footer {
    background-color: #111;
    padding: 30px;
    text-align: center;
    margin-top: 50px;
}

.start-button {
    display: block;
    margin: 40px auto;
    padding: 15px 40px;
    font-size: 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.start-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.hidden {
    display: none;
}

.collision-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.collision-effect.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .screenshots {
        flex-direction: column;
        align-items: center;
    }
    
    .screenshot {
        max-width: 100%;
    }
    
    .game-wrapper {
        height: 500px;
    }
    
    .game-ui {
        flex-direction: column;
        gap: 10px;
    }
}