:root {
    --bg-color: #080b11;
    --card-bg: rgba(20, 24, 35, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    
    /* Neon gradients */
    --timeline-glow: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --timeline-accent: #00f2fe;
    
    --height-glow: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    --height-accent: #00ff87;
    
    --music-glow: linear-gradient(135deg, #f953c6 0%, #b91d73 100%);
    --music-accent: #f953c6;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Ambient glow backgrounds */
.background-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--timeline-glow);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--music-glow);
}

.glow-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    height: 40vw;
    background: var(--height-glow);
    opacity: 0.08;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.animated-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    opacity: 0;
    animation: stampAnimation 4.5s cubic-bezier(0.2, 0.8, 0.2, 1.2) 2s forwards;
}

@keyframes stampAnimation {
    0% {
        transform: scale(4) rotate(-720deg) translateY(-100px);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 0;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.highlight {
    background: linear-gradient(135deg, #00f2fe 0%, #f953c6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    margin-bottom: 60px;
}

/* Game Cards */
.game-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

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

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

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

.game-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.game-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
}

.play-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Gör hela kortet klickbart */
.play-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

/* Timeline Customization */
.card-timeline .card-icon {
    background: rgba(0, 242, 254, 0.1);
    color: var(--timeline-accent);
}
.card-timeline .card-meta {
    color: var(--timeline-accent);
}
.card-timeline .play-btn {
    background: var(--timeline-glow);
    color: #080b11;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.2);
}
.card-timeline:hover {
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.1), inset 0 0 20px rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.4);
}
.card-timeline .play-btn:hover {
    box-shadow: 0 6px 24px rgba(0, 242, 254, 0.4);
}

/* Height Customization */
.card-height .card-icon {
    background: rgba(0, 255, 135, 0.1);
    color: var(--height-accent);
}
.card-height .card-meta {
    color: var(--height-accent);
}
.card-height .play-btn {
    background: var(--height-glow);
    color: #080b11;
    box-shadow: 0 4px 20px rgba(0, 255, 135, 0.2);
}
.card-height:hover {
    box-shadow: 0 20px 40px rgba(0, 255, 135, 0.1), inset 0 0 20px rgba(0, 255, 135, 0.05);
    border-color: rgba(0, 255, 135, 0.4);
}
.card-height .play-btn:hover {
    box-shadow: 0 6px 24px rgba(0, 255, 135, 0.4);
}
    .card-height .daily-badge {
        position: absolute;
        top: 18px;
        right: 18px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 999px;
        background: rgba(0, 255, 135, 0.16);
        color: var(--height-accent);
        border: 1px solid rgba(0, 255, 135, 0.24);
        font-size: 0.85rem;
        font-weight: 700;
        text-decoration: none;
        z-index: 2;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .card-height .daily-badge:hover {
        background: rgba(0, 255, 135, 0.24);
        transform: translateY(-2px);
    }
    box-shadow: 0 4px 20px rgba(249, 83, 198, 0.2);
}
.card-music:hover {
    box-shadow: 0 20px 40px rgba(249, 83, 198, 0.1), inset 0 0 20px rgba(249, 83, 198, 0.05);
    border-color: rgba(249, 83, 198, 0.4);
}
.card-music .play-btn:hover {
    box-shadow: 0 6px 24px rgba(249, 83, 198, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        gap: 0;
    }
    .animated-logo {
        width: 150px;
        height: 150px;
        margin-bottom: -30px;
    }
    .logo-text {
        font-size: 2.8rem;
    }
    .game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .game-card {
        padding: 30px 20px;
    }
}
