/* ============================================================
   Apex Pitch — design-system primitives layered on top of Tailwind.
   Tailwind utility classes (loaded via the Play CDN in index.html)
   carry the bulk of the styling; this file holds the bespoke effects
   that aren't expressible as utilities, plus the Blazor boot/error UI.
   ============================================================ */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.glass-card {
    background: rgba(51, 65, 85, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.neon-glow-violet {
    box-shadow: 0 0 15px rgba(208, 188, 255, 0.3);
}

.neon-glow-gold {
    box-shadow: 0 0 20px rgba(249, 189, 34, 0.4);
    border: 2px solid #f9bd22;
}

.pulse-live {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #121212; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }

/* Hide number-input spinners so the score boxes stay clean. */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

h1:focus { outline: none; }

/* Blazor validation hooks. */
.valid.modified:not([type=checkbox]) { outline: 1px solid #b3d17a; }
.invalid { outline: 1px solid #ffb4ab; }
.validation-message { color: #ffb4ab; font-size: 0.8rem; }

/* ---- Blazor boot screen + error UI (dark themed) ---- */
#blazor-error-ui {
    color-scheme: dark only;
    background: #93000a;
    color: #ffdad6;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.blazor-error-boundary {
    background: #93000a;
    padding: 1rem 1rem 1rem 1rem;
    color: #ffdad6;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #2a2a2a;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #d0bcff;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    color: #e5e2e1;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* ---- Leaderboard (podium + pinned self row) ---- */
.bento-glow { box-shadow: 0 0 20px rgba(208, 188, 255, 0.05); }
.podium-gradient { background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%); }
.sticky-user-row { box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.5); }

/* ---- Point Rules page ---- */
.glass-panel {
    background: rgba(26, 31, 44, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.neon-border-primary:hover { border-color: #d0bcff; box-shadow: 0 0 15px rgba(208, 188, 255, 0.3); }
.step-line { position: relative; }
.step-line::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 2rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #d0bcff 0%, transparent 100%);
}
