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

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 20px;
    font-family: 'Arial', sans-serif;
}

#canvas {
    display: block;
    background-color: #000;
    border: 2px solid #333;
    cursor: grab;
}

#canvas:active {
    cursor: grabbing;
}

/* 情報パネル（右側） */
.info-panel {
    position: fixed;
    right: 20px;
    bottom: 40px;
    background: rgba(30, 30, 30, 0.95);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 11px;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.info-section {
    margin-bottom: 10px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-label {
    color: #999;
    font-size: 10px;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #4ecdc4;
    font-size: 13px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* コントローラー（下部） */
.controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(40, 40, 40, 0.9);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

button {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #ddd;
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.control-group input[type="range"] {
    width: 120px;
}

.control-group input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.value-display {
    min-width: 40px;
    text-align: center;
    font-weight: bold;
    color: #4ecdc4;
    font-family: 'Courier New', monospace;
}

/* 最終更新表示 */
.last-updated {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 12px;
    color: #666;
    z-index: 50;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .controls {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 6px;
    }
    
    .control-group {
        font-size: 10px;
    }
    
    button {
        padding: 6px 12px;
        font-size: 10px;
    }
}
