
        :root {
            --primary: #00f0ff;
            --secondary: #7000ff;
            --bg-dark: #070913;
            --card-bg: rgba(18, 24, 43, 0.7);
            --text-glow: 0 0 12px rgba(0, 240, 255, 0.6);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            background-color: var(--bg-dark);
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            color: #ffffff;
            height: 100vh;
            height: 100dvh; /* Menyokong saiz viewport dinaik taraf pada telefon pintar */
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            padding: 12px;
        }

        /* Animated Grid Latar Belakang */
        .bg-grid {
            position: absolute;
            width: 200%;
            height: 200%;
            background-image: 
                linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            transform: perspective(500px) rotateX(60deg);
            z-index: 0;
            animation: gridMove 20s linear infinite;
        }

        @keyframes gridMove {
            0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
            100% { transform: perspective(500px) rotateX(60deg) translateY(40px); }
        }

        .dashboard-container {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 1300px;
            height: 100%;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .header-bar {
            background: var(--card-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 10px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
            position: relative;
            z-index: 999;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 16px;
            font-weight: 800;
            letter-spacing: 1px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            white-space: nowrap;
        }

        .nav-controls {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        /* --- DROPDOWN MENU --- */
        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(0, 240, 255, 0.4);
            color: #fff;
            padding: 8px 14px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
            white-space: nowrap;
        }

        .dropdown:hover .dropdown-btn {
            background: rgba(0, 240, 255, 0.15);
            border-color: var(--primary);
            box-shadow: var(--text-glow);
        }

        .dropdown-btn i.chevron {
            font-size: 10px;
            transition: transform 0.3s ease;
        }

        .dropdown-content {
            display: block;
            position: absolute;
            right: 0;
            top: 100%;
            margin-top: 6px;
            background: rgba(13, 18, 33, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            min-width: 200px;
            border: 1px solid rgba(0, 240, 255, 0.3);
            border-radius: 14px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 240, 255, 0.2);
            padding: 6px;
            z-index: 1000;
            
            visibility: hidden;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
            pointer-events: none;
        }

        .dropdown:hover .dropdown-content,
        .dropdown.active .dropdown-content {
            visibility: visible;
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .dropdown:hover .dropdown-btn i.chevron,
        .dropdown.active .dropdown-btn i.chevron {
            transform: rotate(180deg);
        }

        .dropdown-item {
            color: #a0aec0;
            padding: 8px 12px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 12px;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid transparent;
        }

        .dropdown-item:hover {
            background: linear-gradient(90deg, rgba(0, 240, 255, 0.2), rgba(112, 0, 255, 0.2));
            color: #ffffff;
            border-color: rgba(0, 240, 255, 0.4);
            transform: translateX(4px);
        }

        .dropdown-item i {
            width: 16px;
            text-align: center;
            color: var(--primary);
        }

        .fullscreen-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #a0aec0;
            padding: 8px 12px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
        }

        .fullscreen-btn:hover {
            background: rgba(0, 240, 255, 0.15);
            color: #fff;
            border-color: var(--primary);
            box-shadow: var(--text-glow);
        }

        .main-viewport {
            flex: 1;
            background: var(--card-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
            z-index: 1;
        }

        .welcome-screen {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 12px;
            z-index: 2;
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        .welcome-screen.hidden {
            opacity: 0;
            pointer-events: none;
            transform: scale(0.95);
        }

        #bounceCanvas {
            width: 100%;
            height: 100%;
            border-radius: 12px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px dashed rgba(0, 240, 255, 0.2);
        }

        .game-iframe {
            width: 100%;
            height: 100%;
            border: none;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .game-iframe.active {
            opacity: 1;
        }

        .status-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 12px;
            font-size: 11px;
            color: #64748b;
        }

        .status-indicator {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .dot {
            width: 7px;
            height: 7px;
            background-color: #22c55e;
            border-radius: 50%;
            box-shadow: 0 0 8px #22c55e;
        }

        /* =================================================== */
        /* --- MEDIA QUERIES UNTUK MOBILE & SKRIN KECIL --- */
        /* =================================================== */
        @media (max-width: 640px) {
            body {
                padding: 6px;
            }

            .header-bar {
                padding: 8px 12px;
            }

            .brand span {
                font-size: 13px;
                letter-spacing: 0.5px;
            }

            .brand i {
                font-size: 15px;
            }

            .dropdown-btn {
                padding: 6px 10px;
                font-size: 11px;
            }

            .fullscreen-btn {
                padding: 6px 10px;
                font-size: 11px;
            }

            .status-bar {
                font-size: 9px;
                padding: 4px 8px;
            }

            .dropdown-content {
                min-width: 180px;
                right: -10px; /* Alih sedikit ke kiri supaya tidak terpotong skrin */
            }
        }

        @media (max-width: 400px) {
            .brand span {
                display: none; /* Sembunyikan teks nama pada skrin terlalu kecil, kekalkan ikon */
            }
        }