body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-canvas { background: #231F20 }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-footer { position: relative }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-webxr-link { float: left; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#entervr:enabled { float: right; width: 38px; height: 38px; background-color: #1eaed3; display: inline-block; border: 0; }
#enterar:enabled { float: right; width: 38px; height: 38px; background-color: #1eaed3; display: inline-block; border: 0; }
#entervr:disabled { float: right; width: 38px; height: 38px; background-color: #dddddd; display: inline-block; border: 0; }
#enterar:disabled { float: right; width: 38px; height: 38px; background-color: #dddddd; display: inline-block; border: 0; }
/* ===== BFVR Fullscreen Web Layout ===== */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #000 !important;
}

/* Unity 外层容器全屏 */
#unity-container {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;

    /* 这一句非常重要：取消原模板的居中位移 */
    transform: none !important;

    width: 100vw !important;
    height: 100vh !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Unity 游戏画面占满浏览器 */
#unity-canvas {
    display: block !important;

    width: 100vw !important;
    height: 100vh !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* 隐藏 Unity 默认底栏 */
#unity-footer {
    display: none !important;
}

/* 隐藏 Unity / WebGL Logo */
#unity-webgl-logo {
    display: none !important;
}

/* 隐藏项目名称 */
#unity-build-title {
    display: none !important;
}

/* 隐藏全屏按钮 */
#unity-fullscreen-button {
    display: none !important;
}

/* 隐藏 Using WebXR Export */
#unity-webxr-link {
    display: none !important;
}

/* 隐藏右下角 VR / AR 按钮 */
#entervr,
#enterar {
    display: none !important;
}
