.joker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.joker-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.joker-modal {
    background: linear-gradient(135deg, #2a2a72 0%, #009ffd 100%);
    border-radius: 15px;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.4s ease;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000000;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: visible ;
}
.joker-modal-header {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}
.joker-modal-header h3 {
    font-size: 24px;
    margin-bottom: 5px;
}
.joker-cards-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    perspective: 2000px;
    padding: 15px;
    position: relative;
    z-index: 1;
    max-height: 80vh;
    overflow-y: auto;
}
.joker-card-option {
    width: 90px;
    height: 130px;
    background: linear-gradient(135deg, #1A1D29 0%, #2C3142 100%);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    transform-style: preserve-3d;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.joker-card-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.joker-card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}
.joker-card-name {
    font-size: 14px;
    font-weight: bold;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    transform: translateX(120%);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.notification::before {
    content: '🎯';
    font-size: 20px;
}
.notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}
.notification.success::before {
    content: '🎉';
}
.notification.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}
.notification.warning::before {
    content: '⚠️';
}
.notification.show {
    transform: translateX(0);
    opacity: 1;
}
.notification.fade-out {
    opacity: 0;
    transform: translateX(120%);
}
.joker-modal h3 {
    color: white;
    font-size: 24px;
    margin: 0 0 10px 0;
}
.joker-modal p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}
.joker-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.joker-option {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.joker-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.joker-cancel {
    background: rgba(255, 0, 0, 0.3);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.joker-cancel:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}
.bonus-cards-container {
    margin-top: 25px;
    padding: 25px;
    background: rgba(26, 29, 41, 0.85);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 225, 185, 0.15);
    border: 1px solid rgba(0, 225, 185, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 800px;
}
.bonus-card-button.joker-passive {
    opacity: 1.6 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important; 
    position: relative;
    background: rgb(0, 0, 0) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
}
.bonus-card-button.joker-passive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.05) 2px,
        rgba(255, 255, 255, 0.05) 4px
    );
    border-radius: inherit;
    pointer-events: none;
}
.bonus-card-button.joker-passive .bonus-card-icon {
    filter: grayscale(30%);
    opacity: 0.7;
}
.bonus-card-button.joker-passive .bonus-card-name {
    color: rgba(255, 255, 255, 0.6) !important;
}
.bonus-card-button.joker-passive .bonus-card-count {
    background: rgba(255, 215, 0, 0.2) !important;
    color: rgba(255, 215, 0, 0.7) !important;
    border-color: rgba(255, 215, 0, 0.3) !important;
}
.bonus-card-button .card-description {
    display: flex; 
    justify-content: center;    
    align-items: center;        
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 165, 0, 0.95));
    color: #000;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    z-index: 15;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    width: auto;
    max-width: 100px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.bonus-card-button.joker-passive.clicked .card-description {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1.05);
}
.bonus-card-button.joker-passive:hover .card-description {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1.02);
}
.bonus-card-button.joker-passive:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4) !important;
}
.bonus-card-button.joker-passive:active {
    transform: translateY(0) scale(0.98);
}
@media (max-width: 768px) {
    .bonus-card-button .card-description {
        font-size: 10px;
        padding: 6px 10px;
        width: 85%;
        max-width: 90px;
    }
}
@media (max-width: 480px) {
    .bonus-card-button .card-description {
        font-size: 9px;
        padding: 5px 8px;
        width: 90%;
        max-width: 80px;
        line-height: 1.2;
    }
}
.bonus-cards-title {
    color: #00E1B9;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 800;
    margin-bottom: 18px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}
.bonus-cards-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00E1B9, #00B8E1);
    border-radius: 3px;
}
.bonus-card {
    width: 90px;
    height: 130px;
    background: linear-gradient(135deg, #1A1D29 0%, #2C3142 100%);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 225, 185, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.bonus-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 225, 185, 0.2);
    background: linear-gradient(135deg, rgba(0, 225, 185, 0.2) 0%, rgba(0, 184, 225, 0.2) 100%);
}
.bonus-card-icon {
    font-size: 20px;
    color: #00E1B9;
    text-shadow: 0 0 10px rgba(0, 225, 185, 0.5);
}
.bonus-card-info {
    text-align: center;
}
.bonus-card-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}
.bonus-card-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}
.bonus-card.used {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f1f5f9;
    transform: none;
    box-shadow: none;
    border: 1px solid rgba(226, 232, 240, 0.4);
}
.bonus-card.used::after {
    content: "Kullanıldı";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white;
    padding: 6px 12px;
    font-size: 0.85em;
    font-weight: bold;
    width: 150%;
    text-align: center;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.bonus-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    animation: bonusPopup 2s ease-in-out;
    z-index: 1000;
}
@keyframes bonusPopup {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    30% { transform: translate(-50%, -50%) scale(1); }
    70% { opacity: 1; }
    100% { opacity: 0; }
}
@media (max-width: 576px) {
    .joker-modal {
        width: 90%;
        max-width: 300px;
        padding: 15px;
    }
    .joker-modal-header h3 {
        font-size: 20px;
    }
    .joker-options {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 8px;
    }
    .joker-option {
        padding: 8px;
    }
    .joker-card-icon {
        font-size: 24px;
    }
    .joker-card-name {
        font-size: 12px;
    }
    .joker-cancel {
        font-size: 14px;
        padding: 8px 16px;
    }
}
@media (max-width: 768px) {
    .game-survivor .bonus-cards-container {
        flex-wrap: nowrap !important;
        padding: 6px !important;
        margin: 10px auto !important;
        max-width: 240px !important;
        width: fit-content !important;
        box-sizing: border-box;
        gap: 6px !important;
    }
    .game-survivor .bonus-card {
        width: 60px !important;
        height: 90px !important;
        font-size: 16px !important;
        border-radius: 6px !important;
    }
    .game-survivor .bonus-card span {
        font-size: 9px !important;
        margin-top: 1px !important;
    }
}
@media (max-width: 480px) {
    .game-survivor .bonus-cards-container {
        max-width: 200px !important;
        gap: 5px !important;
    }
    .game-survivor .bonus-card {
        width: 50px !important;
        height: 80px !important;
        font-size: 14px !important;
    }
    .game-survivor .bonus-card span {
        font-size: 8px !important;
    }
}