/* Player night panel – premium dark UI (night only) */
#panel-content .night-welcome-stage,
#panel-content .night-waiting-stage,
#panel-content .night-action-stage,
#panel-content .night-sleep-stage {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: linear-gradient(155deg, rgba(14, 18, 36, 0.98) 0%, rgba(6, 8, 18, 0.99) 50%, rgba(4, 5, 12, 1) 100%) !important;
    border: 1px solid rgba(241, 196, 15, 0.28) !important;
    border-radius: 24px !important;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 40px rgba(155, 89, 182, 0.12) !important;
    padding: 22px 18px !important;
    margin: 12px 0 !important;
    font-family: iran, Vazirmatn, Tahoma, sans-serif !important;
}

#panel-content .night-welcome-stage::before,
#panel-content .night-action-stage::before {
    content: '';
    position: absolute;
    inset: -40% -20%;
    background: conic-gradient(from 120deg, transparent, rgba(241, 196, 15, 0.06), transparent, rgba(155, 89, 182, 0.08), transparent);
    animation: mafiaNightShimmer 14s linear infinite;
    pointer-events: none;
    z-index: 0;
}

#panel-content .night-welcome-stage > *,
#panel-content .night-action-stage > * {
    position: relative;
    z-index: 1;
}

@keyframes mafiaNightShimmer {
    to { transform: rotate(360deg); }
}

#panel-content .night-welcome-stage h2,
#panel-content .night-waiting-stage h2,
#panel-content .night-action-stage h2 {
    background: linear-gradient(90deg, #f1c40f, #e67e22, #f1c40f) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    margin-bottom: 12px !important;
    animation: mafiaNightTitleGlow 4s ease-in-out infinite alternate;
}

@keyframes mafiaNightTitleGlow {
    from { filter: drop-shadow(0 0 8px rgba(241, 196, 15, 0.25)); }
    to { filter: drop-shadow(0 0 16px rgba(241, 196, 15, 0.45)); }
}

#panel-content .night-seat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(241, 196, 15, 0.12);
    border: 1px solid rgba(241, 196, 15, 0.35);
    color: #f1c40f;
    font-weight: 800;
    font-size: 13px;
}

#panel-content .night-action-timer {
    font-size: 2.4rem !important;
    font-weight: 900 !important;
    color: #f1c40f !important;
    text-shadow: 0 0 20px rgba(241, 196, 15, 0.4);
    font-variant-numeric: tabular-nums;
}

#panel-content .night-submit-btn,
#panel-content .night-ready-btn {
    background: linear-gradient(135deg, #f1c40f, #e67e22) !important;
    color: #1a1200 !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 14px 28px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 24px rgba(241, 196, 15, 0.35) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

#panel-content .night-submit-btn:active,
#panel-content .night-ready-btn:active {
    transform: scale(0.98);
}

#player-consult-chat-box {
    border-radius: 18px !important;
    border: 1px solid rgba(231, 76, 60, 0.35) !important;
    box-shadow: 0 12px 32px rgba(231, 76, 60, 0.15) !important;
    background: linear-gradient(160deg, rgba(20, 10, 18, 0.95), rgba(10, 8, 16, 0.98)) !important;
}
