:root {
    --mars-orange: #ff5e00;
    --neon-green: #39ff14;
    --danger-red: #ff3131;
}

body {
    background: radial-gradient(circle, #2c1108 0%, #000 100%);
    color: white;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* Кнопка в кутку екрана */
#screen-pause-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 3000;
    background: rgba(255, 94, 0, 0.2);
    border: 2px solid var(--mars-orange);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

#game-window {
    width: 90%;
    max-width: 550px;
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid var(--mars-orange);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
}

#status-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    color: var(--mars-orange);
    font-weight: bold;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* Модальне вікно підказки */
#hint-modal {
    position: fixed;
    bottom: -100%; left: 0; width: 100%; height: 75%;
    background: #0b0d17;
    border-top: 4px solid var(--mars-orange);
    border-radius: 40px 40px 0 0;
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
    padding: 60px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hint-modal.active { bottom: 0; }

/* ХРЕСТИК ЗБОКУ */
#close-hint {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 45px;
    cursor: pointer;
    color: var(--mars-orange);
}

#hint-media img {
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
}

input {
    background: #1a1a1a;
    border: 1px solid var(--mars-orange);
    color: white;
    padding: 15px;
    border-radius: 12px;
    width: 80%;
    margin: 20px 0;
    text-align: center;
}

button {
    background: var(--mars-orange);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

#error-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 4000;
}

.error-box {
    background: #222;
    padding: 30px;
    border: 2px solid var(--danger-red);
    border-radius: 20px;
    text-align: center;
}

/* Екран програшу */
#game-over-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(40, 0, 0, 0.95);
    display: none; /* Сховано за замовчуванням */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    text-align: center;
}

#game-over-screen h1 {
    font-size: 4em;
    color: var(--danger-red);
    text-shadow: 0 0 20px black;
    margin-bottom: 10px;
}

#game-over-screen p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

/* Решта твоїх стилів... */
#screen-pause-btn {
    position: fixed;
    top: 20px; left: 20px; z-index: 3000;
    background: rgba(255, 94, 0, 0.2);
    border: 2px solid var(--mars-orange);
    color: white; padding: 10px 20px; border-radius: 8px; cursor: pointer;
}

#close-hint {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 45px; cursor: pointer; color: var(--mars-orange);
}

#hint-modal {
    position: fixed;
    bottom: -100%; left: 0; width: 100%; height: 75%;
    background: #0b0d17; border-top: 4px solid var(--mars-orange);
    border-radius: 40px 40px 0 0; transition: 0.6s ease-in-out;
    z-index: 1000; padding: 60px 20px; text-align: center;
}
#hint-modal.active { bottom: 0; }
