body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: #f5f5f5;
}

h1 {
    font-size: 20px;
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.controls label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.controls input[type="number"] {
    width: 90px;
    padding: 5px;
}

button {
    padding: 8px 14px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: #4CAF50;
    color: white;
    font-size: 14px;
    transition: background 0.2s;
}

button:hover {
    background: #45a049;
}

button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

#canvas {
    background: #fff;
    border: 2px solid #333;
    display: block;
    cursor: crosshair;
    user-select: none;
}

.info {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 15px;
    line-height: 1.6;
}

.info span {
    font-weight: bold;
    color: #2c3e50;
}

.hint {
    color: #666;
    font-size: 13px;
}

#resultCount {
    color: #e74c3c;
    font-size: 18px;
}

#resultTime {
    color: #2980b9;
    font-size: 18px;
}

#resultTimeDetails {
    color: #555;
    font-size: 13px;
}

.precision-note {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}