/* Container for the whole QTE element */
#qte-bouncing-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
}

/* The main circular gauge element */
.bouncing-ring-gauge {
    width: 200px; 
    height: 200px;
    border: 6px solid #ccc; 
    border-radius: 50%;
    position: relative;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

/* Style for the safe zones (Left and Right) */
.bounce-safe-zone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 0% 0%, 0% 100%);
    background-color: rgba(255, 255, 255, 0.2); 
    border: 1px dashed rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
    transition: clip-path 0.15s ease-out;
}

/* Wrapper div positioned at the center, rotation applied here by JS */
#bounce-indicator-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px; 
    height: 1px;
    transform: rotate(0deg);
    z-index: 5; 
}

/* The moving indicator bar, positioned relative to the wrapper */
#bounce-indicator {
    width: 12px;
    height: 30px;
    background-color: #ff0000;
    border: 1px solid #ffaaaa;
    border-radius: 2px;
    position: absolute;
    bottom: calc(100px - 15px);
    left: -6px; 
    box-shadow: 0 0 8px #ff0000;
}


/* Container for the key prompt in the center */
.qte-prompt-center {
    position: relative;
    z-index: 10;
    background-color: rgba(40, 40, 40, 0.8);
    border: 2px solid #aaa;
    border-radius: 4px;
    padding: 5px 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* The actual key display text (e.g., "F") */
#bounce-key-display {
    font-weight: bold;
    font-size: 1.8em;
    color: #eee;
    min-width: 30px;
    display: inline-block;
    text-align: center;
}

/* Hide the old elements if they weren't removed from HTML */
#bounce-progress,
.qte-timer-bar-container {
    display: none;
}