/* ==========================================================================
   STANDARDIZED END SCREEN / GAME OVER MODAL (ELEGANT & REFINED)
   ========================================================================== */

.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    /* Edler, dezenter Farbverlauf statt purem Schwarz für mehr Tiefe */
    background: linear-gradient(145deg, #18181b 0%, #111115 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 0 !important;
    padding: 2.5rem 2rem !important;
    width: 90% !important;
    max-width: 420px !important;
    text-align: center;
    color: #ffffff !important;
    /* Ein hauchzarter, warmer Glow für den High-End-Effekt */
    box-shadow: 0 25px 50px rgba(0,0,0,0.7), 0 0 30px rgba(217, 119, 6, 0.04) !important;
    box-sizing: border-box;
}

.modal h1 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.6rem !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #ffffff !important;
    margin: 0 0 0.5rem 0 !important;
}

.modal p {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #a1a1aa !important;
    margin: 0 0 1.5rem 0 !important;
}

.modal .button-group {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.modal button, .modal a {
    background: linear-gradient(135deg, #27272a 0%, #18181b 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0 !important;
    padding: 1rem 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-decoration: none;
    cursor: pointer;
    width: 100% !important;
    max-width: 220px !important;
    transition: all 0.3s ease !important;
}

.modal button:hover, .modal a:hover {
    background: #ffffff !important;
    color: #18181b !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}

#restart-button {
    background: linear-gradient(135deg, #3f3f46 0%, #27272a) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.coupon-info {
    /* Edler, leicht warmer/goldener Touch für die Infobox statt reines Grau */
    background: rgba(217, 119, 6, 0.06) !important;
    border: 1px dashed rgba(217, 119, 6, 0.4) !important;
    border-radius: 0 !important;
    color: #fbbf24 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    letter-spacing: 1px !important;
    padding: 15px !important;
    margin-top: 1.5rem !important;
    text-transform: uppercase;
}