<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">body {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    background-color: #f0f5fa;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

#canvas {
    width: 720px;
    height: 320px;
    border: 2px solid #333;
    background-color: black;
    cursor: crosshair;
    margin: 10px auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    touch-action: none;
}

.camera-container {
    margin: 15px 0;
}

#cameraFeed, #cameraCanvas {
    max-width: 100%;
    border: 2px solid #333;
    background-color: #000;
    margin: 10px auto;
    display: block;
}

#cameraCanvas {
    display: none;
}

.brush-container {
    margin: 10px 0;
    font-size: 1em;
}

#random-number {
    margin: 15px 0;
    font-size: 1.2em;
}

#target-number {
    font-weight: bold;
    color: #007bff;
    font-size: 1.3em;
}

.buttons {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

button {
    background-color: #007bff;
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 100px;
}

    button:hover {
        background-color: #0056b3;
    }

    button#debugBtn {
        background-color: #6c757d;
    }

        button#debugBtn:hover {
            background-color: #5a6268;
        }

    button#startCameraBtn {
        background-color: #28a745;
    }

        button#startCameraBtn:hover {
            background-color: #218838;
        }

    button#stopCameraBtn {
        background-color: #dc3545;
    }

        button#stopCameraBtn:hover {
            background-color: #c82333;
        }

    button#captureBtn {
        background-color: #ffc107;
        color: #212529;
    }

        button#captureBtn:hover {
            background-color: #e0a800;
        }

#result {
    font-size: 20px;
    margin: 15px 0;
    min-height: 30px;
}

.error {
    color: #dc3545;
}

.success {
    color: #28a745;
}

.info {
    color: #17a2b8;
}

.debug-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.debug-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.debug-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.debug-image {
    border: 1px solid #ccc;
    margin: 5px;
    width: 56px;
    height: 56px;
    image-rendering: pixelated;
}

.debug-label {
    font-size: 14px;
    text-align: center;
    margin-top: 5px;
}

.empty-digit {
    color: #6c757d;
    font-style: italic;
}

.result-comparison {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.digit-feedback {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.digit-box {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    min-width: 100px;
}

.digit-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.high-confidence {
    color: #28a745;
}

.medium-confidence {
    color: #ffc107;
}

.low-confidence {
    color: #dc3545;
}

#numberInfo {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    text-align: center;
}

#numberInWords {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #343a40;
}

#numberFactorial {
    font-size: 1.1em;
    color: #495057;
}

/* Estilos adaptativos para móviles */
@media (max-width: 800px) {
    #canvas {
        width: 100%;
        height: 200px;
    }

    #cameraFeed, #cameraCanvas {
        width: 100%;
    }

    body {
        padding: 10px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    #canvas {
        height: 150px;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    button {
        width: 100%;
        margin-bottom: 5px;
    }
}
</pre></body></html>