* { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            background: #000;
            overflow: hidden;
            font-family: 'Roboto', sans-serif;
            width: 100vw;
            height: 100dvh;
        }

        #game-container {
            position: fixed;
            inset: 0;
            padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
            background: #000;
        }

        #unity-canvas {
            width: 100%;
            height: 100%;
            display: block;
            background: url('Build/BuildWeb.jpg') center / cover no-repeat;
        }

        /* Pop-up Disclaimer */
        #disclaimer-popup {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.95);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            padding: 20px;
        }

        .popup-box {
            background: #fff;
            width: 100%;
            max-width: 360px;
            border-radius: 15px;
            border: 3px solid #ffcc00;
            overflow: hidden;
            box-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
            animation: fadeIn 0.3s ease;
        }

        .popup-header {
            background: #d32f2f;
            color: #fff;
            padding: 15px;
            text-align: center;
            font-weight: bold;
            font-size: 18px;
        }

        .popup-body {
            padding: 20px;
            color: #333;
            font-size: 14px;
            line-height: 1.6;
        }

        .popup-body ul { margin-top: 10px; padding-left: 20px; }
        .popup-body li { margin-bottom: 8px; }

        .popup-footer {
            padding: 0 20px 20px;
            display: flex;
            gap: 10px;
        }

        .btn {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 25px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 13px;
        }

        .btn-confirm {
            background: #2563eb;
            color: #fff;
        }

        .btn-exit {
            background: #e0e0e0;
            color: #555;
        }

        .btn:active { transform: scale(0.95); }
        .btn-confirm:hover { background: #1d4ed8; }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Loading Overlay */
        #loading-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.95);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10;
        }
        #loading-text { color: #fff; font-size: 16px; margin-bottom: 12px; }
        #progress-bar { width: 70%; height: 8px; background: #333; border-radius: 10px; overflow: hidden; }
        #progress-bar-full { height: 100%; width: 0%; background: linear-gradient(90deg,#ff8a00,#e52e71); transition: width 0.2s; }

        @media (min-width: 1024px) {
            body { display: flex; justify-content: center; align-items: center; }
            body::before {
                content: ""; position: fixed; inset: 0;
                background: url('Build/BuildWeb.jpg') center / cover no-repeat;
                filter: blur(25px) brightness(0.6); z-index: -1;
            }
            #game-container {
                position: relative; aspect-ratio: 9 / 19; height: 100dvh;
                width: auto; border-radius: 12px; overflow: hidden;
                box-shadow: 0 0 40px rgba(0,0,0,0.8);
            }
        }