
        body {
            margin: 0;
            padding: 0;
            overflow: hidden;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #000;
        }

        #canvas-container {
            width: 100vw;
            height: 100vh;
            position: relative;
        }

        #ui-overlay {
            position: absolute;
            top: 20px;
            left: 20px;
            color: white;
            background: rgba(0, 0, 0, 0.7);
            padding: 15px;
            border-radius: 10px;
            backdrop-filter: blur(10px);
            max-width: 300px;
        }

        #dialogue-box {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            padding: 20px;
            border-radius: 15px;
            max-width: 600px;
            width: 90%;
            display: none;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(20px);
        }

        #dialogue-box h3 {
            margin: 0 0 10px 0;
            color: #D97356;
        }

        #dialogue-content {
            margin: 10px 0;
            line-height: 1.6;
            max-height: 200px;
            overflow-y: auto;
        }

        .dialogue-option {
            background: #f0f0f0;
            border: 2px solid #D97356;
            padding: 12px;
            margin: 8px 0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .dialogue-option:hover {
            background: #D97356;
            color: white;
            transform: translateX(5px);
        }

        #custom-question-container {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #ddd;
        }

        #custom-question-input {
            width: 100%;
            padding: 10px;
            border: 2px solid #D97356;
            border-radius: 8px;
            font-size: 14px;
            font-family: inherit;
            box-sizing: border-box;
        }

        #custom-question-submit {
            background: #D97356;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            margin-top: 8px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }

        #custom-question-submit:hover {
            background: #c85a3f;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        #custom-question-submit:disabled {
            background: #999;
            cursor: not-allowed;
            transform: none;
        }

        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(217, 115, 86, 0.3);
            border-radius: 50%;
            border-top-color: #D97356;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .instruction {
            opacity: 0.8;
            font-size: 14px;
            margin-top: 10px;
        }

        #interaction-prompt {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 10px 20px;
            border-radius: 20px;
            display: none;
            font-size: 14px;
        }

        .floating-text {
            position: absolute;
            color: #ff0;
            font-size: 24px;
            font-weight: bold;
            pointer-events: none;
            animation: floatUp 2s ease-out forwards;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        }

        @keyframes floatUp {
            0% {
                opacity: 1;
                transform: translateY(0);
            }

            100% {
                opacity: 0;
                transform: translateY(-100px);
            }
        }

        /* Mobile Touch Controls */
        #mobile-controls {
            position: fixed;
            bottom: 20px;
            left: 20px;
            right: 20px;
            display: none;
            z-index: 1000;
        }

        #virtual-joystick {
            position: absolute;
            bottom: 20px;
            left: 20px;
            width: 120px;
            height: 120px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            touch-action: none;
        }

        #joystick-knob {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.1s ease;
        }

        #mobile-action-buttons {
            position: absolute;
            bottom: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .mobile-btn {
            width: 60px;
            height: 60px;
            background: rgba(217, 115, 86, 0.8);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 18px;
            font-weight: bold;
            touch-action: manipulation;
            user-select: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-btn:active {
            background: rgba(217, 115, 86, 1);
            transform: scale(0.95);
        }

        #look-controls {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 100px;
            height: 100px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            touch-action: none;
        }

        #look-knob {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 30px;
            height: 30px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.1s ease;
        }

        /* Mobile Responsive Design */
        @media (max-width: 768px) {
            #mobile-controls {
                display: block;
            }

            #ui-overlay {
                top: 10px;
                left: 10px;
                right: 10px;
                max-width: none;
                padding: 10px;
                font-size: 14px;
            }

            #ui-overlay h2 {
                font-size: 18px;
                margin: 0 0 5px 0;
            }

            #ui-overlay p {
                margin: 3px 0;
                font-size: 12px;
            }

            #dialogue-box {
                bottom: 10px;
                left: 10px;
                right: 10px;
                width: auto;
                max-width: none;
                transform: none;
                padding: 15px;
                max-height: 60vh;
                overflow-y: auto;
            }

            #dialogue-content {
                max-height: 150px;
                font-size: 14px;
            }

            .dialogue-option {
                padding: 15px;
                margin: 10px 0;
                font-size: 16px;
                min-height: 44px;
                display: flex;
                align-items: center;
            }

            .dialogue-option:hover {
                transform: none;
            }

            #custom-question-input {
                font-size: 16px;
                padding: 12px;
                min-height: 44px;
            }

            #custom-question-submit {
                padding: 12px 20px;
                font-size: 16px;
                min-height: 44px;
            }

            #interaction-prompt {
                font-size: 16px;
                padding: 15px 25px;
            }
        }

        @media (max-width: 480px) {
            #virtual-joystick {
                width: 100px;
                height: 100px;
            }

            #joystick-knob {
                width: 35px;
                height: 35px;
            }

            .mobile-btn {
                width: 50px;
                height: 50px;
                font-size: 16px;
            }

            #look-controls {
                width: 80px;
                height: 80px;
            }

            #look-knob {
                width: 25px;
                height: 25px;
            }

            #ui-overlay {
                padding: 8px;
            }

            #ui-overlay h2 {
                font-size: 16px;
            }

            #ui-overlay p {
                font-size: 11px;
            }

            #dialogue-box {
                padding: 12px;
            }
        }

        /* Touch-friendly improvements */
        @media (hover: none) and (pointer: coarse) {
            .dialogue-option:hover {
                background: #f0f0f0;
                color: #333;
                transform: none;
            }

            .dialogue-option:active {
                background: #D97356;
                color: white;
            }

            #custom-question-submit:hover {
                background: #D97356;
                transform: none;
            }

            #custom-question-submit:active {
                background: #c85a3f;
            }
        }
