/* /css/games.css */

/* Allgemeine Stile, die von mehreren Spielen verwendet werden. */

/* Animationen für das Spiel */
.comic-text {
    font-family: 'Comic Neue', cursive;
    text-shadow: 2px 2px 0px #0f172a, 4px 4px 0px #38bdf8;
    -webkit-text-stroke: 1px #0f172a;
}

@keyframes fly-in-from-left {
    0% { transform: translateX(-150%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fly-in-from-right {
    0% { transform: translateX(150%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.animate-fly-in-left { animation: fly-in-from-left 1s ease-out forwards; }
.animate-fly-in-right { animation: fly-in-from-right 1s ease-out forwards; }

@keyframes bounce-trophy {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.animate-bounce-trophy { animation: bounce-trophy 2s ease-in-out infinite; }


/* --- Winning Screen & Konfetti --- */
.winning-screen-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.confetti {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winning-content {
    position: relative;
    z-index: 101;
    text-align: center;
    padding: 2rem;
}


/* --- Spieleübersicht Kacheln --- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.game-tile-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: all 0.3s ease-in-out;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.game-tile-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.game-tile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.3s ease-in-out;
}

.game-tile-card:hover img {
    transform: scale(1.05);
}

.game-tile-card.hover-glow-violet:hover {
    animation: glowing-violet 1.5s infinite;
}

@keyframes glowing-violet {
    0% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.6); }
    100% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.3); }
}

/* --- Fisch-Coin-Belohnungsfenster --- */
@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px 5px rgba(251, 191, 36, 0.5);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 25px 10px rgba(251, 191, 36, 0.8);
    }
}

.reward-modal-content {
    background: radial-gradient(circle, #fcd34d 0%, #f59e0b 100%);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 15px 5px rgba(251, 191, 36, 0.5);
    width: fit-content;
    max-width: 90vw;
    animation: pulse-glow 2.5s infinite ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.reward-modal-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.reward-modal-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.reward-modal-text h2 {
    font-family: 'Comic Neue', cursive;
    font-size: 2.25rem;
    font-weight: 700;
    color: #422006;
    line-height: 1.1;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.reward-modal-text p {
    font-size: 1.125rem;
    color: #78350f;
    margin-top: 0.5rem;
}

.reward-modal-collect-btn {
    background-color: #f59e0b;
    color: #422006;
    font-family: 'Comic Neue', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.reward-modal-collect-btn:hover {
    transform: scale(1.05);
    background-color: #fbbf24;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.reward-modal-collect-btn .material-symbols-outlined {
    font-size: 2rem;
}

/* --- Sterne-Bewertung --- */
.stars-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.stars-container .material-symbols-outlined {
    font-size: 2.5rem;
    color: #64748b;
}
.stars-container .material-symbols-outlined.filled {
    color: #f59e0b;
}