:root {
    --primary: #0052cc;
    --primary-light: #0065ff;
    --secondary: #6b778c;
    --light-bg: #f5f9ff;
    --card-bg: #fff;
    --border: #e6efff;
    --hover-border: #b3d1ff;
    --shadow: rgba(0, 82, 204, 0.1);
    --text: #333;
    --meta-text: #5e6c84;
    --footer-text: #a5adba;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--light-bg);
    color: var(--text);
    padding: 20px;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 12px;
    padding: clamp(20px, 5vw, 30px);
    box-shadow: 0 10px 30px var(--shadow);
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header p {
    color: var(--secondary);
    font-size: clamp(1rem, 2vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto;
}

.game-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.game-item {
    display: flex;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--border);
    position: relative;
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 82, 204, 0.15);
    border-color: var(--hover-border);
}

.game-icon {
    width: 150px;
    height: 150px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.game-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity 0.3s;
}

.game-item:hover .game-icon::after {
    opacity: 0.8;
}

.game-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-title {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.game-desc {
    color: var(--secondary);
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    margin-bottom: 20px;
}

.game-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.game-meta-item {
    display: flex;
    align-items: center;
    color: var(--meta-text);
    font-size: 0.85rem;
    white-space: nowrap;
}

.game-meta-item i {
    margin-right: 6px;
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.game-link {
    align-self: flex-start;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    border: 2px solid transparent;
}

.game-link:hover, .game-link:focus {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px var(--shadow);
    border-color: rgba(255,255,255,0.3);
    outline: none;
}

.game-link i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.footer {
    text-align: center;
    margin-top: 50px;
    color: var(--footer-text);
    font-size: 0.9rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (max-width: 768px) {
    .game-item {
        flex-direction: column;
    }
    
    .game-icon {
        width: 100%;
        height: 120px;
    }
    
    .game-content {
        padding: 20px;
    }
    
    .game-meta {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .game-meta {
        flex-direction: column;
        gap: 8px;
    }
}