* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: 'Segoe UI', Arial, sans-serif; }
#container { width: 100%; height: 100%; position: relative; }
#startScreen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 100; color: white; }
#startScreen h1 { font-size: 52px; margin-bottom: 5px; background: linear-gradient(135deg, #f39c12, #e74c3c, #f39c12); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 3s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
#startScreen .subtitle { font-size: 16px; color: #7f8c8d; margin-bottom: 8px; letter-spacing: 4px; }
#startScreen .version { font-size: 12px; color: #e74c3c; margin-bottom: 40px; }
#startBtn { padding: 20px 80px; font-size: 22px; background: linear-gradient(135deg, #e74c3c, #c0392b); border: none; border-radius: 50px; color: white; cursor: pointer; font-weight: bold; text-transform: uppercase; letter-spacing: 4px; box-shadow: 0 10px 40px rgba(231, 76, 60, 0.4); transition: all 0.3s; }
#startBtn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 50px rgba(231, 76, 60, 0.6); }
.features { display: flex; gap: 25px; margin-top: 50px; flex-wrap: wrap; justify-content: center; }
.feature { text-align: center; padding: 20px 15px; background: rgba(255,255,255,0.02); border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); width: 130px; }
.feature-icon { font-size: 32px; margin-bottom: 10px; }
.feature h3 { color: #f39c12; font-size: 12px; margin-bottom: 5px; }
.feature p { color: #666; font-size: 11px; }
#gameUI { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
#hud { position: absolute; top: 20px; left: 20px; background: rgba(10, 10, 20, 0.9); backdrop-filter: blur(10px); padding: 18px 22px; border-radius: 12px; color: #3498db; font-family: 'Consolas', monospace; font-size: 12px; border: 1px solid rgba(52, 152, 219, 0.3); min-width: 220px; }
#hud h3 { color: #f39c12; margin-bottom: 12px; font-size: 14px; letter-spacing: 3px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.hud-row { display: flex; justify-content: space-between; margin: 6px 0; padding: 4px 0; }
.hud-label { color: #666; font-size: 11px; }
.hud-value { color: #2ecc71; font-weight: bold; }
#cameraMode { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); padding: 10px 25px; border-radius: 25px; color: #f1c40f; font-size: 14px; font-weight: bold; letter-spacing: 2px; border: 1px solid rgba(241, 196, 15, 0.3); transition: all 0.3s ease; }
#vehicleHUD { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); background: rgba(5, 5, 15, 0.95); backdrop-filter: blur(15px); padding: 20px 30px; border-radius: 20px; color: white; display: none; border: 2px solid rgba(241, 196, 15, 0.4); }
#vehicleHUD h4 { text-align: center; color: #f1c40f; margin-bottom: 15px; font-size: 15px; letter-spacing: 3px; }
.gauge-container { display: flex; gap: 20px; align-items: center; justify-content: center; }
.analog-gauge { position: relative; width: 120px; height: 120px; }
.gauge-bg { width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(from 135deg, #1a1a2e 0deg, #2a2a4e 270deg, #1a1a2e 270deg); border: 3px solid #333; box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.3); }
.gauge-needle { position: absolute; bottom: 50%; left: 50%; width: 4px; height: 45px; background: linear-gradient(to top, #e74c3c, #ff6b6b); transform-origin: bottom center; transform: translateX(-50%) rotate(var(--rotation, -135deg)); border-radius: 2px; transition: transform 0.1s ease-out; box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); }
.gauge-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; background: radial-gradient(circle, #666, #333); border-radius: 50%; border: 2px solid #888; }
.gauge-value { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: bold; color: #2ecc71; text-shadow: 0 0 10px rgba(46, 204, 113, 0.5); }
.gauge-label { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.digital-stats { display: flex; flex-direction: column; gap: 8px; min-width: 100px; }
.stat-row { display: flex; justify-content: space-between; padding: 6px 12px; background: rgba(255,255,255,0.05); border-radius: 6px; border-left: 3px solid #3498db; }
.stat-row .label { color: #888; font-size: 10px; }
.stat-row .value { color: #2ecc71; font-weight: bold; font-size: 12px; }
.fuel-bar-container { width: 120px; text-align: center; }
.fuel-bar { width: 100%; height: 12px; background: #1a1a2e; border-radius: 6px; overflow: hidden; border: 1px solid #333; }
.fuel-bar-fill { height: 100%; background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71); transition: width 0.3s ease; box-shadow: 0 0 10px rgba(46, 204, 113, 0.3); }
.fuel-label { font-size: 10px; color: #888; margin-top: 4px; }
#excavatorControls { position: absolute; bottom: 180px; left: 50%; transform: translateX(-50%); background: rgba(255, 100, 0, 0.95); padding: 12px 25px; border-radius: 10px; color: white; font-size: 12px; display: none; border: 2px solid #ff6600; font-weight: bold; }
#taskPanel { position: absolute; top: 20px; right: 20px; width: 280px; background: rgba(10, 10, 20, 0.9); backdrop-filter: blur(10px); padding: 18px; border-radius: 12px; color: white; border: 1px solid rgba(241, 196, 15, 0.2); pointer-events: auto; max-height: 55vh; overflow-y: auto; }
#taskPanel h3 { color: #f1c40f; margin-bottom: 12px; font-size: 12px; letter-spacing: 3px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.task { padding: 10px 12px; margin: 6px 0; background: rgba(255,255,255,0.02); border-radius: 8px; border-left: 3px solid #444; transition: all 0.3s ease; }
.task.active { border-left-color: #f1c40f; background: rgba(241, 196, 15, 0.08); }
.task.completed { border-left-color: #2ecc71; background: rgba(46, 204, 113, 0.08); opacity: 0.7; }
.task h4 { font-size: 12px; margin-bottom: 3px; color: #ddd; }
.task p { font-size: 10px; color: #666; }
.task .distance { font-size: 10px; color: #f39c12; margin-top: 4px; }
#minimap { position: absolute; bottom: 20px; left: 20px; width: 180px; height: 180px; background: rgba(10, 10, 20, 0.95); border-radius: 10px; border: 2px solid rgba(241, 196, 15, 0.3); overflow: hidden; }
#minimapCanvas { width: 100%; height: 100%; }
#minimapLegend { position: absolute; bottom: 205px; left: 20px; background: rgba(10, 10, 20, 0.9); padding: 8px 12px; border-radius: 8px; color: #888; font-size: 10px; }
#minimapLegend span { margin-right: 10px; }
.legend-truck { color: #ffcc00; }
.legend-excavator { color: #ff6600; }
.legend-dozer { color: #ffff00; }
.legend-player { color: #00ff88; }
#crosshair { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; transition: transform 0.1s ease; }
.crosshair-dot { width: 4px; height: 4px; background: rgba(255,255,255,0.9); border-radius: 50%; box-shadow: 0 0 10px rgba(255,255,255,0.5); }
.crosshair-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; transition: all 0.2s ease; }
#interactPrompt { position: absolute; bottom: 200px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, rgba(241, 196, 15, 0.95), rgba(243, 156, 18, 0.95)); padding: 14px 40px; border-radius: 30px; color: #1a1a2e; font-size: 15px; font-weight: bold; display: none; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.02); } }
#instructions { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(10, 10, 20, 0.9); padding: 12px 25px; border-radius: 25px; color: #666; font-size: 11px; transition: opacity 0.3s ease; }
#instructions kbd { background: rgba(255,255,255,0.1); padding: 3px 8px; border-radius: 4px; margin: 0 2px; color: #ddd; border: 1px solid rgba(255,255,255,0.1); }
#notification { position: absolute; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px); background: linear-gradient(135deg, #27ae60, #2ecc71); padding: 14px 40px; border-radius: 10px; color: white; font-weight: bold; font-size: 14px; opacity: 0; transition: all 0.3s ease; pointer-events: none; }
#notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#waypointArrow { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 10px; background: rgba(241, 196, 15, 0.2); padding: 8px 20px; border-radius: 20px; border: 1px solid rgba(241, 196, 15, 0.4); }
#waypointArrow .arrow { font-size: 24px; transition: transform 0.2s ease; }
#waypointArrow .distance { color: #f1c40f; font-weight: bold; font-size: 14px; }
#settingsPanel { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(10, 10, 20, 0.98); padding: 30px 40px; border-radius: 20px; color: white; display: none; z-index: 200; min-width: 350px; border: 2px solid rgba(241, 196, 15, 0.3); pointer-events: auto; }
#settingsPanel h2 { color: #f1c40f; margin-bottom: 25px; text-align: center; letter-spacing: 3px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; margin: 15px 0; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.setting-row label { color: #aaa; font-size: 14px; }
.setting-row input[type="range"] { width: 120px; accent-color: #f1c40f; }
.setting-row select { background: #2a2a4e; color: white; border: 1px solid #444; padding: 8px 15px; border-radius: 5px; cursor: pointer; }
.setting-value { color: #2ecc71; min-width: 40px; text-align: right; }
#closeSettings { width: 100%; margin-top: 20px; padding: 12px; background: linear-gradient(135deg, #e74c3c, #c0392b); border: none; border-radius: 8px; color: white; font-weight: bold; cursor: pointer; transition: transform 0.2s; }
#closeSettings:hover { transform: scale(1.02); }
.button-row { position: absolute; top: 220px; left: 20px; display: flex; flex-direction: column; gap: 8px; }
.ui-btn { background: rgba(10, 10, 20, 0.9); border: 1px solid rgba(255,255,255,0.1); color: #aaa; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 11px; pointer-events: auto; transition: all 0.2s ease; }
.ui-btn:hover { background: rgba(30, 30, 50, 0.9); color: #fff; }
#loading { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #0a0a0f; display: none; justify-content: center; align-items: center; flex-direction: column; z-index: 200; }
.loader-ring { width: 80px; height: 80px; border: 4px solid rgba(255,255,255,0.05); border-top: 4px solid #f1c40f; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 25px; }
@keyframes spin { to { transform: rotate(360deg); } }
#loadingText { color: #666; font-size: 14px; letter-spacing: 3px; }
#loadingProgress { width: 250px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 20px; overflow: hidden; }
#loadingBar { height: 100%; width: 0%; background: linear-gradient(90deg, #f39c12, #e74c3c); transition: width 0.3s ease; }
#loadingTip { color: #888; font-size: 12px; margin-top: 30px; max-width: 400px; text-align: center; font-style: italic; }
#compass { position: absolute; top: 55px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.6); padding: 5px 20px; border-radius: 15px; color: #666; font-size: 11px; letter-spacing: 8px; }
#compass .active { color: #f1c40f; font-weight: bold; }
#timeIndicator { position: absolute; top: 180px; left: 20px; background: rgba(10, 10, 20, 0.9); padding: 10px 15px; border-radius: 8px; display: flex; align-items: center; gap: 10px; }
.sun-icon { font-size: 20px; transition: all 0.5s ease; }
.time-bar { width: 80px; height: 6px; background: linear-gradient(90deg, #1a1a3e, #f39c12, #1a1a3e); border-radius: 3px; position: relative; }
.time-marker { position: absolute; top: -2px; width: 10px; height: 10px; background: #f1c40f; border-radius: 50%; transform: translateX(-50%); transition: left 0.5s ease; box-shadow: 0 0 10px rgba(241, 196, 15, 0.5); }
#reverseWarning { position: absolute; bottom: 170px; left: 50%; transform: translateX(-50%); background: rgba(231, 76, 60, 0.9); padding: 8px 20px; border-radius: 5px; color: white; font-weight: bold; display: none; animation: blink 0.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
#damageOverlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; background: radial-gradient(circle, transparent 50%, rgba(231, 76, 60, 0.3) 100%); opacity: 0; transition: opacity 0.2s ease; }
#tutorialOverlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); display: none; justify-content: center; align-items: center; z-index: 150; }
.tutorial-box { background: rgba(20, 20, 40, 0.98); padding: 40px 50px; border-radius: 20px; max-width: 500px; text-align: center; border: 2px solid rgba(241, 196, 15, 0.3); }
.tutorial-box h2 { color: #f1c40f; margin-bottom: 20px; }
.tutorial-box p { color: #aaa; line-height: 1.8; margin-bottom: 25px; }
.tutorial-box kbd { background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 4px; color: #f1c40f; border: 1px solid rgba(255,255,255,0.2); }
#closeTutorial { padding: 12px 40px; background: linear-gradient(135deg, #f39c12, #e67e22); border: none; border-radius: 25px; color: white; font-weight: bold; cursor: pointer; transition: transform 0.2s; }
#closeTutorial:hover { transform: scale(1.05); }