body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#app {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#bgCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#controls, #audioControls {
    position: absolute;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 250px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#controls {
    top: 20px;
}

#audioControls {
    top: auto;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#showMenuBtn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

h1 {
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    text-align: center;
}

#fpsCounter {
    font-family: monospace;
    font-size: 0.75rem;
    text-align: center;
    margin-bottom: 15px;
    opacity: 0.6;
}

.control-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 0.85rem;
    opacity: 0.8;
}

select, input[type="range"], input[type="color"], button {
    width: 100%;
    cursor: pointer;
}

input[type="range"] {
    display: flex;
}

#countValue, #speedValue {
    font-size: 0.75rem;
    text-align: right;
}

button {
    padding: 10px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background 0.2s;
    margin-bottom: 8px;
}

button:hover {
    background: #444;
}

.mic-active {
    background: #2ecc71 !important;
    box-shadow: 0 0 10px #2ecc71;
    font-weight: bold;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    align-items: center;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 1;
}
