* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #121214;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    user-select: none;
}

#ui-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #1e1e24;
    border-radius: 8px;
    border: 1px solid #333;
}

.ui-element {
    font-size: 16px;
    font-weight: bold;
    color: #3498db;
    min-width: 120px;
}

.ui-status {
    font-size: 18px;
    font-weight: bold;
    color: #f1c40f;
    min-width: 200px;
    text-align: center;
}

.ui-controls {
    display: flex;
    gap: 8px;
}

.ui-btn {
    background: #2a2a32;
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.ui-btn:hover:not(:disabled) {
    background: #3a3a42;
    border-color: #666;
}

.ui-btn:active:not(:disabled) {
    background: #1e1e24;
}

.ui-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #1e1e24;
}

.ui-speed {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.ui-select {
    background: #2a2a32;
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.ui-select:focus {
    outline: none;
    border-color: #3498db;
}

canvas {
    border: 1px solid #333;
    display: block;
    cursor: crosshair;
    width: 1200px;
    height: 900px;
}