: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%);
    
    --height-glow: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    --height-accent: #00ff87;
    
    --music-glow: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --music-accent: #00c6ff;
    
    --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;
}

.header-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--music-accent);
    border-color: var(--music-accent);
    transform: translateY(-2px);
}

.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%;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

/* 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;
}


/* 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);
}

.card-music .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, 198, 255, 0.16);
    color: var(--music-accent);
    border: 1px solid rgba(0, 198, 255, 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-music .daily-badge:hover {
    background: rgba(0, 198, 255, 0.24);
    transform: translateY(-2px);
}

/* Music Customization (Blue Theme) */
.card-music .card-icon {
    background: rgba(0, 198, 255, 0.1);
    color: var(--music-accent);
}
.music-title {
    display: block;
}
.youtube-logo {
    width: 25px;
    height: auto;
    flex: 0 0 auto;
}
.youtube-logo path:first-child {
    fill: #ff0033;
}
.youtube-logo .youtube-play {
    fill: #ffffff;
}
.youtube-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--music-accent) !important;
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    margin-top: -9px;
    margin-bottom: 15px !important;
}
.card-music .card-meta {
    color: var(--music-accent);
}
.card-music .play-btn {
    background: var(--music-glow);
    color: #080b11;
    box-shadow: 0 4px 20px rgba(0, 198, 255, 0.25);
}
.card-music:hover {
    box-shadow: 0 20px 40px rgba(0, 198, 255, 0.12), inset 0 0 20px rgba(0, 198, 255, 0.05);
    border-color: rgba(0, 198, 255, 0.4);
}
.card-music .play-btn:hover {
    box-shadow: 0 6px 24px rgba(0, 198, 255, 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;
    }
}

/* Language selector */
.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 6px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flag-icon {
    display: inline-block;
    width: 1.2em;
    height: 0.8em;
    margin-left: 0.25em;
    vertical-align: -0.08em;
    border-radius: 1px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.flag-sv {
    background:
        linear-gradient(to right, transparent 0 38%, #ffcd00 38% 50%, transparent 50%),
        linear-gradient(to bottom, transparent 0 40%, #ffcd00 40% 60%, transparent 60%),
        #006aa7;
}

.flag-en {
    background:
        linear-gradient(26deg, transparent 43%, #fff 43% 48%, #c8102e 48% 52%, #fff 52% 57%, transparent 57%),
        linear-gradient(-26deg, transparent 43%, #fff 43% 48%, #c8102e 48% 52%, #fff 52% 57%, transparent 57%),
        linear-gradient(to right, transparent 0 40%, #fff 40% 60%, transparent 60%),
        linear-gradient(to bottom, transparent 0 35%, #fff 35% 65%, transparent 65%),
        linear-gradient(to right, transparent 0 45%, #c8102e 45% 55%, transparent 55%),
        linear-gradient(to bottom, transparent 0 42%, #c8102e 42% 58%, transparent 58%),
        #012169;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

