/* Minimal functional styling for Phase 0 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    caret-color: transparent;
    user-select: none;
}

body:focus {
    outline: none;
}

.screen {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hidden {
    display: none !important;
}

/* Instructions */
.instructions {
    text-align: left;
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.instructions p {
    margin: 0.5rem 0;
}

.instructions hr {
    border: none;
    border-top: 1px solid #444;
    margin: 1rem 0;
}

button {
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
}

button:hover {
    background: #3a8eef;
}

button:disabled {
    background: #555;
    cursor: not-allowed;
}

/* Demographics Form */
.demographics-form {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: left;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #444;
    border-radius: 4px;
    background: #333;
    color: #fff;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #4a9eff;
}

/* Loading */
.progress-container {
    width: 300px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    margin: 1rem auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #4a9eff;
    width: 0%;
    transition: width 0.2s;
}

/* Game */
#game-screen {
    cursor: none;
}

#stimulus-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 50px;
}

#trial-counter {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

#stimulus {
    max-width: 800px;
    max-height: 800px;
    object-fit: contain;
    background: #000;
    outline: 1px solid #666;
    transition: outline-color 0.05s;
}

#stimulus.feedback-correct {
    outline: 3px solid #33cc33;
}

#stimulus.feedback-incorrect {
    outline: 3px solid #cc3333;
}

#fixation {
    font-size: 72px;
    color: #fff;
}


/* Results */
#results-content {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: left;
}

#results-content p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

#results-content .score-label {
    color: #888;
}

#results-content .score-value {
    font-weight: bold;
    color: #4a9eff;
}
