html, body { margin: 0; height: 100%; background: #111; color: #eee; font-family: -apple-system, "PingFang TC", sans-serif; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#welcome { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #111; text-align: center; padding: 0 16px; }
#welcome[hidden] { display: none; }
#welcome h1 { margin: 0; font-size: 24px; }
#welcome p { margin: 0; color: #aaa; }
button { font: inherit; color: #fff; background: rgba(40, 40, 40, .85); border: 1px solid #666; border-radius: 10px; padding: 12px 18px; }
button:active { background: #555; }
#open { background: #0a84ff; border: 0; font-size: 18px; padding: 14px 28px; }
#hud[hidden] { display: none; }
#zone { position: fixed; left: calc(24px + env(safe-area-inset-left)); bottom: calc(24px + env(safe-area-inset-bottom)); width: 140px; height: 140px; }
#buttons { position: fixed; right: calc(16px + env(safe-area-inset-right)); top: calc(16px + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 10px; }
#floorLabel { position: fixed; left: calc(16px + env(safe-area-inset-left)); top: calc(16px + env(safe-area-inset-top)); padding: 6px 12px; border-radius: 8px; background: rgba(0, 0, 0, .55); font-size: 15px; }
#floorLabel:empty { display: none; }
#floorMenu { position: fixed; right: calc(110px + env(safe-area-inset-right)); top: calc(16px + env(safe-area-inset-top)); max-height: calc(100% - 32px); overflow-y: auto; display: flex; flex-direction: column-reverse; gap: 8px; } /* 高樓層在上，跟電梯按鈕一樣 */
#floorMenu[hidden] { display: none; }
#floorMenu button.current { background: #0a84ff; border-color: #0a84ff; }
#stats { position: fixed; left: calc(16px + env(safe-area-inset-left)); top: calc(56px + env(safe-area-inset-top)); padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .6); font: 12px/1.5 ui-monospace, Menlo, monospace; white-space: pre; pointer-events: none; }
#stats[hidden] { display: none; }
#gravity.on, #perf.on { background: #0a84ff; border-color: #0a84ff; }
