/* Crash Game — Premium */

.crash-container {
    display: flex;
    flex-direction: row-reverse;
}

.crash-area {
    flex: 1;
    position: relative;
    background: rgba(15, 33, 46, 0.4);
    min-height: 420px;
}

#crashCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.crash-multiplier {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 900;
    color: var(--text-primary);
    pointer-events: none;
    transition: color 0.3s;
    letter-spacing: 2px;
}

.crash-multiplier.crashed {
    color: var(--red-bright);
    animation: crashShake 0.5s ease;
}

.crash-multiplier.flying {
    color: var(--green);
}

@keyframes crashShake {
    0%, 100% { transform: translate(-50%, -50%); }
    20% { transform: translate(-46%, -50%); }
    40% { transform: translate(-54%, -50%); }
    60% { transform: translate(-48%, -50%); }
    80% { transform: translate(-52%, -50%); }
}

.crash-status {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 600;
    pointer-events: none;
    letter-spacing: 0.3px;
}

.crash-controls {
    width: 280px;
    min-width: 280px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(26, 44, 56, 0.5);
    border-right: 1px solid rgba(255,255,255,0.06);
}

.btn-crash {
    background: var(--green);
    color: var(--bg-darkest);
}

.btn-crash.cashout {
    background: var(--accent);
    color: white;
}

/* History */
.crash-history {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
    padding-top: 12px;
}

.crash-history-item {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-round);
    animation: popIn 0.25s ease;
    line-height: 1.2;
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.crash-history-item.green {
    background: var(--green-dim);
    color: var(--green);
}

.crash-history-item.red {
    background: var(--red-dim);
    color: var(--red-bright);
}

.crash-history-item.orange {
    background: var(--accent-dim);
    color: var(--accent);
}
