:root {
    --orb-size: 200px;
    --orb-color-start: #3a506b;
    --orb-color-end: #1c2541;
    --glow-color: rgba(87, 139, 219, 0.6);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    color: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

#voice-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    position: relative;
    cursor: pointer;
}

#transcript-display {
    position: absolute;
    top: 15%;
    left: 5%;
    width: 90%;
    text-align: center;
    font-size: 1.8em;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    min-height: 2em;
}

#transcript-display.visible {
    opacity: 1;
}

#voice-orb {
    width: var(--orb-size);
    height: var(--orb-size);
    border-radius: 50%;
    background: radial-gradient(circle, var(--orb-color-start), var(--orb-color-end));
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

#voice-orb.listening {
    transform: scale(1.15);
    box-shadow: 0 0 50px 10px var(--glow-color);
}

#voice-orb.thinking {
    animation: pulsate 2s infinite ease-in-out;
}

#voice-orb.speaking {
    animation: breathe 2.8s infinite ease-in-out;
}

#status-text {
    position: absolute;
    bottom: 10%;
    font-size: 1em;
    color: #aaa;
    transition: opacity 0.3s ease;
}

@keyframes pulsate {
    0% { box-shadow: 0 0 20px rgba(0,0,0,0.5); }
    50% { box-shadow: 0 0 35px 5px rgba(87, 139, 219, 0.4); }
    100% { box-shadow: 0 0 20px rgba(0,0,0,0.5); }
}

@keyframes breathe {
    0% { transform: scale(1); box-shadow: 0 0 30px 0px var(--glow-color); }
    50% { transform: scale(1.1); box-shadow: 0 0 60px 15px var(--glow-color); }
    100% { transform: scale(1); box-shadow: 0 0 30px 0px var(--glow-color); }
}

/* --- NEW MODAL STYLES --- */

#welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}

#welcome-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#welcome-modal {
    background-color: var(--orb-color-end);
    padding: 25px 35px;
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    width: 450px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--orb-color-start);
}

#welcome-modal h2 {
    margin-top: 0;
    color: #fff;
    font-size: 1.8em;
}

#welcome-modal p {
    color: #ccc;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

#start-button {
    background-color: var(--orb-color-start);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1.2em;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#start-button:hover {
    background-color: #578bdb;
    transform: translateY(-2px);
}
