body {
    font-family: 'Roboto Mono', monospace;
    background-color: #0c0d11;
    color: #d0d0d0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
}

canvas {
    background-color: #1a1c23;
    cursor: none;
    display: block;
    width: 100%;
    height: 100%;
}

.ui-screen {
    background: rgba(12, 13, 17, 0.9);
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.btn {
    transition: all 0.2s ease-in-out;
    pointer-events: all;
    touch-action: manipulation;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 255, 255, 0.2);
}

.btn:active {
    transform: translateY(0);
}

/* Responsive UI adjustments */
@media (max-width: 768px) {
    .ui-screen .text-5xl {
        font-size: 2.5rem;
    }
    
    .ui-screen .text-2xl {
        font-size: 1.25rem;
    }
    
    .ui-screen .py-3 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .ui-screen .px-12 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .ui-screen .p-8 {
        padding: 1.5rem;
    }
    
    .ui-screen .mb-8 {
        margin-bottom: 1.5rem;
    }
    
    .ui-screen .mb-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .ui-screen .text-5xl {
        font-size: 2rem;
    }
    
    .ui-screen .text-2xl {
        font-size: 1.125rem;
    }
    
    .ui-screen .py-3 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .ui-screen .px-12 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .ui-screen .p-8 {
        padding: 1rem;
    }
    
    .ui-screen .mb-8 {
        margin-bottom: 1rem;
    }
    
    .ui-screen .mb-6 {
        margin-bottom: 0.75rem;
    }
}

/* Top UI bar responsive adjustments */
@media (max-width: 768px) {
    .absolute.top-4.inset-x-4 {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .absolute.top-4.inset-x-4 {
        font-size: 0.75rem;
        padding: 0.25rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .absolute.top-4.inset-x-4 p {
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }
}

/* Mobile Circle Controller Styles */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

.controller-container {
    position: relative;
    width: 120px;
    height: 120px;
    pointer-events: none;
}

.controller-outer {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.3) 0%, rgba(52, 152, 219, 0.1) 50%, rgba(52, 152, 219, 0.05) 100%);
    border: 3px solid rgba(52, 152, 219, 0.4);
    box-shadow: 
        0 0 20px rgba(52, 152, 219, 0.3),
        inset 0 0 20px rgba(52, 152, 219, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    pointer-events: all;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.controller-outer:active {
    transform: scale(1.05);
    box-shadow: 
        0 0 25px rgba(52, 152, 219, 0.5),
        inset 0 0 25px rgba(52, 152, 219, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.4);
}

.controller-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border: 2px solid rgba(52, 152, 219, 0.8);
    box-shadow: 
        0 0 15px rgba(52, 152, 219, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.8),
        inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.controller-inner:active {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow: 
        0 0 20px rgba(52, 152, 219, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.9),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.controller-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 1) 0%, rgba(52, 152, 219, 0.8) 100%);
    box-shadow: 
        0 0 8px rgba(52, 152, 219, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Controller Animation States */
.controller-inner.dragging {
    transform: scale(1.15);
    box-shadow: 
        0 0 25px rgba(52, 152, 219, 0.7),
        inset 0 2px 5px rgba(255, 255, 255, 0.9),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.controller-outer.active {
    background: radial-gradient(circle, rgba(52, 152, 219, 0.4) 0%, rgba(52, 152, 219, 0.2) 50%, rgba(52, 152, 219, 0.1) 100%);
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 
        0 0 25px rgba(52, 152, 219, 0.4),
        inset 0 0 25px rgba(52, 152, 219, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .controller-container {
        width: 100px;
        height: 100px;
    }
    
    .controller-outer {
        width: 100px;
        height: 100px;
    }
    
    .controller-inner {
        width: 42px;
        height: 42px;
        margin: -21px 0 0 -21px;
    }
    
    .controller-center {
        width: 10px;
        height: 10px;
        margin: -5px 0 0 -5px;
    }
}

/* Hide controller on desktop */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}