/* Vocal tool pages — gold luxury theme */
.tool-page { background: var(--bg-offwhite); }
.tool-header { text-align: center; margin-bottom: 40px; }
.tool-header h1 { font-size: 2.5rem; }
.tool-wrapper {
    background: white; border: 1px solid #eee; border-radius: 8px;
    padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 900px; margin: 0 auto;
}
.tool-wrapper:hover { border-color: var(--gold); }

/* Piano Window */
.kg_piano_window {
    width: 100%; overflow-x: auto; white-space: nowrap;
    background: var(--bg-offwhite); padding: 30px 0 20px 0;
    border-radius: 8px; border: 1px solid #eee;
    position: relative; -webkit-overflow-scrolling: touch; margin-bottom: 20px;
}

.kg_key { display: inline-block; position: relative; vertical-align: top; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }

.kg_white_key {
    width: 44px; height: 180px;
    background: linear-gradient(to bottom, #f0f0f0 0%, #d4d4d4 100%);
    border: 1px solid #000; border-bottom: 6px solid #737373;
    border-radius: 0 0 4px 4px; z-index: 1; margin-right: -1px;
    box-shadow: inset 0 1px 0px #fff; transition: all 0.1s ease-out;
}
.kg_white_key.active {
    transform: translateY(4px); border-bottom-width: 2px;
    background: #a3a3a3; box-shadow: inset 0 2px 5px rgba(0,0,0,0.4);
}

.kg_black_key {
    width: 30px; height: 110px;
    background: linear-gradient(to right, #000, #333, #000);
    position: absolute; margin-left: -15px; z-index: 2;
    border-radius: 0 0 5px 5px; box-shadow: 2px 2px 5px rgba(0,0,0,0.6);
    transition: all 0.1s ease-out;
}
.kg_black_key.active {
    transform: translateY(4px); background: #000;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.kg_label { position: absolute; bottom: 8px; width: 100%; text-align: center; font-size: 10px; font-weight: 800; color: #52525b; pointer-events: none; }

@keyframes pulse-gold { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
.kg_dot.active { background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3); animation: pulse-gold 1.5s infinite; }

.kg_mini_key { display: inline-block; width: 14px; height: 60px; border: 1px solid #ccc; background: #ddd; vertical-align: top; position: relative; opacity: 0.3; }
.kg_mini_key.black { width: 10px; height: 35px; background: #333; position: absolute; margin-left: -5px; z-index: 2; border: none; }
.kg_mini_key.user-range { background: var(--gold) !important; border-color: var(--gold); opacity: 1; }
.kg_mini_key.user-range.black { background: var(--gold-hover) !important; }

.kg_controls { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg-offwhite); padding: 24px; border-radius: 8px; margin-bottom: 24px; gap: 16px; border: 1px solid #eee; }
@media (min-width: 768px) { .kg_controls { flex-direction: row; } }
.kg_status { display: flex; align-items: center; font-weight: 600; color: var(--text-main); font-size: 0.95rem; }
.kg_dot { width: 12px; height: 12px; background: #ccc; border-radius: 50%; display: inline-block; margin-right: 12px; }
.kg_btn { padding: 14px 32px; border-radius: 4px; font-weight: 700; cursor: pointer; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; transition: 0.3s; }
.kg_btn-primary { background: var(--gold); color: white; border: none; }
.kg_btn-primary:hover { background: #000; color: var(--gold); }
.kg_btn-secondary { background: transparent; color: var(--text-main); border: 1px solid #ccc; }
.kg_btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.tool-result-card { margin-top: 32px; background: var(--bg-offwhite); border: 1px solid #eee; border-radius: 8px; padding: 24px; text-align: left; }
.tool-result-card h3 { color: var(--bg-dark); }
.tool-result-highlight { border-left: 4px solid var(--gold); padding: 16px; background: white; margin-bottom: 16px; font-size: 0.95rem; color: #555; }
.tool-tip-box { background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 8px; padding: 16px; margin-top: 24px; }
.tool-tip-box .tip-label { font-weight: 700; color: var(--gold); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.tool-tip-box p { color: #555; font-style: italic; font-size: 0.9rem; margin: 0; }

/* React assessment tool overrides */
#root .assessment-card { background: white; border: 1px solid #eee; border-radius: 8px; padding: 32px; max-width: 700px; margin: 0 auto; }
#root .text-accent { color: var(--gold); }
#root .bg-accent { background: var(--gold); }
#root .border-accent { border-color: var(--gold); }
