/* 全站共用的加载页面。放在 public 里由 index.html 直接引用：程序还没下载完时就能显示。
   背景是大厅同一机位的空景（loading-sunset.webp），所以加载完进大厅时风景对得上；右边是河池全市地图（loading-map.webp）。React 里用 src/ui/LoadScreen.jsx。 */
html, body { background: #2a0d38; }
.ld { position: fixed; inset: 0; z-index: 60; overflow: hidden; color: #fff3e2; font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background: linear-gradient(90deg, rgba(38, 8, 52, .62), rgba(38, 8, 52, .22) 30%, transparent 52%), linear-gradient(0deg, rgba(30, 6, 42, .72), rgba(30, 6, 42, .12) 46%, transparent), url(/assets/loading-sunset.webp) center / cover, linear-gradient(#4a2a7c, #b0428c 26%, #f2646c 44%, #f7a052 56%, #c4686a 70%, #a5565e); }
.ld.is-fade { animation: ld-in .42s ease both; }
.ld.is-out { opacity: 0; pointer-events: none; transition: opacity .65s ease; }
.ld-logo { position: absolute; left: clamp(28px, 4vw, 84px); top: 3vh; width: min(20.5vw, 33vh); height: auto; }
.ld-text { position: absolute; left: clamp(28px, 4vw, 84px); right: clamp(28px, 4vw, 84px); bottom: clamp(34px, 7vh, 84px); }
.ld-text * { margin: 0; }
.ld-over { font-size: clamp(16px, 1.35vw, 22px); line-height: 1.4; font-weight: 600; letter-spacing: .12em; text-shadow: 0 1px 10px rgba(36, 8, 46, .9); }
.ld-title { margin: 2px 0 12px; font-size: clamp(52px, 7.4vw, 128px); line-height: 1.12; font-weight: 900; letter-spacing: .04em; transform: skewX(-6deg); transform-origin: left bottom; text-shadow: .03em .03em 0 #ff4f7b, .06em .06em 0 #3a1450; }
.ld-bar { position: relative; width: min(560px, 100%); height: 12px; overflow: hidden; transform: skewX(-24deg); background: rgba(38, 12, 54, .82); }
.ld-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, #ff4f7b, #ff9a5a); transform-origin: left; transition: transform .3s; }
.ld-bar i.is-wait { right: 62%; animation: ld-run 1.6s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
.ld-note { min-height: 1.6em; margin-top: 14px; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.6; text-shadow: 0 1px 8px rgba(36, 8, 46, .95); }
.ld-note:empty { display: none; }
.ld-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; width: min(620px, 100%); margin-top: 18px; padding: 12px 16px 12px 14px; font-size: clamp(15px, 1.15vw, 19px); line-height: 1.5; font-weight: 600;
  background: linear-gradient(90deg, rgba(42, 13, 56, .86), rgba(42, 13, 56, .58)); border-left: 4px solid #ff4f7b; animation: ld-tip .45s ease both; }
.ld-tip b { margin-right: 6px; padding: 1px 9px; font-size: .78em; letter-spacing: .14em; color: #2a0d38; background: linear-gradient(90deg, #ff4f7b, #ff9a5a); transform: skewX(-9deg); }
.ld-tip kbd { min-width: 1.9em; padding: 1px 8px; font: 800 .86em/1.5 inherit; text-align: center; color: #fff3e2; background: #3a1450; border: 1px solid rgba(255, 243, 226, .55); border-bottom: 3px solid #ff4f7b; border-radius: 4px; }
/* 右边的河池全市地图：从总沙盘截的透明底图，要去的县城亮一个点 */
.ld-map { position: absolute; right: clamp(20px, 4vw, 90px); top: 50%; width: min(48vw, 86vh); margin: 0; transform: translateY(-54%); filter: drop-shadow(0 18px 30px rgba(30, 6, 42, .55)); animation: ld-map .9s ease both; }
.ld-map img { display: block; width: 100%; height: auto; }
.ld-pin { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff3e2; box-shadow: 0 0 0 4px #ff4f7b, 0 0 18px 6px rgba(255, 154, 90, .9); }
.ld-pin::after { content: ""; position: absolute; inset: -14px; border: 3px solid #ff9a5a; border-radius: 50%; animation: ld-pulse 1.6s ease-out infinite; }
@keyframes ld-tip { from { transform: translateX(-8px); } }   /* 不做淡入：加载时主线程常被占住，淡入会停在看不见的那一帧 */
@keyframes ld-map { from { opacity: 0; transform: translateY(-50%); } }
@keyframes ld-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes ld-in { from { opacity: 0; } }
@keyframes ld-run { to { transform: translateX(163.2%); } }
@media (max-aspect-ratio: 1/1) { .ld { background-position: center, center, 36% center, center; } .ld-logo { left: 16px; top: 14px; width: clamp(150px, 40vw, 300px); } .ld-text { left: 20px; right: 20px; bottom: max(64px, calc(env(safe-area-inset-bottom) + 48px)); } .ld-title { font-size: clamp(52px, 16vw, 110px); } .ld-map { left: 50%; right: auto; top: max(110px, 21vh); width: min(92vw, 62vh); transform: translateX(-50%); } @keyframes ld-map { from { opacity: 0; } } }
@media (max-height: 520px) { .ld-logo { top: 12px; width: 150px; } .ld-title { font-size: 46px; margin-bottom: 6px; } .ld-text { bottom: 22px; right: 52vw; } .ld-note { margin-top: 6px; } .ld-tip { margin-top: 8px; padding: 8px 12px; font-size: 14px; } .ld-map { width: min(46vw, 80vh); } }
@media (prefers-reduced-motion: reduce) { .ld.is-fade, .ld-tip, .ld-map, .ld-pin::after { animation: none; } .ld.is-out { transition: none; } .ld-bar i.is-wait { right: 0; opacity: .6; animation: none; } }
