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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    min-height: 100vh;
    padding: 20px;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    color: #e0e0e0;
}

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

.game-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.game-preview {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    position: relative;
    overflow: hidden;
}

.game-preview.space-shooter {
    background: linear-gradient(to bottom, #0a0a1a, #1a1a3a);
}

.game-preview.match-3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-preview.roguelike {
    background: linear-gradient(135deg, #2c1810 0%, #4a3520 50%, #1a0f0a 100%);
}

.preview-icon {
    font-size: 4em;
    opacity: 0.8;
}

.game-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: bold;
}

.game-description {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
}

.game-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
}

.play-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    width: 100%;
    text-align: center;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.6);
}

.game-card.space-shooter .play-button {
    background: linear-gradient(135deg, #4a4aff 0%, #6a6aff 100%);
}

.game-card.match-3 .play-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-card.roguelike .play-button {
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
}

footer {
    text-align: center;
    padding: 30px 0;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 50px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

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