/* BODY */
body {
    background: #0a0a0a;
    color: #e7e7e7;
    margin: 0;
    font-family: "Inter", sans-serif;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.startup-body { background: #0a0a0a; }
.startup-center { text-align: center; }

/* SCREENS */
.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.visible { display: flex; animation: fadeIn 0.6s forwards; }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }

/* WINDOW */
.window {
    width: 60%;
    height: 65%;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(255,255,255,0.05);
}

.titlebar {
    width: 100%;
    height: 35px;
    background: #1c1c1c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    color: #c2c2c2;
}

/* THUMBNAILS */
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 120px);
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.thumb {
    width: 120px;
    height: 120px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.thumb.loading::before {
    content: "Loading…";
    font-size: 0.8em;
    color: #888;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* GLITCH THUMB EFFECT */
.thumb.glitch::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("img/glitch1.png") center/cover no-repeat;
    mix-blend-mode: screen;
    opacity: 0.4;
    animation: glitchAnim 0.25s steps(2) infinite;
}

@keyframes glitchAnim {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 2px); }
    40% { transform: translate(3px, -2px); }
    60% { transform: translate(-2px, -3px); }
    80% { transform: translate(2px, 3px); }
    100% { transform: translate(0); }
}

/* POPUP */
.popup {
    position: absolute;
    top: 15%;
    background: #1a1a1a;
    border: 2px solid #ff275b;
    padding: 20px;
    border-radius: 10px;
    font-size: 1.1em;
    width: 350px;
    display: none;
}

/* GLITCH TEXT */
.glitch {
    position: relative;
    color: white;
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.7;
}

.glitch::before { color: #ff005e; animation: glitch1 0.2s infinite; }
.glitch::after { color: #00f7ff; animation: glitch2 0.2s infinite; }

@keyframes glitch1 { 0% {transform: translate(2px,-2px);}50%{transform: translate(-2px,2px);}100%{transform: translate(2px,1px);} }
@keyframes glitch2 { 0% {transform: translate(-2px,1px);}50%{transform: translate(2px,-1px);}100%{transform: translate(-1px,-2px);} }

/* FINAL */
#finalText {
    font-size: 4em;
    color: #ff2a78;
    font-weight: bold;
}

/* SCREEN SHAKE */
@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(4px, -4px); }
    50% { transform: translate(-4px, 4px); }
    75% { transform: translate(4px, 4px); }
    100% { transform: translate(0, 0); }
}
