* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    display: flex;
}

#canvas {
    background: #000;
}

#telemetry {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #0f0;
    font-size: 13px;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border: 1px solid #0f0;
    border-radius: 5px;
    min-width: 280px;
}

#telemetry h3 {
    color: #0ff;
    margin-bottom: 10px;
    border-bottom: 1px solid #0ff;
    padding-bottom: 5px;
}

.section {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.label {
    color: #888;
}

.value {
    color: #0f0;
    float: right;
}

#controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

button {
    background: #222;
    color: #0f0;
    border: 1px solid #0f0;
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    background: #0f0;
    color: #000;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#events {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #0ff;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border: 1px solid #0ff;
    border-radius: 5px;
    max-width: 250px;
    max-height: 300px;
    overflow-y: auto;
}

#burn-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #0ff;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border: 1px solid #0ff;
    border-radius: 5px;
    min-width: 150px;
}

#burn-controls button {
    width: 100%;
    padding: 8px;
    font-size: 11px;
}

#burn-controls button.active {
    background: #0ff;
    color: #000;
}

#events h3 {
    margin-bottom: 10px;
    border-bottom: 1px solid #0ff;
    padding-bottom: 5px;
}

.event {
    margin: 5px 0;
    padding: 3px 0;
    border-bottom: 1px solid #333;
    font-size: 11px;
}

.event-time {
    color: #888;
}

#pitch-program {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #f80;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border: 1px solid #f80;
    border-radius: 5px;
    width: 200px;
}

#pitch-program h3 {
    margin-bottom: 10px;
    border-bottom: 1px solid #f80;
    padding-bottom: 5px;
}

.pitch-bar {
    width: 100%;
    height: 20px;
    background: #333;
    margin-top: 10px;
    position: relative;
}

.pitch-indicator {
    height: 100%;
    background: linear-gradient(90deg, #f80, #ff0);
    transition: width 0.1s;
}

#tminus-display {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #0ff;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    border: 2px solid #0ff;
    border-radius: 5px;
    text-align: center;
    display: none;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

#tminus-display .tminus-time {
    font-size: 32px;
    color: #0ff;
    margin-bottom: 5px;
}

#tminus-display .tminus-event {
    font-size: 14px;
    color: #0f0;
    text-transform: uppercase;
}

/* Menu Panel */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    border-left: 2px solid #0ff;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

#menu-panel.show {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0ff;
}

.menu-header h2 {
    color: #0ff;
    font-size: 24px;
    margin: 0;
}

.menu-close {
    background: transparent;
    border: 1px solid #0ff;
    color: #0ff;
    font-size: 28px;
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.menu-close:hover {
    background: #0ff;
    color: #000;
}

.current-mode {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #0ff;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    color: #0ff;
    font-size: 14px;
}

.menu-section {
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid #0ff;
    border-radius: 5px;
}

.menu-section h3 {
    color: #0ff;
    margin-bottom: 10px;
    font-size: 18px;
}

.menu-description {
    color: #888;
    font-size: 12px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.menu-input-group {
    margin-bottom: 15px;
}

.menu-input-group label {
    display: block;
    color: #0ff;
    margin-bottom: 5px;
    font-size: 12px;
}

.menu-input-group input {
    width: 100%;
    padding: 8px;
    background: #222;
    border: 1px solid #0ff;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.menu-input-group input:focus {
    outline: none;
    border-color: #0f0;
    background: #333;
}

.menu-preset-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.preset-btn {
    flex: 1;
    min-width: 60px;
    padding: 8px;
    background: #222;
    border: 1px solid #0ff;
    color: #0ff;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: #0ff;
    color: #000;
}

.preset-btn.active {
    background: #0ff;
    color: #000;
    font-weight: bold;
}

.menu-start-btn {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 2px solid #0ff;
    color: #0ff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-start-btn:hover {
    background: #0ff;
    color: #000;
}

/* Manual Pitch Controls */
#manual-pitch-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #f80;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border: 1px solid #f80;
    border-radius: 5px;
    width: 200px;
}

#manual-pitch-controls h3 {
    margin-bottom: 10px;
    border-bottom: 1px solid #f80;
    padding-bottom: 5px;
    color: #f80;
}

.pitch-display {
    text-align: center;
    margin-bottom: 15px;
}

#manual-pitch-display {
    font-size: 32px;
    color: #f80;
    font-weight: bold;
    margin-bottom: 5px;
}

.guidance-recommendation {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
}

.guidance-recommendation span {
    color: #0ff;
}

.pitch-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pitch-buttons button {
    width: 100%;
    padding: 10px;
    font-size: 11px;
    background: #222;
    border: 1px solid #f80;
    color: #f80;
}

.pitch-buttons button:hover {
    background: #f80;
    color: #000;
}

