/* assets/shared/game_utils.css */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confirm-card {
    background: white;
    width: 100%;
    max-width: 550px;
    padding: 3rem 2rem;
    border-radius: 40px;
    border: 8px solid var(--blue);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.confirm-card h2 {
    color: var(--pink);
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.confirm-btns {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.confirm-btn {
    background: none;
    border: none;
    padding: 0;
    width: 140px;
    height: 140px;
    cursor: pointer;
    transition: transform 0.3s;
}

.confirm-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.confirm-btn:active {
    transform: scale(0.9);
}

.confirm-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Konfety --- */
.confetti {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFly 1s ease-out forwards;
}

@keyframes confettiFly {
    0% { transform: translate(0, 0) rotate(0); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) rotate(360deg); opacity: 0; }
}

@media (max-width: 600px) {
    .confirm-card { padding: 2rem 1.5rem; }
    .confirm-card h2 { font-size: 2rem; }
    .confirm-btn { width: 100px; height: 100px; }
}

/* --- Win Card Šablona --- */
.win-card {
    border-color: #ffeb3b !important; /* Zlatá pro vítězství */
}

.win-trophy {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
    animation: trophyBounce 1s infinite alternate ease-in-out;
}

@keyframes trophyBounce {
    from { transform: translateY(0) rotate(-5deg); }
    to { transform: translateY(-15px) rotate(5deg); }
}

.win-title {
    color: #4caf50;
    font-size: 3rem;
    margin: 10px 0;
}

.win-text {
    font-size: 1.8rem;
    color: #666;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .win-trophy { width: 120px; height: 120px; }
    .win-title { font-size: 2rem; }
    .win-text { font-size: 1.4rem; }
}
