/* Auto-update screen: full window, moving blurred colours (like the login page), no card. */
.up-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: #05060a; color: #fff; font-family: Inter, "Segoe UI", system-ui, sans-serif; animation: upIn 0.4s ease; }
.up-overlay.hidden { display: none; }
@keyframes upIn { from { opacity: 0; } to { opacity: 1; } }
body.updating { overflow: hidden; }

.up-bg { position: absolute; inset: 0; overflow: hidden; filter: blur(90px) saturate(1.4); opacity: 0.55; }
.up-bg i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; animation: upDrift 22s ease-in-out infinite alternate; }
.up-bg i:nth-child(1) { background: #2b3fd6; left: -15vmax; top: -20vmax; }
.up-bg i:nth-child(2) { background: #7a4dff; right: -18vmax; top: 5vh; animation-duration: 28s; animation-delay: -6s; }
.up-bg i:nth-child(3) { background: #18b4ff; left: 20vw; bottom: -30vmax; animation-duration: 34s; animation-delay: -12s; opacity: 0.7; }
@keyframes upDrift { to { transform: translate(6vw, 5vh) scale(1.12); } }

.up-content { position: relative; width: min(440px, calc(100% - 48px)); display: flex; flex-direction: column; align-items: flex-start; }
.up-logo { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.up-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8fb8ff; }
.up-title { margin: 8px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.up-w { display: inline-block; opacity: 0; transform: translateY(0.3em); animation: upWord 0.5s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 0.1s) forwards; }
@keyframes upWord { to { opacity: 1; transform: none; } }
.up-message { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.65); }

.up-progress { width: 100%; margin-top: 30px; }
.up-progress.hidden { display: none; }
.up-track { position: relative; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.up-fill { position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: inherit; background: #5b9aff; transition: width 0.35s ease; }
.up-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); animation: upSweep 1.5s ease-in-out infinite; }
@keyframes upSweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.up-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
.up-meta b { color: #fff; font-weight: 600; }

.up-notes { width: 100%; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); max-height: 160px; overflow-y: auto; }
.up-notes.hidden { display: none; }
.up-notes-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.up-notes-content { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.65); }
.up-notes-content ul { margin: 0; padding-left: 18px; }

.up-actions { display: flex; gap: 10px; margin-top: 28px; }
.up-actions.hidden { display: none; }
.up-btn { height: 40px; padding: 0 20px; border-radius: 500px; font: 700 14px Inter, "Segoe UI", sans-serif; cursor: pointer; transition: transform 0.15s, background 0.15s; }
.up-btn.primary { border: 0; background: #fff; color: #000; }
.up-btn.primary:hover { transform: scale(1.04); }
.up-btn.ghost { border: 1px solid rgba(255, 255, 255, 0.25); background: none; color: #fff; }
.up-btn.ghost:hover { border-color: #fff; }

/* Ready: the logo makes way for a circle that draws itself, a check, and waves. */
.up-mark { position: relative; width: 48px; height: 48px; margin-bottom: 28px; }
.up-mark .up-logo { margin: 0; transition: opacity 0.3s ease, transform 0.4s ease; }
.up-check { position: absolute; inset: -8px; width: 64px; height: 64px; overflow: visible; opacity: 0; }
.up-ring { fill: rgba(91, 154, 255, 0.12); stroke: #5b9aff; stroke-width: 2.5; stroke-dasharray: 176; stroke-dashoffset: 176; transform: rotate(-90deg); transform-origin: 50% 50%; }
.up-tick { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.up-wave { position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid #5b9aff; opacity: 0; }
.is-ready .up-logo { opacity: 0; transform: scale(0.6); }
.is-ready .up-check { opacity: 1; }
.is-ready .up-ring { animation: upDraw 0.7s cubic-bezier(.65, 0, .35, 1) 0.15s forwards; }
.is-ready .up-tick { animation: upDraw 0.45s cubic-bezier(.65, 0, .35, 1) 0.8s forwards; }
@keyframes upDraw { to { stroke-dashoffset: 0; } }
.is-ready .up-wave { animation: upWave 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.is-ready .up-wave:nth-child(2) { animation-delay: 1.1s; }
.is-ready .up-wave:nth-child(3) { animation-delay: 1.5s; }
.is-ready .up-wave:nth-child(4) { animation-delay: 1.9s; }
@keyframes upWave { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(3.2); opacity: 0; } }
.is-ready .up-message, .is-ready .up-notes, .is-ready .up-actions { opacity: 0; animation: upRise 0.6s cubic-bezier(.2, .8, .2, 1) forwards; }
.is-ready .up-message { animation-delay: 1.0s; }
.is-ready .up-notes { animation-delay: 1.15s; }
.is-ready .up-actions { animation-delay: 1.35s; }
@keyframes upRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.up-content .up-w { animation-duration: 0.7s; }
