/* ---- The disc: signature element. A DVD seen data-side up. ---- */

.disc {
    position: relative;
    aspect-ratio: 1;
    border-radius: 9999px;
    background:
        radial-gradient(circle,
            #0E0E15 0 12.5%,            /* hub hole matches page bg */
            #3B3B4E 13% 14%,            /* clamp ring */
            #191922 14.5% 19%,          /* mirror band */
            transparent 19.5%),
        conic-gradient(from 210deg,
            #23232F 0deg,
            #7C6CFF 42deg,
            #4FD6E0 88deg,
            #23232F 138deg,
            #E36FD2 196deg,
            #FFD479 244deg,
            #4FD6E0 300deg,
            #23232F 360deg);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 70px rgba(124, 108, 255, 0.16);
}

.disc::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: repeating-radial-gradient(circle,
            transparent 0 3px,
            rgba(0, 0, 0, 0.14) 3px 4px);
}

.disc-spin {
    animation: disc-rotate 2.8s linear infinite;
}

.disc-spin-slow {
    animation: disc-rotate 9s linear infinite;
}

@keyframes disc-rotate {
    to { transform: rotate(360deg); }
}

/* Progress ring stroke animates smoothly between updates */
.ring-progress {
    transition: stroke-dashoffset 0.4s ease;
}

/* Per-file progress bars */
.bar-progress {
    transition: width 0.4s ease;
    background: linear-gradient(90deg, #7C6CFF, #4FD6E0);
}

.btn-iris {
    background: linear-gradient(100deg, #7C6CFF, #4FD6E0);
}

/* Screen changes slide up gently */
.screen-enter {
    animation: screen-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes screen-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .disc-spin, .disc-spin-slow { animation: none; }
    .screen-enter { animation: none; }
    .ring-progress, .bar-progress { transition: none; }
}

:focus-visible {
    outline: 2px solid #7C6CFF;
    outline-offset: 2px;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #FFD479;
    color: #0E0E15;
    bottom: 0;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.4);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-family: system-ui, sans-serif;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
