html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #1b2a3a; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#jogo { position: fixed; inset: 0; }
#unity-canvas { width: 100%; height: 100%; display: block; background: #1b2a3a; outline: none; touch-action: none; } /* o toque vai para o jogo (joystick), não rola/zoom a página */
#carregando { position: absolute; inset: 0; z-index: 10; transition: opacity .6s ease; }
#carregando.sumindo { opacity: 0; pointer-events: none; }
#carregando-fundo { position: absolute; inset: 0; background: #2f7fd6 url("carregando.jpg") center / cover no-repeat; }
#carregando-fundo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(10,20,35,.75) 100%); }
#carregando-painel { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); width: min(560px, 86vw); text-align: center; font-family: "Arial Black", "Segoe UI", Arial, sans-serif; color: #fff; }
#titulo { font-size: clamp(20px, 3.4vw, 38px); font-weight: 900; letter-spacing: 1px; text-shadow: 0 3px 0 #6b3a1c, 0 6px 14px rgba(0,0,0,.45); margin-bottom: 14px; }
#titulo span { color: #ffb347; }
#barra { height: 18px; border-radius: 10px; background: rgba(255,255,255,.25); border: 3px solid #fff3dc; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
#barra-cheia { height: 100%; width: 0%; border-radius: 6px; background: linear-gradient(to bottom, #9be13a, #5fae13); transition: width .25s ease; }
#texto-carregando { margin-top: 10px; font-family: "Segoe UI", Arial, sans-serif; font-weight: 700; font-size: 16px; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
#aviso { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 20; display: none; font-family: Arial, sans-serif; }
#aviso div { padding: 8px 14px; margin-bottom: 6px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; }
#aviso .erro { background: #c0392b; } #aviso .alerta { background: #e6b800; color: #222; }
#tela-cheia { position: absolute; right: 12px; bottom: 12px; z-index: 5; width: 38px; height: 38px; border: none; border-radius: 8px; background: rgba(0,0,0,.35); color: #fff; font-size: 20px; cursor: pointer; }
.celular #tela-cheia { display: none; }
