/* Recording studio (see js/studio.js). */

.studio-text {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 14px 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffcf4, #fbf3e2);
    border: 2px dashed #f0dcaf;
    font-size: 19px;
    line-height: 1.6;
    color: #3b2a1a;
    list-style: none;
}

.studio-text li {
    border-radius: 10px;
    transition: background-color .25s, box-shadow .25s;
}

.studio-num {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 50%;
    background: #fde7c0;
    color: #9a5b12;
    font-size: 12px;
    font-weight: 800;
    vertical-align: 2px;
}

/* the big round record button; its ring swells with the voice */
.rec-btn {
    position: relative;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 34px;
    background: radial-gradient(circle at 35% 30%, #f87171, #dc2626 70%);
    box-shadow: 0 6px 0 #991b1b, 0 16px 30px -10px rgba(153, 27, 27, .7);
    cursor: pointer;
    transition: transform .15s, background .2s;
}

.rec-btn:hover:not([disabled]) {
    transform: translateY(-2px);
}

.rec-btn:active:not([disabled]) {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #991b1b, 0 10px 20px -10px rgba(153, 27, 27, .7);
}

.rec-btn[disabled] {
    opacity: .45;
    cursor: default;
}

.rec-btn:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 6px;
}

.rec-btn.is-recording {
    background: radial-gradient(circle at 35% 30%, #ef4444, #991b1b 75%);
}

.rec-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 5px solid rgba(239, 68, 68, .25);
    pointer-events: none;
    transition: transform .08s linear, border-color .2s;
}

.rec-btn.is-recording .rec-ring {
    border-color: rgba(239, 68, 68, .55);
}

/* page dots: green when recorded, ringed when current */
.studio-dot {
    min-width: 34px;
    height: 34px;
    padding: 0 4px;
    border-radius: 999px;
    border: 2px solid #f1d8a8;
    background: #fff;
    color: #9a7a4a;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.studio-dot.is-done {
    border-color: #34b36b;
    background: #e6f8ee;
    color: #1f6f45;
}

.studio-dot.is-current {
    box-shadow: 0 0 0 3px #fb7185;
}

@media (prefers-reduced-motion: reduce) {
    .rec-ring {
        transition: none;
    }
}
