#gameCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    cursor: crosshair;
    touch-action: none;
    z-index: 1;
}

.controls-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 32px;
    height: 32px;
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(60, 60, 60, 0.6);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.controls-toggle:hover {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(100, 100, 100, 0.8);
    color: rgba(255, 255, 255, 0.9);
}

.controls-panel {
    position: fixed;
    top: 55px;
    left: 15px;
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(50, 50, 50, 0.6);
    border-radius: 8px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    backdrop-filter: blur(8px);
    z-index: 999;
}

.controls-panel.active {
    display: flex;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.control-label {
    font-size: 11px;
    color: rgba(170, 170, 170, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buttons-row {
    gap: 4px;
    flex-wrap: wrap;
}

button {
    padding: 6px 10px;
    background: rgba(35, 35, 35, 0.7);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(70, 70, 70, 0.6);
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    flex: auto;
    min-width: 50px;
}

button:hover {
    background: rgba(50, 50, 50, 0.8);
    border-color: rgba(100, 100, 100, 0.8);
}

button:disabled {
    background: rgba(20, 20, 20, 0.4);
    color: rgba(100, 100, 100, 0.6);
    cursor: not-allowed;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="range"] {
    flex: 1;
    height: 3px;
    background: rgba(50, 50, 50, 0.6);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
}

.stats {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(50, 50, 50, 0.6);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11px;
    display: none;
    gap: 12px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 100;
}

.stats.visible {
    display: flex;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.stat-label {
    font-size: 9px;
    color: rgba(136, 136, 136, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hint {
    position: fixed;
    bottom: 15px;
    left: 15px;
    font-size: 10px;
    color: rgba(100, 100, 100, 0.7);
    max-width: 180px;
    z-index: 100;
}