:root {
            --color-red-wedge: #f43f5e;
            --color-blue-wedge: #38bdf8;
            --color-green-wedge: #10b981;
            --color-yellow-wedge: #ffb000;
            
            --color-red-glow: rgba(244, 63, 94, 0.35);
            --color-blue-glow: rgba(56, 189, 248, 0.35);
            --color-green-glow: rgba(16, 185, 129, 0.35);
            --color-yellow-glow: rgba(255, 176, 0, 0.35);
        }

        section {
            margin-bottom: 6rem;
            scroll-margin-top: 2rem;
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 1.75rem;
        }

        .section-tag {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            color: var(--color-accent);
            background: rgba(168, 85, 247, 0.1);
            padding: 4px 10px;
            border-radius: 6px;
            border: 1px solid rgba(168, 85, 247, 0.2);
            text-shadow: 0 0 5px var(--color-accent-glow);
        }

        .section-header h2 {
            font-size: 1.75rem;
            font-weight: 700;
        }

        .section-intro {
            color: var(--text-muted);
            margin-bottom: 2rem;
            line-height: 1.6;
            font-size: 1rem;
            max-width: 850px;
        }

        .workspace-grid {
            display: grid;
            grid-template-columns: 1.3fr 1fr;
            gap: 2rem;
            align-items: start;
        }

        @media (max-width: 960px) {
            .workspace-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Spinner container */
        .spinner-container {
            position: relative;
            width: 100%;
            height: 250px;
            background: rgba(0, 0, 0, 0.25);
            border-radius: 16px;
            border: 1px solid var(--card-border);
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

        #canvasSpinner {
            display: block;
            width: 100%;
            height: 100%;
        }

        /* LLN Chart */
        .chart-panel {
            background: rgba(255,255,255,0.015);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 1.25rem;
            margin-top: 1.25rem;
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .chart-container {
            width: 100%;
            height: 110px;
            position: relative;
        }

        #canvasLLN {
            display: block;
            width: 100%;
            height: 100%;
        }

        /* Likelihood scale styling */
        .likelihood-scale-wrapper {
            background: rgba(255,255,255,0.01);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1.25rem;
        }

        .likelihood-bar {
            height: 8px;
            width: 100%;
            background: linear-gradient(to right, #ef4444, #eab308, #10b981);
            border-radius: 4px;
            position: relative;
            margin: 1.5rem 0 0.5rem 0;
        }

        .likelihood-cursor {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #ffffff;
            border: 2px solid var(--color-accent);
            position: absolute;
            top: -3px;
            transform: translateX(-50%);
            box-shadow: 0 0 8px var(--color-accent-glow);
            transition: left 0.3s ease;
        }

        .likelihood-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.65rem;
            color: var(--text-muted);
            font-family: 'JetBrains Mono', monospace;
        }

        /* Wedge Configuration Sliders */
        .wedge-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 0.75rem;
        }

        .wedge-color-box {
            width: 14px;
            height: 14px;
            border-radius: 4px;
            flex-shrink: 0;
        }

        .wedge-label {
            font-size: 0.85rem;
            font-weight: 500;
            width: 60px;
        }

        .wedge-slider {
            flex-grow: 1;
        }

        .wedge-value {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
            width: 70px;
            text-align: right;
        }

        /* Results table */
        .stats-table {
            width: 100%;
            border-collapse: collapse;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            margin-top: 1rem;
        }

        .stats-table th, .stats-table td {
            padding: 8px 10px;
            text-align: right;
            border-bottom: 1px solid var(--card-border);
        }

        .stats-table th {
            color: var(--text-muted);
            font-weight: 600;
            background: rgba(255, 255, 255, 0.01);
        }

        .stats-table td:first-child, .stats-table th:first-child {
            text-align: left;
        }

        .stats-table tbody tr:hover {
            background: rgba(255,255,255,0.01);
        }

        /* Solver steps */
        .solver-step {
            margin-bottom: 1.5rem;
            padding-left: 1rem;
            border-left: 2px solid var(--card-border);
        }

        .solver-step:last-child {
            margin-bottom: 0;
        }

        .solver-step-title {
            font-weight: 600;
            font-size: 1rem;
            color: var(--text-color);
            margin-bottom: 0.5rem;
        }

        .solver-step-desc {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

        /* Quiz elements */
        .quiz-option {
            background: rgba(255, 255, 255, 0.015);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 1rem 1.25rem;
            margin-bottom: 0.75rem;
            cursor: pointer;
            transition: all var(--transition-speed) ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .quiz-option:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.1);
            transform: translateX(4px);
        }

        .quiz-option.correct {
            background: rgba(16, 185, 129, 0.08);
            border-color: rgba(16, 185, 129, 0.3);
            color: #10b981;
        }

        .quiz-option.incorrect {
            background: rgba(244, 63, 94, 0.08);
            border-color: rgba(244, 63, 94, 0.3);
            color: #f43f5e;
        }

        .quiz-feedback {
            margin-top: 1rem;
            padding: 1rem;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--card-border);
            font-size: 0.9rem;
            line-height: 1.5;
            display: none;
        }

        /* Canvas helper */
        .spin-result-bubble {
            position: absolute;
            background: rgba(15, 18, 30, 0.85);
            border: 1px solid var(--card-border);
            backdrop-filter: blur(8px);
            padding: 6px 12px;
            border-radius: 8px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
            font-weight: 700;
            pointer-events: none;
            display: none;
            box-shadow: 0 4px 10px rgba(0,0,0,0.5);
            z-index: 10;
        }