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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    overflow: hidden;
    background: #000;
    color: #fff;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.controls {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    max-width: 300px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 1000;
}

.controls::-webkit-scrollbar {
    width: 8px;
}

.controls::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.controls::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.5);
    border-radius: 4px;
}

h1 {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.control-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #00ff00;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin: 0;
}

input[type="checkbox"] {
    margin-right: 5px;
    accent-color: #00ff00;
}

input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
    accent-color: #00ff00;
}

input[type="color"] {
    width: 100%;
    height: 30px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

button {
    flex: 1;
    padding: 10px;
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    color: #00ff00;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
}

button:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

button:active {
    transform: scale(0.95);
}

.lang-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#langSelect {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .controls {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 15px;
    }
    
    h1 {
        font-size: 1.2em;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .lang-switcher {
        bottom: 10px;
        right: 10px;
    }
}

/* フルスクリーン時のスタイル */
:fullscreen .controls,
:-webkit-full-screen .controls,
:-moz-full-screen .controls,
:-ms-fullscreen .controls {
    display: none;
}

:fullscreen .lang-switcher,
:-webkit-full-screen .lang-switcher,
:-moz-full-screen .lang-switcher,
:-ms-fullscreen .lang-switcher {
    display: none;
}