.game-terminal .toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 20, 30, 0.9);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.game-terminal .toast-container.show {
    opacity: 1;
}

.game-terminal .game-over-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(10, 5, 20, 0.9); flex-direction: column;
    justify-content: center; align-items: center; z-index: 100;
    display: none; backdrop-filter: blur(4px); border-radius: 8px;
}

.game-terminal .game-over-text {
    color: var(--danger-color); font-size: 36px; font-weight: bold;
    margin-bottom: 10px; letter-spacing: 5px; text-shadow: 0 0 10px var(--danger-color);
}

.game-terminal .restart-btn {
    background: transparent; color: var(--accent-color); border: 1px solid var(--accent-color);
    padding: 12px 30px; font-family: var(--font-mono); font-size: 16px;
    cursor: pointer; text-transform: uppercase; transition: all 0.2s;
    letter-spacing: 2px; margin-top: 20px;
}

.game-terminal .restart-btn:hover { background: rgba(0, 255, 255, 0.2); box-shadow: 0 0 15px rgba(0, 255, 255, 0.4); }

.game-terminal .cell.clearing {
    position: relative;
    z-index: 2;
    background-color: var(--cell-empty);
    box-shadow: none;
    overflow: visible;
    transition: none;
}

.game-terminal .cell.clearing::before,
.game-terminal .cell.clearing::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    pointer-events: none;
    transform-origin: center;
    animation-duration: var(--clear-duration, 420ms);
    animation-delay: var(--clear-delay, 0ms);
    animation-fill-mode: both;
}

.game-terminal .cell.clearing::after {
    background-color: #fff;
    animation-name: clear-core;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.game-terminal .cell.clearing::before {
    border: 2px solid #fff;
    animation-name: clear-wave;
    animation-timing-function: ease-out;
}

@keyframes clear-core {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 1; }
}

@keyframes clear-wave {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.85); opacity: 0; }
}
