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

body {
    background: #000;
    color: #0f0;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
}

#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.login-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    background: rgba(0, 0, 0, 0.95);
    padding: 60px;
    border: 2px solid #0f0;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.5);
}

.matrix-title {
    color: #0f0;
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    letter-spacing: 8px;
}

.tagline {
    color: #0f0;
    margin-bottom: 10px;
    font-size: 16px;
    letter-spacing: 2px;
}

.rules {
    color: #0a0;
    margin-bottom: 25px;
    font-size: 12px;
}

.login-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #0f0;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    text-align: center;
}

.login-form input::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

.login-form button {
    width: 100%;
    padding: 15px;
    background: #0f0;
    color: #000;
    border: none;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.login-form button:hover {
    background: #0c0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

.hint {
    color: #080;
    margin-top: 20px;
    font-size: 11px;
}

.terminal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 85%;
    max-width: 1000px;
    height: 80vh;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #0f0;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    display: none;
    flex-direction: column;
}

.terminal-header {
    background: #0f0;
    color: #000;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px 6px 0 0;
}

.terminal-title {
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 2px;
}

.terminal-buttons span {
    margin-left: 15px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

.terminal-buttons span:hover {
    color: #300;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    color: #0f0;
    font-size: 14px;
    line-height: 1.8;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #0f0;
}

.prompt {
    color: #0f0;
    margin-right: 10px;
    font-weight: bold;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
}

.command-line { color: #0c0; font-weight: bold; }
.output-line { color: #0f0; margin: 5px 0; }
.error-line { color: #f00; }

/* Tetris Overlay */
#tetrisOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.98);
}

#tetrisOverlay iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#tetrisClose {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1001;
    background: #0f0;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #0f0; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #0c0; }

.terminal-input:focus {
    caret-color: #0f0;
}
