/* Extracted from inline <style> in entropy-analysis.php.
 *
 * This page is served with `default-src 'self'` and no style-src
 * override, so inline styles were blocked outright — and since the
 * page loaded no external stylesheet, every rule it had was in these
 * blocks and the page rendered as raw unstyled HTML. */

:root {
            --primary-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
            --surface-bg: rgba(30, 30, 50, 0.9);
            --accent-cyan: #00ffff;
            --accent-magenta: #ff00ff;
            --accent-green: #00ff00;
            --accent-orange: #ff8c00;
            --text-primary: #ffffff;
            --text-secondary: #b0b0c0;
            --border-color: rgba(255, 255, 255, 0.1);
            --danger-color: #ff4444;
            --warning-color: #ffaa00;
            --success-color: #44ff44;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background: var(--primary-bg);
            color: var(--text-primary);
            min-height: 100vh;
            line-height: 1.6;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
        }

        .header {
            text-align: center;
            margin-bottom: 3rem;
            padding: 2rem;
            background: var(--surface-bg);
            border-radius: 20px;
            border: 2px solid var(--border-color);
        }

        .header h1 {
            font-size: 3rem;
            background: linear-gradient(45deg, var(--accent-cyan), var(--accent-magenta));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 1rem;
        }

        .header p {
            font-size: 1.2rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
        }

        .nav-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .nav-link {
            padding: 0.75rem 1.5rem;
            background: rgba(0, 255, 255, 0.1);
            border: 1px solid var(--accent-cyan);
            border-radius: 10px;
            color: var(--accent-cyan);
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .nav-link:hover {
            background: rgba(0, 255, 255, 0.2);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
        }

        .analysis-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .analysis-card {
            background: var(--surface-bg);
            border-radius: 15px;
            border: 2px solid var(--border-color);
            padding: 2rem;
            transition: all 0.3s ease;
        }

        .analysis-card:hover {
            border-color: var(--accent-cyan);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
        }

        .card-title {
            font-size: 1.5rem;
            color: var(--accent-cyan);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .control-panel {
            background: var(--surface-bg);
            border-radius: 15px;
            border: 2px solid var(--border-color);
            padding: 2rem;
            margin-bottom: 2rem;
        }

        .controls {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
            margin-bottom: 2rem;
        }

        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 10px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .btn-primary {
            background: linear-gradient(45deg, var(--accent-cyan), var(--accent-magenta));
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: var(--accent-cyan);
        }

        .entropy-display {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            padding: 1.5rem;
            margin: 1rem 0;
            font-family: 'Courier New', monospace;
        }

        .metric-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1rem 0;
        }

        .metric {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            padding: 1rem;
            text-align: center;
            border: 1px solid var(--border-color);
        }

        .metric-value {
            font-size: 2rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .metric-label {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .entropy-good { color: var(--success-color); }
        .entropy-warning { color: var(--warning-color); }
        .entropy-danger { color: var(--danger-color); }

        .visualization {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            padding: 1rem;
            margin: 1rem 0;
            min-height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .test-input {
            width: 100%;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 1rem;
            color: var(--text-primary);
            font-family: 'Courier New', monospace;
            resize: vertical;
            min-height: 120px;
        }

        .test-input:focus {
            outline: none;
            border-color: var(--accent-cyan);
            box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
        }

        .progress-bar {
            width: 100%;
            height: 20px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            overflow: hidden;
            margin: 1rem 0;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
            transition: width 0.3s ease;
            border-radius: 10px;
        }

        .results-table {
            width: 100%;
            border-collapse: collapse;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            overflow: hidden;
            margin: 1rem 0;
        }

        .results-table th,
        .results-table td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }

        .results-table th {
            background: rgba(0, 255, 255, 0.1);
            color: var(--accent-cyan);
            font-weight: 600;
        }

        .algorithm-analysis {
            grid-column: 1 / -1;
        }

        @media (max-width: 768px) {
            .container {
                padding: 1rem;
            }

            .header h1 {
                font-size: 2rem;
            }

            .analysis-grid {
                grid-template-columns: 1fr;
            }

            .controls {
                flex-direction: column;
                align-items: stretch;
            }
        }
.animated-mouse-entropy {
            position: absolute;
            width: 38px;
            height: 62px;
            pointer-events: none;
            z-index: 9999;
            transition: all 0.12s ease-out;
        }
        
        .animated-mouse-entropy::before {
            content: '';
            position: absolute;
            width: 24px;
            height: 36px;
            background: linear-gradient(135deg, #9c27b0, #e91e63, #ff5722);
            border-radius: 12px 12px 4px 4px;
            box-shadow: 
                0 0 25px rgba(156, 39, 176, 0.8),
                inset 0 3px 0 rgba(255, 255, 255, 0.3);
            animation: entropyFlux 2.2s ease-in-out infinite alternate;
        }
        
        .animated-mouse-entropy::after {
            content: '';
            position: absolute;
            top: 36px;
            left: 8px;
            width: 4px;
            height: 26px;
            background: linear-gradient(180deg, #9c27b0, #e91e63, #ff5722, #9c27b0);
            border-radius: 2px 2px 18px 18px;
            transform-origin: top center;
            animation: entropyTailFlow 1.8s ease-in-out infinite;
            box-shadow: 0 0 12px rgba(233, 30, 99, 0.6);
        }
        
        .animated-mouse-entropy .entropy-ears {
            position: absolute;
            top: -9px;
            left: 3px;
            width: 8px;
            height: 8px;
            background: #9c27b0;
            border-radius: 50% 50% 50% 20%;
            box-shadow: 
                15px 0 0 #e91e63,
                0 0 10px rgba(156, 39, 176, 0.6),
                15px 0 10px rgba(233, 30, 99, 0.6);
            animation: entropyEarPhase 3.5s ease-in-out infinite;
        }
        
        .animated-mouse-entropy .entropy-eyes {
            position: absolute;
            top: 9px;
            left: 5px;
            width: 3px;
            height: 3px;
            background: #ffffff;
            border-radius: 50%;
            box-shadow: 
                11px 0 0 #ffffff,
                0 0 6px rgba(255, 255, 255, 0.9),
                11px 0 6px rgba(255, 255, 255, 0.9);
            animation: entropyEyeFlicker 2.8s ease-in-out infinite;
        }
        
        .animated-mouse-entropy .entropy-nose {
            position: absolute;
            top: 17px;
            left: 10px;
            width: 3px;
            height: 2px;
            background: #ff1744;
            border-radius: 50%;
            box-shadow: 0 0 4px rgba(255, 23, 68, 0.9);
            animation: entropyNoseSniff 2.5s ease-in-out infinite;
        }
        
        .animated-mouse-entropy .entropy-whiskers {
            position: absolute;
            top: 19px;
            left: -7px;
            width: 14px;
            height: 1px;
            background: linear-gradient(90deg, transparent, #e91e63, transparent);
            box-shadow: 
                24px 0 0 #9c27b0,
                0 3px 0 #ff5722,
                24px 3px 0 #e91e63;
            animation: entropyWhiskerTwitch 3s ease-in-out infinite;
        }
        
        .animated-mouse-entropy .entropy-mouth {
            position: absolute;
            top: 22px;
            left: 9px;
            width: 6px;
            height: 2px;
            border: 1px solid #e91e63;
            border-top: none;
            border-radius: 0 0 60% 60%;
            animation: entropyMouthFlicker 4s ease-in-out infinite;
        }
        
        @keyframes entropyNoseSniff {
            0%, 85%, 100% { transform: scale(1); }
            90% { transform: scale(1.3); }
        }
        
        @keyframes entropyWhiskerTwitch {
            0%, 90%, 100% { transform: translateX(0) rotate(0deg); }
            93% { transform: translateX(2px) rotate(3deg); }
            96% { transform: translateX(-1px) rotate(-2deg); }
        }
        
        @keyframes entropyMouthFlicker {
            0%, 94%, 100% { opacity: 1; border-color: #e91e63; }
            97% { opacity: 0.6; border-color: #9c27b0; }
        }
        
        .animated-mouse-entropy .entropy-aura {
            position: absolute;
            top: -5px;
            left: -5px;
            width: 34px;
            height: 46px;
            border: 2px solid transparent;
            border-radius: 15px 15px 6px 6px;
            background: linear-gradient(45deg, transparent, rgba(156, 39, 176, 0.2), transparent);
            animation: entropyAuraPulse 3s ease-in-out infinite;
        }
        
        .animated-mouse-entropy .entropy-particles {
            position: absolute;
            top: 18px;
            left: 2px;
            width: 20px;
            height: 2px;
            background: linear-gradient(90deg, transparent, #9c27b0, #e91e63, #ff5722, transparent);
            border-radius: 2px;
            animation: entropyParticleStream 2.5s linear infinite;
        }
        
        @keyframes entropyFlux {
            0% { 
                box-shadow: 
                    0 0 25px rgba(156, 39, 176, 0.8),
                    inset 0 3px 0 rgba(255, 255, 255, 0.3);
                background: linear-gradient(135deg, #9c27b0, #e91e63, #ff5722);
            }
            33% {
                box-shadow: 
                    0 0 35px rgba(233, 30, 99, 0.9),
                    inset 0 3px 0 rgba(255, 255, 255, 0.4);
                background: linear-gradient(135deg, #e91e63, #ff5722, #9c27b0);
            }
            66% {
                box-shadow: 
                    0 0 30px rgba(255, 87, 34, 0.85),
                    inset 0 3px 0 rgba(255, 255, 255, 0.35);
                background: linear-gradient(135deg, #ff5722, #9c27b0, #e91e63);
            }
            100% { 
                box-shadow: 
                    0 0 40px rgba(156, 39, 176, 1),
                    inset 0 3px 0 rgba(255, 255, 255, 0.5);
                background: linear-gradient(135deg, #9c27b0, #e91e63, #ff5722);
            }
        }
        
        @keyframes entropyTailFlow {
            0%, 100% { 
                transform: rotate(-18deg) scaleY(0.9);
                box-shadow: 0 0 12px rgba(233, 30, 99, 0.6);
            }
            25% { 
                transform: rotate(22deg) scaleY(1.15);
                box-shadow: 0 0 18px rgba(156, 39, 176, 0.8);
            }
            50% { 
                transform: rotate(-12deg) scaleY(1.05);
                box-shadow: 0 0 16px rgba(255, 87, 34, 0.7);
            }
            75% { 
                transform: rotate(18deg) scaleY(0.95);
                box-shadow: 0 0 20px rgba(233, 30, 99, 0.9);
            }
        }
        
        @keyframes entropyEarPhase {
            0%, 75%, 100% { transform: rotate(0deg) scale(1); }
            80%, 90% { transform: rotate(10deg) scale(1.1); }
            85% { transform: rotate(-6deg) scale(0.9); }
        }
        
        @keyframes entropyEyeFlicker {
            0%, 80%, 100% { 
                opacity: 1; 
                transform: scale(1);
                box-shadow: 
                    11px 0 0 #ffffff,
                    0 0 6px rgba(255, 255, 255, 0.9),
                    11px 0 6px rgba(255, 255, 255, 0.9);
            }
            85% { 
                opacity: 0.2; 
                transform: scale(0.6);
                box-shadow: 
                    11px 0 0 #9c27b0,
                    0 0 10px rgba(156, 39, 176, 0.8),
                    11px 0 10px rgba(156, 39, 176, 0.8);
            }
            90% { 
                opacity: 1; 
                transform: scale(1.4);
                box-shadow: 
                    11px 0 0 #ffffff,
                    0 0 12px rgba(255, 255, 255, 1),
                    11px 0 12px rgba(255, 255, 255, 1);
            }
        }
        
        @keyframes entropyAuraPulse {
            0%, 100% { 
                transform: scale(1) rotate(0deg);
                opacity: 0.3;
                border-color: rgba(156, 39, 176, 0.4);
            }
            50% { 
                transform: scale(1.1) rotate(180deg);
                opacity: 0.7;
                border-color: rgba(233, 30, 99, 0.6);
            }
        }
        
        @keyframes entropyParticleStream {
            0% { 
                transform: translateX(-10px) scaleX(0.5);
                opacity: 0;
            }
            50% { 
                transform: translateX(0px) scaleX(1);
                opacity: 1;
            }
            100% { 
                transform: translateX(10px) scaleX(0.5);
                opacity: 0;
            }
        }
        
        .animated-mouse-entropy:hover::before {
            transform: scale(1.15) rotate(8deg);
            box-shadow: 
                0 0 45px rgba(156, 39, 176, 1),
                inset 0 3px 0 rgba(255, 255, 255, 0.6);
        }
        
        .entropy-wave {
            position: absolute;
            width: 4px;
            height: 4px;
            background: #9c27b0;
            border-radius: 50%;
            pointer-events: none;
            animation: entropyWave 2.2s ease-out forwards;
        }
        
        @keyframes entropyWave {
            0% {
                opacity: 1;
                transform: scale(0) translate(0, 0) rotate(0deg);
                background: #9c27b0;
            }
            25% {
                opacity: 0.9;
                transform: scale(1.3) translate(8px, -3px) rotate(90deg);
                background: #e91e63;
            }
            50% {
                opacity: 0.7;
                transform: scale(1.1) translate(12px, -8px) rotate(180deg);
                background: #ff5722;
            }
            75% {
                opacity: 0.4;
                transform: scale(0.9) translate(18px, -12px) rotate(270deg);
                background: #9c27b0;
            }
            100% {
                opacity: 0;
                transform: scale(0) translate(24px, -16px) rotate(360deg);
            }
        }
        
        .entropy-trail {
            position: absolute;
            width: 6px;
            height: 6px;
            background: radial-gradient(circle, #9c27b0, #e91e63);
            border-radius: 50%;
            pointer-events: none;
            box-shadow: 0 0 12px rgba(156, 39, 176, 0.7);
            animation: entropyTrailChaos 1.8s ease-out forwards;
        }
        
        @keyframes entropyTrailChaos {
            0% {
                opacity: 1;
                transform: scale(1) rotate(0deg);
                background: radial-gradient(circle, #9c27b0, #e91e63);
                box-shadow: 0 0 12px rgba(156, 39, 176, 0.7);
            }
            20% {
                opacity: 0.9;
                transform: scale(1.2) rotate(72deg);
                background: radial-gradient(circle, #e91e63, #ff5722);
                box-shadow: 0 0 15px rgba(233, 30, 99, 0.6);
            }
            40% {
                opacity: 0.7;
                transform: scale(0.9) rotate(144deg);
                background: radial-gradient(circle, #ff5722, #9c27b0);
                box-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
            }
            60% {
                opacity: 0.5;
                transform: scale(1.1) rotate(216deg);
                background: radial-gradient(circle, #9c27b0, #e91e63);
                box-shadow: 0 0 8px rgba(156, 39, 176, 0.4);
            }
            80% {
                opacity: 0.3;
                transform: scale(0.7) rotate(288deg);
                background: radial-gradient(circle, #e91e63, #ff5722);
                box-shadow: 0 0 6px rgba(233, 30, 99, 0.3);
            }
            100% {
                opacity: 0;
                transform: scale(0.2) rotate(360deg);
                box-shadow: 0 0 2px rgba(156, 39, 176, 0.1);
            }
        }
        
        .entropy-chaos {
            position: absolute;
            width: 90px;
            height: 90px;
            background: conic-gradient(#9c27b0, #e91e63, #ff5722, #9c27b0);
            border-radius: 50%;
            pointer-events: none;
            animation: entropyChaos 1.5s ease-out forwards;
        }
        
        @keyframes entropyChaos {
            0% {
                opacity: 0.8;
                transform: scale(0) rotate(0deg);
                filter: blur(0px);
            }
            50% {
                opacity: 0.6;
                transform: scale(1.5) rotate(180deg);
                filter: blur(2px);
            }
            100% {
                opacity: 0;
                transform: scale(3) rotate(720deg);
                filter: blur(8px);
            }
        }
        
        .entropy-fractal {
            position: absolute;
            width: 20px;
            height: 20px;
            border: 2px solid #9c27b0;
            border-radius: 50%;
            pointer-events: none;
            animation: entropyFractal 2s ease-out forwards;
        }
        
        @keyframes entropyFractal {
            0% {
                opacity: 1;
                transform: scale(1) rotate(0deg);
                border-color: #9c27b0;
                border-width: 3px;
            }
            25% {
                opacity: 0.8;
                transform: scale(2) rotate(90deg);
                border-color: #e91e63;
                border-width: 2px;
            }
            50% {
                opacity: 0.6;
                transform: scale(0.5) rotate(180deg);
                border-color: #ff5722;
                border-width: 4px;
            }
            75% {
                opacity: 0.4;
                transform: scale(3) rotate(270deg);
                border-color: #9c27b0;
                border-width: 1px;
            }
            100% {
                opacity: 0;
                transform: scale(0.1) rotate(360deg);
                border-color: #e91e63;
                border-width: 0px;
            }
        }
        
        .entropy-randomize {
            position: absolute;
            width: 30px;
            height: 30px;
            background: linear-gradient(45deg, rgba(156, 39, 176, 0.8), rgba(233, 30, 99, 0.6), rgba(255, 87, 34, 0.4));
            border-radius: 50%;
            pointer-events: none;
            animation: entropyRandomize 1s ease-out forwards;
        }
        
        @keyframes entropyRandomize {
            0% {
                opacity: 1;
                transform: scale(0) translate(0px, 0px);
            }
            25% {
                opacity: 0.8;
                transform: scale(1.5) translate(20px, -10px);
            }
            50% {
                opacity: 0.6;
                transform: scale(0.8) translate(-15px, 25px);
            }
            75% {
                opacity: 0.4;
                transform: scale(1.2) translate(30px, 15px);
            }
            100% {
                opacity: 0;
                transform: scale(0) translate(-25px, -20px);
            }
        }

/* Four style attributes that CSP discarded along with everything else.
 * `ea-bar-empty` is the progress bar's starting width; the page's own
 * JavaScript sets `style.width` from there, which is a property assignment
 * and not subject to style-src. */
.ea-bar-empty { width: 0%; }
.ea-note { text-align: center; color: var(--text-secondary); }
.ea-note--spaced { margin-top: 0.5rem; }
.ea-field-label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); }
