:root {
    --primary: #2dd4bf;
    --primary-glow: rgba(45, 212, 191, 0.4);
    --bg: #042f2e;
    --card-bg: rgba(10, 60, 58, 0.8);
    --border: rgba(20, 80, 76, 0.8);
    --text: #f4f4f5;
    --text-dim: #a1a1aa;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.08) 0%, transparent 40%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    width: 100%;
    padding: 4rem 2rem;
    text-align: center;
}

header {
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom right, #fff 30%, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

.game-card:hover::before {
    opacity: 1;
}

.game-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: transform 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 1rem;
}

.game-card:hover .game-icon {
    transform: scale(1.1) rotate(5deg);
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.game-desc {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    margin-top: auto;
    padding: 2rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}
