@font-face {
    font-family: 'Monocraft';
    src: url('Monocraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Game canvas ──────────────────────────────────────────────────── */
#game {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

/* ── Corruption overlay ───────────────────────────────────────────── */
#corruption {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    background: transparent;
}

/* ── TV static ────────────────────────────────────────────────────── */
#static {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
    display: none;
}

/* ── Void canvas ──────────────────────────────────────────────────── */
#void {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    display: none;
}

/* ── Text overlay ─────────────────────────────────────────────────── */
#text-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
}
#text-overlay.active {
    opacity: 1;
}

#line {
    font-family: 'Monocraft', monospace;
    font-size: clamp(14px, 2.2vw, 26px);
    color: #00e5ff;
    text-align: center;
    max-width: 80vw;
    line-height: 1.6;
    opacity: 0;
    transition: none;
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         0   -2px 0 #000,
         0    2px 0 #000,
        -2px  0   0 #000,
         2px  0   0 #000,
        0 0 8px rgba(0, 229, 255, 0.3),
        0 0 30px rgba(0, 229, 255, 0.1);
    letter-spacing: 0.04em;
}

/* ── Text effects (same as hatch site) ────────────────────────────── */
.blue {
    color: #00e5ff;
    text-shadow:
        -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
        0 -2px 0 #000, 0 2px 0 #000, -2px 0 0 #000, 2px 0 0 #000,
        0 0 12px rgba(0, 229, 255, 0.4), 0 0 30px rgba(0, 229, 255, 0.15);
}

.red {
    color: #ff2a2a;
    text-shadow:
        -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
        0 -2px 0 #000, 0 2px 0 #000, -2px 0 0 #000, 2px 0 0 #000,
        0 0 12px rgba(255, 42, 42, 0.4), 0 0 30px rgba(255, 42, 42, 0.15);
}

.shake {
    display: inline-block;
    animation: shake 0.08s infinite;
}

@keyframes shake {
    0%  { transform: translate( 1px,  1px); }
    10% { transform: translate(-1px, -2px); }
    20% { transform: translate(-2px,  0px); }
    30% { transform: translate( 2px,  2px); }
    40% { transform: translate( 1px, -1px); }
    50% { transform: translate(-1px,  2px); }
    60% { transform: translate(-2px,  1px); }
    70% { transform: translate( 2px,  1px); }
    80% { transform: translate(-1px, -1px); }
    90% { transform: translate( 1px,  2px); }
    100%{ transform: translate( 1px, -2px); }
}

.bold {
    font-weight: bold;
    letter-spacing: 0.06em;
}
