:root {
    --primary-font: 'Nunito', sans-serif;
    --heading-font: 'Fredoka One', cursive;
    --bg-color: #f0f8ff;
    --text-main: #333;
    --text-muted: #666;
    --card-bg: rgba(255, 255, 255, 0.9);
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
}

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

body {
    font-family: var(--primary-font);
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    min-height: 100vh;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    padding-bottom: 50px;
}

/* Background Decorations */
.background-decorations {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: -1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 10s ease-in-out infinite alternate;
}

.circle-1 {
    width: 300px; height: 300px;
    background: #ff9a9e;
    top: -50px; left: -50px;
}

.circle-2 {
    width: 400px; height: 400px;
    background: #a1c4fd;
    bottom: -100px; right: -100px;
    animation-delay: -3s;
}

.circle-3 {
    width: 250px; height: 250px;
    background: #fbc2eb;
    top: 40%; left: 60%;
    animation-delay: -7s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* Header */
header {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.title {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    color: #ff4757;
    text-shadow: 2px 2px 0px #fff, 4px 4px 0px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
    animation: bounceIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2f3542;
    background: rgba(255,255,255,0.6);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

/* Game Container & Cards */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    border: 3px solid #fff;
    display: flex;
    flex-direction: column;
}

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

.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .card-image {
    transform: scale(1.1);
}

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

.game-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 4rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transform: scale(0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover .play-icon {
    transform: scale(1);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h2 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.card-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Tags */
.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-blue { background: #e0f7fa; color: #00838f; }
.tag-green { background: #e8f5e9; color: #2e7d32; }
.tag-gray { background: #f5f5f5; color: #9e9e9e; }

/* Locked / Coming Soon states */
.locked {
    opacity: 0.8;
    filter: grayscale(0.4);
    cursor: not-allowed;
}

.locked:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #fff;
}

.placeholder-wrapper {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-card-art {
    background: linear-gradient(135deg, #ffe29a 0%, #9edfd0 100%);
}

.feed-card-emoji {
    font-size: 5rem;
    letter-spacing: 0.12em;
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.lock-icon {
    font-size: 4rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .title { font-size: 2.5rem; }
    .game-container { padding: 0 1rem; }
}
