body { margin: 0; overflow: hidden; font-family: 'MedievalSharp', 'Garamond', serif; background-color: #1a1a1a; color: #e0e0e0; }
#scene-container { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; }
#ui-panel { position: absolute; top: 20px; left: 20px; width: 300px; background: rgba(10, 5, 0, 0.75); border: 2px solid #5a3e2b; border-radius: 8px; padding: 20px; box-shadow: 0 4px 25px rgba(0,0,0,0.7), inset 0 0 15px rgba(0,0,0,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #5a3e2b #2a1e1b; }
h1 { margin-top: 0; font-size: 2em; color: #f4c542; text-align: center; border-bottom: 2px solid #5a3e2b; padding-bottom: 15px; margin-bottom: 15px; text-shadow: 2px 2px 4px #000; }
hr { border: none; border-top: 1px solid #5a3e2b; margin: 25px 0; }
.control-group { margin-bottom: 15px; }
.control-group h3 { margin: 0 0 10px 0; font-size: 1.1em; color: #c5a075; text-transform: uppercase; letter-spacing: 1px; }
.button-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.material-options { display: flex; gap: 5px; margin-top: 8px; }
.material-options button { flex: 1; padding: 5px; font-size: 0.8em; background: #3a1e0b; border: 1px solid #5a3e2b; color: #c5a075; cursor: pointer; transition: all 0.2s ease-in-out; }
#hilt-material-controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.material-options button.active { background: #e0b43a; color: #111; border-color: #fff; }
.button-grid button { padding: 10px; background: #4a2e1b; border: 2px solid #6a4e3b; color: #e0e0e0; cursor: pointer; border-radius: 4px; transition: all 0.2s ease-in-out; font-family: inherit; font-size: 0.9em; }
.button-grid button:hover, .material-options button:hover { background: #6a4e3b; border-color: #f4c542; }
.button-grid button.active { background: #f4c542; color: #111; font-weight: bold; border-color: #fff; box-shadow: 0 0 10px #f4c542; }
.slider-group { margin-bottom: 15px; padding-left: 10px; border-left: 2px solid #5a3e2b; }
.slider-group label { display: block; margin: 10px 0 5px; }
.slider-group input[type="range"], .slider-group input[type="color"] { width: 100%; box-sizing: border-box; }
.action-buttons { display: flex; gap: 10px; margin-top: 15px; }
.action-buttons button { flex: 1; padding: 10px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 1.1em; font-family: inherit; transition: all 0.2s ease-in-out; }
#center-camera-btn { background: #4a2e1b; border: 2px solid #6a4e3b; color: #e0e0e0; }
#center-camera-btn:hover { background: #6a4e3b; border-color: #f4c542; }
#randomize-btn { background: #8c2b2b; border: 2px solid #ac4b4b; color: #e0e0e0; }
#randomize-btn:hover { background: #ac4b4b; border-color: #ff6b6b; }
#loading-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #111; display: flex; justify-content: center; align-items: center; flex-direction: column; color: #fff; font-size: 1.5em; z-index: 100; transition: opacity 0.5s ease; }
.loader { width: 60px; height: 60px; border: 5px solid #444; border-top-color: #f4c542; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.ui-disabled { opacity: 0.6; pointer-events: none; }
details summary { cursor: pointer; list-style: none; } /* Hide the default arrow */
details summary::-webkit-details-marker { display: none; }
details summary h3 { display: inline-block; position: relative; padding-left: 20px; }
details summary h3::before { content: '▶'; position: absolute; left: 0; top: 0; transform: rotate(0deg); transition: transform 0.2s; }
details[open] summary h3::before { transform: rotate(90deg); }
.dev-tool-group { margin-bottom: 10px; padding: 10px; border: 1px solid #4a2e1b; border-radius: 4px; }
.dev-tool-group h4 { margin: 0 0 10px; color: #f4c542; }
.dev-slider { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.dev-slider label { flex-basis: 25px; font-size: 0.9em; }
.dev-slider input { flex-grow: 1; }
.dev-slider span { flex-basis: 40px; text-align: right; font-family: monospace; font-size: 0.9em; }