/* =============================================================
   Disney Trivia — Global Design System
   "Celestial Librarian" aesthetic
   Colors  → var(--mud-palette-*)
   Fonts   → var(--mud-typography-*)
   Only custom vars needed for MD3 surface tiers not in MudBlazor
   ============================================================= */

:root {
    /* Material Design 3 surface container tiers — no MudBlazor equivalent */
    --dt-surface-lowest:  #000f1f;  /* surface-container-lowest */
    --dt-surface-low:     #0b1d2e;  /* surface-container-low    */
    --dt-surface-high:    #1a2b3d;  /* surface-container-high   */
    --dt-surface-highest: #253648;  /* surface-container-highest */
    --dt-surface-bright:  #2a3a4d;  /* surface-bright            */
}

/* ---------------------------------------------------------------
   Background — Celestial Star Field
   Fixed layer, z-index 0. The star pattern uses two offset grids:
   a small blue-tinted dot grid + a slightly larger gold dot grid.
   Two radial glow orbs provide ambient depth per design spec.
--------------------------------------------------------------- */
.disney-starfield {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 0%,   rgba(233, 196,   0, 0.06), transparent 40%),
        radial-gradient(circle at 78% 18%,  rgba(172, 199, 255, 0.06), transparent 32%),
        radial-gradient(circle, rgba(172, 199, 255, 0.16) 0.8px, transparent 1px) 0 0 / 26px 26px,
        radial-gradient(circle, rgba(233, 196,   0, 0.14) 0.7px, transparent 1px) 13px 15px / 34px 34px,
        var(--mud-palette-background);
    overflow: hidden;
}

/* ---------------------------------------------------------------
   Glassmorphism — "Frosted Obsidian"
   surface-container at 60% opacity + 12px blur per design spec
--------------------------------------------------------------- */
.glass-panel {
    background: rgba(15, 33, 50, 0.60);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ---------------------------------------------------------------
   CTA Gradient — Primary → darker gold (135° per design spec)
--------------------------------------------------------------- */
.dt-gradient-btn {
    background: linear-gradient(135deg,
        var(--mud-palette-primary) 0%,
        #c4a400 100%) !important;
}

.dt-gradient-btn:hover {
    background: linear-gradient(135deg,
        #f5d200 0%,
        #d4b000 100%) !important;
}

/* Pill shape override for gradient CTA — 9999px > DefaultBorderRadius (1rem) */
.dt-pill {
    border-radius: 9999px !important;
}

/* ---------------------------------------------------------------
   Typography utility
--------------------------------------------------------------- */
.font-headline {
    font-family: var(--mud-typography-h1-family) !important;
}

/* ---------------------------------------------------------------
   Glow utilities
--------------------------------------------------------------- */
.dt-glow-primary {
    box-shadow: 0 0 20px rgba(233, 196, 0, 0.20);
}

.dt-glow-primary-strong {
    box-shadow: 0 10px 24px rgba(233, 196, 0, 0.22);
}

/* ---------------------------------------------------------------
   Keyframes — must live in global CSS, Blazor scoped CSS
   does not scope @keyframes names
--------------------------------------------------------------- */
@keyframes star-pulse {
    0%, 100% { opacity: 0.6; box-shadow: 0 10px 24px rgba(233, 196, 0, 0.22); }
    50%       { opacity: 1;   box-shadow: 0 14px 32px rgba(233, 196, 0, 0.40); }
}

.animate-star-pulse {
    animation: star-pulse 3s infinite ease-in-out;
}

@keyframes dot-blink {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}