/* Fake Update Screen */
.fu-styles { border: 0; padding: 0; margin: 0 0 18px; }
.fu-styles legend { font-weight: 700; margin-bottom: 10px; }
.fu-style-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.fu-style { display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.fu-style input { position: absolute; opacity: 0; pointer-events: none; }
.fu-thumb { position: relative; aspect-ratio: 16/10; border-radius: 12px; border: 2px solid var(--glass-border); display: grid; place-items: center; overflow: hidden; }
.fu-style input:checked + .fu-thumb { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(129,140,248,.35); }
.fu-style input:focus-visible + .fu-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }
.fu-style__label { font-size: .9rem; text-align: center; }
.fu-thumb--blue { background: #0063b1; }
.fu-thumb--dark { background: #101014; }
.fu-thumb--retro { background: #000080; }
.fu-thumb--generic { background: linear-gradient(135deg, #1e1b4b, #0f172a); }
.fu-mini-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: fuSpin 1s linear infinite; }
.fu-thumb--retro .fu-mini-spin { display: none; }
.fu-mini-bar { position: absolute; bottom: 14%; width: 60%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); display: none; }
.fu-thumb--retro .fu-mini-bar, .fu-thumb--generic .fu-mini-bar { display: block; }
.fu-thumb--retro .fu-mini-bar { border-radius: 0; background: linear-gradient(90deg, #00ff6a 55%, #c0c0c0 55%); height: 8px; bottom: 40%; }
.fu-thumb--generic .fu-mini-bar { background: linear-gradient(90deg, #818cf8 40%, rgba(255,255,255,.2) 40%); }
.fu-grid { margin-top: 6px; }
.fu-check { display: flex; align-items: center; gap: 8px; }
.fu-grid input[type=range] { width: 100%; }
@keyframes fuSpin { to { transform: rotate(360deg); } }

/* Runtime screen */
.fu-screen { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; color: #fff; cursor: none; user-select: none; font-family: "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", Tahoma, sans-serif; }
.fu-screen[hidden] { display: none; }
.fu-exit-zone { position: absolute; top: 0; inset-inline-end: 0; width: 80px; height: 80px; background: transparent; border: 0; cursor: none; opacity: 0; }
.fu-center { text-align: center; padding: 24px; max-width: 760px; }
.fu-line1 { font-size: clamp(1.1rem, 2.6vw, 1.6rem); margin: 34px 0 10px; font-weight: 300; }
.fu-line2 { font-size: clamp(.95rem, 2vw, 1.2rem); margin: 0; font-weight: 300; opacity: .95; }
.fu-spinner { position: relative; width: 64px; height: 64px; margin: 0 auto; }
.fu-spinner i { position: absolute; inset: 0; animation: fuOrbit 4.4s cubic-bezier(.5,0,.5,1) infinite; opacity: 0; }
.fu-spinner i::before { content: ""; position: absolute; top: 0; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #fff; }
.fu-spinner i:nth-child(2) { animation-delay: .24s; } .fu-spinner i:nth-child(3) { animation-delay: .48s; }
.fu-spinner i:nth-child(4) { animation-delay: .72s; } .fu-spinner i:nth-child(5) { animation-delay: .96s; }
@keyframes fuOrbit { 0% { transform: rotate(0); opacity: 1; } 40% { transform: rotate(320deg); } 70% { transform: rotate(400deg); opacity: 1; } 80% { transform: rotate(720deg); opacity: 0; } 100% { transform: rotate(720deg); opacity: 0; } }
.fu-retro-box, .fu-generic-bar { display: none; }

.fu-screen.s-blue { background: #0063b1; }
.fu-screen.s-dark { background: #000; }
.fu-screen.s-dark .fu-line1 { font-size: clamp(1rem, 2.2vw, 1.35rem); }
.fu-screen.s-generic { background: radial-gradient(circle at 50% 40%, #1e1b4b, #020617 70%); }
.fu-screen.s-generic .fu-spinner { display: none; }
.fu-screen.s-generic .fu-generic-bar { display: block; width: min(420px, 80vw); height: 6px; margin: 26px auto 0; border-radius: 6px; background: rgba(255,255,255,.15); overflow: hidden; }
.fu-screen.s-generic .fu-generic-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #818cf8, #22d3ee); transition: width .6s linear; }
.fu-screen.s-retro { background: #000080; font-family: "Courier New", monospace; }
.fu-screen.s-retro .fu-spinner, .fu-screen.s-retro .fu-line2 { display: none; }
.fu-screen.s-retro .fu-retro-box { display: block; width: min(520px, 86vw); margin: 0 auto; background: #c0c0c0; color: #000; border: 3px outset #fff; padding: 0 0 18px; text-align: start; }
.fu-retro-title { background: linear-gradient(90deg, #000080, #1084d0); color: #fff; padding: 6px 10px; font-weight: 700; }
.fu-retro-line { padding: 16px 16px 10px; }
.fu-retro-bar { margin: 0 16px; height: 22px; border: 2px inset #fff; background: #fff; padding: 2px; }
.fu-retro-bar span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #000080 0 12px, #fff 12px 14px); }
.fu-screen.s-retro .fu-line1 { color: #fff; font-size: 1rem; }
