.canvas-container {
            text-align: center;
            margin-top: 1.2rem;
            background: #fefefe;
            border-radius: 12px;
        }
        .ray-canvas {
            width: 100%;
            max-width: 700px;
            background: #fcfcfc;
            border: 1px solid #ddd;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 1.8rem;
            margin-top: 0.8rem;
            font-size: 0.85rem;
        }
        .legend-color {
            width: 16px;
            height: 16px;
            border-radius: 20px;
            display: inline-block;
            margin-right: 4px;
        }