@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background: #000;
    color: #00FF41;
    font-family: 'Press Start 2P', monospace;
    cursor: default;
    position: relative;
}

/* WebGL фон (на всех страницах) */
#shader-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Шум-эффект (screenGlass.js) */
#glassFX {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Главный canvas для index.html */
#indexCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: auto;
}

/* Canvas для терминала */
#terminalCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: auto;
}

/* Изгиб экрана (последний слой) */
#crtOverlayCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

/* Сканлайн-эффект (опционально) */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 255, 65, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 100;
}

/* Скрытый класс (если понадобится) */
.hidden {
    display: none !important;
}

/* Остальные стили для terminal.html (оставлены) */
#terminal {
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.9);
}

.output {
    margin: 5px 0;
    white-space: pre-wrap;
    line-height: 1.4;
}

.command {
    color: #FFFFFF;
    margin: 5px 0;
    line-height: 1.4;
}

.input-line {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.prompt {
    color: #00FF41;
}

.cmd {
    color: #FFFFFF;
}

.cursor {
    animation: blink 1s step-end infinite;
    background-color: #00FF41;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* WebGL-изгиб для index.html (самый верхний слой) */
#crtOverlayIndex {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}

/* Убираем старый glassFX (если остался) */
#glassFX {
  display: none !important;
}
