html, body { margin: 0; overflow: hidden; font-family: 'Inter', sans-serif; width: 100%; height: 100%; }
a { color: white; }
#loading-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #1a1a1a; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; z-index: 200; transition: opacity 0.75s ease; padding-top: 5vh; box-sizing: border-box; }
#loading-overlay.fade-out { opacity: 0; pointer-events: none; }
#loading-logo { width: 150px; margin-bottom: 25px; }
.spinner { border: 4px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top: 4px solid white; width: 50px; height: 50px; animation: spin 1s linear infinite; margin-bottom: 25px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#instructions-content { background-color: rgba(26, 26, 26, 0.9); padding: 20px; border-radius: 10px; border: 1px solid white; max-width: 500px; width: 90%; color: white; text-align: center; display: flex; flex-direction: column; align-items: center; transition: opacity 0.5s ease; }
#enter-gallery-btn { margin-top: 20px; padding: 10px 25px; font-size: 1em; font-weight: bold; background-color: transparent; color: white; border: 1px solid white; border-radius: 0; cursor: pointer !important; transition: background-color 0.3s ease; appearance: none; -webkit-appearance: none; -moz-appearance: none; }
#enter-gallery-btn:hover { background-color: white; color: black; }
#container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; touch-action: none; }
#crosshair { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border: 1px solid white; border-radius: 50%; transform: translate(-50%, -50%); display: none; }
#info-panel { position: absolute; top: 20px; right: 20px; width: 250px; max-width: 90%; background-color: rgba(0, 0, 0, 0.7); color: white; border-radius: 10px; padding: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); transform: translateX(120%); transition: transform 0.5s ease-in-out; visibility: hidden; z-index: 100; }
#info-panel.visible { transform: translateX(0); visibility: visible; }
#info-panel h2 { margin-top: 0; font-size: 1.3em; }
.joystick-zone { position: absolute; bottom: 30px; width: 150px; height: 150px; display: none; z-index: 50; }
#joystick-zone-left { left: 30px; }
#persistent-info-panel { position: absolute; top: 20px; right: 20px; width: 15%; max-width: 200px; min-width: 120px; background-color: rgba(0, 0, 0, 0.7); color: white; border-radius: 10px; padding: 10px; z-index: 90; display: none; }
#mobile-controls-right { display: none; position: absolute; bottom: 30px; right: 30px; flex-direction: column; gap: 10px; z-index: 50; }
.mobile-action-button { width: 70px; height: 70px; border: 1px solid white; background-color: rgba(0, 0, 0, 0.5); color: white; font-size: 1em; font-weight: bold; display: flex; justify-content: center; align-items: center; cursor: pointer; user-select: none; }
#desktop-instructions { position: absolute; left: 20px; bottom: 20px; width: 200px; background-color: rgba(0, 0, 0, 0.5); color: white; padding: 10px; border-radius: 8px; display: none; z-index: 99; }
#controls-container { position: absolute; top: 20px; left: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: center; }
#color-picker { width: 100px; height: 40px; border: 2px solid white; border-radius: 5px; cursor: pointer; padding: 0; background-color: transparent; }
#size-slider-container { background-color: rgba(0, 0, 0, 0.5); padding: 8px 12px; border-radius: 8px; color: white; display: flex; align-items: center; flex-direction: column; text-align: center; }
#size-slider-container label { margin-bottom: 5px; font-size: 0.9em; }
#loading-text { color: white; font-size: 1.2em; font-weight: bold; margin-bottom: 20px; letter-spacing: 2px; min-height: 1.5em; }
@keyframes pulse { 0%   { opacity: 0.2; } 40%  { opacity: 1.0; } 100% { opacity: 0.2; } }
.loading-letter { animation-name: pulse; animation-duration: 1.4s; animation-iteration-count: infinite; animation-fill-mode: both; }
.status-complete { color: #4CAF50; font-weight: bold; }
@media (max-width: 768px) { #persistent-info-panel { display: block; } .joystick-zone { display: block; } #mobile-controls-right { display: flex; } #info-panel { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-width: 100%; border-radius: 10px 10px 0 0; transform: translateY(100%); } #info-panel.visible { transform: translateY(0); } }