/* Original Alliance Wars arrival: painted atmosphere, metalwork and firelight. */
#loader { color: #f8e9cb; isolation: isolate; font-family: Georgia, 'Times New Roman', serif; transition: opacity .65s ease; }
#loader.is-leaving { opacity: 0; pointer-events: none; }
#loader > .ld-scene, #loader > .ld-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-scene { display: block; image-rendering: auto; }
.ld-shade { pointer-events: none; background: linear-gradient(180deg, #03091299 0%, transparent 40%, transparent 58%, #030812b8 82%, #030812f5 100%), radial-gradient(ellipse at 50% 46%, transparent 26%, #01061080 100%); }
.ld-brand { position: absolute; top: max(calc(env(safe-area-inset-top, 0px) + 28px), 5.8%); left: 50%; width: min(83vw, 430px); transform: translateX(-50%); text-align: center; }
.ld-logo { position: relative; display: block; width: 100%; aspect-ratio: 1.72; animation: aw-arrive 1.7s cubic-bezier(.16,1,.3,1) both; filter: drop-shadow(0 9px 14px #000c); }
.ld-logo img { width: 100%; height: 100%; display: block; object-fit: contain; image-rendering: auto; }
.ld-logo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 38%, #fff5cba8 48%, #fffef8ed 50%, transparent 60%); mask: url('../assets/arrival/logo.webp') center/contain no-repeat; -webkit-mask: url('../assets/arrival/logo.webp') center/contain no-repeat; mix-blend-mode: screen; background-size: 320% 100%; animation: aw-shine 7.5s ease-in-out 1.2s infinite; pointer-events: none; }
.ld-logo, .ld-logo::after { animation-play-state: paused; }
.ld-logo.is-ready, .ld-logo.is-ready::after { animation-play-state: running; }
.ld-kicker { margin: -1% 0 0; color: #e0c398; font: 500 10px/1.5 system-ui, sans-serif; letter-spacing: .35em; text-indent: .35em; text-shadow: 0 2px 8px #000; }
.ld-bottom { position: absolute; left: 50%; bottom: max(calc(env(safe-area-inset-bottom, 0px) + 27px), 5.6%); transform: translateX(-50%); width: min(79vw, 420px); text-align: center; }
.ld-status { display: block; min-height: 14px; margin: 0 0 15px; color: #edce96; font: 600 9px/1.5 system-ui, sans-serif; letter-spacing: .27em; text-indent: .27em; text-shadow: 0 2px 6px #000; }
.ld-bar { position: relative; height: 19px; padding: 4px; border: 1px solid #e7c87d; background: linear-gradient(#624b2b, #181b20 20%, #0a0d12 75%, #4b3826); box-shadow: 0 0 0 2px #17151b, 0 0 0 3px #8b642f, 0 5px 16px #000c, inset 0 1px #fff0c18c; }
.ld-bar::before, .ld-bar::after { content: ''; position: absolute; top: 2px; width: 12px; height: 12px; transform: rotate(45deg); border: 1px solid #e3c984; background: linear-gradient(135deg, #f0d290, #68502c 50%, #d2b471); box-shadow: 0 0 0 2px #271e18; }
.ld-bar::before { left: -9px; } .ld-bar::after { right: -9px; }
.ld-track { position: relative; height: 100%; background: #080e16; box-shadow: inset 0 1px 3px #000; }
.ld-fill { --progress: 0; position: relative; width: 100%; height: 100%; transform: scaleX(var(--progress)); transform-origin: left; transition: transform .35s ease-out; background: linear-gradient(#ffedbd 0%, #efbb52 32%, #d77725 67%, #ffb43f 100%); box-shadow: 0 0 10px #ffac43a6; }
.ld-fill::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 10px, #fff1ae66 13px, transparent 20px); background-size: 90px 100%; mix-blend-mode: screen; animation: aw-energy 2.1s linear infinite; }
.ld-fill::after { content: ''; position: absolute; right: -2px; top: -3px; height: 15px; width: 4px; border-radius: 50%; background: #fff8d2; box-shadow: 0 0 5px #fff7b6, 0 0 12px 3px #ffb242; }
.ld-readout { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 12px; color: #eadac0; font: 500 10px/1.4 system-ui, sans-serif; letter-spacing: .14em; }
.ld-readout::before, .ld-readout::after { content: ''; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, #ac874d); }
.ld-readout::after { transform: rotate(180deg); }
.ld-tip { min-height: 2.9em; max-width: 350px; margin: 22px auto 0; color: #d8cdb8; font: italic 13px/1.55 Georgia, serif; text-shadow: 0 2px 5px #000; }
.ld-edition { margin: 19px 0 0; color: #938674; font: 500 8px/1.4 system-ui, sans-serif; letter-spacing: .24em; }
@keyframes aw-arrive { from { opacity: 0; transform: scale(.88) translateY(9px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes aw-shine { 0%, 18% { background-position: 130% 0; opacity: 0; } 24% { opacity: .7; } 35%, 100% { background-position: -30% 0; opacity: 0; } }
@keyframes aw-energy { to { background-position: 90px 0; } }
@media (max-height: 700px) { .ld-brand { top: max(env(safe-area-inset-top, 0px), 2%); width: min(68vw, 320px); } .ld-bottom { bottom: max(calc(env(safe-area-inset-bottom, 0px) + 15px), 4%); } .ld-tip { margin-top: 15px; font-size: 12px; } .ld-edition { margin-top: 11px; } }
@media (min-width: 700px) { .ld-brand { top: 5%; width: min(53vw, 460px); } .ld-bottom { bottom: 5%; } }
@media (prefers-reduced-motion: reduce) { #loader, #loader *, #loader *::before, #loader *::after { animation: none !important; transition: none !important; } .ld-logo::after { display: none; } }
