:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59,130,246,0.4) 0%, rgba(15,23,42,0) 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, rgba(15,23,42,0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 2rem;
    animation: fadeInDown 1s ease-out;
}

header h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

header .highlight {
    color: transparent;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
}

header p {
    font-size: 1.2rem;
    color: #94a3b8;
    font-weight: 300;
}

main {
    flex: 1;
}

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

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

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

.game-card:hover:not(.disabled) .game-thumbnail {
    transform: scale(1.05);
}

.game-card:hover:not(.disabled) .overlay-play {
    opacity: 1;
}

.game-thumbnail {
    height: 200px;
    background: #1e293b;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
    transform-origin: center;
}

.dino-thumb {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
}

.empty-thumb {
    background: #334155;
}

.thumb-icon {
    font-size: 5rem;
}

.overlay-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-play svg {
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.game-card:hover:not(.disabled) .overlay-play svg {
    transform: scale(1.1);
}

.game-info {
    padding: 1.5rem;
    position: relative;
    background: linear-gradient(to bottom, rgba(30,41,59,0) 0%, rgba(15,23,42,0.8) 100%);
}

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

.game-info p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--primary);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-outline {
    background: transparent;
    border: 1px solid #64748b;
    color: #94a3b8;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@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); }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 { font-size: 3rem; }
    .games-grid { grid-template-columns: 1fr; }
}
