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

body {
    font-family: Arial, sans-serif;
    background: #08090d;
    color: white;
    overflow: hidden;
}

/* LOADING */

#loadingScreen {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle at center, #171b2b, #08090d 70%);
    z-index: 10;
}

.loading-card {
    width: 85%;
    max-width: 420px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 60px;
}

.logo span {
    color: #638bff;
}

.status {
    font-size: 10px;
    letter-spacing: 3px;
    color: #728cff;
    margin-bottom: 18px;
}

.loading-card h1 {
    font-size: 27px;
    margin-bottom: 12px;
}

.loading-card p {
    font-size: 13px;
    color: #858b9b;
    line-height: 1.6;
    margin-bottom: 35px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aeb5c8;
    margin-bottom: 12px;
}

#percentage {
    color: white;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 5px;
    border-radius: 20px;
    background: #252a38;
    overflow: hidden;
}

#progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #456cff, #91a5ff);
    border-radius: 20px;
    transition: width .08s linear;
}

.footer {
    margin-top: 55px;
    font-size: 9px;
    letter-spacing: 2px;
    color: #555d70;
}

/* JUMPSCARE */

#scareScreen {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #080000;
    z-index: 20;
}

#scareScreen.active {
    display: flex;
    animation: screenFlash .12s infinite;
}

.red-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, transparent 5%, #650000 75%, #120000 100%);
    opacity: .9;
}

.scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        transparent 0px,
        rgba(255, 0, 0, .08) 2px,
        transparent 4px
    );
    z-index: 3;
}

.scare-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 20px;
    animation: shake .12s infinite;
}

.warning {
    color: #ff0000;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 20px;
    animation: blink .3s infinite;
}

.hacker-image {
    width: min(75vw, 340px);
    height: min(48vh, 370px);
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) contrast(1.5) brightness(.65);
    border: 3px solid #ff0000;
    box-shadow:
        0 0 20px red,
        0 0 70px #ff0000;
    animation: imageGlitch .2s infinite;
}

.glitch {
    font-size: clamp(28px, 8vw, 55px);
    font-weight: 1000;
    color: white;
    margin-top: 25px;
    text-shadow: 4px 0 red, -4px 0 #700000;
    animation: glitchText .15s infinite;
}

.danger-text {
    color: #ff4545;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-top: 12px;
}

.terminal {
    margin: 25px auto;
    max-width: 300px;
    text-align: left;
    font-family: monospace;
    font-size: 11px;
    line-height: 1.9;
    color: #ff3333;
    background: rgba(0, 0, 0, .65);
    padding: 12px;
    border-left: 3px solid red;
}

.bottom-text {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 5px;
    color: white;
    animation: blink .4s infinite;
}

#audioNotice {
    position: absolute;
    bottom: 15px;
    z-index: 5;
    font-size: 10px;
    color: white;
    letter-spacing: 2px;
    opacity: .8;
}

/* ANIMATIONS */

@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(3px, -2px); }
    50% { transform: translate(-3px, 2px); }
    75% { transform: translate(2px, 3px); }
    100% { transform: translate(-2px, -3px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .1; }
}

@keyframes screenFlash {
    0%, 100% { background-color: #100000; }
    50% { background-color: #390000; }
}

@keyframes imageGlitch {
    0% { transform: translate(0); }
    25% { transform: translate(3px, -2px); }
    50% { transform: translate(-3px, 2px); }
    75% { transform: translate(2px, 1px); }
    100% { transform: translate(0); }
}

@keyframes glitchText {
    0% { transform: translate(0); }
    25% { transform: translate(3px, 0); }
    50% { transform: translate(-3px, 0); }
    75% { transform: translate(0, 2px); }
    100% { transform: translate(0); }
}

@media (max-height: 650px) {
    .hacker-image {
        height: 35vh;
    }

    .terminal {
        margin: 12px auto;
        line-height: 1.5;
    }

    .glitch {
        margin-top: 12px;
    }
}
