@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 10px;
    background: #0a0a0a;
    color: #00ff41;
    font-family: 'Fira Code', 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scanline {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.15));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: 640px;
    width: 90%;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 0 8px #00ff41;
    margin: 0 0 8px;
    letter-spacing: 1px;
}

.subtitle {
    color: #888;
    font-size: 12px;
}

.card {
    border: 1px solid #00ff41;
    box-shadow: 0 0 10px rgba(0,255,65,0.15);
    background: #0f0f0f;
    padding: 14px;
}

.success-card {
    border-color: #00ff41;
    box-shadow: 0 0 20px rgba(0,255,65,0.3);
}

.fail-card {
    border-color: #ff0033;
    box-shadow: 0 0 20px rgba(255,0,51,0.3);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 10px rgba(255,0,51,0.2); }
    50% { box-shadow: 0 0 25px rgba(255,0,51,0.5); }
}

.hint {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    border-left: 2px solid #444;
    padding-left: 8px;
}

.question {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    padding: 3px 6px;
    border: 1px solid #1a1a1a;
    transition: border-color 0.2s;
}

.option-label:hover {
    border-color: #00ff41;
}

.option-label input {
    accent-color: #00ff41;
}

.answer-input {
    width: 100%;
    background: #000;
    border: 1px solid #00ff41;
    color: #00ff41;
    font-family: inherit;
    font-size: 13px;
    padding: 6px;
    margin-bottom: 8px;
    outline: none;
}

.answer-input:focus {
    box-shadow: 0 0 8px rgba(0,255,65,0.3);
}

.btn {
    width: 100%;
    background: #000;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-family: inherit;
    font-size: 13px;
    padding: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.btn:hover {
    background: #00ff41;
    color: #000;
}

.btn.retry {
    margin-top: 8px;
    border-color: #ff0033;
    color: #ff0033;
}

.btn.retry:hover {
    background: #ff0033;
    color: #000;
}

.result {
    margin-top: 16px;
}

.success-title {
    color: #00ff41;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.token-box {
    background: #000;
    border: 1px dashed #00ff41;
    padding: 6px;
    font-size: 11px;
    word-break: break-all;
    margin-bottom: 6px;
}

.identity, .score, .msg, .welcome {
    font-size: 13px;
    margin-bottom: 6px;
}

.welcome {
    margin-top: 6px;
    color: #888;
}

.fail-title {
    color: #ff0033;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 0 0 5px rgba(255,0,51,0.5);
}

.taunt {
    color: #ff6688;
    font-size: 12px;
    margin-bottom: 6px;
}
