:root {
    --bg-core: #0a0b0d;
    --bg-surface: #15191d;
    --primary: #f59e0b;
    --primary-glow: rgba(245, 158, 11, 0.2);
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-core);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05), transparent);
}

.container {
    width: 90%;
    max-width: 600px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.container::before {
    content: "MODULE // 01 // ANALYSIS_MODE";
    position: absolute;
    top: -24px;
    left: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    text-decoration: none;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    transition: 0.3s;
}

.back-link:hover {
    color: var(--primary);
}

h1 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: -1px;
    border-left: 4px solid var(--primary);
    padding-left: 16px;
}

#game {
    text-align: center;
}

#question {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 500;
    line-height: 1.4;
}

.options {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

.vs {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.5;
}

button {
    flex: 1;
    padding: 24px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

button:hover:not(:disabled) {
    background: var(--primary-glow);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Results */
#results {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.result-bar {
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.result-a {
    background: var(--primary);
    width: 0%;
    transition: width 1s ease-out;
}

.result-b {
    background: #334155;
    width: 0%;
    transition: width 1s ease-out;
}

.result-percents {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--primary);
}

/* Comments */
#comments {
    margin-top: 40px;
}

#comment-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    text-align: left;
}

.comment {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    border-left: 2px solid var(--border);
}

.comment-form {
    display: flex;
    gap: 10px;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    color: white;
    border-radius: 4px;
    font-family: inherit;
}

#comment-submit {
    flex: none;
    width: auto;
    padding: 12px 24px;
    font-size: 0.9rem;
    background: var(--primary);
    color: var(--bg-core);
}

.hidden {
    display: none;
}