@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;600;700&display=swap');

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

body {
    min-height: 100vh;
    background: #0a0a1a;
    color: #fff;
    font-family: 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Animated star background */
.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.15; transform: scale(0.8); }
    to   { opacity: 0.8;  transform: scale(1.2); }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 50px;
}

.title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(20px, 5vw, 36px);
    line-height: 1.5;
    background: linear-gradient(135deg, #FFD700, #FF6B35, #FF4488, #4488FF, #44FF88);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

.title-icon {
    -webkit-text-fill-color: initial;
    font-size: clamp(20px, 4vw, 32px);
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.subtitle {
    margin-top: 16px;
    font-size: 16px;
    color: #8899AA;
    letter-spacing: 0.5px;
}

/* Game grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

@media (max-width: 500px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
}

/* Game card */
.game-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #151525, #1a1a2e);
    border: 1px solid #2a2a4a;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    animation: cardIn 0.5s ease both;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--card-color, #4488FF);
    box-shadow: 0 12px 40px rgba(68, 136, 255, 0.15), 0 0 20px color-mix(in srgb, var(--card-color, #4488FF) 20%, transparent);
}

.game-card:active {
    transform: translateY(-2px) scale(1.0);
}

.game-card.coming-soon {
    opacity: 0.45;
    cursor: default;
    border-style: dashed;
}

.game-card.coming-soon:hover {
    transform: none;
    border-color: #2a2a4a;
    box-shadow: none;
}

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

.game-card-icon {
    font-size: 56px;
    text-align: center;
    padding: 30px 20px 15px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}

.game-card-body {
    flex: 1;
    padding: 0 24px 20px;
    text-align: center;
}

.game-card-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #fff;
}

.game-card-designer {
    font-size: 13px;
    color: #8899AA;
    margin-bottom: 12px;
    font-style: italic;
}

.game-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #AABBCC;
    margin-bottom: 14px;
}

.game-card-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background: rgba(68, 136, 255, 0.12);
    color: #6699CC;
    border: 1px solid rgba(68, 136, 255, 0.2);
}

.game-card-play {
    padding: 16px;
    text-align: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 13px;
    color: var(--card-color, #4488FF);
    background: rgba(255,255,255,0.02);
    border-top: 1px solid #2a2a4a;
    transition: background 0.2s ease, color 0.2s ease;
    letter-spacing: 1px;
}

.game-card:hover .game-card-play {
    background: var(--card-color, #4488FF);
    color: #fff;
}

.play-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.game-card:hover .play-arrow {
    transform: translateX(4px);
}

/* Footer */
footer {
    margin-top: 60px;
    text-align: center;
    color: #445;
    font-size: 13px;
}
