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

body {
    background: #000;
    color: #00ff41;
    font-family: 'Courier New', Courier, monospace;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.25;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 750px;
    width: 100%;
    padding: 50px 60px;
    background: rgba(0, 10, 0, 0.75);
    border: 1px solid #00ff4144;
    box-shadow: 0 0 60px #00ff4111, inset 0 0 30px #00ff4108;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    text-align: center;
    transition: all 0.1s ease;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.2);
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.05s;
    mix-blend-mode: screen;
}
.glitch-overlay.active {
    opacity: 1;
}

.title {
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 0 30px #00ff41;
    letter-spacing: 6px;
    color: #00ff41;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: inherit;
}
.title .error-text {
    color: #ff2244;
    text-shadow: 0 0 30px #ff2244;
    display: none;
}

.sub {
    margin: 20px 0 20px;
    font-size: 1.1rem;
    color: #88dd99;
    font-weight: 300;
    min-height: 3.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.sub .highlight {
    color: #ffcc00;
    text-shadow: 0 0 15px #ffcc00;
}

.progress-wrapper {
    width: 100%;
    margin: 15px 0;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #44aa55;
    margin-bottom: 6px;
    font-family: inherit;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: #0a1a0a;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #00ff4133;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff41, #88ff99);
    border-radius: 4px;
    box-shadow: 0 0 20px #00ff4166;
    transition: width 0.15s linear;
}

.status-line {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #336644;
    border-top: 1px solid #00ff4122;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 2.5em;
    font-family: inherit;
}
.status-line .blink {
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.reset-btn {
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

@media (max-width: 600px) {
    .container { padding: 30px 20px; min-height: 380px; }
    .title { font-size: 2rem; min-height: 3.5rem; }
}