html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; }
body { position: absolute; inset: 0; color: #373129; background: #faf8f1; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
canvas { background-color: transparent; }
#GameDiv, #Cocos3dGameContainer, #GameCanvas { width: 100%; height: 100%; }
#ink-loading { position: fixed; z-index: 9999; inset: 0; display: flex; flex-direction: column; align-items: center; overflow: hidden; background: #faf8f1 url("boot-backdrop.png") center / cover no-repeat; transition: opacity .24s ease-out; }
#ink-loading.ink-loading-done { opacity: 0; pointer-events: none; }
.ink-title { margin-top: max(96px, 18vh); font-family: "Kaiti", "STKaiti", serif; font-size: clamp(38px, 10vw, 64px); font-weight: 700; letter-spacing: .12em; color: #234e4e; }
.ink-subtitle { margin-top: 12px; font-size: 16px; color: #477b73; letter-spacing: .12em; }
.ink-brand { margin-top: 32px; width: 120px; height: 160px; background: url("weapon-atlas-v028.png") 0 0 / 480px 320px no-repeat; }
.ink-health { margin-top: 20px; max-width: 90vw; text-align: center; color: #335b58; }
.ink-health h2 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.ink-health p { margin: 2px 0; font-size: 14px; line-height: 1.6; }
@media (max-height: 700px) { .ink-title { margin-top: 7vh; } .ink-brand { margin-top: 12px; height: 100px; } .ink-health { margin-top: 12px; } }
.ink-progress { position: absolute; bottom: max(100px, 16vh); width: min(72vw, 440px); height: 8px; padding: 2px; border: 1px solid #8fac9c; border-radius: 8px; background: #eee8d9; overflow: hidden; }
.ink-progress i { display: block; width: 30%; height: 100%; border-radius: 5px; background: #6aaca1; animation: ink-loading-flow 1.8s ease-in-out infinite alternate; }
.ink-status { position: absolute; bottom: max(64px, 11vh); font-size: 15px; color: #335b58; letter-spacing: .1em; }
#ink-retry { position: absolute; bottom: max(24px, 4vh); min-width: 160px; min-height: 44px; padding: 8px 24px; border: 1px solid #8fac9c; border-radius: 8px; background: #faf8f1; color: #335b58; font: inherit; cursor: pointer; }
#ink-retry[hidden] { display: none; }
#ink-loading[data-boot-state="error"] .ink-progress i { animation: none; }
@keyframes ink-loading-flow { from { transform: translateX(0); } to { transform: translateX(230%); } }
@media (prefers-reduced-motion: reduce) { .ink-progress i { animation: none; margin-left: 35%; } }
:root { --safe-top: env(safe-area-inset-top); --safe-right: env(safe-area-inset-right); --safe-bottom: env(safe-area-inset-bottom); --safe-left: env(safe-area-inset-left); }

/* 彩墨新章 20261031: code-native loading composition, original assets retained. */
#ink-loading { background: radial-gradient(ellipse at 90% 16%, #c5d7b9 0, transparent 48%), linear-gradient(150deg,#f4f4e7,#e2e9d6); border-top: 10px solid #214b38; }
#ink-loading::before { content: ''; position:absolute; width:76vw; height:76vw; border:1px solid #73957555; border-radius:50%; top:7vh; right:-36vw; pointer-events:none; }
.ink-title { color:#21382f; font-family:'Microsoft YaHei',sans-serif; font-size:clamp(34px,9vw,56px); letter-spacing:.08em; }
.ink-subtitle { color:#386548; font-size:13px; letter-spacing:.28em; }
.ink-progress { border-radius:3px; background:#d7dfc9; border-color:#81997a; height:7px; }
.ink-progress i { border-radius:1px; background:#ad4130; }
#ink-retry { border-radius:5px; background:#305f48; color:#fffbed; }
