/* ============================================================================
   Vehicly Cinematic Score Reveal — fullscreen takeover at analyse completion
   ============================================================================ */

.vh-cine-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none; /* never blocks underlying interactions */
}
.vh-cine-overlay.is-visible { opacity: 1; }
.vh-cine-overlay.is-dismissing {
    opacity: 0;
    transition: opacity .35s ease;
}
.vh-cine-overlay[data-variant="short"].is-dismissing {
    transition: opacity .3s ease;
}

/* Tinted backgrounds — subtle score-emotion cue */
.vh-cine-overlay[data-tint="good"] {
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.05), rgba(255, 255, 255, 0.98) 80%);
}
.vh-cine-overlay[data-tint="fair"] {
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.04), rgba(255, 255, 255, 0.98) 80%);
}
.vh-cine-overlay[data-tint="bad"] {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.04), rgba(255, 255, 255, 0.98) 80%);
}

.vh-cine-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 16px;
}

.vh-cine-ring-wrap {
    position: relative;
    width: 200px;
    height: 200px;
}

.vh-cine-ring {
    width: 200px;
    height: 200px;
    transform: rotate(-90deg);
}
.vh-cine-ring-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.08);
    stroke-width: 12;
}
.vh-cine-ring-fg {
    fill: none;
    stroke: var(--vh-primary, #F2C94C);
    stroke-width: 12;
    stroke-linecap: round;
}
.vh-cine-overlay[data-tint="good"] .vh-cine-ring-fg { stroke: #16a34a; }
.vh-cine-overlay[data-tint="fair"] .vh-cine-ring-fg { stroke: #d97706; }
.vh-cine-overlay[data-tint="bad"]  .vh-cine-ring-fg { stroke: #dc2626; }

.vh-cine-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-family: var(--vh-font-display, Inter, sans-serif);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    color: var(--vh-text, #1c1917);
}
.vh-cine-num-val {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}
.vh-cine-num-max {
    font-size: 22px;
    font-weight: 500;
    color: var(--vh-text-secondary, #57534e);
    margin-left: 4px;
    line-height: 1;
}

.vh-cine-badge {
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--vh-text, #1c1917);
    color: #fff;
    font-family: var(--vh-font-display, Inter, sans-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transform: translateY(40px);
    opacity: 0;
    transition:
        transform .5s var(--ease-spring, cubic-bezier(.34,1.56,.64,1)),
        opacity .35s ease;
}
.vh-cine-badge.is-in {
    transform: translateY(0);
    opacity: 1;
}
.vh-cine-overlay[data-variant="short"] .vh-cine-badge {
    transition:
        transform .3s var(--ease-spring, cubic-bezier(.34,1.56,.64,1)),
        opacity .25s ease;
}
.vh-cine-overlay[data-tint="good"] .vh-cine-badge { background: #16a34a; }
.vh-cine-overlay[data-tint="fair"] .vh-cine-badge { background: #d97706; }
.vh-cine-overlay[data-tint="bad"]  .vh-cine-badge { background: #dc2626; }

/* Mobile — smaller ring + responsive sizing */
@media (max-width: 480px) {
    .vh-cine-ring-wrap, .vh-cine-ring { width: 170px; height: 170px; }
    .vh-cine-num-val { font-size: 54px; }
}

/* Reduced motion: keep overlay accessible (visible but no animation) */
@media (prefers-reduced-motion: reduce) {
    .vh-cine-overlay {
        animation: none !important;
        transition: none !important;
        opacity: 1;
    }
    .vh-cine-overlay[aria-hidden="true"] { display: none !important; }
}
