/* ==========================================
   IMAGE PROMPT AREA
   ========================================== */
.prompt-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 10px auto;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease;
}

.prompt-container:active {
    transform: scale(0.95);
}

#prompt-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.audio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Darkens the image slightly so the white icon pops */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.prompt-container:hover .audio-overlay {
    opacity: 1;
}

#start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Semi-transparent grey/white background */
    background: rgba(255, 255, 255, 0.7); 
    /* Blur effect for that "pro" look */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#start-overlay button {
    padding: 20px 40px;
    font-size: 1.5rem;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

#start-overlay button:hover {
    transform: scale(1.05);
}

.slots-container {
    display: flex; 
    justify-content: center; 
    gap: 10px; 
    margin-bottom: 10px; /* Reduced to pull things closer */
    min-height: 50px;    /* Reduced to shrink the empty space */
}

.slot {
    width: 40px;
    height: 40px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ==========================================
   TONAL SYLLABLE MATRIX
   ========================================== */
.syllable-matrix {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Space between tone rows */
    margin-top: 20px;
}

.tone-group {
    text-align: left;
}

.tone-group h3 {
    margin: 0 0 10px 5px;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bank-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
}

/* Tone-specific visual cues */
.btn-high { background-color: #ffeef0; border: 2px solid #ffccd1; color: #d32f2f; }
.btn-mid  { background-color: #f5f5f5; border: 2px solid #e0e0e0; color: #333; }
.btn-low  { background-color: #e3f2fd; border: 2px solid #bbdefb; color: #1565c0; }

.bank-row button {
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s;
}

.bank-row button:active {
    transform: scale(0.92);
}