/* ============================================================
   GamerBio — Telemetry HUD theme
   Dark esports-broadcast aesthetic. Oxanium + IBM Plex Mono.
   ============================================================ */

:root {
    /* surfaces */
    --bg:        #151b25;
    --bg-grid:   rgba(130, 160, 200, 0.06);
    --panel:     rgba(30, 38, 50, 0.78);
    --panel-2:   rgba(38, 47, 61, 0.92);
    --line:      rgba(140, 165, 200, 0.18);
    --line-soft: rgba(140, 165, 200, 0.1);

    /* text */
    --text:   #dde5f0;
    --bright: #f6f9fd;
    --muted:  #93a0b2;
    --faint:  #667282;

    /* vitals */
    --heart: #ff3a5e;  /* BPM   */
    --gsr:   #21d4fd;  /* GSR   */
    --temp:  #ffb14d;  /* temp  */
    --accent:#7dff9b;  /* signal / online */

    /* tension states */
    --st-calibrating: #6c7889;
    --st-relaxed:     #34e3a4;
    --st-focused:     #ffb14d;
    --st-stressed:    #ff3a5e;
    --st-deadly:      #b01aff;

    --font-display: 'Oxanium', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

    --radius: 14px;
}

* { box-sizing: border-box; }

html { font-size: 17.5px; }

html, body {
    margin: 0;
    font-family: var(--font-display);
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    background-image:
        radial-gradient(1100px 700px at 78% -10%, rgba(33, 212, 253, 0.10), transparent 60%),
        radial-gradient(900px 600px at -5% 110%, rgba(255, 58, 94, 0.09), transparent 55%),
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--bright);
    letter-spacing: 0.01em;
}

a, .btn-link { color: var(--gsr); text-decoration: none; }
a:hover { color: var(--accent); }

/* ---- shared HUD primitives ------------------------------------ */

.hud-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.hud-panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

/* corner ticks shared by panels */
.hud-panel::before,
.hud-panel::after {
    content: "";
    position: absolute;
    width: 10px; height: 10px;
    border-color: var(--line);
    border-style: solid;
    opacity: 0.9;
    pointer-events: none;
}
.hud-panel::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.hud-panel::after  { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

/* ---- scrollbar ------------------------------------------------ */
* { scrollbar-width: thin; scrollbar-color: rgba(120,145,180,0.3) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: rgba(120,145,180,0.25); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(120,145,180,0.45); }

/* ---- focus ---------------------------------------------------- */
.btn:focus, .btn:active:focus, .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(33, 212, 253, 0.35);
}

h1:focus { outline: none; }

/* ---- Blazor error UI (kept dark) ------------------------------ */
.validation-message { color: var(--heart); }

#blazor-error-ui {
    color-scheme: dark only;
    background: #1a0c10;
    color: #ffd7dd;
    border-top: 1px solid var(--heart);
    bottom: 0; left: 0;
    box-shadow: 0 -2px 14px rgba(0,0,0,0.5);
    box-sizing: border-box;
    display: none;
    padding: 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.9rem; top: 0.6rem; }

.blazor-error-boundary {
    background: #1a0c10;
    border: 1px solid var(--heart);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    color: #ffd7dd;
    font-family: var(--font-mono);
}
.blazor-error-boundary::after { content: "An error has occurred."; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
