/* --- GRUNDSTYLING --- */
body {
    margin: 0;
    padding: 0;
    background: #f0f0f5;
    font-family: 'Segoe UI', sans-serif;
}

.dashboard {
    padding: 40px 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* --- KARUSSELL LOGIK --- */
.carousel-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* --- KACHELN (FULL-COVER DESIGN) --- */
.game-tile {
    min-width: 320px;
    height: 400px;
    position: relative;
    border-radius: 22px;
    overflow: hidden; /* WICHTIG: schneidet den Blur-Überhang ab */
    background: #080808;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.game-tile:hover {
    transform: translateY(-8px);
}

/* Ebene 1: Die Animation im Hintergrund (UNSCHARF) */
.game-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Unschärfe-Effekt */
    filter: blur(1px); 
    /* Scale verhindert weiße Blitzer an den Rändern des Blurs */
    transform: scale(1.1); 
    transition: filter 0.3s ease;
}

/* Optional: Beim Hovern wird es etwas schärfer */
.game-tile:hover .game-preview {
    filter: blur(0px);
}

/* Siegesnachricht beim Hovern der Kachel scharf machen */
.game-tile:hover .game-status {
    filter: blur(0px);
    transition: filter 0.3s ease;
}

.game-preview canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Ebene 2: Das Info-Overlay (Titel bleibt SCHARF) */
.game-info {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    justify-content: center; 
    align-items: center;     
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 70%);
    pointer-events: none;
    text-align: center;
}

.game-info h3 {
    color: #ffffff;
    font-family: Arial, sans-serif;
    /* Starker Schatten, um sich vom Blur abzuheben */
    text-shadow: 0 4px 15px rgba(0,0,0,1); 
    margin: 0;
    font-size: 24px;
    padding: 0 20px;
    /* KEIN BLUR für den Namen */
    filter: none;
}

/* --- SIEGESNACHRICHT (UNSCHARF) --- */
.game-status {
    position: absolute;      
    bottom: 15%;             
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
    /* Die Siegesnachricht soll laut Wunsch auch unscharf sein */
    filter: blur(2px); 
}

/* Aktivierung bei Sieg */
.winner-active {
    opacity: 1;
    transform: translateY(0);
    animation: pulseWinner 2s infinite ease-in-out;
}

@keyframes pulseWinner {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* --- NAVIGATION & MOBILE --- */
.nav-buttons button {
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .carousel-container {
        flex-direction: column;
        align-items: center;
    }
    .game-tile {
        width: 100%;
        max-width: 320px;
        height: 350px;
    }
    .nav-buttons {
        display: none;
    }
}