* {
    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;
}

@keyframes header-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: header-pulse 3s ease-in-out infinite;
}

.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%);
}

.game-preview.tower-defense {
    background: linear-gradient(135deg, #1a2a1a 0%, #2d4a2d 50%, #0f1f0f 100%);
}

.game-card.tower-defense .play-button {
    background: linear-gradient(135deg, #2d8b2d 0%, #4aad4a 100%);
}

.game-preview.bullet-heaven {
    background: linear-gradient(135deg, #0a0a2a 0%, #1a0a3a 50%, #2a0a1a 100%);
}

.game-card.bullet-heaven .play-button {
    background: linear-gradient(135deg, #9b59b6 0%, #e74c3c 100%);
}

.game-preview.dungeon-fps {
    background: linear-gradient(135deg, #1a1005 0%, #3a2a10 50%, #0f0a02 100%);
}

.game-card.dungeon-fps .play-button {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.game-preview.interactive-fiction {
    background: linear-gradient(135deg, #1a1205 0%, #2e2010 50%, #120d03 100%);
}

.game-card.interactive-fiction .play-button {
    background: linear-gradient(135deg, #d4a017 0%, #f0c040 100%);
}

.game-preview.centipede-td {
    background: linear-gradient(135deg, #0a1a0a 0%, #002200 50%, #0a1a0a 100%);
}

.game-card.centipede-td .play-button {
    background: linear-gradient(135deg, #00aa00 0%, #00dd00 100%);
}

.game-preview.ember-crown {
    background: linear-gradient(135deg, #1a0a00 0%, #3a1800 50%, #2a0500 100%);
}

.game-card.ember-crown .play-button {
    background: linear-gradient(135deg, #c0390b 0%, #e8890a 100%);
}

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

footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer a:hover {
    opacity: 0.7;
}

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

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