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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f0f0f0;
    overflow-y: auto;
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin: 20px 0;
}

.mission-brief {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3),
                inset 0 0 20px rgba(255, 0, 0, 0.1);
    position: relative;
    animation: briefAppear 0.5s ease-out;
}

@keyframes briefAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.top-secret {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    color: #ff0000;
    letter-spacing: 8px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.message {
    font-size: 1.3em;
    line-height: 1.8;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    min-height: 200px;
    max-height: 60vh;
    overflow-y: auto;
    white-space: pre-wrap;
    padding-right: 10px;
}

.message::-webkit-scrollbar {
    width: 8px;
}

.message::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.message::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.3);
    border-radius: 4px;
}

.message::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.5);
}

.message::after {
    content: '▊';
    animation: cursor-blink 0.7s infinite;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.message.typing-complete::after {
    content: '';
}

.countdown {
    margin-top: 40px;
    text-align: center;
    font-size: 1.5em;
    color: #ff0000;
    font-weight: bold;
    opacity: 0;
    animation: fadeIn 1s forwards;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.burn-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 0%, rgba(255, 100, 0, 0.3) 30%, rgba(0, 0, 0, 0.9) 70%);
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
}

.burn-overlay.burning {
    animation: burn 3s forwards;
}

@keyframes burn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(3);
        background: radial-gradient(circle, rgba(255, 200, 0, 0.8) 0%, rgba(255, 50, 0, 0.6) 20%, rgba(0, 0, 0, 1) 50%);
    }
}

.mission-brief.burning {
    animation: burnPaper 3s forwards;
}

@keyframes burnPaper {
    0% {
        filter: brightness(1);
        transform: scale(1) rotate(0deg);
    }
    30% {
        filter: brightness(1.5) contrast(1.2);
    }
    60% {
        filter: brightness(0.5) contrast(0.8);
        transform: scale(0.95) rotate(2deg);
    }
    100% {
        filter: brightness(0) contrast(0);
        transform: scale(0.7) rotate(5deg);
        opacity: 0;
    }
}

.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.5s;
}

.start-content {
    text-align: center;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.start-title {
    font-size: 3em;
    font-weight: bold;
    color: #ff0000;
    letter-spacing: 10px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 0, 0, 1);
    }
}

.start-subtitle {
    font-size: 1.3em;
    color: #00ff00;
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.start-button {
    padding: 20px 50px;
    font-family: 'Courier New', monospace;
    font-size: 1.3em;
    font-weight: bold;
    background: rgba(255, 0, 0, 0.2);
    border: 3px solid #ff0000;
    color: #ff0000;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.start-button:hover {
    background: rgba(255, 0, 0, 0.4);
    border-color: #ff3333;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
}

.start-button:hover::before {
    width: 300px;
    height: 300px;
}

.button-text {
    position: relative;
    z-index: 1;
}

.start-screen.hide {
    animation: fadeOut 0.8s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.identity-scan {
    position: relative;
    text-align: center;
    padding: 50px;
}

.scan-line {
    width: 300px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    margin: 0 auto 30px;
    animation: scanMove 1.5s infinite;
}

@keyframes scanMove {
    0%, 100% {
        transform: translateX(-50px);
        opacity: 0.5;
    }
    50% {
        transform: translateX(50px);
        opacity: 1;
    }
}

.identity-text {
    font-size: 1.3em;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
    animation: blink 0.8s infinite;
}

.identity-confirmed {
    text-align: center;
    animation: fadeIn 1s;
}

.confirmed-text {
    font-size: 1.5em;
    color: #00ff00;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    animation: pulse 1.5s infinite;
}

.agent-name {
    font-size: 2.5em;
    font-weight: bold;
    color: #00ff00;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 255, 0, 1);
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 255, 0, 1), 0 0 60px rgba(0, 255, 0, 0.8);
    }
}

@media (max-width: 600px) {
    .mission-brief {
        padding: 20px;
    }

    .top-secret {
        font-size: 1.5em;
        letter-spacing: 4px;
    }

    .message {
        font-size: 1em;
    }

    .countdown {
        font-size: 1.2em;
    }

    .start-title {
        font-size: 2em;
        letter-spacing: 5px;
    }

    .start-subtitle {
        font-size: 1em;
    }

    .start-button {
        padding: 15px 30px;
        font-size: 1em;
    }
}
