body {
    margin: 0;
    background-color: #1a1a1a;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    background: #2a2a2a;
    padding: 25px;
    border-radius: 20px;
    width: 90vw;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
}

.control-panel {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 25px;
}

.rod-ctrl {
    background: #333;
    padding: 12px;
    border-radius: 12px;
    flex: 1;
}

.label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 0.9rem;
}

.digital-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.digital-input input {
    width: 45px;
    background: #000;
    color: #0f0;
    border: 1px solid #555;
    padding: 6px 2px;
    text-align: center;
    font-family: monospace;
    font-size: 1rem;
    border-radius: 4px;
}

.digital-input button {
    width: 28px;
    height: 28px;
    background: #555;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
}

.main-buttons {
    margin-bottom: 20px;
}

#startBtn {
    background: #27ae60;
    color: white;
    width: 180px;
    padding: 12px;
    border-radius: 30px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

#startBtn.active { background: #e74c3c; }

#resetBtn {
    background: #555;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

canvas {
    background: #111;
    border-radius: 15px;
    width: 100%;
    height: 380px;
    border: 1px solid #444;
}