/* --- CRASH GAME STYLES --- */
.crash-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    height: 100%;
}

.crash-display {
    position: relative;
    width: 100%;
    height: 220px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.crash-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.crash-multiplier-text {
    position: relative;
    z-index: 2;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
    /* Чтобы цифры не прыгали */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.crash-multiplier-text.crashed {
    color: var(--danger);
    text-shadow: 0 0 20px rgba(255, 82, 82, 0.6);
}

.crash-multiplier-text.success {
    color: var(--success);
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

.bet-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.bet-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 4px;
}

.bet-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font: var(--text-h2);
    text-align: center;
    outline: none;
}

.bet-input-group button {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-8) var(--space-12);
    cursor: pointer;
    transition: background 0.2s;
}

.bet-input-group button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.history-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.history-scroll::-webkit-scrollbar {
    display: none;
}

.history-badge {
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font: var(--text-caption);
    font-weight: 600;
    white-space: nowrap;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}

.history-badge.good {
    color: var(--success);
    border-color: rgba(76, 175, 80, 0.3);
}

.history-badge.bad {
    color: var(--danger);
    border-color: rgba(255, 82, 82, 0.3);
}

/* --- ЭФИМЕРНЫЕ ФРАГМЕНТЫ --- */
.ephemeral-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-12) var(--space-16);
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.1), rgba(87, 171, 201, 0.1));
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: var(--radius-md);
}

.ephemeral-icon {
    color: #b088f9;
    /* Неоново-фиолетовый для фрагментов */
    text-shadow: 0 0 10px rgba(176, 136, 249, 0.6);
}