* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; } .container { background: white; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; max-width: 1200px; width: 100%; } .header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 24px; text-align: center; } h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; } .status { font-size: 14px; opacity: 0.9; } .content { padding: 24px; } .video-container { position: relative; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 24px; } #outputCanvas { width: 100%; height: auto; display: block; cursor: crosshair; } #outputCanvas.drawing { cursor: crosshair; } #videoInput { display: none; } .controls { text-align: center; margin-bottom: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; } .camera-select { padding: 12px; border-radius: 8px; border: 1px solid #ddd; font-size: 16px; min-width: 250px; background: white; cursor: pointer; transition: all 0.2s; } .camera-select:hover { border-color: #667eea; box-shadow: 0 0 0 1px #667eea; } .camera-select:focus { outline: none; border-color: #764ba2; box-shadow: 0 0 0 2px rgba(118, 75, 162, 0.3); } button { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 12px 32px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform 0.2s; } button:hover { transform: translateY(-2px); } button:disabled { opacity: 0.5; cursor: not-allowed; } button.draw-mode { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); } button.grid-mode { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); } .hint { text-align: center; color: #666; font-size: 14px; margin-bottom: 16px; padding: 8px; background: #f0f0f0; border-radius: 8px; } .hint.active { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; padding: 16px; text-align: left; } .hint.active strong { display: block; margin-bottom: 8px; font-size: 16px; } .hint.active button { cursor: pointer; transition: all 0.2s; } .hint.active button:hover { opacity: 0.9; transform: translateY(-1px); } .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; } .stat-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px; border-radius: 12px; text-align: center; } .stat-label { font-size: 14px; opacity: 0.9; margin-bottom: 8px; } .stat-value { font-size: 32px; font-weight: 700; } .chart-container { background: white; padding: 20px; border-radius: 12px; margin-top: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); } .footer { text-align: center; padding: 16px; color: #666; font-size: 14px; } @media (max-width: 768px) { h1 { font-size: 24px; } .stat-value { font-size: 28px; } .controls { flex-direction: column; align-items: center; } }