:root {
    --bg-color: #111111;
    --text-color: #f4f0ea;
    --border-color: #f4f0ea;
    --accent: #a3e635; /* Creepy neon green */
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

.container {
    text-align: center;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.back-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    text-decoration: none;
    color: var(--bg-color);
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    border: 2px solid var(--border-color);
    padding: 0.5rem 1rem;
    background: var(--text-color);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 100;
}

.back-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--accent);
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 90%;
    max-width: 600px;
    padding: 3rem;
    border: 4px solid var(--border-color);
    background: #1a1a1a;
    box-shadow: 8px 8px 0 var(--border-color);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
}

.subtitle {
    font-size: 1.2rem;
    font-family: 'Space Mono', monospace;
    color: var(--accent);
}

.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
}

.option-btn {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

.option-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--accent);
}

/* Specific styling for the result */
.result-list {
    text-align: left;
    list-style: none;
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    width: 100%;
}

.result-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s forwards;
}

.result-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.result-list li:nth-child(1) { animation-delay: 1s; }
.result-list li:nth-child(2) { animation-delay: 2.5s; }
.result-list li:nth-child(3) { animation-delay: 4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 50;
    gap: 2rem;
}

.analysis-text {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    color: var(--accent);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}
