* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; font-family: 'Courier New', monospace; }
#gameCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: crosshair; display: block; }
#gameCanvas.cursor-move { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='%2300ff88' stroke-width='2'/%3E%3Cline x1='12' y1='4' x2='12' y2='20' stroke='%2300ff88' stroke-width='1.5'/%3E%3Cline x1='4' y1='12' x2='20' y2='12' stroke='%2300ff88' stroke-width='1.5'/%3E%3C/svg%3E") 12 12, crosshair; }
#gameCanvas.cursor-attack { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='%23ff2200' stroke-width='2'/%3E%3Cline x1='12' y1='4' x2='12' y2='20' stroke='%23ff2200' stroke-width='1.5'/%3E%3Cline x1='4' y1='12' x2='20' y2='12' stroke='%23ff2200' stroke-width='1.5'/%3E%3C/svg%3E") 12 12, crosshair; }
#ui-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
#top-bar { display: flex; justify-content: space-between; align-items: center; height: 36px; background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%); border-bottom: 2px solid #e94560; padding: 0 16px; pointer-events: auto; }
#top-bar * { color: #e0e0e0; font-size: 14px; font-weight: bold; text-shadow: 0 0 8px rgba(233,69,96,0.5); }
#money-display span { color: #ffd700; }
#sidebar { position: absolute; top: 36px; right: 0; width: 200px; height: calc(100% - 36px); background: linear-gradient(180deg, #1a1a2e 0%, #0f3460 100%); border-left: 2px solid #e94560; pointer-events: auto; display: flex; flex-direction: column; transition: transform 0.3s ease; z-index: 500; }
#sidebar.collapsed { transform: translateX(100%); }
#sidebar-toggle { position: fixed; top: 42px; right: 204px; width: 48px; height: 48px; z-index: 1000; background: rgba(26,26,46,0.85); color: #fff; border: 2px solid #e94560; border-radius: 8px; font-size: 22px; cursor: pointer; pointer-events: auto; display: flex; align-items: center; justify-content: center; transition: right 0.3s ease; touch-action: manipulation; }
#sidebar-toggle.sidebar-collapsed { right: 4px; }
#minimap-floating { display: none; position: fixed; bottom: 8px; left: 8px; width: 120px; height: 120px; background: rgba(10,10,26,0.8); border: 1px solid #e94560; border-radius: 8px; z-index: 900; pointer-events: auto; overflow: hidden; }
#minimap-floating canvas { width: 100%; height: 100%; }
#long-press-indicator { position: fixed; pointer-events: none; z-index: 999; display: none; }
#long-press-indicator.active { display: block; }
#minimap-container { padding: 8px; border-bottom: 2px solid #e94560; }
#minimap { width: 100%; height: 180px; background: #0a0a1a; border: 1px solid #333; }
#build-panel { flex: 1; overflow-y: auto; }
#build-panel .build-tabs { display: flex; flex-direction: row; width: 100%; }
.build-tab { flex: 1; text-align: center; padding: 4px 0; color: #aaa; font-size: 16px; cursor: pointer; border-bottom: 2px solid transparent; }
.build-tab.active { color: #e94560; border-bottom-color: #e94560; }
.build-tab:hover { color: #fff; }
#build-items { padding: 4px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.build-item { position: relative; width: 88px; height: 72px; background: rgba(255,255,255,0.05); border: 1px solid #333; border-radius: 4px; cursor: pointer; overflow: hidden; transition: all 0.2s; }
.build-item:hover { background: rgba(233,69,96,0.2); border-color: #e94560; }
.build-item.disabled { opacity: 0.4; cursor: not-allowed; }
.build-item canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.build-item .item-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7); color: #ccc; font-size: 9px; padding: 2px 4px; text-align: right; }
.build-item .item-cost { position: absolute; top: 2px; right: 4px; color: #ffd700; font-size: 9px; font-weight: bold; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
.build-item .queue-badge { position: absolute; top: 2px; left: 4px; background: #e94560; color: #fff; font-size: 9px; font-weight: bold; padding: 1px 5px; border-radius: 8px; min-width: 16px; text-align: center; }
.build-item .progress-bar { height: 3px; background: #333; margin-top: 4px; border-radius: 2px; overflow: hidden; }
.build-item .progress-fill { height: 100%; background: #e94560; transition: width 0.3s; }
#selection-info { padding: 8px; border-top: 2px solid #e94560; color: #ccc; font-size: 11px; min-height: 60px; }
#eva-message { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #00ff88; font-size: 16px; font-weight: bold; text-shadow: 0 0 10px #00ff88; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
#eva-message.show { opacity: 1; }
#version-info { position: fixed; bottom: 12px; left: 12px; color: rgba(255,255,255,0.6); font-size: 11px; font-family: 'Courier New', monospace; pointer-events: none; z-index: 9999; text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 6px rgba(0,0,0,0.5); background: rgba(0,0,0,0.3); padding: 2px 8px; border-radius: 4px; }
