@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    overflow: hidden;
    font-family: 'VT323', monospace;
    user-select: none;
}

canvas {
    display: block;
    cursor: none;
    /* Свой курсор */
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.menu-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    color: #fff;
}

.menu-screen h1 {
    font-size: 64px;
    margin-bottom: 40px;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-btn {
    padding: 15px 40px;
    font-family: 'VT323', monospace;
    font-size: 32px;
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.menu-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px #fff;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    width: 300px;
}

.setting-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-row label {
    font-size: 24px;
    color: #ccc;
}

input[type=range] {
    width: 100%;
    cursor: pointer;
}

/* BSOD STYLES */
#bsod-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0078d7;
    /* Modern Windows Blue, or use #0000aa for retro */
    color: #fff;
    z-index: 99999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 100px;
    box-sizing: border-box;
}

.bsod-content h1 {
    font-size: 100px;
    margin: 0 0 20px 0;
    font-weight: normal;
}

.bsod-content p {
    font-size: 24px;
    margin-bottom: 20px;
}

.error-box {
    margin: 40px 0;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 800px;
    word-wrap: break-word;
}

#bsod-message {
    font-weight: bold;
    margin-bottom: 10px;
}

#bsod-stack {
    font-size: 14px;
    white-space: pre-wrap;
    opacity: 0.8;
}

.bsod-btn {
    background: #fff;
    color: #0078d7;
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
}

.bsod-btn:hover {
    background: #ddd;
}


/* Tutorial Highlight */
@keyframes tutorialPulse {
    0% {
        box-shadow: 0 0 5px #0f0, inset 0 0 5px #0f0;
        border-color: #0f0;
    }

    50% {
        box-shadow: 0 0 20px #0f0, inset 0 0 10px #0f0;
        border-color: #8f8;
    }

    100% {
        box-shadow: 0 0 5px #0f0, inset 0 0 5px #0f0;
        border-color: #0f0;
    }
}

.tutorial-highlight {
    position: relative;
    z-index: 10000;
    border: 2px solid #0f0 !important;
    animation: tutorialPulse 1.5s infinite ease-in-out;
    box-sizing: border-box;
    pointer-events: auto;
}

/* UI COLLAPSE ANIMATION */
.broken-ui {
    animation: uiCollapse 3s forwards cubic-bezier(0.55, 0.055, 0.675, 0.19);
    pointer-events: none !important;
    transform-origin: center bottom;
}

@keyframes uiCollapse {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    20% {
        transform: translateY(20px) rotate(-2deg); /* Initial shudder */
    }
    100% {
        transform: translateY(120vh) rotate(15deg);
        opacity: 0;
    }
}/* PHOTOSENSITIVITY WARNING */
#warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.warning-content {
    max-width: 600px;
    text-align: center;
    border: 2px solid #f00;
    padding: 40px;
    background: rgba(20, 0, 0, 0.9);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.warning-content h2 {
    color: #f00;
    font-size: 48px;
    margin-top: 0;
    text-shadow: 0 0 10px #f00;
    font-family: 'Press Start 2P', cursive;
}

.warning-content p {
    font-size: 24px;
    line-height: 1.6;
    margin: 30px 0;
    color: #fff;
}

.warning-btn {
    background: #f00;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 24px;
    font-family: 'VT323', monospace;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    text-transform: uppercase;
}

.warning-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px #fff;
}
