html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #050818; font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #fff; }
#app { position: fixed; inset: 0; }
#unity-canvas { width: 100%; height: 100%; display: block; background: #050818; outline: none; }

#loader { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; transition: opacity 0.8s ease; background: #050818; }
#loader.done { opacity: 0; pointer-events: none; }
#loader .bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,24,0.96) 0%, rgba(5,8,24,0.82) 45%, rgba(5,8,24,0.55) 100%), url("bg.jpg") center / cover no-repeat; filter: saturate(1.05); }
#loader .content { position: relative; width: min(720px, 86vw); }
.logo-img { display: block; width: 320px; max-width: 72vw; height: auto; }
.card .logo-img { width: 220px; margin-bottom: 18px; }
.sub { color: #7ee8f8; font-weight: 700; font-size: 15px; margin: 16px 0 34px 4px; }
#loader h1 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.12; margin: 0 0 34px 0; font-weight: 800; }
.bar { width: 100%; max-width: 520px; height: 8px; border-radius: 8px; background: rgba(255,255,255,0.12); overflow: hidden; }
.fill { height: 100%; width: 0%; border-radius: 8px; background: linear-gradient(90deg, #E30FD8 0%, #4B45F5 50%, #13D3F7 100%); transition: width 0.25s ease; }
.status { margin-top: 14px; font-size: 16px; color: #b9c6e4; }
.tip { margin-top: 26px; font-size: 17px; color: #d7e2f7; min-height: 24px; }
.tip b { color: #22D3EE; }
#loader .foot { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.55); padding: 0 20px; }

#mobile, #error { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(5,8,24,0.94); }
.hidden { display: none !important; }
.card { width: min(460px, 86vw); background: #0B1033; border: 1px solid rgba(34,211,238,0.35); border-radius: 18px; padding: 30px 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.card p { font-size: 17px; line-height: 1.5; color: #d7e2f7; }
.card button { margin-top: 12px; background: #22D3EE; color: #0B1033; font-weight: 800; font-size: 16px; border: 0; border-radius: 12px; padding: 13px 22px; cursor: pointer; }
