/* --- Prompt --- */
#prompt-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin: 0.5em 0;
    text-align: center;
}

/* --- Molecule Display Area --- */
#molecule-area {
    position: relative;
    width: 450px;
    height: 350px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    margin: 1em auto;
    user-select: none;
    flex-shrink: 0;
}

#mol-container {
    width: 100%;
    height: 100%;
}

#mol-container svg {
    width: 100%;
    height: 100%;
}

#selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* --- Atom hit targets (invisible, inside overlay) --- */
.atom-hit-target {
    fill: transparent;
    stroke: none;
    pointer-events: all;
    cursor: pointer;
}

.atom-hit-target:hover {
    fill: rgba(42, 157, 143, 0.12);
}

/* --- Selection indicators --- */
.selected-atom {
    fill: rgba(97, 83, 204, 0.18);
    stroke: #6153cc;
    stroke-width: 2;
    pointer-events: none;
}

/* --- Post-check feedback indicators --- */
.atom-correct {
    fill: rgba(42, 157, 143, 0.2);
    stroke: #2a9d8f;
    stroke-width: 2.5;
    pointer-events: none;
}

.atom-missed {
    fill: none;
    stroke: #d32f2f;
    stroke-width: 2.5;
    stroke-dasharray: 5 3;
    pointer-events: none;
}

.atom-wrong {
    fill: rgba(211, 47, 47, 0.15);
    stroke: #d32f2f;
    stroke-width: 2.5;
    pointer-events: none;
}

/* --- Controls --- */
#game-controls {
    margin: 1em 0;
    text-align: center;
}

#check-btn {
    background-color: #2a9d8f;
    min-width: 140px;
}

#skip-btn {
    background-color: #bbc8ca;
    min-width: 100px;
}

#skip-btn.next-ready {
    background-color: #333;
}

/* --- Feedback --- */
#feedback-message {
    min-height: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0.5em 0;
}

/* --- Explanation Area --- */
#explanation-area {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    margin: 1em 0;
    padding: 1em;
    background: #f8f8f8;
    border-radius: 8px;
}

#explanation-area.visible {
    display: flex;
}

.explanation-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5em;
    text-align: center;
}

.explanation-card svg {
    width: 200px;
    height: 150px;
}

.explanation-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3em;
}

/* --- Responsive --- */
@media (max-width: 500px) {
    #molecule-area {
        width: 100%;
        height: 300px;
    }
}
