    body { margin: 0; overflow: hidden; background: #000000; font-family: 'Helvetica Neue', Arial, sans-serif; }
    #drawCanvas { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
    
    #ui { 
      position: fixed; top: 20px; right: 20px; z-index: 10; color: rgba(0,0,0,0.78); 
      background: transparent; padding: 10px;
      font-size: 14px; line-height: 1.6; text-align: right;
      display: none;
    }
    
    .legend { font-size: 12px; color: #111111; margin-bottom: 15px; text-align: right; opacity: 0.75;}
    
    .controls { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
    button { 
      background: transparent; border: 1px solid rgba(0,0,0,0.7); color: #111111;
      padding: 6px 12px; border-radius: 4px; cursor: pointer; transition: all 0.3s;
    }
    button:hover { background: rgba(0,0,0,0.08); border-color: #000000; }
    button.active { background: #111111; border-color: #111111; color: #ffffff;}

    #input_video { 
      position: fixed; 
      width: 1px; 
      height: 1px; 
      left: -10000px;
      top: -10000px;
      z-index: -1;
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.8);
      border-radius: 0;
      object-fit: cover; 
      opacity: 0;
      pointer-events: none;
    }
    
    #virtualCursor {
      position: fixed; width: 18px; height: 18px;
      background: rgba(255, 255, 255, 0.15);
      border: 2px solid #ffffff; border-radius: 50%;
      box-shadow: 0 0 0 2px #000000, 0 0 18px rgba(255,255,255,0.95);
      transform: translate(-50%, -50%);
      z-index: 20; pointer-events: none;
      display: none; 
      transition: width 0.1s, height 0.1s, background 0.1s;
    }
    #virtualCursor.drawing {
      width: 28px; height: 28px;
      background: #ffffff;
      border-color: #ffffff;
      box-shadow: 0 0 0 3px #000000, 0 0 24px rgba(255,255,255,1);
    }

    #gestureGuide {
      position: fixed;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -45%);
      z-index: 45;
      width: min(86vw, 860px);
      color: #ffffff;
      font-family: 'Helvetica Neue', Arial, sans-serif;
      font-size: clamp(28px, 5vw, 68px);
      font-weight: 700;
      line-height: 1.04;
      letter-spacing: 0;
      text-align: center;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      text-shadow: 0 0 18px rgba(0,0,0,0.85), 0 0 4px rgba(0,0,0,1);
      transition: opacity 0.75s ease, transform 0.75s ease, visibility 0s linear 0.75s;
    }

    #gestureGuide.visible {
      opacity: 1;
      visibility: visible;
      transform: translate(-50%, -50%);
      transition: opacity 0.75s ease, transform 0.75s ease;
    }

    #gestureGuide.vr-hidden {
      opacity: 0 !important;
      visibility: hidden !important;
    }

    #gestureGuide span {
      display: block;
      margin-top: 0.22em;
      font-size: 0.58em;
      font-weight: 500;
      opacity: 0.86;
    }
