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

body {
    overflow: hidden;
    background: #000;
    font-family: 'Press Start 2P', monospace;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

#scene-container canvas {
    display: block;
}

/* Amiga Workbench 1.x Title Bar */
#title-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #0055AA;
    display: flex;
    align-items: center;
    z-index: 100;
    border-bottom: 2px solid #FF8800;
    gap: 0;
}

.title-stripes {
    flex: 1;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        #0055AA 0px,
        #0055AA 2px,
        #FFFFFF 2px,
        #FFFFFF 4px
    );
    opacity: 0.5;
}

.title-text {
    color: #FFFFFF;
    font-size: 11px;
    padding: 0 12px;
    white-space: nowrap;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 #000;
}

/* Controls Panel */
#controls-panel {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 85, 170, 0.88);
    border: 3px solid #FF8800;
    border-radius: 0;
    padding: 12px 16px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 300px;
    box-shadow: 
        inset 1px 1px 0 #6699CC,
        inset -1px -1px 0 #003366,
        4px 4px 0 rgba(0,0,0,0.5);
}

.control-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amiga-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: #000;
    background: #FF8800;
    border: 2px outset #FFAA44;
    padding: 6px 12px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.05s;
    white-space: nowrap;
}

.amiga-btn:hover {
    background: #FFAA44;
}

.amiga-btn:active {
    border-style: inset;
    background: #CC6600;
}

.ball-counter {
    color: #FFFFFF;
    font-size: 8px;
    margin-left: auto;
    text-shadow: 1px 1px 0 #000;
}

.slider-label {
    color: #FFFFFF;
    font-size: 8px;
    min-width: 55px;
    text-shadow: 1px 1px 0 #000;
}

.amiga-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 8px;
    background: #003366;
    border: 2px inset #002244;
    outline: none;
    cursor: pointer;
}

.amiga-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 18px;
    background: #FF8800;
    border: 2px outset #FFAA44;
    cursor: pointer;
}

.amiga-slider::-moz-range-thumb {
    width: 14px;
    height: 18px;
    background: #FF8800;
    border: 2px outset #FFAA44;
    cursor: pointer;
    border-radius: 0;
}

/* Footer */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #0055AA;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-top: 2px solid #FF8800;
}

#footer a {
    color: #FF8800;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    text-decoration: none;
    letter-spacing: 1px;
}

#footer a:hover {
    color: #FFFFFF;
}

/* Mobile */
@media (max-width: 520px) {
    #controls-panel {
        min-width: unset;
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        transform: none;
        bottom: 36px;
        padding: 8px 10px;
    }

    .title-text {
        font-size: 8px;
        padding: 0 6px;
    }

    .amiga-btn {
        font-size: 7px;
        padding: 5px 8px;
    }

    .slider-label {
        font-size: 7px;
        min-width: 42px;
    }

    .ball-counter {
        font-size: 7px;
    }
}