#equation-box {
    text-align: center;
    margin: 1.5rem 0 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
}

#equation-text {
    font-size: 1.4rem;
    font-weight: 500;
    font-family: 'Georgia', serif;
}

#delta-h {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 4px;
}

#perturbation-box {
    text-align: center;
    margin: 0.5rem 0 1rem;
    padding: 10px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    font-size: 1.1rem;
}

#bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    height: 120px;
    margin: 1rem 0;
    padding: 0 1rem;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    max-width: 80px;
}

.bar {
    width: 100%;
    min-width: 40px;
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
    position: relative;
}

.bar-reactant {
    background-color: #6153cc;
}

.bar-product {
    background-color: #51a3a3;
}

.bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}

.bar-value.visible {
    opacity: 1;
}

.bar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    text-align: center;
    word-break: break-word;
}

#explanation-text {
    text-align: center;
    font-size: 0.95rem;
    color: #495057;
    margin: 0.5rem 0;
    min-height: 1.5em;
}

#guess-left, #guess-none, #guess-right {
    min-width: 120px;
    font-size: 0.95rem;
}