/* Основные стили игры */
.cyber-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

/* Шапка */
.cyber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cyber-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #00f2ff;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.back-button {
    align-self: flex-start;
    margin: 0;
   
    max-width: 200px;
}

/* Карточка контента */
.cyber-card {
    flex-grow: 1;
    background: rgba(23, 23, 56, 0.8);
    border: 1px solid #00f2ff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
    transition: opacity 0.5s;
}

.content-title {
    color: #00f2ff;
    font-size: 1.5rem;
    margin-top: 0;
}

.content-text {
    flex-grow: 1;
    line-height: 1.6;
    margin: 20px 0;
}

/* Кнопки выбора */
.cyber-choices {
    display: flex;
    gap: 20px; /* */ 
    margin-top: auto;
}

.cyber-button {
    flex: 1;
    padding: 15px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.cyber-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fake {
    background: rgba(255, 45, 85, 0.2);
    color: #ff2d55;
    border: 1px solid #ff2d55;
}

.true {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.cyber-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.4);
}

/* Всплывающее сообщение */
.message-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 20, 40, 0.9);
    border: 2px solid;
    border-radius: 10px;
    padding: 25px 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    text-align: center;
    z-index: 1000;
    max-width: 85%;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
    line-height: 1.6;
}

.message-popup.show {
    opacity: 1;
}

.message-popup.correct {
    border-color: #00ff88;
    color: #00ff88;
    background: rgba(0, 30, 15, 0.9);
}

.message-popup.incorrect {
    border-color: #ff2d55;
    color: #ffcc00;
    background: rgba(30, 0, 10, 0.9);
}

.message-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

/* Конец игры */
.game-end {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.game-end.show {
    display: flex;
    animation: fadeIn 0.5s;
}

.game-end h2 {
    font-family: 'Orbitron', sans-serif;
    color: #00f2ff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.game-end p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 80%;
}

.restart-btn {
    padding: 15px 30px;
    background: rgba(0, 242, 255, 0.2);
    color: #00f2ff;
    border: 1px solid #00f2ff;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.restart-btn:hover {
    background: rgba(0, 242, 255, 0.4);
    transform: translateY(-3px);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .cyber-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cyber-choices {
        flex-direction: column;
    }
    
    .cyber-title {
        font-size: 1.5rem;
    }
    
    .message-popup {
        font-size: 1rem;
        padding: 15px 20px;
    }
    
    .game-end h2 {
        font-size: 2rem;
    }
    
    .game-end p {
        font-size: 1.2rem;
    }
    .cyber-container {
        padding: 10px;
    }
    
    .cyber-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 10px;
    }
    
    .back-button {
        align-self: flex-start;
        margin-bottom: 10px;
    }
    
    .cyber-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .cyber-card {
        margin: 15px 0;
        padding: 20px 15px;
        min-height: auto;
    }
    
    .content-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .content-text {
        font-size: 1rem;
        line-height: 1.5;
        max-height: 300px;
        overflow-y: auto;
        margin-bottom: 20px;
        padding: 10px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 5px;
    }
    
     .cyber-choices {
        flex-direction: column;
        gap: 12px;
        position: sticky;
        bottom: 0; /* Добавлено значение позиционирования */
        background: var(--background-dark);
        padding: 15px;
        margin: 0 -15px -20px;
        border-top: 1px solid var(--accent-color);
        z-index: 100; /* Добавлен z-index для уверенности */
    }
    
    .cyber-button.fake, 
    .cyber-button.true {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .message-popup {
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
    }
    
    .game-end {
        padding: 30px 20px;
        width: 90%;
    }
    
    .restart-btn {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
}
@media (max-width: 480px) {
    .cyber-title {
        font-size: 1.5rem;
    }
    
    .content-title {
        font-size: 1.2rem;
    }
    
    .content-text {
        font-size: 0.95rem;
        max-height: 250px;
    }
    
    .cyber-stats {
        flex-direction: column;
        gap: 8px;
    }
}

