
body {
    background-color: #0f172a;
    color: #e2e8f0;
    display: flex;
    font-family: 'Inter', sans-serif;
    justify-content: center;
    margin: 0;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    gap: 1.5rem;
}
.menu {
    width: -webkit-fill-available;
    height: -webkit-fill-available;
}

canvas {
    display: block;
}


#gameCanvas {
    width: 100%;
    height: 60vh;
    background-color: #1e293b;
    border-radius: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

#info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.panel {
    background-color: #1e293b;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 8px;
    max-width: 350px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #94a3b8;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #cbd5e1;
}


input[type="checkbox"] {
    background-color: #334155;
    color: #e2e8f0;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #475569;
    -moz-appearance: textfield;
    accent-color: #334155;
}
input[type="text"] {
    background-color: #334155;
    color: #e2e8f0;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #475569;
    -moz-appearance: textfield;
}
input[type="number"] {
    background-color: #334155;
    color: #e2e8f0;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #475569;
    -moz-appearance: textfield;
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 0.25rem;
    background: #475569;
    border-radius: 0.25rem;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

select {
    background-color: #334155;
    color: #e2e8f0;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #475569;
}

button {
    background-color: #38bdf8;
    color: #0f172a;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: background-color 0.2s;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}

button:hover {
    background-color: #0ea5e9;
}

.loading-screen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.25s ease-in-out;
}
.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-screen > div {
    width: 60%;
    margin: 8px;
}
li {
    margin-left: 32px;
}