:root {
    --bsod-blue: #0078D7;
    --terminal-black: #0c0c0c;
    --terminal-green: #0f0;
    --love-red: #ff4d4d;
    --white: #fff;
}

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

body {
    font-family: 'VT323', monospace;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background-color: var(--terminal-black);
    color: var(--white);
    font-size: 20px; /* Base size */
}

/* Screen Management */
.screen {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.screen.active {
    display: flex;
}

/* SCREEN 1: BSOD */
#bsod {
    background-color: var(--bsod-blue);
    text-align: left;
    align-items: flex-start; /* BSOD style */
    padding: 10% 15%;
}

.bsod-content {
    max-width: 800px;
}

#bsod h1 {
    font-size: 10rem;
    line-height: 1;
    margin-bottom: 2rem;
}

#bsod h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background-color: var(--white);
    color: var(--bsod-blue);
    padding: 0 5px;
    display: inline-block;
}

.console-output {
    margin: 2rem 0;
    font-family: monospace;
    opacity: 0.8;
}

.actions {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
}

.retro-btn {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 1rem 2rem;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.1s;
    text-transform: uppercase;
}

.retro-btn:hover {
    background: var(--white);
    color: var(--bsod-blue);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.retro-btn.secondary {
    opacity: 0.5;
    border-style: dashed;
}

.retro-btn.secondary:hover {
    /* The running away logic is in JS, but if they manage to hover... */
    cursor: not-allowed;
    background: red;
    border-color: red;
    color: white;
}

.small-text {
    margin-top: 3rem;
    font-size: 1rem;
    opacity: 0.6;
}

/* SCREEN 2: BOOT */
#boot {
    background-color: var(--terminal-black);
    color: var(--terminal-green);
    align-items: flex-start;
    padding: 2rem;
    justify-content: flex-start;
}

.boot-log {
    width: 100%;
    font-family: monospace;
    margin-bottom: 2rem;
}

.log-line {
    margin-bottom: 0.2rem;
}

.progress-container {
    width: 100%;
    height: 30px;
    border: 2px solid var(--terminal-green);
    margin-top: auto;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 100%;
    background-color: var(--terminal-green);
    width: 0%;
    transition: width 0.1s linear;
}

/* SCREEN 3: SUCCESS */
#success {
    background-color: #ffb6c1; /* Pastel pink */
    color: #d10056;
    text-align: center;
}

.success-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#success h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--love-red);
}

.details {
    margin-top: 2rem;
    font-size: 1.5rem;
    text-align: left;
    background: #fff0f5;
    padding: 1.5rem;
    border-radius: 10px;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Glitch Effect for Error Text */
.glitch {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #bsod h1 { font-size: 6rem; }
    #bsod { padding: 5%; }
    .actions { flex-direction: column; gap: 1rem; }
    #success h1 { font-size: 3rem; }
}
