/* ============================================
   YIKINTI MÄ°NÄ°GAME
   Harita/menÃ¼ dili: lacivert cam panel, altÄ±n + turkuaz aksan
   ============================================ */

.wreckage-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(90% 60% at 50% 18%, rgba(15, 32, 54, 0.5) 0%, transparent 70%),
        rgba(3, 7, 13, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.wreckage-panel {
    --cm-gold: #f3b53a;
    --cm-gold-light: #ffd97a;
    --cm-cyan: #54d9c9;
    --cm-text: #f3ecd8;
    --cm-muted: #8492ad;
    --cm-line: rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    width: 344px;
    max-width: 94%;
    padding: 13px 15px 15px;
    border-radius: 18px;
    background:
        radial-gradient(120% 55% at 50% 0%, rgba(243, 181, 58, 0.09) 0%, transparent 56%),
        linear-gradient(180deg, rgba(17, 28, 44, 0.98) 0%, rgba(7, 12, 21, 0.99) 100%);
    border: 1px solid rgba(243, 181, 58, 0.22);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.62),
        0 0 44px rgba(84, 217, 201, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
    animation: wreckagePanelIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wreckagePanelIn {
    from { transform: translateY(14px) scale(0.985); }
    to { transform: translateY(0) scale(1); }
}

.wreckage-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wreckage-desc {
    margin: 0;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--cm-muted);
}

.wreckage-canvas-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--cm-line);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.45);
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    box-sizing: border-box;
}

.wreckage-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
}

.wreckage-progress-section {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
}

.wreckage-progress-bar-bg {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.wreckage-progress-bar-fill {
    width: 0;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #54d9c9, #f3b53a);
    box-shadow: 0 0 10px rgba(243, 181, 58, 0.4);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wreckage-progress-text {
    min-width: 38px;
    text-align: right;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.3px;
    color: var(--cm-gold-light);
    font-variant-numeric: tabular-nums;
}

.btn.cm-btn-ghost.wreckage-cancel-btn {
    width: 100%;
    margin-top: 2px;
}

/* SÃ¶zleÅŸme modu sÃ¼re kÄ±sÄ±tÄ± */
.wreckage-timer {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 7px;
    background: rgba(84, 217, 201, 0.12);
    border: 1px solid rgba(84, 217, 201, 0.3);
    color: #9fe7de;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.wreckage-timer.is-urgent {
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fca5a5;
    animation: wreckageTimerPulse 0.9s ease-in-out infinite;
}

.wreckage-progress-text.is-failed { color: #fca5a5; }

@keyframes wreckageTimerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
