body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

nav {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff3333;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    color: #ff3333;
    background: rgba(255, 51, 51, 0.1);
}

.nav-links a.active {
    color: #ff3333;
    background: rgba(255, 51, 51, 0.2);
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 7rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.game-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #ff3333;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.4);
}

.game-card h3 {
    color: #ff3333;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.game-description {
    margin-bottom: 1.5rem;
    color: #cccccc;
}

.play-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #ff3333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.play-button:hover {
    background: #ff6666;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: #ff3333;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

/* Game page styles */
.game-page {
    padding-top: 5rem;
    text-align: center;
}

.game-container {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    margin: 20px auto;
    background: #000;
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.game-controls {
    margin-top: 1rem;
}

.control-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #ff3333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin: 0 0.5rem;
}

.control-button:hover {
    background: #ff6666;
}
