/* Oskars Academy - Custom Styles & Animations */
        body {
            font-family: 'Inter', sans-serif;
            background-color: #070B19;
            color: #F8FAFC;
            overflow-x: hidden;
        }
        .glow-accent {
            box-shadow: 0 0 40px -10px rgba(56, 189, 248, 0.25);
        }
        .glow-gold {
            box-shadow: 0 0 40px -10px rgba(245, 158, 11, 0.3);
        }
        .glass-panel {
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
        .glass-panel-hover:hover {
            border-color: rgba(56, 189, 248, 0.4);
            transform: translateY(-4px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        @keyframes pulseSlow {
            0%, 100% { opacity: 0.4; transform: scale(1); }
            50% { opacity: 0.8; transform: scale(1.05); }
        }
        .animate-pulse-slow {
            animation: pulseSlow 6s infinite ease-in-out;
        }
        /* Typing dots animation for AI Mentor */
        @keyframes bounceDot {
            0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
            40% { transform: scale(1); opacity: 1; }
        }
        .typing-dot:nth-child(1) { animation: bounceDot 1.4s infinite ease-in-out -0.32s; }
        .typing-dot:nth-child(2) { animation: bounceDot 1.4s infinite ease-in-out -0.16s; }
        .typing-dot:nth-child(3) { animation: bounceDot 1.4s infinite ease-in-out 0s; }
        /* Custom scrollbar for AI chat */
        .chat-scroll::-webkit-scrollbar {
            width: 6px;
        }
        .chat-scroll::-webkit-scrollbar-track {
            background: rgba(15, 23, 42, 0.4);
        }
        .chat-scroll::-webkit-scrollbar-thumb {
            background: rgba(56, 189, 248, 0.3);
            border-radius: 9999px;
        }
        .chat-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(56, 189, 248, 0.6);
        }
        /* Dopamine Arena Animations */
        @keyframes popFloat {
            0% { opacity: 0; transform: translateY(16px) scale(0.8); }
            25% { opacity: 1; transform: translateY(-6px) scale(1.1); }
            80% { opacity: 1; transform: translateY(-22px) scale(1); }
            100% { opacity: 0; transform: translateY(-36px) scale(0.9); }
        }
        .animate-pop-float {
            animation: popFloat 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
        @keyframes shakeWrong {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-8px); }
            40%, 80% { transform: translateX(8px); }
        }
        .animate-shake {
            animation: shakeWrong 0.4s ease-in-out;
        }
        @keyframes overdrivePulse {
            0%, 100% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.35), inset 0 0 15px rgba(245, 158, 11, 0.15); border-color: rgba(251, 191, 36, 0.85); }
            50% { box-shadow: 0 0 55px rgba(245, 158, 11, 0.7), inset 0 0 25px rgba(245, 158, 11, 0.3); border-color: rgba(254, 240, 138, 1); }
        }
        .overdrive-card {
            animation: overdrivePulse 1.5s infinite ease-in-out;
        }
        @keyframes confettiFall {
            0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
            100% { transform: translateY(420px) rotate(720deg); opacity: 0; }
        }
        .confetti-piece {
            position: absolute;
            width: 10px;
            height: 14px;
            border-radius: 3px;
            pointer-events: none;
            animation: confettiFall 2.2s ease-out forwards;
        }

.mission-stage {
    position: relative;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 32%),
        rgba(8, 12, 24, 0.94);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 28px 70px -36px var(--mod, #f59e0b);
}
.mission-stage::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(to bottom, var(--mod, #f59e0b), #38bdf8);
}
.hud-sheen {
    background:
        radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--mod, #f59e0b) 28%, transparent), transparent 52%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(7, 11, 25, 0.96));
}

.home-stage {
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}
body.home-compact #home-circuit {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #050910;
}
body.home-compact #home-circuit canvas {
    width: 100%;
    height: 100%;
    display: block;
}
body.home-compact #home-circuit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 38%, transparent 0%, rgba(5, 9, 16, 0.08) 46%, rgba(5, 9, 16, 0.45) 100%);
}
.home-title {
    display: inline-block;
    max-width: 100%;
    padding: 0.45rem 1.15rem 0.4rem;
    border-radius: 1.15rem;
    background: rgba(5, 9, 16, 0.9);
    box-shadow: 0 0 0 1px rgba(148, 196, 220, 0.14);
}
.home-lead {
    display: inline-block;
    margin-top: 0.7rem;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    background: rgba(5, 9, 16, 0.82);
}
.home-core {
    height: 4.25rem;
}
body.home-compact header,
body.home-compact footer,
body.home-compact #main-content {
    position: relative;
    z-index: 1;
}
body.home-compact footer {
    margin-top: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background: transparent;
}
body.home-compact footer > .grid {
    display: none;
}
body.home-compact footer > div:last-child {
    padding-top: 0;
    border-top: 0;
}
.home-mod {
    background: rgba(7, 11, 25, 0.86);
    border: 1px solid color-mix(in srgb, var(--glow) 70%, transparent);
    box-shadow: 0 0 28px -10px var(--glow), inset 0 0 24px -16px var(--glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-mod:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 36px -6px var(--glow), inset 0 0 28px -12px var(--glow);
}

/* oa-ai-button-offset: Lyft AI-knappen ovanför Powered by Netlify */
div.fixed.right-6.z-50,
div.fixed.right-5.z-50,
div.fixed.right-4.z-50,
#ai-mentor-widget {
    bottom: 4.5rem !important;
}

body.oa-cookie-banner-open {
    padding-bottom: 18rem;
}

/* Interaktiv mätstation i VoltKrigarna */
#volt-meter-lab .schematic-grid {
    background-size: 24px 24px;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
}
#volt-meter-lab .test-point-group {
    cursor: pointer;
}
#volt-meter-lab .test-point-ring {
    transition: all 0.2s ease;
}
#volt-meter-lab .test-point-group:hover .test-point-ring {
    r: 17px;
    stroke-width: 3px;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.7));
}
#volt-meter-lab .current-active {
    stroke-dasharray: 6 6;
    animation: oaMeterFlow 0.7s linear infinite;
}
#volt-meter-lab .current-dim {
    stroke-dasharray: 6 6;
    animation: oaMeterFlow 1.8s linear infinite;
}
@keyframes oaMeterFlow {
    to { stroke-dashoffset: -24; }
}
#volt-meter-lab .lcd-screen {
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6), inset 0 0 18px rgba(0, 0, 0, 0.25);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
#volt-meter-lab #dmm-rotor {
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: 130px 130px;
}
.oa-lab-lcd {
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.55);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
#volt-meter-lab .probe-graphic {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}