/* 从 Tuanjie 编辑器自带的 Default WebGL 模板搬过来的官方样式，
   id 前缀 tuanjie- 统一换成 unity-，以匹配 gree/unity-webview.js（写死查找 #unity-container 等）。 */
html, body { padding: 0; margin: 0; background: #231F20 }
/* 居中定位始终生效（不再按 unity-desktop/unity-mobile 区分）——
   unity-mobile 这个 class 现在只保留给 unity-webview.js 的 setMargins 用来判断
   要不要按 devicePixelRatio 换算内嵌网页尺寸，跟这里的定位无关。
   html/body 背景跟画布背景色对齐：手机上画布按固定竖屏比例居中，跟设备实际屏幕比例
   对不上时上下/左右会露出背景——不设的话浏览器默认是白色，露白很显眼，改成同色后无缝衔接。 */
#unity-container { position: absolute; 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('tuanjie-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-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
